From 4faec432cd48821789f5a71eb10f86eedd72f0a2 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Fri, 2 May 2025 22:45:43 +0800 Subject: [PATCH 01/85] mcp-server impl (#1) --- .github/workflows/go.yml | 32 + .github/workflows/goreleaser.yml | 45 + .github/workflows/lint.yaml | 50 + .github/workflows/project.yml | 51 + .gitignore | 10 + .golangci.yml | 28 + .goreleaser.yaml | 47 + LICENSE | 201 + Makefile | 25 + README.md | 210 + cmd/streamnative-mcp-server/main.go | 73 + go.mod | 88 + go.sum | 314 + go.work | 7 + go.work.sum | 189 + pkg/auth/auth.go | 159 + pkg/auth/authorization_tokenretriever.go | 338 + pkg/auth/cache/cache.go | 142 + pkg/auth/client_credentials_flow.go | 175 + pkg/auth/client_credentials_provider.go | 103 + pkg/auth/config_tokenprovider.go | 57 + pkg/auth/data_url.go | 70 + pkg/auth/oidc_endpoint_provider.go | 58 + pkg/auth/store/keyring.go | 202 + pkg/auth/store/store.go | 45 + pkg/cmd/mcp/mcp.go | 172 + pkg/cmd/mcp/stdio.go | 201 + pkg/config/apiclient.go | 220 + pkg/config/auth.go | 83 + pkg/config/config.go | 101 + pkg/config/external_kafka.go | 35 + pkg/config/external_pulsar.go | 31 + pkg/config/options.go | 226 + pkg/kafka/connection.go | 237 + pkg/kafka/kafkaconnect.go | 584 + pkg/log/io.go | 62 + pkg/mcp/auth_utils.go | 80 + pkg/mcp/context.go | 38 + pkg/mcp/context_tools.go | 129 + pkg/mcp/context_utils.go | 188 + pkg/mcp/features.go | 50 + pkg/mcp/instructions.go | 87 + pkg/mcp/kafka_admin_connect_tools.go | 407 + pkg/mcp/kafka_admin_groups_tools.go | 263 + pkg/mcp/kafka_admin_partitions_tools.go | 152 + pkg/mcp/kafka_admin_sr_tools.go | 425 + pkg/mcp/kafka_admin_topics_tools.go | 305 + pkg/mcp/kafka_client_consume_tools.go | 201 + pkg/mcp/kafka_client_produce_tools.go | 347 + pkg/mcp/prompts.go | 162 + pkg/mcp/pulsar_admin_brokers_stats_tools.go | 186 + pkg/mcp/pulsar_admin_brokers_tools.go | 320 + pkg/mcp/pulsar_admin_cluster_tools.go | 511 + pkg/mcp/pulsar_admin_functions_tools.go | 588 + .../pulsar_admin_functions_worker_tools.go | 177 + .../pulsar_admin_namespace_policy_tools.go | 1914 + pkg/mcp/pulsar_admin_namespace_tools.go | 403 + .../pulsar_admin_nsisolationpolicy_tools.go | 311 + pkg/mcp/pulsar_admin_packages_tools.go | 291 + pkg/mcp/pulsar_admin_resourcequotas_tools.go | 291 + pkg/mcp/pulsar_admin_schemas_tools.go | 239 + pkg/mcp/pulsar_admin_sinks_tools.go | 594 + pkg/mcp/pulsar_admin_sources_tools.go | 630 + pkg/mcp/pulsar_admin_subscription_tools.go | 361 + pkg/mcp/pulsar_admin_tenant_tools.go | 295 + pkg/mcp/pulsar_admin_topic_policy_tools.go | 2418 + pkg/mcp/pulsar_admin_topic_tools.go | 778 + pkg/mcp/pulsar_client_consume_tools.go | 327 + pkg/mcp/pulsar_client_produce_tools.go | 284 + pkg/mcp/streamnative_resources_log_tools.go | 289 + pkg/mcp/utils.go | 277 + pkg/pulsar/connection.go | 144 + sdk/sdk-apiserver/.gitignore | 24 + sdk/sdk-apiserver/.openapi-generator-ignore | 23 + sdk/sdk-apiserver/.openapi-generator/COMMIT | 2 + sdk/sdk-apiserver/.openapi-generator/FILES | 786 + sdk/sdk-apiserver/.openapi-generator/VERSION | 1 + .../swagger.json-default.sha256 | 1 + sdk/sdk-apiserver/.travis.yml | 8 + sdk/sdk-apiserver/README.md | 1164 + sdk/sdk-apiserver/api/openapi.yaml | 109306 +++++++++++++++ sdk/sdk-apiserver/api_apis.go | 126 + .../api_authorization_streamnative_io.go | 126 + ..._authorization_streamnative_io_v1alpha1.go | 3135 + .../api_billing_streamnative_io.go | 126 + .../api_billing_streamnative_io_v1alpha1.go | 22831 +++ .../api_cloud_streamnative_io.go | 126 + .../api_cloud_streamnative_io_v1alpha1.go | 60150 ++++++++ .../api_cloud_streamnative_io_v1alpha2.go | 17171 +++ .../api_compute_streamnative_io.go | 126 + .../api_compute_streamnative_io_v1alpha1.go | 5961 + sdk/sdk-apiserver/api_custom_objects.go | 4466 + sdk/sdk-apiserver/api_version.go | 126 + sdk/sdk-apiserver/client.go | 600 + sdk/sdk-apiserver/configuration.go | 234 + sdk/sdk-apiserver/docs/ApisApi.md | 70 + .../docs/AuthorizationStreamnativeIoApi.md | 70 + .../AuthorizationStreamnativeIoV1alpha1Api.md | 1619 + .../docs/BillingStreamnativeIoApi.md | 70 + .../docs/BillingStreamnativeIoV1alpha1Api.md | 11400 ++ .../docs/CloudStreamnativeIoApi.md | 70 + .../docs/CloudStreamnativeIoV1alpha1Api.md | 29996 ++++ .../docs/CloudStreamnativeIoV1alpha2Api.md | 8567 ++ ...kgApisAuthorizationV1alpha1CloudStorage.md | 82 + ...erPkgApisAuthorizationV1alpha1Condition.md | 150 + ...rPkgApisAuthorizationV1alpha1IamAccount.md | 160 + ...ApisAuthorizationV1alpha1IamAccountList.md | 129 + ...ApisAuthorizationV1alpha1IamAccountSpec.md | 134 + ...isAuthorizationV1alpha1IamAccountStatus.md | 56 + ...kgApisAuthorizationV1alpha1Organization.md | 51 + ...uthorizationV1alpha1PoolMemberReference.md | 72 + ...kgApisAuthorizationV1alpha1ResourceRule.md | 129 + ...rverPkgApisAuthorizationV1alpha1RoleRef.md | 119 + ...horizationV1alpha1SelfSubjectRbacReview.md | 160 + ...zationV1alpha1SelfSubjectRbacReviewSpec.md | 56 + ...tionV1alpha1SelfSubjectRbacReviewStatus.md | 56 + ...orizationV1alpha1SelfSubjectRulesReview.md | 160 + ...ationV1alpha1SelfSubjectRulesReviewSpec.md | 56 + ...ionV1alpha1SelfSubjectRulesReviewStatus.md | 98 + ...horizationV1alpha1SelfSubjectUserReview.md | 160 + ...tionV1alpha1SelfSubjectUserReviewStatus.md | 51 + ...sAuthorizationV1alpha1SubjectRoleReview.md | 160 + ...horizationV1alpha1SubjectRoleReviewSpec.md | 56 + ...rizationV1alpha1SubjectRoleReviewStatus.md | 51 + ...AuthorizationV1alpha1SubjectRulesReview.md | 160 + ...orizationV1alpha1SubjectRulesReviewSpec.md | 82 + ...izationV1alpha1SubjectRulesReviewStatus.md | 98 + ...rverPkgApisAuthorizationV1alpha1UserRef.md | 135 + ...pisBillingV1alpha1CustomerPortalRequest.md | 160 + ...illingV1alpha1CustomerPortalRequestSpec.md | 82 + ...lingV1alpha1CustomerPortalRequestStatus.md | 108 + ...piServerPkgApisBillingV1alpha1OfferItem.md | 160 + ...verPkgApisBillingV1alpha1OfferItemPrice.md | 186 + ...sBillingV1alpha1OfferItemPriceRecurring.md | 134 + ...verPkgApisBillingV1alpha1OfferReference.md | 98 + ...rverPkgApisBillingV1alpha1PaymentIntent.md | 160 + ...PkgApisBillingV1alpha1PaymentIntentList.md | 129 + ...PkgApisBillingV1alpha1PaymentIntentSpec.md | 108 + ...gApisBillingV1alpha1PaymentIntentStatus.md | 56 + ...verPkgApisBillingV1alpha1PriceReference.md | 82 + ...erverPkgApisBillingV1alpha1PrivateOffer.md | 160 + ...rPkgApisBillingV1alpha1PrivateOfferList.md | 129 + ...rPkgApisBillingV1alpha1PrivateOfferSpec.md | 238 + ...dApiServerPkgApisBillingV1alpha1Product.md | 160 + ...ServerPkgApisBillingV1alpha1ProductList.md | 129 + ...erverPkgApisBillingV1alpha1ProductPrice.md | 82 + ...rPkgApisBillingV1alpha1ProductReference.md | 82 + ...ServerPkgApisBillingV1alpha1ProductSpec.md | 160 + ...rverPkgApisBillingV1alpha1ProductStatus.md | 82 + ...kgApisBillingV1alpha1ProductStatusPrice.md | 82 + ...ServerPkgApisBillingV1alpha1PublicOffer.md | 160 + ...erPkgApisBillingV1alpha1PublicOfferList.md | 129 + ...erPkgApisBillingV1alpha1PublicOfferSpec.md | 134 + ...ServerPkgApisBillingV1alpha1SetupIntent.md | 160 + ...erPkgApisBillingV1alpha1SetupIntentList.md | 129 + ...ApisBillingV1alpha1SetupIntentReference.md | 82 + ...erPkgApisBillingV1alpha1SetupIntentSpec.md | 82 + ...PkgApisBillingV1alpha1SetupIntentStatus.md | 56 + ...V1alpha1StripeCustomerPortalRequestSpec.md | 56 + ...alpha1StripeCustomerPortalRequestStatus.md | 56 + ...gApisBillingV1alpha1StripePaymentIntent.md | 82 + ...pisBillingV1alpha1StripePriceRecurrence.md | 134 + ...erPkgApisBillingV1alpha1StripePriceSpec.md | 212 + ...PkgApisBillingV1alpha1StripeProductSpec.md | 56 + ...PkgApisBillingV1alpha1StripeSetupIntent.md | 82 + ...isBillingV1alpha1StripeSubscriptionSpec.md | 108 + ...erverPkgApisBillingV1alpha1Subscription.md | 160 + ...kgApisBillingV1alpha1SubscriptionIntent.md | 160 + ...isBillingV1alpha1SubscriptionIntentList.md | 129 + ...isBillingV1alpha1SubscriptionIntentSpec.md | 108 + ...BillingV1alpha1SubscriptionIntentStatus.md | 134 + ...rPkgApisBillingV1alpha1SubscriptionItem.md | 134 + ...rPkgApisBillingV1alpha1SubscriptionList.md | 129 + ...pisBillingV1alpha1SubscriptionReference.md | 82 + ...rPkgApisBillingV1alpha1SubscriptionSpec.md | 342 + ...kgApisBillingV1alpha1SubscriptionStatus.md | 108 + ...lpha1SubscriptionStatusSubscriptionItem.md | 134 + ...isBillingV1alpha1SugerEntitlementReview.md | 160 + ...llingV1alpha1SugerEntitlementReviewSpec.md | 56 + ...ingV1alpha1SugerEntitlementReviewStatus.md | 134 + ...erverPkgApisBillingV1alpha1SugerProduct.md | 77 + ...rPkgApisBillingV1alpha1SugerProductSpec.md | 108 + ...lingV1alpha1SugerSubscriptionIntentSpec.md | 82 + ...pisBillingV1alpha1SugerSubscriptionSpec.md | 103 + ...piServerPkgApisBillingV1alpha1TestClock.md | 160 + ...rverPkgApisBillingV1alpha1TestClockList.md | 129 + ...rverPkgApisBillingV1alpha1TestClockSpec.md | 77 + ...erPkgApisBillingV1alpha1TestClockStatus.md | 82 + ...loudApiServerPkgApisBillingV1alpha1Tier.md | 108 + ...loudApiServerPkgApisCloudV1alpha1APIKey.md | 160 + ...ApiServerPkgApisCloudV1alpha1APIKeyList.md | 129 + ...ApiServerPkgApisCloudV1alpha1APIKeySpec.md | 186 + ...iServerPkgApisCloudV1alpha1APIKeyStatus.md | 212 + ...rPkgApisCloudV1alpha1AWSCloudConnection.md | 51 + ...udApiServerPkgApisCloudV1alpha1AuditLog.md | 51 + ...erPkgApisCloudV1alpha1AutoScalingPolicy.md | 77 + ...erPkgApisCloudV1alpha1AwsPoolMemberSpec.md | 176 + ...rverPkgApisCloudV1alpha1AzureConnection.md | 114 + ...PkgApisCloudV1alpha1AzurePoolMemberSpec.md | 156 + ...rPkgApisCloudV1alpha1BillingAccountSpec.md | 51 + ...ApiServerPkgApisCloudV1alpha1BookKeeper.md | 155 + ...CloudV1alpha1BookKeeperNodeResourceSpec.md | 82 + ...ApisCloudV1alpha1BookKeeperSetReference.md | 77 + ...ApisCloudV1alpha1BookkeeperNodeResource.md | 176 + ...loudApiServerPkgApisCloudV1alpha1Broker.md | 155 + ...ApisCloudV1alpha1BrokerNodeResourceSpec.md | 56 + ...CloudApiServerPkgApisCloudV1alpha1Chain.md | 82 + ...rverPkgApisCloudV1alpha1CloudConnection.md | 160 + ...PkgApisCloudV1alpha1CloudConnectionList.md | 129 + ...PkgApisCloudV1alpha1CloudConnectionSpec.md | 129 + ...gApisCloudV1alpha1CloudConnectionStatus.md | 108 + ...verPkgApisCloudV1alpha1CloudEnvironment.md | 160 + ...kgApisCloudV1alpha1CloudEnvironmentList.md | 129 + ...kgApisCloudV1alpha1CloudEnvironmentSpec.md | 186 + ...ApisCloudV1alpha1CloudEnvironmentStatus.md | 82 + ...piServerPkgApisCloudV1alpha1ClusterRole.md | 160 + ...rPkgApisCloudV1alpha1ClusterRoleBinding.md | 160 + ...ApisCloudV1alpha1ClusterRoleBindingList.md | 129 + ...ApisCloudV1alpha1ClusterRoleBindingSpec.md | 72 + ...isCloudV1alpha1ClusterRoleBindingStatus.md | 56 + ...rverPkgApisCloudV1alpha1ClusterRoleList.md | 129 + ...rverPkgApisCloudV1alpha1ClusterRoleSpec.md | 56 + ...erPkgApisCloudV1alpha1ClusterRoleStatus.md | 82 + ...dApiServerPkgApisCloudV1alpha1Condition.md | 176 + ...erverPkgApisCloudV1alpha1ConditionGroup.md | 103 + ...loudApiServerPkgApisCloudV1alpha1Config.md | 212 + ...veCloudApiServerPkgApisCloudV1alpha1DNS.md | 82 + ...PkgApisCloudV1alpha1DefaultNodeResource.md | 124 + ...loudApiServerPkgApisCloudV1alpha1Domain.md | 103 + ...dApiServerPkgApisCloudV1alpha1DomainTLS.md | 56 + ...erverPkgApisCloudV1alpha1EncryptedToken.md | 56 + ...ServerPkgApisCloudV1alpha1EncryptionKey.md | 82 + ...erverPkgApisCloudV1alpha1EndpointAccess.md | 56 + ...ApiServerPkgApisCloudV1alpha1ExecConfig.md | 129 + ...ApiServerPkgApisCloudV1alpha1ExecEnvVar.md | 72 + ...ServerPkgApisCloudV1alpha1FailedCluster.md | 93 + ...erPkgApisCloudV1alpha1FailedClusterRole.md | 72 + ...ApiServerPkgApisCloudV1alpha1FailedRole.md | 93 + ...erPkgApisCloudV1alpha1FailedRoleBinding.md | 93 + ...rPkgApisCloudV1alpha1GCPCloudConnection.md | 51 + ...ApisCloudV1alpha1GCloudOrganizationSpec.md | 51 + ...kgApisCloudV1alpha1GCloudPoolMemberSpec.md | 207 + ...oudApiServerPkgApisCloudV1alpha1Gateway.md | 82 + ...ServerPkgApisCloudV1alpha1GatewayStatus.md | 56 + ...gApisCloudV1alpha1GenericPoolMemberSpec.md | 129 + ...iServerPkgApisCloudV1alpha1IdentityPool.md | 160 + ...verPkgApisCloudV1alpha1IdentityPoolList.md | 129 + ...verPkgApisCloudV1alpha1IdentityPoolSpec.md | 114 + ...rPkgApisCloudV1alpha1IdentityPoolStatus.md | 56 + ...iServerPkgApisCloudV1alpha1InstalledCSV.md | 72 + ...ApiServerPkgApisCloudV1alpha1Invitation.md | 72 + ...ApisCloudV1alpha1LakehouseStorageConfig.md | 145 + ...erPkgApisCloudV1alpha1MaintenanceWindow.md | 72 + ...ApiServerPkgApisCloudV1alpha1MasterAuth.md | 186 + ...oudApiServerPkgApisCloudV1alpha1Network.md | 108 + ...iServerPkgApisCloudV1alpha1OAuth2Config.md | 56 + ...iServerPkgApisCloudV1alpha1OIDCProvider.md | 160 + ...verPkgApisCloudV1alpha1OIDCProviderList.md | 129 + ...verPkgApisCloudV1alpha1OIDCProviderSpec.md | 72 + ...rPkgApisCloudV1alpha1OIDCProviderStatus.md | 56 + ...iServerPkgApisCloudV1alpha1Organization.md | 160 + ...verPkgApisCloudV1alpha1OrganizationList.md | 129 + ...verPkgApisCloudV1alpha1OrganizationSpec.md | 368 + ...rPkgApisCloudV1alpha1OrganizationStatus.md | 134 + ...rPkgApisCloudV1alpha1OrganizationStripe.md | 108 + ...erPkgApisCloudV1alpha1OrganizationSuger.md | 51 + ...eCloudApiServerPkgApisCloudV1alpha1Pool.md | 160 + ...udApiServerPkgApisCloudV1alpha1PoolList.md | 129 + ...ApiServerPkgApisCloudV1alpha1PoolMember.md | 160 + ...V1alpha1PoolMemberConnectionOptionsSpec.md | 82 + ...dV1alpha1PoolMemberIstioGatewaySelector.md | 56 + ...CloudV1alpha1PoolMemberIstioGatewaySpec.md | 72 + ...sCloudV1alpha1PoolMemberIstioGatewayTls.md | 51 + ...PkgApisCloudV1alpha1PoolMemberIstioSpec.md | 77 + ...erverPkgApisCloudV1alpha1PoolMemberList.md | 129 + ...kgApisCloudV1alpha1PoolMemberMonitoring.md | 114 + ...kgApisCloudV1alpha1PoolMemberPulsarSpec.md | 72 + ...loudV1alpha1PoolMemberPulsarSpecCatalog.md | 72 + ...loudV1alpha1PoolMemberPulsarSpecChannel.md | 51 + ...PkgApisCloudV1alpha1PoolMemberReference.md | 72 + ...erverPkgApisCloudV1alpha1PoolMemberSpec.md | 410 + ...verPkgApisCloudV1alpha1PoolMemberStatus.md | 150 + ...loudV1alpha1PoolMemberTieredStorageSpec.md | 56 + ...ApiServerPkgApisCloudV1alpha1PoolOption.md | 160 + ...erverPkgApisCloudV1alpha1PoolOptionList.md | 129 + ...rPkgApisCloudV1alpha1PoolOptionLocation.md | 77 + ...erverPkgApisCloudV1alpha1PoolOptionSpec.md | 140 + ...verPkgApisCloudV1alpha1PoolOptionStatus.md | 56 + ...oudApiServerPkgApisCloudV1alpha1PoolRef.md | 72 + ...udApiServerPkgApisCloudV1alpha1PoolSpec.md | 155 + ...ApiServerPkgApisCloudV1alpha1PoolStatus.md | 56 + ...erverPkgApisCloudV1alpha1PrivateService.md | 56 + ...verPkgApisCloudV1alpha1PrivateServiceId.md | 56 + ...rverPkgApisCloudV1alpha1ProtocolsConfig.md | 108 + ...ServerPkgApisCloudV1alpha1PulsarCluster.md | 160 + ...oudV1alpha1PulsarClusterComponentStatus.md | 108 + ...erPkgApisCloudV1alpha1PulsarClusterList.md | 129 + ...erPkgApisCloudV1alpha1PulsarClusterSpec.md | 379 + ...PkgApisCloudV1alpha1PulsarClusterStatus.md | 238 + ...ServerPkgApisCloudV1alpha1PulsarGateway.md | 160 + ...erPkgApisCloudV1alpha1PulsarGatewayList.md | 129 + ...erPkgApisCloudV1alpha1PulsarGatewaySpec.md | 160 + ...PkgApisCloudV1alpha1PulsarGatewayStatus.md | 103 + ...erverPkgApisCloudV1alpha1PulsarInstance.md | 160 + ...rPkgApisCloudV1alpha1PulsarInstanceAuth.md | 82 + ...rPkgApisCloudV1alpha1PulsarInstanceList.md | 129 + ...rPkgApisCloudV1alpha1PulsarInstanceSpec.md | 155 + ...kgApisCloudV1alpha1PulsarInstanceStatus.md | 77 + ...isCloudV1alpha1PulsarInstanceStatusAuth.md | 72 + ...dV1alpha1PulsarInstanceStatusAuthOAuth2.md | 72 + ...gApisCloudV1alpha1PulsarServiceEndpoint.md | 103 + ...ApiServerPkgApisCloudV1alpha1RBACStatus.md | 108 + ...ApiServerPkgApisCloudV1alpha1RegionInfo.md | 72 + ...eCloudApiServerPkgApisCloudV1alpha1Role.md | 160 + ...piServerPkgApisCloudV1alpha1RoleBinding.md | 160 + ...kgApisCloudV1alpha1RoleBindingCondition.md | 108 + ...rverPkgApisCloudV1alpha1RoleBindingList.md | 129 + ...rverPkgApisCloudV1alpha1RoleBindingSpec.md | 124 + ...erPkgApisCloudV1alpha1RoleBindingStatus.md | 82 + ...erverPkgApisCloudV1alpha1RoleDefinition.md | 82 + ...udApiServerPkgApisCloudV1alpha1RoleList.md | 129 + ...oudApiServerPkgApisCloudV1alpha1RoleRef.md | 93 + ...udApiServerPkgApisCloudV1alpha1RoleSpec.md | 56 + ...ApiServerPkgApisCloudV1alpha1RoleStatus.md | 82 + ...loudApiServerPkgApisCloudV1alpha1Secret.md | 280 + ...ApiServerPkgApisCloudV1alpha1SecretList.md | 129 + ...rverPkgApisCloudV1alpha1SecretReference.md | 77 + ...verPkgApisCloudV1alpha1SelfRegistration.md | 160 + ...PkgApisCloudV1alpha1SelfRegistrationAws.md | 51 + ...kgApisCloudV1alpha1SelfRegistrationSpec.md | 176 + ...gApisCloudV1alpha1SelfRegistrationSuger.md | 51 + ...erverPkgApisCloudV1alpha1ServiceAccount.md | 160 + ...gApisCloudV1alpha1ServiceAccountBinding.md | 160 + ...sCloudV1alpha1ServiceAccountBindingList.md | 129 + ...sCloudV1alpha1ServiceAccountBindingSpec.md | 82 + ...loudV1alpha1ServiceAccountBindingStatus.md | 56 + ...rPkgApisCloudV1alpha1ServiceAccountList.md | 129 + ...kgApisCloudV1alpha1ServiceAccountStatus.md | 108 + ...ServerPkgApisCloudV1alpha1SharingConfig.md | 51 + ...veCloudApiServerPkgApisCloudV1alpha1Srn.md | 290 + ...rPkgApisCloudV1alpha1StripeSubscription.md | 160 + ...ApisCloudV1alpha1StripeSubscriptionList.md | 129 + ...ApisCloudV1alpha1StripeSubscriptionSpec.md | 103 + ...isCloudV1alpha1StripeSubscriptionStatus.md | 108 + ...oudApiServerPkgApisCloudV1alpha1Subject.md | 119 + ...verPkgApisCloudV1alpha1SubscriptionItem.md | 114 + ...isCloudV1alpha1SupportAccessOptionsSpec.md | 82 + ...CloudApiServerPkgApisCloudV1alpha1Taint.md | 124 + ...ApiServerPkgApisCloudV1alpha1Toleration.md | 134 + ...eCloudApiServerPkgApisCloudV1alpha1User.md | 160 + ...udApiServerPkgApisCloudV1alpha1UserList.md | 129 + ...udApiServerPkgApisCloudV1alpha1UserName.md | 72 + ...udApiServerPkgApisCloudV1alpha1UserSpec.md | 129 + ...ApiServerPkgApisCloudV1alpha1UserStatus.md | 56 + ...loudApiServerPkgApisCloudV1alpha1Window.md | 72 + ...gApisCloudV1alpha1ZooKeeperSetReference.md | 77 + ...rverPkgApisCloudV1alpha2AWSSubscription.md | 160 + ...PkgApisCloudV1alpha2AWSSubscriptionList.md | 129 + ...PkgApisCloudV1alpha2AWSSubscriptionSpec.md | 82 + ...gApisCloudV1alpha2AWSSubscriptionStatus.md | 56 + ...ApisCloudV1alpha2BookKeeperResourceSpec.md | 82 + ...ServerPkgApisCloudV1alpha2BookKeeperSet.md | 160 + ...erPkgApisCloudV1alpha2BookKeeperSetList.md | 129 + ...PkgApisCloudV1alpha2BookKeeperSetOption.md | 160 + ...pisCloudV1alpha2BookKeeperSetOptionList.md | 129 + ...pisCloudV1alpha2BookKeeperSetOptionSpec.md | 51 + ...sCloudV1alpha2BookKeeperSetOptionStatus.md | 56 + ...ApisCloudV1alpha2BookKeeperSetReference.md | 77 + ...erPkgApisCloudV1alpha2BookKeeperSetSpec.md | 233 + ...PkgApisCloudV1alpha2BookKeeperSetStatus.md | 82 + ...ApisCloudV1alpha2BookkeeperNodeResource.md | 103 + ...dApiServerPkgApisCloudV1alpha2Condition.md | 176 + ...PkgApisCloudV1alpha2DefaultNodeResource.md | 124 + ...ApiServerPkgApisCloudV1alpha2MonitorSet.md | 160 + ...erverPkgApisCloudV1alpha2MonitorSetList.md | 129 + ...erverPkgApisCloudV1alpha2MonitorSetSpec.md | 134 + ...verPkgApisCloudV1alpha2MonitorSetStatus.md | 56 + ...PkgApisCloudV1alpha2PoolMemberReference.md | 72 + ...ServerPkgApisCloudV1alpha2SharingConfig.md | 51 + ...gApisCloudV1alpha2ZooKeeperResourceSpec.md | 82 + ...iServerPkgApisCloudV1alpha2ZooKeeperSet.md | 160 + ...verPkgApisCloudV1alpha2ZooKeeperSetList.md | 129 + ...rPkgApisCloudV1alpha2ZooKeeperSetOption.md | 160 + ...ApisCloudV1alpha2ZooKeeperSetOptionList.md | 129 + ...ApisCloudV1alpha2ZooKeeperSetOptionSpec.md | 51 + ...isCloudV1alpha2ZooKeeperSetOptionStatus.md | 56 + ...gApisCloudV1alpha2ZooKeeperSetReference.md | 77 + ...verPkgApisCloudV1alpha2ZooKeeperSetSpec.md | 238 + ...rPkgApisCloudV1alpha2ZooKeeperSetStatus.md | 82 + ...ApiServerPkgApisComputeV1alpha1Artifact.md | 446 + ...piServerPkgApisComputeV1alpha1Condition.md | 176 + ...piServerPkgApisComputeV1alpha1Container.md | 389 + ...rPkgApisComputeV1alpha1FlinkBlobStorage.md | 82 + ...erPkgApisComputeV1alpha1FlinkDeployment.md | 160 + ...gApisComputeV1alpha1FlinkDeploymentList.md | 129 + ...gApisComputeV1alpha1FlinkDeploymentSpec.md | 207 + ...pisComputeV1alpha1FlinkDeploymentStatus.md | 108 + ...dApiServerPkgApisComputeV1alpha1Logging.md | 108 + ...iServerPkgApisComputeV1alpha1ObjectMeta.md | 134 + ...ServerPkgApisComputeV1alpha1PodTemplate.md | 82 + ...erPkgApisComputeV1alpha1PodTemplateSpec.md | 290 + ...gApisComputeV1alpha1PoolMemberReference.md | 72 + ...dApiServerPkgApisComputeV1alpha1PoolRef.md | 72 + ...erverPkgApisComputeV1alpha1ResourceSpec.md | 72 + ...erPkgApisComputeV1alpha1SecurityContext.md | 160 + ...erverPkgApisComputeV1alpha1UserMetadata.md | 160 + ...udApiServerPkgApisComputeV1alpha1Volume.md | 103 + ...sComputeV1alpha1VvpCustomResourceStatus.md | 160 + ...ApisComputeV1alpha1VvpDeploymentDetails.md | 233 + ...uteV1alpha1VvpDeploymentDetailsTemplate.md | 77 + ...ha1VvpDeploymentDetailsTemplateMetadata.md | 56 + ...1alpha1VvpDeploymentDetailsTemplateSpec.md | 233 + ...oymentDetailsTemplateSpecKubernetesSpec.md | 108 + ...1alpha1VvpDeploymentKubernetesResources.md | 82 + ...mputeV1alpha1VvpDeploymentRunningStatus.md | 108 + ...gApisComputeV1alpha1VvpDeploymentStatus.md | 108 + ...uteV1alpha1VvpDeploymentStatusCondition.md | 176 + ...pha1VvpDeploymentStatusDeploymentStatus.md | 82 + ...puteV1alpha1VvpDeploymentSystemMetadata.md | 186 + ...pisComputeV1alpha1VvpDeploymentTemplate.md | 77 + ...omputeV1alpha1VvpDeploymentTemplateSpec.md | 72 + ...kgApisComputeV1alpha1VvpRestoreStrategy.md | 82 + ...piServerPkgApisComputeV1alpha1Workspace.md | 160 + ...rverPkgApisComputeV1alpha1WorkspaceList.md | 129 + ...rverPkgApisComputeV1alpha1WorkspaceSpec.md | 124 + ...erPkgApisComputeV1alpha1WorkspaceStatus.md | 56 + .../docs/ComputeStreamnativeIoApi.md | 70 + .../docs/ComputeStreamnativeIoV1alpha1Api.md | 2978 + sdk/sdk-apiserver/docs/CustomObjectsApi.md | 2498 + sdk/sdk-apiserver/docs/V1APIGroup.md | 176 + sdk/sdk-apiserver/docs/V1APIGroupList.md | 103 + sdk/sdk-apiserver/docs/V1APIResource.md | 265 + sdk/sdk-apiserver/docs/V1APIResourceList.md | 124 + sdk/sdk-apiserver/docs/V1Affinity.md | 108 + sdk/sdk-apiserver/docs/V1Condition.md | 161 + .../docs/V1ConfigMapEnvSource.md | 82 + .../docs/V1ConfigMapKeySelector.md | 103 + .../docs/V1ConfigMapVolumeSource.md | 134 + sdk/sdk-apiserver/docs/V1DeleteOptions.md | 212 + sdk/sdk-apiserver/docs/V1EnvFromSource.md | 108 + sdk/sdk-apiserver/docs/V1EnvVar.md | 103 + sdk/sdk-apiserver/docs/V1EnvVarSource.md | 134 + sdk/sdk-apiserver/docs/V1ExecAction.md | 56 + sdk/sdk-apiserver/docs/V1GRPCAction.md | 77 + .../docs/V1GroupVersionForDiscovery.md | 72 + sdk/sdk-apiserver/docs/V1HTTPGetAction.md | 155 + sdk/sdk-apiserver/docs/V1HTTPHeader.md | 72 + sdk/sdk-apiserver/docs/V1KeyToPath.md | 98 + sdk/sdk-apiserver/docs/V1LabelSelector.md | 82 + .../docs/V1LabelSelectorRequirement.md | 98 + sdk/sdk-apiserver/docs/V1ListMeta.md | 134 + .../docs/V1LocalObjectReference.md | 56 + .../docs/V1ManagedFieldsEntry.md | 212 + sdk/sdk-apiserver/docs/V1NodeAffinity.md | 82 + sdk/sdk-apiserver/docs/V1NodeSelector.md | 51 + .../docs/V1NodeSelectorRequirement.md | 98 + sdk/sdk-apiserver/docs/V1NodeSelectorTerm.md | 82 + .../docs/V1ObjectFieldSelector.md | 77 + sdk/sdk-apiserver/docs/V1ObjectMeta.md | 446 + sdk/sdk-apiserver/docs/V1OwnerReference.md | 166 + sdk/sdk-apiserver/docs/V1PodAffinity.md | 82 + sdk/sdk-apiserver/docs/V1PodAffinityTerm.md | 129 + sdk/sdk-apiserver/docs/V1PodAntiAffinity.md | 82 + sdk/sdk-apiserver/docs/V1Preconditions.md | 82 + .../docs/V1PreferredSchedulingTerm.md | 72 + sdk/sdk-apiserver/docs/V1Probe.md | 290 + .../docs/V1ResourceFieldSelector.md | 103 + .../docs/V1ResourceRequirements.md | 82 + sdk/sdk-apiserver/docs/V1SecretEnvSource.md | 82 + sdk/sdk-apiserver/docs/V1SecretKeySelector.md | 103 + .../docs/V1SecretVolumeSource.md | 134 + .../docs/V1ServerAddressByClientCIDR.md | 72 + sdk/sdk-apiserver/docs/V1Status.md | 238 + sdk/sdk-apiserver/docs/V1StatusCause.md | 108 + sdk/sdk-apiserver/docs/V1StatusDetails.md | 186 + sdk/sdk-apiserver/docs/V1TCPSocketAction.md | 77 + sdk/sdk-apiserver/docs/V1Toleration.md | 160 + sdk/sdk-apiserver/docs/V1VolumeMount.md | 176 + sdk/sdk-apiserver/docs/V1WatchEvent.md | 72 + .../docs/V1WeightedPodAffinityTerm.md | 72 + sdk/sdk-apiserver/docs/VersionApi.md | 70 + sdk/sdk-apiserver/docs/VersionInfo.md | 219 + sdk/sdk-apiserver/git_push.sh | 61 + sdk/sdk-apiserver/go.mod | 8 + sdk/sdk-apiserver/go.sum | 2 + ...is_authorization_v1alpha1_cloud_storage.go | 157 + ...g_apis_authorization_v1alpha1_condition.go | 251 + ...apis_authorization_v1alpha1_iam_account.go | 265 + ...authorization_v1alpha1_iam_account_list.go | 222 + ...authorization_v1alpha1_iam_account_spec.go | 227 + ...thorization_v1alpha1_iam_account_status.go | 120 + ...pis_authorization_v1alpha1_organization.go | 112 + ...rization_v1alpha1_pool_member_reference.go | 141 + ...is_authorization_v1alpha1_resource_rule.go | 224 + ...kg_apis_authorization_v1alpha1_role_ref.go | 206 + ...ation_v1alpha1_self_subject_rbac_review.go | 265 + ..._v1alpha1_self_subject_rbac_review_spec.go | 119 + ...1alpha1_self_subject_rbac_review_status.go | 119 + ...tion_v1alpha1_self_subject_rules_review.go | 265 + ...v1alpha1_self_subject_rules_review_spec.go | 119 + ...alpha1_self_subject_rules_review_status.go | 180 + ...ation_v1alpha1_self_subject_user_review.go | 266 + ...1alpha1_self_subject_user_review_status.go | 112 + ...horization_v1alpha1_subject_role_review.go | 265 + ...ation_v1alpha1_subject_role_review_spec.go | 120 + ...ion_v1alpha1_subject_role_review_status.go | 112 + ...orization_v1alpha1_subject_rules_review.go | 265 + ...tion_v1alpha1_subject_rules_review_spec.go | 156 + ...on_v1alpha1_subject_rules_review_status.go | 180 + ...kg_apis_authorization_v1alpha1_user_ref.go | 228 + ...illing_v1alpha1_customer_portal_request.go | 265 + ...g_v1alpha1_customer_portal_request_spec.go | 156 + ...v1alpha1_customer_portal_request_status.go | 192 + ...er_pkg_apis_billing_v1alpha1_offer_item.go | 266 + ..._apis_billing_v1alpha1_offer_item_price.go | 303 + ...ing_v1alpha1_offer_item_price_recurring.go | 229 + ...g_apis_billing_v1alpha1_offer_reference.go | 177 + ...kg_apis_billing_v1alpha1_payment_intent.go | 265 + ...is_billing_v1alpha1_payment_intent_list.go | 222 + ...is_billing_v1alpha1_payment_intent_spec.go | 191 + ..._billing_v1alpha1_payment_intent_status.go | 120 + ...g_apis_billing_v1alpha1_price_reference.go | 156 + ...pkg_apis_billing_v1alpha1_private_offer.go | 266 + ...pis_billing_v1alpha1_private_offer_list.go | 222 + ...pis_billing_v1alpha1_private_offer_spec.go | 378 + ...erver_pkg_apis_billing_v1alpha1_product.go | 265 + ..._pkg_apis_billing_v1alpha1_product_list.go | 222 + ...pkg_apis_billing_v1alpha1_product_price.go | 156 + ...apis_billing_v1alpha1_product_reference.go | 155 + ..._pkg_apis_billing_v1alpha1_product_spec.go | 266 + ...kg_apis_billing_v1alpha1_product_status.go | 157 + ...s_billing_v1alpha1_product_status_price.go | 155 + ..._pkg_apis_billing_v1alpha1_public_offer.go | 266 + ...apis_billing_v1alpha1_public_offer_list.go | 222 + ...apis_billing_v1alpha1_public_offer_spec.go | 229 + ..._pkg_apis_billing_v1alpha1_setup_intent.go | 265 + ...apis_billing_v1alpha1_setup_intent_list.go | 222 + ...billing_v1alpha1_setup_intent_reference.go | 155 + ...apis_billing_v1alpha1_setup_intent_spec.go | 155 + ...is_billing_v1alpha1_setup_intent_status.go | 120 + ...ha1_stripe_customer_portal_request_spec.go | 120 + ...1_stripe_customer_portal_request_status.go | 120 + ..._billing_v1alpha1_stripe_payment_intent.go | 155 + ...illing_v1alpha1_stripe_price_recurrence.go | 229 + ...apis_billing_v1alpha1_stripe_price_spec.go | 341 + ...is_billing_v1alpha1_stripe_product_spec.go | 120 + ...is_billing_v1alpha1_stripe_setup_intent.go | 157 + ...lling_v1alpha1_stripe_subscription_spec.go | 194 + ..._pkg_apis_billing_v1alpha1_subscription.go | 265 + ...is_billing_v1alpha1_subscription_intent.go | 265 + ...lling_v1alpha1_subscription_intent_list.go | 222 + ...lling_v1alpha1_subscription_intent_spec.go | 192 + ...ing_v1alpha1_subscription_intent_status.go | 228 + ...apis_billing_v1alpha1_subscription_item.go | 230 + ...apis_billing_v1alpha1_subscription_list.go | 222 + ...billing_v1alpha1_subscription_reference.go | 155 + ...apis_billing_v1alpha1_subscription_spec.go | 524 + ...is_billing_v1alpha1_subscription_status.go | 193 + ...1_subscription_status_subscription_item.go | 231 + ...lling_v1alpha1_suger_entitlement_review.go | 265 + ..._v1alpha1_suger_entitlement_review_spec.go | 120 + ...1alpha1_suger_entitlement_review_status.go | 231 + ...pkg_apis_billing_v1alpha1_suger_product.go | 150 + ...pis_billing_v1alpha1_suger_product_spec.go | 194 + ...v1alpha1_suger_subscription_intent_spec.go | 157 + ...illing_v1alpha1_suger_subscription_spec.go | 187 + ...er_pkg_apis_billing_v1alpha1_test_clock.go | 265 + ...g_apis_billing_v1alpha1_test_clock_list.go | 222 + ...g_apis_billing_v1alpha1_test_clock_spec.go | 151 + ...apis_billing_v1alpha1_test_clock_status.go | 156 + ...i_server_pkg_apis_billing_v1alpha1_tier.go | 194 + ..._server_pkg_apis_cloud_v1alpha1_api_key.go | 265 + ...er_pkg_apis_cloud_v1alpha1_api_key_list.go | 222 + ...er_pkg_apis_cloud_v1alpha1_api_key_spec.go | 305 + ..._pkg_apis_cloud_v1alpha1_api_key_status.go | 342 + ...erver_pkg_apis_cloud_v1alpha1_audit_log.go | 112 + ...apis_cloud_v1alpha1_auto_scaling_policy.go | 148 + ...pis_cloud_v1alpha1_aws_cloud_connection.go | 112 + ...pis_cloud_v1alpha1_aws_pool_member_spec.go | 291 + ...kg_apis_cloud_v1alpha1_azure_connection.go | 199 + ...s_cloud_v1alpha1_azure_pool_member_spec.go | 263 + ...pis_cloud_v1alpha1_billing_account_spec.go | 112 + ...ver_pkg_apis_cloud_v1alpha1_book_keeper.go | 258 + ...v1alpha1_book_keeper_node_resource_spec.go | 157 + ...loud_v1alpha1_book_keeper_set_reference.go | 148 + ...cloud_v1alpha1_bookkeeper_node_resource.go | 291 + ...i_server_pkg_apis_cloud_v1alpha1_broker.go | 258 + ...loud_v1alpha1_broker_node_resource_spec.go | 120 + ...pi_server_pkg_apis_cloud_v1alpha1_chain.go | 155 + ...kg_apis_cloud_v1alpha1_cloud_connection.go | 265 + ...is_cloud_v1alpha1_cloud_connection_list.go | 222 + ...is_cloud_v1alpha1_cloud_connection_spec.go | 220 + ..._cloud_v1alpha1_cloud_connection_status.go | 192 + ...g_apis_cloud_v1alpha1_cloud_environment.go | 265 + ...s_cloud_v1alpha1_cloud_environment_list.go | 222 + ...s_cloud_v1alpha1_cloud_environment_spec.go | 302 + ...cloud_v1alpha1_cloud_environment_status.go | 156 + ...er_pkg_apis_cloud_v1alpha1_cluster_role.go | 265 + ...pis_cloud_v1alpha1_cluster_role_binding.go | 265 + ...loud_v1alpha1_cluster_role_binding_list.go | 222 + ...loud_v1alpha1_cluster_role_binding_spec.go | 141 + ...ud_v1alpha1_cluster_role_binding_status.go | 120 + ...g_apis_cloud_v1alpha1_cluster_role_list.go | 222 + ...g_apis_cloud_v1alpha1_cluster_role_spec.go | 120 + ...apis_cloud_v1alpha1_cluster_role_status.go | 157 + ...erver_pkg_apis_cloud_v1alpha1_condition.go | 288 + ...pkg_apis_cloud_v1alpha1_condition_group.go | 184 + ...i_server_pkg_apis_cloud_v1alpha1_config.go | 339 + ...is_cloud_v1alpha1_default_node_resource.go | 217 + ..._api_server_pkg_apis_cloud_v1alpha1_dns.go | 157 + ...i_server_pkg_apis_cloud_v1alpha1_domain.go | 184 + ...rver_pkg_apis_cloud_v1alpha1_domain_tls.go | 120 + ...pkg_apis_cloud_v1alpha1_encrypted_token.go | 120 + ..._pkg_apis_cloud_v1alpha1_encryption_key.go | 157 + ...pkg_apis_cloud_v1alpha1_endpoint_access.go | 120 + ...ver_pkg_apis_cloud_v1alpha1_exec_config.go | 224 + ...er_pkg_apis_cloud_v1alpha1_exec_env_var.go | 141 + ..._pkg_apis_cloud_v1alpha1_failed_cluster.go | 173 + ...apis_cloud_v1alpha1_failed_cluster_role.go | 143 + ...ver_pkg_apis_cloud_v1alpha1_failed_role.go | 173 + ...apis_cloud_v1alpha1_failed_role_binding.go | 173 + ...loud_v1alpha1_g_cloud_organization_spec.go | 112 + ...cloud_v1alpha1_g_cloud_pool_member_spec.go | 334 + ..._server_pkg_apis_cloud_v1alpha1_gateway.go | 156 + ..._pkg_apis_cloud_v1alpha1_gateway_status.go | 120 + ...pis_cloud_v1alpha1_gcp_cloud_connection.go | 112 + ...cloud_v1alpha1_generic_pool_member_spec.go | 223 + ...r_pkg_apis_cloud_v1alpha1_identity_pool.go | 265 + ..._apis_cloud_v1alpha1_identity_pool_list.go | 222 + ..._apis_cloud_v1alpha1_identity_pool_spec.go | 199 + ...pis_cloud_v1alpha1_identity_pool_status.go | 120 + ...r_pkg_apis_cloud_v1alpha1_installed_csv.go | 141 + ...rver_pkg_apis_cloud_v1alpha1_invitation.go | 144 + ...cloud_v1alpha1_lakehouse_storage_config.go | 243 + ..._apis_cloud_v1alpha1_maintenance_window.go | 142 + ...ver_pkg_apis_cloud_v1alpha1_master_auth.go | 304 + ..._server_pkg_apis_cloud_v1alpha1_network.go | 194 + ..._pkg_apis_cloud_v1alpha1_o_auth2_config.go | 120 + ...r_pkg_apis_cloud_v1alpha1_oidc_provider.go | 265 + ..._apis_cloud_v1alpha1_oidc_provider_list.go | 222 + ..._apis_cloud_v1alpha1_oidc_provider_spec.go | 141 + ...pis_cloud_v1alpha1_oidc_provider_status.go | 120 + ...er_pkg_apis_cloud_v1alpha1_organization.go | 265 + ...g_apis_cloud_v1alpha1_organization_list.go | 222 + ...g_apis_cloud_v1alpha1_organization_spec.go | 556 + ...apis_cloud_v1alpha1_organization_status.go | 231 + ...apis_cloud_v1alpha1_organization_stripe.go | 194 + ..._apis_cloud_v1alpha1_organization_suger.go | 112 + ...api_server_pkg_apis_cloud_v1alpha1_pool.go | 265 + ...erver_pkg_apis_cloud_v1alpha1_pool_list.go | 222 + ...ver_pkg_apis_cloud_v1alpha1_pool_member.go | 265 + ...ha1_pool_member_connection_options_spec.go | 157 + ...pha1_pool_member_istio_gateway_selector.go | 120 + ...v1alpha1_pool_member_istio_gateway_spec.go | 141 + ..._v1alpha1_pool_member_istio_gateway_tls.go | 113 + ...s_cloud_v1alpha1_pool_member_istio_spec.go | 149 + ...kg_apis_cloud_v1alpha1_pool_member_list.go | 222 + ...s_cloud_v1alpha1_pool_member_monitoring.go | 202 + ..._cloud_v1alpha1_pool_member_pulsar_spec.go | 141 + ...1alpha1_pool_member_pulsar_spec_catalog.go | 142 + ...1alpha1_pool_member_pulsar_spec_channel.go | 112 + ...is_cloud_v1alpha1_pool_member_reference.go | 141 + ...kg_apis_cloud_v1alpha1_pool_member_spec.go | 609 + ..._apis_cloud_v1alpha1_pool_member_status.go | 252 + ...1alpha1_pool_member_tiered_storage_spec.go | 119 + ...ver_pkg_apis_cloud_v1alpha1_pool_option.go | 265 + ...kg_apis_cloud_v1alpha1_pool_option_list.go | 222 + ...pis_cloud_v1alpha1_pool_option_location.go | 148 + ...kg_apis_cloud_v1alpha1_pool_option_spec.go | 235 + ..._apis_cloud_v1alpha1_pool_option_status.go | 120 + ...server_pkg_apis_cloud_v1alpha1_pool_ref.go | 141 + ...erver_pkg_apis_cloud_v1alpha1_pool_spec.go | 258 + ...ver_pkg_apis_cloud_v1alpha1_pool_status.go | 120 + ...pkg_apis_cloud_v1alpha1_private_service.go | 120 + ..._apis_cloud_v1alpha1_private_service_id.go | 120 + ...kg_apis_cloud_v1alpha1_protocols_config.go | 194 + ..._pkg_apis_cloud_v1alpha1_pulsar_cluster.go | 265 + ...1alpha1_pulsar_cluster_component_status.go | 194 + ...apis_cloud_v1alpha1_pulsar_cluster_list.go | 222 + ...apis_cloud_v1alpha1_pulsar_cluster_spec.go | 567 + ...is_cloud_v1alpha1_pulsar_cluster_status.go | 374 + ..._pkg_apis_cloud_v1alpha1_pulsar_gateway.go | 265 + ...apis_cloud_v1alpha1_pulsar_gateway_list.go | 222 + ...apis_cloud_v1alpha1_pulsar_gateway_spec.go | 266 + ...is_cloud_v1alpha1_pulsar_gateway_status.go | 187 + ...pkg_apis_cloud_v1alpha1_pulsar_instance.go | 265 + ...pis_cloud_v1alpha1_pulsar_instance_auth.go | 156 + ...pis_cloud_v1alpha1_pulsar_instance_list.go | 222 + ...pis_cloud_v1alpha1_pulsar_instance_spec.go | 259 + ...s_cloud_v1alpha1_pulsar_instance_status.go | 149 + ...ud_v1alpha1_pulsar_instance_status_auth.go | 141 + ...ha1_pulsar_instance_status_auth_o_auth2.go | 141 + ..._cloud_v1alpha1_pulsar_service_endpoint.go | 185 + ...ver_pkg_apis_cloud_v1alpha1_rbac_status.go | 191 + ...ver_pkg_apis_cloud_v1alpha1_region_info.go | 141 + ...api_server_pkg_apis_cloud_v1alpha1_role.go | 265 + ...er_pkg_apis_cloud_v1alpha1_role_binding.go | 265 + ...s_cloud_v1alpha1_role_binding_condition.go | 191 + ...g_apis_cloud_v1alpha1_role_binding_list.go | 222 + ...g_apis_cloud_v1alpha1_role_binding_spec.go | 213 + ...apis_cloud_v1alpha1_role_binding_status.go | 157 + ...pkg_apis_cloud_v1alpha1_role_definition.go | 155 + ...erver_pkg_apis_cloud_v1alpha1_role_list.go | 222 + ...server_pkg_apis_cloud_v1alpha1_role_ref.go | 170 + ...erver_pkg_apis_cloud_v1alpha1_role_spec.go | 120 + ...ver_pkg_apis_cloud_v1alpha1_role_status.go | 157 + ...i_server_pkg_apis_cloud_v1alpha1_secret.go | 432 + ...ver_pkg_apis_cloud_v1alpha1_secret_list.go | 222 + ...kg_apis_cloud_v1alpha1_secret_reference.go | 148 + ...g_apis_cloud_v1alpha1_self_registration.go | 266 + ...is_cloud_v1alpha1_self_registration_aws.go | 112 + ...s_cloud_v1alpha1_self_registration_spec.go | 285 + ..._cloud_v1alpha1_self_registration_suger.go | 112 + ...pkg_apis_cloud_v1alpha1_service_account.go | 266 + ..._cloud_v1alpha1_service_account_binding.go | 265 + ...d_v1alpha1_service_account_binding_list.go | 222 + ...d_v1alpha1_service_account_binding_spec.go | 156 + ...v1alpha1_service_account_binding_status.go | 120 + ...pis_cloud_v1alpha1_service_account_list.go | 222 + ...s_cloud_v1alpha1_service_account_status.go | 194 + ..._pkg_apis_cloud_v1alpha1_sharing_config.go | 112 + ..._api_server_pkg_apis_cloud_v1alpha1_srn.go | 443 + ...apis_cloud_v1alpha1_stripe_subscription.go | 265 + ...cloud_v1alpha1_stripe_subscription_list.go | 222 + ...cloud_v1alpha1_stripe_subscription_spec.go | 187 + ...oud_v1alpha1_stripe_subscription_status.go | 194 + ..._server_pkg_apis_cloud_v1alpha1_subject.go | 206 + ...g_apis_cloud_v1alpha1_subscription_item.go | 199 + ...ud_v1alpha1_support_access_options_spec.go | 156 + ...pi_server_pkg_apis_cloud_v1alpha1_taint.go | 218 + ...rver_pkg_apis_cloud_v1alpha1_toleration.go | 231 + ...api_server_pkg_apis_cloud_v1alpha1_user.go | 265 + ...erver_pkg_apis_cloud_v1alpha1_user_list.go | 222 + ...erver_pkg_apis_cloud_v1alpha1_user_name.go | 141 + ...erver_pkg_apis_cloud_v1alpha1_user_spec.go | 220 + ...ver_pkg_apis_cloud_v1alpha1_user_status.go | 120 + ...i_server_pkg_apis_cloud_v1alpha1_window.go | 143 + ...cloud_v1alpha1_zoo_keeper_set_reference.go | 148 + ...kg_apis_cloud_v1alpha2_aws_subscription.go | 265 + ...is_cloud_v1alpha2_aws_subscription_list.go | 222 + ...is_cloud_v1alpha2_aws_subscription_spec.go | 155 + ..._cloud_v1alpha2_aws_subscription_status.go | 120 + ...loud_v1alpha2_book_keeper_resource_spec.go | 157 + ...pkg_apis_cloud_v1alpha2_book_keeper_set.go | 265 + ...pis_cloud_v1alpha2_book_keeper_set_list.go | 222 + ...s_cloud_v1alpha2_book_keeper_set_option.go | 265 + ...ud_v1alpha2_book_keeper_set_option_list.go | 222 + ...ud_v1alpha2_book_keeper_set_option_spec.go | 112 + ..._v1alpha2_book_keeper_set_option_status.go | 120 + ...loud_v1alpha2_book_keeper_set_reference.go | 148 + ...pis_cloud_v1alpha2_book_keeper_set_spec.go | 367 + ...s_cloud_v1alpha2_book_keeper_set_status.go | 157 + ...cloud_v1alpha2_bookkeeper_node_resource.go | 186 + ...erver_pkg_apis_cloud_v1alpha2_condition.go | 288 + ...is_cloud_v1alpha2_default_node_resource.go | 217 + ...ver_pkg_apis_cloud_v1alpha2_monitor_set.go | 265 + ...kg_apis_cloud_v1alpha2_monitor_set_list.go | 222 + ...kg_apis_cloud_v1alpha2_monitor_set_spec.go | 229 + ..._apis_cloud_v1alpha2_monitor_set_status.go | 120 + ...is_cloud_v1alpha2_pool_member_reference.go | 141 + ..._pkg_apis_cloud_v1alpha2_sharing_config.go | 112 + ...cloud_v1alpha2_zoo_keeper_resource_spec.go | 157 + ..._pkg_apis_cloud_v1alpha2_zoo_keeper_set.go | 265 + ...apis_cloud_v1alpha2_zoo_keeper_set_list.go | 222 + ...is_cloud_v1alpha2_zoo_keeper_set_option.go | 265 + ...oud_v1alpha2_zoo_keeper_set_option_list.go | 222 + ...oud_v1alpha2_zoo_keeper_set_option_spec.go | 112 + ...d_v1alpha2_zoo_keeper_set_option_status.go | 120 + ...cloud_v1alpha2_zoo_keeper_set_reference.go | 148 + ...apis_cloud_v1alpha2_zoo_keeper_set_spec.go | 375 + ...is_cloud_v1alpha2_zoo_keeper_set_status.go | 157 + ...rver_pkg_apis_compute_v1alpha1_artifact.go | 659 + ...ver_pkg_apis_compute_v1alpha1_condition.go | 288 + ...ver_pkg_apis_compute_v1alpha1_container.go | 589 + ...pis_compute_v1alpha1_flink_blob_storage.go | 157 + ..._apis_compute_v1alpha1_flink_deployment.go | 265 + ..._compute_v1alpha1_flink_deployment_list.go | 222 + ..._compute_v1alpha1_flink_deployment_spec.go | 331 + ...ompute_v1alpha1_flink_deployment_status.go | 193 + ...erver_pkg_apis_compute_v1alpha1_logging.go | 191 + ...r_pkg_apis_compute_v1alpha1_object_meta.go | 231 + ..._pkg_apis_compute_v1alpha1_pod_template.go | 155 + ...apis_compute_v1alpha1_pod_template_spec.go | 443 + ..._compute_v1alpha1_pool_member_reference.go | 141 + ...rver_pkg_apis_compute_v1alpha1_pool_ref.go | 141 + ...pkg_apis_compute_v1alpha1_resource_spec.go | 143 + ..._apis_compute_v1alpha1_security_context.go | 264 + ...pkg_apis_compute_v1alpha1_user_metadata.go | 263 + ...server_pkg_apis_compute_v1alpha1_volume.go | 185 + ...ute_v1alpha1_vvp_custom_resource_status.go | 263 + ...compute_v1alpha1_vvp_deployment_details.go | 364 + ...1alpha1_vvp_deployment_details_template.go | 148 + ...vp_deployment_details_template_metadata.go | 119 + ...a1_vvp_deployment_details_template_spec.go | 364 + ...t_details_template_spec_kubernetes_spec.go | 191 + ...ha1_vvp_deployment_kubernetes_resources.go | 155 + ..._v1alpha1_vvp_deployment_running_status.go | 194 + ..._compute_v1alpha1_vvp_deployment_status.go | 191 + ...1alpha1_vvp_deployment_status_condition.go | 288 + ...vvp_deployment_status_deployment_status.go | 155 + ...v1alpha1_vvp_deployment_system_metadata.go | 302 + ...ompute_v1alpha1_vvp_deployment_template.go | 148 + ...e_v1alpha1_vvp_deployment_template_spec.go | 141 + ...s_compute_v1alpha1_vvp_restore_strategy.go | 155 + ...ver_pkg_apis_compute_v1alpha1_workspace.go | 265 + ...kg_apis_compute_v1alpha1_workspace_list.go | 222 + ...kg_apis_compute_v1alpha1_workspace_spec.go | 215 + ..._apis_compute_v1alpha1_workspace_status.go | 120 + sdk/sdk-apiserver/model_v1_affinity.go | 191 + sdk/sdk-apiserver/model_v1_api_group.go | 290 + sdk/sdk-apiserver/model_v1_api_group_list.go | 187 + sdk/sdk-apiserver/model_v1_api_resource.go | 418 + .../model_v1_api_resource_list.go | 217 + sdk/sdk-apiserver/model_v1_condition.go | 271 + .../model_v1_config_map_env_source.go | 157 + .../model_v1_config_map_key_selector.go | 187 + .../model_v1_config_map_volume_source.go | 231 + sdk/sdk-apiserver/model_v1_delete_options.go | 341 + sdk/sdk-apiserver/model_v1_env_from_source.go | 192 + sdk/sdk-apiserver/model_v1_env_var.go | 186 + sdk/sdk-apiserver/model_v1_env_var_source.go | 227 + sdk/sdk-apiserver/model_v1_exec_action.go | 120 + .../model_v1_group_version_for_discovery.go | 143 + sdk/sdk-apiserver/model_v1_grpc_action.go | 150 + sdk/sdk-apiserver/model_v1_http_get_action.go | 261 + sdk/sdk-apiserver/model_v1_http_header.go | 143 + sdk/sdk-apiserver/model_v1_key_to_path.go | 180 + sdk/sdk-apiserver/model_v1_label_selector.go | 157 + .../model_v1_label_selector_requirement.go | 180 + sdk/sdk-apiserver/model_v1_list_meta.go | 231 + .../model_v1_local_object_reference.go | 120 + .../model_v1_managed_fields_entry.go | 343 + sdk/sdk-apiserver/model_v1_node_affinity.go | 156 + sdk/sdk-apiserver/model_v1_node_selector.go | 113 + .../model_v1_node_selector_requirement.go | 180 + .../model_v1_node_selector_term.go | 157 + .../model_v1_object_field_selector.go | 150 + sdk/sdk-apiserver/model_v1_object_meta.go | 676 + sdk/sdk-apiserver/model_v1_owner_reference.go | 277 + sdk/sdk-apiserver/model_v1_pod_affinity.go | 157 + .../model_v1_pod_affinity_term.go | 222 + .../model_v1_pod_anti_affinity.go | 157 + sdk/sdk-apiserver/model_v1_preconditions.go | 157 + .../model_v1_preferred_scheduling_term.go | 142 + sdk/sdk-apiserver/model_v1_probe.go | 449 + .../model_v1_resource_field_selector.go | 187 + .../model_v1_resource_requirements.go | 157 + .../model_v1_secret_env_source.go | 157 + .../model_v1_secret_key_selector.go | 187 + .../model_v1_secret_volume_source.go | 231 + .../model_v1_server_address_by_client_cidr.go | 143 + sdk/sdk-apiserver/model_v1_status.go | 377 + sdk/sdk-apiserver/model_v1_status_cause.go | 194 + sdk/sdk-apiserver/model_v1_status_details.go | 305 + .../model_v1_tcp_socket_action.go | 150 + sdk/sdk-apiserver/model_v1_toleration.go | 268 + sdk/sdk-apiserver/model_v1_volume_mount.go | 291 + sdk/sdk-apiserver/model_v1_watch_event.go | 142 + .../model_v1_weighted_pod_affinity_term.go | 142 + sdk/sdk-apiserver/model_version_info.go | 344 + sdk/sdk-apiserver/response.go | 51 + sdk/sdk-apiserver/settings | 19 + sdk/sdk-apiserver/swagger.json | 67654 +++++++++ sdk/sdk-apiserver/swagger.json.unprocessed | 65358 +++++++++ sdk/sdk-apiserver/utils.go | 332 + sdk/sdk-kafkaconnect/HOW_TO_BUILD.md | 10 + sdk/sdk-kafkaconnect/README.md | 168 + sdk/sdk-kafkaconnect/api_default.go | 2720 + sdk/sdk-kafkaconnect/client.go | 661 + sdk/sdk-kafkaconnect/configuration.go | 218 + sdk/sdk-kafkaconnect/git_push.sh | 57 + sdk/sdk-kafkaconnect/go.mod | 3 + sdk/sdk-kafkaconnect/go.sum | 0 sdk/sdk-kafkaconnect/kafka-connect-admin.json | 1181 + .../model_config_field_definition.go | 198 + sdk/sdk-kafkaconnect/model_config_info.go | 162 + sdk/sdk-kafkaconnect/model_config_infos.go | 234 + sdk/sdk-kafkaconnect/model_config_key_info.go | 522 + .../model_config_value_info.go | 270 + sdk/sdk-kafkaconnect/model_connector_info.go | 234 + .../model_connector_offset.go | 162 + .../model_connector_offsets.go | 126 + sdk/sdk-kafkaconnect/model_connector_state.go | 234 + .../model_connector_state_info.go | 234 + .../model_connector_task_id.go | 162 + .../model_create_connector_request.go | 198 + ...odel_function_mesh_connector_definition.go | 918 + sdk/sdk-kafkaconnect/model_plugin_info.go | 198 + sdk/sdk-kafkaconnect/model_server_info.go | 198 + .../model_sn_connector_offset.go | 162 + .../model_sn_connector_offsets.go | 126 + sdk/sdk-kafkaconnect/model_task_info.go | 162 + sdk/sdk-kafkaconnect/model_task_state.go | 270 + sdk/sdk-kafkaconnect/openapitools.json | 7 + sdk/sdk-kafkaconnect/response.go | 47 + sdk/sdk-kafkaconnect/utils.go | 361 + 896 files changed, 570431 insertions(+) create mode 100644 .github/workflows/go.yml create mode 100644 .github/workflows/goreleaser.yml create mode 100644 .github/workflows/lint.yaml create mode 100644 .github/workflows/project.yml create mode 100644 .gitignore create mode 100644 .golangci.yml create mode 100644 .goreleaser.yaml create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 README.md create mode 100644 cmd/streamnative-mcp-server/main.go create mode 100644 go.mod create mode 100644 go.sum create mode 100644 go.work create mode 100644 go.work.sum create mode 100644 pkg/auth/auth.go create mode 100644 pkg/auth/authorization_tokenretriever.go create mode 100644 pkg/auth/cache/cache.go create mode 100644 pkg/auth/client_credentials_flow.go create mode 100644 pkg/auth/client_credentials_provider.go create mode 100644 pkg/auth/config_tokenprovider.go create mode 100644 pkg/auth/data_url.go create mode 100644 pkg/auth/oidc_endpoint_provider.go create mode 100644 pkg/auth/store/keyring.go create mode 100644 pkg/auth/store/store.go create mode 100644 pkg/cmd/mcp/mcp.go create mode 100644 pkg/cmd/mcp/stdio.go create mode 100644 pkg/config/apiclient.go create mode 100644 pkg/config/auth.go create mode 100644 pkg/config/config.go create mode 100644 pkg/config/external_kafka.go create mode 100644 pkg/config/external_pulsar.go create mode 100644 pkg/config/options.go create mode 100644 pkg/kafka/connection.go create mode 100644 pkg/kafka/kafkaconnect.go create mode 100644 pkg/log/io.go create mode 100644 pkg/mcp/auth_utils.go create mode 100644 pkg/mcp/context.go create mode 100644 pkg/mcp/context_tools.go create mode 100644 pkg/mcp/context_utils.go create mode 100644 pkg/mcp/features.go create mode 100644 pkg/mcp/instructions.go create mode 100644 pkg/mcp/kafka_admin_connect_tools.go create mode 100644 pkg/mcp/kafka_admin_groups_tools.go create mode 100644 pkg/mcp/kafka_admin_partitions_tools.go create mode 100644 pkg/mcp/kafka_admin_sr_tools.go create mode 100644 pkg/mcp/kafka_admin_topics_tools.go create mode 100644 pkg/mcp/kafka_client_consume_tools.go create mode 100644 pkg/mcp/kafka_client_produce_tools.go create mode 100644 pkg/mcp/prompts.go create mode 100644 pkg/mcp/pulsar_admin_brokers_stats_tools.go create mode 100644 pkg/mcp/pulsar_admin_brokers_tools.go create mode 100644 pkg/mcp/pulsar_admin_cluster_tools.go create mode 100644 pkg/mcp/pulsar_admin_functions_tools.go create mode 100644 pkg/mcp/pulsar_admin_functions_worker_tools.go create mode 100644 pkg/mcp/pulsar_admin_namespace_policy_tools.go create mode 100644 pkg/mcp/pulsar_admin_namespace_tools.go create mode 100644 pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go create mode 100644 pkg/mcp/pulsar_admin_packages_tools.go create mode 100644 pkg/mcp/pulsar_admin_resourcequotas_tools.go create mode 100644 pkg/mcp/pulsar_admin_schemas_tools.go create mode 100644 pkg/mcp/pulsar_admin_sinks_tools.go create mode 100644 pkg/mcp/pulsar_admin_sources_tools.go create mode 100644 pkg/mcp/pulsar_admin_subscription_tools.go create mode 100644 pkg/mcp/pulsar_admin_tenant_tools.go create mode 100644 pkg/mcp/pulsar_admin_topic_policy_tools.go create mode 100644 pkg/mcp/pulsar_admin_topic_tools.go create mode 100644 pkg/mcp/pulsar_client_consume_tools.go create mode 100644 pkg/mcp/pulsar_client_produce_tools.go create mode 100644 pkg/mcp/streamnative_resources_log_tools.go create mode 100644 pkg/mcp/utils.go create mode 100644 pkg/pulsar/connection.go create mode 100644 sdk/sdk-apiserver/.gitignore create mode 100644 sdk/sdk-apiserver/.openapi-generator-ignore create mode 100644 sdk/sdk-apiserver/.openapi-generator/COMMIT create mode 100644 sdk/sdk-apiserver/.openapi-generator/FILES create mode 100644 sdk/sdk-apiserver/.openapi-generator/VERSION create mode 100644 sdk/sdk-apiserver/.openapi-generator/swagger.json-default.sha256 create mode 100644 sdk/sdk-apiserver/.travis.yml create mode 100644 sdk/sdk-apiserver/README.md create mode 100644 sdk/sdk-apiserver/api/openapi.yaml create mode 100644 sdk/sdk-apiserver/api_apis.go create mode 100644 sdk/sdk-apiserver/api_authorization_streamnative_io.go create mode 100644 sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go create mode 100644 sdk/sdk-apiserver/api_billing_streamnative_io.go create mode 100644 sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go create mode 100644 sdk/sdk-apiserver/api_cloud_streamnative_io.go create mode 100644 sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go create mode 100644 sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go create mode 100644 sdk/sdk-apiserver/api_compute_streamnative_io.go create mode 100644 sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go create mode 100644 sdk/sdk-apiserver/api_custom_objects.go create mode 100644 sdk/sdk-apiserver/api_version.go create mode 100644 sdk/sdk-apiserver/client.go create mode 100644 sdk/sdk-apiserver/configuration.go create mode 100644 sdk/sdk-apiserver/docs/ApisApi.md create mode 100644 sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoApi.md create mode 100644 sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoV1alpha1Api.md create mode 100644 sdk/sdk-apiserver/docs/BillingStreamnativeIoApi.md create mode 100644 sdk/sdk-apiserver/docs/BillingStreamnativeIoV1alpha1Api.md create mode 100644 sdk/sdk-apiserver/docs/CloudStreamnativeIoApi.md create mode 100644 sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha1Api.md create mode 100644 sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha2Api.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec.md create mode 100644 sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus.md create mode 100644 sdk/sdk-apiserver/docs/ComputeStreamnativeIoApi.md create mode 100644 sdk/sdk-apiserver/docs/ComputeStreamnativeIoV1alpha1Api.md create mode 100644 sdk/sdk-apiserver/docs/CustomObjectsApi.md create mode 100644 sdk/sdk-apiserver/docs/V1APIGroup.md create mode 100644 sdk/sdk-apiserver/docs/V1APIGroupList.md create mode 100644 sdk/sdk-apiserver/docs/V1APIResource.md create mode 100644 sdk/sdk-apiserver/docs/V1APIResourceList.md create mode 100644 sdk/sdk-apiserver/docs/V1Affinity.md create mode 100644 sdk/sdk-apiserver/docs/V1Condition.md create mode 100644 sdk/sdk-apiserver/docs/V1ConfigMapEnvSource.md create mode 100644 sdk/sdk-apiserver/docs/V1ConfigMapKeySelector.md create mode 100644 sdk/sdk-apiserver/docs/V1ConfigMapVolumeSource.md create mode 100644 sdk/sdk-apiserver/docs/V1DeleteOptions.md create mode 100644 sdk/sdk-apiserver/docs/V1EnvFromSource.md create mode 100644 sdk/sdk-apiserver/docs/V1EnvVar.md create mode 100644 sdk/sdk-apiserver/docs/V1EnvVarSource.md create mode 100644 sdk/sdk-apiserver/docs/V1ExecAction.md create mode 100644 sdk/sdk-apiserver/docs/V1GRPCAction.md create mode 100644 sdk/sdk-apiserver/docs/V1GroupVersionForDiscovery.md create mode 100644 sdk/sdk-apiserver/docs/V1HTTPGetAction.md create mode 100644 sdk/sdk-apiserver/docs/V1HTTPHeader.md create mode 100644 sdk/sdk-apiserver/docs/V1KeyToPath.md create mode 100644 sdk/sdk-apiserver/docs/V1LabelSelector.md create mode 100644 sdk/sdk-apiserver/docs/V1LabelSelectorRequirement.md create mode 100644 sdk/sdk-apiserver/docs/V1ListMeta.md create mode 100644 sdk/sdk-apiserver/docs/V1LocalObjectReference.md create mode 100644 sdk/sdk-apiserver/docs/V1ManagedFieldsEntry.md create mode 100644 sdk/sdk-apiserver/docs/V1NodeAffinity.md create mode 100644 sdk/sdk-apiserver/docs/V1NodeSelector.md create mode 100644 sdk/sdk-apiserver/docs/V1NodeSelectorRequirement.md create mode 100644 sdk/sdk-apiserver/docs/V1NodeSelectorTerm.md create mode 100644 sdk/sdk-apiserver/docs/V1ObjectFieldSelector.md create mode 100644 sdk/sdk-apiserver/docs/V1ObjectMeta.md create mode 100644 sdk/sdk-apiserver/docs/V1OwnerReference.md create mode 100644 sdk/sdk-apiserver/docs/V1PodAffinity.md create mode 100644 sdk/sdk-apiserver/docs/V1PodAffinityTerm.md create mode 100644 sdk/sdk-apiserver/docs/V1PodAntiAffinity.md create mode 100644 sdk/sdk-apiserver/docs/V1Preconditions.md create mode 100644 sdk/sdk-apiserver/docs/V1PreferredSchedulingTerm.md create mode 100644 sdk/sdk-apiserver/docs/V1Probe.md create mode 100644 sdk/sdk-apiserver/docs/V1ResourceFieldSelector.md create mode 100644 sdk/sdk-apiserver/docs/V1ResourceRequirements.md create mode 100644 sdk/sdk-apiserver/docs/V1SecretEnvSource.md create mode 100644 sdk/sdk-apiserver/docs/V1SecretKeySelector.md create mode 100644 sdk/sdk-apiserver/docs/V1SecretVolumeSource.md create mode 100644 sdk/sdk-apiserver/docs/V1ServerAddressByClientCIDR.md create mode 100644 sdk/sdk-apiserver/docs/V1Status.md create mode 100644 sdk/sdk-apiserver/docs/V1StatusCause.md create mode 100644 sdk/sdk-apiserver/docs/V1StatusDetails.md create mode 100644 sdk/sdk-apiserver/docs/V1TCPSocketAction.md create mode 100644 sdk/sdk-apiserver/docs/V1Toleration.md create mode 100644 sdk/sdk-apiserver/docs/V1VolumeMount.md create mode 100644 sdk/sdk-apiserver/docs/V1WatchEvent.md create mode 100644 sdk/sdk-apiserver/docs/V1WeightedPodAffinityTerm.md create mode 100644 sdk/sdk-apiserver/docs/VersionApi.md create mode 100644 sdk/sdk-apiserver/docs/VersionInfo.md create mode 100644 sdk/sdk-apiserver/git_push.sh create mode 100644 sdk/sdk-apiserver/go.mod create mode 100644 sdk/sdk-apiserver/go.sum create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go create mode 100644 sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go create mode 100644 sdk/sdk-apiserver/model_v1_affinity.go create mode 100644 sdk/sdk-apiserver/model_v1_api_group.go create mode 100644 sdk/sdk-apiserver/model_v1_api_group_list.go create mode 100644 sdk/sdk-apiserver/model_v1_api_resource.go create mode 100644 sdk/sdk-apiserver/model_v1_api_resource_list.go create mode 100644 sdk/sdk-apiserver/model_v1_condition.go create mode 100644 sdk/sdk-apiserver/model_v1_config_map_env_source.go create mode 100644 sdk/sdk-apiserver/model_v1_config_map_key_selector.go create mode 100644 sdk/sdk-apiserver/model_v1_config_map_volume_source.go create mode 100644 sdk/sdk-apiserver/model_v1_delete_options.go create mode 100644 sdk/sdk-apiserver/model_v1_env_from_source.go create mode 100644 sdk/sdk-apiserver/model_v1_env_var.go create mode 100644 sdk/sdk-apiserver/model_v1_env_var_source.go create mode 100644 sdk/sdk-apiserver/model_v1_exec_action.go create mode 100644 sdk/sdk-apiserver/model_v1_group_version_for_discovery.go create mode 100644 sdk/sdk-apiserver/model_v1_grpc_action.go create mode 100644 sdk/sdk-apiserver/model_v1_http_get_action.go create mode 100644 sdk/sdk-apiserver/model_v1_http_header.go create mode 100644 sdk/sdk-apiserver/model_v1_key_to_path.go create mode 100644 sdk/sdk-apiserver/model_v1_label_selector.go create mode 100644 sdk/sdk-apiserver/model_v1_label_selector_requirement.go create mode 100644 sdk/sdk-apiserver/model_v1_list_meta.go create mode 100644 sdk/sdk-apiserver/model_v1_local_object_reference.go create mode 100644 sdk/sdk-apiserver/model_v1_managed_fields_entry.go create mode 100644 sdk/sdk-apiserver/model_v1_node_affinity.go create mode 100644 sdk/sdk-apiserver/model_v1_node_selector.go create mode 100644 sdk/sdk-apiserver/model_v1_node_selector_requirement.go create mode 100644 sdk/sdk-apiserver/model_v1_node_selector_term.go create mode 100644 sdk/sdk-apiserver/model_v1_object_field_selector.go create mode 100644 sdk/sdk-apiserver/model_v1_object_meta.go create mode 100644 sdk/sdk-apiserver/model_v1_owner_reference.go create mode 100644 sdk/sdk-apiserver/model_v1_pod_affinity.go create mode 100644 sdk/sdk-apiserver/model_v1_pod_affinity_term.go create mode 100644 sdk/sdk-apiserver/model_v1_pod_anti_affinity.go create mode 100644 sdk/sdk-apiserver/model_v1_preconditions.go create mode 100644 sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go create mode 100644 sdk/sdk-apiserver/model_v1_probe.go create mode 100644 sdk/sdk-apiserver/model_v1_resource_field_selector.go create mode 100644 sdk/sdk-apiserver/model_v1_resource_requirements.go create mode 100644 sdk/sdk-apiserver/model_v1_secret_env_source.go create mode 100644 sdk/sdk-apiserver/model_v1_secret_key_selector.go create mode 100644 sdk/sdk-apiserver/model_v1_secret_volume_source.go create mode 100644 sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go create mode 100644 sdk/sdk-apiserver/model_v1_status.go create mode 100644 sdk/sdk-apiserver/model_v1_status_cause.go create mode 100644 sdk/sdk-apiserver/model_v1_status_details.go create mode 100644 sdk/sdk-apiserver/model_v1_tcp_socket_action.go create mode 100644 sdk/sdk-apiserver/model_v1_toleration.go create mode 100644 sdk/sdk-apiserver/model_v1_volume_mount.go create mode 100644 sdk/sdk-apiserver/model_v1_watch_event.go create mode 100644 sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go create mode 100644 sdk/sdk-apiserver/model_version_info.go create mode 100644 sdk/sdk-apiserver/response.go create mode 100644 sdk/sdk-apiserver/settings create mode 100644 sdk/sdk-apiserver/swagger.json create mode 100644 sdk/sdk-apiserver/swagger.json.unprocessed create mode 100644 sdk/sdk-apiserver/utils.go create mode 100644 sdk/sdk-kafkaconnect/HOW_TO_BUILD.md create mode 100644 sdk/sdk-kafkaconnect/README.md create mode 100644 sdk/sdk-kafkaconnect/api_default.go create mode 100644 sdk/sdk-kafkaconnect/client.go create mode 100644 sdk/sdk-kafkaconnect/configuration.go create mode 100644 sdk/sdk-kafkaconnect/git_push.sh create mode 100644 sdk/sdk-kafkaconnect/go.mod create mode 100644 sdk/sdk-kafkaconnect/go.sum create mode 100644 sdk/sdk-kafkaconnect/kafka-connect-admin.json create mode 100644 sdk/sdk-kafkaconnect/model_config_field_definition.go create mode 100644 sdk/sdk-kafkaconnect/model_config_info.go create mode 100644 sdk/sdk-kafkaconnect/model_config_infos.go create mode 100644 sdk/sdk-kafkaconnect/model_config_key_info.go create mode 100644 sdk/sdk-kafkaconnect/model_config_value_info.go create mode 100644 sdk/sdk-kafkaconnect/model_connector_info.go create mode 100644 sdk/sdk-kafkaconnect/model_connector_offset.go create mode 100644 sdk/sdk-kafkaconnect/model_connector_offsets.go create mode 100644 sdk/sdk-kafkaconnect/model_connector_state.go create mode 100644 sdk/sdk-kafkaconnect/model_connector_state_info.go create mode 100644 sdk/sdk-kafkaconnect/model_connector_task_id.go create mode 100644 sdk/sdk-kafkaconnect/model_create_connector_request.go create mode 100644 sdk/sdk-kafkaconnect/model_function_mesh_connector_definition.go create mode 100644 sdk/sdk-kafkaconnect/model_plugin_info.go create mode 100644 sdk/sdk-kafkaconnect/model_server_info.go create mode 100644 sdk/sdk-kafkaconnect/model_sn_connector_offset.go create mode 100644 sdk/sdk-kafkaconnect/model_sn_connector_offsets.go create mode 100644 sdk/sdk-kafkaconnect/model_task_info.go create mode 100644 sdk/sdk-kafkaconnect/model_task_state.go create mode 100644 sdk/sdk-kafkaconnect/openapitools.json create mode 100644 sdk/sdk-kafkaconnect/response.go create mode 100644 sdk/sdk-kafkaconnect/utils.go diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..624b095 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,32 @@ +name: Unit Tests +on: [push, pull_request] + +permissions: + contents: read + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + runs-on: ${{ matrix.os }} + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + + - name: Download dependencies + run: go mod download + + - name: Run unit tests + run: go test -race ./... + + - name: Build + run: make build diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..263607e --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,45 @@ +name: GoReleaser Release +on: + push: + tags: + - "v*" +permissions: + contents: write + id-token: write + attestations: write + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + + - name: Download dependencies + run: go mod download + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 + with: + distribution: goreleaser + # GoReleaser version + version: "~> v2" + # Arguments to pass to GoReleaser + args: release --clean + workdir: . + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Generate signed build provenance attestations for workflow artifacts + uses: actions/attest-build-provenance@v2 + with: + subject-path: | + dist/*.tar.gz + dist/*.zip + dist/*.txt diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..a37813e --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,50 @@ +name: Lint +on: + push: + pull_request: + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + + - name: Verify dependencies + run: | + go mod verify + go mod download + + LINT_VERSION=1.64.8 + curl -fsSL https://github.com/golangci/golangci-lint/releases/download/v${LINT_VERSION}/golangci-lint-${LINT_VERSION}-linux-amd64.tar.gz | \ + tar xz --strip-components 1 --wildcards \*/golangci-lint + mkdir -p bin && mv golangci-lint bin/ + + - name: Run checks + run: | + STATUS=0 + assert-nothing-changed() { + local diff + "$@" >/dev/null || return 1 + if ! diff="$(git diff -U1 --color --exit-code)"; then + printf '\e[31mError: running `\e[1m%s\e[22m` results in modifications that you must check into version control:\e[0m\n%s\n\n' "$*" "$diff" >&2 + git checkout -- . + STATUS=1 + fi + } + + assert-nothing-changed go fmt ./... + assert-nothing-changed go mod tidy + + bin/golangci-lint run --out-format=colored-line-number --timeout=3m || STATUS=$? + + exit $STATUS diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml new file mode 100644 index 0000000..0a83f9d --- /dev/null +++ b/.github/workflows/project.yml @@ -0,0 +1,51 @@ +name: Build +on: + pull_request: + branches: + - main + - release/* + paths: + - '**' + - '!docs/**' + - '!README.md' + - '!CONTRIBUTING.md' + +env: + GOPRIVATE: github.com/streamnative + ACCESS_TOKEN: ${{ secrets.SNBOT_GITHUB_TOKEN }} + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up Git token + run: | + git config --global user.email "snbot@streamnative.io" + git config --global user.name "StreamNative Bot" + git config --global url."https://streamnativebot:${ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/" + + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version-file: 'go.mod' + + - name: Docker login + run: docker login -u="${{ secrets.DOCKER_USER }}" -p="${{ secrets.DOCKER_PASSWORD }}" + + - name: Run GoReleaser (snapshot) + uses: goreleaser/goreleaser-action@v3 + with: + version: latest + args: release --snapshot --clean + env: + GITHUB_TOKEN: ${{ secrets.SNBOT_GITHUB_TOKEN }} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1e48113 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.idea/ +bin/ +dist/ + +.DS_Store +tmp/ +*.log + +# Go +vendor \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..43e3d62 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,28 @@ +run: + timeout: 5m + tests: true + concurrency: 4 + +linters: + enable: + - govet + - errcheck + - staticcheck + - gofmt + - goimports + - revive + - ineffassign + - typecheck + - unused + - gosimple + - misspell + - nakedret + - bodyclose + - gocritic + - makezero + - gosec + +output: + formats: colored-line-number + print-issued-lines: true + print-linter-name: true diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..92dd958 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,47 @@ +version: 2 +project_name: streamnative-mcp-server +before: + hooks: + - go mod tidy + - go generate ./... + +builds: + - env: + - CGO_ENABLED=0 + ldflags: + - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} + goos: + - linux + - windows + - darwin + goarch: + - amd64 + - arm64 + main: ./cmd/streamnative-mcp-server + +archives: + - formats: tar.gz + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + formats: zip + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + +release: + draft: true + prerelease: auto + name_template: "StreamNative MCP Server {{.Version}}" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..05f493f --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +BASE_PATH=github.com/streamnative/streamnative-mcp-server +VERSION_PATH=main +GIT_VERSION=$(shell git describe --tags --abbrev=0)-SNAPSHOT-$(shell git rev-parse --short HEAD) +GIT_COMMIT=$(shell git rev-parse HEAD) +BUILD_DATE=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ") +MKDIR_P = mkdir -p + +export GOPRIVATE=github.com/streamnative + +.PHONY: all +all: build ; + +.PHONY: build +build: + ${MKDIR_P} bin/ + CGO_ENABLED=0 go build -ldflags "\ + -X ${VERSION_PATH}.version=${GIT_VERSION} \ + -X ${VERSION_PATH}.commit=${GIT_COMMIT} \ + -X ${VERSION_PATH}.date=${BUILD_DATE}" \ + -o bin/snmcp cmd/streamnative-mcp-server/main.go + +# go install github.com/elastic/go-licenser@latest +.PHONY: fix-license +fix-license: + go-licenser -license ASL2 -exclude sdk diff --git a/README.md b/README.md new file mode 100644 index 0000000..307b7d8 --- /dev/null +++ b/README.md @@ -0,0 +1,210 @@ +# StreamNative MCP Server + +A Model Context Protocol (MCP) server for integrating AI agents with StreamNative Cloud resources and Apache Pulsar/Kafka messaging systems. + +## Overview + +StreamNative MCP Server provides a standard interface for LLMs (Large Language Models) and AI agents to interact with StreamNative Cloud services, Apache Pulsar, and Apache Kafka. This implementation follows the [Model Context Protocol](https://modelcontextprotocol.io/introduction) specification, enabling AI applications to access messaging services through a standardized interface. + +## Features + +- **StreamNative Cloud Integration**: + - Connect to StreamNative Cloud resources with authentication + - Switch to clusters available in your organization + - Describe the status of clusters resources +- **Apache Pulsar Support**: Interact with Pulsar resources including: + - Pulsar Admin operations (topics, namespaces, tenants, schemas, etc.) + - Pulsar Client operations (producers, consumers) + - Functions, Sources, and Sinks management +- **Apache Kafka Support**: Interact with Kafka resources including: + - Kafka Admin operations (topics, partitions, consumer groups) + - Schema Registry operations + - Kafka Connect operations + - Kafka Client operations (producers, consumers) +- **Multiple Connection Options**: + - Connect to StreamNative Cloud with service account authentication + - Connect directly to external Pulsar clusters + - Connect directly to external Kafka clusters + +## Installation + +```bash +# Clone the repository +git clone https://github.com/streamnative/streamnative-mcp-server.git +cd streamnative-mcp-server + +go mod tidy +go mod download + +# Build the binary +make +``` + +## Usage + +### Prerequisites + +If you want to access to your StreamNative Cloud, you will need to have following resources ready: + +1. Access to [StreamNative Cloud](https://console.streamnative.cloud/?defaultMethod=signup). +2. StreamNative Cloud Organization +3. StreamNative Cloud instance and cluster +4. Service Account with admin role +5. Download the Service Account Key file + +### Start the MCP Server + +```bash +# Start MCP server with StreamNative Cloud authentication +snmcp stdio --organization my-org --key-file /path/to/key-file.json + +# Start MCP server with external Kafka +bin/snmcp stdio --use-external-kafka --kafka-bootstrap-servers localhost:9092 --kafka-auth-type SASL_SSL --kafka-auth-mechanism PLAIN --kafka-auth-user user --kafka-auth-pass pass --kafka-use-tls --kafka-schema-registry-url https://sr.local --kafka-schema-registry-auth-user user --kafka-schema-registry-auth-pass pass + +# Start MCP server with external Pulsar +snmcp stdio --use-external-pulsar --pulsar-web-service-url http://pulsar.example.com:8080 +bin/snmcp stdio --use-external-pulsar --pulsar-web-service-url http://pulsar.example.com:8080 --pulsar-token "xxx" +``` + +### Command-line Options + +``` +Usage: + snmcp [command] + +Available Commands: + stdio Start stdio server + help Help about any command + +Flags: + --audience string The audience identifier for the API server (default "https://api.streamnative.cloud") + --client-id string The client ID to use for authorization grants (default "AJYEdHWi9EFekEaUXkPWA2MqQ3lq1NrI") + --config-dir string If present, the config directory to use + --enable-command-logging When enabled, the server will log all command requests and responses to the log file + --features strings Features to enable, defaults to `all` + -h, --help help for snmcp + --issuer string The OAuth 2.0 issuer endpoint (default "https://auth.streamnative.cloud/") + --kafka-auth-mechanism string The auth mechanism to use for Kafka + --kafka-auth-pass string The auth password to use for Kafka + --kafka-auth-type string The auth type to use for Kafka + --kafka-auth-user string The auth user to use for Kafka + --kafka-bootstrap-servers string The bootstrap servers to use for Kafka + --kafka-ca-file string The CA file to use for Kafka + --kafka-client-cert-file string The client certificate file to use for Kafka + --kafka-client-key-file string The client key file to use for Kafka + --kafka-schema-registry-auth-pass string The auth password to use for the schema registry + --kafka-schema-registry-auth-user string The auth user to use for the schema registry + --kafka-schema-registry-bearer-token string The bearer token to use for the schema registry + --kafka-schema-registry-url string The schema registry URL to use for Kafka + --key-file string The key file to use for authentication to StreamNative Cloud + --log-file string Path to log file + --organization string The organization to use for the API server + --proxy-location string The proxy location to use for the API server (default "https://proxy.streamnative.cloud") + --pulsar-auth-params string The auth params to use for Pulsar + --pulsar-auth-plugin string The auth plugin to use for Pulsar + --pulsar-token string The token to use for Pulsar + --pulsar-cluster string The default cluster to use for the API server + --pulsar-instance string The default instance to use for the API server + --pulsar-tls-allow-insecure-connection The TLS allow insecure connection to use for Pulsar + --pulsar-tls-cert-file string The TLS cert file to use for Pulsar + --pulsar-tls-enable-hostname-verification The TLS enable hostname verification to use for Pulsar (default true) + --pulsar-tls-key-file string The TLS key file to use for Pulsar + --pulsar-tls-trust-certs-file-path string The TLS trust certs file path to use for Pulsar + --pulsar-web-service-url string The web service URL to use for Pulsar + -r, --read-only Read-only mode + --server string The server to connect to (default "https://api.streamnative.cloud") + --use-external-kafka Use external Kafka + --use-external-pulsar Use external Pulsar + -v, --version version for snmcp +``` + +## Tool Configuration + +The StreamNative MCP Server supports enabling or disabling specific groups of functionalities via the `--features` flag. This allows you to control which MCP tools are available to your AI tools. Enabling only the toolsets that you need can help the LLM with tool choice and reduce the context size. + +### Available Features + +The following sets of tools are available (all available by default on StreamNative Cloud) + +| Features | Description | +| ------|-------| +| `all` | All tools, including StreamNative Cloud tools, Pulsar tools and Kafka tools | +| `all-pulsar` | All Pulsar admin and Pulsar client tools | +| `all-kafka` | All Kafka admin and Kafka client tools | +| `pulsar-admin` | Pulsar administrative operations (including all `pulsar-admin-*`) | +| `pulsar-client` | Pulsar client operations (produce and consume messages) | +| `pulsar-admin-brokers` | Manage Pulsar brokers | +| `pulsar-admin-broker-stats` | Access Pulsar broker statistics | +| `pulsar-admin-clusters` | Manage Pulsar clusters | +| `pulsar-admin-functions-worker` | Manage Pulsar Function workers | +| `pulsar-admin-namespaces` | Manage Pulsar namespaces | +| `pulsar-admin-namespace-policy` | Configure Pulsar namespace policies | +| `pulsar-admin-isolation-policy` | Manage namespace isolation policies | +| `pulsar-admin-packages` | Manage Pulsar packages | +| `pulsar-admin-resource-quotas` | Configure resource quotas | +| `pulsar-admin-schemas` | Manage Pulsar schemas | +| `pulsar-admin-subscriptions` | Manage Pulsar subscriptions | +| `pulsar-admin-tenants` | Manage Pulsar tenants | +| `pulsar-admin-topics` | Manage Pulsar topics | +| `pulsar-admin-sinks` | Manage Pulsar IO sinks | +| `pulsar-admin-functions` | Manage Pulsar Functions | +| `pulsar-admin-sources` | Manage Pulsar IO sources | +| `pulsar-admin-topic-policy` | Configure Pulsar topic policies | +| `kafka-admin` | Kafka administrative operations (including all `kafka-admin-*`) | +| `kafka-client` | Kafka client operations (produce and consume messages) | +| `kafka-admin-topics` | Manage Kafka partitions | +| `kafka-admin-partitions` | Manage Kafka partitions | +| `kafka-admin-groups` | Manage Kafka consumer groups | +| `kafka-admin-schema-registry` | Interact with Kafka Schema Registry | +| `kafka-admin-connect` | Manage Kafka Connect connectors | +| `streamnative-cloud` | Manage the context, check resources logs of StreamNative Cloud | + +### Usage Examples + +To enable only specific feature sets: + +```bash +# Enable only Pulsar client features +snmcp stdio --organization my-org --key-file /path/to/key-file.json --features pulsar-client +``` + +## Integration with MCP Clients + +This server can be used with any MCP-compatible client, such as: + +- Claude Desktop +- Other AI assistants supporting the MCP protocol +- Custom applications built with MCP client libraries + +### Usage with Claude Desktop + +```json +{ + "mcpServers": { + "github": { + "command": "snmcp", + "args": [ + "stdio", + "--organization", + "my-org", + "--key-file", + "/path/to/key-file.json" + ], + } + } +} +``` + +## About Model Context Protocol (MCP) + +The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs. MCP helps build agents and complex workflows on top of LLMs by providing: + +- A growing list of pre-built integrations that your LLM can directly plug into +- The flexibility to switch between LLM providers and vendors +- Best practices for securing your data within your infrastructure + +For more information, visit [modelcontextprotocol.io](https://modelcontextprotocol.io/introduction). + +## License + +Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 diff --git a/cmd/streamnative-mcp-server/main.go b/cmd/streamnative-mcp-server/main.go new file mode 100644 index 0000000..4cc668b --- /dev/null +++ b/cmd/streamnative-mcp-server/main.go @@ -0,0 +1,73 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package main + +import ( + "fmt" + "os" + + "github.com/spf13/cobra" + + "github.com/streamnative/streamnative-mcp-server/pkg/cmd/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/config" +) + +var version = "version" +var commit = "commit" +var date = "date" + +func main() { + + // Create configuration options + configOpts := config.NewConfigOptions() + + // Create root command + rootCmd := newRootCommand(configOpts) + + // Execute the root command + if err := rootCmd.Execute(); err != nil { + fmt.Fprintf(os.Stderr, "Error: %v\n", err) + os.Exit(1) + } +} + +// newRootCommand creates and returns the root command +func newRootCommand(configOpts *config.Options) *cobra.Command { + rootCmd := &cobra.Command{ + Use: "snmcp", + Short: "StreamNative Cloud MCP Server for AI agent integration", + Long: `StreamNative Cloud MCP Server provides resources and tools for AI agents +to interact with StreamNative Cloud resources and services.`, + Run: func(cmd *cobra.Command, _ []string) { + _ = cmd.Help() + }, + Version: fmt.Sprintf("Version: %s\nCommit: %s\nBuild Date: %s", version, commit, date), + } + + // Add global flags + configOpts.AddFlags(rootCmd) + + o := mcp.NewMcpServerOptions(configOpts) + o.AddFlags(rootCmd) + // Add subcommands + rootCmd.AddCommand(mcp.NewCmdMcpStdioServer(o)) + + rootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n") + + return rootCmd +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..399812c --- /dev/null +++ b/go.mod @@ -0,0 +1,88 @@ +module github.com/streamnative/streamnative-mcp-server + +go 1.24.1 + +require ( + github.com/99designs/keyring v1.2.2 + github.com/apache/pulsar-client-go v0.13.1 + github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/mark3labs/mcp-go v0.25.0 + github.com/mitchellh/go-homedir v1.1.0 + github.com/pkg/errors v0.9.1 + github.com/sirupsen/logrus v1.9.3 + github.com/spf13/cobra v1.9.1 + github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b + github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve v0.0.0-00010101000000-000000000000 + github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect v0.0.0-00010101000000-000000000000 + github.com/twmb/franz-go v1.18.1 + github.com/twmb/franz-go/pkg/kadm v1.16.0 + github.com/twmb/franz-go/pkg/sr v1.3.0 + github.com/twmb/tlscfg v1.2.1 + golang.org/x/oauth2 v0.25.0 + gopkg.in/yaml.v2 v2.4.0 + k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 +) + +require ( + github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect + github.com/AthenZ/athenz v1.10.39 // indirect + github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect + github.com/DataDog/zstd v1.5.0 // indirect + github.com/ardielle/ardielle-go v1.5.2 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bits-and-blooms/bitset v1.4.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/dvsekhvalnov/jose2go v1.6.0 // indirect + github.com/fatih/color v1.7.0 // indirect + github.com/ghodss/yaml v1.0.0 // indirect + github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect + github.com/golang-jwt/jwt/v4 v4.5.1 // indirect + github.com/golang-jwt/jwt/v5 v5.2.1 // indirect + github.com/golang/protobuf v1.5.4 // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect + github.com/hamba/avro/v2 v2.26.0 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/klauspost/compress v1.17.11 // indirect + github.com/kris-nova/logger v0.0.0-20181127235838-fd0d87064b06 // indirect + github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/mattn/go-colorable v0.1.2 // indirect + github.com/mattn/go-isatty v0.0.8 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/onsi/gomega v1.35.1 // indirect + github.com/pierrec/lz4 v2.0.5+incompatible // indirect + github.com/pierrec/lz4/v4 v4.1.22 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_golang v1.20.5 // indirect + github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/common v0.55.0 // indirect + github.com/prometheus/procfs v0.15.1 // indirect + github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/spaolacci/murmur3 v1.1.0 // indirect + github.com/spf13/cast v1.7.1 // indirect + github.com/spf13/pflag v1.0.6 // indirect + github.com/stretchr/testify v1.10.0 // indirect + github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect + github.com/yosida95/uritemplate/v3 v3.0.2 // indirect + go.uber.org/atomic v1.11.0 // indirect + golang.org/x/crypto v0.36.0 // indirect + golang.org/x/mod v0.20.0 // indirect + golang.org/x/net v0.38.0 // indirect + golang.org/x/sys v0.31.0 // indirect + golang.org/x/term v0.30.0 // indirect + google.golang.org/protobuf v1.35.1 // indirect +) + +replace github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve => ./sdk/sdk-apiserver + +replace github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect => ./sdk/sdk-kafkaconnect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..d918cb9 --- /dev/null +++ b/go.sum @@ -0,0 +1,314 @@ +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= +dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= +github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= +github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= +github.com/AthenZ/athenz v1.10.39 h1:mtwHTF/v62ewY2Z5KWhuZgVXftBej1/Tn80zx4DcawY= +github.com/AthenZ/athenz v1.10.39/go.mod h1:3Tg8HLsiQZp81BJY58JBeU2BR6B/H4/0MQGfCwhHNEA= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/DataDog/zstd v1.5.0 h1:+K/VEwIAaPcHiMtQvpLD4lqW7f0Gk3xdYZmI1hD+CXo= +github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/Microsoft/hcsshim v0.11.5 h1:haEcLNpj9Ka1gd3B3tAEs9CpE0c+1IhoL59w/exYU38= +github.com/Microsoft/hcsshim v0.11.5/go.mod h1:MV8xMfmECjl5HdO7U/3/hFVnkmSBjAjmA09d4bExKcU= +github.com/apache/pulsar-client-go v0.13.1 h1:XAAKXjF99du7LP6qu/nBII1HC2nS483/vQoQIWmm5Yg= +github.com/apache/pulsar-client-go v0.13.1/go.mod h1:0X5UCs+Cv5w6Ds38EZebUMfyVUFIh+URF2BeipEVhIU= +github.com/ardielle/ardielle-go v1.5.2 h1:TilHTpHIQJ27R1Tl/iITBzMwiUGSlVfiVhwDNGM3Zj4= +github.com/ardielle/ardielle-go v1.5.2/go.mod h1:I4hy1n795cUhaVt/ojz83SNVCYIGsAFAONtv2Dr7HUI= +github.com/ardielle/ardielle-tools v1.5.4/go.mod h1:oZN+JRMnqGiIhrzkRN9l26Cej9dEx4jeNG6A+AdkShk= +github.com/aws/aws-sdk-go v1.32.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bits-and-blooms/bitset v1.4.0 h1:+YZ8ePm+He2pU3dZlIZiOeAKfrBkXi1lSrXJ/Xzgbu8= +github.com/bits-and-blooms/bitset v1.4.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= +github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= +github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/containerd/containerd v1.7.18 h1:jqjZTQNfXGoEaZdW1WwPU0RqSn1Bm2Ay/KJPUuO8nao= +github.com/containerd/containerd v1.7.18/go.mod h1:IYEk9/IO6wAPUz2bCMVUbsfXjzw5UNP5fLz4PsUygQ4= +github.com/containerd/errdefs v0.1.0 h1:m0wCRBiu1WJT/Fr+iOoQHMQS/eP5myQ8lCv4Dz5ZURM= +github.com/containerd/errdefs v0.1.0/go.mod h1:YgWiiHtLmSeBrvpw+UfPijzbLaB77mEG1WwJTDETIV0= +github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= +github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= +github.com/cpuguy83/dockercfg v0.3.1 h1:/FpZ+JaygUR/lZP2NlFI2DVfrOEMAIKP5wWEJdoYe9E= +github.com/cpuguy83/dockercfg v0.3.1/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= +github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dimfeld/httptreemux v5.0.1+incompatible h1:Qj3gVcDNoOthBAqftuD596rm4wg/adLLz5xh5CmpiCA= +github.com/dimfeld/httptreemux v5.0.1+incompatible/go.mod h1:rbUlSV+CCpv/SuqUTP/8Bk2O3LyUV436/yaRGkhP6Z0= +github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= +github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= +github.com/docker/docker v27.1.1+incompatible h1:hO/M4MtV36kzKldqnA37IWhebRA+LnqqcqDja6kVaKY= +github.com/docker/docker v27.1.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= +github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= +github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= +github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= +github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= +github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= +github.com/hamba/avro/v2 v2.26.0 h1:IaT5l6W3zh7K67sMrT2+RreJyDTllBGVJm4+Hedk9qE= +github.com/hamba/avro/v2 v2.26.0/go.mod h1:I8glyswHnpED3Nlx2ZdUe+4LJnCOOyiCzLMno9i/Uu0= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jawher/mow.cli v1.0.4/go.mod h1:5hQj2V8g+qYmLUVWqu4Wuja1pI57M83EChYLVZ0sMKk= +github.com/jawher/mow.cli v1.2.0/go.mod h1:y+pcA3jBAdo/GIZx/0rFjw/K2bVEODP9rfZOfaiq8Ko= +github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= +github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/kris-nova/logger v0.0.0-20181127235838-fd0d87064b06 h1:vN4d3jSss3ExzUn2cE0WctxztfOgiKvMKnDrydBsg00= +github.com/kris-nova/logger v0.0.0-20181127235838-fd0d87064b06/go.mod h1:++9BgZujZd4v0ZTZCb5iPsaomXdZWyxotIAh1IiDm44= +github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b h1:xYEM2oBUhBEhQjrV+KJ9lEWDWYZoNVZUaBF++Wyljq4= +github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b/go.mod h1:V0HF/ZBlN86HqewcDC/cVxMmYDiRukWjSrgKLUAn9Js= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/mark3labs/mcp-go v0.25.0 h1:UUpcMT3L5hIhuDy7aifj4Bphw4Pfx1Rf8mzMXDe8RQw= +github.com/mark3labs/mcp-go v0.25.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= +github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= +github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= +github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk= +github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc= +github.com/moby/sys/sequential v0.5.0 h1:OPvI35Lzn9K04PBbCLW0g4LcFAJgHsvXsRyewg5lXtc= +github.com/moby/sys/sequential v0.5.0/go.mod h1:tH2cOOs5V9MlPiXcQzRC+eEyab644PWKGRYaaV5ZZlo= +github.com/moby/sys/user v0.1.0 h1:WmZ93f5Ux6het5iituh9x2zAG7NFY9Aqi49jjE1PaQg= +github.com/moby/sys/user v0.1.0/go.mod h1:fKJhFOnsCN6xZ5gSfbM6zaHGgDJMrqt9/reuj4T7MmU= +github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= +github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= +github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= +github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= +github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= +github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.1.22 h1:cKFw6uJDK+/gfw5BcDL0JL5aBsAFdsIT18eRtLj7VIU= +github.com/pierrec/lz4/v4 v4.1.22/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= +github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y= +github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= +github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc= +github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= +github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= +github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/shirou/gopsutil/v3 v3.23.12 h1:z90NtUkp3bMtmICZKpC4+WaknU1eXtp5vtbQ11DgpE4= +github.com/shirou/gopsutil/v3 v3.23.12/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= +github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= +github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= +github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= +github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= +github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= +github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= +github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= +github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b h1:J1jG07SOD3nuO8d0UlB0LKUb8rohd2VPA7FWDFawT/4= +github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b/go.mod h1:QBzQvWQtzXSgkIZ3YfJfSZhN3edM762c4q3V+XSQB3o= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/testcontainers/testcontainers-go v0.32.0 h1:ug1aK08L3gCHdhknlTTwWjPHPS+/alvLJU/DRxTD/ME= +github.com/testcontainers/testcontainers-go v0.32.0/go.mod h1:CRHrzHLQhlXUsa5gXjTOfqIEJcrK5+xMDmBr/WMI88E= +github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= +github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= +github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= +github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/twmb/franz-go v1.18.1 h1:D75xxCDyvTqBSiImFx2lkPduE39jz1vaD7+FNc+vMkc= +github.com/twmb/franz-go v1.18.1/go.mod h1:Uzo77TarcLTUZeLuGq+9lNpSkfZI+JErv7YJhlDjs9M= +github.com/twmb/franz-go/pkg/kadm v1.16.0 h1:STMs1t5lYR5mR974PSiwNzE5TvsosByTp+rKXLOhAjE= +github.com/twmb/franz-go/pkg/kadm v1.16.0/go.mod h1:MUdcUtnf9ph4SFBLLA/XxE29rvLhWYLM9Ygb8dfSCvw= +github.com/twmb/franz-go/pkg/kmsg v1.9.0 h1:JojYUph2TKAau6SBtErXpXGC7E3gg4vGZMv9xFU/B6M= +github.com/twmb/franz-go/pkg/kmsg v1.9.0/go.mod h1:CMbfazviCyY6HM0SXuG5t9vOwYDHRCSrJJyBAe5paqg= +github.com/twmb/franz-go/pkg/sr v1.3.0 h1:UlXpZ2suGgylzQBUb6Wn1jzqVShoPGzt7BbixznJ4qo= +github.com/twmb/franz-go/pkg/sr v1.3.0/go.mod h1:gpd2Xl5/prkj3gyugcL+rVzagjaxFqMgvKMYcUlrpDw= +github.com/twmb/tlscfg v1.2.1 h1:IU2efmP9utQEIV2fufpZjPq7xgcZK4qu25viD51BB44= +github.com/twmb/tlscfg v1.2.1/go.mod h1:GameEQddljI+8Es373JfQEBvtI4dCTLKWGJbqT2kErs= +github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= +github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= +github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= +github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 h1:9l89oX4ba9kHbBol3Xin3leYJ+252h0zszDtBwyKe2A= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0/go.mod h1:XLZfZboOJWHNKUv7eH0inh0E9VV6eWDFB/9yJyTLPp0= +go.opentelemetry.io/otel v1.27.0 h1:9BZoF3yMK/O1AafMiQTVu0YDj5Ea4hPhxCs7sGva+cg= +go.opentelemetry.io/otel v1.27.0/go.mod h1:DMpAK8fzYRzs+bi3rS5REupisuqTheUlSZJ1WnZaPAQ= +go.opentelemetry.io/otel/metric v1.27.0 h1:hvj3vdEKyeCi4YaYfNjv2NUje8FqKqUY8IlF0FxV/ik= +go.opentelemetry.io/otel/metric v1.27.0/go.mod h1:mVFgmRlhljgBiuk/MP/oKylr4hs85GZAylncepAX/ak= +go.opentelemetry.io/otel/trace v1.27.0 h1:IqYb813p7cmbHk0a5y6pD5JPakbVfftRXABGt5/Rscw= +go.opentelemetry.io/otel/trace v1.27.0/go.mod h1:6RiD1hkAprV4/q+yd2ln1HG9GoPx39SuvvstaLBl+l4= +go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= +go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= +golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= +golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= +golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= +golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= +golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= +golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= +golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= +golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 h1:AgADTJarZTBqgjiUzRgfaBchgYB3/WFTC80GPwsMcRI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= +google.golang.org/grpc v1.64.1 h1:LKtvyfbX3UGVPFcGqJ9ItpVWW6oN/2XqTxfAnwRRXiA= +google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/square/go-jose.v2 v2.4.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= +k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/go.work b/go.work new file mode 100644 index 0000000..5e9cb8f --- /dev/null +++ b/go.work @@ -0,0 +1,7 @@ +go 1.24.1 + +use . + +use ./sdk/sdk-apiserver + +use ./sdk/sdk-kafkaconnect diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 0000000..67ad3e6 --- /dev/null +++ b/go.work.sum @@ -0,0 +1,189 @@ +cloud.google.com/go v0.65.0 h1:Dg9iHVQfrhq82rUNu9ZxUDrJLaxFUe/HlCVaLyRruq8= +cloud.google.com/go/bigquery v1.8.0 h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA= +cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/datastore v1.1.0 h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ= +cloud.google.com/go/pubsub v1.3.1 h1:ukjixP1wl0LpnZ6LWtZJ0mX5tBmjp1f8Sqer8Z2OMUU= +cloud.google.com/go/storage v1.10.0 h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9 h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY= +github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc= +github.com/Microsoft/hcsshim v0.8.6 h1:ZfF0+zZeYdzMIVMZHKtDKJvLHj76XCuVae/jNkjj0IA= +github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= +github.com/alecthomas/kingpin/v2 v2.4.0 h1:f48lwail6p8zpO1bC4TxtqACaGqHYA22qkHjHpqDjYY= +github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/apache/pulsar-client-go/oauth2 v0.0.0-20200715083626-b9f8c5cedefb h1:E1P0FudxDdj2RhbveZC9i3PwukLCA/4XQSkBS/dw6/I= +github.com/ardielle/ardielle-tools v1.5.4 h1:2uL/7wZRUF4LGV7r2eTaaeyhkBoqdiqEitSXMd6k8F8= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/aws/aws-sdk-go v1.32.6 h1:HoswAabUWgnrUF7X/9dr4WRgrr8DyscxXvTDm7Qw/5c= +github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b h1:AP/Y7sqYicnjGDfD5VcY4CIfh1hRXBUavxrvELjTiOE= +github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b/go.mod h1:ac9efd0D1fsDb3EJvhqgXRbFx7bs2wqZ10HQPeU8U/Q= +github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk= +github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8= +github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU= +github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc h1:TP+534wVlf61smEIq1nwLLAjQVEK2EADoW3CX9AuT+8= +github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= +github.com/coreos/go-etcd v2.0.0+incompatible h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo= +github.com/coreos/go-semver v0.2.0 h1:3Jm3tLmsgAYcjC+4Up7hJrFBPr+n7rAqYeSw/SZazuY= +github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk= +github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible h1:dvc1KSkIYTVjZgHf/CTC2diTYC8PzhaA5sFISRfNVrE= +github.com/envoyproxy/go-control-plane v0.9.4 h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E= +github.com/envoyproxy/protoc-gen-validate v0.1.0 h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A= +github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q= +github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A= +github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f h1:Wl78ApPPB2Wvf/TIe2xdyJxTlb6obmF18d8QdkxNDu4= +github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f/go.mod h1:OSYXu++VVOHnXeitef/D8n/6y4QV8uLHSFXX4NeXMGc= +github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1 h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4 h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= +github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-redis/redis v6.15.6+incompatible h1:H9evprGPLI8+ci7fxQx6WNZHJSb7be8FqJQRhdQZ5Sg= +github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= +github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/mock v1.4.3 h1:GV+pQPG/EUUbkh47niozDcADz6go/dUwhVzdUQHIVRw= +github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= +github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian/v3 v3.0.0 h1:pMen7vLs8nvgEYhywH3KDWJIJTeEr2ULsVWHWYHQyBs= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99 h1:Ak8CrdlwwXwAZxzS66vgPt4U8yUZX7JwLvVR58FN5jM= +github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 h1:5iH8iuqE5apketRbSFBy+X1V0o+l+8NF1avt4HWl7cA= +github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= +github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA= +github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= +github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= +github.com/gorilla/mux v1.7.4 h1:VuZ8uybHlWmqV03+zRzdwKL4tUnIp1MAQtp1mIFE1bc= +github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6 h1:UDMh68UUwekSh5iP2OMhRRZJiiBccgV7axzUG8vi56c= +github.com/imdario/mergo v0.3.8 h1:CGgOkSJeqMRmt0D9XLWExdT4m4F1vd3FV3VPt+0VxkQ= +github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/jawher/mow.cli v1.2.0 h1:e6ViPPy+82A/NFF/cfbq3Lr6q4JHKT9tyHwTCcUQgQw= +github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc= +github.com/jonboulle/clockwork v0.4.0/go.mod h1:xgRqUGwRcjKCO1vbZUEtSLrqKoPSsUpK7fnezOII0kc= +github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= +github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d h1:Z+RDyXzjKE0i2sTjZ/b1uxiGtPhFy34Ou/Tk0qwN0kM= +github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= +github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= +github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= +github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= +github.com/olekukonko/tablewriter v0.0.1 h1:b3iUnf1v+ppJiOfNX4yxxqfWKMQPZR5yoh8urCTFX88= +github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo/v2 v2.20.1 h1:YlVIbqct+ZmnEph770q9Q7NVAz4wwIiVNahee6JyUzo= +github.com/onsi/ginkgo/v2 v2.20.1/go.mod h1:lG9ey2Z29hR41WMVthyJBGUBcBhGOtoPF2VFMvBXFCI= +github.com/opencontainers/runc v0.1.1 h1:GlxAyO6x8rfZYN9Tt0Kti5a/cP41iuiO2yYT0IJGY8Y= +github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= +github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= +github.com/rogpeppe/go-internal v1.3.0 h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk= +github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= +github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= +github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI= +github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= +github.com/spf13/viper v1.3.2 h1:VUFqw5KcqRf7i70GOzW7N+Q7+gxVBkSSqiXB12+JQ4M= +github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 h1:3SVOIvH7Ae1KRYyQWRjXWJEA9sS/c/pjvH++55Gr648= +github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc= +github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow= +github.com/yuin/goldmark v1.1.32 h1:5tjfNdR2ki3yYQ842+eX2sQHeiwpKJ0RnHO4IYOc4V8= +go.opencensus.io v0.22.4 h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0 h1:QY7/0NeRPKlzusf40ZE4t1VlMKbqSNT7cJRYzWuja0s= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0/go.mod h1:HVkSiDhTM9BoUJU8qE6j2eSWLLXvi1USXjyd2BXT8PY= +go.opentelemetry.io/otel/sdk v1.27.0 h1:mlk+/Y1gLPLn84U4tI8d3GNJmGT/eXe3ZuOXN9kTWmI= +go.opentelemetry.io/otel/sdk v1.27.0/go.mod h1:Ha9vbLwJE6W86YstIywK2xFfPjbWlCuwPtMkKdz/Y4A= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs= +golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/cr4/aHLv9xU8Kkadrw= +golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= +golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= +golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= +golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= +golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= +golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d h1:W07d4xkoAUSNOkOzdzXCdFGxT7o2rW4q8M34tB2i//k= +golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= +golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +google.golang.org/api v0.30.0 h1:yfrXXP61wVuLb0vBcG6qaOoIoqYEzOQS8jum51jkv2w= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 h1:PDIOdWxZ8eRizhKa1AAvY53xsvLB1cWorMjslvY3VA8= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1:ZlWIi1wSK56/8hn4QcBp/j9M7Gt3U/3hZw3mC7vDICo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/grpc v1.31.0 h1:T7P4R73V3SSDPhH7WW7ATbfViLtmamH0DKrP3f9AuDI= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= +gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8= +gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= +gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= +gopkg.in/square/go-jose.v2 v2.4.1 h1:H0TmLt7/KmzlrDOpa1F+zr0Tk90PbJYBfsVUmRLrf9Y= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gotest.tools v0.0.0-20181223230014-1083505acf35 h1:zpdCK+REwbk+rqjJmHhiCN6iBIigrZ39glqSF0P3KF0= +honnef.co/go/tools v0.0.1-2020.1.4 h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8= +k8s.io/component-base v0.32.3 h1:98WJvvMs3QZ2LYHBzvltFSeJjEx7t5+8s71P7M74u8k= +k8s.io/component-base v0.32.3/go.mod h1:LWi9cR+yPAv7cu2X9rZanTiFKB2kHA+JjmhkKjCZRpI= +k8s.io/component-helpers v0.32.3/go.mod h1:utTBXk8lhkJewBKNuNf32Xl3KT/0VV19DmiXU/SV4Ao= +k8s.io/gengo/v2 v2.0.0-20240826214909-a7b603a56eb7/go.mod h1:EJykeLsmFC60UQbYJezXkEsG2FLrt0GPNkU5iK5GWxU= +k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4= +k8s.io/klog/v2 v2.80.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= +k8s.io/metrics v0.32.3/go.mod h1:9R1Wk5cb+qJpCQon9h52mgkVCcFeYxcY+YkumfwHVCU= +rsc.io/binaryregexp v0.2.0 h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE= +rsc.io/quote/v3 v3.1.0 h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY= +rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4= +sigs.k8s.io/kustomize/kustomize/v5 v5.5.0/go.mod h1:AeFCmgCrXzmvjWWaeZCyBp6XzG1Y0w1svYus8GhJEOE= diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go new file mode 100644 index 0000000..1e2190e --- /dev/null +++ b/pkg/auth/auth.go @@ -0,0 +1,159 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package auth + +import ( + "encoding/json" + "fmt" + "io" + "time" + + "github.com/dgrijalva/jwt-go" + "golang.org/x/oauth2" + "k8s.io/utils/clock" +) + +const ( + ClaimNameUserName = "https://streamnative.io/username" +) + +// Flow abstracts an OAuth 2.0 authentication and authorization flow +type Flow interface { + // Authorize obtains an authorization grant based on an OAuth 2.0 authorization flow. + // The method returns a grant which may contain an initial access token. + Authorize() (*AuthorizationGrant, error) +} + +// AuthorizationGrantRefresher refreshes OAuth 2.0 authorization grant +type AuthorizationGrantRefresher interface { + // Refresh refreshes an authorization grant to contain a fresh access token + Refresh(grant *AuthorizationGrant) (*AuthorizationGrant, error) +} + +type AuthorizationGrantType string + +const ( + // GrantTypeClientCredentials represents a client credentials grant + GrantTypeClientCredentials AuthorizationGrantType = "client_credentials" +) + +// AuthorizationGrant is a credential representing the resource owner's authorization +// to access its protected resources, and is used by the client to obtain an access token +type AuthorizationGrant struct { + // Type describes the type of authorization grant represented by this structure + Type AuthorizationGrantType `json:"type"` + + // ClientCredentials is credentials data for the client credentials grant type + ClientCredentials *KeyFile `json:"client_credentials,omitempty"` + + // Token contains an access token in the client credentials grant type, + // and a refresh token in the device authorization grant type + Token *oauth2.Token `json:"token,omitempty"` +} + +// TokenResult holds token information +type TokenResult struct { + AccessToken string `json:"access_token"` + IDToken string `json:"id_token"` + RefreshToken string `json:"refresh_token"` + ExpiresIn int `json:"expires_in"` +} + +// Issuer holds information about the issuer of tokens +type Issuer struct { + IssuerEndpoint string + ClientID string + Audience string +} + +func convertToOAuth2Token(token *TokenResult, clock clock.Clock) oauth2.Token { + return oauth2.Token{ + AccessToken: token.AccessToken, + TokenType: "bearer", + RefreshToken: token.RefreshToken, + Expiry: clock.Now().Add(time.Duration(token.ExpiresIn) * time.Second), + } +} + +// ExtractUserName extracts the username claim from an authorization grant +func ExtractUserName(token oauth2.Token) (string, error) { + p := jwt.Parser{} + claims := jwt.MapClaims{} + + // First try to extract from access token + _, _, err := p.ParseUnverified(token.AccessToken, claims) + + // If access token parsing fails, try to extract from id_token + if err != nil { + // If id_token exists, try to parse it + idToken, ok := token.Extra("id_token").(string) + if ok && idToken != "" { + if _, _, err := p.ParseUnverified(idToken, claims); err == nil { + // Successfully parsed id_token + if username, ok := claims[ClaimNameUserName].(string); ok { + return username, nil + } + + // Try other standard claims + if email, ok := claims["email"].(string); ok { + return email, nil + } + if sub, ok := claims["sub"].(string); ok { + return sub, nil + } + } + } + + // If unable to parse any token, return error + return "", fmt.Errorf("unable to decode the token: %v", err) + } + + // If parsing successful, try to get username + if username, ok := claims[ClaimNameUserName]; ok { + if v, ok := username.(string); ok { + return v, nil + } + return "", fmt.Errorf("access token contains an unsupported username claim") + } + + // Try other standard claims + if email, ok := claims["email"].(string); ok { + return email, nil + } + if sub, ok := claims["sub"].(string); ok { + return sub, nil + } + + return "", fmt.Errorf("access token doesn't contain a recognizable user claim") +} + +func DumpToken(out io.Writer, token oauth2.Token) { + p := jwt.Parser{} + claims := jwt.MapClaims{} + if _, _, err := p.ParseUnverified(token.AccessToken, claims); err != nil { + fmt.Fprintf(out, "Unable to parse token. Err: %v\n", err) + return + } + + text, err := json.MarshalIndent(claims, "", " ") + if err != nil { + fmt.Fprintf(out, "Unable to print token. Err: %v\n", err) + } + _, _ = out.Write(text) + _, _ = fmt.Fprintln(out, "") +} diff --git a/pkg/auth/authorization_tokenretriever.go b/pkg/auth/authorization_tokenretriever.go new file mode 100644 index 0000000..eff49b7 --- /dev/null +++ b/pkg/auth/authorization_tokenretriever.go @@ -0,0 +1,338 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package auth + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "net/http" + "net/url" + "strconv" + "strings" + "time" +) + +// TokenRetriever implements AuthTokenExchanger in order to facilitate getting +// Tokens +type TokenRetriever struct { + oidcWellKnownEndpoints OIDCWellKnownEndpoints + transport HTTPAuthTransport +} + +// AuthorizationTokenResponse is the HTTP response when asking for a new token. +// Note that not all fields will contain data based on what kind of request was +// sent +type AuthorizationTokenResponse struct { + AccessToken string `json:"access_token"` + ExpiresIn int `json:"expires_in"` + IDToken string `json:"id_token"` + RefreshToken string `json:"refresh_token"` + TokenType string `json:"token_type"` +} + +// AuthorizationCodeExchangeRequest is used to request the exchange of an +// authorization code for a token +type AuthorizationCodeExchangeRequest struct { + ClientID string + CodeVerifier string + Code string + RedirectURI string +} + +// RefreshTokenExchangeRequest is used to request the exchange of a refresh +// token for a refreshed token +type RefreshTokenExchangeRequest struct { + ClientID string + RefreshToken string +} + +// ClientCredentialsExchangeRequest is used to request the exchange of +// client credentials for a token +type ClientCredentialsExchangeRequest struct { + ClientID string + ClientSecret string + Audience string +} + +// DeviceCodeExchangeRequest is used to request the exchange of +// a device code for a token +type DeviceCodeExchangeRequest struct { + ClientID string + DeviceCode string + PollInterval time.Duration +} + +// TokenErrorResponse is used to parse error responses from the token endpoint +type TokenErrorResponse struct { + Error string `json:"error"` + ErrorDescription string `json:"error_description"` +} + +type TokenError struct { + ErrorCode string + ErrorDescription string +} + +func (e *TokenError) Error() string { + if e.ErrorDescription != "" { + return fmt.Sprintf("%s (%s)", e.ErrorDescription, e.ErrorCode) + } + return e.ErrorCode +} + +// HTTPAuthTransport abstracts how an HTTP exchange request is sent and received +type HTTPAuthTransport interface { + Do(request *http.Request) (*http.Response, error) +} + +// NewTokenRetriever allows a TokenRetriever the internal of a new +// TokenRetriever to be easily set up +func NewTokenRetriever( + oidcWellKnownEndpoints OIDCWellKnownEndpoints, + authTransport HTTPAuthTransport) *TokenRetriever { + return &TokenRetriever{ + oidcWellKnownEndpoints: oidcWellKnownEndpoints, + transport: authTransport, + } +} + +// newExchangeCodeRequest builds a new AuthTokenRequest wrapped in an +// http.Request +func (ce *TokenRetriever) newExchangeCodeRequest( + req AuthorizationCodeExchangeRequest) (*http.Request, error) { + uv := url.Values{} + uv.Set("grant_type", "authorization_code") + uv.Set("client_id", req.ClientID) + uv.Set("code_verifier", req.CodeVerifier) + uv.Set("code", req.Code) + uv.Set("redirect_uri", req.RedirectURI) + + euv := uv.Encode() + + request, err := http.NewRequest("POST", + ce.oidcWellKnownEndpoints.TokenEndpoint, + strings.NewReader(euv), + ) + if err != nil { + return nil, err + } + + request.Header.Add("Content-Type", "application/x-www-form-urlencoded") + request.Header.Add("Content-Length", strconv.Itoa(len(euv))) + + return request, nil +} + +// newDeviceCodeExchangeRequest builds a new DeviceCodeExchangeRequest wrapped in an +// http.Request +func (ce *TokenRetriever) newDeviceCodeExchangeRequest( + req DeviceCodeExchangeRequest) (*http.Request, error) { + uv := url.Values{} + uv.Set("grant_type", "urn:ietf:params:oauth:grant-type:device_code") + uv.Set("client_id", req.ClientID) + uv.Set("device_code", req.DeviceCode) + euv := uv.Encode() + + request, err := http.NewRequest("POST", + ce.oidcWellKnownEndpoints.TokenEndpoint, + strings.NewReader(euv), + ) + if err != nil { + return nil, err + } + + request.Header.Add("Content-Type", "application/x-www-form-urlencoded") + request.Header.Add("Content-Length", strconv.Itoa(len(euv))) + + return request, nil +} + +// newRefreshTokenRequest builds a new RefreshTokenRequest wrapped in an +// http.Request +func (ce *TokenRetriever) newRefreshTokenRequest(req RefreshTokenExchangeRequest) (*http.Request, error) { + uv := url.Values{} + uv.Set("grant_type", "refresh_token") + uv.Set("client_id", req.ClientID) + uv.Set("refresh_token", req.RefreshToken) + + euv := uv.Encode() + + request, err := http.NewRequest("POST", + ce.oidcWellKnownEndpoints.TokenEndpoint, + strings.NewReader(euv), + ) + if err != nil { + return nil, err + } + + request.Header.Add("Content-Type", "application/x-www-form-urlencoded") + request.Header.Add("Content-Length", strconv.Itoa(len(euv))) + + return request, nil +} + +// newClientCredentialsRequest builds a new ClientCredentialsExchangeRequest wrapped in an +// http.Request +func (ce *TokenRetriever) newClientCredentialsRequest(req ClientCredentialsExchangeRequest) (*http.Request, error) { + uv := url.Values{} + uv.Set("grant_type", "client_credentials") + uv.Set("client_id", req.ClientID) + uv.Set("client_secret", req.ClientSecret) + uv.Set("audience", req.Audience) + + euv := uv.Encode() + + request, err := http.NewRequest("POST", + ce.oidcWellKnownEndpoints.TokenEndpoint, + strings.NewReader(euv), + ) + if err != nil { + return nil, err + } + + request.Header.Add("Content-Type", "application/x-www-form-urlencoded") + request.Header.Add("Content-Length", strconv.Itoa(len(euv))) + + return request, nil +} + +// ExchangeCode uses the AuthCodeExchangeRequest to exchange an authorization +// code for tokens +func (ce *TokenRetriever) ExchangeCode(req AuthorizationCodeExchangeRequest) (*TokenResult, error) { + request, err := ce.newExchangeCodeRequest(req) + if err != nil { + return nil, err + } + + response, err := ce.transport.Do(request) + if err != nil { + return nil, err + } + + return ce.handleAuthTokensResponse(response) +} + +// handleAuthTokensResponse takes care of checking an http.Response that has +// auth tokens for errors and parsing the raw body to a TokenResult struct +func (ce *TokenRetriever) handleAuthTokensResponse(resp *http.Response) (*TokenResult, error) { + if resp.Body != nil { + defer resp.Body.Close() + } + + if resp.StatusCode < 200 || resp.StatusCode > 299 { + if resp.Header.Get("Content-Type") == "application/json" { + er := TokenErrorResponse{} + err := json.NewDecoder(resp.Body).Decode(&er) + if err != nil { + return nil, err + } + return nil, &TokenError{ErrorCode: er.Error, ErrorDescription: er.ErrorDescription} + } + return nil, fmt.Errorf("a non-success status code was received: %d", resp.StatusCode) + } + + atr := AuthorizationTokenResponse{} + err := json.NewDecoder(resp.Body).Decode(&atr) + if err != nil { + return nil, err + } + + return &TokenResult{ + AccessToken: atr.AccessToken, + IDToken: atr.IDToken, + RefreshToken: atr.RefreshToken, + ExpiresIn: atr.ExpiresIn, + }, nil +} + +// ExchangeDeviceCode uses the DeviceCodeExchangeRequest to exchange a device +// code for tokens +func (ce *TokenRetriever) ExchangeDeviceCode(ctx context.Context, req DeviceCodeExchangeRequest) (*TokenResult, error) { + for { + request, err := ce.newDeviceCodeExchangeRequest(req) + if err != nil { + return nil, err + } + + response, err := ce.transport.Do(request) + if err != nil { + return nil, err + } + token, err := ce.handleAuthTokensResponse(response) + if err == nil { + return token, nil + } + terr, ok := err.(*TokenError) + if !ok { + return nil, err + } + switch terr.ErrorCode { + case "expired_token": + // The user has not authorized the device quickly enough, so the device_code has expired. + return nil, fmt.Errorf("the device code has expired") + case "access_denied": + // The user refused to authorize the device + return nil, fmt.Errorf("the device was not authorized") + case "authorization_pending": + // Still waiting for the user to take action + case "slow_down": + // You are polling too fast + } + + select { + case <-time.After(req.PollInterval): + continue + case <-ctx.Done(): + return nil, errors.New("cancelled") + } + } +} + +// ExchangeRefreshToken uses the RefreshTokenExchangeRequest to exchange a +// refresh token for refreshed tokens +func (ce *TokenRetriever) ExchangeRefreshToken(req RefreshTokenExchangeRequest) (*TokenResult, error) { + request, err := ce.newRefreshTokenRequest(req) + if err != nil { + return nil, err + } + + response, err := ce.transport.Do(request) + if err != nil { + return nil, err + } + + return ce.handleAuthTokensResponse(response) +} + +// ExchangeClientCredentials uses the ClientCredentialsExchangeRequest to exchange +// client credentials for tokens +func (ce *TokenRetriever) ExchangeClientCredentials(req ClientCredentialsExchangeRequest) (*TokenResult, error) { + request, err := ce.newClientCredentialsRequest(req) + if err != nil { + return nil, err + } + + response, err := ce.transport.Do(request) + if err != nil { + return nil, err + } + + return ce.handleAuthTokensResponse(response) +} diff --git a/pkg/auth/cache/cache.go b/pkg/auth/cache/cache.go new file mode 100644 index 0000000..9d5a4a6 --- /dev/null +++ b/pkg/auth/cache/cache.go @@ -0,0 +1,142 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package cache + +import ( + "fmt" + "sync" + "time" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" + + "golang.org/x/oauth2" + "k8s.io/utils/clock" +) + +// A CachingTokenSource is anything that can return a token, and is backed by a cache. +type CachingTokenSource interface { + oauth2.TokenSource + + // InvalidateToken is called when the token is rejected by the resource server. + InvalidateToken() error +} + +const ( + // expiryDelta adjusts the token TTL to avoid using tokens which are almost expired + expiryDelta = time.Duration(60) * time.Second +) + +// tokenCache implements a cache for the token associated with a specific audience. +// it interacts with the store when the access token is near expiration or invalidated. +// it is advisable to use a token cache instance per audience. +type tokenCache struct { + clock clock.Clock + lock sync.Mutex + store store.Store + audience string + refresher auth.AuthorizationGrantRefresher + token *oauth2.Token +} + +func NewDefaultTokenCache(store store.Store, audience string, + refresher auth.AuthorizationGrantRefresher) (CachingTokenSource, error) { + cache := &tokenCache{ + clock: clock.RealClock{}, + store: store, + audience: audience, + refresher: refresher, + } + return cache, nil +} + +var _ CachingTokenSource = &tokenCache{} + +// Token returns a valid access token, if available. +func (t *tokenCache) Token() (*oauth2.Token, error) { + t.lock.Lock() + defer t.lock.Unlock() + + // use the cached access token if it isn't expired + if t.token != nil && t.validateAccessToken(*t.token) { + return t.token, nil + } + + // load from the store and use the access token if it isn't expired + grant, err := t.store.LoadGrant(t.audience) + if err != nil { + return nil, fmt.Errorf("LoadGrant: %v", err) + } + t.token = grant.Token + if t.token != nil && t.validateAccessToken(*t.token) { + return t.token, nil + } + + // obtain and cache a fresh access token + grant, err = t.refresher.Refresh(grant) + if err != nil { + return nil, fmt.Errorf("RefreshGrant: %v", err) + } + t.token = grant.Token + err = t.store.SaveGrant(t.audience, *grant) + if err != nil { + // TODO log rather than throw + return nil, fmt.Errorf("SaveGrant: %v", err) + } + + return t.token, nil +} + +// InvalidateToken clears the access token (likely due to a response from the resource server). +// Note that the token within the grant may contain a refresh token which should survive. +func (t *tokenCache) InvalidateToken() error { + t.lock.Lock() + defer t.lock.Unlock() + + previous := t.token + t.token = nil + + // clear from the store the access token that was returned earlier (unless the store has since been updated) + if previous == nil || previous.AccessToken == "" { + return nil + } + grant, err := t.store.LoadGrant(t.audience) + if err != nil { + return fmt.Errorf("LoadGrant: %v", err) + } + if grant.Token != nil && grant.Token.AccessToken == previous.AccessToken { + grant.Token.AccessToken = "" + err = t.store.SaveGrant(t.audience, *grant) + if err != nil { + // TODO log rather than throw + return fmt.Errorf("SaveGrant: %v", err) + } + } + return nil +} + +// validateAccessToken checks the validity of the cached access token +func (t *tokenCache) validateAccessToken(token oauth2.Token) bool { + if token.AccessToken == "" { + return false + } + if !token.Expiry.IsZero() && t.clock.Now().After(token.Expiry.Round(0).Add(-expiryDelta)) { + return false + } + return true +} diff --git a/pkg/auth/client_credentials_flow.go b/pkg/auth/client_credentials_flow.go new file mode 100644 index 0000000..8a2b031 --- /dev/null +++ b/pkg/auth/client_credentials_flow.go @@ -0,0 +1,175 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package auth + +import ( + "net/http" + + "k8s.io/utils/clock" + + "github.com/pkg/errors" +) + +// ClientCredentialsFlow takes care of the mechanics needed for getting an access +// token using the OAuth 2.0 "Client Credentials Flow" +type ClientCredentialsFlow struct { + issuerData Issuer + provider ClientCredentialsProvider + exchanger ClientCredentialsExchanger + clock clock.Clock +} + +// ClientCredentialsProvider abstracts getting client credentials +type ClientCredentialsProvider interface { + GetClientCredentials() (*KeyFile, error) +} + +// ClientCredentialsExchanger abstracts exchanging client credentials for tokens +type ClientCredentialsExchanger interface { + ExchangeClientCredentials(req ClientCredentialsExchangeRequest) (*TokenResult, error) +} + +func NewClientCredentialsFlow( + issuerData Issuer, + provider ClientCredentialsProvider, + exchanger ClientCredentialsExchanger, + clock clock.Clock) *ClientCredentialsFlow { + return &ClientCredentialsFlow{ + issuerData: issuerData, + provider: provider, + exchanger: exchanger, + clock: clock, + } +} + +// NewDefaultClientCredentialsFlow provides an easy way to build up a default +// client credentials flow with all the correct configuration. +func NewDefaultClientCredentialsFlow(issuerData Issuer, keyFile string) (*ClientCredentialsFlow, error) { + wellKnownEndpoints, err := GetOIDCWellKnownEndpointsFromIssuerURL(issuerData.IssuerEndpoint) + if err != nil { + return nil, err + } + + credsProvider := NewClientCredentialsProviderFromKeyFile(keyFile) + + tokenRetriever := NewTokenRetriever( + *wellKnownEndpoints, + &http.Client{}) + + return NewClientCredentialsFlow( + issuerData, + credsProvider, + tokenRetriever, + clock.RealClock{}), nil +} + +// NewDefaultClientCredentialsFlowWithKeyFileStruct provides an easy way to build up a default +// client credentials flow with all the correct configuration. +func NewDefaultClientCredentialsFlowWithKeyFileStruct(issuerData Issuer, keyFile *KeyFile) (*ClientCredentialsFlow, error) { + wellKnownEndpoints, err := GetOIDCWellKnownEndpointsFromIssuerURL(issuerData.IssuerEndpoint) + if err != nil { + return nil, err + } + + credsProvider := NewClientCredentialsProviderFromKeyFileStruct(keyFile) + + tokenRetriever := NewTokenRetriever( + *wellKnownEndpoints, + &http.Client{}) + + return NewClientCredentialsFlow( + issuerData, + credsProvider, + tokenRetriever, + clock.RealClock{}), nil +} + +var _ Flow = &ClientCredentialsFlow{} + +func (c *ClientCredentialsFlow) Authorize() (*AuthorizationGrant, error) { + keyFile, err := c.provider.GetClientCredentials() + if err != nil { + return nil, errors.Wrap(err, "could not get client credentials") + } + grant := &AuthorizationGrant{ + Type: GrantTypeClientCredentials, + ClientCredentials: keyFile, + } + + // test the credentials and obtain an initial access token + refresher := &ClientCredentialsGrantRefresher{ + issuerData: c.issuerData, + exchanger: c.exchanger, + clock: c.clock, + } + grant, err = refresher.Refresh(grant) + if err != nil { + return nil, errors.Wrap(err, "authentication failed using client credentials") + } + return grant, nil +} + +type ClientCredentialsGrantRefresher struct { + issuerData Issuer + exchanger ClientCredentialsExchanger + clock clock.Clock +} + +func NewDefaultClientCredentialsGrantRefresher(issuerData Issuer, + clock clock.Clock) (*ClientCredentialsGrantRefresher, error) { + wellKnownEndpoints, err := GetOIDCWellKnownEndpointsFromIssuerURL(issuerData.IssuerEndpoint) + if err != nil { + return nil, err + } + + tokenRetriever := NewTokenRetriever( + *wellKnownEndpoints, + &http.Client{}) + + return &ClientCredentialsGrantRefresher{ + issuerData: issuerData, + exchanger: tokenRetriever, + clock: clock, + }, nil +} + +var _ AuthorizationGrantRefresher = &ClientCredentialsGrantRefresher{} + +func (g *ClientCredentialsGrantRefresher) Refresh(grant *AuthorizationGrant) (*AuthorizationGrant, error) { + if grant.Type != GrantTypeClientCredentials { + return nil, errors.New("unsupported grant type") + } + + exchangeRequest := ClientCredentialsExchangeRequest{ + Audience: g.issuerData.Audience, + ClientID: grant.ClientCredentials.ClientID, + ClientSecret: grant.ClientCredentials.ClientSecret, + } + tr, err := g.exchanger.ExchangeClientCredentials(exchangeRequest) + if err != nil { + return nil, errors.Wrap(err, "could not exchange client credentials") + } + + token := convertToOAuth2Token(tr, g.clock) + grant = &AuthorizationGrant{ + Type: GrantTypeClientCredentials, + ClientCredentials: grant.ClientCredentials, + Token: &token, + } + return grant, nil +} diff --git a/pkg/auth/client_credentials_provider.go b/pkg/auth/client_credentials_provider.go new file mode 100644 index 0000000..59eee8a --- /dev/null +++ b/pkg/auth/client_credentials_provider.go @@ -0,0 +1,103 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package auth + +import ( + "encoding/json" + "fmt" + "os" + "strings" +) + +const ( + KeyFileTypeServiceAccount = "sn_service_account" + FILE = "file://" + DATA = "data://" +) + +type KeyFileProvider struct { + KeyFile string +} + +type KeyFile struct { + Type string `json:"type"` + ClientID string `json:"client_id"` + ClientSecret string `json:"client_secret"` + ClientEmail string `json:"client_email"` +} + +func NewClientCredentialsProviderFromKeyFile(keyFile string) *KeyFileProvider { + return &KeyFileProvider{ + KeyFile: keyFile, + } +} + +var _ ClientCredentialsProvider = &KeyFileProvider{} + +func (k *KeyFileProvider) GetClientCredentials() (*KeyFile, error) { + var keyFile []byte + var err error + switch { + case strings.HasPrefix(k.KeyFile, FILE): + filename := strings.TrimPrefix(k.KeyFile, FILE) + keyFile, err = os.ReadFile(filename) + case strings.HasPrefix(k.KeyFile, DATA): + keyFile = []byte(strings.TrimPrefix(k.KeyFile, DATA)) + case strings.HasPrefix(k.KeyFile, "data:"): + url, err := newDataURL(k.KeyFile) + if err != nil { + return nil, err + } + keyFile = url.Data + default: + keyFile, err = os.ReadFile(k.KeyFile) + } + if err != nil { + return nil, err + } + + var v KeyFile + err = json.Unmarshal(keyFile, &v) + if err != nil { + return nil, err + } + if v.Type != KeyFileTypeServiceAccount { + return nil, fmt.Errorf("open %s: unsupported format", k.KeyFile) + } + + return &v, nil +} + +type KeyFileStructProvider struct { + KeyFile *KeyFile +} + +func (k *KeyFileStructProvider) GetClientCredentials() (*KeyFile, error) { + if k.KeyFile == nil { + return nil, fmt.Errorf("key file is nil") + } + return k.KeyFile, nil +} + +func NewClientCredentialsProviderFromKeyFileStruct(keyFile *KeyFile) *KeyFileStructProvider { + return &KeyFileStructProvider{ + KeyFile: keyFile, + } +} + +var _ ClientCredentialsProvider = &KeyFileStructProvider{} diff --git a/pkg/auth/config_tokenprovider.go b/pkg/auth/config_tokenprovider.go new file mode 100644 index 0000000..6b3963f --- /dev/null +++ b/pkg/auth/config_tokenprovider.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package auth + +import "fmt" + +type configProvider interface { + GetTokens(identifier string) (string, string) + SaveTokens(identifier, accessToken, refreshToken string) +} + +// ConfigBackedCachingProvider wraps a configProvider in order to conform to +// the cachingProvider interface +type ConfigBackedCachingProvider struct { + identifier string + config configProvider +} + +// NewConfigBackedCachingProvider builds and returns a CachingTokenProvider +// that utilizes a configProvider to cache tokens +func NewConfigBackedCachingProvider(clientID, audience string, config configProvider) *ConfigBackedCachingProvider { + return &ConfigBackedCachingProvider{ + identifier: fmt.Sprintf("%s-%s", clientID, audience), + config: config, + } +} + +// GetTokens gets the tokens from the cache and returns them as a TokenResult +func (c *ConfigBackedCachingProvider) GetTokens() (*TokenResult, error) { + accessToken, refreshToken := c.config.GetTokens(c.identifier) + return &TokenResult{ + AccessToken: accessToken, + RefreshToken: refreshToken, + }, nil +} + +// CacheTokens caches the id and refresh token from TokenResult in the +// configProvider +func (c *ConfigBackedCachingProvider) CacheTokens(toCache *TokenResult) error { + c.config.SaveTokens(c.identifier, toCache.AccessToken, toCache.RefreshToken) + return nil +} diff --git a/pkg/auth/data_url.go b/pkg/auth/data_url.go new file mode 100644 index 0000000..6533d64 --- /dev/null +++ b/pkg/auth/data_url.go @@ -0,0 +1,70 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package auth + +import ( + "encoding/base64" + "errors" + "regexp" +) + +var errDataURLInvalid = errors.New("invalid data URL") + +// https://datatracker.ietf.org/doc/html/rfc2397 +var dataURLRegex = regexp.MustCompile("^data:(?P[^;,]+)?(;(?Pcharset=[^;,]+))?" + + "(;(?Pbase64))?,(?P.+)") + +type dataURL struct { + url string + Mimetype string + Data []byte +} + +func newDataURL(url string) (*dataURL, error) { + if !dataURLRegex.Match([]byte(url)) { + return nil, errDataURLInvalid + } + + match := dataURLRegex.FindStringSubmatch(url) + if len(match) != 7 { + return nil, errDataURLInvalid + } + + dataURL := &dataURL{ + url: url, + } + + mimetype := match[dataURLRegex.SubexpIndex("mimetype")] + if mimetype == "" { + mimetype = "text/plain" + } + dataURL.Mimetype = mimetype + + data := match[dataURLRegex.SubexpIndex("data")] + if match[dataURLRegex.SubexpIndex("base64")] == "" { + dataURL.Data = []byte(data) + } else { + data, err := base64.StdEncoding.DecodeString(data) + if err != nil { + return nil, err + } + dataURL.Data = data + } + + return dataURL, nil +} diff --git a/pkg/auth/oidc_endpoint_provider.go b/pkg/auth/oidc_endpoint_provider.go new file mode 100644 index 0000000..e675060 --- /dev/null +++ b/pkg/auth/oidc_endpoint_provider.go @@ -0,0 +1,58 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package auth + +import ( + "encoding/json" + "net/http" + "net/url" + "path" + + "github.com/pkg/errors" +) + +// OIDCWellKnownEndpoints holds the well known OIDC endpoints +type OIDCWellKnownEndpoints struct { + AuthorizationEndpoint string `json:"authorization_endpoint"` + TokenEndpoint string `json:"token_endpoint"` + DeviceAuthorizationEndpoint string `json:"device_authorization_endpoint"` +} + +// GetOIDCWellKnownEndpointsFromIssuerURL gets the well known endpoints for the +// passed in issuer url +func GetOIDCWellKnownEndpointsFromIssuerURL(issuerURL string) (*OIDCWellKnownEndpoints, error) { + u, err := url.Parse(issuerURL) + if err != nil { + return nil, errors.Wrap(err, "could not parse issuer url to build well known endpoints") + } + u.Path = path.Join(u.Path, ".well-known/openid-configuration") + + r, err := http.Get(u.String()) + if err != nil { + return nil, errors.Wrapf(err, "could not get well known endpoints from url %s", u.String()) + } + defer r.Body.Close() + + var wkEndpoints OIDCWellKnownEndpoints + err = json.NewDecoder(r.Body).Decode(&wkEndpoints) + if err != nil { + return nil, errors.Wrap(err, "could not decode json body when getting well known endpoints") + } + + return &wkEndpoints, nil +} diff --git a/pkg/auth/store/keyring.go b/pkg/auth/store/keyring.go new file mode 100644 index 0000000..805c819 --- /dev/null +++ b/pkg/auth/store/keyring.go @@ -0,0 +1,202 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package store + +import ( + "crypto/sha1" //nolint:gosec + "encoding/json" + "fmt" + "sync" + + "github.com/99designs/keyring" + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + "k8s.io/utils/clock" +) + +type KeyringStore struct { + kr keyring.Keyring + clock clock.Clock + lock sync.Mutex +} + +// storedItem represents an item stored in the keyring +type storedItem struct { + Audience string + UserName string + Grant auth.AuthorizationGrant +} + +// NewKeyringStore creates a store based on a keyring. +func NewKeyringStore(kr keyring.Keyring) (*KeyringStore, error) { + return &KeyringStore{ + kr: kr, + clock: clock.RealClock{}, + }, nil +} + +var _ Store = &KeyringStore{} + +func (f *KeyringStore) SaveGrant(audience string, grant auth.AuthorizationGrant) error { + f.lock.Lock() + defer f.lock.Unlock() + + var err error + var userName string + switch grant.Type { + case auth.GrantTypeClientCredentials: + if grant.ClientCredentials == nil { + return ErrUnsupportedAuthData + } + userName = grant.ClientCredentials.ClientEmail + default: + return ErrUnsupportedAuthData + } + item := storedItem{ + Audience: audience, + UserName: userName, + Grant: grant, + } + err = f.setItem(item) + if err != nil { + return err + } + return nil +} + +func (f *KeyringStore) LoadGrant(audience string) (*auth.AuthorizationGrant, error) { + f.lock.Lock() + defer f.lock.Unlock() + + item, err := f.getItem(audience) + if err != nil { + if err == keyring.ErrKeyNotFound { + return nil, ErrNoAuthenticationData + } + return nil, err + } + switch item.Grant.Type { + case auth.GrantTypeClientCredentials: + if item.Grant.ClientCredentials == nil { + return nil, ErrUnsupportedAuthData + } + default: + return nil, ErrUnsupportedAuthData + } + return &item.Grant, nil +} + +func (f *KeyringStore) WhoAmI(audience string) (string, error) { + f.lock.Lock() + defer f.lock.Unlock() + + key := hashKeyringKey(audience) + var label string + var err error + authItem, err := f.kr.GetMetadata(key) + switch { + case err == nil && authItem.Item != nil: + label = authItem.Label + case err == keyring.ErrMetadataNeedsCredentials || authItem.Item == nil: + // in this case, the backend doesn't support looking up metadata + // some backends properly return an error message, others just return nil + // so we still need to grab the whole document to look up the label + item, getErr := f.kr.Get(key) + switch { + case getErr == keyring.ErrKeyNotFound: + err = ErrNoAuthenticationData + case getErr != nil: + err = fmt.Errorf("unable to get information from the keyring: %v", err) + default: + // clear the error as it worked + err = nil + label = item.Label + } + case err == keyring.ErrKeyNotFound: + err = ErrNoAuthenticationData + default: + err = fmt.Errorf("unable to get information from the keyring: %v", err) + } + + return label, err +} + +func (f *KeyringStore) Logout() error { + f.lock.Lock() + defer f.lock.Unlock() + + var err error + keys, err := f.kr.Keys() + if err != nil { + return fmt.Errorf("unable to get information from the keyring: %v", err) + } + for _, key := range keys { + err = f.kr.Remove(key) + } + if err != nil { + return fmt.Errorf("unable to update the keyring: %v", err) + } + return nil +} + +func (f *KeyringStore) getItem(audience string) (storedItem, error) { + key := hashKeyringKey(audience) + i, err := f.kr.Get(key) + if err != nil { + return storedItem{}, err + } + var grant auth.AuthorizationGrant + err = json.Unmarshal(i.Data, &grant) + if err != nil { + // the grant appears to be invalid + return storedItem{}, ErrUnsupportedAuthData + } + return storedItem{ + Audience: audience, + UserName: i.Label, + Grant: grant, + }, nil +} + +func (f *KeyringStore) setItem(item storedItem) error { + key := hashKeyringKey(item.Audience) + data, err := json.Marshal(item.Grant) + if err != nil { + return err + } + i := keyring.Item{ + Key: key, + Data: data, + Label: item.UserName, + Description: "authorization grant", + KeychainNotTrustApplication: false, + KeychainNotSynchronizable: false, + } + err = f.kr.Set(i) + if err != nil { + return fmt.Errorf("unable to update the keyring: %v", err) + } + return nil +} + +// hashKeyringKey creates a safe key based on the given string +func hashKeyringKey(s string) string { + h := sha1.New() //nolint:gosec + h.Write([]byte(s)) + bs := h.Sum(nil) + return fmt.Sprintf("%x", bs) +} diff --git a/pkg/auth/store/store.go b/pkg/auth/store/store.go new file mode 100644 index 0000000..3508ed9 --- /dev/null +++ b/pkg/auth/store/store.go @@ -0,0 +1,45 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package store + +import ( + "errors" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth" +) + +// ErrNoAuthenticationData indicates that stored authentication data is not available +var ErrNoAuthenticationData = errors.New("authentication data is not available") + +// ErrUnsupportedAuthData ndicates that stored authentication data is unusable +var ErrUnsupportedAuthData = errors.New("authentication data is not usable") + +// Store is responsible for persisting authorization grants +type Store interface { + // SaveGrant stores an authorization grant for a given audience + SaveGrant(audience string, grant auth.AuthorizationGrant) error + + // LoadGrant loads an authorization grant for a given audience + LoadGrant(audience string) (*auth.AuthorizationGrant, error) + + // WhoAmI returns the current user name (or an error if nobody is logged in) + WhoAmI(audience string) (string, error) + + // Logout deletes all stored credentials + Logout() error +} diff --git a/pkg/cmd/mcp/mcp.go b/pkg/cmd/mcp/mcp.go new file mode 100644 index 0000000..ef80ce4 --- /dev/null +++ b/pkg/cmd/mcp/mcp.go @@ -0,0 +1,172 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "slices" + "time" + + "github.com/pkg/errors" + "github.com/spf13/cobra" + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + "github.com/streamnative/streamnative-mcp-server/pkg/config" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// ServerOptions is the options for the MCP server commands +type ServerOptions struct { + ReadOnly bool + LogFile string + LogCommands bool + Features []string + *config.Options +} + +func NewMcpServerOptions(configOpts *config.Options) *ServerOptions { + return &ServerOptions{ + Options: configOpts, + } +} + +func (o *ServerOptions) Complete() error { + if err := o.Options.Complete(); err != nil { + return err + } + + snConfig := o.Options.LoadConfigOrDie() + + // If the key file is provided, use it to authenticate to StreamNative Cloud + switch { + case snConfig.KeyFile != "": + { + issuer := snConfig.Auth.Issuer() + + // authorize + flow, err := o.newClientCredentialsFlow(issuer, o.KeyFile) + if err != nil { + return errors.Wrap(err, "configuration error: unable to use client credential flow") + } + grant, err := flow.Authorize() + if err != nil { + return errors.Wrap(err, "activation failed") + } + + // persist the authorization data + if err = o.Options.SaveGrant(issuer.Audience, *grant); err != nil { + return errors.Wrap(err, "Unable to store the authorization data") + } + + err = config.InitSNCloudClient( + issuer.IssuerEndpoint, issuer.Audience, o.KeyFile, o.Options.Server, 30*time.Second, o.Options.Store) + if err != nil { + return errors.Wrap(err, "failed to initialize StreamNative Cloud client") + } + + if o.Options.PulsarInstance != "" && o.Options.PulsarCluster != "" { + err = mcp.SetContext(o.Options, o.Options.PulsarInstance, o.Options.PulsarCluster) + if err != nil { + mcp.ResetMcpContext() + return errors.Wrap(err, "failed to set StreamNative Cloud context") + } + } + + if len(o.Features) != 0 { + requiredFeatures := []mcp.Feature{ + mcp.FeatureStreamNativeCloud, + } + for _, feature := range requiredFeatures { + if !slices.Contains(o.Features, string(feature)) { + o.Features = append(o.Features, string(feature)) + } + } + } else { + o.Features = []string{string(mcp.FeatureAll)} + } + } + case snConfig.ExternalKafka != nil: + { + if len(o.Features) != 0 { + return errors.New("kafka-only mode does not support additional features") + } + o.Features = []string{string(mcp.FeatureKafkaClient), string(mcp.FeatureKafkaAdmin), string(mcp.FeatureKafkaAdminSchemaRegistry)} + err := kafka.NewCurrentKafkaContext(kafka.KafkaContext{ + BootstrapServers: snConfig.ExternalKafka.BootstrapServers, + AuthType: snConfig.ExternalKafka.AuthType, + AuthMechanism: snConfig.ExternalKafka.AuthMechanism, + AuthUser: snConfig.ExternalKafka.AuthUser, + AuthPass: snConfig.ExternalKafka.AuthPass, + UseTLS: snConfig.ExternalKafka.UseTLS, + ClientKeyFile: snConfig.ExternalKafka.ClientKeyFile, + ClientCertFile: snConfig.ExternalKafka.ClientCertFile, + CaFile: snConfig.ExternalKafka.CaFile, + SchemaRegistryURL: snConfig.ExternalKafka.SchemaRegistryURL, + SchemaRegistryAuthUser: snConfig.ExternalKafka.SchemaRegistryAuthUser, + SchemaRegistryAuthPass: snConfig.ExternalKafka.SchemaRegistryAuthPass, + SchemaRegistryBearerToken: snConfig.ExternalKafka.SchemaRegistryBearerToken, + }) + if err != nil { + return errors.Wrap(err, "failed to set external Kafka context") + } + } + case snConfig.ExternalPulsar != nil: + { + if len(o.Features) != 0 { + return errors.New("pulsar-only mode does not support additional features") + } + o.Features = []string{string(mcp.FeatureAllPulsar)} + err := pulsar.NewCurrentPulsarContext(pulsar.PulsarContext{ + ServiceURL: snConfig.ExternalPulsar.ServiceURL, + WebServiceURL: snConfig.ExternalPulsar.WebServiceURL, + AuthPlugin: snConfig.ExternalPulsar.AuthPlugin, + AuthParams: snConfig.ExternalPulsar.AuthParams, + Token: snConfig.ExternalPulsar.Token, + TLSAllowInsecureConnection: snConfig.ExternalPulsar.TLSAllowInsecureConnection, + TLSEnableHostnameVerification: snConfig.ExternalPulsar.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: snConfig.ExternalPulsar.TLSTrustCertsFilePath, + TLSCertFile: snConfig.ExternalPulsar.TLSCertFile, + TLSKeyFile: snConfig.ExternalPulsar.TLSKeyFile, + }, nil, nil) + if err != nil { + return errors.Wrap(err, "failed to set external Pulsar context") + } + } + default: + { + return errors.New("no valid configuration found") + } + } + return nil +} + +func (o *ServerOptions) AddFlags(cmd *cobra.Command) { + cmd.PersistentFlags().BoolVarP(&o.ReadOnly, "read-only", "r", false, "Read-only mode") + cmd.PersistentFlags().StringVar(&o.LogFile, "log-file", "", "Path to log file") + cmd.PersistentFlags().BoolVar(&o.LogCommands, "enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file") + cmd.PersistentFlags().StringSliceVar(&o.Features, "features", []string{}, "Features to enable, defaults to `all`") +} + +func (o *ServerOptions) newClientCredentialsFlow( + issuer auth.Issuer, keyFile string) (*auth.ClientCredentialsFlow, error) { + flow, err := auth.NewDefaultClientCredentialsFlow(issuer, keyFile) + if err != nil { + return nil, err + } + return flow, nil +} diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go new file mode 100644 index 0000000..cd56371 --- /dev/null +++ b/pkg/cmd/mcp/stdio.go @@ -0,0 +1,201 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "fmt" + "io" + "os" + "os/signal" + "syscall" + + stdlog "log" + + "github.com/mark3labs/mcp-go/server" + "github.com/sirupsen/logrus" + "github.com/spf13/cobra" + "github.com/streamnative/streamnative-mcp-server/pkg/log" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp" +) + +func NewCmdMcpStdioServer(configOpts *ServerOptions) *cobra.Command { + stdioCmd := &cobra.Command{ + Use: "stdio", + Short: "Start stdio server", + Long: `Start a server that communicates via standard input/output streams using JSON-RPC messages.`, + Run: func(_ *cobra.Command, _ []string) { + if err := runStdioServer(configOpts); err != nil { + fmt.Fprintf(os.Stderr, "failed to run stdio server: %v\n", err) + } + }, + PersistentPreRunE: func(_ *cobra.Command, _ []string) error { + return configOpts.Complete() + }, + } + + return stdioCmd +} + +func runStdioServer(configOpts *ServerOptions) error { + ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) + defer stop() + + // Initialize logger if log file specified + logger, err := initLogger(configOpts.LogFile) + if err != nil { + stdlog.Fatal("Failed to initialize logger:", err) + } + + // Create a new MCP server + ctx = context.WithValue(ctx, mcp.OptionsKey, configOpts.Options) + stdLogger := stdlog.New(logger.Writer(), "snmcp-server", 0) + stdioServer := server.NewStdioServer(newStdioServer(configOpts, logger)) + + stdioServer.SetErrorLogger(stdLogger) + + // Start listening for messages + errC := make(chan error, 1) + go func() { + in, out := io.Reader(os.Stdin), io.Writer(os.Stdout) + + if configOpts.LogCommands { + // If command logging is enabled, wrap the IO with a logger + loggedIO := log.NewIOLogger(in, out, logger) + in, out = loggedIO, loggedIO + } + + errC <- stdioServer.Listen(ctx, in, out) + }() + + _, _ = fmt.Fprintf(os.Stderr, "StreamNative Cloud MCP Server running on stdio\n") + + // Wait for shutdown signal + select { + case <-ctx.Done(): + fmt.Fprintf(os.Stderr, "shutting down server...\n") + if logger != nil { + logger.Info("Shutting down server...") + } + case err := <-errC: + if err != nil { + if logger != nil { + logger.Errorf("Error running server: %v", err) + } + return fmt.Errorf("error running server: %w", err) + } + } + + return nil +} + +func initLogger(filePath string) (*logrus.Logger, error) { + if filePath == "" { + return logrus.New(), nil + } + + fd, err := os.OpenFile(filePath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666) + if err != nil { + return nil, fmt.Errorf("failed to open log file: %w", err) + } + + logger := logrus.New() + logger.SetFormatter(&logrus.TextFormatter{}) + logger.SetLevel(logrus.DebugLevel) + logger.SetOutput(fd) + return logger, nil +} + +func newStdioServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *server.MCPServer { + snConfig := configOpts.Options.LoadConfigOrDie() + var s *server.MCPServer + switch { + case snConfig.KeyFile != "": + { + issuer := snConfig.Auth.Issuer() + userName, err := configOpts.Options.WhoAmI(issuer.Audience) + if err != nil { + stdlog.Fatalf("failed to get user name: %v", err) + os.Exit(1) + } + // Create a new MCP server + s = server.NewMCPServer( + "streamnative-mcp-server", + "0.0.1", + server.WithResourceCapabilities(true, true), + server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName)), + server.WithLogging()) + + mcp.RegisterPrompts(s) + mcp.RegisterContextTools(s, configOpts.Features) + mcp.StreamNativeAddLogTools(s, configOpts.ReadOnly, configOpts.Features) + } + case snConfig.ExternalKafka != nil: + { + s = server.NewMCPServer( + "streamnative-mcp-server/kafka", + "0.0.1", + server.WithResourceCapabilities(true, true), + server.WithInstructions(mcp.GetExternalKafkaServerInstructions(snConfig.ExternalKafka.BootstrapServers)), + server.WithLogging()) + } + case snConfig.ExternalPulsar != nil: + { + s = server.NewMCPServer( + "streamnative-mcp-server/pulsar", + "0.0.1", + server.WithResourceCapabilities(true, true), + server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL)), + server.WithLogging()) + } + default: + { + stdlog.Fatalf("no valid configuration found") + os.Exit(1) + } + } + + mcp.PulsarAdminAddBrokersTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddBrokerStatsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddClusterTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddFunctionsWorkerTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNamespaceTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNamespacePolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSchemasTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSubscriptionTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTenantTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSinksTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddFunctionsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSourcesTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTopicPolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) + + mcp.KafkaAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddPartitionsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddGroupsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddSchemaRegistryTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddKafkaConnectTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaClientAddConsumeTools(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) + mcp.KafkaClientAddProduceTools(s, configOpts.ReadOnly, configOpts.Features) + return s +} diff --git a/pkg/config/apiclient.go b/pkg/config/apiclient.go new file mode 100644 index 0000000..0b3e941 --- /dev/null +++ b/pkg/config/apiclient.go @@ -0,0 +1,220 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package config + +import ( + "context" + "net/http" + "net/url" + "time" + + "github.com/pkg/errors" + "golang.org/x/oauth2" + "k8s.io/utils/clock" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + "github.com/streamnative/streamnative-mcp-server/pkg/auth/cache" + "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" +) + +var SNCloudClientConfiguration *sncloud.Configuration +var SNCloudClient *sncloud.APIClient +var SNCloudLogClient *http.Client + +// OAuth2TokenRefresher implements oauth2.TokenSource interface for refreshing OAuth2 tokens +// This is now a wrapper around the cache.CachingTokenSource to leverage the existing token caching +type OAuth2TokenRefresher struct { + source cache.CachingTokenSource +} + +// NewOAuth2TokenRefresher creates a new token refresher that uses the stored token cache +func NewOAuth2TokenRefresher(tokenStore store.Store, audience string, refresher auth.AuthorizationGrantRefresher) (*OAuth2TokenRefresher, error) { + // Create a token cache that will automatically use the store for persistence + source, err := cache.NewDefaultTokenCache(tokenStore, audience, refresher) + if err != nil { + return nil, errors.Wrap(err, "failed to create token cache") + } + + return &OAuth2TokenRefresher{ + source: source, + }, nil +} + +// Token implements the oauth2.TokenSource interface, leveraging the cached token +func (t *OAuth2TokenRefresher) Token() (*oauth2.Token, error) { + // The source already handles caching logic, token validation, and refreshing + return t.source.Token() +} + +// InitSNCloudClient initializes the StreamNative Cloud API client +// Parameters: +// - issuerURL: OAuth2 authorization server URL +// - audience: API service audience identifier +// - keyFilePath: Client credentials key file path +// - apiURL: API server URL +// - timeout: HTTP client timeout +// - tokenStore: Store for caching tokens +func InitSNCloudClient(issuerURL, audience, keyFilePath, apiURL string, timeout time.Duration, tokenStore store.Store) error { + // 1. Create Issuer configuration + issuerData := auth.Issuer{ + IssuerEndpoint: issuerURL, + Audience: audience, + } + + // 2. Check if we have an existing grant in the store + grant, err := tokenStore.LoadGrant(audience) + if err != nil && err != store.ErrNoAuthenticationData { + return errors.Wrap(err, "failed to load grant from store") + } + + // 3. If no grant exists or there was an error, create a new one + if err == store.ErrNoAuthenticationData || grant == nil { + // Create OAuth2 client credentials flow + flow, err := auth.NewDefaultClientCredentialsFlow(issuerData, keyFilePath) + if err != nil { + return errors.Wrap(err, "failed to create client credentials flow") + } + + // Get initial authorization + grant, err = flow.Authorize() + if err != nil { + return errors.Wrap(err, "failed to authorize client") + } + + // Save the grant to the store + err = tokenStore.SaveGrant(audience, *grant) + if err != nil { + return errors.Wrap(err, "failed to save grant to store") + } + } + + // 4. Create token refresher + refresher, err := auth.NewDefaultClientCredentialsGrantRefresher(issuerData, clock.RealClock{}) + if err != nil { + return errors.Wrap(err, "failed to create token refresher") + } + + // 5. Create token source with caching + tokenRefresher, err := NewOAuth2TokenRefresher(tokenStore, audience, refresher) + if err != nil { + return errors.Wrap(err, "failed to create token refresher") + } + tokenSource := oauth2.ReuseTokenSource(nil, tokenRefresher) + + // 6. Create HTTP client with OAuth2 Transport + httpClient := &http.Client{ + Transport: &oauth2.Transport{ + Source: tokenSource, + Base: http.DefaultTransport, + }, + Timeout: timeout, + } + + // 7. Create API client configuration + parsedURL, err := url.Parse(apiURL) + if err != nil { + return errors.Wrap(err, "failed to parse API URL") + } + config := sncloud.NewConfiguration() + config.Host = parsedURL.Host + config.Scheme = parsedURL.Scheme + config.HTTPClient = httpClient + config.UserAgent = "StreamNative-MCP-Server/1.0.0" + + // 8. Create API client + SNCloudClientConfiguration = config + SNCloudClient = sncloud.NewAPIClient(config) + + return nil +} + +// GetAPIClient returns the initialized API client or an error if not initialized +func GetAPIClient() (*sncloud.APIClient, error) { + if SNCloudClient == nil { + return nil, errors.New("API client not initialized, call InitSNCloudClient first") + } + return SNCloudClient, nil +} + +// CreateContextWithTokenSource creates a context with the TokenSource +// This might be useful in special scenarios, but is usually not needed as we've already configured the default HTTP client +func CreateContextWithTokenSource(ctx context.Context) (context.Context, error) { + client, err := GetAPIClient() + if err != nil { + return nil, err + } + + // Extract TokenSource from HTTP client + transport, ok := client.GetConfig().HTTPClient.Transport.(*oauth2.Transport) + if !ok { + return nil, errors.New("HTTP client transport is not an OAuth2 transport") + } + + // Create context with TokenSource + return context.WithValue(ctx, sncloud.ContextOAuth2, transport.Source), nil +} + +// TokenRefreshed is called when a token is refreshed to persist the updated token +func TokenRefreshed(audience string, token *oauth2.Token, tokenStore store.Store) error { + // Load existing grant + grant, err := tokenStore.LoadGrant(audience) + if err != nil { + return errors.Wrap(err, "failed to load grant for token update") + } + + // Update the token + grant.Token = token + + // Save back to store + return tokenStore.SaveGrant(audience, *grant) +} + +func InitSNCloudLogClient(issuerData auth.Issuer, tokenStore store.Store) error { + refresher, err := auth.NewDefaultClientCredentialsGrantRefresher(issuerData, clock.RealClock{}) + if err != nil { + return errors.Wrap(err, "failed to create token refresher") + } + + tokenRefresher, err := NewOAuth2TokenRefresher(tokenStore, issuerData.Audience, refresher) + if err != nil { + return errors.Wrap(err, "failed to create token refresher") + } + + tokenSource := oauth2.ReuseTokenSource(nil, tokenRefresher) + SNCloudLogClient = &http.Client{ + Timeout: 10 * time.Second, + Transport: &oauth2.Transport{ + Source: tokenSource, + Base: http.DefaultTransport, + }, + } + + return nil +} + +func ResetSNCloudLogClient() { + SNCloudLogClient = nil +} + +func GetSNCloudLogClient() (*http.Client, error) { + if SNCloudLogClient == nil { + return nil, errors.New("log tools are for StreamNative Cloud only, please check your context") + } + return SNCloudLogClient, nil +} diff --git a/pkg/config/auth.go b/pkg/config/auth.go new file mode 100644 index 0000000..11a3619 --- /dev/null +++ b/pkg/config/auth.go @@ -0,0 +1,83 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package config + +import ( + "path/filepath" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" + + "github.com/99designs/keyring" + "github.com/spf13/cobra" +) + +const ( + ServiceName = "StreamNativeMCP" + KeychainName = "snmcp" +) + +type AuthOptions struct { + BackendOverride string + storage Storage + + // AuthOptions is a facade for the token store + // note: call Complete before using the token store methods + store.Store +} + +func NewDefaultAuthOptions() AuthOptions { + return AuthOptions{} +} + +func (o *AuthOptions) AddFlags(cmd *cobra.Command) { + cmd.PersistentFlags().StringVar(&o.BackendOverride, "keyring-backend", "", + "If present, the backend to use") +} + +func (o *AuthOptions) Complete(storage Storage) error { + o.storage = storage + kr, err := o.makeKeyring() + if err != nil { + return err + } + o.Store, err = store.NewKeyringStore(kr) + if err != nil { + return err + } + return nil +} + +func (o *AuthOptions) makeKeyring() (keyring.Keyring, error) { + var backends []keyring.BackendType + if o.BackendOverride != "" { + backends = append(backends, keyring.BackendType(o.BackendOverride)) + } + + return keyring.Open(keyring.Config{ + ServiceName: ServiceName, + KeychainName: KeychainName, + KeychainTrustApplication: true, + AllowedBackends: backends, + FileDir: filepath.Join(o.storage.GetConfigDirectory(), "credentials"), + FilePasswordFunc: keyringPrompt, + }) +} + +func keyringPrompt(_ string) (string, error) { + return "", nil +} diff --git a/pkg/config/config.go b/pkg/config/config.go new file mode 100644 index 0000000..789b115 --- /dev/null +++ b/pkg/config/config.go @@ -0,0 +1,101 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package config + +import ( + "errors" + "net/url" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth" +) + +type SnConfig struct { + // the API server endpoint + Server string `yaml:"server"` + // CA bundle (base64, PEM) + CertificateAuthorityData string `yaml:"certificate-authority-data"` + // indicates whether to skip TLS verification + InsecureSkipTLSVerify bool `yaml:"insecure-skip-tls-verify"` + // user auth information + Auth Auth `yaml:"auth"` + // settable context + Context Context `yaml:"context"` + ProxyLocation string `yaml:"proxy-location"` + LogLocation string `yaml:"log-location"` + KeyFile string `yaml:"key-file"` + + ExternalKafka *ExternalKafka `yaml:"external-kafka"` + ExternalPulsar *ExternalPulsar `yaml:"external-pulsar"` +} + +type Auth struct { + // the OAuth 2.0 issuer endpoint + IssuerEndpoint string `yaml:"issuer"` + // the audience identifier for the API server (default: server URL) + Audience string `yaml:"audience"` + // the client ID to use for authorization grants (note: not used for service accounts) + ClientID string `yaml:"client-id"` +} + +func (a *Auth) Validate() error { + if !(isValidIssuer(a.IssuerEndpoint) && isValidClientID(a.ClientID) && isValidAudience(a.Audience)) { + return errors.New("configuration error: auth section is incomplete or invalid") + } + return nil +} + +func isValidIssuer(iss string) bool { + u, err := url.Parse(iss) + return err == nil && iss != "" && u.IsAbs() +} + +func isValidClientID(cid string) bool { + return cid != "" +} + +func isValidAudience(aud string) bool { + return aud != "" +} + +func (a *Auth) Issuer() auth.Issuer { + return auth.Issuer{ + IssuerEndpoint: a.IssuerEndpoint, + ClientID: a.ClientID, + Audience: a.Audience, + } +} + +type Context struct { + Organization string `yaml:"organization,omitempty"` + PulsarInstance string `yaml:"pulsar-instance,omitempty"` + PulsarCluster string `yaml:"pulsar-cluster,omitempty"` +} + +type Storage interface { + // Gets the config directory for configuration files, credentials and caches + GetConfigDirectory() string + + // LoadConfig loads the raw configuration from storage. + LoadConfig() (*SnConfig, error) + + // LoadConfigOrDie loads the raw configuration from storage, or dies if unable to. + LoadConfigOrDie() *SnConfig + + // SaveConfig saves the given configuration to storage, overwriting any previous configuration. + SaveConfig(config *SnConfig) error +} diff --git a/pkg/config/external_kafka.go b/pkg/config/external_kafka.go new file mode 100644 index 0000000..b0b9295 --- /dev/null +++ b/pkg/config/external_kafka.go @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package config + +type ExternalKafka struct { + BootstrapServers string + AuthType string + AuthMechanism string + AuthUser string + AuthPass string + UseTLS bool + ClientKeyFile string + ClientCertFile string + CaFile string + SchemaRegistryURL string + + SchemaRegistryAuthUser string + SchemaRegistryAuthPass string + SchemaRegistryBearerToken string +} diff --git a/pkg/config/external_pulsar.go b/pkg/config/external_pulsar.go new file mode 100644 index 0000000..b003c5c --- /dev/null +++ b/pkg/config/external_pulsar.go @@ -0,0 +1,31 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package config + +type ExternalPulsar struct { + ServiceURL string + WebServiceURL string + Token string + AuthPlugin string + AuthParams string + TLSAllowInsecureConnection bool + TLSEnableHostnameVerification bool + TLSTrustCertsFilePath string + TLSCertFile string + TLSKeyFile string +} diff --git a/pkg/config/options.go b/pkg/config/options.go new file mode 100644 index 0000000..3a635cb --- /dev/null +++ b/pkg/config/options.go @@ -0,0 +1,226 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package config + +import ( + "fmt" + "os" + "path/filepath" + + "github.com/mitchellh/go-homedir" + "github.com/spf13/cobra" + "gopkg.in/yaml.v2" +) + +const ( + EnvConfigDir = "SNMCP_CONFIG_DIR" + GlobalDefaultIssuer = "https://auth.streamnative.cloud/" + GlobalDefaultClientID = "AJYEdHWi9EFekEaUXkPWA2MqQ3lq1NrI" + GlobalDefaultAudience = "https://api.streamnative.cloud" + GlobalDefaultAPIServer = "https://api.streamnative.cloud" + GlobalDefaultProxyLocation = "https://proxy.streamnative.cloud" + GlobalDefaultLogLocation = "https://log.streamnative.cloud" +) + +// Options represents the common options used throughout the program. +type Options struct { + AuthOptions + ConfigDir string + ConfigPath string + Server string + // the OAuth 2.0 issuer endpoint + IssuerEndpoint string + // the audience identifier for the API server (default: server URL) + Audience string + // the client ID to use for authorization grants (note: not used for service accounts) + ClientID string + Organization string + PulsarInstance string + PulsarCluster string + ProxyLocation string + LogLocation string + KeyFile string + + UseExternalKafka bool + UseExternalPulsar bool + Kafka ExternalKafka + Pulsar ExternalPulsar +} + +// NewConfigOptions creates and returns a new Options instance with default values +func NewConfigOptions() *Options { + return &Options{ + AuthOptions: NewDefaultAuthOptions(), + } +} + +// AddFlags adds command-line flags for Options +func (o *Options) AddFlags(cmd *cobra.Command) { + cmd.PersistentFlags().StringVar(&o.ConfigDir, "config-dir", "", + "If present, the config directory to use") + cmd.PersistentFlags().StringVar(&o.KeyFile, "key-file", "", + "The key file to use for authentication to StreamNative Cloud") + cmd.PersistentFlags().StringVar(&o.Server, "server", GlobalDefaultAPIServer, + "The server to connect to") + cmd.PersistentFlags().StringVar(&o.IssuerEndpoint, "issuer", GlobalDefaultIssuer, + "The OAuth 2.0 issuer endpoint") + cmd.PersistentFlags().StringVar(&o.Audience, "audience", GlobalDefaultAudience, + "The audience identifier for the API server") + cmd.PersistentFlags().StringVar(&o.ClientID, "client-id", GlobalDefaultClientID, + "The client ID to use for authorization grants") + cmd.PersistentFlags().StringVar(&o.Organization, "organization", "", + "The organization to use for the API server") + cmd.PersistentFlags().StringVar(&o.ProxyLocation, "proxy-location", GlobalDefaultProxyLocation, + "The proxy location to use for the API server") + cmd.PersistentFlags().StringVar(&o.LogLocation, "log-location", GlobalDefaultLogLocation, + "The log location to use for the API server") + _ = cmd.MarkFlagRequired("organization") + cmd.PersistentFlags().StringVar(&o.PulsarInstance, "pulsar-instance", "", + "The default instance to use for the API server") + cmd.PersistentFlags().StringVar(&o.PulsarCluster, "pulsar-cluster", "", + "The default cluster to use for the API server") + cmd.PersistentFlags().BoolVar(&o.UseExternalKafka, "use-external-kafka", false, + "Use external Kafka") + cmd.PersistentFlags().BoolVar(&o.UseExternalPulsar, "use-external-pulsar", false, + "Use external Pulsar") + cmd.PersistentFlags().StringVar(&o.Kafka.BootstrapServers, "kafka-bootstrap-servers", "", + "The bootstrap servers to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryURL, "kafka-schema-registry-url", "", + "The schema registry URL to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.AuthType, "kafka-auth-type", "", + "The auth type to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.AuthMechanism, "kafka-auth-mechanism", "", + "The auth mechanism to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.AuthUser, "kafka-auth-user", "", + "The auth user to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.AuthPass, "kafka-auth-pass", "", + "The auth password to use for Kafka") + cmd.PersistentFlags().BoolVar(&o.Kafka.UseTLS, "kafka-use-tls", false, + "Use TLS for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.ClientKeyFile, "kafka-client-key-file", "", + "The client key file to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.ClientCertFile, "kafka-client-cert-file", "", + "The client certificate file to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.CaFile, "kafka-ca-file", "", + "The CA file to use for Kafka") + cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryAuthUser, "kafka-schema-registry-auth-user", "", + "The auth user to use for the schema registry") + cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryAuthPass, "kafka-schema-registry-auth-pass", "", + "The auth password to use for the schema registry") + cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryBearerToken, "kafka-schema-registry-bearer-token", "", + "The bearer token to use for the schema registry") + cmd.PersistentFlags().StringVar(&o.Pulsar.WebServiceURL, "pulsar-web-service-url", "", + "The web service URL to use for Pulsar") + cmd.PersistentFlags().StringVar(&o.Pulsar.AuthPlugin, "pulsar-auth-plugin", "", + "The auth plugin to use for Pulsar") + cmd.PersistentFlags().StringVar(&o.Pulsar.AuthParams, "pulsar-auth-params", "", + "The auth params to use for Pulsar") + cmd.PersistentFlags().BoolVar(&o.Pulsar.TLSAllowInsecureConnection, "pulsar-tls-allow-insecure-connection", false, + "The TLS allow insecure connection to use for Pulsar") + cmd.PersistentFlags().BoolVar(&o.Pulsar.TLSEnableHostnameVerification, "pulsar-tls-enable-hostname-verification", true, + "The TLS enable hostname verification to use for Pulsar") + cmd.PersistentFlags().StringVar(&o.Pulsar.TLSTrustCertsFilePath, "pulsar-tls-trust-certs-file-path", "", + "The TLS trust certs file path to use for Pulsar") + cmd.PersistentFlags().StringVar(&o.Pulsar.TLSCertFile, "pulsar-tls-cert-file", "", + "The TLS cert file to use for Pulsar") + cmd.PersistentFlags().StringVar(&o.Pulsar.TLSKeyFile, "pulsar-tls-key-file", "", + "The TLS key file to use for Pulsar") + cmd.PersistentFlags().StringVar(&o.Pulsar.Token, "pulsar-token", "", + "The token to use for Pulsar") + + cmd.MarkFlagsMutuallyExclusive("key-file", "use-external-kafka", "use-external-pulsar") + cmd.MarkFlagsRequiredTogether("pulsar-cluster", "pulsar-instance") + cmd.MarkFlagsRequiredTogether("use-external-kafka", "kafka-bootstrap-servers") + cmd.MarkFlagsRequiredTogether("use-external-pulsar", "pulsar-web-service-url") + o.AuthOptions.AddFlags(cmd) +} + +// Complete completes options from the provided values +func (o *Options) Complete() error { + if o.ConfigDir == "" { + o.ConfigDir = os.Getenv(EnvConfigDir) + } + if o.ConfigDir == "" { + home, err := homedir.Dir() + if err != nil { + return err + } + o.ConfigDir = filepath.Join(home, ".snmcp") + } + if _, err := os.Stat(o.ConfigDir); os.IsNotExist(err) { + err := os.MkdirAll(o.ConfigDir, 0755) + if err != nil { + return fmt.Errorf("failed to create config directory: %w", err) + } + } + o.ConfigPath = filepath.Join(o.ConfigDir, "config") + + err := o.AuthOptions.Complete(o) + if err != nil { + return err + } + + return nil +} + +func (o *Options) GetConfigDirectory() string { + return o.ConfigDir +} + +func (o *Options) LoadConfig() (*SnConfig, error) { + config := &SnConfig{ + Server: o.Server, + Auth: Auth{ + IssuerEndpoint: o.IssuerEndpoint, + Audience: o.Audience, + ClientID: o.ClientID, + }, + Context: Context{ + Organization: o.Organization, + PulsarInstance: o.PulsarInstance, + PulsarCluster: o.PulsarCluster, + }, + ProxyLocation: o.ProxyLocation, + LogLocation: o.LogLocation, + KeyFile: o.KeyFile, + } + if o.UseExternalKafka { + config.ExternalKafka = &o.Kafka + } + if o.UseExternalPulsar { + config.ExternalPulsar = &o.Pulsar + } + return config, nil +} + +func (o *Options) LoadConfigOrDie() *SnConfig { + cfg, _ := o.LoadConfig() + return cfg +} + +func (o *Options) SaveConfig(config *SnConfig) error { + data, err := yaml.Marshal(config) + if err != nil { + return err + } + err = os.WriteFile(o.ConfigPath, data, 0600) + if err != nil { + return fmt.Errorf("WriteFile: %v", err) + } + return nil +} diff --git a/pkg/kafka/connection.go b/pkg/kafka/connection.go new file mode 100644 index 0000000..60d01cb --- /dev/null +++ b/pkg/kafka/connection.go @@ -0,0 +1,237 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "crypto/tls" + "fmt" + "strings" + + "github.com/twmb/franz-go/pkg/kadm" + "github.com/twmb/franz-go/pkg/kgo" + "github.com/twmb/franz-go/pkg/kversion" + "github.com/twmb/franz-go/pkg/sasl/plain" + "github.com/twmb/franz-go/pkg/sasl/scram" + "github.com/twmb/franz-go/pkg/sr" + "github.com/twmb/tlscfg" +) + +//nolint:revive +type KafkaContext struct { + BootstrapServers string + AuthType string + AuthMechanism string + AuthUser string + AuthPass string + UseTLS bool + ClientKeyFile string + ClientCertFile string + CaFile string + SchemaRegistryURL string + ConnectURL string + + SchemaRegistryAuthUser string + SchemaRegistryAuthPass string + SchemaRegistryBearerToken string + + ConnectAuthUser string + ConnectAuthPass string +} + +var CurrentKafkaContext KafkaContext +var KafkaAdminClient *kadm.Client +var KafkaClient *kgo.Client +var KafkaSchemaRegistryClient *sr.Client +var KafkaConnectClient Connect +var options []kgo.Opt + +func NewCurrentKafkaContext(kc KafkaContext) error { + CurrentKafkaContext = kc + return kc.SetKafkaContext() +} + +func ResetCurrentKafkaContext() { + CurrentKafkaContext = KafkaContext{} + KafkaAdminClient = nil + KafkaClient = nil + KafkaSchemaRegistryClient = nil + KafkaConnectClient = nil +} + +type SASLConfig struct { + Mechanism string + Username string + Password string +} + +type TLSConfig struct { + Enabled bool + ClientKeyFile string + ClientCertFile string + CaFile string +} + +// Initializes the necessary TLS configuration options +func tlsOpt(config *TLSConfig, opts []kgo.Opt) ([]kgo.Opt, error) { + if config.Enabled { + if config.CaFile != "" || config.ClientCertFile != "" || config.ClientKeyFile != "" { + tc, err := tlscfg.New( + tlscfg.MaybeWithDiskCA(config.CaFile, tlscfg.ForClient), + tlscfg.MaybeWithDiskKeyPair(config.ClientCertFile, config.ClientKeyFile), + ) + if err != nil { + return nil, fmt.Errorf("unable to create TLS config: %v", err) + } + opts = append(opts, kgo.DialTLSConfig(tc)) + } else { + opts = append(opts, kgo.DialTLSConfig(new(tls.Config))) + } + } + return opts, nil +} + +// Initializes the necessary SASL configuration options +func saslOpt(config *SASLConfig, opts []kgo.Opt) ([]kgo.Opt, error) { + if config.Mechanism != "" || config.Username != "" || config.Password != "" { + if config.Mechanism == "" || config.Username == "" || config.Password == "" { + return nil, fmt.Errorf("All of Mechanism, Username, and Password must be specified if any are") + } + method := strings.ToLower(config.Mechanism) + method = strings.ReplaceAll(method, "-", "") + method = strings.ReplaceAll(method, "_", "") + switch method { + case "plain": + opts = append(opts, kgo.SASL(plain.Auth{ + User: config.Username, + Pass: config.Password, + }.AsMechanism())) + case "scramsha256": + opts = append(opts, kgo.SASL(scram.Auth{ + User: config.Username, + Pass: config.Password, + }.AsSha256Mechanism())) + case "scramsha512": + opts = append(opts, kgo.SASL(scram.Auth{ + User: config.Username, + Pass: config.Password, + }.AsSha512Mechanism())) + default: + return nil, fmt.Errorf("unrecognized SASL method: %s", config.Mechanism) + } + } + return opts, nil +} + +func (kc *KafkaContext) SetKafkaContext() error { + var err error + options = []kgo.Opt{} + options = append(options, kgo.SeedBrokers(strings.Split(kc.BootstrapServers, ",")...)) + tlsConfig := &TLSConfig{ + Enabled: kc.UseTLS, + ClientKeyFile: kc.ClientKeyFile, + ClientCertFile: kc.ClientCertFile, + CaFile: kc.CaFile, + } + + saslConfig := &SASLConfig{ + Mechanism: kc.AuthMechanism, + Username: kc.AuthUser, + Password: kc.AuthPass, + } + + options, err = tlsOpt(tlsConfig, options) + if err != nil { + return fmt.Errorf("failed to create TLS config: %w", err) + } + options, err = saslOpt(saslConfig, options) + if err != nil { + return fmt.Errorf("failed to create SASL config: %w", err) + } + options = append(options, kgo.MaxVersions(kversion.V2_8_0())) + + KafkaClient, err = kgo.NewClient( + options..., + ) + if err != nil { + return fmt.Errorf("failed to create kafka client: %w", err) + } + + KafkaAdminClient = kadm.NewClient(KafkaClient) + if kc.SchemaRegistryURL != "" { + SrOpts := []sr.ClientOpt{} + SrOpts = append(SrOpts, sr.URLs(kc.SchemaRegistryURL)) + if kc.SchemaRegistryAuthUser != "" && kc.SchemaRegistryAuthPass != "" { + SrOpts = append(SrOpts, sr.BasicAuth(kc.SchemaRegistryAuthUser, kc.SchemaRegistryAuthPass)) + } else if kc.SchemaRegistryBearerToken != "" { + SrOpts = append(SrOpts, sr.BearerToken(kc.SchemaRegistryBearerToken)) + } + SrOpts = append(SrOpts, sr.UserAgent("streamnative-mcp-server")) + KafkaSchemaRegistryClient, err = sr.NewClient(SrOpts...) + if err != nil { + return fmt.Errorf("failed to create kafka schema registry client: %w", err) + } + } + + if kc.ConnectURL != "" { + KafkaConnectClient, err = NewConnect(kc) + if err != nil { + return fmt.Errorf("failed to create kafka connect client: %w", err) + } + } + return nil +} + +func GetKafkaClient(opts ...kgo.Opt) (*kgo.Client, error) { + if KafkaClient == nil { + return nil, fmt.Errorf("kafka client not initialized") + } + //nolint:gocritic + clientOpts := append(options, opts...) + cli, err := kgo.NewClient(clientOpts...) + if err != nil { + return nil, fmt.Errorf("failed to create kafka client: %w", err) + } + return cli, nil +} + +func GetKafkaAdminClient() (*kadm.Client, error) { + if KafkaAdminClient == nil { + return nil, fmt.Errorf("kafka admin client not initialized") + } + return KafkaAdminClient, nil +} + +func GetKafkaSchemaRegistryClient() (*sr.Client, error) { + if CurrentKafkaContext.SchemaRegistryURL == "" { + return nil, fmt.Errorf("schema registry not enabled on the current context") + } + if KafkaSchemaRegistryClient == nil { + return nil, fmt.Errorf("kafka schema registry client not initialized") + } + return KafkaSchemaRegistryClient, nil +} + +func GetKafkaConnectClient() (Connect, error) { + if CurrentKafkaContext.ConnectURL == "" { + return nil, fmt.Errorf("kafka connect not enabled on the current context") + } + if KafkaConnectClient == nil { + return nil, fmt.Errorf("kafka connect client not initialized") + } + return KafkaConnectClient, nil +} diff --git a/pkg/kafka/kafkaconnect.go b/pkg/kafka/kafkaconnect.go new file mode 100644 index 0000000..72966ed --- /dev/null +++ b/pkg/kafka/kafkaconnect.go @@ -0,0 +1,584 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "io" + "net/url" + "strings" + + kafkaconnect "github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect" +) + +// ConnectorState represents the state of a connector +type ConnectorState string + +const ( + // ConnectorStateRunning means the connector is running + ConnectorStateRunning ConnectorState = "RUNNING" + // ConnectorStatePaused means the connector is paused + ConnectorStatePaused ConnectorState = "PAUSED" + // ConnectorStateFailed means the connector has failed + ConnectorStateFailed ConnectorState = "FAILED" + // ConnectorStateStopped means the connector is stopped + ConnectorStateStopped ConnectorState = "STOPPED" +) + +// ConnectorInfo contains information about a connector +type ConnectorInfo struct { + // Name is the connector name + Name string + // Config is the connector configuration + Config map[string]string + // Tasks is the list of tasks + Tasks []TaskInfo + // Type is the connector type (source or sink) + Type string + // State is the connector state + State ConnectorState +} + +// TaskInfo contains information about a connector task +type TaskInfo struct { + // ID is the task ID + ID int + // State is the task state + State ConnectorState + // WorkerID is the worker ID + WorkerID string + // Trace is the error trace (if any) + Trace string +} + +// PluginInfo contains information about a connector plugin +type PluginInfo struct { + // Class is the plugin class + Class string + // Type is the plugin type (source or sink) + Type string + // Version is the plugin version + Version string +} + +// Connect is the interface for Kafka Connect operations +type Connect interface { + // GetInfo gets information about the Kafka Connect cluster + GetInfo(ctx context.Context) (map[string]interface{}, error) + // ListConnectors lists all connectors + ListConnectors(ctx context.Context) ([]string, error) + // GetConnector gets information about a connector + GetConnector(ctx context.Context, name string) (*ConnectorInfo, error) + // CreateConnector creates a new connector + CreateConnector(ctx context.Context, name string, config map[string]string) (*ConnectorInfo, error) + // UpdateConnector updates a connector + UpdateConnector(ctx context.Context, name string, config map[string]string) (*ConnectorInfo, error) + // DeleteConnector deletes a connector + DeleteConnector(ctx context.Context, name string) error + // PauseConnector pauses a connector + PauseConnector(ctx context.Context, name string) error + // ResumeConnector resumes a connector + ResumeConnector(ctx context.Context, name string) error + // RestartConnector restarts a connector + RestartConnector(ctx context.Context, name string) error + // GetConnectorConfig gets the configuration of a connector + GetConnectorConfig(ctx context.Context, name string) (map[string]string, error) + // GetConnectorStatus gets the status of a connector + GetConnectorStatus(ctx context.Context, name string) (*ConnectorInfo, error) + // GetConnectorTasks gets the tasks of a connector + GetConnectorTasks(ctx context.Context, name string) ([]TaskInfo, error) + // ListPlugins lists all connector plugins + ListPlugins(ctx context.Context) ([]PluginInfo, error) + // ValidateConfig validates a connector configuration + ValidateConfig(ctx context.Context, pluginClass string, config map[string]string) (map[string]interface{}, error) +} + +// connectImpl is the implementation of the Connect interface +type connectImpl struct { + client *kafkaconnect.APIClient + ctx context.Context + baseURL string +} + +// NewConnect creates a new Kafka Connect client +func NewConnect(kc *KafkaContext) (Connect, error) { + // Create a new configuration for the SDK client + cfg := kafkaconnect.NewConfiguration() + + // Parse and set the base URL from config + baseURL := kc.ConnectURL + baseURL = strings.TrimSuffix(baseURL, "/") // Remove trailing slash if present + + // Parse the URL to extract scheme, host, and path + parsedURL, err := url.Parse(baseURL) + if err != nil { + return nil, fmt.Errorf("invalid Kafka ConnectURL format: %v", err) + } + + // Set the scheme and host for the SDK client + cfg.Host = parsedURL.Host + cfg.Scheme = parsedURL.Scheme + + // Set the server URL directly in the Servers configuration + // This allows us to include the path component in the URL + serverURL := fmt.Sprintf("%s://%s%s", parsedURL.Scheme, parsedURL.Host, parsedURL.Path) + cfg.Servers = []kafkaconnect.ServerConfiguration{ + { + URL: serverURL, + Description: "Kafka Connect server", + }, + } + ctx := context.Background() + + if kc.ConnectAuthUser != "" && kc.ConnectAuthPass != "" { + cred := kafkaconnect.BasicAuth{ + UserName: kc.ConnectAuthUser, + Password: kc.ConnectAuthPass, + } + ctx = context.WithValue(ctx, kafkaconnect.ContextBasicAuth, cred) + } + + // Create API client and context + apiClient := kafkaconnect.NewAPIClient(cfg) + + return &connectImpl{ + client: apiClient, + ctx: ctx, + baseURL: baseURL, + }, nil +} + +// GetInfo gets information about the Kafka Connect cluster +func (c *connectImpl) GetInfo(_ context.Context) (map[string]interface{}, error) { + // Make request + serverInfo, _, err := c.client.DefaultAPI.ServerInfo(c.ctx).Execute() + if err != nil { + return nil, fmt.Errorf("failed to get Kafka Connect server info: %w", err) + } + + // Convert to map + info := make(map[string]interface{}) + if serverInfo.HasVersion() { + info["version"] = serverInfo.GetVersion() + } + if serverInfo.HasKafkaClusterId() { + info["kafka_cluster_id"] = serverInfo.GetKafkaClusterId() + } + if serverInfo.HasCommit() { + info["commit"] = serverInfo.GetCommit() + } + + return info, nil +} + +// ListConnectors lists all connectors +func (c *connectImpl) ListConnectors(_ context.Context) ([]string, error) { + // Make request + resp, err := c.client.DefaultAPI.ListConnectors(c.ctx).Execute() + if err != nil { + return nil, fmt.Errorf("failed to list connectors: %w", err) + } + defer resp.Body.Close() + + // Parse response body + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read response: %w", err) + } + + // Unmarshal JSON + var connectors []string + if err := json.Unmarshal(body, &connectors); err != nil { + return nil, fmt.Errorf("failed to parse connectors: %w", err) + } + + return connectors, nil +} + +// GetConnector gets information about a connector +func (c *connectImpl) GetConnector(ctx context.Context, name string) (*ConnectorInfo, error) { + // Make request + info, _, err := c.client.DefaultAPI.GetConnector(c.ctx, name).Execute() + if err != nil { + return nil, fmt.Errorf("failed to get connector: %w", err) + } + + // Get status + status, err := c.GetConnectorStatus(ctx, name) + if err != nil { + return nil, err + } + + // Create connector info + connector := &ConnectorInfo{ + Name: name, + Config: info.GetConfig(), + Type: info.GetType(), + State: status.State, + Tasks: status.Tasks, + } + + return connector, nil +} + +// CreateConnector creates a new connector +func (c *connectImpl) CreateConnector(_ context.Context, name string, config map[string]string) (*ConnectorInfo, error) { + // Create request payload + payload := *kafkaconnect.NewCreateConnectorRequest() + payload.SetName(name) + payload.SetConfig(config) + + // Make request + resp, err := c.client.DefaultAPI.CreateConnector(c.ctx).CreateConnectorRequest(payload).Execute() + if err != nil { + return nil, fmt.Errorf("failed to create connector: %w", err) + } + defer resp.Body.Close() + + // Parse response body + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read response: %w", err) + } + + // Unmarshal JSON + var connectorInfo struct { + Name string `json:"name"` + Config map[string]string `json:"config"` + Tasks []struct { + Connector string `json:"connector"` + Task int `json:"task"` + } `json:"tasks"` + Type string `json:"type"` + } + + if err := json.Unmarshal(body, &connectorInfo); err != nil { + return nil, fmt.Errorf("failed to parse connector info: %w", err) + } + + // Create connector info + connector := &ConnectorInfo{ + Name: name, + Config: connectorInfo.Config, + Type: connectorInfo.Type, + } + + return connector, nil +} + +// UpdateConnector updates a connector +func (c *connectImpl) UpdateConnector(_ context.Context, name string, config map[string]string) (*ConnectorInfo, error) { + // Create request payload + // Convert config to map[string]string as required by the SDK + stringConfig := make(map[string]string) + stringConfig["connector.class"] = config["connector.class"] + stringConfig["tasks.max"] = config["tasks.max"] + for k, v := range config { + if k != "name" && k != "connector.class" && k != "tasks.max" { + stringConfig[k] = v + } + } + + // Make request + resp, err := c.client.DefaultAPI.PutConnectorConfig(c.ctx, name).RequestBody(stringConfig).Execute() + if err != nil { + return nil, fmt.Errorf("failed to update connector: %w", err) + } + defer resp.Body.Close() + + // Parse response body + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read response: %w", err) + } + + // Unmarshal JSON + var connectorInfo struct { + Name string `json:"name"` + Config map[string]string `json:"config"` + Tasks []struct { + Connector string `json:"connector"` + Task int `json:"task"` + } `json:"tasks"` + Type string `json:"type"` + } + + if err := json.Unmarshal(body, &connectorInfo); err != nil { + return nil, fmt.Errorf("failed to parse connector info: %w", err) + } + + // Create connector info + connector := &ConnectorInfo{ + Name: name, + Config: connectorInfo.Config, + Type: connectorInfo.Type, + } + + return connector, nil +} + +// DeleteConnector deletes a connector +func (c *connectImpl) DeleteConnector(_ context.Context, name string) error { + // Make request + _, err := c.client.DefaultAPI.DestroyConnector(c.ctx, name).Execute() + if err != nil { + return fmt.Errorf("failed to delete connector: %w", err) + } + + return nil +} + +// PauseConnector pauses a connector +func (c *connectImpl) PauseConnector(_ context.Context, name string) error { + // Make request + _, err := c.client.DefaultAPI.PauseConnector(c.ctx, name).Execute() + if err != nil { + return fmt.Errorf("failed to pause connector: %w", err) + } + + return nil +} + +// ResumeConnector resumes a connector +func (c *connectImpl) ResumeConnector(_ context.Context, name string) error { + // Make request + _, err := c.client.DefaultAPI.ResumeConnector(c.ctx, name).Execute() + if err != nil { + return fmt.Errorf("failed to resume connector: %w", err) + } + + return nil +} + +// RestartConnector restarts a connector +func (c *connectImpl) RestartConnector(_ context.Context, name string) error { + // Make request + _, err := c.client.DefaultAPI.RestartConnector(c.ctx, name).Execute() + if err != nil { + return fmt.Errorf("failed to restart connector: %w", err) + } + + return nil +} + +// GetConnectorConfig gets the configuration of a connector +func (c *connectImpl) GetConnectorConfig(_ context.Context, name string) (map[string]string, error) { + // Make request + config, _, err := c.client.DefaultAPI.GetConnectorConfig(c.ctx, name).Execute() + if err != nil { + return nil, fmt.Errorf("failed to get connector config: %w", err) + } + + return config, nil +} + +// GetConnectorStatus gets the status of a connector +func (c *connectImpl) GetConnectorStatus(_ context.Context, name string) (*ConnectorInfo, error) { + // Make request + _, resp, err := c.client.DefaultAPI.GetConnectorStatus(c.ctx, name).Execute() + if err != nil { + return nil, fmt.Errorf("failed to get connector status: %w", err) + } + defer resp.Body.Close() + + // Parse response body + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read response: %w", err) + } + + // Unmarshal JSON + var statusInfo struct { + Name string `json:"name"` + Connector struct { + State string `json:"state"` + WorkerID string `json:"worker_id"` + } `json:"connector"` + Tasks []struct { + ID int `json:"id"` + State string `json:"state"` + WorkerID string `json:"worker_id"` + Trace string `json:"trace,omitempty"` + } `json:"tasks"` + } + + if err := json.Unmarshal(body, &statusInfo); err != nil { + return nil, fmt.Errorf("failed to parse connector status: %w", err) + } + + // Convert tasks + tasks := make([]TaskInfo, len(statusInfo.Tasks)) + for i, task := range statusInfo.Tasks { + tasks[i] = TaskInfo{ + ID: task.ID, + State: ConnectorState(task.State), + WorkerID: task.WorkerID, + Trace: task.Trace, + } + } + + // Create connector info + connector := &ConnectorInfo{ + Name: name, + State: ConnectorState(statusInfo.Connector.State), + Tasks: tasks, + } + + return connector, nil +} + +// GetConnectorTasks gets the tasks of a connector +func (c *connectImpl) GetConnectorTasks(_ context.Context, name string) ([]TaskInfo, error) { + // Make request + _, resp, err := c.client.DefaultAPI.GetTaskConfigs(c.ctx, name).Execute() + if err != nil { + return nil, fmt.Errorf("failed to get connector tasks: %w", err) + } + defer resp.Body.Close() + + // Parse response body + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read response: %w", err) + } + + // Unmarshal JSON + var tasks []struct { + ID int `json:"id"` + State string `json:"state,omitempty"` + WorkerID string `json:"worker_id,omitempty"` + Trace string `json:"trace,omitempty"` + } + + if err := json.Unmarshal(body, &tasks); err != nil { + return nil, fmt.Errorf("failed to parse connector tasks: %w", err) + } + + // Convert tasks + taskInfos := make([]TaskInfo, len(tasks)) + for i, task := range tasks { + taskInfos[i] = TaskInfo{ + ID: task.ID, + State: ConnectorState(task.State), + WorkerID: task.WorkerID, + Trace: task.Trace, + } + } + + return taskInfos, nil +} + +// ListPlugins lists all connector plugins +func (c *connectImpl) ListPlugins(_ context.Context) ([]PluginInfo, error) { + // Make request + _, resp, err := c.client.DefaultAPI.ListConnectorPlugins(c.ctx).Execute() + if err != nil { + return nil, fmt.Errorf("failed to list connector plugins: %w", err) + } + defer resp.Body.Close() + + // Parse response body + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read response: %w", err) + } + + // Unmarshal JSON + var plugins []struct { + Class string `json:"class"` + Type string `json:"type"` + Version string `json:"version"` + } + + if err := json.Unmarshal(body, &plugins); err != nil { + return nil, fmt.Errorf("failed to parse plugins: %w", err) + } + + // Convert plugins + pluginInfos := make([]PluginInfo, len(plugins)) + for i, plugin := range plugins { + pluginInfos[i] = PluginInfo{ + Class: plugin.Class, + Type: plugin.Type, + Version: plugin.Version, + } + } + + return pluginInfos, nil +} + +// ValidateConfig validates a connector configuration +func (c *connectImpl) ValidateConfig(_ context.Context, pluginClass string, config map[string]string) (map[string]interface{}, error) { + // Create request payload + // Convert config to map[string]string as required by the SDK + stringConfig := make(map[string]string) + stringConfig["connector.class"] = pluginClass + for k, v := range config { + stringConfig[k] = v + } + + // Make request + _, resp, err := c.client.DefaultAPI.ValidateConfigs(c.ctx, pluginClass).RequestBody(stringConfig).Execute() + if err != nil { + return nil, fmt.Errorf("failed to validate connector config: %w", err) + } + defer resp.Body.Close() + + // Parse response body + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("failed to read response: %w", err) + } + + // Unmarshal JSON + var validation struct { + Name string `json:"name"` + ErrorCount int `json:"error_count"` + Configs []struct { + Definition struct { + Name string `json:"name"` + Type string `json:"type"` + Required bool `json:"required"` + DefaultValue interface{} `json:"default_value"` + Importance string `json:"importance"` + Documentation string `json:"documentation"` + } `json:"definition"` + Value struct { + Name string `json:"name"` + Value interface{} `json:"value"` + Recommended interface{} `json:"recommended_values"` + Errors []string `json:"errors"` + Visible bool `json:"visible"` + } `json:"value"` + } `json:"configs"` + } + + if err := json.Unmarshal(body, &validation); err != nil { + return nil, fmt.Errorf("failed to parse validation result: %w", err) + } + + // Convert validation result + result := make(map[string]interface{}) + result["name"] = validation.Name + result["error_count"] = validation.ErrorCount + result["configs"] = validation.Configs + + return result, nil +} diff --git a/pkg/log/io.go b/pkg/log/io.go new file mode 100644 index 0000000..7ed5eea --- /dev/null +++ b/pkg/log/io.go @@ -0,0 +1,62 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package log + +import ( + "io" + + log "github.com/sirupsen/logrus" +) + +// IOLogger is a wrapper around io.Reader and io.Writer that can be used +// to log the data being read and written from the underlying streams +type IOLogger struct { + reader io.Reader + writer io.Writer + logger *log.Logger +} + +// NewIOLogger creates a new IOLogger instance +func NewIOLogger(r io.Reader, w io.Writer, logger *log.Logger) *IOLogger { + return &IOLogger{ + reader: r, + writer: w, + logger: logger, + } +} + +// Read reads data from the underlying io.Reader and logs it. +func (l *IOLogger) Read(p []byte) (n int, err error) { + if l.reader == nil { + return 0, io.EOF + } + n, err = l.reader.Read(p) + if n > 0 { + l.logger.Infof("[stdin]: received %d bytes: %s", n, string(p[:n])) + } + return n, err +} + +// Write writes data to the underlying io.Writer and logs it. +func (l *IOLogger) Write(p []byte) (n int, err error) { + if l.writer == nil { + return 0, io.ErrClosedPipe + } + l.logger.Infof("[stdout]: sending %d bytes: %s", len(p), string(p)) + return l.writer.Write(p) +} diff --git a/pkg/mcp/auth_utils.go b/pkg/mcp/auth_utils.go new file mode 100644 index 0000000..dfbb788 --- /dev/null +++ b/pkg/mcp/auth_utils.go @@ -0,0 +1,80 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "fmt" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" +) + +const ( + DefaultPulsarPort = 6651 +) + +// getFlow creates the appropriate OAuth2 flow based on the grant type +func getFlow(issuer *auth.Issuer, grant *auth.AuthorizationGrant) (auth.Flow, error) { + switch grant.Type { + case auth.GrantTypeClientCredentials: + // Use client credentials flow for service accounts + if grant.ClientCredentials == nil { + return nil, fmt.Errorf("client credentials grant missing required credentials") + } + return auth.NewDefaultClientCredentialsFlowWithKeyFileStruct(*issuer, grant.ClientCredentials) + default: + return nil, fmt.Errorf("unsupported grant type: %s", grant.Type) + } +} + +// getBasePath constructs the base path for Pulsar admin API +func getBasePath(proxyLocation, org, clusterID string) string { + // Ensure proxyLocation doesn't end with a slash to prevent double slashes + if proxyLocation != "" && proxyLocation[len(proxyLocation)-1] == '/' { + proxyLocation = proxyLocation[:len(proxyLocation)-1] + } + + return fmt.Sprintf("%s/pulsar-admin/%s/pulsarcluster-%s", proxyLocation, org, clusterID) +} + +// getServiceURL constructs the service URL for Pulsar protocol +func getServiceURL(dnsName string) string { + return fmt.Sprintf("pulsar+ssl://%s:%d", dnsName, DefaultPulsarPort) +} + +func getIssuer(instance *sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, configIssuer auth.Issuer) (*auth.Issuer, error) { + if instance.Status == nil { + return nil, fmt.Errorf("PulsarInstance '%s' has no auth configuration", *instance.Metadata.Name) + } + + if instance.Status.Auth.Type != "oauth2" && instance.Status.Auth.Type != "apikey" { + return nil, fmt.Errorf("PulsarInstance '%s' has unsupported auth type: %s", + *instance.Metadata.Name, instance.Status.Auth.Type) + } + + if instance.Status.Auth.Oauth2.Audience == "" || instance.Status.Auth.Oauth2.IssuerURL == "" { + return nil, fmt.Errorf("PulsarInstance '%s' has no OAuth2 configuration", *instance.Metadata.Name) + } + + // Construct issuer information from instance and config + return &auth.Issuer{ + IssuerEndpoint: instance.Status.Auth.Oauth2.IssuerURL, + ClientID: configIssuer.ClientID, + Audience: instance.Status.Auth.Oauth2.Audience, + }, nil +} diff --git a/pkg/mcp/context.go b/pkg/mcp/context.go new file mode 100644 index 0000000..0b8ec50 --- /dev/null +++ b/pkg/mcp/context.go @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +var McpContextPulsarInstance *string +var McpContextPulsarCluster *string +var McpContextOrganization *string + +func SetMcpContext(instance, cluster, organization string) { + McpContextPulsarInstance = &instance + McpContextPulsarCluster = &cluster + McpContextOrganization = &organization +} + +func GetMcpContext() (string, string, string) { + return *McpContextPulsarInstance, *McpContextPulsarCluster, *McpContextOrganization +} + +func ResetMcpContext() { + McpContextPulsarInstance = nil + McpContextPulsarCluster = nil + McpContextOrganization = nil +} diff --git a/pkg/mcp/context_tools.go b/pkg/mcp/context_tools.go new file mode 100644 index 0000000..e5573ba --- /dev/null +++ b/pkg/mcp/context_tools.go @@ -0,0 +1,129 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" + "github.com/streamnative/streamnative-mcp-server/pkg/config" +) + +func RegisterContextTools(s *server.MCPServer, features []string) { + if !slices.Contains(features, string(FeatureStreamNativeCloud)) && !slices.Contains(features, string(FeatureAll)) { + return + } + // Add whoami tool + whoamiTool := mcp.NewTool("streamnative_cloud_context_whoami", + mcp.WithDescription("Display the currently logged-in service account. "+ + "Returns the name of the authenticated service account and the organization."), + ) + s.AddTool(whoamiTool, handleWhoami) + + // Add set-context tool + setContextTool := mcp.NewTool("streamnative_cloud_context_use_cluster", + mcp.WithDescription("Set the current context to a specific StreamNative Cloud cluster, once you set the context, you can use pulsar and kafka tools to interact with the cluster. If you encounter ContextNotSetErr, please use `streamnative_cloud_context_available_clusters` to list the available clusters and set the context to a specific cluster."), + mcp.WithString("instanceName", mcp.Required(), + mcp.Description("The name of the pulsar instance to use"), + ), + mcp.WithString("clusterName", mcp.Required(), + mcp.Description("The name of the pulsar cluster to use"), + ), + ) + s.AddTool(setContextTool, handleSetContext) + + // Add available-contexts tool + availableContextsTool := mcp.NewTool("streamnative_cloud_available_contexts", + mcp.WithDescription("Display the available pulsar clusters for the current organization on StreamNative Cloud. You can use `streamnative_cloud_context_use_cluster` to change the context to a specific cluster. You will need to ask for the USER to confirm the target context cluster if there are multiple clusters."), + ) + s.AddTool(availableContextsTool, handleAvailableContexts) +} + +// handleWhoami handles the whoami tool request +func handleWhoami(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + options := ctx.Value(OptionsKey).(*config.Options) + issuer := options.LoadConfigOrDie().Auth.Issuer() + + userName, err := options.WhoAmI(issuer.Audience) + if err != nil { + if err == store.ErrNoAuthenticationData { + return mcp.NewToolResultText("Not logged in."), nil + } + return mcp.NewToolResultError(fmt.Sprintf("Failed to get user information: %v", err)), nil + } + + response := struct { + ServiceAccount string `json:"service_account"` + Organization string `json:"organization"` + }{ + ServiceAccount: userName, + Organization: options.Organization, + } + + jsonResponse, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonResponse)), nil +} + +// handleSetContext handles the set-context tool request +func handleSetContext(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + options := ctx.Value(OptionsKey).(*config.Options) + + instanceName, err := requiredParam[string](request.Params.Arguments, "instanceName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get instance name: %v", err)), nil + } + + clusterName, err := requiredParam[string](request.Params.Arguments, "clusterName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil + } + + err = SetContext(options, instanceName, clusterName) + if err != nil { + ResetMcpContext() + return mcp.NewToolResultError(fmt.Sprintf("Failed to set context: %v", err)), nil + } + + return mcp.NewToolResultText("StreamNative Cloud context set successfully"), nil +} + +func handleAvailableContexts(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + promptResponse, err := handleListPulsarClusters(ctx, mcp.GetPromptRequest{}) + if err != nil || promptResponse == nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list pulsar clusters: %v", err)), nil + } + + response := "" + for _, message := range promptResponse.Messages { + if textContent, ok := message.Content.(mcp.TextContent); ok { + response += textContent.Text + "\n" + } + } + response += "Please confirm the target context cluster with USER if there are multiple clusters!" + + return mcp.NewToolResultText(response), nil +} diff --git a/pkg/mcp/context_utils.go b/pkg/mcp/context_utils.go new file mode 100644 index 0000000..9587ff0 --- /dev/null +++ b/pkg/mcp/context_utils.go @@ -0,0 +1,188 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "fmt" + + "github.com/streamnative/streamnative-mcp-server/pkg/config" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" +) + +const DefaultKafkaPort = 9093 + +func SetContext(options *config.Options, instanceName, clusterName string) error { + snConfig := options.LoadConfigOrDie() + myselfGrant, err := options.AuthOptions.LoadGrant(snConfig.Auth.Audience) + ctx := context.Background() + if err != nil || myselfGrant == nil { + return fmt.Errorf("failed to auth to StreamNative Cloud: %v", err) + } + + apiClient, err := config.GetAPIClient() + if err != nil { + return fmt.Errorf("failed to get API client: %v", err) + } + + instances, instancesBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, options.Organization).Execute() + if err != nil { + return fmt.Errorf("failed to list pulsar instances: %v", err) + } + defer instancesBody.Body.Close() + + var instance sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + foundInstance := false + for _, i := range instances.Items { + if *i.Metadata.Name == instanceName { + if isInstanceValid(i) { + instance = i + foundInstance = true + break + } + return fmt.Errorf("Pulsar instance %s is not valid", instanceName) + } + } + if !foundInstance { + return fmt.Errorf("Pulsar instance %s not found", instanceName) + } + + clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, options.Organization).Execute() + if err != nil { + return fmt.Errorf("failed to list pulsar clusters: %v", err) + } + defer clustersBody.Body.Close() + var cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + foundCluster := false + for _, c := range clusters.Items { + if *c.Metadata.Name == clusterName && c.Spec.InstanceName == instanceName { + if isClusterAvailable(c) { + cluster = c + foundCluster = true + break + } + return fmt.Errorf("Pulsar cluster %s is not available", clusterName) + } + } + if !foundCluster { + return fmt.Errorf("Pulsar cluster %s not found", clusterName) + } + + clusterUID := string(*cluster.Metadata.Uid) + dnsName := "" + for _, endpoint := range cluster.Spec.ServiceEndpoints { + if *endpoint.Type == "service" { + dnsName = endpoint.DnsName + break + } + } + + if dnsName == "" { + return fmt.Errorf("no valid service endpoint found for PulsarCluster '%s'", clusterName) + } + + issuer, err := getIssuer(&instance, snConfig.Auth.Issuer()) + if err != nil { + return fmt.Errorf("failed to get issuer: %v", err) + } + + tokenKey := issuer.Audience + + accessToken := "" + refreshToken := true + cachedGrant, err := options.AuthOptions.LoadGrant(tokenKey) + if err == nil && cachedGrant != nil { + + cacheHasValidToken, err := hasCachedValidToken(cachedGrant) + if err != nil { + cacheHasValidToken = false + } + + if cacheHasValidToken { + tokenAboutToExpire, err := isTokenAboutToExpire(cachedGrant, TokenRefreshWindow) + if err != nil { + tokenAboutToExpire = true + } + + if !tokenAboutToExpire { + refreshToken = false + accessToken = cachedGrant.Token.AccessToken + } + } + } + + if refreshToken { + flow, err := getFlow(issuer, myselfGrant) + if err != nil { + return fmt.Errorf("failed to get flow: %v", err) + } + + newGrant, err := flow.Authorize() + if err != nil { + return fmt.Errorf("failed to authorize: %v", err) + } + + if newGrant.Token != nil { + _ = options.AuthOptions.SaveGrant(tokenKey, *newGrant) + accessToken = newGrant.Token.AccessToken + } + } + + if accessToken == "" { + return fmt.Errorf("failed to get access token") + } + + err = pulsar.NewCurrentPulsarContext(pulsar.PulsarContext{ + WebServiceURL: getBasePath(snConfig.ProxyLocation, options.Organization, clusterUID), + ServiceURL: getServiceURL(dnsName), + Token: accessToken, + }, issuer, &options.AuthOptions.Store) + if err != nil { + return fmt.Errorf("failed to set pulsar context: %v", err) + } + + err = kafka.NewCurrentKafkaContext(kafka.KafkaContext{ + BootstrapServers: fmt.Sprintf("%s:%d", dnsName, DefaultKafkaPort), + SchemaRegistryURL: fmt.Sprintf("https://%s/kafka", dnsName), + ConnectURL: fmt.Sprintf("%s/admin/kafkaconnect/", snConfig.ProxyLocation), + AuthType: "sasl_ssl", + AuthMechanism: "PLAIN", + AuthUser: "public/default", + AuthPass: "token:" + accessToken, + UseTLS: true, + SchemaRegistryAuthUser: "public/default", + SchemaRegistryAuthPass: accessToken, + ConnectAuthUser: "public/default", + ConnectAuthPass: accessToken, + }) + if err != nil { + return fmt.Errorf("failed to set kafka context: %v", err) + } + + SetMcpContext(instanceName, clusterName, options.Organization) + + return nil +} + +func ResetContext() { + pulsar.ResetCurrentPulsarContext() + kafka.ResetCurrentKafkaContext() + ResetMcpContext() +} diff --git a/pkg/mcp/features.go b/pkg/mcp/features.go new file mode 100644 index 0000000..034c9ce --- /dev/null +++ b/pkg/mcp/features.go @@ -0,0 +1,50 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +type Feature string + +const ( + FeatureAll Feature = "all" + FeatureAllKafka Feature = "all-kafka" + FeatureAllPulsar Feature = "all-pulsar" + FeatureKafkaClient Feature = "kafka-client" + FeatureKafkaAdmin Feature = "kafka-admin" + FeatureKafkaAdminSchemaRegistry Feature = "kafka-admin-schema-registry" + FeatureKafkaAdminKafkaConnect Feature = "kafka-admin-kafka-connect" + FeaturePulsarAdmin Feature = "pulsar-admin" + FeaturePulsarAdminBrokersStatus Feature = "pulsar-admin-brokers-status" + FeaturePulsarAdminBrokers Feature = "pulsar-admin-brokers" + FeaturePulsarAdminClusters Feature = "pulsar-admin-clusters" + FeaturePulsarAdminFunctions Feature = "pulsar-admin-functions" + FeaturePulsarAdminNamespaces Feature = "pulsar-admin-namespaces" + FeaturePulsarAdminTenants Feature = "pulsar-admin-tenants" + FeaturePulsarAdminTopics Feature = "pulsar-admin-topics" + FeaturePulsarAdminFunctionsWorker Feature = "pulsar-admin-functions-worker" + FeaturePulsarAdminSinks Feature = "pulsar-admin-sinks" + FeaturePulsarAdminSources Feature = "pulsar-admin-sources" + FeaturePulsarAdminNamespacePolicy Feature = "pulsar-admin-namespace-policy" + FeaturePulsarAdminNsIsolationPolicy Feature = "pulsar-admin-ns-isolation-policy" + FeaturePulsarAdminPackages Feature = "pulsar-admin-packages" + FeaturePulsarAdminResourceQuotas Feature = "pulsar-admin-resource-quotas" + FeaturePulsarAdminSchemas Feature = "pulsar-admin-schemas" + FeaturePulsarAdminSubscriptions Feature = "pulsar-admin-subscriptions" + FeaturePulsarAdminTopicPolicy Feature = "pulsar-admin-topic-policy" + FeaturePulsarClient Feature = "pulsar-client" + FeatureStreamNativeCloud Feature = "streamnative-cloud" +) diff --git a/pkg/mcp/instructions.go b/pkg/mcp/instructions.go new file mode 100644 index 0000000..31c9891 --- /dev/null +++ b/pkg/mcp/instructions.go @@ -0,0 +1,87 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "fmt" +) + +func GetStreamNativeCloudServerInstructions(userName string) string { + return fmt.Sprintf(`StreamNative Cloud MCP Server provides resources and tools for AI agents to interact with StreamNative Cloud resources and services. + + ### StreamNative Cloud API Server Resources + + 1. **Organizations** + - **Concept**: An organization is the top-level resource in StreamNative Cloud. It is a logical grouping used to manage access permissions and organize resources. Most users need only one organization, but multiple organizations can be created for different departments or teams. + - **Relationship**: An organization contains PulsarInstances, PulsarClusters, Users, Service Accounts, and Secrets. It acts as a container for all other resources and determines who can access what. + + 2. **PulsarInstances** + - **Concept**: An instance is an environment within an organization, typically associated with a specific cloud provider. Instances can contain multiple PulsarClusters and other components (like Connectors, Functions, etc.). Different teams can use separate instances to isolate their resources. + - **Types**: Instances can be fully hosted on StreamNative's cloud account or deployed on a user's cloud account via the Bring-Your-Own-Cloud (BYOC) option. + - **Relationship**: PulsarInstances belong to an organization and contain one or more PulsarClusters. Each PulsarInstance is associated with a specific Data Streaming Engine and cloud provider. + + 3. **PulsarClusters** + - **Concept**: A cluster is a specific deployment unit within an instance, located in a particular cloud region. Clusters provide service endpoints that allow clients to connect using different protocols (like Pulsar, Kafka, MQTT) and perform operations such as sending and receiving messages, running functions, etc. + - **Relationship**: PulsarClusters belong to a PulsarInstance and can replicate data among themselves within the same instance using Geo-Replication. Clusters are where actual data streaming operations occur. + + 4. **Users** + - **Concept**: A user represents a person who can log in and access StreamNative Cloud resources. Users can be assigned different permissions within an organization. + - **Relationship**: Users belong to an organization and can access instances and clusters within it, depending on their permissions. + + 5. **Service Accounts** + - **Concept**: A service account represents an application that programmatically accesses StreamNative Cloud resources and Pulsar resources within clusters. + - **Relationship**: Service accounts belong to an organization and can be used across multiple instances, though authentication credentials or API keys differ per instance. + - **Service Account Binding**: Service account binding in StreamNative involves associating a service account with specific resources or permissions within the StreamNative Cloud environment. This process is crucial for managing access and ensuring that service accounts have the necessary permissions to interact with Pulsar clusters and other resources. It is often used by manage Pulsar Functions, Pulsar IO Connectors, and Kafka Connect connectors. Related tools: 'pulsar_admin_functions', 'pulsar_admin_sinks', 'pulsar_admin_sources', and 'kafka_admin_connect'. + + 6. **Secrets** + - **Concept**: Secrets are used to store and manage sensitive data such as passwords, tokens, and private keys. Secrets can be referenced in Connectors and Pulsar Functions. + - **Relationship**: Secrets belong to an organization and can be shared across multiple instances within that organization. + + 7. **Data Streaming Engine** + - **Concept**: The Data Streaming Engine is the core technology that runs StreamNative Cloud clusters. There are two options: Classic Engine and Ursa Engine. + - **Classic Engine**: The default engine, based on ZooKeeper and BookKeeper, offering low-latency storage suitable for latency-sensitive workloads. It supports Pulsar, Kafka, and MQTT protocols. For Classic Engine, Pulsar protocol will be the default protocol. + - **Ursa Engine**: A next-generation engine based on Oxia and object storage (like S3), providing cost-optimized storage for latency-relaxed scenarios. It currently focuses on Kafka protocol support. For Ursa Engine, you can only uses 'kafka-client-*' or 'kafka-admin-*' tools, do not use 'pulsar-client-*' or 'pulsar-admin-*' tools. + - **Relationship**: The Data Streaming Engine is associated with an instance, determining how clusters within that instance operate and what features they support. + + ### Protocol-Specific Tools + - When working with **Pulsar protocol resources**, you should only use 'pulsar-admin-*' or 'pulsar-client-*' tools. Do not use 'kafka-client-*' or 'kafka-admin-*' tools for Pulsar protocol operations. + - When working with **Kafka protocol resources**, you should only use 'kafka-client-*' or 'kafka-admin-*' tools. Do not use 'pulsar-admin-*' or 'pulsar-client-*' tools for Kafka protocol operations. + - Using the appropriate protocol-specific tools ensures correct functionality and prevents errors when interacting with different protocol resources. + + ### Hierarchical Relationship Summary of Resources + - **Organization** is the top level, containing all other resources. + - **PulsarInstances** belong to an organization, representing a cloud environment, and contain multiple **Clusters**. + - **PulsarClusters** are specific deployment units within an instance, used for actual data streaming operations. + - **Users** and **Service Accounts** belong to an organization, used for accessing resources, with permissions managed by the organization. + - **Secrets** belong to an organization and can be shared across instances for securely storing sensitive data. + - **Data Streaming Engine** is associated with an instance, defining the technical architecture and feature support for clusters. + + Logged in as %s.`, userName) +} + +func GetExternalKafkaServerInstructions(bootstrapServers string) string { + return fmt.Sprintf(`StreamNative Cloud MCP Server provides resources and tools for AI agents to interact with Kafka resources and services. + + Bootstrap servers: %s`, bootstrapServers) +} + +func GetExternalPulsarServerInstructions(webServiceURL string) string { + return fmt.Sprintf(`StreamNative Cloud MCP Server provides resources and tools for AI agents to interact with Pulsar resources and services. + + Web service URL: %s`, webServiceURL) +} diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go new file mode 100644 index 0000000..3076bd3 --- /dev/null +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -0,0 +1,407 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" +) + +func KafkaAdminAddKafkaConnectTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeatureKafkaAdminKafkaConnect)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + return + } + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- kafka-connect-cluster: A single Kafka Connect cluster that manages connectors and tasks.\n" + + "- connector: A single Kafka Connect connector instance that moves data between Kafka and external systems.\n" + + "- connectors: Collection of all Kafka Connect connectors in a cluster.\n" + + "- connector-plugins: Collection of all Kafka Connect connector plugins, StreamNative Cloud provides a set of built-in connectors via this resource." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all connectors or connector plugins in a cluster.\n" + + "- get: Retrieve detailed information about a Kafka Connect cluster or specific connector.\n" + + "- create: Create a new connector with specified configuration.\n" + + "- update: Modify an existing connector's configuration.\n" + + "- delete: Remove a connector from the Kafka Connect cluster.\n" + + "- restart: Restart a running connector (useful after failures or configuration changes).\n" + + "- pause: Temporarily stop a connector from processing data.\n" + + "- resume: Continue processing with a previously paused connector." + + toolDesc := "Unified tool for managing Apache Kafka Connect.\n" + + "Kafka Connect is a framework for connecting Kafka with external systems such as databases, key-value stores, search indexes, and file systems. " + + "It provides a standardized way to stream data in and out of Kafka, without requiring custom integration code.\n\n" + + "Key concepts in Kafka Connect:\n\n" + + "- Connectors: The high-level abstraction that coordinates data streaming by managing tasks\n" + + "- Tasks: The implementation of how data is copied to or from Kafka\n" + + "- Workers: The running processes that execute connectors and tasks\n" + + "- Plugins: Reusable connector implementations for specific external systems\n" + + "- Source Connectors: Import data from external systems into Kafka topics\n" + + "- Sink Connectors: Export data from Kafka topics to external systems\n\n" + + "Kafka Connect simplifies data integration, enables scalable and reliable streaming pipelines, " + + "and reduces the operational burden of managing data flows.\n\n" + + "Usage Examples:\n\n" + + "1. List all connectors in the Kafka Connect cluster:\n" + + " resource: \"connectors\"\n" + + " operation: \"list\"\n\n" + + "2. Get information about a specific connector:\n" + + " resource: \"connector\"\n" + + " operation: \"get\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "3. Create a new JDBC source connector:\n" + + " resource: \"connector\"\n" + + " operation: \"create\"\n" + + " name: \"my-jdbc-source\"\n" + + " config: {\n" + + " \"connector.class\": \"io.confluent.connect.jdbc.JdbcSourceConnector\",\n" + + " \"connection.url\": \"jdbc:mysql://mysql:3306/mydb\",\n" + + " \"connection.user\": \"user\",\n" + + " \"connection.password\": \"password\",\n" + + " \"topic.prefix\": \"mysql-\",\n" + + " \"table.whitelist\": \"users,orders\",\n" + + " \"mode\": \"incrementing\",\n" + + " \"incrementing.column.name\": \"id\",\n" + + " \"tasks.max\": \"1\"\n" + + " }\n\n" + + "4. Update an existing connector's configuration:\n" + + " resource: \"connector\"\n" + + " operation: \"update\"\n" + + " name: \"my-jdbc-source\"\n" + + " config: {\n" + + " \"connector.class\": \"io.confluent.connect.jdbc.JdbcSourceConnector\",\n" + + " \"tasks.max\": \"2\",\n" + + " \"table.whitelist\": \"users,orders,products\"\n" + + " }\n\n" + + "5. Delete a connector:\n" + + " resource: \"connector\"\n" + + " operation: \"delete\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "6. Restart a connector after configuration changes or errors:\n" + + " resource: \"connector\"\n" + + " operation: \"restart\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "7. Pause a connector temporarily:\n" + + " resource: \"connector\"\n" + + " operation: \"pause\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "8. Resume a paused connector:\n" + + " resource: \"connector\"\n" + + " operation: \"resume\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "9. List all available connector plugins:\n" + + " resource: \"connector-plugins\"\n" + + " operation: \"list\"\n\n" + + "10. Get information about the Kafka Connect cluster:\n" + + " resource: \"kafka-connect-cluster\"\n" + + " operation: \"get\"\n\n" + + "This tool requires appropriate Kafka Connect permissions." + + kafkaConnectTool := mcp.NewTool("kafka_admin_connect", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("name", + mcp.Description("The name of the Kafka Connect connector to operate on. "+ + "Required for 'get', 'create', 'update', 'delete', 'restart', 'pause', and 'resume' operations on the 'connector' resource. "+ + "Must be unique within the Kafka Connect cluster. "+ + "Should be descriptive of the connector's purpose, such as 'mysql-inventory-source' or 'elasticsearch-logs-sink'.")), + mcp.WithObject("config", + mcp.Description("The configuration settings for the connector. "+ + "Required for 'create' and 'update' operations on the 'connector' resource. "+ + "Must include 'connector.class' which specifies the connector implementation. "+ + "Common configurations include:\n"+ + "- connector.class: The Java class implementing the connector\n"+ + "- tasks.max: Maximum number of tasks to use for this connector\n"+ + "- topics/topic.regex/topic.prefix: Topic specification (varies by connector)\n"+ + "- key.converter/value.converter: Data format converters\n"+ + "- transforms: Optional transformations to apply to data\n"+ + "Additional fields depend on the specific connector type being used.")), + ) + + s.AddTool(kafkaConnectTool, handleKafkaConnectTool(readOnly)) +} + +func handleKafkaConnectTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "update" || operation == "delete" || operation == "restart" || operation == "pause" || operation == "resume") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Create the admin client + admin, err := kafka.GetKafkaConnectClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "kafka-connect-cluster": + switch operation { + case "get": + return handleKafkaConnectClusterGet(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'kafka-connect-cluster': %s", operation)), nil + } + case "connectors": + switch operation { + case "list": + return handleKafkaConnectorsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connectors': %s", operation)), nil + } + case "connector": + switch operation { + case "get": + return handleKafkaConnectorGet(ctx, admin, request) + case "create": + return handleKafkaConnectorCreate(ctx, admin, request) + case "update": + return handleKafkaConnectorUpdate(ctx, admin, request) + case "delete": + return handleKafkaConnectorDelete(ctx, admin, request) + case "restart": + return handleKafkaConnectorRestart(ctx, admin, request) + case "pause": + return handleKafkaConnectorPause(ctx, admin, request) + case "resume": + return handleKafkaConnectorResume(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connector': %s", operation)), nil + } + case "connector-plugins": + switch operation { + case "list": + return handleKafkaConnectorPluginsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connector-plugins': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: kafka-connect-cluster, connectors, connector, connector-plugins", resource)), nil + } + } +} + +func handleKafkaConnectClusterGet(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get the Kafka Connect cluster + cluster, err := admin.GetInfo(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect cluster: %v", err)), nil + } + + jsonBytes, err := json.Marshal(cluster) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect cluster: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaConnectorsList(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get all connectors + connectors, err := admin.ListConnectors(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect connectors: %v", err)), nil + } + + jsonBytes, err := json.Marshal(connectors) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connectors: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaConnectorGet(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get a specific connector + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil + } + + connector, err := admin.GetConnector(ctx, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect connector: %v", err)), nil + } + + jsonBytes, err := json.Marshal(connector) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaConnectorCreate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create a new connector + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil + } + + configMap, err := requiredParamObject(request.Params.Arguments, "config") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil + } + + config := convertToMapString(configMap) + + config["name"] = name + + connector, err := admin.CreateConnector(ctx, name, config) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka Connect connector: %v", err)), nil + } + + jsonBytes, err := json.Marshal(connector) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaConnectorUpdate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Update a connector + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil + } + + configMap, err := requiredParamObject(request.Params.Arguments, "config") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil + } + + config := convertToMapString(configMap) + + config["name"] = name + + connector, err := admin.UpdateConnector(ctx, name, config) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update Kafka Connect connector: %v", err)), nil + } + + jsonBytes, err := json.Marshal(connector) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaConnectorDelete(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Delete a connector + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil + } + + err = admin.DeleteConnector(ctx, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete Kafka Connect connector: %v", err)), nil + } + + return mcp.NewToolResultText("Connector deleted successfully"), nil +} + +func handleKafkaConnectorRestart(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Restart a connector + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil + } + + err = admin.RestartConnector(ctx, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart Kafka Connect connector: %v", err)), nil + } + + return mcp.NewToolResultText("Connector restarted successfully"), nil +} + +func handleKafkaConnectorPause(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Pause a connector + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil + } + + err = admin.PauseConnector(ctx, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to pause Kafka Connect connector: %v", err)), nil + } + + return mcp.NewToolResultText("Connector paused successfully"), nil +} + +func handleKafkaConnectorResume(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Resume a connector + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil + } + + err = admin.ResumeConnector(ctx, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to resume Kafka Connect connector: %v", err)), nil + } + + return mcp.NewToolResultText("Connector resumed successfully"), nil +} + +func handleKafkaConnectorPluginsList(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // List all connector plugins + plugins, err := admin.ListPlugins(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect connector plugins: %v", err)), nil + } + + jsonBytes, err := json.Marshal(plugins) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector plugins: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go new file mode 100644 index 0000000..68e9490 --- /dev/null +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -0,0 +1,263 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/twmb/franz-go/pkg/kadm" +) + +func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeatureKafkaAdmin)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + return + } + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members)\n" + + "- groups: Collection of Kafka Consumer Groups for bulk operations (list)" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all Kafka Consumer Groups in the cluster\n" + + "- describe: Get detailed information about a specific Consumer Group, including members, offsets, and lag\n" + + "- remove-members: Remove specific members from a Consumer Group to force rebalancing or troubleshoot issues\n" + + "- offsets: Get offsets for a specific consumer group\n" + + "- delete-offset: Delete a specific offset for a consumer group of a topic" + + toolDesc := "Unified tool for managing Apache Kafka Consumer Groups.\n" + + "This tool provides access to Kafka consumer group operations including listing, describing, and managing group membership.\n" + + "Kafka Consumer Groups are a key concept for scalable consumption of Kafka topics. A consumer group consists of multiple consumer instances\n" + + "that collaborate to consume data from topic partitions. Kafka ensures that:\n" + + "- Each partition is consumed by exactly one consumer in the group\n" + + "- When consumers join or leave, Kafka triggers a 'rebalance' to redistribute partitions\n" + + "- Consumer groups track consumption progress through committed offsets\n\n" + + "Usage Examples:\n\n" + + "1. List all Kafka Consumer Groups in the cluster:\n" + + " resource: \"groups\"\n" + + " operation: \"list\"\n\n" + + "2. Describe a specific Kafka Consumer Group to see its members and consumption details:\n" + + " resource: \"group\"\n" + + " operation: \"describe\"\n" + + " group: \"my-consumer-group\"\n\n" + + "3. Remove specific members from a Kafka Consumer Group to trigger rebalancing:\n" + + " resource: \"group\"\n" + + " operation: \"remove-members\"\n" + + " group: \"my-consumer-group\"\n" + + " members: \"consumer-instance-1,consumer-instance-2\"\n\n" + + "4. Get offsets for a specific consumer group:\n" + + " resource: \"group\"\n" + + " operation: \"offsets\"\n" + + " group: \"my-consumer-group\"\n\n" + + "5. Delete a specific offset for a consumer group of a topic:\n" + + " resource: \"group\"\n" + + " operation: \"delete-offset\"\n" + + " group: \"my-consumer-group\"\n" + + " topic: \"my-topic\"\n\n" + + + "This tool requires Kafka super-user permissions." + + kafkaGroupsTool := mcp.NewTool("kafka_admin_groups", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("group", + mcp.Description("The name of the Kafka Consumer Group to operate on. "+ + "Required for the 'describe' and 'remove-members' operations. "+ + "Must be an existing consumer group name in the Kafka cluster. "+ + "Consumer Group names are case-sensitive and typically follow a naming convention like 'application-name'.")), + mcp.WithString("members", + mcp.Description("The members to remove from the Kafka Consumer Group. "+ + "Required for the 'remove-members' operation. "+ + "Specify as a comma-separated list of member instance IDs (no spaces). "+ + "Removing members will trigger a consumer group rebalance. "+ + "Example: 'consumer-instance-1,consumer-instance-2'.")), + mcp.WithString("topic", + mcp.Description("The name of the Kafka topic to operate on. "+ + "Required for the 'delete' operation. "+ + "Must be an existing topic name in the Kafka cluster.")), + ) + + s.AddTool(kafkaGroupsTool, handleKafkaGroupsTool(readOnly)) +} + +func handleKafkaGroupsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "remove-members" || operation == "delete-offset") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Create the admin client + admin, err := kafka.GetKafkaAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "group": + switch operation { + case "describe": + return handleKafkaGroupDescribe(ctx, admin, request) + case "remove-members": + return handleKafkaGroupRemoveMembers(ctx, admin, request) + case "offsets": + return handleKafkaGroupOffsets(ctx, admin, request) + case "delete-offset": + return handleKafkaGroupDeleteOffset(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'group': %s", operation)), nil + } + case "groups": + switch operation { + case "list": + return handleKafkaGroupsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'groups': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: group, groups", resource)), nil + } + } +} + +func handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := requiredParam[string](request.Params.Arguments, "group") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil + } + + response, err := admin.DescribeGroups(ctx, groupName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to describe group: %v", err)), nil + } + + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := requiredParam[string](request.Params.Arguments, "group") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil + } + + members, err := requiredParam[string](request.Params.Arguments, "members") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get members: %v", err)), nil + } + builder := kadm.LeaveGroup(groupName).InstanceIDs(strings.Split(members, ",")...) + response, err := admin.LeaveGroup(ctx, builder) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove members: %v", err)), nil + } + + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaGroupsList(ctx context.Context, admin *kadm.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + response, err := admin.ListGroups(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list groups: %v", err)), nil + } + + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := requiredParam[string](request.Params.Arguments, "group") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil + } + + response, err := admin.FetchOffsets(ctx, groupName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list offsets: %v", err)), nil + } + + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := requiredParam[string](request.Params.Arguments, "group") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil + } + + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + response, err := admin.FetchOffsetsForTopics(ctx, groupName, topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete offsets: %v", err)), nil + } + + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/kafka_admin_partitions_tools.go b/pkg/mcp/kafka_admin_partitions_tools.go new file mode 100644 index 0000000..6615dd1 --- /dev/null +++ b/pkg/mcp/kafka_admin_partitions_tools.go @@ -0,0 +1,152 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/twmb/franz-go/pkg/kadm" +) + +func KafkaAdminAddPartitionsTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeatureKafkaAdmin)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + return + } + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- partition: A single Kafka Partition of a Kafka topic. Partitions are the basic unit of parallelism and data distribution in Kafka." + + operationDesc := "Operation to perform. Available operations:\n" + + "- update: Update the number of partitions for an existing Kafka topic. This operation can only increase the number of partitions, not decrease them." + + toolDesc := "Unified tool for managing Apache Kafka partitions.\n" + + "This tool provides access to Kafka partition operations, particularly adding partitions to existing topics.\n" + + "Kafka partitions are the fundamental unit of parallelism and scalability in Kafka. Each partition is an ordered, " + + "immutable sequence of records that is continually appended to. Partitions can be distributed across multiple brokers " + + "to enable parallel processing of a topic.\n\n" + + "Important notes:\n" + + "- You can only increase the number of partitions, never decrease them\n" + + "- Adding partitions may change the mapping of keys to partitions\n" + + "- Maximum number of partitions is limited by broker configuration\n\n" + + "Usage Examples:\n\n" + + "1. Update the number of partitions for an existing Kafka topic from 1 to 3:\n" + + " resource: \"partition\"\n" + + " operation: \"update\"\n" + + " topic: \"my-topic\"\n" + + " new-total: 3\n\n" + + "This tool requires Kafka super-user permissions.\n" + + "If you want to list or describe partitions of a topic, please use the `kafka_admin_topics` tool's `metadata` operation instead." + + kafkaPartitionsTool := mcp.NewTool("kafka_admin_partitions", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", + mcp.Description("The name of the Kafka topic to operate on. "+ + "Required for the 'update' operation. "+ + "Must be an existing topic name in the Kafka cluster. "+ + "The topic must be in a healthy state for partition updates to succeed.")), + mcp.WithNumber("new-total", + mcp.Description("The new total number of partitions for the Kafka topic. "+ + "Required for the 'update' operation. "+ + "Must be greater than the current number of partitions (cannot decrease partitions). "+ + "A larger number of partitions can help increase parallelism and throughput, but may also "+ + "increase resource utilization on the brokers. "+ + "Consider Kafka cluster capacity when setting this value.")), + ) + + s.AddTool(kafkaPartitionsTool, handleKafkaPartitionsTool(readOnly)) +} + +func handleKafkaPartitionsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "update") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Create the admin client + admin, err := kafka.GetKafkaAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "partition": + switch operation { + case "update": + return handleKafkaPartitionUpdate(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'partition': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: partition", resource)), nil + } + } +} + +func handleKafkaPartitionUpdate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + topicName, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + newTotal, err := requiredParam[int](request.Params.Arguments, "new-total") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get new total: %v", err)), nil + } + + response, err := admin.UpdatePartitions(ctx, newTotal, topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update partitions: %v", err)), nil + } + + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go new file mode 100644 index 0000000..69c9193 --- /dev/null +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -0,0 +1,425 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/twmb/franz-go/pkg/sr" +) + +func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeatureKafkaAdminSchemaRegistry)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + return + } + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- subjects: Collection of all schema subjects in the Schema Registry\n" + + "- subject: A specific schema subject (a named schema that can have multiple versions)\n" + + "- versions: Collection of all versions for a specific subject\n" + + "- version: A specific version of a subject's schema\n" + + "- compatibility: Compatibility settings that control schema evolution rules\n" + + "- types: Supported schema format types (like AVRO, JSON, PROTOBUF)" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all subjects, versions for a subject, or supported schema types\n" + + "- get: Get a subject's latest schema, a specific version, or compatibility setting\n" + + "- set: Set compatibility level for global or subject-specific schema evolution\n" + + "- create: Register a new schema for a subject\n" + + "- delete: Delete a schema subject or a specific version" + + toolDesc := "Unified tool for managing Apache Kafka Schema Registry.\n" + + "Schema Registry is a component that stores and manages schemas for Kafka message data. " + + "It enforces schema compatibility during evolution, enabling safe, backward-compatible changes to data structures. " + + "Key concepts in Schema Registry:\n\n" + + "- Subject: A named schema, typically following the pattern '-key' or '-value'\n" + + "- Version: Each schema evolution creates a new numbered version\n" + + "- Schema: The actual data structure definition (in AVRO, JSON Schema, or Protobuf format)\n" + + "- Compatibility: Rules that control how schemas can evolve (BACKWARD, FORWARD, FULL, NONE)\n\n" + + "Schema Registry helps ensure data consistency, enables schema evolution governance, " + + "and reduces payload sizes by transmitting schema IDs instead of full schemas.\n\n" + + "Usage Examples:\n\n" + + "1. List all schema subjects in the registry:\n" + + " resource: \"subjects\"\n" + + " operation: \"list\"\n\n" + + "2. List all versions for a specific subject:\n" + + " resource: \"versions\"\n" + + " operation: \"list\"\n" + + " subject: \"my-topic-value\"\n\n" + + "3. List all supported schema types:\n" + + " resource: \"types\"\n" + + " operation: \"list\"\n\n" + + "4. Get the latest schema for a subject:\n" + + " resource: \"subject\"\n" + + " operation: \"get\"\n" + + " subject: \"my-topic-value\"\n\n" + + "5. Get a specific schema version:\n" + + " resource: \"version\"\n" + + " operation: \"get\"\n" + + " subject: \"my-topic-value\"\n" + + " version: 1\n\n" + + "6. Get compatibility level for a subject:\n" + + " resource: \"compatibility\"\n" + + " operation: \"get\"\n" + + " subject: \"my-topic-value\"\n\n" + + "7. Set compatibility level for a subject:\n" + + " resource: \"compatibility\"\n" + + " operation: \"set\"\n" + + " subject: \"my-topic-value\"\n" + + " compatibility: \"BACKWARD\"\n\n" + + "8. Register a new AVRO schema for a subject:\n" + + " resource: \"subject\"\n" + + " operation: \"create\"\n" + + " subject: \"my-topic-value\"\n" + + " type: \"AVRO\"\n" + + " schema: \"{\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"MyRecord\\\",\\\"fields\\\":[{\\\"name\\\":\\\"id\\\",\\\"type\\\":\\\"int\\\"},{\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\"}]}\"\n\n" + + "9. Delete a subject (all versions):\n" + + " resource: \"subject\"\n" + + " operation: \"delete\"\n" + + " subject: \"my-topic-value\"\n\n" + + "This tool requires appropriate Schema Registry permissions." + + kafkaSchemaRegistryTool := mcp.NewTool("kafka_admin_sr", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("subject", + mcp.Description("The name of the Schema Registry subject to operate on. "+ + "Required for operations on specific subjects, versions, and compatibility settings. "+ + "Typically follows the pattern '-key' for key schemas or '-value' for value schemas. "+ + "Case-sensitive and must match exactly with the subject in Schema Registry.")), + mcp.WithString("compatibility", + mcp.Description("The compatibility level to set for schema evolution. "+ + "Required for the 'set' operation on 'compatibility' resource. "+ + "Valid values are:\n"+ + "- BACKWARD: New schema can read data written with previous schema (default)\n"+ + "- FORWARD: Previous schema can read data written with new schema\n"+ + "- FULL: Both backward and forward compatibility\n"+ + "- NONE: No compatibility checks enforced")), + mcp.WithString("schema", + mcp.Description("The schema definition to register. "+ + "Required for the 'create' operation on 'subject' resource. "+ + "Must be a valid schema according to the specified 'type' (AVRO, JSON, or PROTOBUF). "+ + "For AVRO, use JSON format with escaped quotes. "+ + "Example: '{\\\"type\\\":\\\"record\\\",\\\"fields\\\":[{\\\"name\\\":\\\"id\\\",\\\"type\\\":\\\"int\\\"}]}'")), + mcp.WithString("version", + mcp.Description("The schema version to retrieve or delete. "+ + "Required for 'get' operation on 'version' resource and optional for 'delete' operation on 'subject' resource. "+ + "An integer specifying the version number, where 1 is the first version. "+ + "Use 'latest' or -1 to reference the most recent version.")), + mcp.WithString("type", + mcp.Description("The schema format type. "+ + "Required for the 'create' operation on 'subject' resource. "+ + "Must be one of:\n"+ + "- AVRO: Apache Avro schema format\n"+ + "- JSON: JSON Schema format\n"+ + "- PROTOBUF: Protocol Buffers schema format\n"+ + "The format must match the provided schema definition.")), + ) + + s.AddTool(kafkaSchemaRegistryTool, handleKafkaSchemaRegistryTool(readOnly)) +} + +func handleKafkaSchemaRegistryTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "set" || operation == "create" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Create the admin client + admin, err := kafka.GetKafkaSchemaRegistryClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "subjects": + switch operation { + case "list": + return handleKafkaSubjectsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subjects': %s", operation)), nil + } + case "versions": + switch operation { + case "list": + return handleKafkaVersionsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'versions': %s", operation)), nil + } + case "types": + switch operation { + case "list": + return handleKafkaTypesList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'types': %s", operation)), nil + } + case "subject": + switch operation { + case "get": + return handleKafkaSubjectGet(ctx, admin, request) + case "create": + return handleKafkaSubjectCreate(ctx, admin, request) + case "delete": + return handleKafkaSubjectDelete(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subject': %s", operation)), nil + } + case "version": + switch operation { + case "get": + return handleKafkaVersionGet(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'version': %s", operation)), nil + } + case "compatibility": + switch operation { + case "get": + return handleKafkaCompatibilityGet(ctx, admin, request) + case "set": + return handleKafkaCompatibilitySet(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'compatibility': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: subjects, subject, versions, version, compatibility, types", resource)), nil + } + } +} + +func handleKafkaSubjectsList(ctx context.Context, admin *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subjects, err := admin.Subjects(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subjects: %v", err)), nil + } + + jsonBytes, err := json.Marshal(subjects) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaVersionsList(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := requiredParam[string](request.Params.Arguments, "subject") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + } + + versions, err := admin.SubjectVersions(ctx, subject) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get versions: %v", err)), nil + } + + jsonBytes, err := json.Marshal(versions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaTypesList(ctx context.Context, admin *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + types, err := admin.SupportedTypes(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get types: %v", err)), nil + } + + jsonBytes, err := json.Marshal(types) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaSubjectGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := requiredParam[string](request.Params.Arguments, "subject") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + } + + schemas, err := admin.Schemas(ctx, subject) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schemas: %v", err)), nil + } + + jsonBytes, err := json.Marshal(schemas) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaSubjectCreate(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := requiredParam[string](request.Params.Arguments, "subject") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + } + + schema, err := requiredParam[string](request.Params.Arguments, "schema") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil + } + + typeString, err := requiredParam[string](request.Params.Arguments, "type") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema type: %v", err)), nil + } + + var schemaType sr.SchemaType + err = schemaType.UnmarshalText([]byte(typeString)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unmarshal schema type: %v", err)), nil + } + + schemaData := sr.Schema{ + Schema: schema, + Type: schemaType, + } + + createdSchema, err := admin.CreateSchema(ctx, subject, schemaData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create schema: %v", err)), nil + } + + jsonBytes, err := json.Marshal(createdSchema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaSubjectDelete(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := requiredParam[string](request.Params.Arguments, "subject") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + } + + version, err := requiredParam[int](request.Params.Arguments, "version") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil + } + + err = admin.DeleteSchema(ctx, subject, version, sr.SoftDelete) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete schema: %v", err)), nil + } + + return mcp.NewToolResultText("Schema deleted successfully"), nil +} + +func handleKafkaVersionGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := requiredParam[string](request.Params.Arguments, "subject") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + } + + version, err := requiredParam[int](request.Params.Arguments, "version") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil + } + + schema, err := admin.SchemaByVersion(ctx, subject, version) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil + } + + jsonBytes, err := json.Marshal(schema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaCompatibilityGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := requiredParam[string](request.Params.Arguments, "subject") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + } + + compatibility := admin.Compatibility(ctx, subject) + + jsonBytes, err := json.Marshal(compatibility) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaCompatibilitySet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := requiredParam[string](request.Params.Arguments, "subject") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + } + + compatibility, err := requiredParam[string](request.Params.Arguments, "compatibility") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility: %v", err)), nil + } + + var compatibilityLevel sr.CompatibilityLevel + err = compatibilityLevel.UnmarshalText([]byte(compatibility)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unmarshal compatibility: %v", err)), nil + } + + response := admin.SetCompatibility(ctx, sr.SetCompatibility{ + Level: compatibilityLevel, + }, subject) + + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go new file mode 100644 index 0000000..844a5a7 --- /dev/null +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -0,0 +1,305 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/twmb/franz-go/pkg/kadm" +) + +func KafkaAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeatureKafkaAdmin)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + return + } + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- topic: A single Kafka topic for operations on individual topics (create, get, delete)\n" + + "- topics: Collection of Kafka topics for bulk operations (list)" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all topics in the Kafka cluster, optionally including internal topics\n" + + "- get: Get detailed configuration for a specific topic\n" + + "- create: Create a new topic with specified partitions, replication factor, and optional configs\n" + + "- delete: Delete an existing topic\n" + + "- metadata: Get metadata for a specific topic\n" + + toolDesc := "Unified tool for managing Apache Kafka topics.\n" + + "This tool provides access to various Kafka topic operations, including creation, deletion, listing, and configuration retrieval.\n" + + "Kafka topics are distributed append-only logs that store ordered, immutable records. Topics can be partitioned for parallel processing.\n\n" + + "Do not use this tool for Pulsar protocol operations. Use 'pulsar_admin_topics' instead." + + "Usage Examples:\n\n" + + "1. List all topics:\n" + + " resource: \"topics\"\n" + + " operation: \"list\"\n" + + " include-internal: false\n\n" + + "2. Get topic configuration:\n" + + " resource: \"topic\"\n" + + " operation: \"get\"\n" + + " name: \"my-topic\"\n\n" + + "3. Create a new topic with 3 partitions and replication factor 2:\n" + + " resource: \"topic\"\n" + + " operation: \"create\"\n" + + " name: \"new-topic\"\n" + + " partitions: 3\n" + + " replication-factor: 2\n" + + " configs: [\"cleanup.policy=compact\", \"retention.ms=604800000\"]\n\n" + + "4. Delete a topic:\n" + + " resource: \"topic\"\n" + + " operation: \"delete\"\n" + + " name: \"topic-to-delete\"\n\n" + + "5. Get full metadata including topic and broker information for a specific topic:\n" + + " resource: \"topic\"\n" + + " operation: \"metadata\"\n" + + " name: \"my-topic\"\n\n" + + "This tool requires Kafka super-user permissions." + + kafkaTopicTool := mcp.NewTool("kafka_admin_topics", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithBoolean("include-internal", + mcp.Description("Whether to include internal Kafka topics (those starting with an underscore) in the results. "+ + "Only applicable for the 'list' operation on the 'topics' resource. "+ + "Default: false."), + ), + mcp.WithString("name", + mcp.Description("The name of the Kafka topic to operate on. "+ + "Required for 'get', 'create', and 'delete' operations on the 'topic' resource. "+ + "Must be a valid Kafka topic name."), + ), + mcp.WithNumber("partitions", + mcp.Description("The number of partitions to create for the topic. "+ + "Only applicable for the 'create' operation on the 'topic' resource. "+ + "Should be a positive integer. More partitions enable higher throughput but require more brokers. "+ + "Default: 1."), + ), + mcp.WithNumber("replication-factor", + mcp.Description("The replication factor for the topic, determining how many copies of data are maintained across brokers. "+ + "Only applicable for the 'create' operation on the 'topic' resource. "+ + "Should be a positive integer, not exceeding the number of available brokers. "+ + "Higher values increase fault tolerance but consume more storage. "+ + "Default: 1."), + ), + mcp.WithArray("configs", + mcp.Description("Topic configuration overrides as an array of key-value strings. "+ + "Only applicable for the 'create' operation on the 'topic' resource. "+ + "Each entry should be in the format 'key=value'. "+ + "Example configs include 'cleanup.policy', 'retention.ms', 'compression.type'. "+ + "Optional."), + ), + ) + s.AddTool(kafkaTopicTool, handleKafkaTopicTool(readOnly)) +} + +func handleKafkaTopicTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Create the admin client + admin, err := kafka.GetKafkaAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "topic": + switch operation { + case "get": + return handleKafkaTopicGet(ctx, admin, request) + case "create": + return handleKafkaTopicCreate(ctx, admin, request) + case "delete": + return handleKafkaTopicDelete(ctx, admin, request) + case "metadata": + return handleKafkaTopicMetadata(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topic': %s", operation)), nil + } + case "topics": + switch operation { + case "list": + return handleKafkaTopicsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topics': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: topic, topics", resource)), nil + } + } +} + +func handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topicName, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + // Get topic configs + configs, err := admin.DescribeTopicConfigs(ctx, topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic configs: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(configs) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic configs: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topicName, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + // Get optional parameters + partitions, ok := optionalParam[float64](request.Params.Arguments, "partitions") + if !ok { + partitions = 1 // Default to 1 partition + } + + replicationFactor, ok := optionalParam[float64](request.Params.Arguments, "replication-factor") + if !ok { + replicationFactor = 1 // Default to replication factor 1 + } + + // Get configs if provided + var configEntries map[string]*string + configsArray, ok := optionalParamConfigs(request.Params.Arguments, "configs") + if ok { + configEntries, err = parseMessageConfigs(configsArray) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse configs: %v", err)), nil + } + } + + // Create the topic + _, err = admin.CreateTopic(ctx, int32(partitions), int16(replicationFactor), configEntries, topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create topic: %v", err)), nil + } + + return mcp.NewToolResultText("Topic created successfully"), nil +} + +func handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topicName, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + // Delete the topic + _, err = admin.DeleteTopic(ctx, topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete topic: %v", err)), nil + } + + return mcp.NewToolResultText("Topic deleted successfully"), nil +} + +func handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + includeInternal, ok := optionalParam[bool](request.Params.Arguments, "include-internal") + if !ok { + includeInternal = false + } + + var topics kadm.TopicDetails + var err error + // List topics + if !includeInternal { + topics, err = admin.ListTopics(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics: %v", err)), nil + } + } else { + topics, err = admin.ListTopicsWithInternal(ctx) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics: %v", err)), nil + } + } + topicNames := []string{} + for topicName := range topics { + topicNames = append(topicNames, topicName) + } + + // Format the output + jsonBytes, err := json.Marshal(topicNames) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic names: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaTopicMetadata(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topicName, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + topicDetails, err := admin.Metadata(ctx, topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic metadata: %v", err)), nil + } + + jsonBytes, err := json.Marshal(topicDetails) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic metadata: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go new file mode 100644 index 0000000..6e6ef68 --- /dev/null +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -0,0 +1,201 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "time" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/twmb/franz-go/pkg/kgo" +) + +var logger *logrus.Logger + +// KafkaClientAddConsumeTools adds Kafka client consume tools to the MCP server +func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logrus.Logger, features []string) { + if !slices.Contains(features, string(FeatureKafkaClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + return + } + + toolDesc := "Consume messages from a Kafka topic.\n" + + "This tool allows you to read messages from Kafka topics, specifying various consumption parameters.\n\n" + + "Kafka Consumer Concepts:\n" + + "- Consumers read data from Kafka topics, which can be spread across multiple partitions\n" + + "- Consumer Groups enable multiple consumers to cooperatively process messages from the same topic\n" + + "- Offsets track the position of consumers in each partition, allowing resumption after failures\n" + + "- Partitions are independent ordered sequences of messages that enable parallel processing\n\n" + + "This tool provides a temporary consumer instance for diagnostic and testing purposes. " + + "It does not commit offsets back to Kafka unless the 'group' parameter is explicitly specified. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_consume' instead.\n\n" + + "Usage Examples:\n\n" + + "1. Basic consumption - Get 10 earliest messages from a topic:\n" + + " topic: \"my-topic\"\n" + + " max-messages: 10\n\n" + + "2. Consume from beginning - Get messages from the start of a topic:\n" + + " topic: \"my-topic\"\n" + + " offset: \"atstart\"\n" + + " max-messages: 20\n\n" + + "3. Consumer group - Join an existing consumer group and resume from committed offset:\n" + + " topic: \"my-topic\"\n" + + " group: \"my-consumer-group\"\n" + + " offset: \"atcommitted\"\n\n" + + "4. Time-limited consumption - Set a longer timeout for slow topics:\n" + + " topic: \"my-topic\"\n" + + " max-messages: 100\n" + + " timeout: 30\n\n" + + "This tool requires Kafka consumer permissions on the specified topic." + + // Add consume tool + consumeTool := mcp.NewTool("kafka_client_consume", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The name of the Kafka topic to consume messages from. "+ + "Must be an existing topic that the user has read permissions for. "+ + "For partitioned topics, this will consume from all partitions unless a specific partition is specified."), + ), + mcp.WithString("group", + mcp.Description("The consumer group ID to use for consumption. "+ + "Optional. If provided, the consumer will join this consumer group and track offsets with Kafka. "+ + "If not provided, a random group ID will be generated, and offsets won't be committed back to Kafka. "+ + "Using a meaningful group ID is important when you want to resume consumption later or coordinate multiple consumers."), + ), + mcp.WithString("offset", + mcp.Description("The offset position to start consuming from. "+ + "Optional. Must be one of these values:\n"+ + "- 'atstart': Begin from the earliest available message in the topic/partition\n"+ + "- 'atend': Begin from the next message that arrives after the consumer starts\n"+ + "- 'atcommitted': Begin from the last committed offset (only works with specified 'group')\n"+ + "Default: 'atstart'"), + ), + mcp.WithNumber("max-messages", + mcp.Description("Maximum number of messages to consume in this request. "+ + "Optional. Limits the total number of messages returned, across all partitions if no specific partition is specified. "+ + "Higher values retrieve more data but may increase response time and size. "+ + "Default: 10"), + ), + mcp.WithNumber("timeout", + mcp.Description("Maximum time in seconds to wait for messages. "+ + "Optional. The consumer will wait up to this long to collect the requested number of messages. "+ + "If fewer than 'max-messages' are available within this time, the available messages are returned. "+ + "Longer timeouts are useful for low-volume topics or when consuming with 'atend'. "+ + "Default: 10 seconds"), + ), + ) + s.AddTool(consumeTool, handleKafkaConsume) + if logrusLogger != nil { + logger = logrusLogger + } +} + +// handleKafkaConsume handles consuming messages from a Kafka topic +func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + opts := []kgo.Opt{} + // Get required parameters + topicName, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + opts = append(opts, kgo.ConsumeTopics(topicName)) + + opts = append(opts, kgo.FetchIsolationLevel(kgo.ReadUncommitted())) + opts = append(opts, kgo.KeepRetryableFetchErrors()) + w := logger.Writer() + opts = append(opts, kgo.WithLogger(kgo.BasicLogger(w, kgo.LogLevelInfo, nil))) + maxMessages, hasMaxMessages := optionalParam[float64](request.Params.Arguments, "max-messages") + if !hasMaxMessages { + maxMessages = 10 // Default to 10 messages + } + + timeoutSec, hasTimeout := optionalParam[float64](request.Params.Arguments, "timeout") + if !hasTimeout { + timeoutSec = 10 // Default to 10 seconds + } + + offsetStr, hasOffset := optionalParam[string](request.Params.Arguments, "offset") + if !hasOffset { + offsetStr = "atstart" // Default to starting at the beginning + } + + var offset kgo.Offset + switch offsetStr { + case "atstart": + offset = kgo.NewOffset().AtStart() + case "atend": + offset = kgo.NewOffset().AtEnd() + case "atcommitted": + offset = kgo.NewOffset().AtCommitted() + default: + offset = kgo.NewOffset().AtStart() + } + + opts = append(opts, kgo.ConsumeResetOffset(offset)) + + logger.Infof("Consuming from topic: %s, offset: %s, max-messages: %d, timeout: %d", topicName, offsetStr, int(maxMessages), int(timeoutSec)) + + // Create Kafka client using the new Kafka package + kafkaClient, err := kafka.GetKafkaClient(opts...) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka client: %v", err)), nil + } + defer kafkaClient.Close() + + // Set timeout + timeoutCtx, cancel := context.WithTimeout(ctx, time.Duration(timeoutSec)*time.Second) + defer cancel() + + if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster + return mcp.NewToolResultError(fmt.Sprintf("Failed to ping Kafka cluster: %v", err)), nil + } + + topics := kafkaClient.OptValue("ConsumeTopics") + logger.Infof("Consuming from topics: %v\n", topics) + + results := make([]*kgo.Record, 0) +consumerLoop: + for { + fetches := kafkaClient.PollRecords(timeoutCtx, int(maxMessages)) + iter := fetches.RecordIter() + logger.Infof("NumRecords: %d\n", fetches.NumRecords()) + + for _, fetchErr := range fetches.Errors() { + logger.Infof("error consuming from topic: topic=%s, partition=%d, err=%v\n", + fetchErr.Topic, fetchErr.Partition, fetchErr.Err) + break consumerLoop + } + + for !iter.Done() { + record := iter.Next() + results = append(results, record) + if len(results) >= int(maxMessages) { + break consumerLoop + } + } + } + + jsonResults, err := json.Marshal(results) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal results: %v", err)), nil + } + return mcp.NewToolResultText(string(jsonResults)), nil +} diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go new file mode 100644 index 0000000..aa83238 --- /dev/null +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -0,0 +1,347 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "os" + "slices" + "time" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/twmb/franz-go/pkg/kgo" +) + +// KafkaClientAddProduceTools adds Kafka client produce tools to the MCP server +func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []string) { + // Skip registration if in read-only mode + if readOnly { + return + } + + if !slices.Contains(features, string(FeatureKafkaClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + return + } + + toolDesc := "Produce messages to a Kafka topic.\n" + + "This tool allows you to send messages to Kafka topics with various options for message creation.\n\n" + + "Kafka Producer Concepts:\n" + + "- Producers write data to Kafka topics, which can be spread across multiple partitions\n" + + "- Messages can include a key, which determines the partition assignment (consistent hashing)\n" + + "- Headers can be added to messages to include metadata without affecting the message payload\n" + + "- Partitions enable parallel processing and ordered delivery within a single partition\n\n" + + "This tool provides a simple producer instance for diagnostic and testing purposes. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_produce' instead.\n\n" + + "Usage Examples:\n\n" + + "1. Basic message production - Send a simple message to a topic:\n" + + " topic: \"my-topic\"\n" + + " value: \"Hello, Kafka!\"\n\n" + + "2. Keyed message - Send a message with a key for consistent partition routing:\n" + + " topic: \"my-topic\"\n" + + " key: \"user-123\"\n" + + " value: \"User activity data\"\n\n" + + "3. Multiple messages - Send several messages in one request:\n" + + " topic: \"my-topic\"\n" + + " messages: [{\"key\": \"key1\", \"value\": \"value1\"}, {\"key\": \"key2\", \"value\": \"value2\"}]\n\n" + + "4. Message with headers - Include metadata with your message:\n" + + " topic: \"my-topic\"\n" + + " value: \"Message with headers\"\n" + + " headers: [{\"key\": \"source\", \"value\": \"mcp-tool\"}, {\"key\": \"timestamp\", \"value\": \"2023-06-01\"}]\n\n" + + "5. Specific partition - Send to a particular partition:\n" + + " topic: \"my-topic\"\n" + + " value: \"Targeted message\"\n" + + " partition: 2\n\n" + + "This tool requires Kafka producer permissions on the specified topic." + + // Add produce tool + produceTool := mcp.NewTool("kafka_client_produce", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The name of the Kafka topic to produce messages to. "+ + "Must be an existing topic that the user has write permissions for."), + ), + mcp.WithString("key", + mcp.Description("The key for the message. "+ + "Optional. Keys are used for partition assignment and maintaining order for related messages. "+ + "Messages with the same key will be sent to the same partition. "+ + "If not provided, the message will be assigned to a random partition."), + ), + mcp.WithString("value", + mcp.Description("The value/content of the message to send. "+ + "Required if 'messages' is not provided. This is the actual payload that will be delivered to consumers."), + ), + mcp.WithNumber("partition", + mcp.Description("The specific partition number to produce to. "+ + "Optional. Partitions are zero-indexed (0, 1, 2, etc). "+ + "If specified, the message will be sent to this partition regardless of the key. "+ + "If not specified, the partition will be determined by the key hash or randomly assigned."), + ), + mcp.WithArray("headers", + mcp.Description("Message headers in the format of [{\"key\": \"header-key\", \"value\": \"header-value\"}]. "+ + "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ + "They are passed along with the message to consumers but are not used for routing."), + ), + mcp.WithArray("messages", + mcp.Description("Batch of messages to send in the format of [{\"key\": \"key1\", \"value\": \"value1\", \"headers\": [...], \"partition\": 0}, ...]. "+ + "Optional. Allows sending multiple messages with different keys, values, headers, and partitions in a single request. "+ + "If provided, the individual key/value/headers/partition parameters are ignored."), + ), + mcp.WithBoolean("sync", + mcp.Description("Whether to wait for server acknowledgment before returning. "+ + "Optional. Default is true. When true, ensures the message was successfully written "+ + "to the topic before the tool returns a success response."), + ), + mcp.WithString("file", + mcp.Description("Path to a file containing the message value. "+ + "Optional. If provided, the file content will be used as the message value instead of the 'value' parameter. "+ + "Useful for sending larger messages or binary data."), + ), + ) + s.AddTool(produceTool, handleKafkaProduce) +} + +// handleKafkaProduce handles producing messages to a Kafka topic +func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topicName, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + // Process batch messages first if provided + messages, hasMessages := optionalParam[[]interface{}](request.Params.Arguments, "messages") + if hasMessages && len(messages) > 0 { + return handleBatchMessages(ctx, topicName, messages) + } + + // Handle single message case + // Get value from parameter or file + value, hasValue := optionalParam[string](request.Params.Arguments, "value") + filePath, hasFile := optionalParam[string](request.Params.Arguments, "file") + + if !hasValue && !hasFile { + return mcp.NewToolResultError("Either 'value' or 'file' parameter is required when not using 'messages'"), nil + } + + // If file is provided, read its content + if hasFile { + fileContent, err := os.ReadFile(filePath) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to read file: %v", err)), nil + } + value = string(fileContent) + } + + // Get optional parameters + key, hasKey := optionalParam[string](request.Params.Arguments, "key") + partition, hasPartition := optionalParam[float64](request.Params.Arguments, "partition") + headers, hasHeaders := optionalParam[[]interface{}](request.Params.Arguments, "headers") + sync := true + if syncVal, hasSync := optionalParam[bool](request.Params.Arguments, "sync"); hasSync { + sync = syncVal + } + + // Create Kafka client + kafkaClient, err := kafka.GetKafkaClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka client: %v", err)), nil + } + defer kafkaClient.Close() + + // Prepare record + record := &kgo.Record{ + Topic: topicName, + Value: []byte(value), + } + + // Add key if provided + if hasKey { + record.Key = []byte(key) + } + + // Set partition if provided + if hasPartition { + record.Partition = int32(partition) + } + + // Add headers if provided + if hasHeaders { + record.Headers = parseHeaders(headers) + } + + // Produce the message + result, err := produceRecord(ctx, kafkaClient, record, sync) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to produce message: %v", err)), nil + } + + return result, nil +} + +// handleBatchMessages processes multiple messages from the messages array +func handleBatchMessages(ctx context.Context, topicName string, messages []interface{}) (*mcp.CallToolResult, error) { + // Create Kafka client + kafkaClient, err := kafka.GetKafkaClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka client: %v", err)), nil + } + defer kafkaClient.Close() + + // Process each message + var records []*kgo.Record + for i, msg := range messages { + msgMap, ok := msg.(map[string]interface{}) + if !ok { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message format at index %d", i)), nil + } + + // Value is required + valueInterface, exists := msgMap["value"] + if !exists { + return mcp.NewToolResultError(fmt.Sprintf("Message at index %d is missing required 'value' field", i)), nil + } + value, ok := valueInterface.(string) + if !ok { + return mcp.NewToolResultError(fmt.Sprintf("Value at index %d must be a string", i)), nil + } + + // Create record + record := &kgo.Record{ + Topic: topicName, + Value: []byte(value), + } + + // Add key if provided + if keyInterface, exists := msgMap["key"]; exists { + if key, ok := keyInterface.(string); ok { + record.Key = []byte(key) + } + } + + // Set partition if provided + if partitionInterface, exists := msgMap["partition"]; exists { + if partition, ok := partitionInterface.(float64); ok { + record.Partition = int32(partition) + } + } + + // Add headers if provided + if headersInterface, exists := msgMap["headers"]; exists { + if headers, ok := headersInterface.([]interface{}); ok { + record.Headers = parseHeaders(headers) + } + } + + records = append(records, record) + } + + // No valid records to produce + if len(records) == 0 { + return mcp.NewToolResultError("No valid messages to produce"), nil + } + + // Produce all records + results := kafkaClient.ProduceSync(ctx, records...) + // Check for errors in produce results + for _, result := range results { + if result.Err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to produce messages: %v", result.Err)), nil + } + } + + // Create result + result := map[string]interface{}{ + "status": "success", + "topic": topicName, + "message_count": len(records), + "timestamp": time.Now().Format(time.RFC3339), + } + + jsonBytes, err := json.Marshal(result) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create result: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// parseHeaders converts the headers array to kgo.RecordHeader format +func parseHeaders(headers []interface{}) []kgo.RecordHeader { + var recordHeaders []kgo.RecordHeader + + for _, header := range headers { + headerMap, ok := header.(map[string]interface{}) + if !ok { + continue + } + + key, hasKey := headerMap["key"].(string) + value, hasValue := headerMap["value"].(string) + + if hasKey && hasValue { + recordHeaders = append(recordHeaders, kgo.RecordHeader{ + Key: key, + Value: []byte(value), + }) + } + } + + return recordHeaders +} + +// produceRecord sends a single record to Kafka +func produceRecord(ctx context.Context, client *kgo.Client, record *kgo.Record, sync bool) (*mcp.CallToolResult, error) { + if sync { + results := client.ProduceSync(ctx, record) + if len(results) > 0 && results[0].Err != nil { + return nil, results[0].Err + } + } else { + client.Produce(ctx, record, func(_ *kgo.Record, err error) { + if err != nil { + // Log the error but continue since we're async + fmt.Printf("Async produce error: %v\n", err) + } + }) + } + + // Create result + result := map[string]interface{}{ + "status": "success", + "topic": record.Topic, + "timestamp": time.Now().Format(time.RFC3339), + } + + if len(record.Key) > 0 { + result["key"] = string(record.Key) + } + + if record.Partition != -1 { + result["partition"] = record.Partition + } + + jsonBytes, err := json.Marshal(result) + if err != nil { + return nil, fmt.Errorf("failed to create result: %v", err) + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go new file mode 100644 index 0000000..7f30d90 --- /dev/null +++ b/pkg/mcp/prompts.go @@ -0,0 +1,162 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/config" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" +) + +func RegisterPrompts(s *server.MCPServer) { + s.AddPrompt(mcp.NewPrompt("list-streamnative-cloud-pulsar-clusters", + mcp.WithPromptDescription("List all Pulsar clusters in the StreamNative Cloud"), + ), handleListPulsarClusters) + s.AddPrompt(mcp.NewPrompt("read-streamnative-cloud-pulsar-cluster", + mcp.WithPromptDescription("Read a Pulsar cluster in the StreamNative Cloud"), + mcp.WithArgument("name", mcp.RequiredArgument(), mcp.ArgumentDescription("The name of the Pulsar cluster")), + ), handleReadPulsarCluster) +} + +func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { + options := getOptions(ctx) + apiClient, err := config.GetAPIClient() + if err != nil { + return nil, fmt.Errorf("failed to get API client: %v", err) + } + + clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, options.Organization).Execute() + if err != nil { + return nil, fmt.Errorf("failed to list pulsar clusters: %v", err) + } + defer clustersBody.Body.Close() + + var messages = make( + []mcp.PromptMessage, + len(clusters.Items)+1, + ) + + messages[0] = mcp.PromptMessage{ + Content: mcp.TextContent{ + Type: "text", + Text: fmt.Sprintf( + "There are %d Pulsar clusters in the StreamNative Cloud from organization %s:", + len(clusters.Items), + options.Organization, + ), + }, + Role: mcp.RoleUser, + } + + for i, cluster := range clusters.Items { + instanceName := cluster.Spec.InstanceName + displayName := cluster.Spec.DisplayName + if displayName == nil || *displayName == "" { + displayName = cluster.Metadata.Name + } + + status := "Not Ready" + if isClusterAvailable(cluster) { + status = "Ready" + } + + engineType := getEngineType(cluster) + + messages[i+1] = mcp.PromptMessage{ + Content: mcp.TextContent{ + Type: "text", + Text: fmt.Sprintf( + "Instance Name: %s\nCluster Name: %s\nCluster Display Name: %s\nCluster Status: %s\nCluster Engine Type: %s", + instanceName, + *cluster.Metadata.Name, + *displayName, + status, + engineType, + ), + }, + Role: mcp.RoleUser, + } + } + + return &mcp.GetPromptResult{ + Description: fmt.Sprintf("Pulsar clusters from StreamNative Cloud organization %s, you can use `streamnative_cloud_context_use_cluster` tool to switch to selected cluster, and use pulsar and kafka tools to interact with the cluster.", options.Organization), + Messages: messages, + }, nil +} + +func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { + options := getOptions(ctx) + apiClient, err := config.GetAPIClient() + if err != nil { + return nil, fmt.Errorf("failed to get API client: %v", err) + } + + name, err := requiredParam[string](convertToMapInterface(request.Params.Arguments), "name") + if err != nil { + return nil, fmt.Errorf("failed to get name: %v", err) + } + + clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, options.Organization).Execute() + if err != nil { + return nil, fmt.Errorf("failed to list pulsar clusters: %v", err) + } + defer clustersBody.Body.Close() + var cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + for _, c := range clusters.Items { + if *c.Metadata.Name == name { + cluster = c + break + } + } + + if cluster.Metadata == nil { + return nil, fmt.Errorf("failed to find pulsar cluster: %s", name) + } + + if cluster.Metadata != nil && len(cluster.Metadata.ManagedFields) > 0 { + cluster.Metadata.ManagedFields = nil + } + + context, err := json.Marshal(cluster) + if err != nil { + return nil, fmt.Errorf("failed to marshal cluster: %v", err) + } + + var messages = make( + []mcp.PromptMessage, + 1, + ) + + messages[0] = mcp.PromptMessage{ + Content: mcp.TextContent{ + Type: "text", + Text: string(context), + }, + Role: mcp.RoleUser, + } + + return &mcp.GetPromptResult{ + Description: fmt.Sprintf("Detailed information of Pulsar cluster %s, you can use `streamnative_cloud_context_use_cluster` tool to switch to this cluster, and use pulsar and kafka tools to interact with the cluster.", name), + Messages: messages, + }, nil +} diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go new file mode 100644 index 0000000..d22a101 --- /dev/null +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -0,0 +1,186 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddBrokerStatsTools adds broker-stats related tools to the MCP server +func PulsarAdminAddBrokerStatsTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminBrokersStatus)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + // Unified broker stats tool + brokerStatsTool := mcp.NewTool("pulsar_admin_broker_stats", + mcp.WithDescription("Unified tool for retrieving Apache Pulsar broker statistics.\n"+ + "This tool provides access to various broker stats resources, including:\n"+ + "1. Monitoring metrics (resource=monitoring_metrics): Metrics for the broker's monitoring system\n"+ + "2. MBean stats (resource=mbeans): JVM MBeans statistics\n"+ + "3. Topics stats (resource=topics): Statistics about all topics managed by the broker\n"+ + "4. Allocator stats (resource=allocator_stats): Memory allocator statistics for specific allocator\n"+ + "5. Load report (resource=load_report): Broker load information, sometimes the load report is not available, so suggest to use other resources to get the broker metrics\n\n"+ + "Example: {\"resource\": \"monitoring_metrics\"} retrieves all monitoring metrics\n"+ + "Example: {\"resource\": \"allocator_stats\", \"allocator_name\": \"default\"} retrieves stats for the default allocator\n"+ + "This tool requires Pulsar super-user permissions."), + mcp.WithString("resource", mcp.Required(), + mcp.Description("Type of broker stats resource to access, available options:\n"+ + "- monitoring_metrics: Metrics for the broker's monitoring system\n"+ + "- mbeans: JVM MBeans statistics\n"+ + "- topics: Statistics about all topics managed by the broker\n"+ + "- allocator_stats: Memory allocator statistics (requires allocator_name parameter)\n"+ + "- load_report: Broker load information"), + ), + mcp.WithString("allocator_name", + mcp.Description("The name of the allocator to get statistics for. Required only when resource=allocator_stats"), + ), + ) + s.AddTool(brokerStatsTool, handleBrokerStats(readOnly)) +} + +// handleBrokerStats returns a function to handle broker stats requests +func handleBrokerStats(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get required resource parameter + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + + "Please specify one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.")), nil + } + + // Process request based on resource type + switch resource { + case "monitoring_metrics": + return handleMonitoringMetrics(client) + case "mbeans": + return handleMBeans(client) + case "topics": + return handleTopics(client) + case "allocator_stats": + allocatorName, err := requiredParam[string](request.Params.Arguments, "allocator_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'allocator_name' for allocator_stats resource. " + + "Please provide the name of the allocator to get statistics for.")), nil + } + return handleAllocatorStats(client, allocatorName) + case "load_report": + return handleLoadReport(client) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.", resource)), nil + } + } +} + +// handleMonitoringMetrics handles retrieving monitoring metrics +func handleMonitoringMetrics(client cmdutils.Client) (*mcp.CallToolResult, error) { + // Get monitoring metrics + metrics, err := client.BrokerStats().GetMetrics() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get monitoring metrics: %v", err)), nil + } + + // Convert result to JSON string + metricsJSON, err := json.Marshal(metrics) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize monitoring metrics: %v", err)), nil + } + + return mcp.NewToolResultText(string(metricsJSON)), nil +} + +// handleMBeans handles retrieving mbean stats +func handleMBeans(client cmdutils.Client) (*mcp.CallToolResult, error) { + // Get mbean stats + mbeans, err := client.BrokerStats().GetMBeans() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get mbean stats: %v", err)), nil + } + + // Convert result to JSON string + mbeansJSON, err := json.Marshal(mbeans) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize mbean stats: %v", err)), nil + } + + return mcp.NewToolResultText(string(mbeansJSON)), nil +} + +// handleTopics handles retrieving topics stats +func handleTopics(client cmdutils.Client) (*mcp.CallToolResult, error) { + // Get topics stats + topics, err := client.BrokerStats().GetTopics() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topics stats: %v", err)), nil + } + + // Convert result to JSON string + topicsJSON, err := json.Marshal(topics) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize topics stats: %v", err)), nil + } + + return mcp.NewToolResultText(string(topicsJSON)), nil +} + +// handleAllocatorStats handles retrieving allocator stats +func handleAllocatorStats(client cmdutils.Client, allocatorName string) (*mcp.CallToolResult, error) { + // Get allocator stats + stats, err := client.BrokerStats().GetAllocatorStats(allocatorName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get allocator stats: %v", err)), nil + } + + // Convert result to JSON string + statsJSON, err := json.Marshal(stats) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize allocator stats: %v", err)), nil + } + + return mcp.NewToolResultText(string(statsJSON)), nil +} + +// handleLoadReport handles retrieving broker load report +func handleLoadReport(client cmdutils.Client) (*mcp.CallToolResult, error) { + // Get load report + loadReport, err := client.BrokerStats().GetLoadReport() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get broker load report: %v", err)), nil + } + + // Convert result to JSON string + loadReportJSON, err := json.Marshal(loadReport) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize broker load report: %v", err)), nil + } + + return mcp.NewToolResultText(string(loadReportJSON)), nil +} diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go new file mode 100644 index 0000000..7b177fe --- /dev/null +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -0,0 +1,320 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddBrokersTools adds broker-related tools to the MCP server +func PulsarAdminAddBrokersTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminBrokers)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + // Create a single unified broker tool to replace multiple individual tools + brokersTool := mcp.NewTool("pulsar_admin_brokers", + mcp.WithDescription("Unified tool for managing Apache Pulsar broker resources. This tool integrates multiple broker management functions, including:\n"+ + "1. List active brokers in a cluster (resource=brokers, operation=list)\n"+ + "2. Check broker health status (resource=health, operation=get)\n"+ + "3. Manage broker configurations (resource=config, operation=get/update/delete)\n"+ + "4. View namespaces owned by a broker (resource=namespaces, operation=get)\n\n"+ + "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n"+ + "Example: {\"resource\": \"config\", \"operation\": \"get\", \"configType\": \"dynamic\"} retrieves all dynamic configuration names.\n"+ + "This tool requires Pulsar super-user permissions."), + mcp.WithString("resource", mcp.Required(), + mcp.Description("Type of resource to access, available options:\n"+ + "- brokers: Manage broker listings\n"+ + "- health: Check broker health status\n"+ + "- config: Manage broker configurations\n"+ + "- namespaces: Manage namespaces owned by a broker"), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description("Operation to perform, available options:\n"+ + "- list: List resources (used with brokers)\n"+ + "- get: Retrieve resource information (used with health, config, namespaces)\n"+ + "- update: Update a resource (used with config)\n"+ + "- delete: Delete a resource (used with config)"), + ), + mcp.WithString("clusterName", + mcp.Description("Pulsar cluster name, required for these operations:\n"+ + "- When resource=brokers, operation=list\n"+ + "- When resource=namespaces, operation=get"), + ), + mcp.WithString("brokerUrl", + mcp.Description("Broker URL, such as '127.0.0.1:8080', required for these operations:\n"+ + "- When resource=namespaces, operation=get"), + ), + mcp.WithString("configType", + mcp.Description("Configuration type, required when resource=config, operation=get, available options:\n"+ + "- dynamic: Get list of dynamically modifiable configuration names\n"+ + "- runtime: Get all runtime configurations (including static and dynamic configs)\n"+ + "- internal: Get internal configuration information\n"+ + "- all_dynamic: Get all dynamic configurations and their current values"), + ), + mcp.WithString("configName", + mcp.Description("Configuration parameter name, required for these operations:\n"+ + "- When resource=config, operation=update\n"+ + "- When resource=config, operation=delete"), + ), + mcp.WithString("configValue", + mcp.Description("Configuration parameter value, required for these operations:\n"+ + "- When resource=config, operation=update"), + ), + ) + s.AddTool(brokersTool, handleBrokerTool(readOnly)) +} + +// Return a handler function, with readOnly state captured in closure +func handleBrokerTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + + "Please specify one of: brokers, health, config, namespaces.")), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + + "Please specify one of: list, get, update, delete based on the resource type.")), nil + } + + // Validate if the parameter combination is valid + validCombination, errMsg := validateResourceOperation(resource, operation) + if !validCombination { + return mcp.NewToolResultError(errMsg), nil + } + + // Process request based on resource type + switch resource { + case "brokers": + return handleBrokersResource(client, operation, request) + case "health": + return handleHealthResource(client, operation, request) + case "config": + // Check write operation permissions + if (operation == "update" || operation == "delete") && readOnly { + return mcp.NewToolResultError("Configuration update/delete operations not allowed in read-only mode. " + + "Please contact your administrator if you need to modify broker configurations."), nil + } + return handleConfigResource(client, operation, request) + case "namespaces": + return handleNamespacesResource(client, operation, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: brokers, health, config, namespaces.", resource)), nil + } + } +} + +// Validate if the resource and operation combination is valid +func validateResourceOperation(resource, operation string) (bool, string) { + validCombinations := map[string][]string{ + "brokers": {"list"}, + "health": {"get"}, + "config": {"get", "update", "delete"}, + "namespaces": {"get"}, + } + + if operations, ok := validCombinations[resource]; ok { + for _, op := range operations { + if op == operation { + return true, "" + } + } + return false, fmt.Sprintf("Invalid operation '%s' for resource '%s'. Valid operations are: %v", + operation, resource, validCombinations[resource]) + } + + return false, fmt.Sprintf("Invalid resource '%s'. Valid resources are: brokers, health, config, namespaces", resource) +} + +// Handle brokers resource +func handleBrokersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + clusterName, err := requiredParam[string](request.Params.Arguments, "clusterName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + + "Please provide the name of the Pulsar cluster to list brokers for.")), nil + } + + brokers, err := client.Brokers().GetActiveBrokers(clusterName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get active brokers: %v. "+ + "Please verify the cluster name and ensure the Pulsar service is running.", err)), nil + } + + brokersJSON, err := json.Marshal(brokers) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers list: %v", err)), nil + } + + return mcp.NewToolResultText(string(brokersJSON)), nil + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for brokers resource. "+ + "The only supported operation is 'list'.", operation)), nil + } +} + +// Handle health resource +func handleHealthResource(client cmdutils.Client, operation string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + //nolint:staticcheck + err := client.Brokers().HealthCheck() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Broker health check failed: %v. "+ + "The broker might be down or experiencing issues.", err)), nil + } + return mcp.NewToolResultText("ok"), nil + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for health resource. "+ + "The only supported operation is 'get'.", operation)), nil + } +} + +// Handle config resource +func handleConfigResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + configType, err := requiredParam[string](request.Params.Arguments, "configType") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configType'. " + + "Please specify one of: dynamic, runtime, internal, all_dynamic.")), nil + } + + var result interface{} + var fetchErr error + + switch configType { + case "dynamic": + result, fetchErr = client.Brokers().GetDynamicConfigurationNames() + case "runtime": + result, fetchErr = client.Brokers().GetRuntimeConfigurations() + case "internal": + result, fetchErr = client.Brokers().GetInternalConfigurationData() + case "all_dynamic": + result, fetchErr = client.Brokers().GetAllDynamicConfigurations() + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid config type: '%s'. "+ + "Valid types are: dynamic, runtime, internal, all_dynamic.", configType)), nil + } + + if fetchErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get %s configuration: %v", configType, fetchErr)), nil + } + + resultJSON, err := json.Marshal(result) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize configuration: %v", err)), nil + } + + return mcp.NewToolResultText(string(resultJSON)), nil + + case "update": + configName, err := requiredParam[string](request.Params.Arguments, "configName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + + "Please provide the name of the configuration parameter to update.")), nil + } + + configValue, err := requiredParam[string](request.Params.Arguments, "configValue") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configValue'. " + + "Please provide the new value for the configuration parameter.")), nil + } + + err = client.Brokers().UpdateDynamicConfiguration(configName, configValue) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update configuration: %v. "+ + "Please verify the configuration name is valid and the value is of the correct type.", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' updated successfully to '%s'", + configName, configValue)), nil + + case "delete": + configName, err := requiredParam[string](request.Params.Arguments, "configName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + + "Please provide the name of the configuration parameter to delete.")), nil + } + + err = client.Brokers().DeleteDynamicConfiguration(configName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete configuration: %v. "+ + "Please verify the configuration name is valid and exists.", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' deleted successfully", configName)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for config resource. "+ + "Supported operations are: get, update, delete.", operation)), nil + } +} + +// Handle namespaces resource +func handleNamespacesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + clusterName, err := requiredParam[string](request.Params.Arguments, "clusterName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + + "Please provide the name of the Pulsar cluster.")), nil + } + + brokerURL, err := requiredParam[string](request.Params.Arguments, "brokerUrl") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokerUrl'. " + + "Please provide the URL of the broker (e.g., '127.0.0.1:8080').")), nil + } + + namespaces, err := client.Brokers().GetOwnedNamespaces(clusterName, brokerURL) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get owned namespaces: %v. "+ + "Please verify the cluster name and broker URL are correct.", err)), nil + } + + namespacesJSON, err := json.Marshal(namespaces) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespaces: %v", err)), nil + } + + return mcp.NewToolResultText(string(namespacesJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for namespaces resource. "+ + "The only supported operation is 'get'.", operation)), nil + } +} diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go new file mode 100644 index 0000000..9ab06a6 --- /dev/null +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -0,0 +1,511 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddClusterTools adds cluster-related tools to the MCP server +func PulsarAdminAddClusterTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminClusters)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + // Create a single unified cluster tool + clusterTool := mcp.NewTool("pulsar_admin_cluster", + mcp.WithDescription("Unified tool for managing Apache Pulsar clusters.\n"+ + "This tool provides access to various cluster resources and operations, including:\n"+ + "1. Manage clusters (resource=cluster): List, get, create, update, delete clusters\n"+ + "2. Manage peer clusters (resource=peer_clusters): Get, update peer clusters\n"+ + "3. Manage failure domains (resource=failure_domain): List, get, create, update, delete failure domains\n\n"+ + "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n\n"+ + "Examples:\n"+ + "- {\"resource\": \"cluster\", \"operation\": \"list\"} lists all clusters\n"+ + "- {\"resource\": \"cluster\", \"operation\": \"get\", \"cluster_name\": \"my-cluster\"} gets cluster configuration\n"+ + "- {\"resource\": \"failure_domain\", \"operation\": \"list\", \"cluster_name\": \"my-cluster\"} lists failure domains\n"+ + "This tool requires Pulsar super-user permissions."), + mcp.WithString("resource", mcp.Required(), + mcp.Description("Type of cluster resource to access, available options:\n"+ + "- cluster: Pulsar cluster configuration\n"+ + "- peer_clusters: Peer clusters for geo-replication\n"+ + "- failure_domain: Failure domains for fault tolerance"), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description("Operation to perform, available options (depend on resource):\n"+ + "- list: List resources (used with cluster, failure_domain)\n"+ + "- get: Retrieve resource information (used with cluster, peer_clusters, failure_domain)\n"+ + "- create: Create a new resource (used with cluster, failure_domain)\n"+ + "- update: Update an existing resource (used with cluster, peer_clusters, failure_domain)\n"+ + "- delete: Delete a resource (used with cluster, failure_domain)"), + ), + mcp.WithString("cluster_name", + mcp.Description("Name of the Pulsar cluster, required for all operations except 'list' with resource=cluster"), + ), + mcp.WithString("domain_name", + mcp.Description("Name of the failure domain, required when resource=failure_domain and operation is get, create, update, or delete"), + ), + mcp.WithString("service_url", + mcp.Description("Pulsar cluster web service URL (e.g., http://example.pulsar.io:8080), used when resource=cluster and operation is create or update"), + ), + mcp.WithString("service_url_tls", + mcp.Description("Pulsar cluster TLS secured web service URL (e.g., https://example.pulsar.io:8443), used when resource=cluster and operation is create or update"), + ), + mcp.WithString("broker_service_url", + mcp.Description("Pulsar cluster broker service URL (e.g., pulsar://example.pulsar.io:6650), used when resource=cluster and operation is create or update"), + ), + mcp.WithString("broker_service_url_tls", + mcp.Description("Pulsar cluster TLS secured broker service URL (e.g., pulsar+ssl://example.pulsar.io:6651), used when resource=cluster and operation is create or update"), + ), + mcp.WithArray("peer_cluster_names", + mcp.Description("List of clusters to be registered as peer-clusters, used when:\n"+ + "- resource=cluster and operation is create or update\n"+ + "- resource=peer_clusters and operation is update"), + ), + mcp.WithArray("brokers", + mcp.Description("List of broker names to include in a failure domain, required when resource=failure_domain and operation is create or update"), + ), + ) + s.AddTool(clusterTool, handleClusterTool(readOnly)) +} + +// handleClusterTool returns a function to handle cluster tool requests +func handleClusterTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + + "Please specify one of: cluster, peer_clusters, failure_domain.")), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + + "Please specify one of: list, get, create, update, delete based on the resource type.")), nil + } + + // Validate if the parameter combination is valid + validCombination, errMsg := validateClusterResourceOperation(resource, operation) + if !validCombination { + return mcp.NewToolResultError(errMsg), nil + } + + // Check write operation permissions + if (operation == "create" || operation == "update" || operation == "delete") && readOnly { + return mcp.NewToolResultError("Create/update/delete operations not allowed in read-only mode. " + + "Please contact your administrator if you need to modify cluster resources."), nil + } + + // Process request based on resource type + switch resource { + case "cluster": + return handleClusterResource(client, operation, request) + case "peer_clusters": + return handlePeerClustersResource(client, operation, request) + case "failure_domain": + return handleFailureDomainResource(client, operation, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: cluster, peer_clusters, failure_domain.", resource)), nil + } + } +} + +// Validate if the resource and operation combination is valid +func validateClusterResourceOperation(resource, operation string) (bool, string) { + validCombinations := map[string][]string{ + "cluster": {"list", "get", "create", "update", "delete"}, + "peer_clusters": {"get", "update"}, + "failure_domain": {"list", "get", "create", "update", "delete"}, + } + + if operations, ok := validCombinations[resource]; ok { + for _, op := range operations { + if op == operation { + return true, "" + } + } + return false, fmt.Sprintf("Invalid operation '%s' for resource '%s'. Valid operations are: %v", + operation, resource, validCombinations[resource]) + } + + return false, fmt.Sprintf("Invalid resource '%s'. Valid resources are: cluster, peer_clusters, failure_domain", resource) +} + +// Handle cluster resource operations +func handleClusterResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + return handleClusterList(client) + case "get": + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to get information for.")), nil + } + return getClusterData(client, clusterName) + case "create": + return createCluster(client, request) + case "update": + return updateCluster(client, request) + case "delete": + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to delete.")), nil + } + return deleteCluster(client, clusterName) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for cluster resource. "+ + "Supported operations are: list, get, create, update, delete.", operation)), nil + } +} + +// Handle peer_clusters resource operations +func handlePeerClustersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to operate on.")), nil + } + + switch operation { + case "get": + return getPeerClusters(client, clusterName) + case "update": + peerClusters, err := requiredParamArray[string](request.Params.Arguments, "peer_cluster_names") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'peer_cluster_names'. " + + "Please provide an array of peer cluster names to set.")), nil + } + return updatePeerClusters(client, clusterName, peerClusters) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for peer_clusters resource. "+ + "Supported operations are: get, update.", operation)), nil + } +} + +// Handle failure_domain resource operations +func handleFailureDomainResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to operate on.")), nil + } + + switch operation { + case "list": + return listFailureDomains(client, clusterName) + case "get": + domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain to get.")), nil + } + return getFailureDomain(client, clusterName, domainName) + case "create": + return createFailureDomain(client, request) + case "update": + return updateFailureDomain(client, request) + case "delete": + domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain to delete.")), nil + } + return deleteFailureDomain(client, clusterName, domainName) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for failure_domain resource. "+ + "Supported operations are: list, get, create, update, delete.", operation)), nil + } +} + +// handleClusterList handles listing all clusters +func handleClusterList(client cmdutils.Client) (*mcp.CallToolResult, error) { + // Get cluster list + clusters, err := client.Clusters().List() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster list: %v", err)), nil + } + + // Convert result to JSON string + clustersJSON, err := json.Marshal(clusters) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize cluster list: %v", err)), nil + } + + return mcp.NewToolResultText(string(clustersJSON)), nil +} + +// getClusterData gets the cluster data +func getClusterData(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + clusterData, err := client.Clusters().Get(clusterName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster data: %v", err)), nil + } + + // Convert result to JSON string + clusterDataJSON, err := json.Marshal(clusterData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize cluster data: %v", err)), nil + } + + return mcp.NewToolResultText(string(clusterDataJSON)), nil +} + +// createCluster creates a new Pulsar cluster +func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to create.")), nil + } + + clusterData := utils.ClusterData{ + Name: clusterName, + } + + // Set optional parameters if provided + if serviceURL, ok := optionalParam[string](request.Params.Arguments, "service_url"); ok { + clusterData.ServiceURL = serviceURL + } + if serviceURLTls, ok := optionalParam[string](request.Params.Arguments, "service_url_tls"); ok { + clusterData.ServiceURLTls = serviceURLTls + } + if brokerServiceURL, ok := optionalParam[string](request.Params.Arguments, "broker_service_url"); ok { + clusterData.BrokerServiceURL = brokerServiceURL + } + if brokerServiceURLTls, ok := optionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { + clusterData.BrokerServiceURLTls = brokerServiceURLTls + } + if peerClusters, ok := optionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { + clusterData.PeerClusterNames = peerClusters + } + + err = client.Clusters().Create(clusterData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create cluster: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Cluster %s created successfully", clusterName)), nil +} + +// updateCluster updates an existing Pulsar cluster +func updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to update.")), nil + } + + clusterData := utils.ClusterData{ + Name: clusterName, + } + + // Set optional parameters if provided + if serviceURL, ok := optionalParam[string](request.Params.Arguments, "service_url"); ok { + clusterData.ServiceURL = serviceURL + } + if serviceURLTls, ok := optionalParam[string](request.Params.Arguments, "service_url_tls"); ok { + clusterData.ServiceURLTls = serviceURLTls + } + if brokerServiceURL, ok := optionalParam[string](request.Params.Arguments, "broker_service_url"); ok { + clusterData.BrokerServiceURL = brokerServiceURL + } + if brokerServiceURLTls, ok := optionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { + clusterData.BrokerServiceURLTls = brokerServiceURLTls + } + if peerClusters, ok := optionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { + clusterData.PeerClusterNames = peerClusters + } + + err = client.Clusters().Update(clusterData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update cluster: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Cluster %s updated successfully", clusterName)), nil +} + +// deleteCluster deletes an existing Pulsar cluster +func deleteCluster(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + err := client.Clusters().Delete(clusterName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete cluster: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Cluster %s deleted successfully", clusterName)), nil +} + +// getPeerClusters gets the peer clusters for a specified cluster +func getPeerClusters(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + peerClusters, err := client.Clusters().GetPeerClusters(clusterName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get peer clusters: %v", err)), nil + } + + // Convert result to JSON string + peerClustersJSON, err := json.Marshal(peerClusters) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize peer clusters: %v", err)), nil + } + + return mcp.NewToolResultText(string(peerClustersJSON)), nil +} + +// updatePeerClusters updates the peer clusters for a specified cluster +func updatePeerClusters(client cmdutils.Client, clusterName string, peerClusters []string) (*mcp.CallToolResult, error) { + err := client.Clusters().UpdatePeerClusters(clusterName, peerClusters) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update peer clusters: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Peer clusters for %s updated successfully", clusterName)), nil +} + +// getFailureDomain gets the configuration of a specific failure domain +func getFailureDomain(client cmdutils.Client, clusterName string, domainName string) (*mcp.CallToolResult, error) { + failureDomain, err := client.Clusters().GetFailureDomain(clusterName, domainName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get failure domain: %v", err)), nil + } + + // Convert result to JSON string + failureDomainJSON, err := json.Marshal(failureDomain) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize failure domain: %v", err)), nil + } + + return mcp.NewToolResultText(string(failureDomainJSON)), nil +} + +// listFailureDomains gets the list of failure domains for a specified cluster +func listFailureDomains(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + failureDomains, err := client.Clusters().ListFailureDomains(clusterName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list failure domains: %v", err)), nil + } + + // Convert result to JSON string + failureDomainsJSON, err := json.Marshal(failureDomains) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize failure domains: %v", err)), nil + } + + return mcp.NewToolResultText(string(failureDomainsJSON)), nil +} + +// createFailureDomain creates a new failure domain in the specified cluster +func createFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster.")), nil + } + + domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain to create.")), nil + } + + brokers, err := requiredParamArray[string](request.Params.Arguments, "brokers") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + + "Please provide an array of broker names to include in this failure domain.")), nil + } + + failureDomain := utils.FailureDomainData{ + ClusterName: clusterName, + DomainName: domainName, + BrokerList: brokers, + } + + err = client.Clusters().CreateFailureDomain(failureDomain) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create failure domain: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Failure domain %s created successfully in cluster %s", domainName, clusterName)), nil +} + +// updateFailureDomain updates an existing failure domain in the specified cluster +func updateFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster.")), nil + } + + domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain to update.")), nil + } + + brokers, err := requiredParamArray[string](request.Params.Arguments, "brokers") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + + "Please provide an array of broker names to include in this failure domain.")), nil + } + + failureDomain := utils.FailureDomainData{ + ClusterName: clusterName, + DomainName: domainName, + BrokerList: brokers, + } + + err = client.Clusters().UpdateFailureDomain(failureDomain) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update failure domain: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Failure domain %s updated successfully in cluster %s", domainName, clusterName), + ), nil +} + +// deleteFailureDomain deletes a failure domain from the specified cluster +func deleteFailureDomain(client cmdutils.Client, clusterName string, domainName string) (*mcp.CallToolResult, error) { + failureDomain := utils.FailureDomainData{ + ClusterName: clusterName, + DomainName: domainName, + } + + err := client.Clusters().DeleteFailureDomain(failureDomain) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete failure domain: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf( + "Failure domain %s deleted successfully from cluster %s", domainName, clusterName)), nil +} diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go new file mode 100644 index 0000000..e886d7a --- /dev/null +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -0,0 +1,588 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" +) + +// PulsarAdminAddFunctionsTools adds a unified function-related tool to the MCP server +func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminFunctions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + // Create a single unified tool for all function operations + toolDesc := "Manage Apache Pulsar Functions for stream processing. " + + "Pulsar Functions are lightweight compute processes that can consume messages from one or more Pulsar topics, " + + "apply user-defined processing logic, and produce results to another topic. " + + "Functions support Java, Python, and Go runtimes, enabling complex event processing, " + + "data transformations, filtering, and integration with external systems. " + + "Functions follow the tenant/namespace/name hierarchy for organization, " + + "can maintain state, and can scale through parallelism configuration. " + + "This tool provides complete lifecycle management including deployment, monitoring, scaling, " + + "state management, and triggering. Functions require proper permissions to access their topics." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all functions under a specific tenant and namespace\n" + + "- get: Get the configuration of a function\n" + + "- status: Get the runtime status of a function (instances, metrics)\n" + + "- stats: Get detailed statistics of a function (throughput, processing latency)\n" + + "- querystate: Query state stored by a stateful function for a specific key\n" + + "- create: Deploy a new function with specified parameters\n" + + "- update: Update the configuration of an existing function\n" + + "- delete: Delete a function\n" + + "- start: Start a stopped function\n" + + "- stop: Stop a running function\n" + + "- restart: Restart a function\n" + + "- putstate: Store state in a function's state store\n" + + "- trigger: Manually trigger a function with a specific value" + + functionsTool := mcp.NewTool("pulsar_admin_functions", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc)), + mcp.WithString("tenant", mcp.Required(), + mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ + "providing multi-tenancy and resource isolation. Functions deployed within a tenant "+ + "inherit its permissions and resource quotas.")), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name. Namespaces are logical groupings of topics and functions "+ + "within a tenant. They encapsulate configuration policies and access control. "+ + "Functions in a namespace typically process topics within the same namespace.")), + mcp.WithString("name", + mcp.Description("The function name. Required for all operations except 'list'. "+ + "Names should be descriptive of the function's purpose and must be unique within a namespace. "+ + "Function names are used in metrics, logs, and when addressing the function via APIs.")), + // Additional parameters for specific operations + mcp.WithString("classname", + mcp.Description("The fully qualified class name implementing the function. Required for 'create' operation, optional for 'update'. "+ + "For Java functions, this should be the class that implements pulsar function interfaces. "+ + "For Python, this MUST be in format of `.` - for example: "+ + "if file is '/path/to/exclamation.py' with class 'ExclamationFunction', classname must be 'exclamation.ExclamationFunction'; "+ + "if file is '/path/to/double_number.py' with class 'DoubleNumber', classname must be 'double_number.DoubleNumber'. "+ + "Common error: using just the class name 'DoubleNumber' (without filename prefix) will cause function creation to fail. "+ + "Go functions should specify the 'main' function of the binary.")), + mcp.WithArray("inputs", + mcp.Description("The input topics for the function (array of strings). Optional for 'create' and 'update' operations. "+ + "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ + "Functions can consume from multiple topics, each with potentially different serialization types. "+ + "All input topics should exist before the function is created.")), + mcp.WithString("output", + mcp.Description("The output topic for the function results. Optional for 'create' and 'update' operations. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "If not set, the function will not produce any output to topics. "+ + "The output topic will be automatically created if it doesn't exist.")), + mcp.WithString("jar", + mcp.Description("Path to the JAR file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Java functions, this should contain all dependencies for the function. "+ + "The jar file must be compatible with the Pulsar Functions API.")), + mcp.WithString("py", + mcp.Description("Path to the Python file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Python functions, this should be the file path to the Python file, in format of `.py`, `.zip`, or `.whl`. "+ + "The Python file must be compatible with the Pulsar Functions API.")), + mcp.WithString("go", + mcp.Description("Path to the Go file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Go functions, this should be the file path to the Go file, in format of executable binary. "+ + "The Go file must be compatible with the Pulsar Functions API.")), + mcp.WithNumber("parallelism", + mcp.Description("The parallelism factor of the function. Optional for 'create' and 'update' operations. "+ + "Determines how many instances of the function will run concurrently. "+ + "Higher values improve throughput but require more resources. "+ + "For stateful functions, consider how parallelism affects state consistency. "+ + "Default is 1 (single instance).")), + mcp.WithObject("userConfig", + mcp.Description("User-defined config key/values. Optional for 'create' and 'update' operations. "+ + "Provides configuration parameters accessible to the function at runtime. "+ + "Specify as a JSON object with string, number, or boolean values. "+ + "Common configs include connection parameters, batch sizes, or feature toggles. "+ + "Example: {\"maxBatchSize\": 100, \"connectionString\": \"host:port\", \"debugMode\": true}")), + mcp.WithString("key", + mcp.Description("The state key. Required for 'querystate' and 'putstate' operations. "+ + "Keys are used to identify values in the function's state store. "+ + "They should be reasonable in length and follow a consistent pattern. "+ + "State keys are typically limited to 128 characters.")), + mcp.WithString("value", + mcp.Description("The state value. Required for 'putstate' operation. "+ + "Values are stored in the function's state system. "+ + "For simple values, specify as a string. For complex objects, use JSON-serialized strings. "+ + "State values are typically limited to 1MB in size.")), + mcp.WithString("topic", + mcp.Description("The specific topic name that the function should consume from. Optional for 'trigger' operation. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "Used when triggering a function that consumes from multiple topics. "+ + "If not provided, the first input topic will be used.")), + mcp.WithString("triggerValue", + mcp.Description("The value with which to trigger the function. Optional for 'trigger' operation. "+ + "This value will be passed to the function as if it were a message from the input topic. "+ + "String values are sent as is; for typed values, ensure proper formatting based on function expectations. "+ + "The function processes this value just like a normal message.")), + ) + + // Add the tool with the handler that captures readOnly state + s.AddTool(functionsTool, handleFunctionsTool(readOnly)) +} + +// handleFunctionsTool returns a handler function for the unified functions tool +func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client with API version V3 + client := cmdutils.NewPulsarClientWithAPIVersion(config.V3) + + // Extract and validate operation parameter + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil + } + + // Check if the operation is valid + validOperations := map[string]bool{ + "list": true, "get": true, "status": true, "stats": true, "querystate": true, + "create": true, "update": true, "delete": true, "start": true, "stop": true, + "restart": true, "putstate": true, "trigger": true, + } + + if !validOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, stats, querystate, create, update, delete, start, stop, restart, putstate, trigger", operation)), nil + } + + // Check write permissions for write operations + writeOperations := map[string]bool{ + "create": true, "update": true, "delete": true, "start": true, + "stop": true, "restart": true, "putstate": true, "trigger": true, + } + + if readOnly && writeOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Functions.", operation)), nil + } + + // Extract common parameters + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations.", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations.", err)), nil + } + + // For all operations except 'list', name is required + var name string + if operation != "list" { + name, err = requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation.", operation, err)), nil + } + } + + // Handle operation + switch operation { + case "list": + return handleFunctionList(ctx, client, tenant, namespace) + case "get": + return handleFunctionGet(ctx, client, tenant, namespace, name) + case "status": + return handleFunctionStatus(ctx, client, tenant, namespace, name) + case "stats": + return handleFunctionStats(ctx, client, tenant, namespace, name) + case "querystate": + key, err := requiredParam[string](request.Params.Arguments, "key") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store.", err)), nil + } + return handleFunctionQuerystate(ctx, client, tenant, namespace, name, key) + case "create": + return handleFunctionCreate(ctx, client, tenant, namespace, name, request.Params.Arguments) + case "update": + return handleFunctionUpdate(ctx, client, tenant, namespace, name, request.Params.Arguments) + case "delete": + return handleFunctionDelete(ctx, client, tenant, namespace, name) + case "start": + return handleFunctionStart(ctx, client, tenant, namespace, name) + case "stop": + return handleFunctionStop(ctx, client, tenant, namespace, name) + case "restart": + return handleFunctionRestart(ctx, client, tenant, namespace, name) + case "putstate": + key, err := requiredParam[string](request.Params.Arguments, "key") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store.", err)), nil + } + value, err := requiredParam[string](request.Params.Arguments, "value") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store.", err)), nil + } + return handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) + case "trigger": + topic, _ := optionalParam[string](request.Params.Arguments, "topic") + triggerValue, _ := optionalParam[string](request.Params.Arguments, "triggerValue") + return handleFunctionTrigger(ctx, client, tenant, namespace, name, topic, triggerValue) + default: + // This should never happen due to the valid operations check above + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + } + } +} + +// handleFunctionList handles listing all functions under a namespace +func handleFunctionList(_ context.Context, client cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { + // Get function list + functions, err := client.Functions().GetFunctions(tenant, namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list functions in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", + tenant, namespace, err)), nil + } + + // Convert result to JSON string + functionsJSON, err := json.Marshal(functions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function list: %v", err)), nil + } + + return mcp.NewToolResultText(string(functionsJSON)), nil +} + +// handleFunctionGet handles getting information about a function +func handleFunctionGet(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + // Get function info + functionConfig, err := client.Functions().GetFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and you have proper permissions.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + functionJSON, err := json.Marshal(functionConfig) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function info: %v", err)), nil + } + + return mcp.NewToolResultText(string(functionJSON)), nil +} + +// handleFunctionStatus handles getting the status of a function +func handleFunctionStatus(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + // Get function status + status, err := client.Functions().GetFunctionStatus(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + statusJSON, err := json.Marshal(status) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function status: %v", err)), nil + } + + return mcp.NewToolResultText(string(statusJSON)), nil +} + +// handleFunctionStats handles getting the statistics of a function +func handleFunctionStats(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + // Get function stats + stats, err := client.Functions().GetFunctionStats(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for function '%s' in tenant '%s' namespace '%s': %v. The function must be running to retrieve statistics.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + statsJSON, err := json.Marshal(stats) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function stats: %v", err)), nil + } + + return mcp.NewToolResultText(string(statsJSON)), nil +} + +// handleFunctionQuerystate handles querying the state of a function +func handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key string) (*mcp.CallToolResult, error) { + // Query function state + state, err := client.Functions().GetFunctionState(tenant, namespace, name, key) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to query state for function '%s' in tenant '%s' namespace '%s' with key '%s': %v. Verify the function exists and has state storage enabled.", + name, tenant, namespace, key, err)), nil + } + + // Convert to JSON for display + stateJSON, err := json.Marshal(state) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize state: %v", err)), nil + } + + return mcp.NewToolResultText(string(stateJSON)), nil +} + +// handleFunctionCreate handles creating a new function +func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, arguments map[string]interface{}) (*mcp.CallToolResult, error) { + // Extract required parameters + classname, err := requiredParam[string](arguments, "classname") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get classname (required for function creation): %v. The classname must specify the fully qualified class implementing the function.", err)), nil + } + + // Extract optional parameters + inputTopics, _ := optionalParamArray[string](arguments, "inputs") + output, _ := optionalParam[string](arguments, "output") + jar, _ := optionalParam[string](arguments, "jar") + py, _ := optionalParam[string](arguments, "py") + goPath, _ := optionalParam[string](arguments, "go") + parallelismFloat, _ := optionalParam[float64](arguments, "parallelism") + parallelism := int(parallelismFloat) + + // Get user config if available + var userConfigMap map[string]interface{} + userConfigObj, ok := arguments["userConfig"] + if ok && userConfigObj != nil { + if configMap, isMap := userConfigObj.(map[string]interface{}); isMap { + userConfigMap = configMap + } + } + + // Create function config + functionConfig := &utils.FunctionConfig{ + Tenant: tenant, + Namespace: namespace, + Name: name, + ClassName: classname, + Output: output, + Parallelism: parallelism, + } + + fileName := "" + // Set jar if provided + switch { + case jar != "": + jarPtr := jar + functionConfig.Jar = &jarPtr + fileName = jar + case py != "": + pyPtr := py + functionConfig.Py = &pyPtr + fileName = py + case goPath != "": + goPtr := goPath + functionConfig.Go = &goPtr + fileName = goPath + default: + return mcp.NewToolResultError("No file path provided for function creation. Please provide a valid file path for the function creation operation."), nil + } + + // Set inputs + if len(inputTopics) > 0 { + functionConfig.Inputs = inputTopics + } else { + return mcp.NewToolResultError("At least one input topic should be specified for function creation. Use the 'inputs' parameter with an array of topic names."), nil + } + + // Set user config if available + if userConfigMap != nil { + functionConfig.UserConfig = userConfigMap + } + + // Create function + err = client.Functions().CreateFunc(functionConfig, fileName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created function '%s' successfully in tenant '%s' namespace '%s'. The function will start processing messages from input topics.", + name, tenant, namespace)), nil +} + +// handleFunctionUpdate handles updating an existing function +func handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, arguments map[string]interface{}) (*mcp.CallToolResult, error) { + // Extract optional parameters + classname, _ := optionalParam[string](arguments, "classname") + inputTopics, _ := optionalParamArray[string](arguments, "inputs") + output, _ := optionalParam[string](arguments, "output") + jar, _ := optionalParam[string](arguments, "jar") + py, _ := optionalParam[string](arguments, "py") + goPath, _ := optionalParam[string](arguments, "go") + parallelismFloat, _ := optionalParam[float64](arguments, "parallelism") + parallelism := int(parallelismFloat) + + // Get user config if available + var userConfigMap map[string]interface{} + userConfigObj, ok := arguments["userConfig"] + if ok && userConfigObj != nil { + if configMap, isMap := userConfigObj.(map[string]interface{}); isMap { + userConfigMap = configMap + } + } + + // Create function config + functionConfig := &utils.FunctionConfig{ + Tenant: tenant, + Namespace: namespace, + Name: name, + ClassName: classname, + Output: output, + Parallelism: parallelism, + } + + fileName := "" + // Set jar if provided + switch { + case jar != "": + jarPtr := jar + functionConfig.Jar = &jarPtr + fileName = jar + case py != "": + pyPtr := py + functionConfig.Py = &pyPtr + fileName = py + case goPath != "": + goPtr := goPath + functionConfig.Go = &goPtr + fileName = goPath + default: + return mcp.NewToolResultError("No file path provided for function update. Please provide a valid file path for the function update operation."), nil + } + + // Set inputs + if len(inputTopics) > 0 { + functionConfig.Inputs = inputTopics + } + + // Set user config if available + if userConfigMap != nil { + functionConfig.UserConfig = userConfigMap + } + + // Create update options + updateOptions := &utils.UpdateOptions{ + UpdateAuthData: true, + } + + // Update function + err := client.Functions().UpdateFunction(functionConfig, fileName, updateOptions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and all parameters are valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Updated function '%s' successfully in tenant '%s' namespace '%s'. The function may need to be restarted to apply all changes.", + name, tenant, namespace)), nil +} + +// handleFunctionDelete handles deleting a function +func handleFunctionDelete(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + // Delete function + err := client.Functions().DeleteFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and you have deletion permissions.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted function '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + name, tenant, namespace)), nil +} + +// handleFunctionStart handles starting a function +func handleFunctionStart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + // Start function + err := client.Functions().StartFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to start function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is not already running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Started function '%s' successfully in tenant '%s' namespace '%s'. The function will begin processing messages from its input topics.", + name, tenant, namespace)), nil +} + +// handleFunctionStop handles stopping a function +func handleFunctionStop(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + // Stop function + err := client.Functions().StopFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to stop function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is currently running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Stopped function '%s' successfully in tenant '%s' namespace '%s'. The function will no longer process messages until restarted.", + name, tenant, namespace)), nil +} + +// handleFunctionRestart handles restarting a function +func handleFunctionRestart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + // Restart function + err := client.Functions().RestartFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Restarted function '%s' successfully in tenant '%s' namespace '%s'. All function instances have been restarted.", + name, tenant, namespace)), nil +} + +// handleFunctionPutstate handles putting state into the state store of a function +func handleFunctionPutstate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key, value string) (*mcp.CallToolResult, error) { + // Create function state + state := utils.FunctionState{ + Key: key, + StringValue: value, + } + + // Put function state + err := client.Functions().PutFunctionState(tenant, namespace, name, state) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to put state for function '%s' in tenant '%s' namespace '%s' with key '%s': %v. Verify the function exists and has state storage enabled.", + name, tenant, namespace, key, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Put state for function '%s' with key '%s' successfully in tenant '%s' namespace '%s'. The state is now stored and available to the function instances.", + name, key, tenant, namespace)), nil +} + +// handleFunctionTrigger handles triggering a function +func handleFunctionTrigger(_ context.Context, client cmdutils.Client, tenant, namespace, name, topic, triggerValue string) (*mcp.CallToolResult, error) { + // Trigger function + result, err := client.Functions().TriggerFunction(tenant, namespace, name, topic, triggerValue, "") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", + name, tenant, namespace, err)), nil + } + + if result == "" { + return mcp.NewToolResultText(fmt.Sprintf("Triggered function '%s' successfully in tenant '%s' namespace '%s', but it did not return any output. The function was executed with the provided value.", + name, tenant, namespace)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Triggered function '%s' successfully in tenant '%s' namespace '%s'. Function output: %s", + name, tenant, namespace, result)), nil +} diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go new file mode 100644 index 0000000..ea4c8d2 --- /dev/null +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -0,0 +1,177 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddFunctionsWorkerTools adds functions worker-related tools to the MCP server +func PulsarAdminAddFunctionsWorkerTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminFunctionsWorker)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + // Create a single unified functions worker tool + functionsWorkerTool := mcp.NewTool("pulsar_admin_functions_worker", + mcp.WithDescription("Unified tool for managing Apache Pulsar Functions Worker resources.\n"+ + "This tool provides access to various functions worker resources, including:\n"+ + "1. Function statistics (resource=function_stats): Get statistics for all functions running on this functions worker\n"+ + "2. Monitoring metrics (resource=monitoring_metrics): Get metrics for monitoring function workers\n"+ + "3. Cluster information (resource=cluster): Get information about the function worker cluster\n"+ + "4. Cluster leader (resource=cluster_leader): Get the leader of the worker cluster\n"+ + "5. Function assignments (resource=function_assignments): Get the assignments of functions across the worker cluster\n\n"+ + "Examples:\n"+ + "- {\"resource\": \"function_stats\"} returns statistics for all functions\n"+ + "- {\"resource\": \"cluster\"} returns all workers in the cluster\n"+ + "This tool requires Pulsar super-user permissions."), + mcp.WithString("resource", mcp.Required(), + mcp.Description("Type of functions worker resource to access, available options:\n"+ + "- function_stats: Statistics for all functions running on the functions worker\n"+ + "- monitoring_metrics: Metrics for monitoring function workers\n"+ + "- cluster: Information about all workers in the functions worker cluster\n"+ + "- cluster_leader: Information about the leader of the functions worker cluster\n"+ + "- function_assignments: Assignments of functions across the functions worker cluster"), + ), + ) + s.AddTool(functionsWorkerTool, handleFunctionsWorkerTool(readOnly)) +} + +// handleFunctionsWorkerTool returns a function to handle functions worker tool requests +func handleFunctionsWorkerTool(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create the admin client + admin := pulsar.AdminClient + + // Get required resource parameter + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + + "Please specify one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments.")), nil + } + + // Process request based on resource type + switch resource { + case "function_stats": + return handleFunctionsWorkerFunctionStats(admin) + case "monitoring_metrics": + return handleFunctionsWorkerMonitoringMetrics(admin) + case "cluster": + return handleFunctionsWorkerGetCluster(admin) + case "cluster_leader": + return handleFunctionsWorkerGetClusterLeader(admin) + case "function_assignments": + return handleFunctionsWorkerGetFunctionAssignments(admin) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments.", resource)), nil + } + } +} + +// handleFunctionsWorkerFunctionStats handles retrieving function statistics +func handleFunctionsWorkerFunctionStats(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get function stats + stats, err := admin.FunctionsWorker().GetFunctionsStats() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get functions stats: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(stats) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal functions stats: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleFunctionsWorkerMonitoringMetrics handles retrieving monitoring metrics +func handleFunctionsWorkerMonitoringMetrics(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get monitoring metrics + metrics, err := admin.FunctionsWorker().GetMetrics() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get monitoring metrics: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(metrics) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal monitoring metrics: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleFunctionsWorkerGetCluster handles retrieving cluster information +func handleFunctionsWorkerGetCluster(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get cluster info + cluster, err := admin.FunctionsWorker().GetCluster() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(cluster) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal worker cluster info: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleFunctionsWorkerGetClusterLeader handles retrieving cluster leader information +func handleFunctionsWorkerGetClusterLeader(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get cluster leader + leader, err := admin.FunctionsWorker().GetClusterLeader() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster leader: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(leader) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal worker cluster leader info: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleFunctionsWorkerGetFunctionAssignments handles retrieving function assignments +func handleFunctionsWorkerGetFunctionAssignments(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get function assignments + assignments, err := admin.FunctionsWorker().GetAssignments() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get function assignments: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(assignments) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal function assignments: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go new file mode 100644 index 0000000..16e194f --- /dev/null +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -0,0 +1,1914 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strconv" + "strings" + "time" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + pulsarctlutils "github.com/streamnative/pulsarctl/pkg/ctl/utils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddNamespacePolicyTools adds namespace policy-related tools to the MCP server +func PulsarAdminAddNamespacePolicyTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminNamespacePolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + namespaceGetPoliciesTool := mcp.NewTool("pulsar_admin_namespace_policy_get", + mcp.WithDescription("Get the configuration policies of a namespace. "+ + "Returns a comprehensive view of all policies applied to the namespace. "+ + "The response includes the following fields:"+ + "\n* bundles: Namespace bundle configuration, including boundaries and number of bundles"+ + "\n* persistence: Message persistence configuration"+ + "\n* retention_policies: Message retention policies defining how long messages are retained"+ + "\n* schema_validation_enforced: Whether schema validation is enforced"+ + "\n* deduplicationEnabled: Whether message deduplication is enabled"+ + "\n* deleted: Whether the namespace is marked as deleted"+ + "\n* encryption_required: Whether message encryption is required"+ + "\n* message_ttl_in_seconds: Time-to-live for messages in seconds, after which unacknowledged messages are deleted"+ + "\n* max_producers_per_topic: Maximum number of producers allowed per topic"+ + "\n* max_consumers_per_topic: Maximum number of consumers allowed per topic"+ + "\n* max_consumers_per_subscription: Maximum number of consumers allowed per subscription"+ + "\n* compaction_threshold: Threshold for topic compaction in bytes"+ + "\n* offload_threshold: Threshold for offloading data to tiered storage in bytes"+ + "\n* offload_deletion_lag_ms: Time lag in milliseconds for retaining offloaded data in hot storage"+ + "\n* antiAffinityGroup: Anti-affinity group for distribution across brokers"+ + "\n* replication_clusters: List of clusters to which data is replicated"+ + "\n* latency_stats_sample_rate: Rate at which latency statistics are collected"+ + "\n* backlog_quota_map: Backlog quota settings controlling behavior when quotas are exceeded"+ + "\n* topicDispatchRate: Rate limiting for topic message dispatch"+ + "\n* subscriptionDispatchRate: Rate limiting for subscription message dispatch"+ + "\n* replicatorDispatchRate: Rate limiting for replicator message dispatch"+ + "\n* publishMaxMessageRate: Maximum rate for publishing messages"+ + "\n* clusterSubscribeRate: Rate limiting for subscriptions per cluster"+ + "\n* autoTopicCreationOverride: Settings for automatic topic creation"+ + "\n* schema_auto_update_compatibility_strategy: Strategy for schema auto-updates"+ + "\n* auth_policies: Authorization policies for the namespace"+ + "\n* subscription_auth_mode: Authentication mode for subscriptions"+ + "\n* is_allow_auto_update_schema: Whether automatic schema updates are allowed"+ + "\nRequires tenant admin permissions."), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name (tenant/namespace) to get policies for"), + ), + ) + s.AddTool(namespaceGetPoliciesTool, handleNamespaceGetPolicies) + + // Only add write operations if not in read-only mode + if !readOnly { + // Add a unified namespace set policy tool + namespaceSetPolicyTool := mcp.NewTool("pulsar_admin_namespace_policy_set", + mcp.WithDescription("Set a policy for a namespace. "+ + "This is a unified tool for setting different types of policies on a namespace. "+ + "The policy type determines which specific policy will be set, and the required parameters "+ + "vary based on the policy type. "+ + "Requires appropriate admin permissions based on the policy being modified.\n\n"+ + "Available policy types and their required parameters:\n"+ + "1. message-ttl: Sets time to live for messages\n"+ + " - Required: namespace, ttl (in seconds)\n\n"+ + "2. retention: Sets retention policy for messages\n"+ + " - Required: namespace\n"+ + " - Optional: time (retention time in minutes, 0=no retention, -1=infinite), "+ + "size (e.g., 10M, 16G, 3T, 0=no retention, -1=infinite)\n\n"+ + "3. permission: Grants permissions to a role\n"+ + " - Required: namespace, role, actions (array of permissions: produce, consume)\n\n"+ + "4. replication-clusters: Sets clusters to replicate to\n"+ + " - Required: namespace, clusters (array of cluster names)\n\n"+ + "5. backlog-quota: Sets backlog quota policy\n"+ + " - Required: namespace, limit-size (e.g., 10M, 16G), policy (producer_request_hold, producer_exception, consumer_backlog_eviction)\n"+ + " - Optional: limit-time (seconds, -1=infinite), type (destination_storage, message_age)\n\n"+ + "6. topic-auto-creation: Configures automatic topic creation\n"+ + " - Required: namespace\n"+ + " - Optional: disable (true/false), type (partitioned, non-partitioned), partitions (integer)\n\n"+ + "7. schema-validation: Sets schema validation enforcement\n"+ + " - Required: namespace\n"+ + " - Optional: disable (true/false)\n\n"+ + "8. schema-auto-update: Sets schema auto-update strategy\n"+ + " - Required: namespace, compatibility (e.g., Backward, Forward, Full, AlwaysCompatible)\n\n"+ + "9. auto-update-schema: Controls if schemas can be automatically updated\n"+ + " - Required: namespace\n"+ + " - Optional: enable (true/false), disable (true/false)\n\n"+ + "10. offload-threshold: Sets threshold for data offloading\n"+ + " - Required: namespace, threshold (e.g., 10M, 16G, 3T, -1 to disable)\n\n"+ + "11. offload-deletion-lag: Sets time to wait before deleting offloaded data\n"+ + " - Required: namespace, lag (e.g., 1s, 1m, 1h)\n\n"+ + "12. compaction-threshold: Sets threshold for topic compaction\n"+ + " - Required: namespace, threshold (e.g., 10M, 16G, 3T, 0 to disable)\n\n"+ + "13. max-producers-per-topic: Limits producers per topic\n"+ + " - Required: namespace, max (integer > 0)\n\n"+ + "14. max-consumers-per-topic: Limits consumers per topic\n"+ + " - Required: namespace, max (integer > 0)\n\n"+ + "15. max-consumers-per-subscription: Limits consumers per subscription\n"+ + " - Required: namespace, max (integer > 0)\n\n"+ + "16. anti-affinity-group: Sets anti-affinity group for isolation\n"+ + " - Required: namespace, group (group name)\n\n"+ + "17. persistence: Sets persistence configuration\n"+ + " - Required: namespace, ensemble-size, write-quorum-size, ack-quorum-size\n"+ + " - Optional: ml-mark-delete-max-rate\n\n"+ + "18. deduplication: Controls message deduplication\n"+ + " - Required: namespace\n"+ + " - Optional: enable (true/false), disable (true/false)\n\n"+ + "19. encryption-required: Controls message encryption\n"+ + " - Required: namespace\n"+ + " - Optional: disable (true/false)\n\n"+ + "20. subscription-auth-mode: Sets subscription auth mode\n"+ + " - Required: namespace, mode (e.g., None, Prefix)\n\n"+ + "21. subscription-permission: Grants permissions to access a subscription\n"+ + " - Required: namespace, subscription, roles (array of role names)\n\n"+ + "22. dispatch-rate: Sets message dispatch rate\n"+ + " - Required: namespace\n"+ + " - Optional: dispatchThrottlingRateInMsg, dispatchThrottlingRateInByte, ratePeriodInSecond\n\n"+ + "23. replicator-dispatch-rate: Sets replicator dispatch rate\n"+ + " - Required: namespace\n"+ + " - Optional: dispatchThrottlingRateInMsg, dispatchThrottlingRateInByte, ratePeriodInSecond\n\n"+ + "24. subscribe-rate: Sets subscribe rate per consumer\n"+ + " - Required: namespace\n"+ + " - Optional: subscribeThrottlingRatePerConsumer, ratePeriodInSecond\n\n"+ + "25. subscription-dispatch-rate: Sets subscription dispatch rate\n"+ + " - Required: namespace\n"+ + " - Optional: dispatchThrottlingRateInMsg, dispatchThrottlingRateInByte, ratePeriodInSecond\n\n"+ + "26. publish-rate: Sets maximum message publish rate\n"+ + " - Required: namespace\n"+ + " - Optional: publishThrottlingRateInMsg, publishThrottlingRateInByte"), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name (tenant/namespace) to set the policy for"), + ), + mcp.WithString("policy", mcp.Required(), + mcp.Description("Type of policy to set. Available options: "+ + "message-ttl, retention, permission, replication-clusters, backlog-quota, "+ + "topic-auto-creation, schema-validation, schema-auto-update, auto-update-schema, "+ + "offload-threshold, offload-deletion-lag, compaction-threshold, "+ + "max-producers-per-topic, max-consumers-per-topic, max-consumers-per-subscription, "+ + "anti-affinity-group, persistence, deduplication, encryption-required, "+ + "subscription-auth-mode, subscription-permission, dispatch-rate, "+ + "replicator-dispatch-rate, subscribe-rate, subscription-dispatch-rate, publish-rate"), + ), + // Generic policy parameters - specific ones will be used based on the policy type + mcp.WithString("role", + mcp.Description("Role name for permission policies"), + ), + mcp.WithArray("actions", + mcp.Description("Actions to grant for permission policies (e.g., produce, consume)"), + ), + mcp.WithArray("clusters", + mcp.Description("List of clusters for replication policies"), + ), + mcp.WithArray("roles", + mcp.Description("List of roles for subscription permission policies"), + ), + mcp.WithString("ttl", + mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), + ), + mcp.WithString("time", + mcp.Description("Retention time in minutes, or special values: 0 (no retention) or -1 (infinite retention)"), + ), + mcp.WithString("size", + mcp.Description("Retention size limit (e.g., 10M, 16G, 3T), or special values: 0 (no retention) or -1 (infinite size retention)"), + ), + mcp.WithString("limit-size", + mcp.Description("Size limit for backlog quota (e.g., 10M, 16G)"), + ), + mcp.WithString("limit-time", + mcp.Description("Time limit in seconds for backlog quota. Default is -1 (infinite)"), + ), + mcp.WithString("policy", + mcp.Description("Retention policy for backlog quota (valid options: producer_request_hold, producer_exception, consumer_backlog_eviction)"), + ), + mcp.WithString("type", + mcp.Description("Type parameter whose meaning depends on the policy type being set"), + ), + mcp.WithString("disable", + mcp.Description("Disable flag for various policies (true/false)"), + ), + mcp.WithString("enable", + mcp.Description("Enable flag for various policies (true/false)"), + ), + mcp.WithString("partitions", + mcp.Description("Number of partitions for topic auto-creation policy"), + ), + mcp.WithString("compatibility", + mcp.Description("Compatibility level for schema auto-update (e.g., BACKWARD, FORWARD, FULL)"), + ), + mcp.WithString("threshold", + mcp.Description("Threshold value for compaction or offload policies"), + ), + mcp.WithString("lag", + mcp.Description("Lag duration for offload deletion (e.g., 1h, 2d)"), + ), + mcp.WithString("max", + mcp.Description("Maximum value for producer/consumer limit policies"), + ), + mcp.WithString("group", + mcp.Description("Group name for anti-affinity policies"), + ), + mcp.WithString("ensemble-size", + mcp.Description("Number of bookies to use for a topic in persistence policy"), + ), + mcp.WithString("write-quorum-size", + mcp.Description("How many writes to make of each entry in persistence policy"), + ), + mcp.WithString("ack-quorum-size", + mcp.Description("Number of acks to wait for each entry in persistence policy"), + ), + mcp.WithString("ml-mark-delete-max-rate", + mcp.Description("Throttling rate of mark-delete operation in persistence policy"), + ), + mcp.WithString("mode", + mcp.Description("Mode for subscription auth policy (e.g., None, Prefix)"), + ), + mcp.WithString("subscription", + mcp.Description("Subscription name for subscription permission policies"), + ), + mcp.WithString("dispatchThrottlingRateInMsg", + mcp.Description("Message dispatch/throttling rate in messages per second"), + ), + mcp.WithString("dispatchThrottlingRateInByte", + mcp.Description("Message dispatch/throttling rate in bytes per second"), + ), + mcp.WithString("ratePeriodInSecond", + mcp.Description("Rate period in seconds for rate limiting policies"), + ), + mcp.WithString("subscribeThrottlingRatePerConsumer", + mcp.Description("Subscribe rate in subscriptions per consumer per second"), + ), + mcp.WithString("publishThrottlingRateInMsg", + mcp.Description("Message publish rate in messages per second"), + ), + mcp.WithString("publishThrottlingRateInByte", + mcp.Description("Message publish rate in bytes per second"), + ), + ) + s.AddTool(namespaceSetPolicyTool, handleNamespaceSetPolicy) + + // Add a unified namespace remove policy tool + namespaceRemovePolicyTool := mcp.NewTool("pulsar_admin_namespace_policy_remove", + mcp.WithDescription("Remove a policy from a namespace. "+ + "This is a unified tool for removing different types of policies from a namespace. "+ + "The policy type determines which specific policy will be removed. "+ + "Requires appropriate admin permissions based on the policy being modified.\n\n"+ + "Available policy types to remove and their required parameters:\n"+ + "1. backlog-quota: Removes the backlog quota policies\n"+ + " - Required: namespace\n"+ + " - Optional: type (destination_storage, message_age)\n\n"+ + "2. topic-auto-creation: Removes topic auto-creation config\n"+ + " - Required: namespace\n\n"+ + "3. offload-deletion-lag: Clears the offload deletion lag configuration\n"+ + " - Required: namespace\n\n"+ + "4. anti-affinity-group: Removes the namespace from its anti-affinity group\n"+ + " - Required: namespace\n\n"+ + "5. permission: Revokes all permissions from a role\n"+ + " - Required: namespace, role\n\n"+ + "6. subscription-permission: Revokes permission from a role to access a subscription\n"+ + " - Required: namespace, subscription, role"), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name (tenant/namespace) to remove the policy from"), + ), + mcp.WithString("policy", mcp.Required(), + mcp.Description("Type of policy to remove. Available options: "+ + "backlog-quota, topic-auto-creation, offload-deletion-lag, anti-affinity-group, "+ + "permission, subscription-permission"), + ), + mcp.WithString("role", + mcp.Description("Role name for permission policies"), + ), + mcp.WithString("subscription", + mcp.Description("Subscription name for subscription permission policies"), + ), + mcp.WithString("type", + mcp.Description("Type of backlog quota to remove"), + ), + ) + s.AddTool(namespaceRemovePolicyTool, handleNamespaceRemovePolicy) + } +} + +// handleNamespaceGetPolicies handles getting policies for a namespace +func handleNamespaceGetPolicies(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get policies + policies, err := client.Namespaces().GetPolicies(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policies: %v", err)), nil + } + + // Convert result to JSON string + policiesJSON, err := json.Marshal(policies) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize policies: %v", err)), nil + } + + return mcp.NewToolResultText(string(policiesJSON)), nil +} + +// handleSetMessageTTL handles setting message TTL for a namespace +func handleSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + ttlStr, err := requiredParam[string](request.Params.Arguments, "ttl") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil + } + + ttl, err := strconv.ParseInt(ttlStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid TTL value, must be an integer: %v", err)), nil + } + + // Set message TTL + err = client.Namespaces().SetNamespaceMessageTTL(namespace, int(ttl)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set message TTL: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Set message TTL for %s to %d seconds", namespace, ttl)), nil +} + +// handleSetRetention handles setting retention for a namespace +func handleSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + timeStr, hasTime := optionalParam[string](request.Params.Arguments, "time") + sizeStr, hasSize := optionalParam[string](request.Params.Arguments, "size") + + if !hasTime && !hasSize { + return mcp.NewToolResultError("At least one of 'time' or 'size' must be specified"), nil + } + + // Parse retention time + var retentionTimeInMin int + if hasTime { + // Parse relative time in seconds from the input string + retentionTime, err := pulsarctlutils.ParseRelativeTimeInSeconds(timeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid retention time format: %v", err)), nil + } + + if retentionTime != -1 { + // Convert seconds to minutes + retentionTimeInMin = int(retentionTime.Minutes()) + } else { + retentionTimeInMin = -1 // Infinite time retention + } + } else { + retentionTimeInMin = -1 // Default to infinite time retention + } + + // Parse retention size + var retentionSizeInMB int + if hasSize { + if sizeStr == "-1" { + retentionSizeInMB = -1 // Infinite size retention + } else { + // Parse size string (e.g., "10M", "16G", "3T") + sizeInBytes, err := pulsarctlutils.ValidateSizeString(sizeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid retention size format: %v", err)), nil + } + + if sizeInBytes != -1 { + // Convert bytes to MB + retentionSizeInMB = int(sizeInBytes / (1024 * 1024)) + if retentionSizeInMB < 1 { + return mcp.NewToolResultError("Retention size must be at least 1MB"), nil + } + } else { + retentionSizeInMB = -1 // Infinite size retention + } + } + } else { + retentionSizeInMB = -1 // Default to infinite size retention + } + + // Create retention policy + retention := utils.NewRetentionPolicies(retentionTimeInMin, retentionSizeInMB) + + // Set retention + err = client.Namespaces().SetRetention(namespace, retention) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set retention: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Set retention for %s successfully. ", namespace), + ), nil +} + +// handleGrantPermission handles granting permissions on a namespace +func handleGrantPermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + role, err := requiredParam[string](request.Params.Arguments, "role") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + } + + actions, err := requiredParamArray[string](request.Params.Arguments, "actions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil + } + + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + a, err := parseActions(actions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse actions: %v", err)), nil + } + + // Grant permissions + err = client.Namespaces().GrantNamespacePermission(*ns, role, a) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to grant permission: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Granted %v permission(s) to role %s on %s", actions, role, namespace)), nil +} + +func parseActions(actions []string) ([]utils.AuthAction, error) { + r := make([]utils.AuthAction, 0) + for _, v := range actions { + a, err := utils.ParseAuthAction(v) + if err != nil { + return nil, err + } + r = append(r, a) + } + return r, nil +} + +// handleRevokePermission handles revoking permissions from a namespace +func handleRevokePermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + role, err := requiredParam[string](request.Params.Arguments, "role") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + } + + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Revoke permissions + err = client.Namespaces().RevokeNamespacePermission(*ns, role) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke permission: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Revoked all permissions from role %s on %s", role, namespace)), nil +} + +// handleSetReplicationClusters handles setting replication clusters for a namespace +func handleSetReplicationClusters(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + clusters, err := requiredParamArray[string](request.Params.Arguments, "clusters") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get clusters: %v", err)), nil + } + + if len(clusters) == 0 { + return mcp.NewToolResultError("At least one cluster must be specified"), nil + } + + // Set replication clusters + err = client.Namespaces().SetNamespaceReplicationClusters(namespace, clusters) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set replication clusters: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Set replication clusters for %s to %s", namespace, strings.Join(clusters, ", ")), + ), nil +} + +// handleSetBacklogQuota handles setting backlog quota for a namespace +func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + limitSizeStr, err := requiredParam[string](request.Params.Arguments, "limit-size") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get limit size: %v", err)), nil + } + + policyStr, err := requiredParam[string](request.Params.Arguments, "policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil + } + + // Parse size limit + sizeLimit, err := pulsarctlutils.ValidateSizeString(limitSizeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid size limit format: %v", err)), nil + } + + // Parse time limit (optional) + limitTimeStr, hasLimitTime := optionalParam[string](request.Params.Arguments, "limit-time") + var limitTime int64 = -1 // Default to -1 (infinite) + if hasLimitTime && limitTimeStr != "" { + limitTimeVal, err := strconv.ParseInt(limitTimeStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid time limit format: %v", err)), nil + } + limitTime = limitTimeVal + } + + // Parse policy + var policy utils.RetentionPolicy + switch policyStr { + case "producer_request_hold": + policy = utils.ProducerRequestHold + case "producer_exception": + policy = utils.ProducerException + case "consumer_backlog_eviction": + policy = utils.ConsumerBacklogEviction + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid retention policy type: %v", policyStr)), nil + } + + // Parse quota type (optional) + quotaTypeStr, hasQuotaType := optionalParam[string](request.Params.Arguments, "type") + quotaType := utils.DestinationStorage // Default + if hasQuotaType && quotaTypeStr != "" { + parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid backlog quota type: %v", err)), nil + } + quotaType = parsedType + } + + // Set backlog quota + backlogQuota := utils.NewBacklogQuota(sizeLimit, limitTime, policy) + err = client.Namespaces().SetBacklogQuota(namespace, backlogQuota, quotaType) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set backlog quota: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Set backlog quota successfully for [%s]", namespace)), nil +} + +// handleRemoveBacklogQuota handles removing backlog quota from a namespace +func handleRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Remove backlog quota + err = client.Namespaces().RemoveBacklogQuota(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove backlog quota: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Remove backlog quota successfully for [%s]", namespace)), nil +} + +// handleSetTopicAutoCreation handles setting topic auto-creation for a namespace +func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get namespace + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Check if disabled + disableStr, hasDisable := optionalParam[string](request.Params.Arguments, "disable") + disable := false + if hasDisable && disableStr == "true" { + disable = true + } + + // Create config + config := utils.TopicAutoCreationConfig{ + Allow: !disable, + } + + // Only set topic type and partitions if not disabled + if !disable { + // Get topic type (optional) + topicTypeStr, hasType := optionalParam[string](request.Params.Arguments, "type") + if hasType && topicTypeStr != "" { + parsedType, err := utils.ParseTopicType(topicTypeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic type: %v", err)), nil + } + config.Type = parsedType + } + + // Get partitions (optional) + partitionsStr, hasPartitions := optionalParam[string](request.Params.Arguments, "partitions") + if hasPartitions && partitionsStr != "" { + partitions, err := strconv.Atoi(partitionsStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid partitions value: %v", err)), nil + } + config.Partitions = &partitions + } + } + + // Set topic auto-creation + err = client.Namespaces().SetTopicAutoCreation(*ns, config) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic auto-creation: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Set topic auto-creation config successfully for [%s]", namespace)), nil +} + +// handleRemoveTopicAutoCreation handles removing topic auto-creation config from a namespace +func handleRemoveTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get namespace + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Remove topic auto-creation + err = client.Namespaces().RemoveTopicAutoCreation(*ns) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic auto-creation: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Removed topic auto-creation config successfully for [%s]", namespace)), nil +} + +// handleSetSchemaValidationEnforced handles setting schema validation enforced status for a namespace +func handleSetSchemaValidationEnforced(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Check if disabled + disableStr, hasDisable := optionalParam[string](request.Params.Arguments, "disable") + disable := false + if hasDisable && disableStr == "true" { + disable = true + } + + // Set schema validation enforced + err = client.Namespaces().SetSchemaValidationEnforced(*ns, !disable) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set schema validation enforced: %v", err)), nil + } + + action := "enabled" + if disable { + action = "disabled" + } + return mcp.NewToolResultText(fmt.Sprintf("Schema validation enforced is %s for [%s]", action, namespace)), nil +} + +// handleSetSchemaAutoUpdateStrategy handles setting schema auto-update strategy for a namespace +func handleSetSchemaAutoUpdateStrategy(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + strategyStr, err := requiredParam[string](request.Params.Arguments, "compatibility") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility strategy: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Parse strategy + strategy, err := utils.ParseSchemaAutoUpdateCompatibilityStrategy(strategyStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid schema auto-update strategy: %v", err)), nil + } + + // Set schema auto-update strategy + err = client.Namespaces().SetSchemaAutoUpdateCompatibilityStrategy(*ns, strategy) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set schema auto-update strategy: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Set schema auto-update strategy to %s for [%s]", strategy.String(), namespace), + ), nil +} + +// handleSetIsAllowAutoUpdateSchema handles setting auto update schema allowance for a namespace +func handleSetIsAllowAutoUpdateSchema(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Check if enabled or disabled + enableStr, hasEnable := optionalParam[string](request.Params.Arguments, "enable") + disableStr, hasDisable := optionalParam[string](request.Params.Arguments, "disable") + + if (hasEnable && enableStr == "true") && (hasDisable && disableStr == "true") { + return mcp.NewToolResultError("Specify only one of 'enable' or 'disable'"), nil + } + + var isAllowUpdateSchema bool + //nolint:gocritic + if hasEnable && enableStr == "true" { + isAllowUpdateSchema = true + } else if hasDisable && disableStr == "true" { + isAllowUpdateSchema = false + } else if !hasEnable && !hasDisable { + return mcp.NewToolResultError("You must specify either 'enable=true' or 'disable=true'"), nil + } + + // Set is allow auto update schema + err = client.Namespaces().SetIsAllowAutoUpdateSchema(*ns, isAllowUpdateSchema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set auto update schema allowance: %v", err)), nil + } + + action := "enabled" + if !isAllowUpdateSchema { + action = "disabled" + } + return mcp.NewToolResultText(fmt.Sprintf("Auto update schema is %s for [%s]", action, namespace)), nil +} + +// handleSetOffloadThreshold handles setting offload threshold for a namespace +func handleSetOffloadThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + thresholdStr, err := requiredParam[string](request.Params.Arguments, "threshold") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Parse size threshold + threshold, err := pulsarctlutils.ValidateSizeString(thresholdStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid threshold format: %v", err)), nil + } + + // Set offload threshold + err = client.Namespaces().SetOffloadThreshold(*ns, threshold) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set offload threshold: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set offload threshold for %s to %s", namespace, thresholdStr), + ), nil +} + +// handleSetOffloadDeletionLag handles setting offload deletion lag for a namespace +func handleSetOffloadDeletionLag(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + lagStr, err := requiredParam[string](request.Params.Arguments, "lag") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get lag: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Parse duration string + duration, err := time.ParseDuration(lagStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid duration format: %v", err)), nil + } + + // Convert duration to milliseconds + lagMs := duration.Milliseconds() + + // Set offload deletion lag + err = client.Namespaces().SetOffloadDeleteLag(*ns, lagMs) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set offload deletion lag: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set offload deletion lag for %s to %s", namespace, lagStr), + ), nil +} + +// handleClearOffloadDeletionLag handles clearing offload deletion lag for a namespace +func handleClearOffloadDeletionLag(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Clear offload deletion lag + err = client.Namespaces().ClearOffloadDeleteLag(*ns) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to clear offload deletion lag: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully cleared offload deletion lag for %s", namespace), + ), nil +} + +// handleSetCompactionThreshold handles setting compaction threshold for a namespace +func handleSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + thresholdStr, err := requiredParam[string](request.Params.Arguments, "threshold") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Parse size threshold + threshold, err := pulsarctlutils.ValidateSizeString(thresholdStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid threshold format: %v", err)), nil + } + + // Set compaction threshold + err = client.Namespaces().SetCompactionThreshold(*ns, threshold) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set compaction threshold: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set compaction threshold for %s to %s", namespace, thresholdStr), + ), nil +} + +// handleSetMaxProducersPerTopic handles setting max producers per topic for a namespace +func handleSetMaxProducersPerTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + maxStr, err := requiredParam[string](request.Params.Arguments, "max") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil + } + + // Parse maxVal value + maxVal, err := strconv.Atoi(maxStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid max value, must be an integer: %v", err)), nil + } + + if maxVal <= 0 { + return mcp.NewToolResultError("Max producers per topic must be greater than 0"), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Set max producers per topic + err = client.Namespaces().SetMaxProducersPerTopic(*ns, maxVal) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set max producers per topic: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set max producers per topic for %s to %d", namespace, maxVal), + ), nil +} + +// handleSetMaxConsumersPerTopic handles setting max consumers per topic for a namespace +func handleSetMaxConsumersPerTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + maxStr, err := requiredParam[string](request.Params.Arguments, "max") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil + } + + // Parse maxVal value + maxVal, err := strconv.Atoi(maxStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid max value, must be an integer: %v", err)), nil + } + + if maxVal <= 0 { + return mcp.NewToolResultError("Max consumers per topic must be greater than 0"), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Set max consumers per topic + err = client.Namespaces().SetMaxConsumersPerTopic(*ns, maxVal) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set max consumers per topic: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set max consumers per topic for %s to %d", namespace, maxVal), + ), nil +} + +// handleSetMaxConsumersPerSubscription handles setting max consumers per subscription for a namespace +func handleSetMaxConsumersPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + maxStr, err := requiredParam[string](request.Params.Arguments, "max") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil + } + + // Parse maxVal value + maxVal, err := strconv.Atoi(maxStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid max value, must be an integer: %v", err)), nil + } + + if maxVal <= 0 { + return mcp.NewToolResultError("Max consumers per subscription must be greater than 0"), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Set max consumers per subscription + err = client.Namespaces().SetMaxConsumersPerSubscription(*ns, maxVal) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set max consumers per subscription: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set max consumers per subscription for %s to %d", namespace, maxVal), + ), nil +} + +// handleSetAntiAffinityGroup handles setting the anti-affinity group for a namespace +func handleSetAntiAffinityGroup(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + group, err := requiredParam[string](request.Params.Arguments, "group") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get anti-affinity group: %v", err)), nil + } + + // Set anti-affinity group + err = client.Namespaces().SetNamespaceAntiAffinityGroup(namespace, group) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set anti-affinity group: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set anti-affinity group '%s' for namespace %s", group, namespace), + ), nil +} + +// handleDeleteAntiAffinityGroup handles deleting the anti-affinity group of a namespace +func handleDeleteAntiAffinityGroup(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Delete anti-affinity group + err = client.Namespaces().DeleteNamespaceAntiAffinityGroup(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete anti-affinity group: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully deleted anti-affinity group for namespace %s", namespace), + ), nil +} + +// handleSetPersistence handles setting persistence policy for a namespace +func handleSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + ensembleSizeStr, err := requiredParam[string](request.Params.Arguments, "ensemble-size") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensemble size: %v", err)), nil + } + + writeQuorumSizeStr, err := requiredParam[string](request.Params.Arguments, "write-quorum-size") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get write quorum size: %v", err)), nil + } + + ackQuorumSizeStr, err := requiredParam[string](request.Params.Arguments, "ack-quorum-size") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get ack quorum size: %v", err)), nil + } + + // Parse integer parameters + ensembleSize, err := strconv.Atoi(ensembleSizeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid ensemble size, must be an integer: %v", err)), nil + } + + writeQuorumSize, err := strconv.Atoi(writeQuorumSizeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid write quorum size, must be an integer: %v", err)), nil + } + + ackQuorumSize, err := strconv.Atoi(ackQuorumSizeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid ack quorum size, must be an integer: %v", err)), nil + } + + // Check Bookkeeper constraints + if ensembleSize < writeQuorumSize || writeQuorumSize < ackQuorumSize { + return mcp.NewToolResultError("Bookkeeper ensemble size must be >= write quorum size >= ack quorum size"), nil + } + + // Parse optional rate parameter + markDeleteMaxRate := 0.0 + markDeleteMaxRateStr, hasRate := optionalParam[string](request.Params.Arguments, "ml-mark-delete-max-rate") + if hasRate && markDeleteMaxRateStr != "" { + rate, err := strconv.ParseFloat(markDeleteMaxRateStr, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid mark delete max rate, must be a number: %v", err)), nil + } + markDeleteMaxRate = rate + } + + // Create persistence policy + persistencePolicies := utils.NewPersistencePolicies(ensembleSize, writeQuorumSize, ackQuorumSize, markDeleteMaxRate) + + // Set persistence policy + err = client.Namespaces().SetPersistence(namespace, persistencePolicies) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set persistence policy: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set persistence policy for %s", namespace), + ), nil +} + +// handleSetDeduplication handles setting the deduplication status for a namespace +func handleSetDeduplication(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get enable flag, default to false if not specified + enable, _ := optionalParam[string](request.Params.Arguments, "enable") + enableBool := false + if enable == "true" { + enableBool = true + } + + // Set deduplication status + err = client.Namespaces().SetDeduplicationStatus(namespace, enableBool) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set deduplication status: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set deduplication status to [%v] for %s", enableBool, namespace), + ), nil +} + +// handleSetEncryptionRequired handles setting whether encryption is required for a namespace +func handleSetEncryptionRequired(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get disable flag, default to false if not specified + disable, _ := optionalParam[string](request.Params.Arguments, "disable") + disableFlag := disable == "true" + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Set encryption required status (note: API expects !disable) + err = client.Namespaces().SetEncryptionRequiredStatus(*ns, !disableFlag) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set encryption required status: %v", err)), nil + } + + status := "Enable" + if disableFlag { + status = "Disable" + } + + return mcp.NewToolResultText( + fmt.Sprintf("%s messages encryption for namespace %s", status, namespace), + ), nil +} + +// handleSetSubscriptionAuthMode handles setting the default subscription auth mode for a namespace +func handleSetSubscriptionAuthMode(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + mode, err := requiredParam[string](request.Params.Arguments, "mode") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription auth mode: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Parse subscription auth mode + authMode, err := utils.ParseSubscriptionAuthMode(mode) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription auth mode: %v", err)), nil + } + + // Set subscription auth mode + err = client.Namespaces().SetSubscriptionAuthMode(*ns, authMode) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set subscription auth mode: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set the default subscription auth mode of namespace %s to %s", + namespace, authMode.String()), + ), nil +} + +// handleGrantSubscriptionPermission handles granting subscription permissions to roles +func handleGrantSubscriptionPermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + roles, err := requiredParamArray[string](request.Params.Arguments, "roles") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get roles: %v", err)), nil + } + + if len(roles) == 0 { + return mcp.NewToolResultError("At least one role must be specified"), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Grant subscription permission + err = client.Namespaces().GrantSubPermission(*ns, subscription, roles) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to grant subscription permission: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Granted client roles %v to access the subscription %s of the namespace %s", + roles, subscription, namespace), + ), nil +} + +// handleRevokeSubscriptionPermission handles revoking subscription permissions from a role +func handleRevokeSubscriptionPermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + role, err := requiredParam[string](request.Params.Arguments, "role") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Revoke subscription permission + err = client.Namespaces().RevokeSubPermission(*ns, subscription, role) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke subscription permission: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Revoked client role %s permissions from subscription %s of namespace %s", + role, subscription, namespace), + ), nil +} + +// handleSetDispatchRate handles setting the default message dispatch rate for a namespace +func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get rate parameters + msgRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRate := -1 // Default value + if msgRateStr != "" { + parsedMsgRate, err := strconv.Atoi(msgRateStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate parameter: %v", err)), nil + } + msgRate = parsedMsgRate + } + + byteRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRate := int64(-1) // Default value + if byteRateStr != "" { + parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate parameter: %v", err)), nil + } + byteRate = parsedByteRate + } + + ratePeriodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + ratePeriod := 1 // Default value + if ratePeriodStr != "" { + parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period parameter: %v", err)), nil + } + ratePeriod = parsedRatePeriod + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Create dispatch rate object + rate := utils.DispatchRate{ + DispatchThrottlingRateInMsg: msgRate, + DispatchThrottlingRateInByte: byteRate, + RatePeriodInSecond: ratePeriod, + } + + // Set dispatch rate + err = client.Namespaces().SetDispatchRate(*ns, rate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set dispatch rate: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set the default message dispatch rate of namespace %s to %+v", namespace, rate), + ), nil +} + +// handleSetReplicatorDispatchRate handles setting the default replicator message dispatch rate for a namespace +func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get rate parameters + msgRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRate := -1 // Default value + if msgRateStr != "" { + parsedMsgRate, err := strconv.Atoi(msgRateStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate parameter: %v", err)), nil + } + msgRate = parsedMsgRate + } + + byteRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRate := int64(-1) // Default value + if byteRateStr != "" { + parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate parameter: %v", err)), nil + } + byteRate = parsedByteRate + } + + ratePeriodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + ratePeriod := 1 // Default value + if ratePeriodStr != "" { + parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period parameter: %v", err)), nil + } + ratePeriod = parsedRatePeriod + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Create dispatch rate object + rate := utils.DispatchRate{ + DispatchThrottlingRateInMsg: msgRate, + DispatchThrottlingRateInByte: byteRate, + RatePeriodInSecond: ratePeriod, + } + + // Set replicator dispatch rate + err = client.Namespaces().SetReplicatorDispatchRate(*ns, rate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set replicator dispatch rate: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set the default replicator message dispatch rate of namespace %s to %+v", namespace, rate), + ), nil +} + +// handleSetSubscribeRate handles setting the default subscribe rate per consumer for a namespace +func handleSetSubscribeRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get rate parameters + subRateStr, _ := optionalParam[string](request.Params.Arguments, "subscribeThrottlingRatePerConsumer") + subRate := -1 // Default value + if subRateStr != "" { + parsedSubRate, err := strconv.Atoi(subRateStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscribe rate value: %v", err)), nil + } + subRate = parsedSubRate + } + + periodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + period := 30 // Default value + if periodStr != "" { + parsedPeriod, err := strconv.Atoi(periodStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period value: %v", err)), nil + } + period = parsedPeriod + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Create subscription rate object + rate := utils.SubscribeRate{ + SubscribeThrottlingRatePerConsumer: subRate, + RatePeriodInSecond: period, + } + + // Set subscribe rate + err = client.Namespaces().SetSubscribeRate(*ns, rate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set subscribe rate: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully set subscribe rate for namespace %s", namespace)), nil +} + +// handleSetSubscriptionDispatchRate handles setting the default subscription message dispatch rate for a namespace +func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get rate parameters + msgRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRate := -1 // Default value + if msgRateStr != "" { + parsedMsgRate, err := strconv.Atoi(msgRateStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate value: %v", err)), nil + } + msgRate = parsedMsgRate + } + + byteRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRate := int64(-1) // Default value + if byteRateStr != "" { + parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate value: %v", err)), nil + } + byteRate = parsedByteRate + } + + periodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + period := 1 // Default value + if periodStr != "" { + parsedPeriod, err := strconv.Atoi(periodStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period value: %v", err)), nil + } + period = parsedPeriod + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Create dispatch rate object + rate := utils.DispatchRate{ + DispatchThrottlingRateInMsg: msgRate, + DispatchThrottlingRateInByte: byteRate, + RatePeriodInSecond: period, + } + + // Set subscription dispatch rate + err = client.Namespaces().SetSubscriptionDispatchRate(*ns, rate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set subscription dispatch rate: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set subscription dispatch rate for namespace %s", namespace), + ), nil +} + +// handleSetPublishRate handles setting the default message publish rate of a namespace +func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Parse namespace + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Initialize publish rate with defaults + rate := utils.PublishRate{ + PublishThrottlingRateInMsg: -1, + PublishThrottlingRateInByte: -1, + } + + // Get message rate if provided + msgRateStr, hasMsgRate := optionalParam[string](request.Params.Arguments, "publishThrottlingRateInMsg") + if hasMsgRate && msgRateStr != "" { + msgRate, err := strconv.Atoi(msgRateStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate: %v", err)), nil + } + rate.PublishThrottlingRateInMsg = msgRate + } + + // Get byte rate if provided + byteRateStr, hasByteRate := optionalParam[string](request.Params.Arguments, "publishThrottlingRateInByte") + if hasByteRate && byteRateStr != "" { + byteRate, err := strconv.ParseInt(byteRateStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate: %v", err)), nil + } + rate.PublishThrottlingRateInByte = byteRate + } + + // Set publish rate + err = client.Namespaces().SetPublishRate(*ns, rate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set publish rate: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully set the default message publish rate for namespace %s", namespace), + ), nil +} + +// handleNamespaceSetPolicy handles setting policies for a namespace using the unified tool +func handleNamespaceSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + _, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + policyType, err := requiredParam[string](request.Params.Arguments, "policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + } + + // Route to the appropriate handler based on the policy type + switch policyType { + case "message-ttl": + return handleSetMessageTTL(ctx, request) + case "retention": + return handleSetRetention(ctx, request) + case "permission": + return handleGrantPermission(ctx, request) + case "replication-clusters": + return handleSetReplicationClusters(ctx, request) + case "backlog-quota": + return handleSetBacklogQuota(ctx, request) + case "topic-auto-creation": + return handleSetTopicAutoCreation(ctx, request) + case "schema-validation": + return handleSetSchemaValidationEnforced(ctx, request) + case "schema-auto-update": + return handleSetSchemaAutoUpdateStrategy(ctx, request) + case "auto-update-schema": + return handleSetIsAllowAutoUpdateSchema(ctx, request) + case "offload-threshold": + return handleSetOffloadThreshold(ctx, request) + case "offload-deletion-lag": + return handleSetOffloadDeletionLag(ctx, request) + case "compaction-threshold": + return handleSetCompactionThreshold(ctx, request) + case "max-producers-per-topic": + return handleSetMaxProducersPerTopic(ctx, request) + case "max-consumers-per-topic": + return handleSetMaxConsumersPerTopic(ctx, request) + case "max-consumers-per-subscription": + return handleSetMaxConsumersPerSubscription(ctx, request) + case "anti-affinity-group": + return handleSetAntiAffinityGroup(ctx, request) + case "persistence": + return handleSetPersistence(ctx, request) + case "deduplication": + return handleSetDeduplication(ctx, request) + case "encryption-required": + return handleSetEncryptionRequired(ctx, request) + case "subscription-auth-mode": + return handleSetSubscriptionAuthMode(ctx, request) + case "subscription-permission": + return handleGrantSubscriptionPermission(ctx, request) + case "dispatch-rate": + return handleSetDispatchRate(ctx, request) + case "replicator-dispatch-rate": + return handleSetReplicatorDispatchRate(ctx, request) + case "subscribe-rate": + return handleSetSubscribeRate(ctx, request) + case "subscription-dispatch-rate": + return handleSetSubscriptionDispatchRate(ctx, request) + case "publish-rate": + return handleSetPublishRate(ctx, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil + } +} + +// handleNamespaceRemovePolicy handles removing policies from a namespace using the unified tool +func handleNamespaceRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + _, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + policyType, err := requiredParam[string](request.Params.Arguments, "policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + } + + // Route to the appropriate handler based on the policy type + switch policyType { + case "backlog-quota": + return handleRemoveBacklogQuota(ctx, request) + case "topic-auto-creation": + return handleRemoveTopicAutoCreation(ctx, request) + case "offload-deletion-lag": + return handleClearOffloadDeletionLag(ctx, request) + case "anti-affinity-group": + return handleDeleteAntiAffinityGroup(ctx, request) + case "permission": + return handleRevokePermission(ctx, request) + case "subscription-permission": + return handleRevokeSubscriptionPermission(ctx, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown or unsupported removable policy type: %s", policyType)), nil + } +} diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go new file mode 100644 index 0000000..323709c --- /dev/null +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -0,0 +1,403 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strconv" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddNamespaceTools adds namespace-related tools to the MCP server +func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminNamespaces)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Create a unified namespace tool with resource+operation parameters + namespaceTool := mcp.NewTool("pulsar_admin_namespace", + mcp.WithDescription("Manage Pulsar namespaces with various operations. "+ + "This tool provides functionality to work with namespaces in Apache Pulsar, "+ + "including listing, creating, deleting, and performing various operations on namespaces."), + mcp.WithString("operation", mcp.Required(), + mcp.Description("Operation to perform on namespaces. Available operations:\n"+ + "- list: List all namespaces for a tenant\n"+ + "- get_topics: Get all topics within a namespace\n"+ + "- create: Create a new namespace\n"+ + "- delete: Delete an existing namespace\n"+ + "- clear_backlog: Clear backlog for all topics in a namespace\n"+ + "- unsubscribe: Unsubscribe from a subscription for all topics in a namespace\n"+ + "- unload: Unload a namespace from the current serving broker\n"+ + "- split_bundle: Split a namespace bundle"), + ), + mcp.WithString("tenant", + mcp.Description("The tenant name. Required for 'list' operation."), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in format 'tenant/namespace'. Required for all operations except 'list'."), + ), + mcp.WithString("bundles", + mcp.Description("Number of bundles to activate when creating a namespace (default: 0 for default number of bundles). Used with 'create' operation."), + ), + mcp.WithArray("clusters", + mcp.Description("List of clusters to assign when creating a namespace. Used with 'create' operation."), + ), + mcp.WithString("subscription", + mcp.Description("Subscription name. Required for 'unsubscribe' operation, optional for 'clear_backlog'."), + ), + mcp.WithString("bundle", + mcp.Description("Bundle name or range. Required for 'split_bundle' operation, optional for 'clear_backlog', 'unsubscribe', and 'unload'."), + ), + mcp.WithString("force", + mcp.Description("Force clear backlog (true/false). Used with 'clear_backlog' operation."), + ), + mcp.WithString("unload", + mcp.Description("Unload newly split bundles after splitting (true/false). Used with 'split_bundle' operation."), + ), + ) + + // Add the unified tool with the handler closure that captures readOnly status + s.AddTool(namespaceTool, handleNamespace(readOnly)) +} + +// handleNamespace returns a handler function for the namespace tool that captures the readOnly status +func handleNamespace(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get operation parameter + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Route to appropriate handler based on operation + switch operation { + case "list": + return handleNamespaceList(ctx, client, request) + case "get_topics": + return handleNamespaceGetTopics(ctx, client, request) + case "create", "delete", "clear_backlog", "unsubscribe", "unload", "split_bundle": + // Check if write operations are allowed + if readOnly { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode", operation)), nil + } + + // Route to appropriate write operation handler + switch operation { + case "create": + return handleNamespaceCreate(ctx, client, request) + case "delete": + return handleNamespaceDelete(ctx, client, request) + case "clear_backlog": + return handleClearBacklog(ctx, client, request) + case "unsubscribe": + return handleUnsubscribe(ctx, client, request) + case "unload": + return handleUnload(ctx, client, request) + case "split_bundle": + return handleSplitBundle(ctx, client, request) + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s. Supported operations: list, get_topics, create, delete, clear_backlog, unsubscribe, unload, split_bundle", operation)), nil + } + + // Should not reach here + return mcp.NewToolResultError("Unexpected error: operation not handled"), nil + } +} + +// handleNamespaceList handles listing namespaces for a tenant +func handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + // Get namespace list + namespaces, err := client.Namespaces().GetNamespaces(tenant) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list namespaces: %v", err)), nil + } + + // Convert result to JSON string + namespacesJSON, err := json.Marshal(namespaces) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace list: %v", err)), nil + } + + return mcp.NewToolResultText(string(namespacesJSON)), nil +} + +// handleNamespaceGetTopics handles getting topics for a namespace +func handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get topics list + topics, err := client.Namespaces().GetTopics(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topics: %v", err)), nil + } + + // Convert result to JSON string + topicsJSON, err := json.Marshal(topics) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize topics list: %v", err)), nil + } + + return mcp.NewToolResultText(string(topicsJSON)), nil +} + +// handleNamespaceCreate handles creating a new namespace +func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional parameters + bundlesStr, hasBundles := optionalParam[string](request.Params.Arguments, "bundles") + bundles := 0 + if hasBundles && bundlesStr != "" { + bundlesInt, err := strconv.Atoi(bundlesStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid bundles value, must be an integer: %v", err)), nil + } + bundles = bundlesInt + } + + clusters, _ := optionalParamArray[string](request.Params.Arguments, "clusters") + + // Prepare policies + policies := utils.NewDefaultPolicies() + + // Set bundles if provided + if hasBundles && bundles > 0 { + if bundles < 0 || bundles > int(^uint32(0)) { // MaxInt32 + return mcp.NewToolResultError( + fmt.Sprintf("Invalid number of bundles. Number of bundles has to be in the range of (0, %d].", int(^uint32(0))), + ), nil + } + policies.Bundles = utils.NewBundlesDataWithNumBundles(bundles) + } + + // Set clusters if provided + if len(clusters) > 0 { + policies.ReplicationClusters = clusters + } + + // Create namespace + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + err = client.Namespaces().CreateNsWithPolices(ns.String(), *policies) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create namespace: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created %s successfully", namespace)), nil +} + +// handleNamespaceDelete handles deleting a namespace +func handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Delete namespace + err = client.Namespaces().DeleteNamespace(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete namespace: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted %s successfully", namespace)), nil +} + +// handleClearBacklog handles clearing the backlog for all topics in a namespace +func handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional parameters + subscription, _ := optionalParam[string](request.Params.Arguments, "subscription") + bundle, _ := optionalParam[string](request.Params.Arguments, "bundle") + force, _ := optionalParam[string](request.Params.Arguments, "force") + forceFlag := force == "true" + + // If not forced, return an error requiring explicit force flag + if !forceFlag { + return mcp.NewToolResultError( + "Clear backlog operation requires explicit confirmation. Please set force=true to proceed.", + ), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Handle different backlog clearing scenarios + var clearErr error + //nolint:gocritic + if subscription != "" { + if bundle != "" { + clearErr = client.Namespaces().ClearNamespaceBundleBacklogForSubscription(*ns, bundle, subscription) + } else { + clearErr = client.Namespaces().ClearNamespaceBacklogForSubscription(*ns, subscription) + } + } else if bundle != "" { + clearErr = client.Namespaces().ClearNamespaceBundleBacklog(*ns, bundle) + } else { + clearErr = client.Namespaces().ClearNamespaceBacklog(*ns) + } + + if clearErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to clear backlog: %v", clearErr)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully cleared backlog for all topics in namespace %s", namespace), + ), nil +} + +// handleUnsubscribe handles unsubscribing the specified subscription for all topics of a namespace +func handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + // Get optional bundle + bundle, _ := optionalParam[string](request.Params.Arguments, "bundle") + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Unsubscribe namespace + var unsubErr error + if bundle == "" { + unsubErr = client.Namespaces().UnsubscribeNamespace(*ns, subscription) + } else { + unsubErr = client.Namespaces().UnsubscribeNamespaceBundle(*ns, bundle, subscription) + } + + if unsubErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unsubscribe: %v", unsubErr)), nil + } + + if bundle == "" { + return mcp.NewToolResultText( + fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s", + subscription, namespace), + ), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s with bundle range %s", + subscription, namespace, bundle), + ), nil +} + +// handleUnload handles unloading a namespace from the current serving broker +func handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional bundle + bundle, _ := optionalParam[string](request.Params.Arguments, "bundle") + + // Unload namespace + var unloadErr error + if bundle == "" { + unloadErr = client.Namespaces().Unload(namespace) + } else { + unloadErr = client.Namespaces().UnloadNamespaceBundle(namespace, bundle) + } + + if unloadErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unload namespace: %v", unloadErr)), nil + } + + if bundle == "" { + return mcp.NewToolResultText( + fmt.Sprintf("Unloaded namespace %s successfully", namespace), + ), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Unloaded namespace %s with bundle %s successfully", namespace, bundle), + ), nil +} + +// handleSplitBundle handles splitting a namespace bundle +func handleSplitBundle(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + bundle, err := requiredParam[string](request.Params.Arguments, "bundle") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle: %v", err)), nil + } + + // Get optional unload flag + unloadStr, _ := optionalParam[string](request.Params.Arguments, "unload") + unload := unloadStr == "true" + + // Split namespace bundle + err = client.Namespaces().SplitNamespaceBundle(namespace, bundle, unload) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to split namespace bundle: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Split namespace bundle %s successfully", bundle), + ), nil +} diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go new file mode 100644 index 0000000..072b08e --- /dev/null +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -0,0 +1,311 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddNsIsolationPolicyTools adds namespace isolation policy related tools to the MCP server +func PulsarAdminAddNsIsolationPolicyTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminNsIsolationPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Add unified namespace isolation policy tool + toolDesc := "Manage namespace isolation policies in a Pulsar cluster. " + + "Allows viewing, creating, updating, and deleting namespace isolation policies. " + + "Some operations require super-user permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- policy: Namespace isolation policy\n" + + "- broker: Broker with namespace isolation policies\n" + + "- brokers: All brokers with namespace isolation policies" + + operationDesc := "Operation to perform. Available operations:\n" + + "- get: Get resource details\n" + + "- list: List all instances of the resource\n" + + "- set: Create or update a resource (requires super-user permissions)\n" + + "- delete: Delete a resource (requires super-user permissions)" + + nsIsolationPolicyTool := mcp.NewTool("pulsar_admin_nsisolationpolicy", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("cluster", mcp.Required(), + mcp.Description("Cluster name"), + ), + mcp.WithString("name", + mcp.Description("Name of the policy or broker to operate on, based on resource type.\n"+ + "Required for: policy.get, policy.delete, policy.set, broker.get"), + ), + mcp.WithArray("namespaces", + mcp.Description("List of namespaces to apply the isolation policy. Required for policy.set"), + ), + mcp.WithArray("primary", + mcp.Description("List of primary brokers for the namespaces. Required for policy.set"), + ), + mcp.WithArray("secondary", + mcp.Description("List of secondary brokers for the namespaces. Optional for policy.set"), + ), + mcp.WithString("autoFailoverPolicyType", + mcp.Description("Auto failover policy type (e.g., min_available). Optional for policy.set"), + ), + mcp.WithObject("autoFailoverPolicyParams", + mcp.Description("Auto failover policy parameters as an object (e.g., {'min_limit': '1', 'usage_threshold': '100'}). Optional for policy.set"), + ), + ) + s.AddTool(nsIsolationPolicyTool, handleNsIsolationPolicy(readOnly)) +} + +// handleNsIsolationPolicy returns a function that handles namespace isolation policy operations +func handleNsIsolationPolicy(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client + client, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + cluster, err := requiredParam[string](request.Params.Arguments, "cluster") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "set" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Dispatch based on resource type + switch resource { + case "policy": + return handlePolicyResource(client, operation, cluster, request) + case "broker": + return handleBrokerResource(client, operation, cluster, request) + case "brokers": + return handleNsIsolationBrokersResource(client, operation, cluster, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: policy, broker, brokers", resource)), nil + } + } +} + +// handlePolicyResource handles operations on the "policy" resource +func handlePolicyResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.get: %v", err)), nil + } + + // Get namespace isolation policy + policyInfo, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicy(cluster, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace isolation policy: %v", err)), nil + } + + // Convert result to JSON string + policyInfoJSON, err := json.Marshal(policyInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policy: %v", err)), nil + } + + return mcp.NewToolResultText(string(policyInfoJSON)), nil + + case "list": + // Get namespace isolation policies + policies, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicies(cluster) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list namespace isolation policies: %v", err)), nil + } + + // Convert result to JSON string + policiesJSON, err := json.Marshal(policies) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policies: %v", err)), nil + } + + return mcp.NewToolResultText(string(policiesJSON)), nil + + case "delete": + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.delete: %v", err)), nil + } + + // Delete namespace isolation policy + err = client.NsIsolationPolicy().DeleteNamespaceIsolationPolicy(cluster, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete namespace isolation policy: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Delete namespace isolation policy %s successfully", name)), nil + + case "set": + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.set: %v", err)), nil + } + + namespaces, err := getRequiredParamArray[string](request.Params.Arguments, "namespaces") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespaces' for policy.set: %v", err)), nil + } + + primary, err := getRequiredParamArray[string](request.Params.Arguments, "primary") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'primary' for policy.set: %v", err)), nil + } + + secondary, _ := optionalParamArray[string](request.Params.Arguments, "secondary") + autoFailoverPolicyType, _ := optionalParam[string](request.Params.Arguments, "autoFailoverPolicyType") + + // Parse autoFailoverPolicyParams as a map + autoFailoverPolicyParamsRaw, _ := optionalParam[map[string]interface{}](request.Params.Arguments, "autoFailoverPolicyParams") + autoFailoverPolicyParams := make(map[string]string) + for k, v := range autoFailoverPolicyParamsRaw { + if strVal, ok := v.(string); ok { + autoFailoverPolicyParams[k] = strVal + } + } + + // Create namespace isolation policy data + nsIsolationData, err := utils.CreateNamespaceIsolationData(namespaces, primary, secondary, + autoFailoverPolicyType, autoFailoverPolicyParams) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create namespace isolation data: %v", err)), nil + } + + // Create/update namespace isolation policy + err = client.NsIsolationPolicy().CreateNamespaceIsolationPolicy(cluster, name, *nsIsolationData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create/update namespace isolation policy: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Create/Update namespace isolation policy %s successfully", name)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'policy': %s. Available operations: get, list, delete, set", operation)), nil + } +} + +// handleBrokerResource handles operations on the "broker" resource +func handleBrokerResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for broker.get: %v", err)), nil + } + + // Get broker with policies + brokerInfo, err := client.NsIsolationPolicy().GetBrokerWithNamespaceIsolationPolicy(cluster, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get broker with namespace isolation policy: %v", err)), nil + } + + // Convert result to JSON string + brokerInfoJSON, err := json.Marshal(brokerInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize broker information: %v", err)), nil + } + + return mcp.NewToolResultText(string(brokerInfoJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'broker': %s. Available operations: get", operation)), nil + } +} + +// handleNsIsolationBrokersResource handles operations on the "brokers" resource for namespace isolation policies +func handleNsIsolationBrokersResource(client cmdutils.Client, operation, cluster string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + // Get all brokers with policies + brokersInfo, err := client.NsIsolationPolicy().GetBrokersWithNamespaceIsolationPolicy(cluster) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get brokers with namespace isolation policy: %v", err)), nil + } + + // Convert result to JSON string + brokersInfoJSON, err := json.Marshal(brokersInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers information: %v", err)), nil + } + + return mcp.NewToolResultText(string(brokersInfoJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'brokers': %s. Available operations: list", operation)), nil + } +} + +// getRequiredParamArray is a helper function to get a required array parameter with a specific type +func getRequiredParamArray[T any](args map[string]interface{}, paramName string) ([]T, error) { + value, ok := args[paramName] + if !ok { + return nil, fmt.Errorf("missing required parameter: %s", paramName) + } + + arrayValue, ok := value.([]interface{}) + if !ok { + return nil, fmt.Errorf("parameter %s is not an array", paramName) + } + + result := make([]T, 0, len(arrayValue)) + for _, v := range arrayValue { + typedValue, ok := v.(T) + if !ok { + return nil, fmt.Errorf("array element in %s has incorrect type", paramName) + } + result = append(result, typedValue) + } + + return result, nil +} diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go new file mode 100644 index 0000000..b45de28 --- /dev/null +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -0,0 +1,291 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddPackagesTools adds package-related tools to the MCP server +func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminPackages)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Add unified package management tool + toolDesc := "Manage packages in Apache Pulsar. Support package scheme: `function://`, `source://`, `sink://`" + + "Allows listing, viewing, updating, downloading and uploading packages. " + + "Some operations require super-user permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- package: A specific package\n" + + "- packages: All packages of a specific type" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all packages of a specific type or versions of a package\n" + + "- get: Get metadata of a package\n" + + "- update: Update metadata of a package (requires super-user permissions)\n" + + "- delete: Delete a package (requires super-user permissions)\n" + + "- download: Download a package (requires super-user permissions)\n" + + "- upload: Upload a package (requires super-user permissions)" + + packageTool := mcp.NewTool("pulsar_admin_package", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("packageName", + mcp.Description("Name of the package to operate on. "+ + "Required for operations on a specific package: get, update, delete, download, upload"), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name. Required for listing packages of a specific type"), + ), + mcp.WithString("type", + mcp.Description("Package type (function, source, sink). Required for listing packages of a specific type"), + ), + mcp.WithString("description", + mcp.Description("Description of the package. Required for update and upload operations"), + ), + mcp.WithString("contact", + mcp.Description("Contact information for the package. Optional for update and upload operations"), + ), + mcp.WithString("path", + mcp.Description("Path to download a package to or upload a package from. Required for download and upload operations"), + ), + mcp.WithObject("properties", + mcp.Description("Additional properties for the package as key-value pairs. Optional for update and upload operations"), + ), + ) + s.AddTool(packageTool, handlePackageTool(readOnly)) +} + +// handlePackageTool returns a function that handles package-related operations +func handlePackageTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "update" || operation == "delete" || operation == "download" || operation == "upload") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Create Pulsar client with API version V3 + client, err := pulsar.GetAdminV3Client() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + } + + // Dispatch based on resource type + switch resource { + case "package": + return handlePackageResource(client, operation, request) + case "packages": + return handlePackagesResource(client, operation, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: package, packages", resource)), nil + } + } +} + +// handlePackageResource handles operations on a specific package +func handlePackageResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + packageName, err := requiredParam[string](request.Params.Arguments, "packageName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'packageName' for package operations: %v", err)), nil + } + + switch operation { + case "list": + // Get package versions + packageVersions, err := client.Packages().ListVersions(packageName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list package versions: %v", err)), nil + } + + // Convert result to JSON string + packageVersionsJSON, err := json.Marshal(packageVersions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package versions: %v", err)), nil + } + + return mcp.NewToolResultText(string(packageVersionsJSON)), nil + + case "get": + // Get package metadata + metadata, err := client.Packages().GetMetadata(packageName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get package metadata: %v", err)), nil + } + + // Convert result to JSON string + metadataJSON, err := json.Marshal(metadata) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package metadata: %v", err)), nil + } + + return mcp.NewToolResultText(string(metadataJSON)), nil + + case "update": + description, err := requiredParam[string](request.Params.Arguments, "description") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.update: %v", err)), nil + } + + contact, _ := optionalParam[string](request.Params.Arguments, "contact") + properties := extractProperties(request.Params.Arguments) + + // Update package metadata + err = client.Packages().UpdateMetadata(packageName, description, contact, properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update package metadata: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("The metadata of the package '%s' updated successfully", packageName)), nil + + case "delete": + // Delete package + err = client.Packages().Delete(packageName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete package: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("The package '%s' deleted successfully", packageName)), nil + + case "download": + path, err := requiredParam[string](request.Params.Arguments, "path") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.download: %v", err)), nil + } + + // Download package + err = client.Packages().Download(packageName, path) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to download package: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("The package '%s' downloaded to path '%s' successfully", packageName, path), + ), nil + + case "upload": + path, err := requiredParam[string](request.Params.Arguments, "path") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.upload: %v", err)), nil + } + + description, err := requiredParam[string](request.Params.Arguments, "description") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.upload: %v", err)), nil + } + + contact, _ := optionalParam[string](request.Params.Arguments, "contact") + properties := extractProperties(request.Params.Arguments) + + // Upload package + err = client.Packages().Upload(packageName, path, description, contact, properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to upload package: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("The package '%s' uploaded from path '%s' successfully", packageName, path), + ), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'package': %s. Available operations: list, get, update, delete, download, upload", operation)), nil + } +} + +// handlePackagesResource handles operations on multiple packages +func handlePackagesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + packageType, err := requiredParam[string](request.Params.Arguments, "type") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'type' for packages.list: %v", err)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for packages.list: %v", err)), nil + } + + // Get package list + packages, err := client.Packages().List(packageType, namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list packages: %v", err)), nil + } + + // Convert result to JSON string + packagesJSON, err := json.Marshal(packages) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package list: %v", err)), nil + } + + return mcp.NewToolResultText(string(packagesJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'packages': %s. Available operations: list", operation)), nil + } +} + +// extractProperties extracts properties from request arguments +func extractProperties(args map[string]interface{}) map[string]string { + var properties map[string]string + propsObj, ok := args["properties"] + if ok && propsObj != nil { + // Convert to map[string]string + if propsMap, isMap := propsObj.(map[string]interface{}); isMap { + properties = make(map[string]string) + for k, v := range propsMap { + if strVal, ok := v.(string); ok { + properties[k] = strVal + } else { + properties[k] = fmt.Sprintf("%v", v) + } + } + } + } + return properties +} diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go new file mode 100644 index 0000000..5ac52eb --- /dev/null +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -0,0 +1,291 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddResourceQuotasTools adds resource quotas-related tools to the MCP server +func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminResourceQuotas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + // Add unified resource quotas management tool + toolDesc := "Manage Apache Pulsar resource quotas for brokers, namespaces and bundles. " + + "Resource quotas define limits for resource usage such as message rates, bandwidth, and memory. " + + "These quotas help prevent resource abuse and ensure fair resource allocation across the Pulsar cluster. " + + "Operations include getting, setting, and resetting quotas. " + + "Requires super-user permissions for all operations." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- quota: The resource quota configuration for a specific namespace bundle or the default quota" + + operationDesc := "Operation to perform. Available operations:\n" + + "- get: Get the resource quota for a specified namespace bundle or default quota\n" + + "- set: Set the resource quota for a specified namespace bundle or default quota (requires super-user permissions)\n" + + "- reset: Reset a namespace bundle's resource quota to default value (requires super-user permissions)" + + resourceQuotasTool := mcp.NewTool("pulsar_admin_resourcequota", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in the format 'tenant/namespace'. "+ + "Optional for 'get' and 'set' operations (to get/set default quota if omitted). "+ + "Required for 'reset' operation."), + ), + mcp.WithString("bundle", + mcp.Description("The bundle range in the format '{start-boundary}_{end-boundary}'. "+ + "Must be specified together with namespace. Bundle is a hash range of the topic names belonging to a namespace."), + ), + mcp.WithNumber("msgRateIn", + mcp.Description("Expected incoming messages per second. Required for 'set' operation. "+ + "This defines the maximum rate of incoming messages allowed for the namespace or bundle."), + ), + mcp.WithNumber("msgRateOut", + mcp.Description("Expected outgoing messages per second. Required for 'set' operation. "+ + "This defines the maximum rate of outgoing messages allowed for the namespace or bundle."), + ), + mcp.WithNumber("bandwidthIn", + mcp.Description("Expected inbound bandwidth in bytes per second. Required for 'set' operation. "+ + "This defines the maximum rate of incoming bytes allowed for the namespace or bundle."), + ), + mcp.WithNumber("bandwidthOut", + mcp.Description("Expected outbound bandwidth in bytes per second. Required for 'set' operation. "+ + "This defines the maximum rate of outgoing bytes allowed for the namespace or bundle."), + ), + mcp.WithNumber("memory", + mcp.Description("Expected memory usage in Mbytes. Required for 'set' operation. "+ + "This defines the maximum memory allowed for storing messages for the namespace or bundle."), + ), + mcp.WithBoolean("dynamic", + mcp.Description("Whether to allow quota to be dynamically re-calculated. Optional for 'set' operation. "+ + "If true, the broker can dynamically adjust the quota based on the current usage patterns."), + ), + ) + s.AddTool(resourceQuotasTool, handleResourceQuotaTool(readOnly)) +} + +// handleResourceQuotaTool returns a function that handles resource quota operations +func handleResourceQuotaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "set" || operation == "reset") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "quota" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'quota' is supported", resource)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "get": + return handleQuotaGet(admin, request) + case "set": + return handleQuotaSet(admin, request) + case "reset": + return handleQuotaReset(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: get, set, reset", operation)), nil + } + } +} + +// handleQuotaGet handles getting a resource quota +func handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get optional parameters + namespace, hasNamespace := optionalParam[string](request.Params.Arguments, "namespace") + bundle, hasBundle := optionalParam[string](request.Params.Arguments, "bundle") + + // Check if both namespace and bundle are provided or neither is provided + if (hasNamespace && !hasBundle) || (!hasNamespace && hasBundle) { + return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil + } + + var ( + resourceQuotaData *utils.ResourceQuota + getErr error + ) + + if !hasNamespace && !hasBundle { + // Get default resource quota + resourceQuotaData, getErr = admin.ResourceQuotas().GetDefaultResourceQuota() + if getErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get default resource quota: %v", getErr)), nil + } + } else { + // Get namespace bundle resource quota + nsName, getErr := utils.GetNamespaceName(namespace) + if getErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, getErr)), nil + } + resourceQuotaData, getErr = admin.ResourceQuotas().GetNamespaceBundleResourceQuota(nsName.String(), bundle) + if getErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, getErr)), nil + } + } + + // Format the output + jsonBytes, err := json.Marshal(resourceQuotaData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal resource quota data: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleQuotaSet handles setting a resource quota +func handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters for set operation + msgRateIn, err := requiredParam[float64](request.Params.Arguments, "msgRateIn") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateIn' for quota.set: %v", err)), nil + } + + msgRateOut, err := requiredParam[float64](request.Params.Arguments, "msgRateOut") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateOut' for quota.set: %v", err)), nil + } + + bandwidthIn, err := requiredParam[float64](request.Params.Arguments, "bandwidthIn") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthIn' for quota.set: %v", err)), nil + } + + bandwidthOut, err := requiredParam[float64](request.Params.Arguments, "bandwidthOut") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthOut' for quota.set: %v", err)), nil + } + + memory, err := requiredParam[float64](request.Params.Arguments, "memory") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'memory' for quota.set: %v", err)), nil + } + + // Get optional parameters + namespace, hasNamespace := optionalParam[string](request.Params.Arguments, "namespace") + bundle, hasBundle := optionalParam[string](request.Params.Arguments, "bundle") + dynamic, hasDynamic := optionalParam[bool](request.Params.Arguments, "dynamic") + + if !hasDynamic { + dynamic = false + } + + // Check if both namespace and bundle are provided or neither is provided + if (hasNamespace && !hasBundle) || (!hasNamespace && hasBundle) { + return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil + } + + // Create resource quota object + quota := utils.NewResourceQuota() + quota.MsgRateIn = msgRateIn + quota.MsgRateOut = msgRateOut + quota.BandwidthIn = bandwidthIn + quota.BandwidthOut = bandwidthOut + quota.Memory = memory + quota.Dynamic = dynamic + + var resultMsg string + if !hasNamespace && !hasBundle { + // Set default resource quota + err = admin.ResourceQuotas().SetDefaultResourceQuota(*quota) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set default resource quota: %v", err)), nil + } + resultMsg = "Default resource quota set successfully" + } else { + // Set namespace bundle resource quota + err = admin.ResourceQuotas().SetNamespaceBundleResourceQuota(namespace, bundle, *quota) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, err)), nil + } + resultMsg = fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' set successfully", namespace, bundle) + } + + return mcp.NewToolResultText(resultMsg), nil +} + +// handleQuotaReset handles resetting a resource quota +func handleQuotaReset(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters for reset operation + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for quota.reset: %v", err)), nil + } + + bundle, err := requiredParam[string](request.Params.Arguments, "bundle") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bundle' for quota.reset: %v", err)), nil + } + + // Parse namespace name + nsName, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + } + + // Reset namespace bundle resource quota + err = admin.ResourceQuotas().ResetNamespaceBundleResourceQuota(nsName.String(), bundle) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to reset resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' reset to default successfully", + namespace, bundle)), nil +} diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go new file mode 100644 index 0000000..01df186 --- /dev/null +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -0,0 +1,239 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "os" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddSchemasTools adds schema-related tools to the MCP server +func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminSchemas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Add unified schema management tool + toolDesc := "Manage Apache Pulsar schemas for topics. " + + "Schemas in Pulsar define the structure of message data, enabling data validation, evolution, and interoperability. " + + "Pulsar supports multiple schema types including AVRO, JSON, PROTOBUF, etc., allowing strong typing of message content. " + + "Schema versioning ensures backward/forward compatibility as data structures evolve over time. " + + "Operations include getting, uploading, and deleting schemas. " + + "Requires namespace admin permissions for all operations." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- schema: The schema configuration for a specific topic" + + operationDesc := "Operation to perform. Available operations:\n" + + "- get: Get the schema for a topic (optionally by version)\n" + + "- upload: Upload a new schema for a topic (requires namespace admin permissions)\n" + + "- delete: Delete the schema for a topic (requires namespace admin permissions)" + + schemasTool := mcp.NewTool("pulsar_admin_schema", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ + "A schema is always associated with a specific topic. The schema will be enforced for all producers "+ + "and consumers of this topic."), + ), + mcp.WithNumber("version", + mcp.Description("The schema version (optional for 'get' operation). "+ + "Pulsar maintains a versioned history of schemas. If not specified, the latest schema version will be returned. "+ + "Use this parameter to retrieve a specific historical version of the schema."), + ), + mcp.WithString("filename", + mcp.Description("The file path of the schema definition (required for 'upload' operation). "+ + "The file should contain a JSON object with 'type', 'schema', and optionally 'properties' fields. "+ + "Supported schema types include: AVRO, JSON, PROTOBUF, PROTOBUF_NATIVE, KEY_VALUE, BYTES, STRING, INT8, INT16, INT32, INT64, FLOAT, DOUBLE, BOOLEAN, NONE."), + ), + ) + s.AddTool(schemasTool, handleSchemaTool(readOnly)) +} + +// handleSchemaTool returns a function that handles schema operations +func handleSchemaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "upload" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "schema" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'schema' is supported", resource)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "get": + return handleSchemaGet(admin, topic, request) + case "upload": + return handleSchemaUpload(admin, topic, request) + case "delete": + return handleSchemaDelete(admin, topic) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: get, upload, delete", operation)), nil + } + } +} + +// handleSchemaGet handles getting a schema +func handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get optional version parameter + version, hasVersion := optionalParam[float64](request.Params.Arguments, "version") + + // Get schema info + if hasVersion { + // Get schema by version + info, err := admin.Schemas().GetSchemaInfoByVersion(topic, int64(version)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema version %v for topic '%s': %v", + version, topic, err)), nil + } + + jsonBytes, err := json.Marshal(info) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema information: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil + } + // Get latest schema + schemaInfoWithVersion, err := admin.Schemas().GetSchemaInfoWithVersion(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get latest schema for topic '%s': %v", + topic, err)), nil + } + + // Format the output + var output bytes.Buffer + name, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema name: %v", err)), nil + } + + schemaType, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Type) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema type: %v", err)), nil + } + + properties, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema properties: %v", err)), nil + } + + schema, err := prettyPrint(schemaInfoWithVersion.SchemaInfo.Schema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to format schema definition: %v", err)), nil + } + + fmt.Fprintf(&output, "{\n name: %s \n schema: %s\n type: %s \n properties: %s\n version: %d\n}", + string(name), string(schema), string(schemaType), string(properties), schemaInfoWithVersion.Version) + + return mcp.NewToolResultText(output.String()), nil + +} + +// handleSchemaUpload handles uploading a schema +func handleSchemaUpload(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + filename, err := requiredParam[string](request.Params.Arguments, "filename") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'filename' for schema.upload. Please provide the path to the schema definition file: %v", err)), nil + } + + // Read and parse the schema file + var payload utils.PostSchemaPayload + file, err := os.ReadFile(filename) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to read schema file '%s': %v", filename, err)), nil + } + + err = json.Unmarshal(file, &payload) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse schema file '%s'. The file must contain valid JSON with 'type', 'schema', and optionally 'properties' fields: %v", + filename, err)), nil + } + + // Upload the schema + err = admin.Schemas().CreateSchemaByPayload(topic, payload) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to upload schema for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Schema uploaded successfully for topic '%s'", topic)), nil +} + +// handleSchemaDelete handles deleting a schema +func handleSchemaDelete(admin cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Delete the schema + err := admin.Schemas().DeleteSchema(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete schema for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Schema deleted successfully for topic '%s'", topic)), nil +} + +func prettyPrint(b []byte) ([]byte, error) { + var out bytes.Buffer + err := json.Indent(&out, b, "", " ") + return out.Bytes(), err +} diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go new file mode 100644 index 0000000..7fb16c8 --- /dev/null +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -0,0 +1,594 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" +) + +// PulsarAdminAddSinksTools adds a unified sink-related tool to the MCP server +func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminSinks)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Create a single unified tool for all sink operations + toolDesc := "Manage Apache Pulsar Sinks for data movement and integration. " + + "Pulsar Sinks are connectors that export data from Pulsar topics to external systems such as databases, " + + "storage services, messaging systems, and third-party applications. " + + "Sinks consume messages from one or more Pulsar topics, transform the data if needed, " + + "and write it to external systems in a format compatible with the target destination. " + + "Built-in sink connectors are available for common systems like Kafka, JDBC, Elasticsearch, and cloud storage. " + + "Sinks follow the tenant/namespace/name hierarchy for organization and access control, " + + "can scale through parallelism configuration, and support configurable subscription types. " + + "This tool provides complete lifecycle management including deployment, configuration, " + + "monitoring, and runtime control. Sinks require proper permissions to access their input topics." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all sinks under a specific tenant and namespace\n" + + "- get: Get the configuration of a sink\n" + + "- status: Get the runtime status of a sink (instances, metrics)\n" + + "- create: Deploy a new sink with specified parameters\n" + + "- update: Update the configuration of an existing sink\n" + + "- delete: Delete a sink\n" + + "- start: Start a stopped sink\n" + + "- stop: Stop a running sink\n" + + "- restart: Restart a sink\n" + + "- list-built-in: List all built-in sink connectors available in the system" + + sinkTool := mcp.NewTool("pulsar_admin_sinks", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc)), + mcp.WithString("tenant", + mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ + "providing multi-tenancy and resource isolation. Sinks deployed within a tenant "+ + "inherit its permissions and resource quotas. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("namespace", + mcp.Description("The namespace name. Namespaces are logical groupings of topics and sinks "+ + "within a tenant. They encapsulate configuration policies and access control. "+ + "Sinks in a namespace typically process topics within the same namespace. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("name", + mcp.Description("The sink name. Required for all operations except 'list' and 'list-built-in'. "+ + "Names should be descriptive of the sink's purpose and must be unique within a namespace. "+ + "Sink names are used in metrics, logs, and when addressing the sink via APIs.")), + mcp.WithString("archive", + mcp.Description("Path to the archive file containing the sink code. Optional for 'create' and 'update' operations. "+ + "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ + "The archive should contain all dependencies for the sink connector. "+ + "Either archive or sink-type must be specified, but not both.")), + mcp.WithString("sink-type", + mcp.Description("The built-in sink connector type to use. Optional for 'create' and 'update' operations. "+ + "Specifies which built-in connector to use, such as 'jdbc', 'elastic-search', 'kafka', etc. "+ + "Use 'list-built-in' operation to see available sink types. "+ + "Either sink-type or archive must be specified, but not both.")), + mcp.WithArray("inputs", + mcp.Description("The sink's input topics (array of strings). Optional for 'create' and 'update' operations. "+ + "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ + "Sinks can consume from multiple topics, but they should have compatible schemas. "+ + "All input topics should exist before the sink is created. "+ + "Either inputs or topics-pattern must be specified.")), + mcp.WithString("topics-pattern", + mcp.Description("TopicsPattern to consume from list of topics that match the pattern. Optional for 'create' and 'update' operations. "+ + "Specified as a regular expression, e.g., 'persistent://tenant/namespace/prefix.*'. "+ + "This allows the sink to automatically consume from topics that match the pattern, "+ + "including topics created after the sink is deployed. "+ + "Either topics-pattern or inputs must be specified.")), + mcp.WithString("subs-name", + mcp.Description("Pulsar subscription name for input topic consumer. Optional for 'create' and 'update' operations. "+ + "Defines the subscription name used by the sink to consume from input topics. "+ + "If not specified, a default subscription name will be generated. "+ + "The subscription type used is Shared by default.")), + mcp.WithNumber("parallelism", + mcp.Description("The parallelism factor of the sink. Optional for 'create' and 'update' operations. "+ + "Determines how many instances of the sink will run concurrently. "+ + "Higher values improve throughput but require more resources. "+ + "Default is 1 (single instance). Recommended to align with topic partition count "+ + "when consuming from partitioned topics.")), + mcp.WithObject("sink-config", + mcp.Description("User-defined sink config key/values. Optional for 'create' and 'update' operations. "+ + "Provides configuration parameters specific to the sink connector being used. "+ + "For example, JDBC connection strings, Elasticsearch indices, S3 bucket details, etc. "+ + "Specify as a JSON object with configuration properties required by the specific sink type. "+ + "Example: {\"jdbcUrl\": \"jdbc:postgresql://localhost:5432/database\", \"tableName\": \"events\"}")), + ) + + // Add the tool with the handler that captures readOnly state + s.AddTool(sinkTool, handleSinksTool(readOnly)) +} + +// handleSinksTool returns a handler function for the unified sinks tool +func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract and validate operation parameter + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil + } + + // Check if the operation is valid + validOperations := map[string]bool{ + "list": true, "get": true, "status": true, "create": true, "update": true, + "delete": true, "start": true, "stop": true, "restart": true, "list-built-in": true, + } + + if !validOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil + } + + // Check write permissions for write operations + writeOperations := map[string]bool{ + "create": true, "update": true, "delete": true, "start": true, + "stop": true, "restart": true, + } + + if readOnly && writeOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sinks.", operation)), nil + } + + // Create admin client + admin := cmdutils.NewPulsarClientWithAPIVersion(config.V3) + + // List built-in sinks doesn't require tenant, namespace or name + if operation == "list-built-in" { + return handleListBuiltInSinks(ctx, admin) + } + + // Extract common parameters (all operations except list-built-in require tenant and namespace) + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil + } + + // For all operations except 'list', name is required + var name string + if operation != "list" { + name, err = requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The sink name must be specified for this operation.", operation, err)), nil + } + } + + // Handle operations + switch operation { + case "list": + return handleSinkList(ctx, admin, tenant, namespace) + case "get": + return handleSinkGet(ctx, admin, tenant, namespace, name) + case "status": + return handleSinkStatus(ctx, admin, tenant, namespace, name) + case "create": + return handleSinkCreate(ctx, admin, request.Params.Arguments) + case "update": + return handleSinkUpdate(ctx, admin, request.Params.Arguments) + case "delete": + return handleSinkDelete(ctx, admin, tenant, namespace, name) + case "start": + return handleSinkStart(ctx, admin, tenant, namespace, name) + case "stop": + return handleSinkStop(ctx, admin, tenant, namespace, name) + case "restart": + return handleSinkRestart(ctx, admin, tenant, namespace, name) + default: + // This should never happen due to the valid operations check above + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + } + } +} + +// handleSinkList handles listing all sinks under a namespace +func handleSinkList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { + sinks, err := admin.Sinks().ListSinks(tenant, namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list sinks in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", + tenant, namespace, err)), nil + } + + // Convert result to JSON string + sinksJSON, err := json.Marshal(sinks) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink list: %v", err)), nil + } + + return mcp.NewToolResultText(string(sinksJSON)), nil +} + +// handleSinkGet handles getting information about a sink +func handleSinkGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + sink, err := admin.Sinks().GetSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have proper permissions.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + sinkJSON, err := json.Marshal(sink) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink info: %v", err)), nil + } + + return mcp.NewToolResultText(string(sinkJSON)), nil +} + +// handleSinkStatus handles getting the status of a sink +func handleSinkStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + status, err := admin.Sinks().GetSinkStatus(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + statusJSON, err := json.Marshal(status) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink status: %v", err)), nil + } + + return mcp.NewToolResultText(string(statusJSON)), nil +} + +// handleSinkCreate handles creating a new sink +func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := requiredParam[string](arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := requiredParam[string](arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SinkData object + sinkData := &utils.SinkData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SinkConf: &utils.SinkConfig{}, + } + + // Get optional parameters + archive, hasArchive := optionalParam[string](arguments, "archive") + if hasArchive && archive != "" { + sinkData.Archive = archive + } + + sinkType, hasSinkType := optionalParam[string](arguments, "sink-type") + if hasSinkType && sinkType != "" { + sinkData.SinkType = sinkType + } + + inputsArray, hasInputs := optionalParamArray[string](arguments, "inputs") + if hasInputs && len(inputsArray) > 0 { + sinkData.Inputs = strings.Join(inputsArray, ",") + } + + topicsPattern, hasTopicsPattern := optionalParam[string](arguments, "topics-pattern") + if hasTopicsPattern && topicsPattern != "" { + sinkData.TopicsPattern = topicsPattern + } + + subsName, hasSubsName := optionalParam[string](arguments, "subs-name") + if hasSubsName && subsName != "" { + sinkData.SubsName = subsName + } + + parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + if hasParallelism { + sinkData.Parallelism = int(parallelismFloat) + } + + // Get sink config if available + var sinkConfigMap map[string]interface{} + sinkConfigObj, ok := arguments["sink-config"] + if ok && sinkConfigObj != nil { + if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { + sinkConfigMap = configMap + // Convert to JSON string + sinkConfigJSON, err := json.Marshal(sinkConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil + } + sinkData.SinkConfigString = string(sinkConfigJSON) + } + } + + // Validate inputs + if sinkData.Archive == "" && sinkData.SinkType == "" { + return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'sink-type' must be specified for sink creation. Use 'archive' for custom connectors or 'sink-type' for built-in connectors."), nil + } + + if sinkData.Archive != "" && sinkData.SinkType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil + } + + if sinkData.Inputs == "" && sinkData.TopicsPattern == "" { + return mcp.NewToolResultError("Missing required parameter: Either 'inputs' or 'topics-pattern' must be specified. The sink needs a source of data to consume from Pulsar."), nil + } + + // Process the arguments + err = processArguments(sinkData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create the sink + if sinkData.Archive != "" && isPackageURLSupported(sinkData.Archive) { + err = admin.Sinks().CreateSinkWithURL(sinkData.SinkConf, sinkData.Archive) + } else { + err = admin.Sinks().CreateSink(sinkData.SinkConf, sinkData.Archive) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create sink '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created sink '%s' successfully in tenant '%s' namespace '%s'. The sink will start consuming from its input topics and writing to the configured destination.", + name, tenant, namespace)), nil +} + +// handleSinkUpdate handles updating an existing sink +func handleSinkUpdate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := requiredParam[string](arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := requiredParam[string](arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SinkData object + sinkData := &utils.SinkData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SinkConf: &utils.SinkConfig{}, + } + + // Get optional parameters + archive, hasArchive := optionalParam[string](arguments, "archive") + if hasArchive && archive != "" { + sinkData.Archive = archive + } + + sinkType, hasSinkType := optionalParam[string](arguments, "sink-type") + if hasSinkType && sinkType != "" { + sinkData.SinkType = sinkType + } + + inputsArray, hasInputs := optionalParamArray[string](arguments, "inputs") + if hasInputs && len(inputsArray) > 0 { + sinkData.Inputs = strings.Join(inputsArray, ",") + } + + topicsPattern, hasTopicsPattern := optionalParam[string](arguments, "topics-pattern") + if hasTopicsPattern && topicsPattern != "" { + sinkData.TopicsPattern = topicsPattern + } + + subsName, hasSubsName := optionalParam[string](arguments, "subs-name") + if hasSubsName && subsName != "" { + sinkData.SubsName = subsName + } + + parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + if hasParallelism { + sinkData.Parallelism = int(parallelismFloat) + } + + // Get sink config if available + var sinkConfigMap map[string]interface{} + sinkConfigObj, ok := arguments["sink-config"] + if ok && sinkConfigObj != nil { + if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { + sinkConfigMap = configMap + // Convert to JSON string + sinkConfigJSON, err := json.Marshal(sinkConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil + } + sinkData.SinkConfigString = string(sinkConfigJSON) + } + } + + // Validate inputs if both are specified + if sinkData.Archive != "" && sinkData.SinkType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil + } + + // Process the arguments + err = processArguments(sinkData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create update options + updateOptions := &utils.UpdateOptions{ + UpdateAuthData: true, + } + + // Update the sink + if sinkData.Archive != "" && isPackageURLSupported(sinkData.Archive) { + err = admin.Sinks().UpdateSinkWithURL(sinkData.SinkConf, sinkData.Archive, updateOptions) + } else { + err = admin.Sinks().UpdateSink(sinkData.SinkConf, sinkData.Archive, updateOptions) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and all parameters are valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Updated sink '%s' successfully in tenant '%s' namespace '%s'. The sink may need to be restarted to apply all changes.", + name, tenant, namespace)), nil +} + +// handleSinkDelete handles deleting a sink +func handleSinkDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().DeleteSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have deletion permissions.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted sink '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + name, tenant, namespace)), nil +} + +// handleSinkStart handles starting a sink +func handleSinkStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().StartSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to start sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is not already running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Started sink '%s' successfully in tenant '%s' namespace '%s'. The sink will begin consuming from its input topics.", + name, tenant, namespace)), nil +} + +// handleSinkStop handles stopping a sink +func handleSinkStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().StopSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to stop sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is currently running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Stopped sink '%s' successfully in tenant '%s' namespace '%s'. The sink will no longer consume messages until restarted.", + name, tenant, namespace)), nil +} + +// handleSinkRestart handles restarting a sink +func handleSinkRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().RestartSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Restarted sink '%s' successfully in tenant '%s' namespace '%s'. All sink instances have been restarted.", + name, tenant, namespace)), nil +} + +// handleListBuiltInSinks handles listing all built-in sink connectors +func handleListBuiltInSinks(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { + sinks, err := admin.Sinks().GetBuiltInSinks() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sinks: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil + } + + // Convert result to JSON string + sinksJSON, err := json.Marshal(sinks) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sinks: %v", err)), nil + } + + return mcp.NewToolResultText(string(sinksJSON)), nil +} + +// processArguments is a simplified version of the pulsarctl function to process sink arguments +func processArguments(sinkData *utils.SinkData) error { + // Initialize config if needed + if sinkData.SinkConf == nil { + sinkData.SinkConf = new(utils.SinkConfig) + } + + // Set basic config values + sinkData.SinkConf.Tenant = sinkData.Tenant + sinkData.SinkConf.Namespace = sinkData.Namespace + sinkData.SinkConf.Name = sinkData.Name + + // Set inputs if provided + if sinkData.Inputs != "" { + inputTopics := strings.Split(sinkData.Inputs, ",") + sinkData.SinkConf.Inputs = inputTopics + } + + // Set topics pattern if provided + if sinkData.TopicsPattern != "" { + sinkData.SinkConf.TopicsPattern = &sinkData.TopicsPattern + } + + // Set subscription name if provided + if sinkData.SubsName != "" { + sinkData.SinkConf.SourceSubscriptionName = sinkData.SubsName + } + + // Set parallelism if provided + if sinkData.Parallelism != 0 { + sinkData.SinkConf.Parallelism = sinkData.Parallelism + } else if sinkData.SinkConf.Parallelism <= 0 { + sinkData.SinkConf.Parallelism = 1 + } + + // Handle archive and sink-type + if sinkData.Archive != "" && sinkData.SinkType != "" { + return fmt.Errorf("cannot specify both archive and sink-type") + } + + if sinkData.Archive != "" { + sinkData.SinkConf.Archive = sinkData.Archive + } + + if sinkData.SinkType != "" { + // In a real implementation, we would validate the sink type here + sinkData.SinkConf.Archive = sinkData.SinkType + } + + // Parse sink config if provided + if sinkData.SinkConfigString != "" { + var configs map[string]interface{} + if err := json.Unmarshal([]byte(sinkData.SinkConfigString), &configs); err != nil { + return fmt.Errorf("failed to parse sink config: %v", err) + } + sinkData.SinkConf.Configs = configs + } + + return nil +} diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go new file mode 100644 index 0000000..a7d3845 --- /dev/null +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -0,0 +1,630 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" +) + +// PulsarAdminAddSourcesTools adds a unified source-related tool to the MCP server +func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminSources)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Create a single unified tool for all source operations + toolDesc := "Manage Apache Pulsar Sources for data ingestion and integration. " + + "Pulsar Sources are connectors that import data from external systems into Pulsar topics. " + + "Sources connect to external systems such as databases, messaging platforms, storage services, " + + "and real-time data streams to pull data and publish it to Pulsar topics. " + + "Built-in source connectors are available for common systems like Kafka, JDBC, AWS services, and more. " + + "Sources follow the tenant/namespace/name hierarchy for organization and access control, " + + "can scale through parallelism configuration, and support various processing guarantees. " + + "This tool provides complete lifecycle management including deployment, configuration, " + + "monitoring, and runtime control. Sources use schema types to ensure data compatibility." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all sources under a specific tenant and namespace\n" + + "- get: Get the configuration of a source\n" + + "- status: Get the runtime status of a source (instances, metrics)\n" + + "- create: Deploy a new source with specified parameters\n" + + "- update: Update the configuration of an existing source\n" + + "- delete: Delete a source\n" + + "- start: Start a stopped source\n" + + "- stop: Stop a running source\n" + + "- restart: Restart a source\n" + + "- list-built-in: List all built-in source connectors available in the system" + + sourceTool := mcp.NewTool("pulsar_admin_sources", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc)), + mcp.WithString("tenant", + mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ + "providing multi-tenancy and resource isolation. Sources deployed within a tenant "+ + "inherit its permissions and resource quotas. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("namespace", + mcp.Description("The namespace name. Namespaces are logical groupings of topics and sources "+ + "within a tenant. They encapsulate configuration policies and access control. "+ + "Sources in a namespace typically publish to topics within the same namespace. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("name", + mcp.Description("The source name. Required for all operations except 'list' and 'list-built-in'. "+ + "Names should be descriptive of the source's purpose and must be unique within a namespace. "+ + "Source names are used in metrics, logs, and when addressing the source via APIs.")), + mcp.WithString("archive", + mcp.Description("Path to the archive file containing the source code. Optional for 'create' and 'update' operations. "+ + "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ + "The archive should contain all dependencies for the source connector. "+ + "Either archive or source-type must be specified, but not both.")), + mcp.WithString("source-type", + mcp.Description("The built-in source connector type to use. Optional for 'create' and 'update' operations. "+ + "Specifies which built-in connector to use, such as 'kafka', 'jdbc', 'file', etc. "+ + "Use 'list-built-in' operation to see available source types. "+ + "Either source-type or archive must be specified, but not both.")), + mcp.WithString("destination-topic-name", + mcp.Description("The Pulsar topic to which data is published. Required for 'create' operation, optional for 'update'. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "This is the topic where the source will send the data it extracts from the external system. "+ + "The topic will be automatically created if it doesn't exist.")), + mcp.WithString("deserialization-classname", + mcp.Description("The SerDe (Serialization/Deserialization) classname for the source. Optional for 'create' and 'update'. "+ + "Specifies how to convert data from the external system into Pulsar messages. "+ + "Common SerDe classes include AvroSchema, JsonSchema, StringSchema, etc. "+ + "If not specified, the source will use the default SerDe for the connector type.")), + mcp.WithString("schema-type", + mcp.Description("The schema type to be used to encode messages emitted from the source. Optional for 'create' and 'update'. "+ + "Available schema types include: 'avro', 'json', 'protobuf', 'string', etc. "+ + "Schema types ensure data compatibility and enable schema evolution. "+ + "The schema type should match the format of data being ingested.")), + mcp.WithString("classname", + mcp.Description("The source's class name if archive is a file-url-path (file://...). Optional for 'create' and 'update'. "+ + "This specifies the fully qualified class name that implements the source connector. "+ + "Only needed when using a custom source implementation in a JAR file. "+ + "Built-in connectors don't require this parameter.")), + mcp.WithString("processing-guarantees", + mcp.Description("The processing guarantees (delivery semantics) applied to the source. Optional for 'create' and 'update'. "+ + "Available options: 'atleast_once', 'atmost_once', 'effectively_once'. "+ + "Controls how data is delivered in failure scenarios. "+ + "'atleast_once' is the most common and ensures no data loss but may have duplicates. "+ + "Default is 'atleast_once'.")), + mcp.WithNumber("parallelism", + mcp.Description("The parallelism factor of the source. Optional for 'create' and 'update' operations. "+ + "Determines how many instances of the source will run concurrently. "+ + "Higher values improve throughput but require more resources. "+ + "Default is 1 (single instance). Recommended to align with both source capacity "+ + "and destination topic partition count.")), + mcp.WithObject("source-config", + mcp.Description("User-defined source config key/values. Optional for 'create' and 'update' operations. "+ + "Provides configuration parameters specific to the source connector being used. "+ + "For example, database connection details, Kafka bootstrap servers, credentials, etc. "+ + "Specify as a JSON object with configuration properties required by the specific source type. "+ + "Example: {\"topic\": \"external-kafka-topic\", \"bootstrapServers\": \"kafka:9092\"}")), + ) + + // Add the tool with the handler that captures readOnly state + s.AddTool(sourceTool, handleSourcesTool(readOnly)) +} + +// handleSourcesTool returns a handler function for the unified sources tool +func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract and validate operation parameter + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil + } + + // Check if the operation is valid + validOperations := map[string]bool{ + "list": true, "get": true, "status": true, "create": true, "update": true, + "delete": true, "start": true, "stop": true, "restart": true, "list-built-in": true, + } + + if !validOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil + } + + // Check write permissions for write operations + writeOperations := map[string]bool{ + "create": true, "update": true, "delete": true, "start": true, + "stop": true, "restart": true, + } + + if readOnly && writeOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sources.", operation)), nil + } + + // Create admin client + admin := cmdutils.NewPulsarClientWithAPIVersion(config.V3) + + // List built-in sources doesn't require tenant, namespace or name + if operation == "list-built-in" { + return handleListBuiltInSources(ctx, admin) + } + + // Extract common parameters (all operations except list-built-in require tenant and namespace) + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil + } + + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil + } + + // For all operations except 'list', name is required + var name string + if operation != "list" { + name, err = requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The source name must be specified for this operation.", operation, err)), nil + } + } + + // Handle operations + switch operation { + case "list": + return handleSourceList(ctx, admin, tenant, namespace) + case "get": + return handleSourceGet(ctx, admin, tenant, namespace, name) + case "status": + return handleSourceStatus(ctx, admin, tenant, namespace, name) + case "create": + return handleSourceCreate(ctx, admin, request.Params.Arguments) + case "update": + return handleSourceUpdate(ctx, admin, request.Params.Arguments) + case "delete": + return handleSourceDelete(ctx, admin, tenant, namespace, name) + case "start": + return handleSourceStart(ctx, admin, tenant, namespace, name) + case "stop": + return handleSourceStop(ctx, admin, tenant, namespace, name) + case "restart": + return handleSourceRestart(ctx, admin, tenant, namespace, name) + default: + // This should never happen due to the valid operations check above + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + } + } +} + +// handleSourceList handles listing all sources under a namespace +func handleSourceList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { + sources, err := admin.Sources().ListSources(tenant, namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list sources in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", + tenant, namespace, err)), nil + } + + // Convert result to JSON string + sourcesJSON, err := json.Marshal(sources) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source list: %v", err)), nil + } + + return mcp.NewToolResultText(string(sourcesJSON)), nil +} + +// handleSourceGet handles getting information about a source +func handleSourceGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + source, err := admin.Sources().GetSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have proper permissions.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + sourceJSON, err := json.Marshal(source) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source info: %v", err)), nil + } + + return mcp.NewToolResultText(string(sourceJSON)), nil +} + +// handleSourceStatus handles getting the status of a source +func handleSourceStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + status, err := admin.Sources().GetSourceStatus(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + statusJSON, err := json.Marshal(status) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source status: %v", err)), nil + } + + return mcp.NewToolResultText(string(statusJSON)), nil +} + +// handleSourceCreate handles creating a new source +func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := requiredParam[string](arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := requiredParam[string](arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SourceData object + sourceData := &utils.SourceData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SourceConf: &utils.SourceConfig{}, + } + + // Get optional parameters + archive, hasArchive := optionalParam[string](arguments, "archive") + if hasArchive && archive != "" { + sourceData.Archive = archive + } + + sourceType, hasSourceType := optionalParam[string](arguments, "source-type") + if hasSourceType && sourceType != "" { + sourceData.SourceType = sourceType + } + + destTopic, hasDestTopic := optionalParam[string](arguments, "destination-topic-name") + if hasDestTopic && destTopic != "" { + sourceData.DestinationTopicName = destTopic + } + + deserializationClassName, hasDeserialization := optionalParam[string](arguments, "deserialization-classname") + if hasDeserialization && deserializationClassName != "" { + sourceData.DeserializationClassName = deserializationClassName + } + + schemaType, hasSchemaType := optionalParam[string](arguments, "schema-type") + if hasSchemaType && schemaType != "" { + sourceData.SchemaType = schemaType + } + + className, hasClassName := optionalParam[string](arguments, "classname") + if hasClassName && className != "" { + sourceData.ClassName = className + } + + processingGuarantees, hasProcessingGuarantees := optionalParam[string](arguments, "processing-guarantees") + if hasProcessingGuarantees && processingGuarantees != "" { + sourceData.ProcessingGuarantees = processingGuarantees + } + + parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + if hasParallelism { + sourceData.Parallelism = int(parallelismFloat) + } + + // Get source config if available + var sourceConfigMap map[string]interface{} + sourceConfigObj, ok := arguments["source-config"] + if ok && sourceConfigObj != nil { + if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { + sourceConfigMap = configMap + // Convert to JSON string + sourceConfigJSON, err := json.Marshal(sourceConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil + } + sourceData.SourceConfigString = string(sourceConfigJSON) + } + } + + // Validate inputs + if sourceData.Archive == "" && sourceData.SourceType == "" { + return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'source-type' must be specified for source creation. Use 'archive' for custom connectors or 'source-type' for built-in connectors."), nil + } + + if sourceData.Archive != "" && sourceData.SourceType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil + } + + if sourceData.DestinationTopicName == "" { + return mcp.NewToolResultError("Missing required parameter: 'destination-topic-name' must be specified. This is the Pulsar topic where the source will publish data."), nil + } + + // Process the arguments + err = processSourceArguments(sourceData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create the source + if sourceData.Archive != "" && isPackageURLSupported(sourceData.Archive) { + err = admin.Sources().CreateSourceWithURL(sourceData.SourceConf, sourceData.Archive) + } else { + err = admin.Sources().CreateSource(sourceData.SourceConf, sourceData.Archive) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create source '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created source '%s' successfully in tenant '%s' namespace '%s'. The source will start pulling data from the external system and publishing to the destination topic.", + name, tenant, namespace)), nil +} + +// handleSourceUpdate handles updating an existing source +func handleSourceUpdate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := requiredParam[string](arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := requiredParam[string](arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SourceData object + sourceData := &utils.SourceData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SourceConf: &utils.SourceConfig{}, + } + + // Get optional parameters + archive, hasArchive := optionalParam[string](arguments, "archive") + if hasArchive && archive != "" { + sourceData.Archive = archive + } + + sourceType, hasSourceType := optionalParam[string](arguments, "source-type") + if hasSourceType && sourceType != "" { + sourceData.SourceType = sourceType + } + + destTopic, hasDestTopic := optionalParam[string](arguments, "destination-topic-name") + if hasDestTopic && destTopic != "" { + sourceData.DestinationTopicName = destTopic + } + + deserializationClassName, hasDeserialization := optionalParam[string](arguments, "deserialization-classname") + if hasDeserialization && deserializationClassName != "" { + sourceData.DeserializationClassName = deserializationClassName + } + + schemaType, hasSchemaType := optionalParam[string](arguments, "schema-type") + if hasSchemaType && schemaType != "" { + sourceData.SchemaType = schemaType + } + + className, hasClassName := optionalParam[string](arguments, "classname") + if hasClassName && className != "" { + sourceData.ClassName = className + } + + processingGuarantees, hasProcessingGuarantees := optionalParam[string](arguments, "processing-guarantees") + if hasProcessingGuarantees && processingGuarantees != "" { + sourceData.ProcessingGuarantees = processingGuarantees + } + + parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + if hasParallelism { + sourceData.Parallelism = int(parallelismFloat) + } + + // Get source config if available + var sourceConfigMap map[string]interface{} + sourceConfigObj, ok := arguments["source-config"] + if ok && sourceConfigObj != nil { + if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { + sourceConfigMap = configMap + // Convert to JSON string + sourceConfigJSON, err := json.Marshal(sourceConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil + } + sourceData.SourceConfigString = string(sourceConfigJSON) + } + } + + // Validate inputs if both are specified + if sourceData.Archive != "" && sourceData.SourceType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil + } + + // Process the arguments + err = processSourceArguments(sourceData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create update options + updateOptions := &utils.UpdateOptions{ + UpdateAuthData: true, + } + + // Update the source + if sourceData.Archive != "" && isPackageURLSupported(sourceData.Archive) { + err = admin.Sources().UpdateSourceWithURL(sourceData.SourceConf, sourceData.Archive, updateOptions) + } else { + err = admin.Sources().UpdateSource(sourceData.SourceConf, sourceData.Archive, updateOptions) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and all parameters are valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Updated source '%s' successfully in tenant '%s' namespace '%s'. The source may need to be restarted to apply all changes.", + name, tenant, namespace)), nil +} + +// handleSourceDelete handles deleting a source +func handleSourceDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().DeleteSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have deletion permissions.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted source '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + name, tenant, namespace)), nil +} + +// handleSourceStart handles starting a source +func handleSourceStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().StartSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to start source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is not already running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Started source '%s' successfully in tenant '%s' namespace '%s'. The source will begin pulling data from the external system.", + name, tenant, namespace)), nil +} + +// handleSourceStop handles stopping a source +func handleSourceStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().StopSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to stop source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is currently running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Stopped source '%s' successfully in tenant '%s' namespace '%s'. The source will no longer pull data until restarted.", + name, tenant, namespace)), nil +} + +// handleSourceRestart handles restarting a source +func handleSourceRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().RestartSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Restarted source '%s' successfully in tenant '%s' namespace '%s'. All source instances have been restarted.", + name, tenant, namespace)), nil +} + +// handleListBuiltInSources handles listing all built-in source connectors +func handleListBuiltInSources(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { + sources, err := admin.Sources().GetBuiltInSources() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sources: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil + } + + // Convert result to JSON string + sourcesJSON, err := json.Marshal(sources) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sources: %v", err)), nil + } + + return mcp.NewToolResultText(string(sourcesJSON)), nil +} + +// processSourceArguments is a simplified version of the pulsarctl function to process source arguments +func processSourceArguments(sourceData *utils.SourceData) error { + // Initialize config if needed + if sourceData.SourceConf == nil { + sourceData.SourceConf = new(utils.SourceConfig) + } + + // Set basic config values + sourceData.SourceConf.Tenant = sourceData.Tenant + sourceData.SourceConf.Namespace = sourceData.Namespace + sourceData.SourceConf.Name = sourceData.Name + + // Set destination topic if provided + if sourceData.DestinationTopicName != "" { + sourceData.SourceConf.TopicName = sourceData.DestinationTopicName + } + + // Set deserialization class name if provided + if sourceData.DeserializationClassName != "" { + sourceData.SourceConf.SerdeClassName = sourceData.DeserializationClassName + } + + // Set schema type if provided + if sourceData.SchemaType != "" { + sourceData.SourceConf.SchemaType = sourceData.SchemaType + } + + // Set class name if provided + if sourceData.ClassName != "" { + sourceData.SourceConf.ClassName = sourceData.ClassName + } + + // Set processing guarantees if provided + if sourceData.ProcessingGuarantees != "" { + sourceData.SourceConf.ProcessingGuarantees = sourceData.ProcessingGuarantees + } + + // Set parallelism if provided + if sourceData.Parallelism != 0 { + sourceData.SourceConf.Parallelism = sourceData.Parallelism + } else if sourceData.SourceConf.Parallelism <= 0 { + sourceData.SourceConf.Parallelism = 1 + } + + // Handle archive and source-type + if sourceData.Archive != "" && sourceData.SourceType != "" { + return fmt.Errorf("cannot specify both archive and source-type") + } + + if sourceData.Archive != "" { + sourceData.SourceConf.Archive = sourceData.Archive + } + + if sourceData.SourceType != "" { + // In a real implementation, we would validate the source type here + sourceData.SourceConf.Archive = sourceData.SourceType + } + + // Parse source config if provided + if sourceData.SourceConfigString != "" { + var configs map[string]interface{} + if err := json.Unmarshal([]byte(sourceData.SourceConfigString), &configs); err != nil { + return fmt.Errorf("failed to parse source config: %v", err) + } + sourceData.SourceConf.Configs = configs + } + + return nil +} diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go new file mode 100644 index 0000000..6f6ade4 --- /dev/null +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -0,0 +1,361 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddSubscriptionTools adds subscription-related tools to the MCP server +func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminSubscriptions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Add unified subscription management tool + toolDesc := "Manage Apache Pulsar subscriptions on topics. " + + "Subscriptions are named entities representing consumer groups that maintain their position in a topic. " + + "Pulsar supports multiple subscription modes (Exclusive, Shared, Failover, Key_Shared) to accommodate different messaging patterns. " + + "Each subscription tracks message acknowledgments independently, allowing multiple consumers to process messages at their own pace. " + + "Subscriptions persist even when all consumers disconnect, maintaining state and preventing message loss. " + + "Operations include listing, creating, deleting, and manipulating message cursors within subscriptions. " + + "Most operations require namespace admin permissions plus produce/consume permissions on the topic." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- subscription: A subscription on a topic representing a consumer group" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all subscriptions for a topic\n" + + "- create: Create a new subscription on a topic\n" + + "- delete: Delete a subscription from a topic\n" + + "- skip: Skip a specified number of messages for a subscription\n" + + "- expire: Expire messages older than specified time for a subscription\n" + + "- reset-cursor: Reset the cursor position for a subscription to a specific message ID" + + subscriptionTool := mcp.NewTool("pulsar_admin_subscription", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ + "For partitioned topics, you can either specify the base topic name (to apply the operation across all partitions) "+ + "or a specific partition in the format 'topicName-partition-N'."), + ), + mcp.WithString("subscription", + mcp.Description("The subscription name. Required for all operations except 'list'. "+ + "A subscription name is a logical identifier for a durable position in a topic. "+ + "Multiple consumers can attach to the same subscription to implement different messaging patterns."), + ), + mcp.WithString("messageId", + mcp.Description("Message ID for positioning the subscription cursor. Used in 'create' and 'reset-cursor' operations. "+ + "Values can be:\n"+ + "- 'latest': Position at the latest (most recent) message\n"+ + "- 'earliest': Position at the earliest (oldest available) message\n"+ + "- specific position in 'ledgerId:entryId' format for precise positioning"), + ), + mcp.WithNumber("count", + mcp.Description("The number of messages to skip (required for 'skip' operation). "+ + "This moves the subscription cursor forward by the specified number of messages without processing them."), + ), + mcp.WithNumber("expireTimeInSeconds", + mcp.Description("Expire messages older than the specified seconds (required for 'expire' operation). "+ + "This moves the subscription cursor to skip all messages published before the specified time."), + ), + mcp.WithBoolean("force", + mcp.Description("Force deletion of subscription (optional for 'delete' operation). "+ + "When true, all consumers will be forcefully disconnected and the subscription will be deleted. "+ + "Use with caution as it can interrupt active message processing."), + ), + ) + s.AddTool(subscriptionTool, handleSubscriptionTool(readOnly)) +} + +// handleSubscriptionTool returns a function that handles subscription operations +func handleSubscriptionTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation != "list") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "subscription" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'subscription' is supported", resource)), nil + } + + // Parse topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "list": + return handleSubsList(admin, topicName) + case "create": + return handleSubsCreate(admin, topicName, request) + case "delete": + return handleSubsDelete(admin, topicName, request) + case "skip": + return handleSubsSkip(admin, topicName, request) + case "expire": + return handleSubsExpire(admin, topicName, request) + case "reset-cursor": + return handleSubsResetCursor(admin, topicName, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: list, create, delete, skip, expire, reset-cursor", operation)), nil + } + } +} + +// handleSubsList handles listing all subscriptions for a topic +func handleSubsList(admin cmdutils.Client, topicName *utils.TopicName) (*mcp.CallToolResult, error) { + // List subscriptions + subscriptions, err := admin.Subscriptions().List(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list subscriptions for topic '%s': %v", + topicName.String(), err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(subscriptions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process subscription data: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleSubsCreate handles creating a new subscription +func handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameter + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.create: %v", err)), nil + } + + // Get optional messageID parameter (default is "latest") + messageID, hasMessageID := optionalParam[string](request.Params.Arguments, "messageId") + if !hasMessageID { + messageID = "latest" + } + + // Parse messageId + var messageIDObj utils.MessageID + switch messageID { + case "latest": + messageIDObj = utils.Latest + case "earliest": + messageIDObj = utils.Earliest + default: + s := strings.Split(messageID, ":") + if len(s) != 2 { + return mcp.NewToolResultError(fmt.Sprintf( + "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil + } + msgID, err := utils.ParseMessageID(messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil + } + messageIDObj = *msgID + } + + // Create subscription + err = admin.Subscriptions().Create(*topicName, subscription, messageIDObj) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created subscription '%s' on topic '%s' from position '%s' successfully", + subscription, topicName.String(), messageID)), nil +} + +// handleSubsDelete handles deleting a subscription +func handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameter + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.delete: %v", err)), nil + } + + // Get optional force parameter (default is false) + force, hasForce := optionalParam[bool](request.Params.Arguments, "force") + if !hasForce { + force = false + } + + // Delete subscription + if force { + err = admin.Subscriptions().ForceDelete(*topicName, subscription) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to forcefully delete subscription '%s' from topic '%s': %v", + subscription, topicName.String(), err)), nil + } + } else { + err = admin.Subscriptions().Delete(*topicName, subscription) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete subscription '%s' from topic '%s': %v", + subscription, topicName.String(), err)), nil + } + } + + forceStr := "" + if force { + forceStr = " forcefully" + } + return mcp.NewToolResultText(fmt.Sprintf("Deleted subscription '%s' from topic '%s'%s successfully", + subscription, topicName.String(), forceStr)), nil +} + +// handleSubsSkip handles skipping messages for a subscription +func handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.skip: %v", err)), nil + } + + count, err := requiredParam[float64](request.Params.Arguments, "count") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'count' for subscription.skip: %v", err)), nil + } + + // Skip messages + err = admin.Subscriptions().SkipMessages(*topicName, subscription, int64(count)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to skip messages for subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Skipped %d messages for subscription '%s' on topic '%s' successfully", + int(count), subscription, topicName.String())), nil +} + +// handleSubsExpire handles expiring messages for a subscription +func handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.expire: %v", err)), nil + } + + expireTime, err := requiredParam[float64](request.Params.Arguments, "expireTimeInSeconds") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'expireTimeInSeconds' for subscription.expire: %v", err)), nil + } + + // Expire messages + err = admin.Subscriptions().ExpireMessages(*topicName, subscription, int64(expireTime)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to expire messages for subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Expired messages older than %d seconds for subscription '%s' on topic '%s' successfully", + int(expireTime), subscription, topicName.String()), + ), nil +} + +// handleSubsResetCursor handles resetting a subscription cursor +func handleSubsResetCursor(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.reset-cursor: %v", err)), nil + } + + messageID, err := requiredParam[string](request.Params.Arguments, "messageId") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for subscription.reset-cursor: %v", err)), nil + } + + // Parse messageId + var messageIDObj utils.MessageID + switch messageID { + case "latest": + messageIDObj = utils.Latest + case "earliest": + messageIDObj = utils.Earliest + default: + s := strings.Split(messageID, ":") + if len(s) != 2 { + return mcp.NewToolResultError(fmt.Sprintf( + "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil + } + msgID, err := utils.ParseMessageID(messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil + } + messageIDObj = *msgID + } + + // Reset cursor + err = admin.Subscriptions().ResetCursorToMessageID(*topicName, subscription, messageIDObj) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to reset cursor for subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Reset cursor for subscription '%s' on topic '%s' to position '%s' successfully", + subscription, topicName.String(), messageID), + ), nil +} diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go new file mode 100644 index 0000000..076402e --- /dev/null +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -0,0 +1,295 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddTenantTools adds tenant-related tools to the MCP server +func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminTenants)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Add unified tenant management tool + toolDesc := "Manage Apache Pulsar tenants. " + + "Tenants are the highest level administrative unit in Pulsar's multi-tenancy hierarchy. " + + "Each tenant can contain multiple namespaces, allowing for logical isolation of applications. " + + "Tenant configuration controls admin access and cluster availability across organizations. " + + "Tenants provide isolation boundaries for topics, security policies, and resource quotas. " + + "Proper tenant management is essential for multi-tenant Pulsar deployments to ensure data isolation, " + + "appropriate access controls, and effective resource sharing. " + + "All tenant operations require super-user permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- tenant: A tenant in the Pulsar instance" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all tenants in the Pulsar instance\n" + + "- get: Get configuration details for a specific tenant\n" + + "- create: Create a new tenant with specified configuration\n" + + "- update: Update configuration for an existing tenant\n" + + "- delete: Delete an existing tenant (must not have any active namespaces)" + + tenantTool := mcp.NewTool("pulsar_admin_tenant", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("tenant", + mcp.Description("The tenant name to operate on. Required for all operations except 'list'. "+ + "Tenant names are unique identifiers and form the root of the topic naming hierarchy. "+ + "A valid tenant name must be comprised of alphanumeric characters and/or the following special characters: "+ + "'-', '_', '.', ':'. Ensure the tenant name follows your organization's naming conventions."), + ), + mcp.WithArray("adminRoles", + mcp.Description("List of auth principals (users or roles) allowed to administrate the tenant. "+ + "Required for 'create' and 'update' operations. These roles can create, update, or delete any "+ + "namespaces within the tenant, and can manage topic configurations. "+ + "Format: array of role strings, e.g., ['admin1', 'orgAdmin']. "+ + "Use empty array [] to remove all admin roles."), + ), + mcp.WithArray("allowedClusters", + mcp.Description("List of clusters that this tenant can access. Required for 'create' and 'update' operations. "+ + "Restricts the tenant to only use specified clusters, enabling geographic or infrastructure isolation. "+ + "Format: array of cluster names, e.g., ['us-west', 'us-east']. "+ + "An empty list means no clusters are accessible to this tenant."), + ), + ) + s.AddTool(tenantTool, handleTenantTool(readOnly)) +} + +// handleTenantTool returns a function that handles tenant operations +func handleTenantTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "update" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "tenant" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'tenant' is supported", resource)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "list": + return handleTenantsList(admin) + case "get": + return handleTenantGet(admin, request) + case "create": + return handleTenantCreate(admin, request) + case "update": + return handleTenantUpdate(admin, request) + case "delete": + return handleTenantDelete(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: list, get, create, update, delete", operation)), nil + } + } +} + +// handleTenantsList handles listing all tenants +func handleTenantsList(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get tenant list + tenants, err := admin.Tenants().List() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list tenants: %v", err)), nil + } + + // Convert result to JSON string + tenantsJSON, err := json.Marshal(tenants) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process tenant list: %v", err)), nil + } + + return mcp.NewToolResultText(string(tenantsJSON)), nil +} + +// handleTenantGet handles getting a tenant's configuration +func handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.get: %v", err)), nil + } + + // Get tenant info + tenantInfo, err := admin.Tenants().Get(tenant) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant '%s' configuration: %v", tenant, err)), nil + } + + // Convert result to JSON string + tenantInfoJSON, err := json.Marshal(tenantInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process tenant info: %v", err)), nil + } + + return mcp.NewToolResultText(string(tenantInfoJSON)), nil +} + +// handleTenantCreate handles creating a new tenant +func handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.create: %v", err)), nil + } + + adminRoles, hasAdminRoles := optionalParamArray[string](request.Params.Arguments, "adminRoles") + if !hasAdminRoles { + adminRoles = []string{} + } + + allowedClusters, hasAllowedClusters := optionalParamArray[string](request.Params.Arguments, "allowedClusters") + if !hasAllowedClusters { + allowedClusters = []string{""} + } + + // Create tenant data struct + tenantData := utils.TenantData{ + Name: tenant, + AdminRoles: adminRoles, + AllowedClusters: allowedClusters, + } + + // Create tenant + err = admin.Tenants().Create(tenantData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create tenant '%s': %v", tenant, err)), nil + } + + // Prepare result message with details + adminRolesStr := "none" + if len(adminRoles) > 0 { + adminRolesStr = fmt.Sprintf("'%s'", strings.Join(adminRoles, "', '")) + } + + allowedClustersStr := "none" + if len(allowedClusters) > 0 && allowedClusters[0] != "" { + allowedClustersStr = fmt.Sprintf("'%s'", strings.Join(allowedClusters, "', '")) + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully created tenant '%s' with admin roles: %s, allowed clusters: %s", + tenant, adminRolesStr, allowedClustersStr)), nil +} + +// handleTenantUpdate handles updating an existing tenant +func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.update: %v", err)), nil + } + + // Get current tenant info to ensure it exists and to show changes + currentTenantInfo, err := admin.Tenants().Get(tenant) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to verify tenant '%s' exists: %v", tenant, err)), nil + } + + // Get update parameters + adminRoles, hasAdminRoles := optionalParamArray[string](request.Params.Arguments, "adminRoles") + allowedClusters, hasAllowedClusters := optionalParamArray[string](request.Params.Arguments, "allowedClusters") + + // If parameters not provided, keep existing values + if !hasAdminRoles { + adminRoles = currentTenantInfo.AdminRoles + } + + if !hasAllowedClusters { + allowedClusters = currentTenantInfo.AllowedClusters + } + + // Create tenant data struct with updated values + tenantData := utils.TenantData{ + Name: tenant, + AdminRoles: adminRoles, + AllowedClusters: allowedClusters, + } + + // Update tenant + err = admin.Tenants().Update(tenantData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update tenant '%s': %v", tenant, err)), nil + } + + // Prepare result message with details + adminRolesStr := "none" + if len(adminRoles) > 0 { + adminRolesStr = fmt.Sprintf("'%s'", strings.Join(adminRoles, "', '")) + } + + allowedClustersStr := "none" + if len(allowedClusters) > 0 && allowedClusters[0] != "" { + allowedClustersStr = fmt.Sprintf("'%s'", strings.Join(allowedClusters, "', '")) + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully updated tenant '%s' with admin roles: %s, allowed clusters: %s", + tenant, adminRolesStr, allowedClustersStr)), nil +} + +// handleTenantDelete handles deleting an existing tenant +func handleTenantDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.delete: %v", err)), nil + } + + // Delete tenant + err = admin.Tenants().Delete(tenant) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete tenant '%s': %v. Note that a tenant cannot be deleted if it has active namespaces.", tenant, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully deleted tenant '%s'", tenant)), nil +} diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go new file mode 100644 index 0000000..3f3efb6 --- /dev/null +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -0,0 +1,2418 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddTopicPolicyTools adds topic policy-related tools to the MCP server +func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminTopicPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Add unified topic policy get tool + topicGetPolicyTool := mcp.NewTool("pulsar_admin_topic_policy_get", + mcp.WithDescription("Get a policy configuration for a topic. "+ + "This is a unified tool for retrieving different types of policies on a topic. "+ + "The policy type determines which specific policy will be retrieved. "+ + "Required permissions vary based on the policy being queried.\n\n"+ + "Available policy types and their parameters:\n"+ + "1. publish-rate: Gets the publish rate configuration limiting the maximum rate at which producers can publish messages\n"+ + " - Required: topic, policy\n"+ + " - Returns: publishThrottlingRateInMsg (maximum message rate per second), publishThrottlingRateInByte (maximum byte rate per second)\n\n"+ + "2. permissions: Gets permissions on a topic showing which roles have which actions (produce/consume) allowed\n"+ + " - Required: topic, policy\n"+ + " - Returns: Map of roles to their allowed actions\n\n"+ + "3. message-ttl: Gets time to live for messages in seconds, after which unacknowledged messages are deleted\n"+ + " - Required: topic, policy\n"+ + " - Returns: TTL value in seconds, or null if not set\n\n"+ + "4. max-producers: Gets maximum number of producers allowed on this topic\n"+ + " - Required: topic, policy\n"+ + " - Returns: Maximum number of producers allowed, or -1 if unlimited\n\n"+ + "5. max-consumers: Gets maximum number of consumers allowed on this topic\n"+ + " - Required: topic, policy\n"+ + " - Returns: Maximum number of consumers allowed, or -1 if unlimited\n\n"+ + "6. max-unack-messages-per-consumer: Gets maximum number of unacknowledged messages allowed per consumer\n"+ + " - Required: topic, policy\n"+ + " - Returns: Maximum number of unacked messages per consumer, or -1 if unlimited\n\n"+ + "7. max-unack-messages-per-subscription: Gets maximum number of unacknowledged messages allowed per subscription\n"+ + " - Required: topic, policy\n"+ + " - Returns: Maximum number of unacked messages per subscription, or -1 if unlimited\n\n"+ + "8. persistence: Gets persistence policy defining how messages are persisted on this topic\n"+ + " - Required: topic, policy\n"+ + " - Returns: ensemble size, write quorum size, ack quorum size, and optional mark-delete rate\n\n"+ + "9. delayed-delivery: Gets delayed delivery policy for the topic\n"+ + " - Required: topic, policy\n"+ + " - Returns: tickTime (delay precision in ms) and active status\n\n"+ + "10. dispatch-rate: Gets the message dispatch rate limiting policy\n"+ + " - Required: topic, policy\n"+ + " - Returns: dispatchThrottlingRateInMsg (maximum message rate), dispatchThrottlingRateInByte (maximum byte rate), ratePeriodInSecond\n\n"+ + "11. deduplication-status: Gets whether producer-side message deduplication is enabled\n"+ + " - Required: topic, policy\n"+ + " - Returns: enabled/disabled status\n\n"+ + "12. retention: Gets message retention policy defining how long messages are retained\n"+ + " - Required: topic, policy\n"+ + " - Returns: retention size limit and retention time limit\n\n"+ + "13. backlog-quota: Gets backlog quota policies for this topic\n"+ + " - Required: topic, policy\n"+ + " - Returns: size limits, time limits, and enforcement policy\n\n"+ + "14. compaction-threshold: Gets the threshold in bytes for when compaction is triggered\n"+ + " - Required: topic, policy\n"+ + " - Returns: threshold size in bytes, or 0 if disabled\n\n"+ + "15. inactive-topic: Gets inactive topic policy for automatic topic cleanup\n"+ + " - Required: topic, policy\n"+ + " - Returns: inactivity duration, deletion mode (delete_when_no_subscriptions/delete_when_subscriptions_caught_up)\n\n"+ + "This tool requires appropriate topic admin or read permissions. The response format is JSON."), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The topic name to get policy for (persistent://tenant/namespace/topic)"), + ), + mcp.WithString("policy", mcp.Required(), + mcp.Description("Type of policy to get. Available options: "+ + "publish-rate, permissions, message-ttl, max-producers, max-consumers, "+ + "max-unack-messages-per-consumer, max-unack-messages-per-subscription, persistence, "+ + "delayed-delivery, dispatch-rate, deduplication-status, retention, backlog-quota, "+ + "compaction-threshold, inactive-topic"), + ), + ) + s.AddTool(topicGetPolicyTool, handleTopicGetPolicy) + + // Only add write operations if not in read-only mode + if !readOnly { + // Add unified topic set policy tool + topicSetPolicyTool := mcp.NewTool("pulsar_admin_topic_policy_set", + mcp.WithDescription("Set a policy for a topic. "+ + "This is a unified tool for setting different types of policies on a topic. "+ + "The policy type determines which specific policy will be set, and the required parameters "+ + "vary based on the policy type. "+ + "Requires appropriate admin permissions based on the policy being modified.\n\n"+ + "Available policy types and their required parameters:\n"+ + "1. publish-rate: Sets maximum rate at which producers can publish messages\n"+ + " - Required: topic, policy\n"+ + " - Optional: publishThrottlingRateInMsg (messages per second, -1 for unlimited), "+ + "publishThrottlingRateInByte (bytes per second, -1 for unlimited)\n\n"+ + "2. permissions: Grants permissions to a role\n"+ + " - Required: topic, policy, role, actions (array of permissions: produce, consume)\n"+ + " - Example: actions=[\"produce\", \"consume\"] to allow both producing and consuming\n\n"+ + "3. message-ttl: Sets time to live for messages\n"+ + " - Required: topic, policy, ttl (in seconds, 0 to disable)\n"+ + " - After TTL expires, unacknowledged messages are deleted\n\n"+ + "4. max-producers: Sets maximum number of producers allowed\n"+ + " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ + " - New producers will be rejected once limit is reached\n\n"+ + "5. max-consumers: Sets maximum number of consumers allowed\n"+ + " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ + " - New consumers will be rejected once limit is reached\n\n"+ + "6. max-unack-messages-per-consumer: Sets maximum unacked messages per consumer\n"+ + " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ + " - Consumer will be blocked from receiving more messages until acknowledgment\n\n"+ + "7. max-unack-messages-per-subscription: Sets maximum unacked messages per subscription\n"+ + " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ + " - All consumers on the subscription will be blocked from receiving more messages until acknowledgment\n\n"+ + "8. persistence: Sets persistence configuration\n"+ + " - Required: topic, policy, ensemble-size, write-quorum-size, ack-quorum-size\n"+ + " - Optional: ml-mark-delete-max-rate\n"+ + " - Ensemble size must be >= write quorum size >= ack quorum size\n\n"+ + "9. delayed-delivery: Configures delayed message delivery\n"+ + " - Required: topic, policy\n"+ + " - Optional: tickTime (precision in ms), delay-enabled (true/false)\n\n"+ + "10. dispatch-rate: Sets message dispatch rate\n"+ + " - Required: topic, policy\n"+ + " - Optional: dispatchThrottlingRateInMsg (messages per second), dispatchThrottlingRateInByte (bytes per second), ratePeriodInSecond\n\n"+ + "11. deduplication-status: Sets message deduplication status\n"+ + " - Required: topic, policy\n"+ + " - Optional: enable (true/false)\n\n"+ + "12. retention: Sets retention policy for messages\n"+ + " - Required: topic, policy\n"+ + " - Optional: time (retention time in minutes, 0=no retention, -1=infinite), "+ + "size (e.g., 10M, 16G, 3T, 0=no retention, -1=infinite)\n\n"+ + "13. backlog-quota: Sets backlog quota policy\n"+ + " - Required: topic, policy, limit-size (e.g., 10M, 16G), policy (producer_request_hold, producer_exception, consumer_backlog_eviction)\n"+ + " - Optional: limit-time (seconds, -1=infinite), type (destination_storage, message_age)\n\n"+ + "14. compaction-threshold: Sets threshold for topic compaction\n"+ + " - Required: topic, policy, threshold (e.g., 10M, 16G, 3T, 0 to disable)\n"+ + " - Compaction runs when the topic reaches this size\n\n"+ + "15. inactive-topic: Sets inactive topic policy\n"+ + " - Required: topic, policy\n"+ + " - Optional: inactive-time-seconds, deletion-mode (delete_when_no_subscriptions/delete_when_subscriptions_caught_up)\n"+ + " - Controls automatic cleanup of unused topics\n\n"+ + "This tool requires appropriate topic admin permissions. The response will confirm successful application of the policy."), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The topic name to set policy for (persistent://tenant/namespace/topic)"), + ), + mcp.WithString("policy", mcp.Required(), + mcp.Description("Type of policy to set. Available options: "+ + "publish-rate, permissions, message-ttl, max-producers, max-consumers, "+ + "max-unack-messages-per-consumer, max-unack-messages-per-subscription, persistence, "+ + "delayed-delivery, dispatch-rate, deduplication-status, retention, backlog-quota, "+ + "compaction-threshold, inactive-topic"), + ), + // Generic policy parameters - specific ones will be used based on the policy type + mcp.WithString("role", + mcp.Description("Role name for permission policies (e.g., 'admin', 'client', 'producer', 'consumer')"), + ), + mcp.WithArray("actions", + mcp.Description("Actions to grant for permission policies. Valid values are: produce, consume"), + ), + mcp.WithString("ttl", + mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), + ), + mcp.WithString("max", + mcp.Description("Maximum value for producer/consumer/unacked message limit policies. Use -1 for unlimited."), + ), + mcp.WithString("time", + mcp.Description("Retention time in minutes, or special values: 0 (no retention) or -1 (infinite retention)"), + ), + mcp.WithString("size", + mcp.Description("Retention size limit (e.g., 10M, 16G, 3T), or special values: 0 (no retention) or -1 (infinite size retention)"), + ), + mcp.WithString("limit-size", + mcp.Description("Size limit for backlog quota (e.g., 10M, 16G)"), + ), + mcp.WithString("limit-time", + mcp.Description("Time limit in seconds for backlog quota. Default is -1 (infinite)"), + ), + mcp.WithString("policy", + mcp.Description("Retention policy for backlog quota (valid options: producer_request_hold, producer_exception, consumer_backlog_eviction)"), + ), + mcp.WithString("type", + mcp.Description("Type parameter whose meaning depends on the policy type being set (e.g., backlog quota type)"), + ), + mcp.WithString("ensemble-size", + mcp.Description("Number of bookies to use for a topic in persistence policy"), + ), + mcp.WithString("write-quorum-size", + mcp.Description("How many writes to make of each entry in persistence policy"), + ), + mcp.WithString("ack-quorum-size", + mcp.Description("Number of acks to wait for each entry in persistence policy"), + ), + mcp.WithString("ml-mark-delete-max-rate", + mcp.Description("Throttling rate of mark-delete operation in persistence policy"), + ), + mcp.WithString("dispatchThrottlingRateInMsg", + mcp.Description("Message dispatch/throttling rate in messages per second"), + ), + mcp.WithString("dispatchThrottlingRateInByte", + mcp.Description("Message dispatch/throttling rate in bytes per second"), + ), + mcp.WithString("ratePeriodInSecond", + mcp.Description("Rate period in seconds for rate limiting policies"), + ), + mcp.WithString("publishThrottlingRateInMsg", + mcp.Description("Message publish rate in messages per second"), + ), + mcp.WithString("publishThrottlingRateInByte", + mcp.Description("Message publish rate in bytes per second"), + ), + mcp.WithString("tickTime", + mcp.Description("Tick time for delayed message delivery precision in milliseconds"), + ), + mcp.WithString("delay-enabled", + mcp.Description("Whether delayed delivery is enabled (true/false)"), + ), + mcp.WithString("enable", + mcp.Description("Enable flag for various policies (true/false)"), + ), + mcp.WithString("threshold", + mcp.Description("Threshold value for compaction in bytes (e.g., 10M, 16G, 3T, 0 to disable)"), + ), + mcp.WithString("inactive-time-seconds", + mcp.Description("Time in seconds after which an inactive topic will be cleaned up"), + ), + mcp.WithString("deletion-mode", + mcp.Description("Mode for inactive topic deletion (delete_when_no_subscriptions or delete_when_subscriptions_caught_up)"), + ), + ) + s.AddTool(topicSetPolicyTool, handleTopicSetPolicy) + + // Add unified topic remove policy tool + topicRemovePolicyTool := mcp.NewTool("pulsar_admin_topic_policy_remove", + mcp.WithDescription("Remove a policy from a topic. "+ + "This is a unified tool for removing different types of policies from a topic. "+ + "The policy type determines which specific policy will be removed. "+ + "Requires appropriate admin permissions based on the policy being removed.\n\n"+ + "Available policy types to remove and their required parameters:\n"+ + "1. publish-rate: Removes the publish rate limiting policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level publish rate limits if configured\n\n"+ + "2. permissions: Revokes all permissions from a role\n"+ + " - Required: topic, policy, role\n"+ + " - The specified role will no longer have any access to the topic\n\n"+ + "3. message-ttl: Removes the message TTL policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level TTL policy if configured\n\n"+ + "4. max-producers: Removes the maximum producers limit\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level limit if configured\n\n"+ + "5. max-consumers: Removes the maximum consumers limit\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level limit if configured\n\n"+ + "6. max-unack-messages-per-consumer: Removes the unacked messages per consumer limit\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level limit if configured\n\n"+ + "7. max-unack-messages-per-subscription: Removes the unacked messages per subscription limit\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level limit if configured\n\n"+ + "8. persistence: Removes custom persistence policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level persistence policy\n\n"+ + "9. delayed-delivery: Removes delayed delivery policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level delayed delivery policy if configured\n\n"+ + "10. dispatch-rate: Removes the dispatch rate limiting policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level dispatch rate limits if configured\n\n"+ + "11. deduplication-status: Removes the deduplication status policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level deduplication policy if configured\n\n"+ + "12. retention: Removes the retention policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level retention policy if configured\n\n"+ + "13. backlog-quota: Removes the backlog quota policy\n"+ + " - Required: topic, policy\n"+ + " - Optional: type (destination_storage, message_age)\n"+ + " - Topic will inherit namespace-level backlog quota policy if configured\n\n"+ + "14. compaction-threshold: Removes the compaction threshold policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level compaction threshold if configured\n\n"+ + "15. inactive-topic: Removes the inactive topic policy\n"+ + " - Required: topic, policy\n"+ + " - Topic will inherit namespace-level inactive topic policy if configured\n\n"+ + "After removing a topic-level policy, the topic will inherit the corresponding namespace-level policy (if any). "+ + "This tool requires appropriate topic admin permissions. The response will confirm successful removal of the policy."), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The topic name to remove the policy from (persistent://tenant/namespace/topic)"), + ), + mcp.WithString("policy", mcp.Required(), + mcp.Description("Type of policy to remove. Available options: "+ + "publish-rate, permissions, message-ttl, max-producers, max-consumers, "+ + "max-unack-messages-per-consumer, max-unack-messages-per-subscription, persistence, "+ + "delayed-delivery, dispatch-rate, deduplication-status, retention, backlog-quota, "+ + "compaction-threshold, inactive-topic"), + ), + mcp.WithString("role", + mcp.Description("Role name for revoking permissions"), + ), + mcp.WithString("type", + mcp.Description("Type of backlog quota to remove (destination_storage or message_age)"), + ), + ) + s.AddTool(topicRemovePolicyTool, handleTopicRemovePolicy) + } +} + +// handleTopicsGetPublishRate gets the publish rate for a topic +func handleTopicsGetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get publish rate + publishRate, err := admin.Topics().GetPublishRate(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic publish rate: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(publishRate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic publish rate: %v", err)), nil + } + + // Check if publish rate is disabled/unlimited + if publishRate.PublishThrottlingRateInMsg < 0 && publishRate.PublishThrottlingRateInByte < 0 { + return mcp.NewToolResultText(fmt.Sprintf("Publish rate is unlimited for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsSetPublishRate sets the publish rate for a topic +func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Default values for publish rate + publishRateInMsg := int64(-1) // unlimited + publishRateInByte := int64(-1) // unlimited + + // Get publish rate in messages if provided + msgRateParam, hasMsgRate := optionalParam[float64](request.Params.Arguments, "publishThrottlingRateInMsg") + if hasMsgRate { + publishRateInMsg = int64(msgRateParam) + } + + // Get publish rate in bytes if provided + byteRateParam, hasByteRate := optionalParam[float64](request.Params.Arguments, "publishThrottlingRateInByte") + if hasByteRate { + publishRateInByte = int64(byteRateParam) + } + + // Create publish rate policy + publishRate := utils.PublishRateData{ + PublishThrottlingRateInMsg: publishRateInMsg, + PublishThrottlingRateInByte: publishRateInByte, + } + + // Set publish rate + err = admin.Topics().SetPublishRate(*topicName, publishRate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic publish rate: %v", err)), nil + } + + // Format the response message + if publishRateInMsg < 0 && publishRateInByte < 0 { + return mcp.NewToolResultText(fmt.Sprintf("Publish rate set to unlimited for topic %s", topicName.String())), nil + } + + var msgText string + if publishRateInMsg < 0 { + msgText = "unlimited messages" + } else { + msgText = fmt.Sprintf("%d messages", publishRateInMsg) + } + + var byteText string + if publishRateInByte < 0 { + byteText = "unlimited bytes" + } else { + byteText = fmt.Sprintf("%d bytes", publishRateInByte) + } + + return mcp.NewToolResultText(fmt.Sprintf("Publish rate set for topic %s: %s and %s per second", + topicName.String(), msgText, byteText)), nil +} + +// handleTopicsRemovePublishRate removes the publish rate for a topic +func handleTopicsRemovePublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove publish rate + err = admin.Topics().RemovePublishRate(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic publish rate: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Publish rate removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetPermissions gets the permissions on a topic +func handleTopicsGetPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get permissions + permissions, err := admin.Topics().GetPermissions(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic permissions: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(permissions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic permissions: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsGrantPermissions grants a new permission to a role on a topic +func handleTopicsGrantPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + role, err := requiredParam[string](request.Params.Arguments, "role") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + } + + actions, err := requiredParamArray[string](request.Params.Arguments, "actions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + var validActions []string + for _, action := range actions { + actionStr := strings.ToLower(action) + switch actionStr { + case "produce", "consume": + validActions = append(validActions, actionStr) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid action: %s (must be 'produce' or 'consume')", actionStr)), nil + } + } + + if len(validActions) == 0 { + return mcp.NewToolResultError("No valid actions specified"), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Grant permissions + err = grantTopicPermission(admin, *topicName, role, validActions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to grant permissions: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully granted %s permissions on topic %s to role %s", + strings.Join(validActions, ", "), topicName.String(), role)), nil +} + +// handleTopicsRevokePermissions revokes all permissions for a role on a topic +func handleTopicsRevokePermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + role, err := requiredParam[string](request.Params.Arguments, "role") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Revoke permissions + err = admin.Topics().RevokePermission(*topicName, role) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke permissions: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully revoked all permissions on topic %s from role %s", + topicName.String(), role)), nil +} + +func grantTopicPermission(admin interface{}, topicName utils.TopicName, role string, actions []string) error { + authActions := make([]utils.AuthAction, len(actions)) + for i, action := range actions { + authActions[i] = utils.AuthAction(action) + } + + type TopicsProvider interface { + Topics() interface { + GrantPermission(utils.TopicName, string, []utils.AuthAction) error + } + } + + if provider, ok := admin.(TopicsProvider); ok { + return provider.Topics().GrantPermission(topicName, role, authActions) + } + + return fmt.Errorf("admin client does not implement the required interface") +} + +// handleTopicsGetMessageTTL gets the message TTL for a topic +func handleTopicsGetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get message TTL + ttl, err := admin.Topics().GetMessageTTL(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic message TTL: %v", err)), nil + } + + // Format the result + if ttl == 0 { + return mcp.NewToolResultText("Message TTL is not set for topic " + topicName.String()), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Message TTL for topic %s is %d seconds", topicName.String(), ttl)), nil +} + +// handleTopicsSetMessageTTL sets the message TTL for a topic +func handleTopicsSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + ttl, err := requiredParam[float64](request.Params.Arguments, "ttl") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil + } + + // Validate TTL + if ttl < 0 { + return mcp.NewToolResultError("TTL must be a non-negative value"), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set message TTL + err = admin.Topics().SetMessageTTL(*topicName, int(ttl)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic message TTL: %v", err)), nil + } + + // Format the result based on whether TTL was enabled or disabled + if ttl == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Message TTL disabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Message TTL for topic %s set to %d seconds", topicName.String(), int(ttl)), + ), nil +} + +// handleTopicsRemoveMessageTTL removes the message TTL for a topic +func handleTopicsRemoveMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove message TTL + err = admin.Topics().RemoveMessageTTL(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic message TTL: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Message TTL removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetMaxProducers gets the maximum number of producers allowed for a topic +func handleTopicsGetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get max producers + maxProducers, err := admin.Topics().GetMaxProducers(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max producers: %v", err)), nil + } + + // Format the result + if maxProducers == 0 { + return mcp.NewToolResultText("Maximum number of producers is unlimited for topic " + topicName.String()), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum number of producers allowed for topic %s is %d", + topicName.String(), maxProducers)), nil +} + +// handleTopicsSetMaxProducers sets the maximum number of producers allowed for a topic +func handleTopicsSetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + maxProducers, err := requiredParam[float64](request.Params.Arguments, "maxProducers") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxProducers: %v", err)), nil + } + + // Validate maxProducers + if maxProducers < 0 { + return mcp.NewToolResultError("Maximum number of producers must be a non-negative value"), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set max producers + err = admin.Topics().SetMaxProducers(*topicName, int(maxProducers)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max producers: %v", err)), nil + } + + // Format the result based on whether the limit was set or removed + if maxProducers == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Maximum number of producers set to unlimited for topic %s", + topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum number of producers allowed for topic %s set to %d", + topicName.String(), int(maxProducers))), nil +} + +// handleTopicsRemoveMaxProducers removes the maximum producers limit for a topic +func handleTopicsRemoveMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove max producers limit + err = admin.Topics().RemoveMaxProducers(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic max producers limit: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum producers limit removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetMaxConsumers gets the maximum number of consumers allowed for a topic +func handleTopicsGetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get max consumers + maxConsumers, err := admin.Topics().GetMaxConsumers(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max consumers: %v", err)), nil + } + + // Format the result + if maxConsumers == 0 { + return mcp.NewToolResultText("Maximum number of consumers is unlimited for topic " + topicName.String()), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum number of consumers allowed for topic %s is %d", + topicName.String(), maxConsumers)), nil +} + +// handleTopicsSetMaxConsumers sets the maximum number of consumers allowed for a topic +func handleTopicsSetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + maxConsumers, err := requiredParam[float64](request.Params.Arguments, "maxConsumers") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxConsumers: %v", err)), nil + } + + // Validate maxConsumers + if maxConsumers < 0 { + return mcp.NewToolResultError("Maximum number of consumers must be a non-negative value"), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set max consumers + err = admin.Topics().SetMaxConsumers(*topicName, int(maxConsumers)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max consumers: %v", err)), nil + } + + // Format the result based on whether the limit was set or removed + if maxConsumers == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Maximum number of consumers set to unlimited for topic %s", + topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum number of consumers allowed for topic %s set to %d", + topicName.String(), int(maxConsumers))), nil +} + +// handleTopicsRemoveMaxConsumers removes the maximum consumers limit for a topic +func handleTopicsRemoveMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove max consumers limit + err = admin.Topics().RemoveMaxConsumers(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic max consumers limit: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum consumers limit removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetMaxUnackMessagesPerConsumer +// gets the maximum number of unacknowledged messages allowed for a consumer on a topic +func handleTopicsGetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get max unack messages per consumer + maxUnack, err := admin.Topics().GetMaxUnackMessagesPerConsumer(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max unack messages per consumer: %v", err)), nil + } + + // Format the result + if maxUnack == 0 { + return mcp.NewToolResultText( + "Maximum unacknowledged messages per consumer is unlimited for topic " + topicName.String(), + ), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum unacknowledged messages per consumer for topic %s is %d", + topicName.String(), maxUnack)), nil +} + +// handleTopicsSetMaxUnackMessagesPerConsumer +// sets the maximum number of unacknowledged messages allowed for a consumer on a topic +func handleTopicsSetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + maxUnack, err := requiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerConsumer") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerConsumer: %v", err)), nil + } + + // Validate maxUnack + if maxUnack < 0 { + return mcp.NewToolResultError("Maximum unacknowledged messages per consumer must be a non-negative value"), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set max unack messages per consumer + err = admin.Topics().SetMaxUnackMessagesPerConsumer(*topicName, int(maxUnack)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max unack messages per consumer: %v", err)), nil + } + + // Format the result based on whether the limit was set or unlimited + if maxUnack == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Maximum unacknowledged messages per consumer set to unlimited for topic %s", + topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Maximum unacknowledged messages per consumer for topic %s set to %d", + topicName.String(), int(maxUnack))), nil +} + +// handleTopicsRemoveMaxUnackMessagesPerConsumer +// removes the maximum unacknowledged messages per consumer limit for a topic +func handleTopicsRemoveMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove max unack messages per consumer limit + err = admin.Topics().RemoveMaxUnackMessagesPerConsumer(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf( + "Failed to remove topic max unacknowledged messages per consumer limit: %v", err), + ), nil + } + + return mcp.NewToolResultText(fmt.Sprintf( + "Maximum unacknowledged messages per consumer limit removed for topic %s", + topicName.String(), + )), nil +} + +// handleTopicsGetMaxUnackMessagesPerSubscription +// gets the maximum number of unacknowledged messages allowed for a subscription on a topic +func handleTopicsGetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get max unack messages per subscription + maxUnack, err := admin.Topics().GetMaxUnackMessagesPerSubscription(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max unack messages per subscription: %v", err)), nil + } + + // Format the result + if maxUnack == 0 { + return mcp.NewToolResultText( + "Maximum unacknowledged messages per subscription is unlimited for topic " + topicName.String(), + ), nil + } + + return mcp.NewToolResultText(fmt.Sprintf( + "Maximum unacknowledged messages per subscription for topic %s is %d", + topicName.String(), maxUnack, + )), nil +} + +// handleTopicsSetMaxUnackMessagesPerSubscription +// sets the maximum number of unacknowledged messages allowed for a subscription on a topic +func handleTopicsSetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + maxUnack, err := requiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerSubscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerSubscription: %v", err)), nil + } + + // Validate maxUnack + if maxUnack < 0 { + return mcp.NewToolResultError("Maximum unacknowledged messages per subscription must be a non-negative value"), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set max unack messages per subscription + err = admin.Topics().SetMaxUnackMessagesPerSubscription(*topicName, int(maxUnack)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max unack messages per subscription: %v", err)), nil + } + + // Format the result based on whether the limit was set or unlimited + if maxUnack == 0 { + return mcp.NewToolResultText(fmt.Sprintf( + "Maximum unacknowledged messages per subscription set to unlimited for topic %s", + topicName.String(), + )), nil + } + + return mcp.NewToolResultText(fmt.Sprintf( + "Maximum unacknowledged messages per subscription for topic %s set to %d", + topicName.String(), int(maxUnack), + )), nil +} + +// handleTopicsRemoveMaxUnackMessagesPerSubscription +// removes the maximum unacknowledged messages per subscription limit for a topic +func handleTopicsRemoveMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove max unack messages per subscription limit + err = admin.Topics().RemoveMaxUnackMessagesPerSubscription(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf( + "Failed to remove topic max unacknowledged messages per subscription limit: %v", err), + ), nil + } + + return mcp.NewToolResultText(fmt.Sprintf( + "Maximum unacknowledged messages per subscription limit removed for topic %s", + topicName.String(), + )), nil +} + +// handleTopicsGetPersistence gets the persistence policy for a topic +func handleTopicsGetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get persistence policy + persistence, err := admin.Topics().GetPersistence(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic persistence policy: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(persistence) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic persistence policy: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsSetPersistence sets the persistence policy for a topic +func handleTopicsSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + ensembleSize, err := requiredParam[float64](request.Params.Arguments, "ensembleSize") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensembleSize: %v", err)), nil + } + + writeQuorum, err := requiredParam[float64](request.Params.Arguments, "writeQuorum") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get writeQuorum: %v", err)), nil + } + + ackQuorum, err := requiredParam[float64](request.Params.Arguments, "ackQuorum") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get ackQuorum: %v", err)), nil + } + + // Validate values + if ensembleSize <= 0 || writeQuorum <= 0 || ackQuorum <= 0 { + return mcp.NewToolResultError("All persistence values must be positive"), nil + } + + // Validate quorum relationships + if writeQuorum > ensembleSize { + return mcp.NewToolResultError("Write quorum cannot be greater than ensemble size"), nil + } + + if ackQuorum > writeQuorum { + return mcp.NewToolResultError("Ack quorum cannot be greater than write quorum"), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Create persistence policy as PersistenceData (required by SetPersistence) + persistence := utils.PersistenceData{ + BookkeeperEnsemble: int64(ensembleSize), + BookkeeperWriteQuorum: int64(writeQuorum), + BookkeeperAckQuorum: int64(ackQuorum), + ManagedLedgerMaxMarkDeleteRate: 0.0, + } + + // Set persistence policy + err = admin.Topics().SetPersistence(*topicName, persistence) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic persistence policy: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Set persistence policy for topic %s with ensemble size: %d, write quorum: %d, ack quorum: %d", + topicName.String(), int(ensembleSize), int(writeQuorum), int(ackQuorum))), nil +} + +// handleTopicsRemovePersistence removes the persistence policy for a topic +func handleTopicsRemovePersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove persistence policy + err = admin.Topics().RemovePersistence(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic persistence policy: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Persistence policy removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetDelayedDelivery gets the delayed delivery policy for a topic +func handleTopicsGetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get delayed delivery policy + delayedDelivery, err := admin.Topics().GetDelayedDelivery(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic delayed delivery policy: %v", err)), nil + } + + // Format the output + if delayedDelivery.Active { + return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery is enabled for topic %s with tick time of %d ms", + topicName.String(), int(delayedDelivery.TickTime))), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery is disabled for topic %s", topicName.String())), nil +} + +// handleTopicsSetDelayedDelivery sets the delayed delivery policy for a topic +func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + delayInMillis, err := requiredParam[float64](request.Params.Arguments, "delayInMillis") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get delayInMillis: %v", err)), nil + } + + // Validate delay + if delayInMillis < 0 { + return mcp.NewToolResultError("Delay time must be a non-negative value"), nil + } + + // Default tick time is 1 second (1000ms) + tickTime := 1000.0 + tickTimeParam, hasTickTime := optionalParam[float64](request.Params.Arguments, "tickTime") + if hasTickTime && tickTimeParam > 0 { + tickTime = tickTimeParam + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Create delayed delivery policy + delayedDelivery := utils.DelayedDeliveryData{ + TickTime: tickTime, + Active: delayInMillis > 0, + } + + // Set delayed delivery policy + err = admin.Topics().SetDelayedDelivery(*topicName, delayedDelivery) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic delayed delivery policy: %v", err)), nil + } + + // Format the result based on whether delayed delivery was enabled or disabled + if delayInMillis == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery disabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery enabled for topic %s with tick time of %d ms", + topicName.String(), int(tickTime))), nil +} + +// handleTopicsRemoveDelayedDelivery removes the delayed delivery policy for a topic +func handleTopicsRemoveDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove delayed delivery policy + err = admin.Topics().RemoveDelayedDelivery(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic delayed delivery policy: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery policy removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetDispatchRate gets the message dispatch rate for a topic +func handleTopicsGetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get dispatch rate + dispatchRate, err := admin.Topics().GetDispatchRate(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic dispatch rate: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(dispatchRate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic dispatch rate: %v", err)), nil + } + + // Check if dispatch rate is disabled/unlimited + if dispatchRate.DispatchThrottlingRateInMsg < 0 && dispatchRate.DispatchThrottlingRateInByte < 0 { + return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate is unlimited for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsSetDispatchRate sets the message dispatch rate for a topic +func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Default values for dispatch rate + dispatchRateInMsg := int64(-1) // unlimited + dispatchRateInByte := int64(-1) // unlimited + ratePeriodInSecond := int64(1) // default 1 second + + // Get dispatch rate in messages if provided + msgRateParam, hasMsgRate := optionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInMsg") + if hasMsgRate { + dispatchRateInMsg = int64(msgRateParam) + } + + // Get dispatch rate in bytes if provided + byteRateParam, hasByteRate := optionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInByte") + if hasByteRate { + dispatchRateInByte = int64(byteRateParam) + } + + // Get rate period if provided + ratePeriodParam, hasRatePeriod := optionalParam[float64](request.Params.Arguments, "ratePeriodInSecond") + if hasRatePeriod && ratePeriodParam > 0 { + ratePeriodInSecond = int64(ratePeriodParam) + } else if hasRatePeriod && ratePeriodParam <= 0 { + return mcp.NewToolResultError("Rate period must be positive"), nil + } + + // Create dispatch rate policy + dispatchRate := utils.DispatchRateData{ + DispatchThrottlingRateInMsg: dispatchRateInMsg, + DispatchThrottlingRateInByte: dispatchRateInByte, + RatePeriodInSecond: ratePeriodInSecond, + RelativeToPublishRate: false, + } + + // Set dispatch rate + err = admin.Topics().SetDispatchRate(*topicName, dispatchRate) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic dispatch rate: %v", err)), nil + } + + // Format the response message + if dispatchRateInMsg < 0 && dispatchRateInByte < 0 { + return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate set to unlimited for topic %s", topicName.String())), nil + } + + var msgText string + if dispatchRateInMsg < 0 { + msgText = "unlimited messages" + } else { + msgText = fmt.Sprintf("%d messages", dispatchRateInMsg) + } + + var byteText string + if dispatchRateInByte < 0 { + byteText = "unlimited bytes" + } else { + byteText = fmt.Sprintf("%d bytes", dispatchRateInByte) + } + + return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate set for topic %s: %s and %s per %d second(s)", + topicName.String(), msgText, byteText, ratePeriodInSecond)), nil +} + +// handleTopicsRemoveDispatchRate removes the message dispatch rate for a topic +func handleTopicsRemoveDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove dispatch rate + err = admin.Topics().RemoveDispatchRate(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic dispatch rate: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetDeduplicationStatus gets the deduplication status for a topic +func handleTopicsGetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get deduplication status + enabled, err := admin.Topics().GetDeduplicationStatus(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic deduplication status: %v", err)), nil + } + + // Format the result + if enabled { + return mcp.NewToolResultText(fmt.Sprintf("Deduplication is enabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deduplication is disabled for topic %s", topicName.String())), nil +} + +// handleTopicsSetDeduplicationStatus sets the deduplication status for a topic +func handleTopicsSetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + enabled, err := requiredParam[bool](request.Params.Arguments, "enabled") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get enabled parameter: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set deduplication status + err = admin.Topics().SetDeduplicationStatus(*topicName, enabled) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic deduplication status: %v", err)), nil + } + + // Format the result + if enabled { + return mcp.NewToolResultText(fmt.Sprintf("Deduplication enabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deduplication disabled for topic %s", topicName.String())), nil +} + +// handleTopicsRemoveDeduplicationStatus removes the deduplication status for a topic +func handleTopicsRemoveDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove deduplication status + err = admin.Topics().RemoveDeduplicationStatus(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic deduplication status: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deduplication status removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetRetention gets the retention policy for a topic +func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Check if applied policies should be included + applied := false + appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + if hasApplied { + applied = appliedParam + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get retention policy + retention, err := admin.Topics().GetRetention(*topicName, applied) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic retention policy: %v", err)), nil + } + + // If no retention policy is defined + if retention == nil { + if applied { + return mcp.NewToolResultText(fmt.Sprintf("No retention policy found for topic %s (including namespace level)", + topicName.String())), nil + } + return mcp.NewToolResultText(fmt.Sprintf("No retention policy found for topic %s", topicName.String())), nil + } + + // Format the output + var retentionTime string + if retention.RetentionTimeInMinutes <= 0 { + retentionTime = "infinite time" + } else { + retentionTime = fmt.Sprintf("%d minutes", retention.RetentionTimeInMinutes) + } + + var retentionSize string + if retention.RetentionSizeInMB <= 0 { + retentionSize = "infinite size" + } else { + retentionSize = fmt.Sprintf("%d MB", retention.RetentionSizeInMB) + } + + var source string + if applied { + source = " (may include namespace level policy)" + } + + return mcp.NewToolResultText(fmt.Sprintf("Retention policy for topic %s%s: %s and %s", + topicName.String(), source, retentionTime, retentionSize)), nil +} + +// handleTopicsSetRetention sets the retention policy for a topic +func handleTopicsSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + retentionTimeInMinutes, err := requiredParam[float64](request.Params.Arguments, "retentionTimeInMinutes") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionTimeInMinutes: %v", err)), nil + } + + retentionSizeInMB, err := requiredParam[float64](request.Params.Arguments, "retentionSizeInMB") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionSizeInMB: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Create retention policy + retention := utils.RetentionPolicies{ + RetentionTimeInMinutes: int(retentionTimeInMinutes), + RetentionSizeInMB: int64(retentionSizeInMB), + } + + // Set retention policy + err = admin.Topics().SetRetention(*topicName, retention) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic retention policy: %v", err)), nil + } + + // Format the result + var timeText, sizeText string + + //nolint:gocritic + if retention.RetentionTimeInMinutes < 0 { + timeText = "disabled time retention" + } else if retention.RetentionTimeInMinutes == 0 { + timeText = "infinite time retention" + } else { + timeText = fmt.Sprintf("%d minutes time retention", retention.RetentionTimeInMinutes) + } + + //nolint:gocritic + if retention.RetentionSizeInMB < 0 { + sizeText = "disabled size retention" + } else if retention.RetentionSizeInMB == 0 { + sizeText = "infinite size retention" + } else { + sizeText = fmt.Sprintf("%d MB size retention", retention.RetentionSizeInMB) + } + + return mcp.NewToolResultText(fmt.Sprintf("Set retention policy for topic %s with %s and %s", + topicName.String(), timeText, sizeText)), nil +} + +// handleTopicsRemoveRetention removes the retention policy for a topic +func handleTopicsRemoveRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove retention policy + err = admin.Topics().RemoveRetention(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic retention policy: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Retention policy removed for topic %s", topicName.String())), nil +} + +// handleTopicsGetBacklogQuota gets the backlog quota policy for a topic +func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Check if applied policies should be included + applied := false + appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + if hasApplied { + applied = appliedParam + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get backlog quota + backlogQuotaMap, err := admin.Topics().GetBacklogQuotaMap(*topicName, applied) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic backlog quota: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(backlogQuotaMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic backlog quota: %v", err)), nil + } + + if len(backlogQuotaMap) == 0 { + return mcp.NewToolResultText(fmt.Sprintf("No backlog quota policy found for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsSetBacklogQuota sets the backlog quota policy for a topic +func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + limitSize, err := requiredParam[float64](request.Params.Arguments, "limitSize") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get limitSize: %v", err)), nil + } + + policy, err := requiredParam[string](request.Params.Arguments, "policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Default values for optional parameters + limitTime := int64(-1) // unlimited by default + + // Get limit time if provided + limitTimeParam, hasLimitTime := optionalParam[float64](request.Params.Arguments, "limitTime") + if hasLimitTime { + limitTime = int64(limitTimeParam) + } + + // Parse retention policy + retentionPolicy, err := utils.ParseRetentionPolicy(policy) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse policy: %v", err)), nil + } + + // Default backlog quota type is destination_storage + backlogQuotaType := utils.DestinationStorage + + // Get quota type if provided + quotaTypeStr, hasQuotaType := optionalParam[string](request.Params.Arguments, "type") + if hasQuotaType { + parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse quota type: %v", err)), nil + } + backlogQuotaType = parsedType + } + + // Create backlog quota + backlogQuota := utils.NewBacklogQuota(int64(limitSize), limitTime, retentionPolicy) + + // Set backlog quota + err = admin.Topics().SetBacklogQuota(*topicName, backlogQuota, backlogQuotaType) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic backlog quota: %v", err)), nil + } + + // Format the result + return mcp.NewToolResultText(fmt.Sprintf("Successfully set backlog quota for topic %s", topicName.String())), nil +} + +// handleTopicsRemoveBacklogQuota removes the backlog quota policy from a topic +func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Default backlog quota type is destination_storage + backlogQuotaType := utils.DestinationStorage + + // Get quota type if provided + quotaTypeStr, hasQuotaType := optionalParam[string](request.Params.Arguments, "type") + if hasQuotaType { + parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse quota type: %v", err)), nil + } + backlogQuotaType = parsedType + } + + // Remove backlog quota + err = admin.Topics().RemoveBacklogQuota(*topicName, backlogQuotaType) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic backlog quota: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully removed backlog quota from topic %s", topicName.String())), nil +} + +// handleTopicsGetCompactionThreshold gets the compaction threshold for a topic +func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Check if applied policies should be included + applied := false + appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + if hasApplied { + applied = appliedParam + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get compaction threshold + threshold, err := admin.Topics().GetCompactionThreshold(*topicName, applied) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic compaction threshold: %v", err)), nil + } + + // Format the result + if threshold == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Automatic compaction is disabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("The compaction threshold of the topic %s is %d byte(s)", + topicName.String(), threshold)), nil +} + +// handleTopicsSetCompactionThreshold sets the compaction threshold for a topic +func handleTopicsSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + threshold, err := requiredParam[float64](request.Params.Arguments, "threshold") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil + } + + // Validate threshold + if threshold < 0 { + return mcp.NewToolResultError("Threshold must be a non-negative value"), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set compaction threshold + err = admin.Topics().SetCompactionThreshold(*topicName, int64(threshold)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic compaction threshold: %v", err)), nil + } + + // Format the result based on whether automatic compaction was enabled or disabled + if threshold == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Successfully disabled automatic compaction for topic %s", + topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully set compaction threshold to %d byte(s) for topic %s", + int64(threshold), topicName.String())), nil +} + +// handleTopicsRemoveCompactionThreshold removes the compaction threshold for a topic +func handleTopicsRemoveCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove compaction threshold + err = admin.Topics().RemoveCompactionThreshold(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic compaction threshold: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully removed compaction threshold for topic %s", + topicName.String())), nil +} + +// handleTopicsGetInactiveTopic gets the inactive topic policies for a topic +func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Check if applied policies should be included + applied := false + appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + if hasApplied { + applied = appliedParam + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get inactive topic policies + policies, err := admin.Topics().GetInactiveTopicPolicies(*topicName, applied) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic inactive policies: %v", err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(policies) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic inactive policies: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsSetInactiveTopic sets the inactive topic policies for a topic +func handleTopicsSetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + enableDelete, err := requiredParam[bool](request.Params.Arguments, "enableDeleteWhileInactive") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get enableDeleteWhileInactive: %v", err)), nil + } + + maxInactiveDuration, err := requiredParam[float64](request.Params.Arguments, "maxInactiveDurationSeconds") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxInactiveDurationSeconds: %v", err)), nil + } + + deleteModeStr, err := requiredParam[string](request.Params.Arguments, "deleteMode") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get deleteMode: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Validate maxInactiveDuration + if maxInactiveDuration <= 0 { + return mcp.NewToolResultError("Max inactive duration must be positive"), nil + } + + // Parse delete mode + deleteMode, err := utils.ParseInactiveTopicDeleteMode(deleteModeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid delete mode: %v", err)), nil + } + + // Create inactive topic policies + inactiveTopicPolicies := utils.NewInactiveTopicPolicies( + &deleteMode, + int(maxInactiveDuration), + enableDelete, + ) + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Set inactive topic policies + err = admin.Topics().SetInactiveTopicPolicies(*topicName, inactiveTopicPolicies) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic inactive policies: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully set inactive topic policies for topic %s", + topicName.String())), nil +} + +// handleTopicsRemoveInactiveTopic removes the inactive topic policies from a topic +func handleTopicsRemoveInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Remove inactive topic policies + err = admin.Topics().RemoveInactiveTopicPolicies(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic inactive policies: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully removed inactive topic policies from topic %s", + topicName.String())), nil +} + +// handleTopicGetPolicy handles getting policies for a topic using the unified tool +func handleTopicGetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + _, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + policyType, err := requiredParam[string](request.Params.Arguments, "policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + } + + // Route to the appropriate handler based on the policy type + switch policyType { + case "publish-rate": + return handleTopicsGetPublishRate(ctx, request) + case "permissions": + return handleTopicsGetPermissions(ctx, request) + case "message-ttl": + return handleTopicsGetMessageTTL(ctx, request) + case "max-producers": + return handleTopicsGetMaxProducers(ctx, request) + case "max-consumers": + return handleTopicsGetMaxConsumers(ctx, request) + case "max-unack-messages-per-consumer": + return handleTopicsGetMaxUnackMessagesPerConsumer(ctx, request) + case "max-unack-messages-per-subscription": + return handleTopicsGetMaxUnackMessagesPerSubscription(ctx, request) + case "persistence": + return handleTopicsGetPersistence(ctx, request) + case "delayed-delivery": + return handleTopicsGetDelayedDelivery(ctx, request) + case "dispatch-rate": + return handleTopicsGetDispatchRate(ctx, request) + case "deduplication": + return handleTopicsGetDeduplicationStatus(ctx, request) + case "retention": + return handleTopicsGetRetention(ctx, request) + case "backlog-quota": + return handleTopicsGetBacklogQuota(ctx, request) + case "compaction-threshold": + return handleTopicsGetCompactionThreshold(ctx, request) + case "inactive-topic": + return handleTopicsGetInactiveTopic(ctx, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil + } +} + +// handleTopicSetPolicy handles setting policies for a topic using the unified tool +func handleTopicSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + _, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + policyType, err := requiredParam[string](request.Params.Arguments, "policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + } + + // Route to the appropriate handler based on the policy type + switch policyType { + case "publish-rate": + return handleTopicsSetPublishRate(ctx, request) + case "permissions": + return handleTopicsGrantPermissions(ctx, request) + case "message-ttl": + return handleTopicsSetMessageTTL(ctx, request) + case "max-producers": + return handleTopicsSetMaxProducers(ctx, request) + case "max-consumers": + return handleTopicsSetMaxConsumers(ctx, request) + case "max-unack-messages-per-consumer": + return handleTopicsSetMaxUnackMessagesPerConsumer(ctx, request) + case "max-unack-messages-per-subscription": + return handleTopicsSetMaxUnackMessagesPerSubscription(ctx, request) + case "persistence": + return handleTopicsSetPersistence(ctx, request) + case "delayed-delivery": + return handleTopicsSetDelayedDelivery(ctx, request) + case "dispatch-rate": + return handleTopicsSetDispatchRate(ctx, request) + case "deduplication": + return handleTopicsSetDeduplicationStatus(ctx, request) + case "retention": + return handleTopicsSetRetention(ctx, request) + case "backlog-quota": + return handleTopicsSetBacklogQuota(ctx, request) + case "compaction-threshold": + return handleTopicsSetCompactionThreshold(ctx, request) + case "inactive-topic": + return handleTopicsSetInactiveTopic(ctx, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil + } +} + +// handleTopicRemovePolicy handles removing policies for a topic using the unified tool +func handleTopicRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + _, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + policyType, err := requiredParam[string](request.Params.Arguments, "policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + } + + // Route to the appropriate handler based on the policy type + switch policyType { + case "publish-rate": + return handleTopicsRemovePublishRate(ctx, request) + case "permissions": + return handleTopicsRevokePermissions(ctx, request) + case "message-ttl": + return handleTopicsRemoveMessageTTL(ctx, request) + case "max-producers": + return handleTopicsRemoveMaxProducers(ctx, request) + case "max-consumers": + return handleTopicsRemoveMaxConsumers(ctx, request) + case "max-unack-messages-per-consumer": + return handleTopicsRemoveMaxUnackMessagesPerConsumer(ctx, request) + case "max-unack-messages-per-subscription": + return handleTopicsRemoveMaxUnackMessagesPerSubscription(ctx, request) + case "persistence": + return handleTopicsRemovePersistence(ctx, request) + case "delayed-delivery": + return handleTopicsRemoveDelayedDelivery(ctx, request) + case "dispatch-rate": + return handleTopicsRemoveDispatchRate(ctx, request) + case "deduplication": + return handleTopicsRemoveDeduplicationStatus(ctx, request) + case "retention": + return handleTopicsRemoveRetention(ctx, request) + case "backlog-quota": + return handleTopicsRemoveBacklogQuota(ctx, request) + case "compaction-threshold": + return handleTopicsRemoveCompactionThreshold(ctx, request) + case "inactive-topic": + return handleTopicsRemoveInactiveTopic(ctx, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil + } +} diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go new file mode 100644 index 0000000..beafdd6 --- /dev/null +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -0,0 +1,778 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarAdminAddTopicTools adds topic-related tools to the MCP server +func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarAdminTopics)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Add unified topic management tool + toolDesc := "Manage Apache Pulsar topics. " + + "Topics are the core messaging entities in Pulsar that store and transmit messages. " + + "Pulsar supports two types of topics: persistent (durable storage with guaranteed delivery) " + + "and non-persistent (in-memory with at-most-once delivery). " + + "Topics can be partitioned for parallel processing and higher throughput, where each partition " + + "functions as an independent topic with its own message log. " + + "Topics follow a hierarchical naming structure: persistent://tenant/namespace/topic. " + + "This tool supports various operations on topics including creation, deletion, lookup, compaction, " + + "offloading, and retrieving statistics. " + + "Do not use this tool for Kafka protocol operations. Use 'kafka_admin_topics' instead." + + "Most operations require namespace admin permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- topic: A Pulsar topic\n" + + "- topics: Multiple topics within a namespace" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all topics in a namespace\n" + + "- get: Get metadata for a topic\n" + + "- create: Create a new topic with optional partitions\n" + + "- delete: Delete a topic\n" + + "- stats: Get stats for a topic\n" + + "- lookup: Look up the broker serving a topic\n" + + "- internal-stats: Get internal stats for a topic\n" + + "- internal-info: Get internal info for a topic\n" + + "- bundle-range: Get the bundle range of a topic\n" + + "- last-message-id: Get the last message ID of a topic\n" + + "- status: Get the status of a topic\n" + + "- unload: Unload a topic\n" + + "- terminate: Terminate a topic\n" + + "- compact: Trigger compaction on a topic\n" + + "- update: Update a topic partitions\n" + + "- offload: Offload data from a topic to long-term storage\n" + + "- offload-status: Check the status of data offloading for a topic" + + topicTool := mcp.NewTool("pulsar_admin_topic", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", + mcp.Description("The fully qualified topic name (format: [persistent|non-persistent]://tenant/namespace/topic). "+ + "Required for all operations except 'list'. "+ + "For partitioned topics, reference the base topic name without the partition suffix. "+ + "To operate on a specific partition, append -partition-N to the topic name."), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in the format 'tenant/namespace'. "+ + "Required for the 'list' operation. "+ + "A namespace is a logical grouping of topics within a tenant."), + ), + mcp.WithNumber("partitions", + mcp.Description("The number of partitions for the topic. Required for 'create' and 'update' operations. "+ + "Set to 0 for a non-partitioned topic. "+ + "Partitioned topics provide higher throughput by dividing message traffic across multiple brokers. "+ + "Each partition is an independent unit with its own retention and cursor positions."), + ), + mcp.WithBoolean("force", + mcp.Description("Force operation even if it disrupts producers or consumers. Optional for 'delete' operation. "+ + "When true, all producers and consumers will be forcefully disconnected. "+ + "Use with caution as it can interrupt active message processing."), + ), + mcp.WithBoolean("non-partitioned", + mcp.Description("Operate on a non-partitioned topic. Optional for 'delete' operation. "+ + "When true and operating on a partitioned topic name, only deletes the non-partitioned topic "+ + "with the same name, if it exists."), + ), + mcp.WithBoolean("partitioned", + mcp.Description("Get stats for a partitioned topic. Optional for 'stats' operation. "+ + "When true, returns aggregated statistics for the partitioned topic."), + ), + mcp.WithBoolean("per-partition", + mcp.Description("Include per-partition stats. Optional for 'stats' operation. "+ + "When true, returns statistics for each partition separately. "+ + "Requires 'partitioned' parameter to be true."), + ), + mcp.WithString("config", + mcp.Description("JSON configuration for the topic. Required for 'update' operation. "+ + "Set various policies like retention, compaction, deduplication, etc. "+ + "Use a JSON object format, e.g., '{\"deduplicationEnabled\": true, \"replication_clusters\": [\"us-west\", \"us-east\"]}'"), + ), + mcp.WithString("messageId", + mcp.Description("Message ID for operations that require a position. Required for 'offload' operation. "+ + "Format is 'ledgerId:entryId' representing a position in the topic's message log. "+ + "For offload operations, specifies the message up to which data should be moved to long-term storage."), + ), + ) + s.AddTool(topicTool, handleTopicTool(readOnly)) +} + +// handleTopicTool returns a function that handles topic operations +func handleTopicTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := requiredParam[string](request.Params.Arguments, "resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := requiredParam[string](request.Params.Arguments, "operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "delete" || operation == "unload" || + operation == "terminate" || operation == "compact" || operation == "update" || operation == "offload") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Create the admin client + admin, err := pulsar.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "topic": + switch operation { + case "get": + return handleTopicGet(admin, request) + case "create": + return handleTopicCreate(admin, request) + case "delete": + return handleTopicDelete(admin, request) + case "stats": + return handleTopicStats(admin, request) + case "lookup": + return handleTopicLookup(admin, request) + case "internal-stats": + return handleTopicInternalStats(admin, request) + case "internal-info": + return handleTopicInternalInfo(admin, request) + case "bundle-range": + return handleTopicBundleRange(admin, request) + case "last-message-id": + return handleTopicLastMessageID(admin, request) + case "status": + return handleTopicStatus(admin, request) + case "unload": + return handleTopicUnload(admin, request) + case "terminate": + return handleTopicTerminate(admin, request) + case "compact": + return handleTopicCompact(admin, request) + case "update": + return handleTopicUpdate(admin, request) + case "offload": + return handleTopicOffload(admin, request) + case "offload-status": + return handleTopicOffloadStatus(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topic': %s", operation)), nil + } + case "topics": + switch operation { + case "list": + return handleTopicsList(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topics': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: topic, topics", resource)), nil + } + } +} + +// handleTopicsList lists all existing topics under the specified namespace +func handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for topics.list: %v", err)), nil + } + + // Get namespace name + namespaceName, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + } + + // List topics + partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", + namespace, err)), nil + } + + // Format the output + result := struct { + PartitionedTopics []string `json:"partitionedTopics"` + NonPartitionedTopics []string `json:"nonPartitionedTopics"` + }{ + PartitionedTopics: partitionedTopics, + NonPartitionedTopics: nonPartitionedTopics, + } + + jsonBytes, err := json.Marshal(result) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process topics list: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicGet gets the metadata of an existing topic +func handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.get: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get topic metadata + metadata, err := admin.Topics().GetMetadata(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get metadata for topic '%s': %v", + topic, err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(metadata) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic metadata: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicStats gets the stats for an existing topic +func handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.stats: %v", err)), nil + } + + // Get optional parameters + partitioned, hasPartitioned := optionalParam[bool](request.Params.Arguments, "partitioned") + perPartition, hasPerPartition := optionalParam[bool](request.Params.Arguments, "per-partition") + + if !hasPartitioned { + partitioned = false + } + + if !hasPerPartition { + perPartition = false + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + var jsonBytes []byte + if partitioned { + // Get partitioned topic stats + stats, err := admin.Topics().GetPartitionedStats(*topicName, perPartition) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for partitioned topic '%s': %v", + topic, err)), nil + } + + // Format the output + jsonBytes, err = json.Marshal(stats) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process partitioned topic stats: %v", err)), nil + } + } else { + // Get topic stats + stats, err := admin.Topics().GetStats(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for topic '%s': %v", + topic, err)), nil + } + + // Format the output + jsonBytes, err = json.Marshal(stats) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic stats: %v", err)), nil + } + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicLookup looks up the owner broker of a topic +func handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.lookup: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Lookup topic + lookup, err := admin.Topics().Lookup(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to lookup topic '%s': %v", + topic, err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(lookup) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic lookup information: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicCreate creates a topic with the specified number of partitions +func handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.create: %v", err)), nil + } + + partitions, err := requiredParam[float64](request.Params.Arguments, "partitions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.create: %v", err)), nil + } + + // Validate partitions + if partitions < 0 { + return mcp.NewToolResultError("Invalid partitions number: must be non-negative. Use 0 for a non-partitioned topic."), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Create topic + err = admin.Topics().Create(*topicName, int(partitions)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create topic '%s' with %d partitions: %v", + topic, int(partitions), err)), nil + } + + if int(partitions) == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Successfully created non-partitioned topic '%s'", + topicName.String())), nil + } + return mcp.NewToolResultText(fmt.Sprintf("Successfully created topic '%s' with %d partitions", + topicName.String(), int(partitions))), nil +} + +// handleTopicDelete deletes a topic +func handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.delete: %v", err)), nil + } + + // Get optional parameters + force, hasForce := optionalParam[bool](request.Params.Arguments, "force") + nonPartitioned, hasNonPartitioned := optionalParam[bool](request.Params.Arguments, "non-partitioned") + + if !hasForce { + force = false + } + + if !hasNonPartitioned { + nonPartitioned = false + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Delete topic + err = admin.Topics().Delete(*topicName, force, nonPartitioned) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete topic '%s': %v", topic, err)), nil + } + + forceStr := "" + if force { + forceStr = " forcefully" + } + + nonPartitionedStr := "" + if nonPartitioned { + nonPartitionedStr = " (non-partitioned)" + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully deleted topic '%s'%s%s", + topicName.String(), forceStr, nonPartitionedStr)), nil +} + +// handleTopicUnload unloads a topic +func handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.unload: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Unload topic + err = admin.Topics().Unload(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unload topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully unloaded topic '%s'", topicName.String())), nil +} + +// handleTopicTerminate terminates a topic +func handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.terminate: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Terminate topic + messageID, err := admin.Topics().Terminate(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to terminate topic '%s': %v", topic, err)), nil + } + + // Convert message ID to string + msgIDStr := fmt.Sprintf("%d:%d", messageID.LedgerID, messageID.EntryID) + + return mcp.NewToolResultText(fmt.Sprintf("Successfully terminated topic '%s' at message %s. "+ + "No more messages can be published to this topic.", + topicName.String(), msgIDStr)), nil +} + +// handleTopicCompact triggers compaction on a topic +func handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.compact: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Compact topic + err = admin.Topics().Compact(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger compaction for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered compaction for topic '%s'. "+ + "Run 'topic.status' to check compaction status.", topicName.String())), nil +} + +// handleTopicInternalStats gets the internal stats for a topic +func handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-stats: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get internal stats + stats, err := admin.Topics().GetInternalStats(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal stats for topic '%s': %v", topic, err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(stats) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic internal stats: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicInternalInfo gets the internal info for a topic +func handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-info: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get internal info + info, err := admin.Topics().GetInternalInfo(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal info for topic '%s': %v", topic, err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(info) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic internal info: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicBundleRange gets the bundle range of a topic +func handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.bundle-range: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get bundle range + bundle, err := admin.Topics().GetBundleRange(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle range for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Bundle range for topic '%s': %s", topicName.String(), bundle)), nil +} + +// handleTopicLastMessageID gets the last message ID of a topic +func handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.last-message-id: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get last message ID + messageID, err := admin.Topics().GetLastMessageID(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get last message ID for topic '%s': %v", topic, err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process message ID information: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicStatus gets the status of a topic +func handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.status: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get topic metadata for status check + metadata, err := admin.Topics().GetMetadata(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for topic '%s': %v", topic, err)), nil + } + + // Create status object with available information + status := struct { + Metadata interface{} `json:"metadata"` + Active bool `json:"active"` + }{ + Metadata: metadata, + Active: true, // If metadata retrieval succeeded, topic is active + } + + // Format the output + jsonBytes, err := json.Marshal(status) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic status information: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicUpdate updates a topic configuration +func handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.update: %v", err)), nil + } + + partitions, err := requiredParam[float64](request.Params.Arguments, "partitions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.update: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + err = admin.Topics().Update(*topicName, int(partitions)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully updated topic '%s' partitions to %d", + topicName.String(), int(partitions))), nil +} + +// handleTopicOffload offloads data from a topic to long-term storage +func handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload: %v", err)), nil + } + + messageIDStr, err := requiredParam[string](request.Params.Arguments, "messageId") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for topic.offload: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Parse message ID from format "ledgerId:entryId" + var ledgerID, entryID int64 + if _, err := fmt.Sscanf(messageIDStr, "%d:%d", &ledgerID, &entryID); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message ID format (expected 'ledgerId:entryId'): %v. "+ + "Valid examples: '123:456'", err)), nil + } + + // Create MessageID object + messageID := utils.MessageID{ + LedgerID: ledgerID, + EntryID: entryID, + } + + // Offload topic + err = admin.Topics().Offload(*topicName, messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger offload for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered offload for topic '%s' up to message %s. "+ + "Use 'topic.offload-status' to check the offload progress.", + topicName.String(), messageIDStr)), nil +} + +// handleTopicOffloadStatus checks the status of data offloading for a topic +func handleTopicOffloadStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload-status: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get offload status + status, err := admin.Topics().OffloadStatus(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get offload status for topic '%s': %v", topic, err)), nil + } + + // Format the output + jsonBytes, err := json.Marshal(status) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process offload status information: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go new file mode 100644 index 0000000..918bb20 --- /dev/null +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -0,0 +1,327 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarClientAddConsumerTools adds Pulsar client consumer tools to the MCP server +func PulsarClientAddConsumerTools(s *server.MCPServer, _ bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Main consume tool + consumeTool := mcp.NewTool("pulsar_client_consume", + mcp.WithDescription("Consume messages from a Pulsar topic. This tool allows you to consume messages "+ + "from a specified Pulsar topic with various options to control the subscription behavior, "+ + "message processing, and display format. Do not use this tool for Kafka protocol operations. Use 'kafka_client_consume' instead."), + mcp.WithString("topic", mcp.Required(), + mcp.Description("Topic to consume from"), + ), + mcp.WithString("subscription-name", mcp.Required(), + mcp.Description("Subscription name"), + ), + mcp.WithString("subscription-type", + mcp.Description("Subscription type: exclusive, shared, failover, key_shared (default: exclusive)"), + ), + mcp.WithString("subscription-mode", + mcp.Description("Subscription mode: durable, non-durable (default: durable)"), + ), + mcp.WithString("initial-position", + mcp.Description("Initial position: latest (consume from the latest message)"+ + ", earliest (consume from the earliest message) (default: latest)"), + ), + mcp.WithNumber("num-messages", + mcp.Description("Number of messages to consume (0 for unlimited, default: 0)"), + ), + mcp.WithNumber("timeout", + mcp.Description("Timeout for consuming messages in seconds (default: 30)"), + ), + mcp.WithBoolean("regex", + mcp.Description("Treat the topic as a regex pattern (default: false)"), + ), + mcp.WithString("schema", + mcp.Description("Schema type: string, json, avro, protobuf"), + ), + mcp.WithNumber("max-redeliver-count", + mcp.Description("Maximum redelivery count for dead letter queue (0 to disable, default: 0)"), + ), + mcp.WithString("dlq-topic", + mcp.Description("Dead letter queue topic"), + ), + mcp.WithBoolean("show-properties", + mcp.Description("Show message properties (default: false)"), + ), + mcp.WithBoolean("hide-payload", + mcp.Description("Hide message payload (default: false)"), + ), + mcp.WithBoolean("read-compacted", + mcp.Description("Read compacted topic (default: false)"), + ), + mcp.WithNumber("receiver-queue-size", + mcp.Description("Size of the consumer receive queue (default: 1000)"), + ), + ) + s.AddTool(consumeTool, handleClientConsume) +} + +func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract required parameters with validation + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + subscriptionName, err := requiredParam[string](request.Params.Arguments, "subscription-name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + // Set default values and extract optional parameters + subscriptionType := "exclusive" + if val, exists := optionalParam[string](request.Params.Arguments, "subscription-type"); exists && val != "" { + subscriptionType = val + } + + subscriptionMode := "durable" + if val, exists := optionalParam[string](request.Params.Arguments, "subscription-mode"); exists && val != "" { + subscriptionMode = val + } + + initialPosition := "latest" + if val, exists := optionalParam[string](request.Params.Arguments, "initial-position"); exists && val != "" { + initialPosition = val + } + + numMessages := 0 + if val, exists := optionalParam[float64](request.Params.Arguments, "num-messages"); exists { + numMessages = int(val) + } + + timeout := 30 + if val, exists := optionalParam[float64](request.Params.Arguments, "timeout"); exists { + timeout = int(val) + } + + regex := false + if val, exists := optionalParam[bool](request.Params.Arguments, "regex"); exists { + regex = val + } + + var maxRedeliverCount int32 + if val, exists := optionalParam[float64](request.Params.Arguments, "max-redeliver-count"); exists { + maxRedeliverCount = int32(val) + } + + dlqTopic := "" + if val, exists := optionalParam[string](request.Params.Arguments, "dlq-topic"); exists { + dlqTopic = val + } + + showProperties := false + if val, exists := optionalParam[bool](request.Params.Arguments, "show-properties"); exists { + showProperties = val + } + + hidePayload := false + if val, exists := optionalParam[bool](request.Params.Arguments, "hide-payload"); exists { + hidePayload = val + } + + readCompacted := false + if val, exists := optionalParam[bool](request.Params.Arguments, "read-compacted"); exists { + readCompacted = val + } + + receiverQueueSize := 1000 + if val, exists := optionalParam[float64](request.Params.Arguments, "receiver-queue-size"); exists { + receiverQueueSize = int(val) + } + + // Setup client + client, err := mcppulsar.GetPulsarClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + } + defer client.Close() + + // Prepare consumer options + consumerOpts := pulsar.ConsumerOptions{ + Name: "snmcp-consumer", + ReceiverQueueSize: receiverQueueSize, + ReadCompacted: readCompacted, + SubscriptionName: subscriptionName, + } + + // Set topic or topics pattern + if regex { + consumerOpts.TopicsPattern = topic + } else { + consumerOpts.Topic = topic + } + + // Set subscription type + switch strings.ToLower(subscriptionType) { + case "exclusive": + consumerOpts.Type = pulsar.Exclusive + case "shared": + consumerOpts.Type = pulsar.Shared + case "failover": + consumerOpts.Type = pulsar.Failover + case "key_shared": + consumerOpts.Type = pulsar.KeyShared + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription type: %s", subscriptionType)), nil + } + + // Set subscription mode + switch strings.ToLower(subscriptionMode) { + case "durable": + consumerOpts.SubscriptionMode = pulsar.Durable + case "non-durable": + consumerOpts.SubscriptionMode = pulsar.NonDurable + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription mode: %s", subscriptionMode)), nil + } + + // Set initial position + switch strings.ToLower(initialPosition) { + case "latest": + consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionLatest + case "earliest": + consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionEarliest + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid initial position: %s", initialPosition)), nil + } + + // Set DLQ policy if specified + if maxRedeliverCount > 0 { + if dlqTopic == "" { + return mcp.NewToolResultError("DLQ topic is required when max-redeliver-count is specified"), nil + } + consumerOpts.DLQ = &pulsar.DLQPolicy{ + //nolint:gosec + MaxDeliveries: uint32(maxRedeliverCount), + DeadLetterTopic: dlqTopic, + RetryLetterTopic: fmt.Sprintf("%s-retry", dlqTopic), + } + } + + // Create consumer + consumer, err := client.Subscribe(consumerOpts) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create consumer: %v", err)), nil + } + defer consumer.Close() + + // Set up timeout context + timeoutDuration := time.Duration(timeout) * time.Second + consumeCtx, cancelConsume := context.WithTimeout(ctx, timeoutDuration) + defer cancelConsume() + + // Container for messages + type MessageData struct { + ID string `json:"id"` + PublishTime string `json:"publish_time"` + Properties map[string]string `json:"properties,omitempty"` + Key string `json:"key,omitempty"` + Data string `json:"data,omitempty"` + MessageCount int `json:"message_count"` + } + + messages := []MessageData{} + messageCount := 0 + + // Consume messages + for { + // Check if we've consumed the requested number of messages + if numMessages > 0 && messageCount >= numMessages { + break + } + + // Receive message with timeout + msg, err := consumer.Receive(consumeCtx) + if err != nil { + if err == context.DeadlineExceeded { + break + } + if err == context.Canceled { + break + } + return mcp.NewToolResultError(fmt.Sprintf("Error receiving message: %v", err)), nil + } + + // Process the message + messageCount++ + + // Create message data + messageData := MessageData{ + ID: msg.ID().String(), + PublishTime: msg.PublishTime().Format(time.RFC3339), + MessageCount: messageCount, + } + + // Add properties if requested + if showProperties { + messageData.Properties = msg.Properties() + } + + // Add key if present + if msg.Key() != "" { + messageData.Key = msg.Key() + } + + // Add payload unless hidden + if !hidePayload { + messageData.Data = string(msg.Payload()) + } + + messages = append(messages, messageData) + + // Acknowledge the message + _ = consumer.Ack(msg) + } + + // Prepare response + response := map[string]interface{}{ + "topic": topic, + "subscription_name": subscriptionName, + "messages_consumed": messageCount, + "messages": messages, + } + + // Convert to JSON + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to encode result: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go new file mode 100644 index 0000000..04a37e8 --- /dev/null +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -0,0 +1,284 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "os" + "slices" + "strings" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarClientAddProducerTools adds Pulsar client producer tools to the MCP server +func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string) { + if !slices.Contains(features, string(FeaturePulsarClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + return + } + + // Main produce tool + produceTool := mcp.NewTool("pulsar_client_produce", + mcp.WithDescription("Produce messages to a Pulsar topic. This tool allows you to send messages "+ + "to a specified Pulsar topic with various options to control message format, "+ + "batching, and properties. Do not use this tool for Kafka protocol operations. Use 'kafka_client_produce' instead."), + mcp.WithString("topic", mcp.Required(), + mcp.Description("Topic to produce to"), + ), + mcp.WithArray("messages", + mcp.Description("Messages to send. Specify multiple times for multiple messages. IMPORTANT: Use this parameter to provide message content."), + ), + mcp.WithArray("files", + mcp.Description("Files to send as message content. Specify multiple times for multiple files."), + ), + mcp.WithNumber("num-produce", + mcp.Description("Number of times to send message(s) (default: 1)"), + ), + mcp.WithNumber("rate", + mcp.Description("Rate (in msg/sec) at which to produce, 0 means produce as fast as possible (default: 0)"), + ), + mcp.WithBoolean("disable-batching", + mcp.Description("Disable batch sending of messages (default: false)"), + ), + mcp.WithBoolean("chunking", + mcp.Description("Should split the message and publish in chunks if message size is larger than allowed max size (default: false)"), + ), + mcp.WithString("separator", + mcp.Description("Character to split messages string on (default: none)"), + ), + mcp.WithArray("properties", + mcp.Description("Properties to add, key=value format. Specify multiple times for multiple properties."), + ), + mcp.WithString("key", + mcp.Description("Partitioning key to add to each message"), + ), + ) + s.AddTool(produceTool, handleClientProduce) +} + +func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract required parameters with validation + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Set default values and extract optional parameters + messages := []string{} + if val, exists := optionalParam[[]interface{}](request.Params.Arguments, "messages"); exists && len(val) > 0 { + for _, m := range val { + if strMsg, ok := m.(string); ok { + messages = append(messages, strMsg) + } + } + } + + files := []string{} + if val, exists := optionalParam[[]interface{}](request.Params.Arguments, "files"); exists && len(val) > 0 { + for _, f := range val { + if strFile, ok := f.(string); ok { + files = append(files, strFile) + } + } + } + + if len(messages) == 0 && len(files) == 0 { + return mcp.NewToolResultError("Please supply message content with 'messages' parameter."), nil + } + + numProduce := 1 + if val, exists := optionalParam[float64](request.Params.Arguments, "num-produce"); exists { + numProduce = int(val) + } + + rate := 0.0 + if val, exists := optionalParam[float64](request.Params.Arguments, "rate"); exists { + rate = val + } + + disableBatching := false + if val, exists := optionalParam[bool](request.Params.Arguments, "disable-batching"); exists { + disableBatching = val + } + + chunkingAllowed := false + if val, exists := optionalParam[bool](request.Params.Arguments, "chunking"); exists { + chunkingAllowed = val + } + + separator := "" + if val, exists := optionalParam[string](request.Params.Arguments, "separator"); exists && val != "" { + separator = val + } + + properties := []string{} + if val, exists := optionalParam[[]interface{}](request.Params.Arguments, "properties"); exists && len(val) > 0 { + for _, p := range val { + if strProp, ok := p.(string); ok { + properties = append(properties, strProp) + } + } + } + + key := "" + if val, exists := optionalParam[string](request.Params.Arguments, "key"); exists { + key = val + } + + // Split messages by separator if needed + if separator != "" && len(messages) > 0 { + var splitMessages []string + for _, msg := range messages { + parts := strings.Split(msg, separator) + for _, part := range parts { + if part != "" { + splitMessages = append(splitMessages, part) + } + } + } + messages = splitMessages + } + + // Setup client + client, err := mcppulsar.GetPulsarClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + } + defer client.Close() + + // Prepare producer options + producerOpts := pulsar.ProducerOptions{ + Topic: topic, + } + + // Set batching and chunking options + if chunkingAllowed { + producerOpts.EnableChunking = true + producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond + } else if disableBatching { + producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond + } + + producer, err := client.CreateProducer(producerOpts) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create producer: %v", err)), nil + } + defer producer.Close() + + // Generate message bodies from messages and files + messagePayloads, err := generateMessagePayloads(messages, files) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to generate message payloads: %v", err)), nil + } + + // Parse properties + propMap := make(map[string]string) + for _, prop := range properties { + parts := strings.SplitN(prop, "=", 2) + if len(parts) == 2 { + propMap[parts[0]] = parts[1] + } + } + + // Setup rate limiter + var limiter *time.Ticker + if rate > 0 { + interval := time.Duration(1000/rate) * time.Millisecond + limiter = time.NewTicker(interval) + defer limiter.Stop() + } + + // Send messages + numMessagesSent := 0 + var lastMessageID pulsar.MessageID + for range numProduce { + for _, payload := range messagePayloads { + // Apply rate limiting if enabled + if limiter != nil { + <-limiter.C + } + + // Create message to send + msg := &pulsar.ProducerMessage{ + Payload: payload, + } + + // Add properties if specified + if len(propMap) > 0 { + msg.Properties = propMap + } + + // Standard message + if key != "" { + msg.Key = key + } + + // Send the message + msgID, err := producer.Send(ctx, msg) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil + } + + lastMessageID = msgID + numMessagesSent++ + } + } + + // Prepare response + response := map[string]interface{}{ + "topic": topic, + "messages_sent": numMessagesSent, + "last_message_id": fmt.Sprintf("%v", lastMessageID), + "success": true, + } + + // Convert to JSON + jsonBytes, err := json.Marshal(response) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to encode result: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// generateMessagePayloads generates message payloads from message strings and files +func generateMessagePayloads(messages []string, files []string) ([][]byte, error) { + var payloads [][]byte + + // Add message strings + for _, msg := range messages { + payloads = append(payloads, []byte(msg)) + } + + // Add file contents + for _, file := range files { + data, err := os.ReadFile(file) + if err != nil { + return nil, fmt.Errorf("failed to read file %s: %w", file, err) + } + payloads = append(payloads, data) + } + + return payloads, nil +} diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go new file mode 100644 index 0000000..7793c8e --- /dev/null +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -0,0 +1,289 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "regexp" + "slices" + "strconv" + "strings" + "time" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/config" +) + +var FunctionConnectorList = []string{"sink", "source", "function", "kafka-connect"} + +// StreamNativeAddLogTools adds log tools +func StreamNativeAddLogTools(s *server.MCPServer, _ bool, features []string) { + if !slices.Contains(features, string(FeatureStreamNativeCloud)) && !slices.Contains(features, string(FeatureAll)) { + return + } + + logTool := mcp.NewTool("streamnative_resources_log", + mcp.WithDescription("Display the logs of resources in StreamNative Cloud, including pulsar functions, pulsar source connectors, pulsar sink connectors, and kafka connect connectors logs running along with PulsarInstance and PulsarCluster."+ + "This tool is used to help you debug the issues of resources in StreamNative Cloud. You can use `streamnative_cloud_context_use_cluster` to change the context to a specific cluster first, then use this tool to get the logs of resources in the cluster. This tool is suggested to be used with 'pulsar_admin_functions', 'pulsar_admin_sinks', 'pulsar_admin_sources', and 'kafka_admin_connect'"), + mcp.WithString("component", mcp.Required(), + mcp.Description("The component to get logs from, including "+strings.Join(FunctionConnectorList, ", ")), + mcp.Enum(FunctionConnectorList...), + ), + mcp.WithString("name", mcp.Required(), + mcp.Description("The name of the resource to get logs from."), + ), + mcp.WithString("tenant", mcp.Required(), + mcp.Description("The pulsar tenant of the resource to get logs from. This is required for pulsar functions, pulsar source connectors, pulsar sink connectors. For kafka connect connectors, this is optional, and the default value is 'public'."), + mcp.DefaultString("public"), + ), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The pulsar namespace of the resource to get logs from. This is required for pulsar functions, pulsar source connectors, pulsar sink connectors. For kafka connect connectors, this is optional, and the default value is 'default'."), + mcp.DefaultString("default"), + ), + mcp.WithString("size", + mcp.Description("String format of the number of lines to get from the logs, e.g. 10, 100, etc. (default: 20)"), + mcp.DefaultString("20"), + ), + mcp.WithNumber("replica_id", + mcp.Description("The replica index of the resource to get logs from, this is used for multiple replicas of running pulsar functions, pulsar source connectors, pulsar sink connectors, and kafka connect connectors. The value should be a positive integer (like 0, 1, 2, etc.), and the default value is -1, which means all replicas."), + mcp.DefaultNumber(-1), + ), + mcp.WithString("timestamp", + mcp.Description("Start timestamp of logs, for example: 1662430984225"), + ), + mcp.WithString("since", + mcp.Description("Since time of logs, numbers end with s|m|h, for example one hour ago: 1h"), + ), + mcp.WithBoolean("previous_container", + mcp.Description("Return previous terminated container logs, defaults to false."), + mcp.DefaultBool(false), + ), + ) + s.AddTool(logTool, handleStreamNativeResourcesLog) +} + +type LogOptions struct { + ServiceURL string + Organization string + Instance string + Cluster string + Component string + Name string + PulsarTenant string + PulsarNamespace string + Size string + Since string + Timestamp string + Follow bool + replicaID int + Previous bool + InsecureSkipTLSVerifyBackend bool +} + +type LogResult struct { + Total int `json:"total"` + Data []LogContent `json:"data"` +} + +type LogContent struct { + Message string `json:"message"` + Position int64 `json:"position"` + Record int64 `json:"record"` +} + +func handleStreamNativeResourcesLog(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + snConfig := getOptions(ctx) + instance, cluster, organization := GetMcpContext() + if instance == "" || cluster == "" || organization == "" { + return mcp.NewToolResultError("No context is set, please use `streamnative_cloud_context_use_cluster` to set the context first."), nil + } + + // Extract required parameters with validation + component, err := requiredParam[string](request.Params.Arguments, "component") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get component: %v", err)), nil + } + + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + tenant, hasTenant := optionalParam[string](request.Params.Arguments, "tenant") + if !hasTenant { + tenant = "public" + } + + namespace, hasNamespace := optionalParam[string](request.Params.Arguments, "namespace") + if !hasNamespace { + namespace = "default" + } + + size, hasSize := optionalParam[string](request.Params.Arguments, "size") + if !hasSize { + size = "20" + } + + replicaID, hasreplicaID := optionalParam[int](request.Params.Arguments, "replica_id") + if !hasreplicaID { + replicaID = -1 + } + + timestampStr, hasTimestamp := optionalParam[string](request.Params.Arguments, "timestamp") + if !hasTimestamp { + timestampStr = "" + } + + sinceStr, hasSince := optionalParam[string](request.Params.Arguments, "since") + if !hasSince { + sinceStr = "" + } + + previousContainer, hasPreviousContainer := optionalParam[bool](request.Params.Arguments, "previous_container") + if !hasPreviousContainer { + previousContainer = false + } + + if sinceStr != "" { + sinceStr = "-" + sinceStr + } + t := time.Now() + r1 := regexp.MustCompile(`^-(\d+)(s|m|h)$`) + if timestampStr == "" { + if r1.MatchString(sinceStr) { + ago, _ := time.ParseDuration(sinceStr) + t = t.Add(ago) + timestampStr = strconv.FormatInt(t.UnixNano()/1e6, 10) + } + } + + logOptions := &LogOptions{ + ServiceURL: snConfig.LogLocation, + Organization: organization, + Instance: instance, + Cluster: cluster, + Component: component, + Name: name, + PulsarTenant: tenant, + PulsarNamespace: namespace, + Size: size, + Follow: false, // we do not support follow as streaming in MCP yet. + replicaID: replicaID, + Previous: previousContainer, + InsecureSkipTLSVerifyBackend: false, + Since: sinceStr, + Timestamp: timestampStr, + } + + client, err := config.GetSNCloudLogClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get logging client: %v", err)), nil + } + + results := []string{} + results, err = logOptions.getLogs(client, 0, 0, results) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get logs: %v", err)), nil + } + + if len(results) == 0 { + return mcp.NewToolResultText("No logs found"), nil + } + + return mcp.NewToolResultText(strings.Join(results, "\n")), nil +} + +func (o *LogOptions) getLogs(client *http.Client, position int64, + record int64, results []string) ([]string, error) { + var err error + logBrowseMode := "next" + if o.Previous { + logBrowseMode = "previous" + } + url := fmt.Sprintf("%s/v1alpha1/logs?"+ + "organization=%s"+ + "&instance=%s"+ + "&cluster=%s"+ + "&component=%s"+ + "&name=%s"+ + "&pulsar_tenant=%s"+ + "&pulsar_namespace=%s"+ + "&size=%s"+ + "&log_browse_mode=%s"+ + "×tamp=%s"+ + "&next_position=%d"+ + "&next_record=%d"+ + "&replica_id=%d", + o.ServiceURL, + o.Organization, + o.Instance, + o.Cluster, + o.Component, + o.Name, + o.PulsarTenant, + o.PulsarNamespace, + o.Size, + logBrowseMode, + o.Timestamp, + position, + record, + o.replicaID, + ) + + req, err := http.NewRequest("GET", url, nil) + if err != nil { + return results, fmt.Errorf("failed to create request: %v", err) + } + + resp, err := client.Do(req) + if err != nil { + return results, fmt.Errorf("failed to request logs (%s): %v", url, err) + } + defer resp.Body.Close() + + var logResult LogResult + var body []byte + body, err = io.ReadAll(resp.Body) + if err != nil { + return results, fmt.Errorf("failed to read response body: %v", err) + } + err = json.Unmarshal(body, &logResult) + if err != nil { + return results, fmt.Errorf("failed to decode logs (%s): %v", url, err) + } + + nextPosition := position + nextRecord := record + for _, log := range logResult.Data { + results = append(results, log.Message) + nextPosition = log.Position + nextRecord = log.Record + } + if o.Timestamp == "" { + o.Timestamp = strconv.FormatInt(nextPosition, 10) + return o.getLogs( + client, nextPosition, nextRecord, results) + } + + return results, err +} diff --git a/pkg/mcp/utils.go b/pkg/mcp/utils.go new file mode 100644 index 0000000..de002f3 --- /dev/null +++ b/pkg/mcp/utils.go @@ -0,0 +1,277 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "fmt" + "strings" + "time" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + "github.com/streamnative/streamnative-mcp-server/pkg/config" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" +) + +type ContextKey string + +const ( + OptionsKey ContextKey = "snmcp-options" + AnnotationStreamNativeCloudEngine = "cloud.streamnative.io/engine" + KeyPrefix = "snmcp-token" + TokenRefreshWindow = 5 * time.Minute +) + +// requiredParam is a helper function that can be used to fetch a requested parameter from the request. +// It does the following checks: +// 1. Checks if the parameter is present in the request. +// 2. Checks if the parameter is of the expected type. +// 3. Checks if the parameter is not empty, i.e: non-zero value +func requiredParam[T comparable](arguments map[string]interface{}, p string) (T, error) { + var zero T + + // Check if the parameter is present in the request + if _, ok := arguments[p]; !ok { + return zero, fmt.Errorf("missing required parameter: %s", p) + } + + // Check if the parameter is of the expected type + if _, ok := arguments[p].(T); !ok { + return zero, fmt.Errorf("parameter %s is not of type %T", p, zero) + } + + if arguments[p].(T) == zero { + return zero, fmt.Errorf("missing required parameter: %s", p) + + } + + return arguments[p].(T), nil +} + +// Helper function to get an optional parameter from the request +func optionalParam[T any](arguments map[string]interface{}, paramName string) (T, bool) { + var empty T + param, ok := arguments[paramName] + if !ok { + return empty, false + } + + value, ok := param.(T) + if !ok { + return empty, false + } + + return value, true +} + +// Helper function to get a required array parameter from the request +func requiredParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, error) { + var empty []T + param, ok := arguments[paramName] + if !ok { + return empty, fmt.Errorf("required parameter %s is missing", paramName) + } + + paramArray, ok := param.([]interface{}) + if !ok { + return empty, fmt.Errorf("parameter %s is not an array", paramName) + } + + result := make([]T, 0, len(paramArray)) + for _, item := range paramArray { + value, ok := item.(T) + if !ok { + return empty, fmt.Errorf("parameter %s contains items of invalid type", paramName) + } + result = append(result, value) + } + + return result, nil +} + +func optionalParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, bool) { + var empty []T + param, ok := arguments[paramName] + if !ok { + return empty, false + } + + paramArray, ok := param.([]interface{}) + if !ok { + return empty, false + } + + result := make([]T, 0, len(paramArray)) + for _, item := range paramArray { + value, ok := item.(T) + if !ok { + return empty, false + } + result = append(result, value) + } + + return result, true +} + +// optionalParamConfigs gets an optional parameter as a list of key=value strings +func optionalParamConfigs(arguments map[string]interface{}, paramName string) ([]string, bool) { + + param, ok := arguments[paramName] + if !ok { + return nil, false + } + + paramArray, ok := param.([]interface{}) + if !ok { + return nil, false + } + + result := make([]string, 0, len(paramArray)) + for _, item := range paramArray { + if strValue, ok := item.(string); ok { + result = append(result, strValue) + } + } + + return result, true +} + +// requiredParamObject gets a required object parameter from the request +func requiredParamObject(arguments map[string]interface{}, name string) (map[string]interface{}, error) { + // Get the parameter value + paramValue, found := arguments[name] + if !found || paramValue == nil { + return nil, fmt.Errorf("%s parameter is required", name) + } + + // Convert to map + if mapVal, ok := paramValue.(map[string]interface{}); ok { + return mapVal, nil + } + + return nil, fmt.Errorf("%s parameter must be an object", name) +} + +func getOptions(ctx context.Context) *config.Options { + return ctx.Value(OptionsKey).(*config.Options) +} + +// isClusterAvailable checks if a PulsarCluster is available (ready) +func isClusterAvailable(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) bool { + // Check if broker has ready replicas + if cluster.Status.Broker == nil || cluster.Status.Broker.ReadyReplicas == nil || *cluster.Status.Broker.ReadyReplicas == 0 { + return false + } + + // Check if conditions include Ready=True + for _, condition := range cluster.Status.Conditions { + if condition.Type == "Ready" && condition.Status == "True" { + return true + } + } + return false +} + +// getEngineType returns the Pulsar cluster is an Ursa engine or a Classic engine +func getEngineType(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) string { + if cluster.Metadata.Annotations != nil { + if v, has := (*cluster.Metadata.Annotations)[AnnotationStreamNativeCloudEngine]; has && v == "ursa" { + return "ursa" + } + } + return "classic" +} + +func convertToMapInterface(m map[string]string) map[string]interface{} { + result := make(map[string]interface{}) + for k, v := range m { + result[k] = v + } + return result +} + +func convertToMapString(m map[string]interface{}) map[string]string { + result := make(map[string]string) + for k, v := range m { + result[k] = fmt.Sprintf("%v", v) + } + return result +} + +// isInstanceValid checks if PulsarInstance has valid OAuth2 authentication configuration +func isInstanceValid(instance sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) bool { + return instance.Status != nil && + (instance.Status.Auth.Type == "oauth2" || instance.Status.Auth.Type == "apikey") && + instance.Status.Auth.Oauth2.IssuerURL != "" && + instance.Status.Auth.Oauth2.Audience != "" +} + +func hasCachedValidToken(cachedGrant *auth.AuthorizationGrant) (bool, error) { + if cachedGrant == nil || cachedGrant.Token == nil { + return false, nil + } + + // Check if token is valid and not expired + return cachedGrant.Token.Valid(), nil +} + +func isTokenAboutToExpire(cachedGrant *auth.AuthorizationGrant, window time.Duration) (bool, error) { + if cachedGrant == nil || cachedGrant.Token == nil { + return true, nil + } + + // Check if token will expire within the window + expiry := cachedGrant.Token.Expiry + if expiry.IsZero() { + // If we can't determine expiry, assume it will expire soon + return true, nil + } + + timeUntilExpiry := time.Until(expiry) + return timeUntilExpiry <= window, nil +} + +// isPackageURLSupported checks if the provided URL protocol is supported for package download +func isPackageURLSupported(packageURL string) bool { + // Check if the URL has a supported protocol: http, https, file + supportedProtocols := []string{"http://", "https://", "file://"} + for _, protocol := range supportedProtocols { + if strings.HasPrefix(packageURL, protocol) { + return true + } + } + return false +} + +// parseMessageConfigs parses a list of key=value strings into a map +func parseMessageConfigs(configs []string) (map[string]*string, error) { + result := make(map[string]*string) + + for _, config := range configs { + parts := strings.SplitN(config, "=", 2) + if len(parts) != 2 { + return nil, fmt.Errorf("invalid config format: %s (expected key=value)", config) + } + + key := parts[0] + value := parts[1] + result[key] = &value + } + + return result, nil +} diff --git a/pkg/pulsar/connection.go b/pkg/pulsar/connection.go new file mode 100644 index 0000000..536fb6f --- /dev/null +++ b/pkg/pulsar/connection.go @@ -0,0 +1,144 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "fmt" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + pulsaradminconfig "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" + "github.com/streamnative/streamnative-mcp-server/pkg/config" +) + +const ( + DefaultClientTimeout = 30 * time.Second +) + +//nolint:revive +type PulsarContext struct { + ServiceURL string + WebServiceURL string + Token string + AuthPlugin string + AuthParams string + TLSAllowInsecureConnection bool + TLSEnableHostnameVerification bool + TLSTrustCertsFilePath string + TLSCertFile string + TLSKeyFile string +} + +var CurrentPulsarContext PulsarContext +var CurrentPulsarClientOptions pulsar.ClientOptions +var AdminClient cmdutils.Client +var AdminV3Client cmdutils.Client +var Client pulsar.Client + +func NewCurrentPulsarContext(pc PulsarContext, issuer *auth.Issuer, tokenStore *store.Store) error { + CurrentPulsarContext = pc + if issuer != nil && tokenStore != nil { + _ = config.InitSNCloudLogClient(*issuer, *tokenStore) + } else { + config.ResetSNCloudLogClient() + } + return pc.SetPulsarContext() +} + +func ResetCurrentPulsarContext() { + CurrentPulsarContext = PulsarContext{} + CurrentPulsarClientOptions = pulsar.ClientOptions{} + AdminClient = nil + AdminV3Client = nil + Client = nil +} + +func init() { + cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{} +} + +func (pc *PulsarContext) SetPulsarContext() error { + var err error + // Configure pulsarctl with the token + if pc.Token != "" { + cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ + WebServiceURL: pc.WebServiceURL, + AuthPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken", + AuthParams: fmt.Sprintf("token:%s", pc.Token), + } + + // Set the global client options + CurrentPulsarClientOptions = pulsar.ClientOptions{ + URL: pc.ServiceURL, + Authentication: pulsar.NewAuthenticationToken(pc.Token), + OperationTimeout: DefaultClientTimeout, + ConnectionTimeout: DefaultClientTimeout, + } + } else if pc.AuthPlugin != "" && pc.AuthParams != "" { + cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ + WebServiceURL: pc.WebServiceURL, + AuthPlugin: pc.AuthPlugin, + AuthParams: pc.AuthParams, + } + + authProvider, err := pulsar.NewAuthentication(pc.AuthPlugin, pc.AuthParams) + if err != nil { + return fmt.Errorf("failed to create authentication provider: %w", err) + } + CurrentPulsarClientOptions = pulsar.ClientOptions{ + URL: pc.ServiceURL, + Authentication: authProvider, + OperationTimeout: DefaultClientTimeout, + ConnectionTimeout: DefaultClientTimeout, + } + } + + AdminClient = cmdutils.NewPulsarClient() + AdminV3Client = cmdutils.NewPulsarClientWithAPIVersion(pulsaradminconfig.V3) + + Client, err = pulsar.NewClient(CurrentPulsarClientOptions) + if err != nil { + return fmt.Errorf("failed to create pulsar client: %w", err) + } + + return nil +} + +func GetAdminClient() (cmdutils.Client, error) { + if cmdutils.PulsarCtlConfig.WebServiceURL == "" { + return nil, fmt.Errorf("err: ContextNotSetErr: Please set the cluster context first") + } + return AdminClient, nil +} + +func GetAdminV3Client() (cmdutils.Client, error) { + if cmdutils.PulsarCtlConfig.WebServiceURL == "" { + return nil, fmt.Errorf("err: ContextNotSetErr: Please set the cluster context first") + } + return AdminV3Client, nil +} + +func GetPulsarClient() (pulsar.Client, error) { + if CurrentPulsarClientOptions.URL == "" { + return nil, fmt.Errorf("err: ContextNotSetErr: Please set the cluster context first") + } + return Client, nil +} diff --git a/sdk/sdk-apiserver/.gitignore b/sdk/sdk-apiserver/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/sdk/sdk-apiserver/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/sdk/sdk-apiserver/.openapi-generator-ignore b/sdk/sdk-apiserver/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/sdk/sdk-apiserver/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/sdk/sdk-apiserver/.openapi-generator/COMMIT b/sdk/sdk-apiserver/.openapi-generator/COMMIT new file mode 100644 index 0000000..2ffe568 --- /dev/null +++ b/sdk/sdk-apiserver/.openapi-generator/COMMIT @@ -0,0 +1,2 @@ +Requested Commit/Tag : v6.2.0 +Actual Commit : 24f476a38161a797c773577cab775ef285baeaba diff --git a/sdk/sdk-apiserver/.openapi-generator/FILES b/sdk/sdk-apiserver/.openapi-generator/FILES new file mode 100644 index 0000000..f09c86e --- /dev/null +++ b/sdk/sdk-apiserver/.openapi-generator/FILES @@ -0,0 +1,786 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_apis.go +api_authorization_streamnative_io.go +api_authorization_streamnative_io_v1alpha1.go +api_billing_streamnative_io.go +api_billing_streamnative_io_v1alpha1.go +api_cloud_streamnative_io.go +api_cloud_streamnative_io_v1alpha1.go +api_cloud_streamnative_io_v1alpha2.go +api_compute_streamnative_io.go +api_compute_streamnative_io_v1alpha1.go +api_custom_objects.go +api_version.go +client.go +configuration.go +docs/ApisApi.md +docs/AuthorizationStreamnativeIoApi.md +docs/AuthorizationStreamnativeIoV1alpha1Api.md +docs/BillingStreamnativeIoApi.md +docs/BillingStreamnativeIoV1alpha1Api.md +docs/CloudStreamnativeIoApi.md +docs/CloudStreamnativeIoV1alpha1Api.md +docs/CloudStreamnativeIoV1alpha2Api.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec.md +docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus.md +docs/ComputeStreamnativeIoApi.md +docs/ComputeStreamnativeIoV1alpha1Api.md +docs/CustomObjectsApi.md +docs/V1APIGroup.md +docs/V1APIGroupList.md +docs/V1APIResource.md +docs/V1APIResourceList.md +docs/V1Affinity.md +docs/V1Condition.md +docs/V1ConfigMapEnvSource.md +docs/V1ConfigMapKeySelector.md +docs/V1ConfigMapVolumeSource.md +docs/V1DeleteOptions.md +docs/V1EnvFromSource.md +docs/V1EnvVar.md +docs/V1EnvVarSource.md +docs/V1ExecAction.md +docs/V1GRPCAction.md +docs/V1GroupVersionForDiscovery.md +docs/V1HTTPGetAction.md +docs/V1HTTPHeader.md +docs/V1KeyToPath.md +docs/V1LabelSelector.md +docs/V1LabelSelectorRequirement.md +docs/V1ListMeta.md +docs/V1LocalObjectReference.md +docs/V1ManagedFieldsEntry.md +docs/V1NodeAffinity.md +docs/V1NodeSelector.md +docs/V1NodeSelectorRequirement.md +docs/V1NodeSelectorTerm.md +docs/V1ObjectFieldSelector.md +docs/V1ObjectMeta.md +docs/V1OwnerReference.md +docs/V1PodAffinity.md +docs/V1PodAffinityTerm.md +docs/V1PodAntiAffinity.md +docs/V1Preconditions.md +docs/V1PreferredSchedulingTerm.md +docs/V1Probe.md +docs/V1ResourceFieldSelector.md +docs/V1ResourceRequirements.md +docs/V1SecretEnvSource.md +docs/V1SecretKeySelector.md +docs/V1SecretVolumeSource.md +docs/V1ServerAddressByClientCIDR.md +docs/V1Status.md +docs/V1StatusCause.md +docs/V1StatusDetails.md +docs/V1TCPSocketAction.md +docs/V1Toleration.md +docs/V1VolumeMount.md +docs/V1WatchEvent.md +docs/V1WeightedPodAffinityTerm.md +docs/VersionApi.md +docs/VersionInfo.md +git_push.sh +go.mod +go.sum +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go +model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go +model_v1_affinity.go +model_v1_api_group.go +model_v1_api_group_list.go +model_v1_api_resource.go +model_v1_api_resource_list.go +model_v1_condition.go +model_v1_config_map_env_source.go +model_v1_config_map_key_selector.go +model_v1_config_map_volume_source.go +model_v1_delete_options.go +model_v1_env_from_source.go +model_v1_env_var.go +model_v1_env_var_source.go +model_v1_exec_action.go +model_v1_group_version_for_discovery.go +model_v1_grpc_action.go +model_v1_http_get_action.go +model_v1_http_header.go +model_v1_key_to_path.go +model_v1_label_selector.go +model_v1_label_selector_requirement.go +model_v1_list_meta.go +model_v1_local_object_reference.go +model_v1_managed_fields_entry.go +model_v1_node_affinity.go +model_v1_node_selector.go +model_v1_node_selector_requirement.go +model_v1_node_selector_term.go +model_v1_object_field_selector.go +model_v1_object_meta.go +model_v1_owner_reference.go +model_v1_pod_affinity.go +model_v1_pod_affinity_term.go +model_v1_pod_anti_affinity.go +model_v1_preconditions.go +model_v1_preferred_scheduling_term.go +model_v1_probe.go +model_v1_resource_field_selector.go +model_v1_resource_requirements.go +model_v1_secret_env_source.go +model_v1_secret_key_selector.go +model_v1_secret_volume_source.go +model_v1_server_address_by_client_cidr.go +model_v1_status.go +model_v1_status_cause.go +model_v1_status_details.go +model_v1_tcp_socket_action.go +model_v1_toleration.go +model_v1_volume_mount.go +model_v1_watch_event.go +model_v1_weighted_pod_affinity_term.go +model_version_info.go +response.go +utils.go diff --git a/sdk/sdk-apiserver/.openapi-generator/VERSION b/sdk/sdk-apiserver/.openapi-generator/VERSION new file mode 100644 index 0000000..4ac4fde --- /dev/null +++ b/sdk/sdk-apiserver/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.2.0 \ No newline at end of file diff --git a/sdk/sdk-apiserver/.openapi-generator/swagger.json-default.sha256 b/sdk/sdk-apiserver/.openapi-generator/swagger.json-default.sha256 new file mode 100644 index 0000000..6dd83e6 --- /dev/null +++ b/sdk/sdk-apiserver/.openapi-generator/swagger.json-default.sha256 @@ -0,0 +1 @@ +be504d98040ff8c11e998df6b2ecda4d32e53e923649b39895154b93d6276c35 \ No newline at end of file diff --git a/sdk/sdk-apiserver/.travis.yml b/sdk/sdk-apiserver/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/sdk/sdk-apiserver/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/sdk/sdk-apiserver/README.md b/sdk/sdk-apiserver/README.md new file mode 100644 index 0000000..82012f9 --- /dev/null +++ b/sdk/sdk-apiserver/README.md @@ -0,0 +1,1164 @@ +# Go API client for sncloud + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v0 +- Package version: 0.0.1 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import sncloud "github.com/kubernetes-client/go" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sncloud.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sncloud.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely 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. + +```golang +ctx := context.WithValue(context.Background(), sncloud.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sncloud.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ApisApi* | [**GetAPIVersions**](docs/ApisApi.md#getapiversions) | **Get** /apis/ | +*AuthorizationStreamnativeIoApi* | [**GetAuthorizationStreamnativeIoAPIGroup**](docs/AuthorizationStreamnativeIoApi.md#getauthorizationstreamnativeioapigroup) | **Get** /apis/authorization.streamnative.io/ | +*AuthorizationStreamnativeIoV1alpha1Api* | [**CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#createauthorizationstreamnativeiov1alpha1namespacediamaccount) | **Post** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts | +*AuthorizationStreamnativeIoV1alpha1Api* | [**CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#createauthorizationstreamnativeiov1alpha1namespacediamaccountstatus) | **Post** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +*AuthorizationStreamnativeIoV1alpha1Api* | [**CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#createauthorizationstreamnativeiov1alpha1selfsubjectrbacreview) | **Post** /apis/authorization.streamnative.io/v1alpha1/selfsubjectrbacreviews | +*AuthorizationStreamnativeIoV1alpha1Api* | [**CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#createauthorizationstreamnativeiov1alpha1selfsubjectrulesreview) | **Post** /apis/authorization.streamnative.io/v1alpha1/selfsubjectrulesreviews | +*AuthorizationStreamnativeIoV1alpha1Api* | [**CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#createauthorizationstreamnativeiov1alpha1selfsubjectuserreview) | **Post** /apis/authorization.streamnative.io/v1alpha1/selfsubjectuserreviews | +*AuthorizationStreamnativeIoV1alpha1Api* | [**CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#createauthorizationstreamnativeiov1alpha1subjectrolereview) | **Post** /apis/authorization.streamnative.io/v1alpha1/subjectrolereviews | +*AuthorizationStreamnativeIoV1alpha1Api* | [**CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#createauthorizationstreamnativeiov1alpha1subjectrulesreview) | **Post** /apis/authorization.streamnative.io/v1alpha1/subjectrulesreviews | +*AuthorizationStreamnativeIoV1alpha1Api* | [**DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#deleteauthorizationstreamnativeiov1alpha1collectionnamespacediamaccount) | **Delete** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts | +*AuthorizationStreamnativeIoV1alpha1Api* | [**DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#deleteauthorizationstreamnativeiov1alpha1namespacediamaccount) | **Delete** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +*AuthorizationStreamnativeIoV1alpha1Api* | [**DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#deleteauthorizationstreamnativeiov1alpha1namespacediamaccountstatus) | **Delete** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +*AuthorizationStreamnativeIoV1alpha1Api* | [**GetAuthorizationStreamnativeIoV1alpha1APIResources**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#getauthorizationstreamnativeiov1alpha1apiresources) | **Get** /apis/authorization.streamnative.io/v1alpha1/ | +*AuthorizationStreamnativeIoV1alpha1Api* | [**ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#listauthorizationstreamnativeiov1alpha1iamaccountforallnamespaces) | **Get** /apis/authorization.streamnative.io/v1alpha1/iamaccounts | +*AuthorizationStreamnativeIoV1alpha1Api* | [**ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#listauthorizationstreamnativeiov1alpha1namespacediamaccount) | **Get** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts | +*AuthorizationStreamnativeIoV1alpha1Api* | [**PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#patchauthorizationstreamnativeiov1alpha1namespacediamaccount) | **Patch** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +*AuthorizationStreamnativeIoV1alpha1Api* | [**PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#patchauthorizationstreamnativeiov1alpha1namespacediamaccountstatus) | **Patch** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +*AuthorizationStreamnativeIoV1alpha1Api* | [**ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#readauthorizationstreamnativeiov1alpha1namespacediamaccount) | **Get** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +*AuthorizationStreamnativeIoV1alpha1Api* | [**ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#readauthorizationstreamnativeiov1alpha1namespacediamaccountstatus) | **Get** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +*AuthorizationStreamnativeIoV1alpha1Api* | [**ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#replaceauthorizationstreamnativeiov1alpha1namespacediamaccount) | **Put** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +*AuthorizationStreamnativeIoV1alpha1Api* | [**ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#replaceauthorizationstreamnativeiov1alpha1namespacediamaccountstatus) | **Put** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +*AuthorizationStreamnativeIoV1alpha1Api* | [**WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](docs/AuthorizationStreamnativeIoV1alpha1Api.md#watchauthorizationstreamnativeiov1alpha1namespacediamaccountstatus) | **Get** /apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}/status | +*BillingStreamnativeIoApi* | [**GetBillingStreamnativeIoAPIGroup**](docs/BillingStreamnativeIoApi.md#getbillingstreamnativeioapigroup) | **Get** /apis/billing.streamnative.io/ | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedcustomerportalrequest) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/customerportalrequests | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedpaymentintent) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedpaymentintentstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedprivateoffer) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedprivateofferstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedproduct) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedproductstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedsetupintent) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedsetupintentstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedsubscription) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedsubscriptionintent) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedsubscriptionintentstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1namespacedsubscriptionstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1PublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1publicoffer) | **Post** /apis/billing.streamnative.io/v1alpha1/publicoffers | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1PublicOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1publicofferstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1sugerentitlementreview) | **Post** /apis/billing.streamnative.io/v1alpha1/sugerentitlementreviews | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1TestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1testclock) | **Post** /apis/billing.streamnative.io/v1alpha1/testclocks | +*BillingStreamnativeIoV1alpha1Api* | [**CreateBillingStreamnativeIoV1alpha1TestClockStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#createbillingstreamnativeiov1alpha1testclockstatus) | **Post** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectionnamespacedpaymentintent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectionnamespacedprivateoffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectionnamespacedproduct) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectionnamespacedsetupintent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectionnamespacedsubscription) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectionnamespacedsubscriptionintent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectionpublicoffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/publicoffers | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1CollectionTestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1collectiontestclock) | **Delete** /apis/billing.streamnative.io/v1alpha1/testclocks | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedpaymentintent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedpaymentintentstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedprivateoffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedprivateofferstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedproduct) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedproductstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedsetupintent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedsetupintentstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedsubscription) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedsubscriptionintent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedsubscriptionintentstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1namespacedsubscriptionstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1PublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1publicoffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1publicofferstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1TestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1testclock) | **Delete** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**DeleteBillingStreamnativeIoV1alpha1TestClockStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#deletebillingstreamnativeiov1alpha1testclockstatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**GetBillingStreamnativeIoV1alpha1APIResources**](docs/BillingStreamnativeIoV1alpha1Api.md#getbillingstreamnativeiov1alpha1apiresources) | **Get** /apis/billing.streamnative.io/v1alpha1/ | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1namespacedpaymentintent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1namespacedprivateoffer) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1NamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1namespacedproduct) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1namespacedsetupintent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1NamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1namespacedsubscription) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1namespacedsubscriptionintent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1paymentintentforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/paymentintents | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1privateofferforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/privateoffers | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1productforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/products | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1PublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1publicoffer) | **Get** /apis/billing.streamnative.io/v1alpha1/publicoffers | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1setupintentforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/setupintents | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1subscriptionforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/subscriptions | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1subscriptionintentforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/subscriptionintents | +*BillingStreamnativeIoV1alpha1Api* | [**ListBillingStreamnativeIoV1alpha1TestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#listbillingstreamnativeiov1alpha1testclock) | **Get** /apis/billing.streamnative.io/v1alpha1/testclocks | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedpaymentintent) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedpaymentintentstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedprivateoffer) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedprivateofferstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedproduct) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedproductstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedsetupintent) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedsetupintentstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedsubscription) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedsubscriptionintent) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedsubscriptionintentstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1namespacedsubscriptionstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1PublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1publicoffer) | **Patch** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1PublicOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1publicofferstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1TestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1testclock) | **Patch** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**PatchBillingStreamnativeIoV1alpha1TestClockStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#patchbillingstreamnativeiov1alpha1testclockstatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedpaymentintent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedpaymentintentstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedprivateoffer) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedprivateofferstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedproduct) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedproductstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedsetupintent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedsetupintentstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedsubscription) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedsubscriptionintent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedsubscriptionintentstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1namespacedsubscriptionstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1PublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1publicoffer) | **Get** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1PublicOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1publicofferstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1TestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1testclock) | **Get** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReadBillingStreamnativeIoV1alpha1TestClockStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#readbillingstreamnativeiov1alpha1testclockstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedpaymentintent) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedpaymentintentstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedprivateoffer) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedprivateofferstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedproduct) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedproductstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedsetupintent) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedsetupintentstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedsubscription) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedsubscriptionintent) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedsubscriptionintentstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1namespacedsubscriptionstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1PublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1publicoffer) | **Put** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1publicofferstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1TestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1testclock) | **Put** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**ReplaceBillingStreamnativeIoV1alpha1TestClockStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#replacebillingstreamnativeiov1alpha1testclockstatus) | **Put** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedpaymentintent) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedpaymentintentlist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedpaymentintentstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedprivateoffer) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedprivateofferlist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedprivateofferstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedProduct**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedproduct) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedProductList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedproductlist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedproductstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsetupintent) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsetupintentlist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsetupintentstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSubscription**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsubscription) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsubscriptionintent) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsubscriptionintentlist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsubscriptionintentstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsubscriptionlist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1namespacedsubscriptionstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1paymentintentlistforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/paymentintents | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1privateofferlistforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/privateoffers | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1productlistforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/products | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1PublicOffer**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1publicoffer) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1PublicOfferList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1publicofferlist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/publicoffers | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1PublicOfferStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1publicofferstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}/status | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1setupintentlistforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/setupintents | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1subscriptionintentlistforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/subscriptionintents | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1subscriptionlistforallnamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/subscriptions | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1TestClock**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1testclock) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name} | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1TestClockList**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1testclocklist) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/testclocks | +*BillingStreamnativeIoV1alpha1Api* | [**WatchBillingStreamnativeIoV1alpha1TestClockStatus**](docs/BillingStreamnativeIoV1alpha1Api.md#watchbillingstreamnativeiov1alpha1testclockstatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}/status | +*CloudStreamnativeIoApi* | [**GetCloudStreamnativeIoAPIGroup**](docs/CloudStreamnativeIoApi.md#getcloudstreamnativeioapigroup) | **Get** /apis/cloud.streamnative.io/ | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1ClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1clusterrole) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterroles | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1clusterrolebinding) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1clusterrolebindingstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1clusterrolestatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedapikey) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedapikeystatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedcloudconnection) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedcloudconnectionstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedcloudenvironment) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedcloudenvironmentstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedidentitypool) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedidentitypoolstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedoidcprovider) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedoidcproviderstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpool) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpoolmember) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpoolmemberstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpooloption) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpooloptionstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpoolstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpulsarcluster) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpulsarclusterstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpulsargateway) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpulsargatewaystatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpulsarinstance) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedpulsarinstancestatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedrole) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedrolebinding) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedrolebindingstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedrolestatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedsecret) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedsecretstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedserviceaccount) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedserviceaccountbinding) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedserviceaccountbindingstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedserviceaccountstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedstripesubscription) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespacedstripesubscriptionstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespaceduser) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1namespaceduserstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1Organization**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1organization) | **Post** /apis/cloud.streamnative.io/v1alpha1/organizations | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1OrganizationStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1organizationstatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**CreateCloudStreamnativeIoV1alpha1SelfRegistration**](docs/CloudStreamnativeIoV1alpha1Api.md#createcloudstreamnativeiov1alpha1selfregistration) | **Post** /apis/cloud.streamnative.io/v1alpha1/selfregistrations | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1ClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1clusterrole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1clusterrolebinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1clusterrolebindingstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1clusterrolestatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionclusterrole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterroles | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionclusterrolebinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedapikey) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedcloudconnection) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedcloudenvironment) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedidentitypool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedoidcprovider) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedpool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedpoolmember) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedpooloption) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedpulsarcluster) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedpulsargateway) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedpulsarinstance) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedrole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedrolebinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedsecret) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedserviceaccount) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedserviceaccountbinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespacedstripesubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionnamespaceduser) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1CollectionOrganization**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1collectionorganization) | **Delete** /apis/cloud.streamnative.io/v1alpha1/organizations | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedapikey) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedapikeystatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedcloudconnection) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedcloudconnectionstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedcloudenvironment) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedcloudenvironmentstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedidentitypool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedidentitypoolstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedoidcprovider) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedoidcproviderstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpoolmember) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpoolmemberstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpooloption) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpooloptionstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpoolstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpulsarcluster) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpulsarclusterstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpulsargateway) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpulsargatewaystatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpulsarinstance) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedpulsarinstancestatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedrole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedrolebinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedrolebindingstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedrolestatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedsecret) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedsecretstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedserviceaccount) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedserviceaccountbinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedserviceaccountbindingstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedserviceaccountstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedstripesubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespacedstripesubscriptionstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespaceduser) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1namespaceduserstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1Organization**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1organization) | **Delete** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**DeleteCloudStreamnativeIoV1alpha1OrganizationStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#deletecloudstreamnativeiov1alpha1organizationstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**GetCloudStreamnativeIoV1alpha1APIResources**](docs/CloudStreamnativeIoV1alpha1Api.md#getcloudstreamnativeiov1alpha1apiresources) | **Get** /apis/cloud.streamnative.io/v1alpha1/ | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1apikeyforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/apikeys | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1cloudconnectionforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/cloudconnections | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1cloudenvironmentforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/cloudenvironments | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1ClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1clusterrole) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterroles | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1ClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1clusterrolebinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1identitypoolforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/identitypools | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedapikey) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedcloudconnection) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedcloudenvironment) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedidentitypool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedoidcprovider) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedpool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedpoolmember) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedpooloption) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedpulsarcluster) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedpulsargateway) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedpulsarinstance) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedrole) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedrolebinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedsecret) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedserviceaccount) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedserviceaccountbinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespacedstripesubscription) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1NamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1namespaceduser) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1oidcproviderforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/oidcproviders | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1Organization**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1organization) | **Get** /apis/cloud.streamnative.io/v1alpha1/organizations | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1poolforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pools | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1poolmemberforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/poolmembers | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1pooloptionforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pooloptions | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1pulsarclusterforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pulsarclusters | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1pulsargatewayforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pulsargateways | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1pulsarinstanceforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pulsarinstances | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1rolebindingforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/rolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1roleforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/roles | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1secretforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/secrets | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1serviceaccountbindingforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/serviceaccountbindings | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1serviceaccountforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/serviceaccounts | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1stripesubscriptionforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/stripesubscriptions | +*CloudStreamnativeIoV1alpha1Api* | [**ListCloudStreamnativeIoV1alpha1UserForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#listcloudstreamnativeiov1alpha1userforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/users | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1ClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1clusterrole) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1clusterrolebinding) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1clusterrolebindingstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1clusterrolestatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedapikey) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedapikeystatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedcloudconnection) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedcloudconnectionstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedcloudenvironment) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedcloudenvironmentstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedidentitypool) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedidentitypoolstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedoidcprovider) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedoidcproviderstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpool) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpoolmember) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpoolmemberstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpooloption) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpooloptionstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpoolstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpulsarcluster) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpulsarclusterstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpulsargateway) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpulsargatewaystatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpulsarinstance) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedpulsarinstancestatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedrole) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedrolebinding) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedrolebindingstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedrolestatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedsecret) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedsecretstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedserviceaccount) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedserviceaccountbinding) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedserviceaccountbindingstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedserviceaccountstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedstripesubscription) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespacedstripesubscriptionstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespaceduser) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1namespaceduserstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1Organization**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1organization) | **Patch** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**PatchCloudStreamnativeIoV1alpha1OrganizationStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#patchcloudstreamnativeiov1alpha1organizationstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1ClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1clusterrole) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1clusterrolebinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1clusterrolebindingstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1clusterrolestatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedapikey) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedapikeystatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedcloudconnection) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedcloudconnectionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedcloudenvironment) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedcloudenvironmentstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedidentitypool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedidentitypoolstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedoidcprovider) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedoidcproviderstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpoolmember) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpoolmemberstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpooloption) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpooloptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpoolstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpulsarcluster) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpulsarclusterstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpulsargateway) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpulsargatewaystatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpulsarinstance) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedpulsarinstancestatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedrole) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedrolebinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedrolebindingstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedrolestatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedsecret) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedsecretstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedserviceaccount) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedserviceaccountbinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedserviceaccountbindingstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedserviceaccountstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedstripesubscription) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespacedstripesubscriptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespaceduser) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1namespaceduserstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1Organization**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1organization) | **Get** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReadCloudStreamnativeIoV1alpha1OrganizationStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#readcloudstreamnativeiov1alpha1organizationstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1ClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1clusterrole) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1clusterrolebinding) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1clusterrolebindingstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1clusterrolestatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedapikey) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedapikeystatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedcloudconnection) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedcloudconnectionstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedcloudenvironment) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedcloudenvironmentstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedidentitypool) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedidentitypoolstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedoidcprovider) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedoidcproviderstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpool) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpoolmember) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpoolmemberstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpooloption) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpooloptionstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpoolstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpulsarcluster) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpulsarclusterstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpulsargateway) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpulsargatewaystatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpulsarinstance) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedpulsarinstancestatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedrole) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedrolebinding) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedrolebindingstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedrolestatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedsecret) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedsecretstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedserviceaccount) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedserviceaccountbinding) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedserviceaccountbindingstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedserviceaccountstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedstripesubscription) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespacedstripesubscriptionstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespaceduser) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1namespaceduserstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1Organization**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1organization) | **Put** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#replacecloudstreamnativeiov1alpha1organizationstatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1apikeylistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/apikeys | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1cloudconnectionlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/cloudconnections | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1cloudenvironmentlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/cloudenvironments | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ClusterRole**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1clusterrole) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1clusterrolebinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1clusterrolebindinglist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1clusterrolebindingstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ClusterRoleList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1clusterrolelist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1clusterrolestatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1identitypoollistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/identitypools | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedapikey) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedapikeylist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedapikeystatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedcloudconnection) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedcloudconnectionlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedcloudconnectionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedcloudenvironment) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedcloudenvironmentlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedcloudenvironmentstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedidentitypool) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedidentitypoollist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedidentitypoolstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedoidcprovider) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedoidcproviderlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedoidcproviderstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPool**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpool) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpoollist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpoolmember) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpoolmemberlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpoolmemberstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpooloption) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpooloptionlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpooloptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpoolstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsarcluster) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsarclusterlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsarclusterstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsargateway) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsargatewaylist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsargatewaystatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsarinstance) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsarinstancelist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedpulsarinstancestatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedRole**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedrole) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedrolebinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedrolebindinglist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedrolebindingstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedRoleList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedrolelist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedrolestatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedSecret**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedsecret) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedSecretList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedsecretlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedsecretstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedserviceaccount) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedserviceaccountbinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedserviceaccountbindinglist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedserviceaccountbindingstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedserviceaccountlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedserviceaccountstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedstripesubscription) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedstripesubscriptionlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespacedstripesubscriptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedUser**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespaceduser) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedUserList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespaceduserlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1namespaceduserstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1oidcproviderlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/oidcproviders | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1Organization**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1organization) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name} | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1OrganizationList**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1organizationlist) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/organizations | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1OrganizationStatus**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1organizationstatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}/status | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1poollistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pools | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1poolmemberlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/poolmembers | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1pooloptionlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pooloptions | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1pulsarclusterlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pulsarclusters | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1pulsargatewaylistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pulsargateways | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1pulsarinstancelistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pulsarinstances | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1rolebindinglistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/rolebindings | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1rolelistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/roles | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1secretlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/secrets | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1serviceaccountbindinglistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/serviceaccountbindings | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1serviceaccountlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/serviceaccounts | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1stripesubscriptionlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/stripesubscriptions | +*CloudStreamnativeIoV1alpha1Api* | [**WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha1Api.md#watchcloudstreamnativeiov1alpha1userlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/users | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2AWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2awssubscription) | **Post** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2awssubscriptionstatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedbookkeeperset) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedbookkeepersetoption) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedbookkeepersetoptionstatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedbookkeepersetstatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedmonitorset) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedmonitorsetstatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedzookeeperset) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedzookeepersetoption) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedzookeepersetoptionstatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#createcloudstreamnativeiov1alpha2namespacedzookeepersetstatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2AWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2awssubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2awssubscriptionstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2collectionawssubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2collectionnamespacedbookkeeperset) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2collectionnamespacedbookkeepersetoption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2collectionnamespacedmonitorset) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2collectionnamespacedzookeeperset) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2collectionnamespacedzookeepersetoption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedbookkeeperset) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedbookkeepersetoption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedbookkeepersetoptionstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedbookkeepersetstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedmonitorset) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedmonitorsetstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedzookeeperset) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedzookeepersetoption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedzookeepersetoptionstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#deletecloudstreamnativeiov1alpha2namespacedzookeepersetstatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**GetCloudStreamnativeIoV1alpha2APIResources**](docs/CloudStreamnativeIoV1alpha2Api.md#getcloudstreamnativeiov1alpha2apiresources) | **Get** /apis/cloud.streamnative.io/v1alpha2/ | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2AWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2awssubscription) | **Get** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2bookkeepersetforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/bookkeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2bookkeepersetoptionforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/bookkeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2monitorsetforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/monitorsets | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2namespacedbookkeeperset) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2namespacedbookkeepersetoption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2namespacedmonitorset) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2namespacedzookeeperset) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2namespacedzookeepersetoption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2zookeepersetforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/zookeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#listcloudstreamnativeiov1alpha2zookeepersetoptionforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/zookeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2AWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2awssubscription) | **Patch** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2awssubscriptionstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedbookkeeperset) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedbookkeepersetoption) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedbookkeepersetoptionstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedbookkeepersetstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedmonitorset) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedmonitorsetstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedzookeeperset) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedzookeepersetoption) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedzookeepersetoptionstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#patchcloudstreamnativeiov1alpha2namespacedzookeepersetstatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2AWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2awssubscription) | **Get** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2awssubscriptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedbookkeeperset) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedbookkeepersetoption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedbookkeepersetoptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedbookkeepersetstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedmonitorset) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedmonitorsetstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedzookeeperset) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedzookeepersetoption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedzookeepersetoptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#readcloudstreamnativeiov1alpha2namespacedzookeepersetstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2AWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2awssubscription) | **Put** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2awssubscriptionstatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedbookkeeperset) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedbookkeepersetoption) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedbookkeepersetoptionstatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedbookkeepersetstatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedmonitorset) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedmonitorsetstatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedzookeeperset) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedzookeepersetoption) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedzookeepersetoptionstatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#replacecloudstreamnativeiov1alpha2namespacedzookeepersetstatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2AWSSubscription**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2awssubscription) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2awssubscriptionlist) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2awssubscriptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2bookkeepersetlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2bookkeepersetoptionlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2monitorsetlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/monitorsets | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedbookkeeperset) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedbookkeepersetlist) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedbookkeepersetoption) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedbookkeepersetoptionlist) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedbookkeepersetoptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedbookkeepersetstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedmonitorset) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedmonitorsetlist) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedmonitorsetstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedzookeeperset) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedzookeepersetlist) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedzookeepersetoption) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name} | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedzookeepersetoptionlist) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedzookeepersetoptionstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2namespacedzookeepersetstatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}/status | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2zookeepersetlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/zookeepersets | +*CloudStreamnativeIoV1alpha2Api* | [**WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces**](docs/CloudStreamnativeIoV1alpha2Api.md#watchcloudstreamnativeiov1alpha2zookeepersetoptionlistforallnamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/zookeepersetoptions | +*ComputeStreamnativeIoApi* | [**GetComputeStreamnativeIoAPIGroup**](docs/ComputeStreamnativeIoApi.md#getcomputestreamnativeioapigroup) | **Get** /apis/compute.streamnative.io/ | +*ComputeStreamnativeIoV1alpha1Api* | [**CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#createcomputestreamnativeiov1alpha1namespacedflinkdeployment) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments | +*ComputeStreamnativeIoV1alpha1Api* | [**CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#createcomputestreamnativeiov1alpha1namespacedflinkdeploymentstatus) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#createcomputestreamnativeiov1alpha1namespacedworkspace) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces | +*ComputeStreamnativeIoV1alpha1Api* | [**CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#createcomputestreamnativeiov1alpha1namespacedworkspacestatus) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#deletecomputestreamnativeiov1alpha1collectionnamespacedflinkdeployment) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments | +*ComputeStreamnativeIoV1alpha1Api* | [**DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#deletecomputestreamnativeiov1alpha1collectionnamespacedworkspace) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces | +*ComputeStreamnativeIoV1alpha1Api* | [**DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#deletecomputestreamnativeiov1alpha1namespacedflinkdeployment) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#deletecomputestreamnativeiov1alpha1namespacedflinkdeploymentstatus) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#deletecomputestreamnativeiov1alpha1namespacedworkspace) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#deletecomputestreamnativeiov1alpha1namespacedworkspacestatus) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**GetComputeStreamnativeIoV1alpha1APIResources**](docs/ComputeStreamnativeIoV1alpha1Api.md#getcomputestreamnativeiov1alpha1apiresources) | **Get** /apis/compute.streamnative.io/v1alpha1/ | +*ComputeStreamnativeIoV1alpha1Api* | [**ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces**](docs/ComputeStreamnativeIoV1alpha1Api.md#listcomputestreamnativeiov1alpha1flinkdeploymentforallnamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/flinkdeployments | +*ComputeStreamnativeIoV1alpha1Api* | [**ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#listcomputestreamnativeiov1alpha1namespacedflinkdeployment) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments | +*ComputeStreamnativeIoV1alpha1Api* | [**ListComputeStreamnativeIoV1alpha1NamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#listcomputestreamnativeiov1alpha1namespacedworkspace) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces | +*ComputeStreamnativeIoV1alpha1Api* | [**ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces**](docs/ComputeStreamnativeIoV1alpha1Api.md#listcomputestreamnativeiov1alpha1workspaceforallnamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/workspaces | +*ComputeStreamnativeIoV1alpha1Api* | [**PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#patchcomputestreamnativeiov1alpha1namespacedflinkdeployment) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#patchcomputestreamnativeiov1alpha1namespacedflinkdeploymentstatus) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#patchcomputestreamnativeiov1alpha1namespacedworkspace) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#patchcomputestreamnativeiov1alpha1namespacedworkspacestatus) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#readcomputestreamnativeiov1alpha1namespacedflinkdeployment) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#readcomputestreamnativeiov1alpha1namespacedflinkdeploymentstatus) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#readcomputestreamnativeiov1alpha1namespacedworkspace) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#readcomputestreamnativeiov1alpha1namespacedworkspacestatus) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#replacecomputestreamnativeiov1alpha1namespacedflinkdeployment) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#replacecomputestreamnativeiov1alpha1namespacedflinkdeploymentstatus) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#replacecomputestreamnativeiov1alpha1namespacedworkspace) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#replacecomputestreamnativeiov1alpha1namespacedworkspacestatus) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1flinkdeploymentlistforallnamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/flinkdeployments | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1namespacedflinkdeployment) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1namespacedflinkdeploymentlist) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1namespacedflinkdeploymentstatus) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1namespacedworkspace) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name} | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1namespacedworkspacelist) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1namespacedworkspacestatus) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}/status | +*ComputeStreamnativeIoV1alpha1Api* | [**WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces**](docs/ComputeStreamnativeIoV1alpha1Api.md#watchcomputestreamnativeiov1alpha1workspacelistforallnamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/workspaces | +*CustomObjectsApi* | [**CreateClusterCustomObject**](docs/CustomObjectsApi.md#createclustercustomobject) | **Post** /apis/{group}/{version}/{plural} | +*CustomObjectsApi* | [**CreateNamespacedCustomObject**](docs/CustomObjectsApi.md#createnamespacedcustomobject) | **Post** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +*CustomObjectsApi* | [**DeleteClusterCustomObject**](docs/CustomObjectsApi.md#deleteclustercustomobject) | **Delete** /apis/{group}/{version}/{plural}/{name} | +*CustomObjectsApi* | [**DeleteCollectionClusterCustomObject**](docs/CustomObjectsApi.md#deletecollectionclustercustomobject) | **Delete** /apis/{group}/{version}/{plural} | +*CustomObjectsApi* | [**DeleteCollectionNamespacedCustomObject**](docs/CustomObjectsApi.md#deletecollectionnamespacedcustomobject) | **Delete** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +*CustomObjectsApi* | [**DeleteNamespacedCustomObject**](docs/CustomObjectsApi.md#deletenamespacedcustomobject) | **Delete** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +*CustomObjectsApi* | [**GetClusterCustomObject**](docs/CustomObjectsApi.md#getclustercustomobject) | **Get** /apis/{group}/{version}/{plural}/{name} | +*CustomObjectsApi* | [**GetClusterCustomObjectScale**](docs/CustomObjectsApi.md#getclustercustomobjectscale) | **Get** /apis/{group}/{version}/{plural}/{name}/scale | +*CustomObjectsApi* | [**GetClusterCustomObjectStatus**](docs/CustomObjectsApi.md#getclustercustomobjectstatus) | **Get** /apis/{group}/{version}/{plural}/{name}/status | +*CustomObjectsApi* | [**GetCustomObjectsAPIResources**](docs/CustomObjectsApi.md#getcustomobjectsapiresources) | **Get** /apis/{group}/{version} | +*CustomObjectsApi* | [**GetNamespacedCustomObject**](docs/CustomObjectsApi.md#getnamespacedcustomobject) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +*CustomObjectsApi* | [**GetNamespacedCustomObjectScale**](docs/CustomObjectsApi.md#getnamespacedcustomobjectscale) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | +*CustomObjectsApi* | [**GetNamespacedCustomObjectStatus**](docs/CustomObjectsApi.md#getnamespacedcustomobjectstatus) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | +*CustomObjectsApi* | [**ListClusterCustomObject**](docs/CustomObjectsApi.md#listclustercustomobject) | **Get** /apis/{group}/{version}/{plural} | +*CustomObjectsApi* | [**ListCustomObjectForAllNamespaces**](docs/CustomObjectsApi.md#listcustomobjectforallnamespaces) | **Get** /apis/{group}/{version}/{plural}#‎ | +*CustomObjectsApi* | [**ListNamespacedCustomObject**](docs/CustomObjectsApi.md#listnamespacedcustomobject) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +*CustomObjectsApi* | [**PatchClusterCustomObject**](docs/CustomObjectsApi.md#patchclustercustomobject) | **Patch** /apis/{group}/{version}/{plural}/{name} | +*CustomObjectsApi* | [**PatchClusterCustomObjectScale**](docs/CustomObjectsApi.md#patchclustercustomobjectscale) | **Patch** /apis/{group}/{version}/{plural}/{name}/scale | +*CustomObjectsApi* | [**PatchClusterCustomObjectStatus**](docs/CustomObjectsApi.md#patchclustercustomobjectstatus) | **Patch** /apis/{group}/{version}/{plural}/{name}/status | +*CustomObjectsApi* | [**PatchNamespacedCustomObject**](docs/CustomObjectsApi.md#patchnamespacedcustomobject) | **Patch** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +*CustomObjectsApi* | [**PatchNamespacedCustomObjectScale**](docs/CustomObjectsApi.md#patchnamespacedcustomobjectscale) | **Patch** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | +*CustomObjectsApi* | [**PatchNamespacedCustomObjectStatus**](docs/CustomObjectsApi.md#patchnamespacedcustomobjectstatus) | **Patch** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | +*CustomObjectsApi* | [**ReplaceClusterCustomObject**](docs/CustomObjectsApi.md#replaceclustercustomobject) | **Put** /apis/{group}/{version}/{plural}/{name} | +*CustomObjectsApi* | [**ReplaceClusterCustomObjectScale**](docs/CustomObjectsApi.md#replaceclustercustomobjectscale) | **Put** /apis/{group}/{version}/{plural}/{name}/scale | +*CustomObjectsApi* | [**ReplaceClusterCustomObjectStatus**](docs/CustomObjectsApi.md#replaceclustercustomobjectstatus) | **Put** /apis/{group}/{version}/{plural}/{name}/status | +*CustomObjectsApi* | [**ReplaceNamespacedCustomObject**](docs/CustomObjectsApi.md#replacenamespacedcustomobject) | **Put** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +*CustomObjectsApi* | [**ReplaceNamespacedCustomObjectScale**](docs/CustomObjectsApi.md#replacenamespacedcustomobjectscale) | **Put** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | +*CustomObjectsApi* | [**ReplaceNamespacedCustomObjectStatus**](docs/CustomObjectsApi.md#replacenamespacedcustomobjectstatus) | **Put** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | +*VersionApi* | [**GetCodeVersion**](docs/VersionApi.md#getcodeversion) | **Get** /version/ | + + +## Documentation For Models + + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef](docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier](docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec.md) + - [ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus](docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus.md) + - [V1APIGroup](docs/V1APIGroup.md) + - [V1APIGroupList](docs/V1APIGroupList.md) + - [V1APIResource](docs/V1APIResource.md) + - [V1APIResourceList](docs/V1APIResourceList.md) + - [V1Affinity](docs/V1Affinity.md) + - [V1Condition](docs/V1Condition.md) + - [V1ConfigMapEnvSource](docs/V1ConfigMapEnvSource.md) + - [V1ConfigMapKeySelector](docs/V1ConfigMapKeySelector.md) + - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) + - [V1DeleteOptions](docs/V1DeleteOptions.md) + - [V1EnvFromSource](docs/V1EnvFromSource.md) + - [V1EnvVar](docs/V1EnvVar.md) + - [V1EnvVarSource](docs/V1EnvVarSource.md) + - [V1ExecAction](docs/V1ExecAction.md) + - [V1GRPCAction](docs/V1GRPCAction.md) + - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) + - [V1HTTPGetAction](docs/V1HTTPGetAction.md) + - [V1HTTPHeader](docs/V1HTTPHeader.md) + - [V1KeyToPath](docs/V1KeyToPath.md) + - [V1LabelSelector](docs/V1LabelSelector.md) + - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) + - [V1ListMeta](docs/V1ListMeta.md) + - [V1LocalObjectReference](docs/V1LocalObjectReference.md) + - [V1ManagedFieldsEntry](docs/V1ManagedFieldsEntry.md) + - [V1NodeAffinity](docs/V1NodeAffinity.md) + - [V1NodeSelector](docs/V1NodeSelector.md) + - [V1NodeSelectorRequirement](docs/V1NodeSelectorRequirement.md) + - [V1NodeSelectorTerm](docs/V1NodeSelectorTerm.md) + - [V1ObjectFieldSelector](docs/V1ObjectFieldSelector.md) + - [V1ObjectMeta](docs/V1ObjectMeta.md) + - [V1OwnerReference](docs/V1OwnerReference.md) + - [V1PodAffinity](docs/V1PodAffinity.md) + - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) + - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) + - [V1Preconditions](docs/V1Preconditions.md) + - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) + - [V1Probe](docs/V1Probe.md) + - [V1ResourceFieldSelector](docs/V1ResourceFieldSelector.md) + - [V1ResourceRequirements](docs/V1ResourceRequirements.md) + - [V1SecretEnvSource](docs/V1SecretEnvSource.md) + - [V1SecretKeySelector](docs/V1SecretKeySelector.md) + - [V1SecretVolumeSource](docs/V1SecretVolumeSource.md) + - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) + - [V1Status](docs/V1Status.md) + - [V1StatusCause](docs/V1StatusCause.md) + - [V1StatusDetails](docs/V1StatusDetails.md) + - [V1TCPSocketAction](docs/V1TCPSocketAction.md) + - [V1Toleration](docs/V1Toleration.md) + - [V1VolumeMount](docs/V1VolumeMount.md) + - [V1WatchEvent](docs/V1WatchEvent.md) + - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.md) + - [VersionInfo](docs/VersionInfo.md) + + +## Documentation For Authorization + + Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/sdk/sdk-apiserver/api/openapi.yaml b/sdk/sdk-apiserver/api/openapi.yaml new file mode 100644 index 0000000..826c6d8 --- /dev/null +++ b/sdk/sdk-apiserver/api/openapi.yaml @@ -0,0 +1,109306 @@ +# +# Copyright © 2023-2024 StreamNative Inc. +# + +openapi: 3.0.1 +info: + title: Api + version: v0 +servers: +- url: / +paths: + /apis/: + get: + description: get available API versions + operationId: getAPIVersions + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroupList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroupList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroupList' + description: OK + tags: + - apis + /apis/authorization.streamnative.io/: + get: + description: get information of a group + operationId: getAuthorizationStreamnativeIoAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + tags: + - authorizationStreamnativeIo + /apis/authorization.streamnative.io/v1alpha1/: + get: + description: get available resources + operationId: getAuthorizationStreamnativeIoV1alpha1APIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + tags: + - authorizationStreamnativeIo_v1alpha1 + /apis/authorization.streamnative.io/v1alpha1/iamaccounts: + get: + description: list or watch objects of kind IamAccount + operationId: listAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + description: OK + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts: + delete: + description: delete collection of IamAccount + operationId: deleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + get: + description: list or watch objects of kind IamAccount + operationId: listAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList' + description: OK + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + post: + description: create an IamAccount + operationId: createAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}: + delete: + description: delete an IamAccount + operationId: deleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + get: + description: read the specified IamAccount + operationId: readAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + patch: + description: partially update the specified IamAccount + operationId: patchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Created + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + put: + description: replace the specified IamAccount + operationId: replaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Created + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status: + delete: + description: delete status of an IamAccount + operationId: deleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + get: + description: read status of the specified IamAccount + operationId: readAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + patch: + description: partially update status of the specified IamAccount + operationId: patchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Created + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + post: + description: create status of an IamAccount + operationId: createAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + put: + description: replace status of the specified IamAccount + operationId: replaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + parameters: + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + description: Created + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/selfsubjectrbacreviews: + post: + description: create a SelfSubjectRbacReview + operationId: createAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: SelfSubjectRbacReview + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/selfsubjectrulesreviews: + post: + description: create a SelfSubjectRulesReview + operationId: createAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: SelfSubjectRulesReview + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/selfsubjectuserreviews: + post: + description: create a SelfSubjectUserReview + operationId: createAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: SelfSubjectUserReview + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/subjectrolereviews: + post: + description: create a SubjectRoleReview + operationId: createAuthorizationStreamnativeIoV1alpha1SubjectRoleReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: SubjectRoleReview + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/subjectrulesreviews: + post: + description: create a SubjectRulesReview + operationId: createAuthorizationStreamnativeIoV1alpha1SubjectRulesReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview' + description: Accepted + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: SubjectRulesReview + x-codegen-request-body-name: body + /apis/authorization.streamnative.io/v1alpha1/watch/iamaccounts: {} + /apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts: {} + /apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}: {} + /apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}/status: + get: + description: "watch changes to status of an object of kind IamAccount. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the IamAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - authorizationStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: authorization.streamnative.io + version: v1alpha1 + kind: IamAccount + /apis/billing.streamnative.io/: + get: + description: get information of a group + operationId: getBillingStreamnativeIoAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + tags: + - billingStreamnativeIo + /apis/billing.streamnative.io/v1alpha1/: + get: + description: get available resources + operationId: getBillingStreamnativeIoV1alpha1APIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/customerportalrequests: + post: + description: create a CustomerPortalRequest + operationId: createBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: CustomerPortalRequest + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents: + delete: + description: delete collection of PaymentIntent + operationId: deleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PaymentIntent + operationId: listBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + post: + description: create a PaymentIntent + operationId: createBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}: + delete: + description: delete a PaymentIntent + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + get: + description: read the specified PaymentIntent + operationId: readBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + patch: + description: partially update the specified PaymentIntent + operationId: patchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + put: + description: replace the specified PaymentIntent + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status: + delete: + description: delete status of a PaymentIntent + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + get: + description: read status of the specified PaymentIntent + operationId: readBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + patch: + description: partially update status of the specified PaymentIntent + operationId: patchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + post: + description: create status of a PaymentIntent + operationId: createBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + put: + description: replace status of the specified PaymentIntent + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + parameters: + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers: + delete: + description: delete collection of PrivateOffer + operationId: deleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PrivateOffer + operationId: listBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + post: + description: create a PrivateOffer + operationId: createBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}: + delete: + description: delete a PrivateOffer + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + get: + description: read the specified PrivateOffer + operationId: readBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + patch: + description: partially update the specified PrivateOffer + operationId: patchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + put: + description: replace the specified PrivateOffer + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status: + delete: + description: delete status of a PrivateOffer + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + get: + description: read status of the specified PrivateOffer + operationId: readBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + patch: + description: partially update status of the specified PrivateOffer + operationId: patchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + post: + description: create status of a PrivateOffer + operationId: createBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + put: + description: replace status of the specified PrivateOffer + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + parameters: + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products: + delete: + description: delete collection of Product + operationId: deleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + get: + description: list or watch objects of kind Product + operationId: listBillingStreamnativeIoV1alpha1NamespacedProduct + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + post: + description: create a Product + operationId: createBillingStreamnativeIoV1alpha1NamespacedProduct + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}: + delete: + description: delete a Product + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedProduct + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + get: + description: read the specified Product + operationId: readBillingStreamnativeIoV1alpha1NamespacedProduct + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + patch: + description: partially update the specified Product + operationId: patchBillingStreamnativeIoV1alpha1NamespacedProduct + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + put: + description: replace the specified Product + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedProduct + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status: + delete: + description: delete status of a Product + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedProductStatus + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + get: + description: read status of the specified Product + operationId: readBillingStreamnativeIoV1alpha1NamespacedProductStatus + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + patch: + description: partially update status of the specified Product + operationId: patchBillingStreamnativeIoV1alpha1NamespacedProductStatus + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + post: + description: create status of a Product + operationId: createBillingStreamnativeIoV1alpha1NamespacedProductStatus + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + put: + description: replace status of the specified Product + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedProductStatus + parameters: + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents: + delete: + description: delete collection of SetupIntent + operationId: deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + get: + description: list or watch objects of kind SetupIntent + operationId: listBillingStreamnativeIoV1alpha1NamespacedSetupIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + post: + description: create a SetupIntent + operationId: createBillingStreamnativeIoV1alpha1NamespacedSetupIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}: + delete: + description: delete a SetupIntent + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + get: + description: read the specified SetupIntent + operationId: readBillingStreamnativeIoV1alpha1NamespacedSetupIntent + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + patch: + description: partially update the specified SetupIntent + operationId: patchBillingStreamnativeIoV1alpha1NamespacedSetupIntent + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + put: + description: replace the specified SetupIntent + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status: + delete: + description: delete status of a SetupIntent + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + get: + description: read status of the specified SetupIntent + operationId: readBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + patch: + description: partially update status of the specified SetupIntent + operationId: patchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + post: + description: create status of a SetupIntent + operationId: createBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + put: + description: replace status of the specified SetupIntent + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + parameters: + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents: + delete: + description: delete collection of SubscriptionIntent + operationId: deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + get: + description: list or watch objects of kind SubscriptionIntent + operationId: listBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + post: + description: create a SubscriptionIntent + operationId: createBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}: + delete: + description: delete a SubscriptionIntent + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + get: + description: read the specified SubscriptionIntent + operationId: readBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + patch: + description: partially update the specified SubscriptionIntent + operationId: patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + put: + description: replace the specified SubscriptionIntent + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status: + delete: + description: delete status of a SubscriptionIntent + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + get: + description: read status of the specified SubscriptionIntent + operationId: readBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + patch: + description: partially update status of the specified SubscriptionIntent + operationId: patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + post: + description: create status of a SubscriptionIntent + operationId: createBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + put: + description: replace status of the specified SubscriptionIntent + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + parameters: + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions: + delete: + description: delete collection of Subscription + operationId: deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + get: + description: list or watch objects of kind Subscription + operationId: listBillingStreamnativeIoV1alpha1NamespacedSubscription + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + post: + description: create a Subscription + operationId: createBillingStreamnativeIoV1alpha1NamespacedSubscription + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}: + delete: + description: delete a Subscription + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedSubscription + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + get: + description: read the specified Subscription + operationId: readBillingStreamnativeIoV1alpha1NamespacedSubscription + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + patch: + description: partially update the specified Subscription + operationId: patchBillingStreamnativeIoV1alpha1NamespacedSubscription + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + put: + description: replace the specified Subscription + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedSubscription + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status: + delete: + description: delete status of a Subscription + operationId: deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + get: + description: read status of the specified Subscription + operationId: readBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + patch: + description: partially update status of the specified Subscription + operationId: patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + post: + description: create status of a Subscription + operationId: createBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + put: + description: replace status of the specified Subscription + operationId: replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + parameters: + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/paymentintents: + get: + description: list or watch objects of kind PaymentIntent + operationId: listBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + /apis/billing.streamnative.io/v1alpha1/privateoffers: + get: + description: list or watch objects of kind PrivateOffer + operationId: listBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + /apis/billing.streamnative.io/v1alpha1/products: + get: + description: list or watch objects of kind Product + operationId: listBillingStreamnativeIoV1alpha1ProductForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + /apis/billing.streamnative.io/v1alpha1/publicoffers: + delete: + description: delete collection of PublicOffer + operationId: deleteBillingStreamnativeIoV1alpha1CollectionPublicOffer + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PublicOffer + operationId: listBillingStreamnativeIoV1alpha1PublicOffer + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + post: + description: create a PublicOffer + operationId: createBillingStreamnativeIoV1alpha1PublicOffer + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}: + delete: + description: delete a PublicOffer + operationId: deleteBillingStreamnativeIoV1alpha1PublicOffer + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + get: + description: read the specified PublicOffer + operationId: readBillingStreamnativeIoV1alpha1PublicOffer + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + patch: + description: partially update the specified PublicOffer + operationId: patchBillingStreamnativeIoV1alpha1PublicOffer + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + put: + description: replace the specified PublicOffer + operationId: replaceBillingStreamnativeIoV1alpha1PublicOffer + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status: + delete: + description: delete status of a PublicOffer + operationId: deleteBillingStreamnativeIoV1alpha1PublicOfferStatus + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + get: + description: read status of the specified PublicOffer + operationId: readBillingStreamnativeIoV1alpha1PublicOfferStatus + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + patch: + description: partially update status of the specified PublicOffer + operationId: patchBillingStreamnativeIoV1alpha1PublicOfferStatus + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + post: + description: create status of a PublicOffer + operationId: createBillingStreamnativeIoV1alpha1PublicOfferStatus + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + put: + description: replace status of the specified PublicOffer + operationId: replaceBillingStreamnativeIoV1alpha1PublicOfferStatus + parameters: + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/setupintents: + get: + description: list or watch objects of kind SetupIntent + operationId: listBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + /apis/billing.streamnative.io/v1alpha1/subscriptionintents: + get: + description: list or watch objects of kind SubscriptionIntent + operationId: listBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + /apis/billing.streamnative.io/v1alpha1/subscriptions: + get: + description: list or watch objects of kind Subscription + operationId: listBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + /apis/billing.streamnative.io/v1alpha1/sugerentitlementreviews: + post: + description: create a SugerEntitlementReview + operationId: createBillingStreamnativeIoV1alpha1SugerEntitlementReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SugerEntitlementReview + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/testclocks: + delete: + description: delete collection of TestClock + operationId: deleteBillingStreamnativeIoV1alpha1CollectionTestClock + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + get: + description: list or watch objects of kind TestClock + operationId: listBillingStreamnativeIoV1alpha1TestClock + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + post: + description: create a TestClock + operationId: createBillingStreamnativeIoV1alpha1TestClock + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/testclocks/{name}: + delete: + description: delete a TestClock + operationId: deleteBillingStreamnativeIoV1alpha1TestClock + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + get: + description: read the specified TestClock + operationId: readBillingStreamnativeIoV1alpha1TestClock + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + patch: + description: partially update the specified TestClock + operationId: patchBillingStreamnativeIoV1alpha1TestClock + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + put: + description: replace the specified TestClock + operationId: replaceBillingStreamnativeIoV1alpha1TestClock + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status: + delete: + description: delete status of a TestClock + operationId: deleteBillingStreamnativeIoV1alpha1TestClockStatus + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + get: + description: read status of the specified TestClock + operationId: readBillingStreamnativeIoV1alpha1TestClockStatus + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + patch: + description: partially update status of the specified TestClock + operationId: patchBillingStreamnativeIoV1alpha1TestClockStatus + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + post: + description: create status of a TestClock + operationId: createBillingStreamnativeIoV1alpha1TestClockStatus + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Accepted + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + put: + description: replace status of the specified TestClock + operationId: replaceBillingStreamnativeIoV1alpha1TestClockStatus + parameters: + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + description: Created + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + x-codegen-request-body-name: body + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents: + get: + description: "watch individual changes to a list of PaymentIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}: + get: + description: "watch changes to an object of kind PaymentIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}/status: + get: + description: "watch changes to status of an object of kind PaymentIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PaymentIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers: + get: + description: "watch individual changes to a list of PrivateOffer. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}: + get: + description: "watch changes to an object of kind PrivateOffer. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}/status: + get: + description: "watch changes to status of an object of kind PrivateOffer. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PrivateOffer + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products: + get: + description: "watch individual changes to a list of Product. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedProductList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}: + get: + description: "watch changes to an object of kind Product. deprecated: use the\ + \ 'watch' parameter with a list operation instead, filtered to a single item\ + \ with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedProduct + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}/status: + get: + description: "watch changes to status of an object of kind Product. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedProductStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Product + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents: + get: + description: "watch individual changes to a list of SetupIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}: + get: + description: "watch changes to an object of kind SetupIntent. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSetupIntent + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}/status: + get: + description: "watch changes to status of an object of kind SetupIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the SetupIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents: + get: + description: "watch individual changes to a list of SubscriptionIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}: + get: + description: "watch changes to an object of kind SubscriptionIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}/status: + get: + description: "watch changes to status of an object of kind SubscriptionIntent.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the SubscriptionIntent + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions: + get: + description: "watch individual changes to a list of Subscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}: + get: + description: "watch changes to an object of kind Subscription. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSubscription + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}/status: + get: + description: "watch changes to status of an object of kind Subscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Subscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + /apis/billing.streamnative.io/v1alpha1/watch/paymentintents: + get: + description: "watch individual changes to a list of PaymentIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PaymentIntent + /apis/billing.streamnative.io/v1alpha1/watch/privateoffers: + get: + description: "watch individual changes to a list of PrivateOffer. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PrivateOffer + /apis/billing.streamnative.io/v1alpha1/watch/products: + get: + description: "watch individual changes to a list of Product. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Product + /apis/billing.streamnative.io/v1alpha1/watch/publicoffers: + get: + description: "watch individual changes to a list of PublicOffer. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1PublicOfferList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + /apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}: + get: + description: "watch changes to an object of kind PublicOffer. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1PublicOffer + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + /apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}/status: + get: + description: "watch changes to status of an object of kind PublicOffer. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1PublicOfferStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PublicOffer + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: PublicOffer + /apis/billing.streamnative.io/v1alpha1/watch/setupintents: + get: + description: "watch individual changes to a list of SetupIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SetupIntent + /apis/billing.streamnative.io/v1alpha1/watch/subscriptionintents: + get: + description: "watch individual changes to a list of SubscriptionIntent. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: SubscriptionIntent + /apis/billing.streamnative.io/v1alpha1/watch/subscriptions: + get: + description: "watch individual changes to a list of Subscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: Subscription + /apis/billing.streamnative.io/v1alpha1/watch/testclocks: + get: + description: "watch individual changes to a list of TestClock. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchBillingStreamnativeIoV1alpha1TestClockList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + /apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}: + get: + description: "watch changes to an object of kind TestClock. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1TestClock + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + /apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}/status: + get: + description: "watch changes to status of an object of kind TestClock. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchBillingStreamnativeIoV1alpha1TestClockStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the TestClock + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - billingStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: billing.streamnative.io + version: v1alpha1 + kind: TestClock + /apis/cloud.streamnative.io/: + get: + description: get information of a group + operationId: getCloudStreamnativeIoAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + tags: + - cloudStreamnativeIo + /apis/cloud.streamnative.io/v1alpha1/: + get: + description: get available resources + operationId: getCloudStreamnativeIoV1alpha1APIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + /apis/cloud.streamnative.io/v1alpha1/apikeys: + get: + description: list or watch objects of kind APIKey + operationId: listCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + /apis/cloud.streamnative.io/v1alpha1/cloudconnections: + get: + description: list or watch objects of kind CloudConnection + operationId: listCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + /apis/cloud.streamnative.io/v1alpha1/cloudenvironments: + get: + description: list or watch objects of kind CloudEnvironment + operationId: listCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings: + delete: + description: delete collection of ClusterRoleBinding + operationId: deleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + get: + description: list or watch objects of kind ClusterRoleBinding + operationId: listCloudStreamnativeIoV1alpha1ClusterRoleBinding + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + post: + description: create a ClusterRoleBinding + operationId: createCloudStreamnativeIoV1alpha1ClusterRoleBinding + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}: + delete: + description: delete a ClusterRoleBinding + operationId: deleteCloudStreamnativeIoV1alpha1ClusterRoleBinding + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + get: + description: read the specified ClusterRoleBinding + operationId: readCloudStreamnativeIoV1alpha1ClusterRoleBinding + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + patch: + description: partially update the specified ClusterRoleBinding + operationId: patchCloudStreamnativeIoV1alpha1ClusterRoleBinding + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + put: + description: replace the specified ClusterRoleBinding + operationId: replaceCloudStreamnativeIoV1alpha1ClusterRoleBinding + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status: + delete: + description: delete status of a ClusterRoleBinding + operationId: deleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + get: + description: read status of the specified ClusterRoleBinding + operationId: readCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + patch: + description: partially update status of the specified ClusterRoleBinding + operationId: patchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + post: + description: create status of a ClusterRoleBinding + operationId: createCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + put: + description: replace status of the specified ClusterRoleBinding + operationId: replaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + parameters: + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/clusterroles: + delete: + description: delete collection of ClusterRole + operationId: deleteCloudStreamnativeIoV1alpha1CollectionClusterRole + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + get: + description: list or watch objects of kind ClusterRole + operationId: listCloudStreamnativeIoV1alpha1ClusterRole + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + post: + description: create a ClusterRole + operationId: createCloudStreamnativeIoV1alpha1ClusterRole + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}: + delete: + description: delete a ClusterRole + operationId: deleteCloudStreamnativeIoV1alpha1ClusterRole + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + get: + description: read the specified ClusterRole + operationId: readCloudStreamnativeIoV1alpha1ClusterRole + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + patch: + description: partially update the specified ClusterRole + operationId: patchCloudStreamnativeIoV1alpha1ClusterRole + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + put: + description: replace the specified ClusterRole + operationId: replaceCloudStreamnativeIoV1alpha1ClusterRole + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status: + delete: + description: delete status of a ClusterRole + operationId: deleteCloudStreamnativeIoV1alpha1ClusterRoleStatus + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + get: + description: read status of the specified ClusterRole + operationId: readCloudStreamnativeIoV1alpha1ClusterRoleStatus + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + patch: + description: partially update status of the specified ClusterRole + operationId: patchCloudStreamnativeIoV1alpha1ClusterRoleStatus + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + post: + description: create status of a ClusterRole + operationId: createCloudStreamnativeIoV1alpha1ClusterRoleStatus + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + put: + description: replace status of the specified ClusterRole + operationId: replaceCloudStreamnativeIoV1alpha1ClusterRoleStatus + parameters: + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/identitypools: + get: + description: list or watch objects of kind IdentityPool + operationId: listCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys: + delete: + description: delete collection of APIKey + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + get: + description: list or watch objects of kind APIKey + operationId: listCloudStreamnativeIoV1alpha1NamespacedAPIKey + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + post: + description: create an APIKey + operationId: createCloudStreamnativeIoV1alpha1NamespacedAPIKey + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}: + delete: + description: delete an APIKey + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedAPIKey + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + get: + description: read the specified APIKey + operationId: readCloudStreamnativeIoV1alpha1NamespacedAPIKey + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + patch: + description: partially update the specified APIKey + operationId: patchCloudStreamnativeIoV1alpha1NamespacedAPIKey + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + put: + description: replace the specified APIKey + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedAPIKey + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status: + delete: + description: delete status of an APIKey + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + get: + description: read status of the specified APIKey + operationId: readCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + patch: + description: partially update status of the specified APIKey + operationId: patchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + post: + description: create status of an APIKey + operationId: createCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + put: + description: replace status of the specified APIKey + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + parameters: + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections: + delete: + description: delete collection of CloudConnection + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + get: + description: list or watch objects of kind CloudConnection + operationId: listCloudStreamnativeIoV1alpha1NamespacedCloudConnection + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + post: + description: create a CloudConnection + operationId: createCloudStreamnativeIoV1alpha1NamespacedCloudConnection + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}: + delete: + description: delete a CloudConnection + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + get: + description: read the specified CloudConnection + operationId: readCloudStreamnativeIoV1alpha1NamespacedCloudConnection + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + patch: + description: partially update the specified CloudConnection + operationId: patchCloudStreamnativeIoV1alpha1NamespacedCloudConnection + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + put: + description: replace the specified CloudConnection + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status: + delete: + description: delete status of a CloudConnection + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + get: + description: read status of the specified CloudConnection + operationId: readCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + patch: + description: partially update status of the specified CloudConnection + operationId: patchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + post: + description: create status of a CloudConnection + operationId: createCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + put: + description: replace status of the specified CloudConnection + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + parameters: + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments: + delete: + description: delete collection of CloudEnvironment + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + get: + description: list or watch objects of kind CloudEnvironment + operationId: listCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + post: + description: create a CloudEnvironment + operationId: createCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}: + delete: + description: delete a CloudEnvironment + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + get: + description: read the specified CloudEnvironment + operationId: readCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + patch: + description: partially update the specified CloudEnvironment + operationId: patchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + put: + description: replace the specified CloudEnvironment + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status: + delete: + description: delete status of a CloudEnvironment + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + get: + description: read status of the specified CloudEnvironment + operationId: readCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + patch: + description: partially update status of the specified CloudEnvironment + operationId: patchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + post: + description: create status of a CloudEnvironment + operationId: createCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + put: + description: replace status of the specified CloudEnvironment + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + parameters: + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools: + delete: + description: delete collection of IdentityPool + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + get: + description: list or watch objects of kind IdentityPool + operationId: listCloudStreamnativeIoV1alpha1NamespacedIdentityPool + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + post: + description: create an IdentityPool + operationId: createCloudStreamnativeIoV1alpha1NamespacedIdentityPool + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}: + delete: + description: delete an IdentityPool + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + get: + description: read the specified IdentityPool + operationId: readCloudStreamnativeIoV1alpha1NamespacedIdentityPool + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + patch: + description: partially update the specified IdentityPool + operationId: patchCloudStreamnativeIoV1alpha1NamespacedIdentityPool + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + put: + description: replace the specified IdentityPool + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status: + delete: + description: delete status of an IdentityPool + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + get: + description: read status of the specified IdentityPool + operationId: readCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + patch: + description: partially update status of the specified IdentityPool + operationId: patchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + post: + description: create status of an IdentityPool + operationId: createCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + put: + description: replace status of the specified IdentityPool + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + parameters: + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders: + delete: + description: delete collection of OIDCProvider + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + get: + description: list or watch objects of kind OIDCProvider + operationId: listCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + post: + description: create an OIDCProvider + operationId: createCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}: + delete: + description: delete an OIDCProvider + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + get: + description: read the specified OIDCProvider + operationId: readCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + patch: + description: partially update the specified OIDCProvider + operationId: patchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + put: + description: replace the specified OIDCProvider + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status: + delete: + description: delete status of an OIDCProvider + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + get: + description: read status of the specified OIDCProvider + operationId: readCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + patch: + description: partially update status of the specified OIDCProvider + operationId: patchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + post: + description: create status of an OIDCProvider + operationId: createCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + put: + description: replace status of the specified OIDCProvider + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + parameters: + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers: + delete: + description: delete collection of PoolMember + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PoolMember + operationId: listCloudStreamnativeIoV1alpha1NamespacedPoolMember + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + post: + description: create a PoolMember + operationId: createCloudStreamnativeIoV1alpha1NamespacedPoolMember + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}: + delete: + description: delete a PoolMember + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPoolMember + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + get: + description: read the specified PoolMember + operationId: readCloudStreamnativeIoV1alpha1NamespacedPoolMember + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + patch: + description: partially update the specified PoolMember + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPoolMember + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + put: + description: replace the specified PoolMember + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPoolMember + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status: + delete: + description: delete status of a PoolMember + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + get: + description: read status of the specified PoolMember + operationId: readCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + patch: + description: partially update status of the specified PoolMember + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + post: + description: create status of a PoolMember + operationId: createCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + put: + description: replace status of the specified PoolMember + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + parameters: + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions: + delete: + description: delete collection of PoolOption + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PoolOption + operationId: listCloudStreamnativeIoV1alpha1NamespacedPoolOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + post: + description: create a PoolOption + operationId: createCloudStreamnativeIoV1alpha1NamespacedPoolOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}: + delete: + description: delete a PoolOption + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPoolOption + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + get: + description: read the specified PoolOption + operationId: readCloudStreamnativeIoV1alpha1NamespacedPoolOption + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + patch: + description: partially update the specified PoolOption + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPoolOption + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + put: + description: replace the specified PoolOption + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPoolOption + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status: + delete: + description: delete status of a PoolOption + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + get: + description: read status of the specified PoolOption + operationId: readCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + patch: + description: partially update status of the specified PoolOption + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + post: + description: create status of a PoolOption + operationId: createCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + put: + description: replace status of the specified PoolOption + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + parameters: + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools: + delete: + description: delete collection of Pool + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + get: + description: list or watch objects of kind Pool + operationId: listCloudStreamnativeIoV1alpha1NamespacedPool + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + post: + description: create a Pool + operationId: createCloudStreamnativeIoV1alpha1NamespacedPool + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}: + delete: + description: delete a Pool + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPool + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + get: + description: read the specified Pool + operationId: readCloudStreamnativeIoV1alpha1NamespacedPool + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + patch: + description: partially update the specified Pool + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPool + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + put: + description: replace the specified Pool + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPool + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status: + delete: + description: delete status of a Pool + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + get: + description: read status of the specified Pool + operationId: readCloudStreamnativeIoV1alpha1NamespacedPoolStatus + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + patch: + description: partially update status of the specified Pool + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPoolStatus + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + post: + description: create status of a Pool + operationId: createCloudStreamnativeIoV1alpha1NamespacedPoolStatus + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + put: + description: replace status of the specified Pool + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus + parameters: + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters: + delete: + description: delete collection of PulsarCluster + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PulsarCluster + operationId: listCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + post: + description: create a PulsarCluster + operationId: createCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}: + delete: + description: delete a PulsarCluster + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + get: + description: read the specified PulsarCluster + operationId: readCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + patch: + description: partially update the specified PulsarCluster + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + put: + description: replace the specified PulsarCluster + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status: + delete: + description: delete status of a PulsarCluster + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + get: + description: read status of the specified PulsarCluster + operationId: readCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + patch: + description: partially update status of the specified PulsarCluster + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + post: + description: create status of a PulsarCluster + operationId: createCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + put: + description: replace status of the specified PulsarCluster + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + parameters: + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways: + delete: + description: delete collection of PulsarGateway + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PulsarGateway + operationId: listCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + post: + description: create a PulsarGateway + operationId: createCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}: + delete: + description: delete a PulsarGateway + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + get: + description: read the specified PulsarGateway + operationId: readCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + patch: + description: partially update the specified PulsarGateway + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + put: + description: replace the specified PulsarGateway + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status: + delete: + description: delete status of a PulsarGateway + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + get: + description: read status of the specified PulsarGateway + operationId: readCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + patch: + description: partially update status of the specified PulsarGateway + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + post: + description: create status of a PulsarGateway + operationId: createCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + put: + description: replace status of the specified PulsarGateway + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + parameters: + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances: + delete: + description: delete collection of PulsarInstance + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + get: + description: list or watch objects of kind PulsarInstance + operationId: listCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + post: + description: create a PulsarInstance + operationId: createCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}: + delete: + description: delete a PulsarInstance + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + get: + description: read the specified PulsarInstance + operationId: readCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + patch: + description: partially update the specified PulsarInstance + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + put: + description: replace the specified PulsarInstance + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status: + delete: + description: delete status of a PulsarInstance + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + get: + description: read status of the specified PulsarInstance + operationId: readCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + patch: + description: partially update status of the specified PulsarInstance + operationId: patchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + post: + description: create status of a PulsarInstance + operationId: createCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + put: + description: replace status of the specified PulsarInstance + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + parameters: + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings: + delete: + description: delete collection of RoleBinding + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + get: + description: list or watch objects of kind RoleBinding + operationId: listCloudStreamnativeIoV1alpha1NamespacedRoleBinding + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + post: + description: create a RoleBinding + operationId: createCloudStreamnativeIoV1alpha1NamespacedRoleBinding + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}: + delete: + description: delete a RoleBinding + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + get: + description: read the specified RoleBinding + operationId: readCloudStreamnativeIoV1alpha1NamespacedRoleBinding + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + patch: + description: partially update the specified RoleBinding + operationId: patchCloudStreamnativeIoV1alpha1NamespacedRoleBinding + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + put: + description: replace the specified RoleBinding + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status: + delete: + description: delete status of a RoleBinding + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + get: + description: read status of the specified RoleBinding + operationId: readCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + patch: + description: partially update status of the specified RoleBinding + operationId: patchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + post: + description: create status of a RoleBinding + operationId: createCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + put: + description: replace status of the specified RoleBinding + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + parameters: + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles: + delete: + description: delete collection of Role + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + get: + description: list or watch objects of kind Role + operationId: listCloudStreamnativeIoV1alpha1NamespacedRole + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + post: + description: create a Role + operationId: createCloudStreamnativeIoV1alpha1NamespacedRole + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}: + delete: + description: delete a Role + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedRole + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + get: + description: read the specified Role + operationId: readCloudStreamnativeIoV1alpha1NamespacedRole + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + patch: + description: partially update the specified Role + operationId: patchCloudStreamnativeIoV1alpha1NamespacedRole + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + put: + description: replace the specified Role + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedRole + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status: + delete: + description: delete status of a Role + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + get: + description: read status of the specified Role + operationId: readCloudStreamnativeIoV1alpha1NamespacedRoleStatus + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + patch: + description: partially update status of the specified Role + operationId: patchCloudStreamnativeIoV1alpha1NamespacedRoleStatus + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + post: + description: create status of a Role + operationId: createCloudStreamnativeIoV1alpha1NamespacedRoleStatus + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + put: + description: replace status of the specified Role + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus + parameters: + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets: + delete: + description: delete collection of Secret + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + get: + description: list or watch objects of kind Secret + operationId: listCloudStreamnativeIoV1alpha1NamespacedSecret + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + post: + description: create a Secret + operationId: createCloudStreamnativeIoV1alpha1NamespacedSecret + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}: + delete: + description: delete a Secret + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedSecret + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + get: + description: read the specified Secret + operationId: readCloudStreamnativeIoV1alpha1NamespacedSecret + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + patch: + description: partially update the specified Secret + operationId: patchCloudStreamnativeIoV1alpha1NamespacedSecret + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + put: + description: replace the specified Secret + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedSecret + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status: + delete: + description: delete status of a Secret + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + get: + description: read status of the specified Secret + operationId: readCloudStreamnativeIoV1alpha1NamespacedSecretStatus + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + patch: + description: partially update status of the specified Secret + operationId: patchCloudStreamnativeIoV1alpha1NamespacedSecretStatus + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + post: + description: create status of a Secret + operationId: createCloudStreamnativeIoV1alpha1NamespacedSecretStatus + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + put: + description: replace status of the specified Secret + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus + parameters: + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings: + delete: + description: delete collection of ServiceAccountBinding + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + get: + description: list or watch objects of kind ServiceAccountBinding + operationId: listCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + post: + description: create a ServiceAccountBinding + operationId: createCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}: + delete: + description: delete a ServiceAccountBinding + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + get: + description: read the specified ServiceAccountBinding + operationId: readCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + patch: + description: partially update the specified ServiceAccountBinding + operationId: patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + put: + description: replace the specified ServiceAccountBinding + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status: + delete: + description: delete status of a ServiceAccountBinding + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + get: + description: read status of the specified ServiceAccountBinding + operationId: readCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + patch: + description: partially update status of the specified ServiceAccountBinding + operationId: patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + post: + description: create status of a ServiceAccountBinding + operationId: createCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + put: + description: replace status of the specified ServiceAccountBinding + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + parameters: + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts: + delete: + description: delete collection of ServiceAccount + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + get: + description: list or watch objects of kind ServiceAccount + operationId: listCloudStreamnativeIoV1alpha1NamespacedServiceAccount + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + post: + description: create a ServiceAccount + operationId: createCloudStreamnativeIoV1alpha1NamespacedServiceAccount + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}: + delete: + description: delete a ServiceAccount + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + get: + description: read the specified ServiceAccount + operationId: readCloudStreamnativeIoV1alpha1NamespacedServiceAccount + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + patch: + description: partially update the specified ServiceAccount + operationId: patchCloudStreamnativeIoV1alpha1NamespacedServiceAccount + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + put: + description: replace the specified ServiceAccount + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status: + delete: + description: delete status of a ServiceAccount + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + get: + description: read status of the specified ServiceAccount + operationId: readCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + patch: + description: partially update status of the specified ServiceAccount + operationId: patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + post: + description: create status of a ServiceAccount + operationId: createCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + put: + description: replace status of the specified ServiceAccount + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + parameters: + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions: + delete: + description: delete collection of StripeSubscription + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + get: + description: list or watch objects of kind StripeSubscription + operationId: listCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + post: + description: create a StripeSubscription + operationId: createCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}: + delete: + description: delete a StripeSubscription + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + get: + description: read the specified StripeSubscription + operationId: readCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + patch: + description: partially update the specified StripeSubscription + operationId: patchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + put: + description: replace the specified StripeSubscription + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status: + delete: + description: delete status of a StripeSubscription + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + get: + description: read status of the specified StripeSubscription + operationId: readCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + patch: + description: partially update status of the specified StripeSubscription + operationId: patchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + post: + description: create status of a StripeSubscription + operationId: createCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + put: + description: replace status of the specified StripeSubscription + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + parameters: + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users: + delete: + description: delete collection of User + operationId: deleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + get: + description: list or watch objects of kind User + operationId: listCloudStreamnativeIoV1alpha1NamespacedUser + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + post: + description: create an User + operationId: createCloudStreamnativeIoV1alpha1NamespacedUser + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}: + delete: + description: delete an User + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedUser + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + get: + description: read the specified User + operationId: readCloudStreamnativeIoV1alpha1NamespacedUser + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + patch: + description: partially update the specified User + operationId: patchCloudStreamnativeIoV1alpha1NamespacedUser + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + put: + description: replace the specified User + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedUser + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status: + delete: + description: delete status of an User + operationId: deleteCloudStreamnativeIoV1alpha1NamespacedUserStatus + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + get: + description: read status of the specified User + operationId: readCloudStreamnativeIoV1alpha1NamespacedUserStatus + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + patch: + description: partially update status of the specified User + operationId: patchCloudStreamnativeIoV1alpha1NamespacedUserStatus + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + post: + description: create status of an User + operationId: createCloudStreamnativeIoV1alpha1NamespacedUserStatus + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + put: + description: replace status of the specified User + operationId: replaceCloudStreamnativeIoV1alpha1NamespacedUserStatus + parameters: + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/oidcproviders: + get: + description: list or watch objects of kind OIDCProvider + operationId: listCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + /apis/cloud.streamnative.io/v1alpha1/organizations: + delete: + description: delete collection of Organization + operationId: deleteCloudStreamnativeIoV1alpha1CollectionOrganization + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + get: + description: list or watch objects of kind Organization + operationId: listCloudStreamnativeIoV1alpha1Organization + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + post: + description: create an Organization + operationId: createCloudStreamnativeIoV1alpha1Organization + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/organizations/{name}: + delete: + description: delete an Organization + operationId: deleteCloudStreamnativeIoV1alpha1Organization + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + get: + description: read the specified Organization + operationId: readCloudStreamnativeIoV1alpha1Organization + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + patch: + description: partially update the specified Organization + operationId: patchCloudStreamnativeIoV1alpha1Organization + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + put: + description: replace the specified Organization + operationId: replaceCloudStreamnativeIoV1alpha1Organization + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status: + delete: + description: delete status of an Organization + operationId: deleteCloudStreamnativeIoV1alpha1OrganizationStatus + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + get: + description: read status of the specified Organization + operationId: readCloudStreamnativeIoV1alpha1OrganizationStatus + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + patch: + description: partially update status of the specified Organization + operationId: patchCloudStreamnativeIoV1alpha1OrganizationStatus + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + post: + description: create status of an Organization + operationId: createCloudStreamnativeIoV1alpha1OrganizationStatus + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + put: + description: replace status of the specified Organization + operationId: replaceCloudStreamnativeIoV1alpha1OrganizationStatus + parameters: + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + description: Created + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/poolmembers: + get: + description: list or watch objects of kind PoolMember + operationId: listCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + /apis/cloud.streamnative.io/v1alpha1/pooloptions: + get: + description: list or watch objects of kind PoolOption + operationId: listCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + /apis/cloud.streamnative.io/v1alpha1/pools: + get: + description: list or watch objects of kind Pool + operationId: listCloudStreamnativeIoV1alpha1PoolForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + /apis/cloud.streamnative.io/v1alpha1/pulsarclusters: + get: + description: list or watch objects of kind PulsarCluster + operationId: listCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + /apis/cloud.streamnative.io/v1alpha1/pulsargateways: + get: + description: list or watch objects of kind PulsarGateway + operationId: listCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + /apis/cloud.streamnative.io/v1alpha1/pulsarinstances: + get: + description: list or watch objects of kind PulsarInstance + operationId: listCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + /apis/cloud.streamnative.io/v1alpha1/rolebindings: + get: + description: list or watch objects of kind RoleBinding + operationId: listCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + /apis/cloud.streamnative.io/v1alpha1/roles: + get: + description: list or watch objects of kind Role + operationId: listCloudStreamnativeIoV1alpha1RoleForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + /apis/cloud.streamnative.io/v1alpha1/secrets: + get: + description: list or watch objects of kind Secret + operationId: listCloudStreamnativeIoV1alpha1SecretForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + /apis/cloud.streamnative.io/v1alpha1/selfregistrations: + post: + description: create a SelfRegistration + operationId: createCloudStreamnativeIoV1alpha1SelfRegistration + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: SelfRegistration + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha1/serviceaccountbindings: + get: + description: list or watch objects of kind ServiceAccountBinding + operationId: listCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + /apis/cloud.streamnative.io/v1alpha1/serviceaccounts: + get: + description: list or watch objects of kind ServiceAccount + operationId: listCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + /apis/cloud.streamnative.io/v1alpha1/stripesubscriptions: + get: + description: list or watch objects of kind StripeSubscription + operationId: listCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + /apis/cloud.streamnative.io/v1alpha1/users: + get: + description: list or watch objects of kind User + operationId: listCloudStreamnativeIoV1alpha1UserForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + /apis/cloud.streamnative.io/v1alpha1/watch/apikeys: + get: + description: "watch individual changes to a list of APIKey. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + /apis/cloud.streamnative.io/v1alpha1/watch/cloudconnections: + get: + description: "watch individual changes to a list of CloudConnection. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + /apis/cloud.streamnative.io/v1alpha1/watch/cloudenvironments: + get: + description: "watch individual changes to a list of CloudEnvironment. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings: + get: + description: "watch individual changes to a list of ClusterRoleBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1ClusterRoleBindingList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}: + get: + description: "watch changes to an object of kind ClusterRoleBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1ClusterRoleBinding + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}/status: + get: + description: "watch changes to status of an object of kind ClusterRoleBinding.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ClusterRoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRoleBinding + /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles: + get: + description: "watch individual changes to a list of ClusterRole. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1ClusterRoleList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}: + get: + description: "watch changes to an object of kind ClusterRole. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1ClusterRole + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}/status: + get: + description: "watch changes to status of an object of kind ClusterRole. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1ClusterRoleStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ClusterRole + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ClusterRole + /apis/cloud.streamnative.io/v1alpha1/watch/identitypools: + get: + description: "watch individual changes to a list of IdentityPool. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys: + get: + description: "watch individual changes to a list of APIKey. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}: + get: + description: "watch changes to an object of kind APIKey. deprecated: use the\ + \ 'watch' parameter with a list operation instead, filtered to a single item\ + \ with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedAPIKey + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}/status: + get: + description: "watch changes to status of an object of kind APIKey. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the APIKey + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: APIKey + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections: + get: + description: "watch individual changes to a list of CloudConnection. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}: + get: + description: "watch changes to an object of kind CloudConnection. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedCloudConnection + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}/status: + get: + description: "watch changes to status of an object of kind CloudConnection.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the CloudConnection + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudConnection + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments: + get: + description: "watch individual changes to a list of CloudEnvironment. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}: + get: + description: "watch changes to an object of kind CloudEnvironment. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}/status: + get: + description: "watch changes to status of an object of kind CloudEnvironment.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the CloudEnvironment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: CloudEnvironment + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools: + get: + description: "watch individual changes to a list of IdentityPool. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}: + get: + description: "watch changes to an object of kind IdentityPool. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedIdentityPool + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}/status: + get: + description: "watch changes to status of an object of kind IdentityPool. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the IdentityPool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: IdentityPool + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders: + get: + description: "watch individual changes to a list of OIDCProvider. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}: + get: + description: "watch changes to an object of kind OIDCProvider. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}/status: + get: + description: "watch changes to status of an object of kind OIDCProvider. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the OIDCProvider + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers: + get: + description: "watch individual changes to a list of PoolMember. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}: + get: + description: "watch changes to an object of kind PoolMember. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolMember + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}/status: + get: + description: "watch changes to status of an object of kind PoolMember. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PoolMember + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions: + get: + description: "watch individual changes to a list of PoolOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}: + get: + description: "watch changes to an object of kind PoolOption. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolOption + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}/status: + get: + description: "watch changes to status of an object of kind PoolOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PoolOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools: + get: + description: "watch individual changes to a list of Pool. deprecated: use the\ + \ 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}: + get: + description: "watch changes to an object of kind Pool. deprecated: use the 'watch'\ + \ parameter with a list operation instead, filtered to a single item with\ + \ the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPool + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}/status: + get: + description: "watch changes to status of an object of kind Pool. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPoolStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Pool + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters: + get: + description: "watch individual changes to a list of PulsarCluster. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}: + get: + description: "watch changes to an object of kind PulsarCluster. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}/status: + get: + description: "watch changes to status of an object of kind PulsarCluster. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PulsarCluster + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways: + get: + description: "watch individual changes to a list of PulsarGateway. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}: + get: + description: "watch changes to an object of kind PulsarGateway. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}/status: + get: + description: "watch changes to status of an object of kind PulsarGateway. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PulsarGateway + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances: + get: + description: "watch individual changes to a list of PulsarInstance. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}: + get: + description: "watch changes to an object of kind PulsarInstance. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}/status: + get: + description: "watch changes to status of an object of kind PulsarInstance. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the PulsarInstance + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings: + get: + description: "watch individual changes to a list of RoleBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}: + get: + description: "watch changes to an object of kind RoleBinding. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedRoleBinding + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}/status: + get: + description: "watch changes to status of an object of kind RoleBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the RoleBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles: + get: + description: "watch individual changes to a list of Role. deprecated: use the\ + \ 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedRoleList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}: + get: + description: "watch changes to an object of kind Role. deprecated: use the 'watch'\ + \ parameter with a list operation instead, filtered to a single item with\ + \ the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedRole + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}/status: + get: + description: "watch changes to status of an object of kind Role. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedRoleStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Role + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets: + get: + description: "watch individual changes to a list of Secret. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedSecretList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}: + get: + description: "watch changes to an object of kind Secret. deprecated: use the\ + \ 'watch' parameter with a list operation instead, filtered to a single item\ + \ with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedSecret + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}/status: + get: + description: "watch changes to status of an object of kind Secret. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedSecretStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Secret + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings: + get: + description: "watch individual changes to a list of ServiceAccountBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}: + get: + description: "watch changes to an object of kind ServiceAccountBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}/status: + get: + description: "watch changes to status of an object of kind ServiceAccountBinding.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ServiceAccountBinding + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts: + get: + description: "watch individual changes to a list of ServiceAccount. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}: + get: + description: "watch changes to an object of kind ServiceAccount. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedServiceAccount + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}/status: + get: + description: "watch changes to status of an object of kind ServiceAccount. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ServiceAccount + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions: + get: + description: "watch individual changes to a list of StripeSubscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}: + get: + description: "watch changes to an object of kind StripeSubscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}/status: + get: + description: "watch changes to status of an object of kind StripeSubscription.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the StripeSubscription + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users: + get: + description: "watch individual changes to a list of User. deprecated: use the\ + \ 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedUserList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}: + get: + description: "watch changes to an object of kind User. deprecated: use the 'watch'\ + \ parameter with a list operation instead, filtered to a single item with\ + \ the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedUser + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}/status: + get: + description: "watch changes to status of an object of kind User. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1NamespacedUserStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the User + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + /apis/cloud.streamnative.io/v1alpha1/watch/oidcproviders: + get: + description: "watch individual changes to a list of OIDCProvider. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: OIDCProvider + /apis/cloud.streamnative.io/v1alpha1/watch/organizations: + get: + description: "watch individual changes to a list of Organization. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1OrganizationList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + /apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}: + get: + description: "watch changes to an object of kind Organization. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1Organization + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + /apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}/status: + get: + description: "watch changes to status of an object of kind Organization. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha1OrganizationStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Organization + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Organization + /apis/cloud.streamnative.io/v1alpha1/watch/poolmembers: + get: + description: "watch individual changes to a list of PoolMember. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolMember + /apis/cloud.streamnative.io/v1alpha1/watch/pooloptions: + get: + description: "watch individual changes to a list of PoolOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PoolOption + /apis/cloud.streamnative.io/v1alpha1/watch/pools: + get: + description: "watch individual changes to a list of Pool. deprecated: use the\ + \ 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Pool + /apis/cloud.streamnative.io/v1alpha1/watch/pulsarclusters: + get: + description: "watch individual changes to a list of PulsarCluster. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarCluster + /apis/cloud.streamnative.io/v1alpha1/watch/pulsargateways: + get: + description: "watch individual changes to a list of PulsarGateway. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarGateway + /apis/cloud.streamnative.io/v1alpha1/watch/pulsarinstances: + get: + description: "watch individual changes to a list of PulsarInstance. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: PulsarInstance + /apis/cloud.streamnative.io/v1alpha1/watch/rolebindings: + get: + description: "watch individual changes to a list of RoleBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: RoleBinding + /apis/cloud.streamnative.io/v1alpha1/watch/roles: + get: + description: "watch individual changes to a list of Role. deprecated: use the\ + \ 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Role + /apis/cloud.streamnative.io/v1alpha1/watch/secrets: + get: + description: "watch individual changes to a list of Secret. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: Secret + /apis/cloud.streamnative.io/v1alpha1/watch/serviceaccountbindings: + get: + description: "watch individual changes to a list of ServiceAccountBinding. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccountBinding + /apis/cloud.streamnative.io/v1alpha1/watch/serviceaccounts: + get: + description: "watch individual changes to a list of ServiceAccount. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: ServiceAccount + /apis/cloud.streamnative.io/v1alpha1/watch/stripesubscriptions: + get: + description: "watch individual changes to a list of StripeSubscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: StripeSubscription + /apis/cloud.streamnative.io/v1alpha1/watch/users: + get: + description: "watch individual changes to a list of User. deprecated: use the\ + \ 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha1UserListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha1 + kind: User + /apis/cloud.streamnative.io/v1alpha2/: + get: + description: get available resources + operationId: getCloudStreamnativeIoV1alpha2APIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + /apis/cloud.streamnative.io/v1alpha2/awssubscriptions: + delete: + description: delete collection of AWSSubscription + operationId: deleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + get: + description: list or watch objects of kind AWSSubscription + operationId: listCloudStreamnativeIoV1alpha2AWSSubscription + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + post: + description: create an AWSSubscription + operationId: createCloudStreamnativeIoV1alpha2AWSSubscription + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}: + delete: + description: delete an AWSSubscription + operationId: deleteCloudStreamnativeIoV1alpha2AWSSubscription + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + get: + description: read the specified AWSSubscription + operationId: readCloudStreamnativeIoV1alpha2AWSSubscription + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + patch: + description: partially update the specified AWSSubscription + operationId: patchCloudStreamnativeIoV1alpha2AWSSubscription + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + put: + description: replace the specified AWSSubscription + operationId: replaceCloudStreamnativeIoV1alpha2AWSSubscription + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status: + delete: + description: delete status of an AWSSubscription + operationId: deleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + get: + description: read status of the specified AWSSubscription + operationId: readCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + patch: + description: partially update status of the specified AWSSubscription + operationId: patchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + post: + description: create status of an AWSSubscription + operationId: createCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + put: + description: replace status of the specified AWSSubscription + operationId: replaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + parameters: + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/bookkeepersetoptions: + get: + description: list or watch objects of kind BookKeeperSetOption + operationId: listCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/bookkeepersets: + get: + description: list or watch objects of kind BookKeeperSet + operationId: listCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + /apis/cloud.streamnative.io/v1alpha2/monitorsets: + get: + description: list or watch objects of kind MonitorSet + operationId: listCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions: + delete: + description: delete collection of BookKeeperSetOption + operationId: deleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + get: + description: list or watch objects of kind BookKeeperSetOption + operationId: listCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + post: + description: create a BookKeeperSetOption + operationId: createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}: + delete: + description: delete a BookKeeperSetOption + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + get: + description: read the specified BookKeeperSetOption + operationId: readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + patch: + description: partially update the specified BookKeeperSetOption + operationId: patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + put: + description: replace the specified BookKeeperSetOption + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status: + delete: + description: delete status of a BookKeeperSetOption + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + get: + description: read status of the specified BookKeeperSetOption + operationId: readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + patch: + description: partially update status of the specified BookKeeperSetOption + operationId: patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + post: + description: create status of a BookKeeperSetOption + operationId: createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + put: + description: replace status of the specified BookKeeperSetOption + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + parameters: + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets: + delete: + description: delete collection of BookKeeperSet + operationId: deleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + get: + description: list or watch objects of kind BookKeeperSet + operationId: listCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + post: + description: create a BookKeeperSet + operationId: createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}: + delete: + description: delete a BookKeeperSet + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + get: + description: read the specified BookKeeperSet + operationId: readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + patch: + description: partially update the specified BookKeeperSet + operationId: patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + put: + description: replace the specified BookKeeperSet + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status: + delete: + description: delete status of a BookKeeperSet + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + get: + description: read status of the specified BookKeeperSet + operationId: readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + patch: + description: partially update status of the specified BookKeeperSet + operationId: patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + post: + description: create status of a BookKeeperSet + operationId: createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + put: + description: replace status of the specified BookKeeperSet + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + parameters: + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets: + delete: + description: delete collection of MonitorSet + operationId: deleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + get: + description: list or watch objects of kind MonitorSet + operationId: listCloudStreamnativeIoV1alpha2NamespacedMonitorSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + post: + description: create a MonitorSet + operationId: createCloudStreamnativeIoV1alpha2NamespacedMonitorSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}: + delete: + description: delete a MonitorSet + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + get: + description: read the specified MonitorSet + operationId: readCloudStreamnativeIoV1alpha2NamespacedMonitorSet + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + patch: + description: partially update the specified MonitorSet + operationId: patchCloudStreamnativeIoV1alpha2NamespacedMonitorSet + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + put: + description: replace the specified MonitorSet + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status: + delete: + description: delete status of a MonitorSet + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + get: + description: read status of the specified MonitorSet + operationId: readCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + patch: + description: partially update status of the specified MonitorSet + operationId: patchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + post: + description: create status of a MonitorSet + operationId: createCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + put: + description: replace status of the specified MonitorSet + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + parameters: + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions: + delete: + description: delete collection of ZooKeeperSetOption + operationId: deleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + get: + description: list or watch objects of kind ZooKeeperSetOption + operationId: listCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + post: + description: create a ZooKeeperSetOption + operationId: createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}: + delete: + description: delete a ZooKeeperSetOption + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + get: + description: read the specified ZooKeeperSetOption + operationId: readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + patch: + description: partially update the specified ZooKeeperSetOption + operationId: patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + put: + description: replace the specified ZooKeeperSetOption + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status: + delete: + description: delete status of a ZooKeeperSetOption + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + get: + description: read status of the specified ZooKeeperSetOption + operationId: readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + patch: + description: partially update status of the specified ZooKeeperSetOption + operationId: patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + post: + description: create status of a ZooKeeperSetOption + operationId: createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + put: + description: replace status of the specified ZooKeeperSetOption + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + parameters: + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets: + delete: + description: delete collection of ZooKeeperSet + operationId: deleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + get: + description: list or watch objects of kind ZooKeeperSet + operationId: listCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + post: + description: create a ZooKeeperSet + operationId: createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}: + delete: + description: delete a ZooKeeperSet + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + get: + description: read the specified ZooKeeperSet + operationId: readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + patch: + description: partially update the specified ZooKeeperSet + operationId: patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + put: + description: replace the specified ZooKeeperSet + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status: + delete: + description: delete status of a ZooKeeperSet + operationId: deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + get: + description: read status of the specified ZooKeeperSet + operationId: readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + patch: + description: partially update status of the specified ZooKeeperSet + operationId: patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + post: + description: create status of a ZooKeeperSet + operationId: createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Accepted + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + put: + description: replace status of the specified ZooKeeperSet + operationId: replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + parameters: + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + description: Created + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + x-codegen-request-body-name: body + /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions: + get: + description: "watch individual changes to a list of AWSSubscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2AWSSubscriptionList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}: + get: + description: "watch changes to an object of kind AWSSubscription. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2AWSSubscription + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}/status: + get: + description: "watch changes to status of an object of kind AWSSubscription.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the AWSSubscription + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: AWSSubscription + /apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersetoptions: + get: + description: "watch individual changes to a list of BookKeeperSetOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersets: + get: + description: "watch individual changes to a list of BookKeeperSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + /apis/cloud.streamnative.io/v1alpha2/watch/monitorsets: + get: + description: "watch individual changes to a list of MonitorSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions: + get: + description: "watch individual changes to a list of BookKeeperSetOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}: + get: + description: "watch changes to an object of kind BookKeeperSetOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}/status: + get: + description: "watch changes to status of an object of kind BookKeeperSetOption.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the BookKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets: + get: + description: "watch individual changes to a list of BookKeeperSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}: + get: + description: "watch changes to an object of kind BookKeeperSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}/status: + get: + description: "watch changes to status of an object of kind BookKeeperSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the BookKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: BookKeeperSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets: + get: + description: "watch individual changes to a list of MonitorSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}: + get: + description: "watch changes to an object of kind MonitorSet. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedMonitorSet + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}/status: + get: + description: "watch changes to status of an object of kind MonitorSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the MonitorSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: MonitorSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions: + get: + description: "watch individual changes to a list of ZooKeeperSetOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}: + get: + description: "watch changes to an object of kind ZooKeeperSetOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}/status: + get: + description: "watch changes to status of an object of kind ZooKeeperSetOption.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ZooKeeperSetOption + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets: + get: + description: "watch individual changes to a list of ZooKeeperSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}: + get: + description: "watch changes to an object of kind ZooKeeperSet. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}/status: + get: + description: "watch changes to status of an object of kind ZooKeeperSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the ZooKeeperSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + /apis/cloud.streamnative.io/v1alpha2/watch/zookeepersetoptions: + get: + description: "watch individual changes to a list of ZooKeeperSetOption. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/watch/zookeepersets: + get: + description: "watch individual changes to a list of ZooKeeperSet. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + /apis/cloud.streamnative.io/v1alpha2/zookeepersetoptions: + get: + description: list or watch objects of kind ZooKeeperSetOption + operationId: listCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSetOption + /apis/cloud.streamnative.io/v1alpha2/zookeepersets: + get: + description: list or watch objects of kind ZooKeeperSet + operationId: listCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList' + description: OK + tags: + - cloudStreamnativeIo_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: cloud.streamnative.io + version: v1alpha2 + kind: ZooKeeperSet + /apis/compute.streamnative.io/: + get: + description: get information of a group + operationId: getComputeStreamnativeIoAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIGroup' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIGroup' + description: OK + tags: + - computeStreamnativeIo + /apis/compute.streamnative.io/v1alpha1/: + get: + description: get available resources + operationId: getComputeStreamnativeIoV1alpha1APIResources + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/yaml: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + /apis/compute.streamnative.io/v1alpha1/flinkdeployments: + get: + description: list or watch objects of kind FlinkDeployment + operationId: listComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments: + delete: + description: delete collection of FlinkDeployment + operationId: deleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + get: + description: list or watch objects of kind FlinkDeployment + operationId: listComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + post: + description: create a FlinkDeployment + operationId: createComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}: + delete: + description: delete a FlinkDeployment + operationId: deleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + get: + description: read the specified FlinkDeployment + operationId: readComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + patch: + description: partially update the specified FlinkDeployment + operationId: patchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + put: + description: replace the specified FlinkDeployment + operationId: replaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status: + delete: + description: delete status of a FlinkDeployment + operationId: deleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + get: + description: read status of the specified FlinkDeployment + operationId: readComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + patch: + description: partially update status of the specified FlinkDeployment + operationId: patchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + post: + description: create status of a FlinkDeployment + operationId: createComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + put: + description: replace status of the specified FlinkDeployment + operationId: replaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + parameters: + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + x-codegen-request-body-name: body + /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces: + delete: + description: delete collection of Workspace + operationId: deleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + get: + description: list or watch objects of kind Workspace + operationId: listComputeStreamnativeIoV1alpha1NamespacedWorkspace + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + post: + description: create a Workspace + operationId: createComputeStreamnativeIoV1alpha1NamespacedWorkspace + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}: + delete: + description: delete a Workspace + operationId: deleteComputeStreamnativeIoV1alpha1NamespacedWorkspace + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + get: + description: read the specified Workspace + operationId: readComputeStreamnativeIoV1alpha1NamespacedWorkspace + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + patch: + description: partially update the specified Workspace + operationId: patchComputeStreamnativeIoV1alpha1NamespacedWorkspace + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + put: + description: replace the specified Workspace + operationId: replaceComputeStreamnativeIoV1alpha1NamespacedWorkspace + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status: + delete: + description: delete status of a Workspace + operationId: deleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: OK + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.Status' + application/yaml: + schema: + $ref: '#/components/schemas/v1.Status' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.Status' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + get: + description: read status of the specified Workspace + operationId: readComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + patch: + description: partially update status of the specified Workspace + operationId: patchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/strategic-merge-patch+json: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + application/apply-patch+yaml: + schema: + description: Patch is provided to give a concrete name and type to the + Kubernetes PATCH request body. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + post: + description: create status of a Workspace + operationId: createComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Created + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Accepted + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + put: + description: replace status of the specified Workspace + operationId: replaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + parameters: + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: OK + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + description: Created + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + x-codegen-request-body-name: body + /apis/compute.streamnative.io/v1alpha1/watch/flinkdeployments: + get: + description: "watch individual changes to a list of FlinkDeployment. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments: + get: + description: "watch individual changes to a list of FlinkDeployment. deprecated:\ + \ use the 'watch' parameter with a list operation instead." + operationId: watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}: + get: + description: "watch changes to an object of kind FlinkDeployment. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}/status: + get: + description: "watch changes to status of an object of kind FlinkDeployment.\ + \ deprecated: use the 'watch' parameter with a list operation instead, filtered\ + \ to a single item with the 'fieldSelector' parameter." + operationId: watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the FlinkDeployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: FlinkDeployment + /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces: + get: + description: "watch individual changes to a list of Workspace. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}: + get: + description: "watch changes to an object of kind Workspace. deprecated: use\ + \ the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchComputeStreamnativeIoV1alpha1NamespacedWorkspace + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}/status: + get: + description: "watch changes to status of an object of kind Workspace. deprecated:\ + \ use the 'watch' parameter with a list operation instead, filtered to a single\ + \ item with the 'fieldSelector' parameter." + operationId: watchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: name of the Workspace + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watch + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + /apis/compute.streamnative.io/v1alpha1/watch/workspaces: + get: + description: "watch individual changes to a list of Workspace. deprecated: use\ + \ the 'watch' parameter with a list operation instead." + operationId: watchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/yaml: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/v1.WatchEvent' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: watchlist + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + /apis/compute.streamnative.io/v1alpha1/workspaces: + get: + description: list or watch objects of kind Workspace + operationId: listComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces + parameters: + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: |- + resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/yaml: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/vnd.kubernetes.protobuf: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList' + description: OK + tags: + - computeStreamnativeIo_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: compute.streamnative.io + version: v1alpha1 + kind: Workspace + /version/: + get: + description: get the code version + operationId: getCodeVersion + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/version.Info' + description: OK + tags: + - version + /apis/{group}/{version}: + get: + description: get available resources + operationId: getCustomObjectsAPIResources + parameters: + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v1.APIResourceList' + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + /apis/{group}/{version}/{plural}#‎: + get: + description: list or watch namespace scoped custom objects + operationId: listCustomObjectForAllNamespaces + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "When specified with a watch call, shows changes that occur after\ + \ that particular version of a resource. Defaults to changes from the beginning\ + \ of history. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + /apis/{group}/{version}/{plural}: + delete: + description: Delete collection of cluster scoped custom objects + operationId: deleteCollectionClusterCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + get: + description: list or watch cluster scoped custom objects + operationId: listClusterCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "When specified with a watch call, shows changes that occur after\ + \ that particular version of a resource. Defaults to changes from the beginning\ + \ of history. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + post: + description: Creates a cluster scoped Custom object + operationId: createClusterCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + description: The JSON schema of the Resource to create. + required: true + responses: + "201": + content: + application/json: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + /apis/{group}/{version}/namespaces/{namespace}/{plural}: + delete: + description: Delete collection of namespace scoped custom objects + operationId: deleteCollectionNamespacedCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + get: + description: list or watch namespace scoped custom objects + operationId: listNamespacedCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, nor may they assume the server\ + \ will send any BOOKMARK event during a session. If this is not a watch,\ + \ this field is ignored. If the feature gate WatchBookmarks is not enabled\ + \ in apiserver, this field is ignored." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + in: query + name: limit + schema: + type: integer + - description: "When specified with a watch call, shows changes that occur after\ + \ that particular version of a resource. Defaults to changes from the beginning\ + \ of history. When specified for list: - if unset, then the result is returned\ + \ from remote storage based on quorum-read flag; - if it's 0, then we simply\ + \ return what we currently have in cache, no guarantee; - if set to non\ + \ zero, then the result is at least as fresh as given rv." + in: query + name: resourceVersion + schema: + type: string + - description: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. + + Defaults to unset + in: query + name: resourceVersionMatch + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + type: object + application/json;stream=watch: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + post: + description: Creates a namespace scoped Custom object + operationId: createNamespacedCustomObject + parameters: + - description: "If 'true', then the output is pretty printed." + in: query + name: pretty + schema: + type: string + - description: The custom resource's group name + in: path + name: group + required: true + schema: + type: string + - description: The custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: The custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + description: The JSON schema of the Resource to create. + required: true + responses: + "201": + content: + application/json: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + /apis/{group}/{version}/{plural}/{name}: + delete: + description: Deletes the specified cluster scoped custom object + operationId: deleteClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + get: + description: Returns a cluster scoped custom object + operationId: getClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + description: A single Resource + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + patch: + description: patch the specified cluster scoped custom object + operationId: patchClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + type: object + application/merge-patch+json: + schema: + type: object + description: The JSON schema of the Resource to patch. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + put: + description: replace the specified cluster scoped custom object + operationId: replaceClusterCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom object's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + description: The JSON schema of the Resource to replace. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + /apis/{group}/{version}/{plural}/{name}/status: + get: + description: read status of the specified cluster scoped custom object + operationId: getClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + patch: + description: partially update status of the specified cluster scoped custom + object + operationId: patchClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/merge-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + put: + description: replace status of the cluster scoped specified custom object + operationId: replaceClusterCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + /apis/{group}/{version}/{plural}/{name}/scale: + get: + description: read scale of the specified custom object + operationId: getClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + patch: + description: partially update scale of the specified cluster scoped custom object + operationId: patchClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/merge-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + put: + description: replace scale of the specified cluster scoped custom object + operationId: replaceClusterCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: + delete: + description: Deletes the specified namespace scoped custom object + operationId: deleteNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy." + in: query + name: propagationPolicy + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v1.DeleteOptions' + required: false + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + get: + description: Returns a namespace scoped custom object + operationId: getNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + description: A single Resource + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + patch: + description: patch the specified namespace scoped custom object + operationId: patchNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + type: object + application/merge-patch+json: + schema: + type: object + description: The JSON schema of the Resource to patch. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + put: + description: replace the specified namespace scoped custom object + operationId: replaceNamespacedCustomObject + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + description: The JSON schema of the Resource to replace. + required: true + responses: + "200": + content: + application/json: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: + get: + description: read status of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + patch: + description: partially update status of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/merge-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/apply-patch+yaml: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + put: + description: replace status of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectStatus + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: + get: + description: read scale of the specified namespace scoped custom object + operationId: getNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + patch: + description: partially update scale of the specified namespace scoped custom + object + operationId: patchNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/merge-patch+json: + schema: + description: The JSON schema of the Resource to patch. + type: object + application/apply-patch+yaml: + schema: + description: The JSON schema of the Resource to patch. + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body + put: + description: replace scale of the specified namespace scoped custom object + operationId: replaceNamespacedCustomObjectScale + parameters: + - description: the custom resource's group + in: path + name: group + required: true + schema: + type: string + - description: the custom resource's version + in: path + name: version + required: true + schema: + type: string + - description: The custom resource's namespace + in: path + name: namespace + required: true + schema: + type: string + - description: the custom resource's plural name. For TPRs this would be lowercase + plural kind. + in: path + name: plural + required: true + schema: + type: string + - description: the custom object's name + in: path + name: name + required: true + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered.\ + \ (optional)" + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + '*/*': + schema: + type: object + required: true + responses: + "200": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: OK + "201": + content: + application/json: + schema: + type: object + application/yaml: + schema: + type: object + application/vnd.kubernetes.protobuf: + schema: + type: object + description: Created + "401": + content: {} + description: Unauthorized + tags: + - custom_objects + x-codegen-request-body-name: body +components: + schemas: + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage: + example: + bucket: bucket + path: path + properties: + bucket: + description: Bucket is required if you want to use cloud storage. + type: string + path: + description: Path is the sub path in the bucket. Leave it empty if you want + to use the whole bucket. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Condition: + description: |- + Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. + + Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + lastTransitionTime: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + message: + type: string + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount: + description: IamAccount + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + additionalCloudStorage: + - bucket: bucket + path: path + - bucket: bucket + path: path + disableIamRoleCreation: true + poolMemberRef: + name: name + namespace: namespace + cloudStorage: + bucket: bucket + path: path + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountStatus' + type: object + x-kubernetes-group-version-kind: + - group: authorization.streamnative.io + kind: IamAccount + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + additionalCloudStorage: + - bucket: bucket + path: path + - bucket: bucket + path: path + disableIamRoleCreation: true + poolMemberRef: + name: name + namespace: namespace + cloudStorage: + bucket: bucket + path: path + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + additionalCloudStorage: + - bucket: bucket + path: path + - bucket: bucket + path: path + disableIamRoleCreation: true + poolMemberRef: + name: name + namespace: namespace + cloudStorage: + bucket: bucket + path: path + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: authorization.streamnative.io + kind: IamAccountList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountSpec: + description: IamAccountSpec defines the desired state of IamAccount + example: + additionalCloudStorage: + - bucket: bucket + path: path + - bucket: bucket + path: path + disableIamRoleCreation: true + poolMemberRef: + name: name + namespace: namespace + cloudStorage: + bucket: bucket + path: path + properties: + additionalCloudStorage: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage' + type: array + cloudStorage: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage' + disableIamRoleCreation: + type: boolean + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.PoolMemberReference' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountStatus: + description: IamAccountStatus defines the observed state of IamAccount + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Organization: + example: + displayName: displayName + properties: + displayName: + type: string + required: + - displayName + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.PoolMemberReference: + description: PoolMemberReference is a reference to a pool member with a given + name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + - namespace + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule: + description: "ResourceRule is the list of actions the subject is allowed to\ + \ perform on resources. The list ordering isn't significant, may contain duplicates,\ + \ and possibly be incomplete." + example: + resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + properties: + apiGroups: + description: "APIGroups is the name of the APIGroup that contains the resources.\ + \ If multiple API groups are specified, any action requested against\ + \ one of the enumerated resources in any API group will be allowed. \"\ + *\" means all." + items: + type: string + type: array + x-kubernetes-list-type: atomic + resourceNames: + description: ResourceNames is an optional white list of names that the rule + applies to. An empty set means that everything is allowed. "*" means + all. + items: + type: string + type: array + x-kubernetes-list-type: atomic + resources: + description: |- + Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. + "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. + items: + type: string + type: array + x-kubernetes-list-type: atomic + verbs: + description: "Verb is a list of kubernetes resource API verbs, like: get,\ + \ list, watch, create, update, delete, proxy. \"*\" means all." + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - verbs + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.RoleRef: + example: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - apiGroup + - kind + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview: + description: SelfSubjectRbacReview + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + namespace: namespace + status: + userPrivileges: userPrivileges + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewStatus' + type: object + x-kubernetes-group-version-kind: + - group: authorization.streamnative.io + kind: SelfSubjectRbacReview + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewSpec: + description: SelfSubjectRbacReviewSpec defines the desired state of SelfSubjectRulesReview + example: + namespace: namespace + properties: + namespace: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewStatus: + description: SelfSubjectRbacReviewStatus defines the observed state of SelfSubjectRulesReview + example: + userPrivileges: userPrivileges + properties: + userPrivileges: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview: + description: SelfSubjectRulesReview + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + namespace: namespace + status: + incomplete: true + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + evaluationError: evaluationError + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewStatus' + type: object + x-kubernetes-group-version-kind: + - group: authorization.streamnative.io + kind: SelfSubjectRulesReview + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewSpec: + description: SelfSubjectRulesReviewSpec defines the desired state of SelfSubjectRulesReview + example: + namespace: namespace + properties: + namespace: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewStatus: + description: SelfSubjectRulesReviewStatus defines the observed state of SelfSubjectRulesReview + example: + incomplete: true + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + evaluationError: evaluationError + properties: + evaluationError: + description: "EvaluationError can appear in combination with Rules. It indicates\ + \ an error occurred during rule evaluation, such as an authorizer that\ + \ doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules\ + \ may be incomplete." + type: string + incomplete: + description: "Incomplete is true when the rules returned by this call are\ + \ incomplete. This is most commonly encountered when an authorizer, such\ + \ as an external authorizer, doesn't support rules evaluation." + type: boolean + resourceRules: + description: "ResourceRules is the list of actions the subject is allowed\ + \ to perform on resources. The list ordering isn't significant, may contain\ + \ duplicates, and possibly be incomplete." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule' + type: array + x-kubernetes-list-type: atomic + required: + - incomplete + - resourceRules + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview: + description: SelfSubjectUserReview + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: "{}" + status: + users: + - apiGroup: apiGroup + kind: kind + organization: + displayName: displayName + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + organization: + displayName: displayName + name: name + namespace: namespace + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + description: SelfSubjectUserReviewSpec defines the desired state of SelfSubjectUserReview + properties: {} + type: object + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewStatus' + type: object + x-kubernetes-group-version-kind: + - group: authorization.streamnative.io + kind: SelfSubjectUserReview + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewStatus: + description: SelfSubjectUserReviewStatus defines the observed state of SelfSubjectUserReview + example: + users: + - apiGroup: apiGroup + kind: kind + organization: + displayName: displayName + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + organization: + displayName: displayName + name: name + namespace: namespace + properties: + users: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.UserRef' + type: array + x-kubernetes-list-type: atomic + required: + - users + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview: + description: SubjectRoleReview + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + user: user + status: + roles: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewStatus' + type: object + x-kubernetes-group-version-kind: + - group: authorization.streamnative.io + kind: SubjectRoleReview + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewSpec: + example: + user: user + properties: + user: + description: User is the user you're testing for. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewStatus: + example: + roles: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + properties: + roles: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.RoleRef' + type: array + x-kubernetes-list-type: atomic + required: + - roles + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview: + description: SubjectRulesReview + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + namespace: namespace + user: user + status: + incomplete: true + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + evaluationError: evaluationError + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewStatus' + type: object + x-kubernetes-group-version-kind: + - group: authorization.streamnative.io + kind: SubjectRulesReview + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewSpec: + example: + namespace: namespace + user: user + properties: + namespace: + type: string + user: + description: User is the user you're testing for. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewStatus: + example: + incomplete: true + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + evaluationError: evaluationError + properties: + evaluationError: + description: "EvaluationError can appear in combination with Rules. It indicates\ + \ an error occurred during rule evaluation, such as an authorizer that\ + \ doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules\ + \ may be incomplete." + type: string + incomplete: + description: "Incomplete is true when the rules returned by this call are\ + \ incomplete. This is most commonly encountered when an authorizer, such\ + \ as an external authorizer, doesn't support rules evaluation." + type: boolean + resourceRules: + description: "ResourceRules is the list of actions the subject is allowed\ + \ to perform on resources. The list ordering isn't significant, may contain\ + \ duplicates, and possibly be incomplete." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule' + type: array + x-kubernetes-list-type: atomic + required: + - incomplete + - resourceRules + type: object + com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.UserRef: + example: + apiGroup: apiGroup + kind: kind + organization: + displayName: displayName + name: name + namespace: namespace + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + organization: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Organization' + required: + - apiGroup + - kind + - name + - namespace + - organization + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest: + description: CustomerPortalRequest is a request for a Customer Portal session. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + stripe: + configuration: configuration + returnURL: returnURL + status: + stripe: + id: id + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + url: url + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: CustomerPortalRequest + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestSpec: + description: CustomerPortalRequestSpec represents the details of the request. + example: + stripe: + configuration: configuration + returnURL: returnURL + properties: + returnURL: + description: The default URL to redirect customers to when they click on + the portal’s link to return to your website. + type: string + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestSpec' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestStatus: + description: CustomerPortalRequestStatus defines the observed state of CustomerPortalRequest + example: + stripe: + id: id + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + url: url + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestStatus' + url: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem: + description: OfferItem defines an offered product at a particular price. + example: + metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + properties: + key: + description: Key is the item key within the offer and subscription. + type: string + metadata: + additionalProperties: + type: string + description: Metadata is an unstructured key value map stored with an item. + type: object + price: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPrice' + priceRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PriceReference' + quantity: + description: Quantity for this item. + type: string + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPrice: + description: OfferItemPrice is used to specify a custom price for a given product. + example: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + properties: + currency: + description: "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html),\ + \ in lowercase." + type: string + product: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference' + recurring: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPriceRecurring' + tiers: + description: Tiers are Stripes billing tiers like + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier' + type: array + x-kubernetes-list-type: atomic + tiersMode: + description: TiersMode is the stripe tier mode + type: string + unitAmount: + description: A quantity (or 0 for a free price) representing how much to + charge. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPriceRecurring: + description: OfferItemPriceRecurring specifies the recurring components of a + price such as `interval` and `interval_count`. + example: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + properties: + aggregateUsage: + type: string + interval: + description: "Specifies billing frequency. Either `day`, `week`, `month`\ + \ or `year`." + type: string + intervalCount: + description: "The number of intervals between subscription billings. For\ + \ example, `interval=month` and `interval_count=3` bills every 3 months.\ + \ Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks)." + format: int64 + type: integer + usageType: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferReference: + description: OfferReference references an offer object. + example: + kind: kind + name: name + namespace: namespace + properties: + kind: + type: string + name: + type: string + namespace: + type: string + required: + - kind + - name + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent: + description: PaymentIntent is the Schema for the paymentintents API + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + subscriptionName: subscriptionName + stripe: + clientSecret: clientSecret + id: id + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: PaymentIntent + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + subscriptionName: subscriptionName + stripe: + clientSecret: clientSecret + id: id + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + subscriptionName: subscriptionName + stripe: + clientSecret: clientSecret + id: id + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: PaymentIntentList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentSpec: + description: PaymentIntentSpec defines the desired state of PaymentIntent + example: + subscriptionName: subscriptionName + stripe: + clientSecret: clientSecret + id: id + type: type + properties: + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePaymentIntent' + subscriptionName: + type: string + type: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentStatus: + description: PaymentIntentStatus defines the observed state of PaymentIntent + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PriceReference: + description: PriceReference references a price within a Product object. + example: + product: + name: name + namespace: namespace + key: key + properties: + key: + description: Key is the price key within the product specification. + type: string + product: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference' + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer: + description: PrivateOffer + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + duration: duration + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + anchorDate: 2000-01-23T04:56:07.000+00:00 + startDate: 2000-01-23T04:56:07.000+00:00 + status: "{}" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferSpec' + status: + description: PrivateOfferStatus defines the observed state of PrivateOffer + properties: {} + type: object + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: PrivateOffer + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + duration: duration + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + anchorDate: 2000-01-23T04:56:07.000+00:00 + startDate: 2000-01-23T04:56:07.000+00:00 + status: "{}" + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + duration: duration + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + anchorDate: 2000-01-23T04:56:07.000+00:00 + startDate: 2000-01-23T04:56:07.000+00:00 + status: "{}" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: PrivateOfferList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferSpec: + description: PrivateOfferSpec defines the desired state of PrivateOffer + example: + duration: duration + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + anchorDate: 2000-01-23T04:56:07.000+00:00 + startDate: 2000-01-23T04:56:07.000+00:00 + properties: + anchorDate: + description: "AnchorDate is a timestamp representing the first billing cycle\ + \ end date. This will be used to anchor future billing periods to that\ + \ date. For example, setting the anchor date for a subscription starting\ + \ on Apr 1 to be Apr 12 will send the invoice for the subscription out\ + \ on Apr 12 and the 12th of every following month for a monthly subscription.\ + \ It is represented in RFC3339 form and is in UTC." + format: date-time + type: string + description: + type: string + duration: + description: Duration indicates how long the subscription for this offer + should last. The value must greater than 0 + type: string + endDate: + description: EndDate is a timestamp representing the planned end date of + the subscription. It is represented in RFC3339 form and is in UTC. + format: date-time + type: string + once: + description: "One-time items, each with an attached price." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + recurring: + description: "Recurring items, each with an attached price." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + startDate: + description: StartDate is a timestamp representing the planned start date + of the subscription. It is represented in RFC3339 form and is in UTC. + format: date-time + type: string + stripe: + properties: {} + type: object + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product: + description: Product is the Schema for the products API + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + name: name + stripe: + defaultPriceKey: defaultPriceKey + description: description + suger: + productID: productID + dimensionKey: dimensionKey + products: + - productID: productID + dimensionKey: dimensionKey + - productID: productID + dimensionKey: dimensionKey + prices: + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + status: + stripeID: stripeID + prices: + - stripeID: stripeID + key: key + - stripeID: stripeID + key: key + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: Product + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + name: name + stripe: + defaultPriceKey: defaultPriceKey + description: description + suger: + productID: productID + dimensionKey: dimensionKey + products: + - productID: productID + dimensionKey: dimensionKey + - productID: productID + dimensionKey: dimensionKey + prices: + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + status: + stripeID: stripeID + prices: + - stripeID: stripeID + key: key + - stripeID: stripeID + key: key + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + name: name + stripe: + defaultPriceKey: defaultPriceKey + description: description + suger: + productID: productID + dimensionKey: dimensionKey + products: + - productID: productID + dimensionKey: dimensionKey + - productID: productID + dimensionKey: dimensionKey + prices: + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + status: + stripeID: stripeID + prices: + - stripeID: stripeID + key: key + - stripeID: stripeID + key: key + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: ProductList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductPrice: + description: ProductPrice specifies a price for a product. + example: + stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + properties: + key: + description: Key is the price key. + type: string + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceSpec' + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference: + description: ProductReference references a Product object. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductSpec: + description: ProductSpec defines the desired state of Product + example: + name: name + stripe: + defaultPriceKey: defaultPriceKey + description: description + suger: + productID: productID + dimensionKey: dimensionKey + products: + - productID: productID + dimensionKey: dimensionKey + - productID: productID + dimensionKey: dimensionKey + prices: + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + - stripe: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + key: key + properties: + description: + description: Description is a product description + type: string + name: + description: Name is the product name. + type: string + prices: + description: Prices associated with the product. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductPrice' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeProductSpec' + suger: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProductSpec' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatus: + description: ProductStatus defines the observed state of Product + example: + stripeID: stripeID + prices: + - stripeID: stripeID + key: key + - stripeID: stripeID + key: key + properties: + prices: + description: The prices as stored in Stripe. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatusPrice' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + stripeID: + description: The unique identifier for the Stripe product. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatusPrice: + example: + stripeID: stripeID + key: key + properties: + key: + type: string + stripeID: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer: + description: PublicOffer is the Schema for the publicoffers API + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + status: "{}" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferSpec' + status: + description: PublicOfferStatus defines the observed state of PublicOffer + properties: {} + type: object + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: PublicOffer + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + status: "{}" + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + status: "{}" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: PublicOfferList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferSpec: + description: PublicOfferSpec defines the desired state of PublicOffer + example: + once: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + recurring: + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + - metadata: + key: metadata + priceRef: + product: + name: name + namespace: namespace + key: key + quantity: quantity + price: + tiersMode: tiersMode + product: + name: name + namespace: namespace + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + unitAmount: unitAmount + currency: currency + key: key + stripe: "{}" + description: description + properties: + description: + type: string + once: + description: "One-time items, each with an attached price." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + recurring: + description: "Recurring items, each with an attached price." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + stripe: + properties: {} + type: object + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent: + description: SetupIntent is the Schema for the setupintents API + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + stripe: + clientSecret: clientSecret + id: id + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: SetupIntent + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + stripe: + clientSecret: clientSecret + id: id + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + stripe: + clientSecret: clientSecret + id: id + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: SetupIntentList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentReference: + description: SetupIntentReference represents a SetupIntent Reference. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentSpec: + description: SetupIntentSpec defines the desired state of SetupIntent + example: + stripe: + clientSecret: clientSecret + id: id + type: type + properties: + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSetupIntent' + type: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentStatus: + description: SetupIntentStatus defines the observed state of SetupIntent + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conidtions + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestSpec: + example: + configuration: configuration + properties: + configuration: + description: Configuration is the ID of the portal configuration to use. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestStatus: + example: + id: id + properties: + id: + description: ID is the Stripe portal ID. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePaymentIntent: + example: + clientSecret: clientSecret + id: id + properties: + clientSecret: + type: string + id: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceRecurrence: + description: StripePriceRecurrence defines how a price's billing recurs + example: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + properties: + aggregateUsage: + type: string + interval: + description: Interval is how often the price recurs + type: string + intervalCount: + description: "The number of intervals. For example, `interval=month` and\ + \ `interval_count=3` bills every 3 months. Maximum of one-year interval\ + \ is allowed (1 year, 12 months, or 52 weeks)." + format: int64 + type: integer + usageType: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceSpec: + example: + tiersMode: tiersMode + tiers: + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + - upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + recurring: + aggregateUsage: aggregateUsage + intervalCount: 0 + interval: interval + usageType: usageType + name: name + active: true + unitAmount: unitAmount + currency: currency + properties: + active: + description: Active indicates the price is active on the product + type: boolean + currency: + description: Currency is the required three-letter ISO currency code The + codes below were generated from https://stripe.com/docs/currencies + type: string + name: + description: "Name to be displayed in the Stripe dashboard, hidden from\ + \ customers" + type: string + recurring: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceRecurrence' + tiers: + description: Tiers are Stripes billing tiers like + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier' + type: array + x-kubernetes-list-type: atomic + tiersMode: + description: TiersMode is the stripe tier mode + type: string + unitAmount: + description: "UnitAmount in dollars. If present, billing_scheme is assumed\ + \ to be per_unit" + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeProductSpec: + example: + defaultPriceKey: defaultPriceKey + properties: + defaultPriceKey: + description: DefaultPriceKey sets the default price for the product. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSetupIntent: + description: StripeSetupIntent holds Stripe information about a SetupIntent + example: + clientSecret: clientSecret + id: id + properties: + clientSecret: + description: The client secret of this SetupIntent. Used for client-side + retrieval using a publishable key. + type: string + id: + description: The unique identifier for the SetupIntent. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSubscriptionSpec: + example: + daysUntilDue: 6 + collectionMethod: collectionMethod + id: id + properties: + collectionMethod: + description: "CollectionMethod is how payment on a subscription is to be\ + \ collected, either charge_automatically or send_invoice" + type: string + daysUntilDue: + description: DaysUntilDue is applicable when collection method is send_invoice + format: int64 + type: integer + id: + description: ID is the stripe subscription ID. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription: + description: "Subscription is the Schema for the subscriptions API This object\ + \ represents the goal of having a subscription. Creators: self-registration\ + \ controller, suger webhook Readers: org admins" + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + parentSubscription: + name: name + namespace: namespace + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + cloudType: cloudType + recurring: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + stripe: + daysUntilDue: 6 + collectionMethod: collectionMethod + id: id + description: description + suger: + partner: partner + entitlementID: entitlementID + buyerID: buyerID + anchorDate: 2000-01-23T04:56:07.000+00:00 + endingBalanceCents: 0 + type: type + startDate: 2000-01-23T04:56:07.000+00:00 + status: + pendingSetupIntent: + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + items: + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: Subscription + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent: + description: SubscriptionIntent is the Schema for the subscriptionintents API + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + offerRef: + kind: kind + name: name + namespace: namespace + suger: + partner: partner + entitlementID: entitlementID + type: type + status: + setupIntentName: setupIntentName + subscriptionName: subscriptionName + paymentIntentName: paymentIntentName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: SubscriptionIntent + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + offerRef: + kind: kind + name: name + namespace: namespace + suger: + partner: partner + entitlementID: entitlementID + type: type + status: + setupIntentName: setupIntentName + subscriptionName: subscriptionName + paymentIntentName: paymentIntentName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + offerRef: + kind: kind + name: name + namespace: namespace + suger: + partner: partner + entitlementID: entitlementID + type: type + status: + setupIntentName: setupIntentName + subscriptionName: subscriptionName + paymentIntentName: paymentIntentName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: SubscriptionIntentList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentSpec: + description: SubscriptionIntentSpec defines the desired state of SubscriptionIntent + example: + offerRef: + kind: kind + name: name + namespace: namespace + suger: + partner: partner + entitlementID: entitlementID + type: type + properties: + offerRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferReference' + suger: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionIntentSpec' + type: + description: "The type of the subscription intent. Validate values: stripe,\ + \ suger Default to stripe." + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentStatus: + description: SubscriptionIntentStatus defines the observed state of SubscriptionIntent + example: + setupIntentName: setupIntentName + subscriptionName: subscriptionName + paymentIntentName: paymentIntentName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + paymentIntentName: + type: string + setupIntentName: + type: string + subscriptionName: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem: + description: SubscriptionItem defines a product within a subscription. + example: + metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + properties: + key: + description: Key is the item key within the subscription. + type: string + metadata: + additionalProperties: + type: string + description: Metadata is an unstructured key value map stored with an item. + type: object + product: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference' + quantity: + description: Quantity for this item. + type: string + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + parentSubscription: + name: name + namespace: namespace + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + cloudType: cloudType + recurring: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + stripe: + daysUntilDue: 6 + collectionMethod: collectionMethod + id: id + description: description + suger: + partner: partner + entitlementID: entitlementID + buyerID: buyerID + anchorDate: 2000-01-23T04:56:07.000+00:00 + endingBalanceCents: 0 + type: type + startDate: 2000-01-23T04:56:07.000+00:00 + status: + pendingSetupIntent: + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + items: + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + parentSubscription: + name: name + namespace: namespace + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + cloudType: cloudType + recurring: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + stripe: + daysUntilDue: 6 + collectionMethod: collectionMethod + id: id + description: description + suger: + partner: partner + entitlementID: entitlementID + buyerID: buyerID + anchorDate: 2000-01-23T04:56:07.000+00:00 + endingBalanceCents: 0 + type: type + startDate: 2000-01-23T04:56:07.000+00:00 + status: + pendingSetupIntent: + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + items: + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: SubscriptionList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionReference: + description: SubscriptionReference references a Subscription object. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionSpec: + description: SubscriptionSpec defines the desired state of Subscription + example: + parentSubscription: + name: name + namespace: namespace + endDate: 2000-01-23T04:56:07.000+00:00 + once: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + cloudType: cloudType + recurring: + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + - metadata: + key: metadata + product: + name: name + namespace: namespace + quantity: quantity + key: key + stripe: + daysUntilDue: 6 + collectionMethod: collectionMethod + id: id + description: description + suger: + partner: partner + entitlementID: entitlementID + buyerID: buyerID + anchorDate: 2000-01-23T04:56:07.000+00:00 + endingBalanceCents: 0 + type: type + startDate: 2000-01-23T04:56:07.000+00:00 + properties: + anchorDate: + description: AnchorDate is a timestamp representing the first billing cycle + end date. It is represented by seconds from the epoch on the Stripe side. + format: date-time + type: string + cloudType: + description: CloudType will validate resources like the consumption unit + product are restricted to the correct cloud provider + type: string + description: + type: string + endDate: + description: EndDate is a timestamp representing the date when the subscription + will be ended. It is represented in RFC3339 form and is in UTC. + format: date-time + type: string + endingBalanceCents: + description: "Ending balance for a subscription, this value is asynchrnously\ + \ updated by billing-reporter and directly pulled from stripe's invoice\ + \ object [1]. Negative at this value means that there are outstanding\ + \ discount credits left for the customer. Nil implies that billing reporter\ + \ hasn't run since creation and yet to set the value. [1] https://docs.stripe.com/api/invoices/object#invoice_object-ending_balance" + format: int64 + type: integer + once: + description: One-time items. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + parentSubscription: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionReference' + recurring: + description: Recurring items. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + startDate: + description: StartDate is a timestamp representing the start date of the + subscription. It is represented in RFC3339 form and is in UTC. + format: date-time + type: string + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSubscriptionSpec' + suger: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionSpec' + type: + description: "The type of the subscription. Validate values: stripe, suger\ + \ Default to stripe." + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatus: + description: SubscriptionStatus defines the observed state of Subscription + example: + pendingSetupIntent: + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + items: + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + - product: product + sugerID: sugerID + stripeID: stripeID + key: key + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + items: + description: "the status of the subscription is designed to support billing\ + \ agents, so it provides product and subscription items." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatusSubscriptionItem' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + pendingSetupIntent: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentReference' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatusSubscriptionItem: + example: + product: product + sugerID: sugerID + stripeID: stripeID + key: key + properties: + key: + description: Key is the item key within the subscription. + type: string + product: + description: Product is the Product object reference as a qualified name. + type: string + stripeID: + description: The unique identifier for the Stripe subscription item. + type: string + sugerID: + description: The unique identifier for the Suger entitlement item. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview: + description: SugerEntitlementReview is a request to find the organization with + entitlement ID. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + entitlementID: entitlementID + status: + partner: partner + organization: organization + buyerID: buyerID + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: SugerEntitlementReview + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewSpec: + example: + entitlementID: entitlementID + properties: + entitlementID: + description: EntitlementID is the ID of the entitlement + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewStatus: + example: + partner: partner + organization: organization + buyerID: buyerID + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + buyerID: + description: BuyerID is the ID of buyer associated with organization The + first one will be returned when there are more than one are found. + type: string + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + organization: + description: Organization is the name of the organization matching the entitlement + ID The first one will be returned when there are more than one are found. + type: string + partner: + description: Partner is the partner associated with organization + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProduct: + example: + productID: productID + dimensionKey: dimensionKey + properties: + dimensionKey: + description: DimensionKey is the metering dimension of the Suger product. + type: string + productID: + description: ProductID is the suger product id. + type: string + required: + - dimensionKey + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProductSpec: + example: + productID: productID + dimensionKey: dimensionKey + products: + - productID: productID + dimensionKey: dimensionKey + - productID: productID + dimensionKey: dimensionKey + properties: + dimensionKey: + description: "DimensionKey is the metering dimension of the Suger product.\ + \ Deprecated: use Products" + type: string + productID: + description: "ProductID is the suger product id. Deprecated: use Products" + type: string + products: + description: Products is the list of suger products. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProduct' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionIntentSpec: + example: + partner: partner + entitlementID: entitlementID + properties: + entitlementID: + description: EntitlementID is the suger entitlement ID. An entitlement is + a contract that one buyer has purchased your product in the marketplace. + type: string + partner: + description: The partner code of the entitlement. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionSpec: + example: + partner: partner + entitlementID: entitlementID + buyerID: buyerID + properties: + buyerID: + description: BuyerID is the Suger internal ID of the buyer of the entitlement + type: string + entitlementID: + description: ID is the Suger entitlement ID. Entitlement is the contract + that one buyer has purchased your product in the marketplace. + type: string + partner: + description: Partner is the partner of the entitlement + type: string + required: + - entitlementID + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock: + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + name: name + frozenTime: 2000-01-23T04:56:07.000+00:00 + status: + stripeID: stripeID + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockStatus' + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: TestClock + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + name: name + frozenTime: 2000-01-23T04:56:07.000+00:00 + status: + stripeID: stripeID + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + name: name + frozenTime: 2000-01-23T04:56:07.000+00:00 + status: + stripeID: stripeID + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: billing.streamnative.io + kind: TestClockList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockSpec: + example: + name: name + frozenTime: 2000-01-23T04:56:07.000+00:00 + properties: + frozenTime: + description: The current time of the clock. + format: date-time + type: string + name: + description: The clock display name. + type: string + required: + - frozenTime + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockStatus: + example: + stripeID: stripeID + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + stripeID: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier: + example: + upTo: upTo + flatAmount: flatAmount + unitAmount: unitAmount + properties: + flatAmount: + description: "FlatAmount is the flat billing amount for an entire tier,\ + \ regardless of the number of units in the tier, in dollars." + type: string + unitAmount: + description: "UnitAmount is the per-unit billing amount for each individual\ + \ unit for which this tier applies, in dollars." + type: string + upTo: + description: UpTo specifies the upper bound of this tier. The lower bound + of a tier is the upper bound of the previous tier adding one. Use `inf` + to define a fallback tier. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey: + description: APIKey + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + instanceName: instanceName + expirationTime: 2000-01-23T04:56:07.000+00:00 + serviceAccountName: serviceAccountName + description: description + revoke: true + encryptionKey: + pem: pem + jwk: jwk + status: + encryptedToken: + jwe: jwe + keyId: keyId + issuedAt: 2000-01-23T04:56:07.000+00:00 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + revokedAt: 2000-01-23T04:56:07.000+00:00 + expiresAt: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeySpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: APIKey + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + instanceName: instanceName + expirationTime: 2000-01-23T04:56:07.000+00:00 + serviceAccountName: serviceAccountName + description: description + revoke: true + encryptionKey: + pem: pem + jwk: jwk + status: + encryptedToken: + jwe: jwe + keyId: keyId + issuedAt: 2000-01-23T04:56:07.000+00:00 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + revokedAt: 2000-01-23T04:56:07.000+00:00 + expiresAt: 2000-01-23T04:56:07.000+00:00 + token: token + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + instanceName: instanceName + expirationTime: 2000-01-23T04:56:07.000+00:00 + serviceAccountName: serviceAccountName + description: description + revoke: true + encryptionKey: + pem: pem + jwk: jwk + status: + encryptedToken: + jwe: jwe + keyId: keyId + issuedAt: 2000-01-23T04:56:07.000+00:00 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + revokedAt: 2000-01-23T04:56:07.000+00:00 + expiresAt: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: APIKeyList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeySpec: + description: APIKeySpec defines the desired state of APIKey + example: + instanceName: instanceName + expirationTime: 2000-01-23T04:56:07.000+00:00 + serviceAccountName: serviceAccountName + description: description + revoke: true + encryptionKey: + pem: pem + jwk: jwk + properties: + description: + description: Description is a user defined description of the key + type: string + encryptionKey: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptionKey' + expirationTime: + description: Expiration is a duration (as a golang duration string) that + defines how long this API key is valid for. This can only be set on initial + creation and not updated later + format: date-time + type: string + instanceName: + description: InstanceName is the name of the instance this API key is for + type: string + revoke: + description: Revoke is a boolean that defines if the token of this API key + should be revoked. + type: boolean + serviceAccountName: + description: ServiceAccountName is the name of the service account this + API key is for + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyStatus: + description: APIKeyStatus defines the observed state of ServiceAccount + example: + encryptedToken: + jwe: jwe + keyId: keyId + issuedAt: 2000-01-23T04:56:07.000+00:00 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + revokedAt: 2000-01-23T04:56:07.000+00:00 + expiresAt: 2000-01-23T04:56:07.000+00:00 + token: token + properties: + conditions: + description: Conditions is an array of current observed service account + conditions. + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + encryptedToken: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptedToken' + expiresAt: + description: ExpiresAt is a timestamp of when the key expires + format: date-time + type: string + issuedAt: + description: "IssuedAt is a timestamp of when the key was issued, stored\ + \ as an epoch in seconds" + format: date-time + type: string + keyId: + description: KeyId is a generated field that is a uid for the token + type: string + revokedAt: + description: "ExpiresAt is a timestamp of when the key was revoked, it triggers\ + \ revocation action" + format: date-time + type: string + token: + description: Token is the plaintext security token issued for the key. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AWSCloudConnection: + example: + accountId: accountId + properties: + accountId: + type: string + required: + - accountId + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AuditLog: + example: + categories: + - categories + - categories + properties: + categories: + items: + type: string + type: array + x-kubernetes-list-type: set + required: + - categories + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy: + description: AutoScalingPolicy defines the min/max replicas for component is + autoscaling enabled. + example: + maxReplicas: 0 + minReplicas: 6 + properties: + maxReplicas: + format: int32 + type: integer + minReplicas: + format: int32 + type: integer + required: + - maxReplicas + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AwsPoolMemberSpec: + example: + accessKeyID: accessKeyID + secretAccessKey: secretAccessKey + clusterName: clusterName + region: region + adminRoleARN: adminRoleARN + permissionBoundaryARN: permissionBoundaryARN + properties: + accessKeyID: + description: AWS Access key ID + type: string + adminRoleARN: + description: AdminRoleARN is the admin role to assume (or empty to use the + manager's identity). + type: string + clusterName: + description: ClusterName is the EKS cluster name. + type: string + permissionBoundaryARN: + description: PermissionBoundaryARN refers to the permission boundary to + assign to IAM roles. + type: string + region: + description: Region is the AWS region of the cluster. + type: string + secretAccessKey: + description: AWS Secret Access Key + type: string + required: + - clusterName + - region + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzureConnection: + example: + clientId: clientId + tenantId: tenantId + subscriptionId: subscriptionId + supportClientId: supportClientId + properties: + clientId: + type: string + subscriptionId: + type: string + supportClientId: + type: string + tenantId: + type: string + required: + - clientId + - subscriptionId + - supportClientId + - tenantId + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzurePoolMemberSpec: + example: + resourceGroup: resourceGroup + clientID: clientID + clusterName: clusterName + tenantID: tenantID + location: location + subscriptionID: subscriptionID + properties: + clientID: + description: ClientID is the Azure client ID of which the GSA can impersonate. + type: string + clusterName: + description: ClusterName is the AKS cluster name. + type: string + location: + description: Location is the Azure location of the cluster. + type: string + resourceGroup: + description: ResourceGroup is the Azure resource group of the cluster. + type: string + subscriptionID: + description: SubscriptionID is the Azure subscription ID of the cluster. + type: string + tenantID: + description: TenantID is the Azure tenant ID of the client. + type: string + required: + - clientID + - clusterName + - location + - resourceGroup + - subscriptionID + - tenantID + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BillingAccountSpec: + example: + email: email + properties: + email: + type: string + required: + - email + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeper: + example: + image: image + replicas: 1 + resources: + directPercentage: 5 + memory: memory + ledgerDisk: ledgerDisk + journalDisk: journalDisk + cpu: cpu + heapPercentage: 5 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + storageSize: storageSize + nodeType: nodeType + properties: + autoScalingPolicy: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy' + image: + description: Image name is the name of the image to deploy. + type: string + replicas: + description: Replicas is the expected size of the bookkeeper cluster. + format: int32 + type: integer + resourceSpec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperNodeResourceSpec' + resources: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookkeeperNodeResource' + required: + - replicas + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperNodeResourceSpec: + example: + storageSize: storageSize + nodeType: nodeType + properties: + nodeType: + description: "NodeType defines the request node specification type, take\ + \ lower precedence over Resources" + type: string + storageSize: + description: StorageSize defines the size of the storage + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperSetReference: + description: BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet + with a given name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookkeeperNodeResource: + description: Represents resource spec for bookie nodes + example: + directPercentage: 5 + memory: memory + ledgerDisk: ledgerDisk + journalDisk: journalDisk + cpu: cpu + heapPercentage: 5 + properties: + cpu: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + directPercentage: + description: Percentage of direct memory from overall memory. Set to 0 to + use default value. + format: int32 + type: integer + heapPercentage: + description: Percentage of heap memory from overall memory. Set to 0 to + use default value. + format: int32 + type: integer + journalDisk: + description: JournalDisk size. Set to zero equivalent to use default value + type: string + ledgerDisk: + description: LedgerDisk size. Set to zero equivalent to use default value + type: string + memory: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + required: + - cpu + - memory + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Broker: + example: + image: image + replicas: 2 + resources: + directPercentage: 7 + memory: memory + cpu: cpu + heapPercentage: 9 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + nodeType: nodeType + properties: + autoScalingPolicy: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy' + image: + description: Image name is the name of the image to deploy. + type: string + replicas: + description: Replicas is the expected size of the broker cluster. + format: int32 + type: integer + resourceSpec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BrokerNodeResourceSpec' + resources: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DefaultNodeResource' + required: + - replicas + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BrokerNodeResourceSpec: + example: + nodeType: nodeType + properties: + nodeType: + description: "NodeType defines the request node specification type, take\ + \ lower precedence over Resources" + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Chain: + description: Chain specifies a named chain for a role definition array. + example: + name: name + roleChain: + - role: role + type: type + - role: role + type: type + properties: + name: + type: string + roleChain: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition' + type: array + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection: + description: |- + CloudConnection represents a connection to the customer's cloud environment Currently, this object *only* is used to serve as an inventory of customer connections and make sure that they remain valid. In the future, we might consider this object to be used by other objects, but existing APIs already take care of that + + Other internal options are defined in the CloudConnectionBackendConfig type which is the "companion" CRD to this user facing API + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + gcp: + projectId: projectId + aws: + accountId: accountId + type: type + azure: + clientId: clientId + tenantId: tenantId + subscriptionId: subscriptionId + supportClientId: supportClientId + status: + awsPolicyVersion: awsPolicyVersion + availableLocations: + - region: region + zones: + - zones + - zones + - region: region + zones: + - zones + - zones + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: CloudConnection + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + gcp: + projectId: projectId + aws: + accountId: accountId + type: type + azure: + clientId: clientId + tenantId: tenantId + subscriptionId: subscriptionId + supportClientId: supportClientId + status: + awsPolicyVersion: awsPolicyVersion + availableLocations: + - region: region + zones: + - zones + - zones + - region: region + zones: + - zones + - zones + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + gcp: + projectId: projectId + aws: + accountId: accountId + type: type + azure: + clientId: clientId + tenantId: tenantId + subscriptionId: subscriptionId + supportClientId: supportClientId + status: + awsPolicyVersion: awsPolicyVersion + availableLocations: + - region: region + zones: + - zones + - zones + - region: region + zones: + - zones + - zones + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: CloudConnectionList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionSpec: + description: CloudConnectionSpec defines the desired state of CloudConnection + example: + gcp: + projectId: projectId + aws: + accountId: accountId + type: type + azure: + clientId: clientId + tenantId: tenantId + subscriptionId: subscriptionId + supportClientId: supportClientId + properties: + aws: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AWSCloudConnection' + azure: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzureConnection' + gcp: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCPCloudConnection' + type: + type: string + required: + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionStatus: + description: CloudConnectionStatus defines the observed state of CloudConnection + example: + awsPolicyVersion: awsPolicyVersion + availableLocations: + - region: region + zones: + - zones + - zones + - region: region + zones: + - zones + - zones + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + availableLocations: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RegionInfo' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - region + x-kubernetes-patch-merge-key: region + awsPolicyVersion: + type: string + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment: + description: "CloudEnvironment represents the infrastructure environment for\ + \ running pulsar clusters, consisting of Kubernetes cluster and set of applications" + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + cloudConnectionName: cloudConnectionName + zone: zone + dns: + name: name + id: id + region: region + defaultGateway: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + network: + subnetCIDR: subnetCIDR + cidr: cidr + id: id + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + defaultGateway: + privateServiceIds: + - id: id + - id: id + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: CloudEnvironment + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + cloudConnectionName: cloudConnectionName + zone: zone + dns: + name: name + id: id + region: region + defaultGateway: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + network: + subnetCIDR: subnetCIDR + cidr: cidr + id: id + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + defaultGateway: + privateServiceIds: + - id: id + - id: id + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + cloudConnectionName: cloudConnectionName + zone: zone + dns: + name: name + id: id + region: region + defaultGateway: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + network: + subnetCIDR: subnetCIDR + cidr: cidr + id: id + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + defaultGateway: + privateServiceIds: + - id: id + - id: id + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: CloudEnvironmentList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentSpec: + description: CloudEnvironmentSpec defines the desired state of CloudEnvironment + example: + cloudConnectionName: cloudConnectionName + zone: zone + dns: + name: name + id: id + region: region + defaultGateway: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + network: + subnetCIDR: subnetCIDR + cidr: cidr + id: id + properties: + cloudConnectionName: + description: CloudConnectionName references to the CloudConnection object + type: string + defaultGateway: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Gateway' + dns: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DNS' + network: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Network' + region: + description: Region defines in which region will resources be deployed + type: string + zone: + description: "Zone defines in which availability zone will resources be\ + \ deployed If specified, the cloud environment will be zonal. Default\ + \ to unspecified and regional cloud environment" + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentStatus: + description: CloudEnvironmentStatus defines the observed state of CloudEnvironment + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + defaultGateway: + privateServiceIds: + - id: id + - id: id + properties: + conditions: + description: Conditions contains details for the current state of underlying + resource + items: + $ref: '#/components/schemas/v1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + defaultGateway: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GatewayStatus' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole: + description: ClusterRole + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + permissions: + - permissions + - permissions + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ClusterRole + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding: + description: ClusterRoleBinding + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ClusterRoleBinding + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ClusterRoleBindingList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingSpec: + description: ClusterRoleBindingSpec defines the desired state of ClusterRoleBinding + example: + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + roleRef: + apiGroup: apiGroup + kind: kind + name: name + properties: + roleRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef' + subjects: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject' + type: array + x-kubernetes-list-type: atomic + required: + - roleRef + - subjects + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingStatus: + description: ClusterRoleBindingStatus defines the observed state of ClusterRoleBinding + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + permissions: + - permissions + - permissions + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + permissions: + - permissions + - permissions + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ClusterRoleList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleSpec: + description: ClusterRoleSpec defines the desired state of ClusterRole + example: + permissions: + - permissions + - permissions + properties: + permissions: + description: |- + Permissions Designed for general permission format + SERVICE.RESOURCE.VERB + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleStatus: + description: ClusterRoleStatus defines the observed state of ClusterRole + example: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + failedClusters: + description: FailedClusters is an array of clusters which failed to apply + the ClusterRole resources. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition: + description: |- + Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. + + Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + lastTransitionTime: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + message: + type: string + observedGeneration: + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon. For instance, if .metadata.generation\ + \ is currently 12, but the .status.conditions[x].observedGeneration is\ + \ 9, the condition is out of date with respect to the current state of\ + \ the instance." + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup: + description: ConditionGroup Deprecated + example: + conditionGroups: + - null + - null + conditions: + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + relation: 1 + properties: + conditionGroups: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup' + type: array + conditions: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingCondition' + type: array + relation: + format: int32 + type: integer + required: + - conditions + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Config: + example: + auditLog: + categories: + - categories + - categories + functionEnabled: true + websocketEnabled: true + custom: + key: custom + transactionEnabled: true + protocols: + amqp: "{}" + kafka: "{}" + mqtt: "{}" + lakehouseStorage: + catalogWarehouse: catalogWarehouse + catalogCredentials: catalogCredentials + catalogType: catalogType + catalogConnectionUrl: catalogConnectionUrl + lakehouseType: lakehouseType + properties: + auditLog: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AuditLog' + custom: + additionalProperties: + type: string + description: Custom accepts custom configurations. + type: object + functionEnabled: + description: FunctionEnabled controls whether function is enabled. + type: boolean + lakehouseStorage: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.LakehouseStorageConfig' + protocols: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ProtocolsConfig' + transactionEnabled: + description: TransactionEnabled controls whether transaction is enabled. + type: boolean + websocketEnabled: + description: WebsocketEnabled controls whether websocket is enabled. + type: boolean + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DNS: + description: DNS defines the DNS domain and how should the DNS zone be managed. + ID and Name must be specified at the same time + example: + name: name + id: id + properties: + id: + description: "ID is the identifier of a DNS Zone. It can be AWS zone id,\ + \ GCP zone name, and Azure zone id If ID is specified, an existing zone\ + \ will be used. Otherwise, a new DNS zone will be created and managed\ + \ by SN." + type: string + name: + description: "Name is the dns domain name. It can be AWS zone name, GCP\ + \ dns name and Azure zone name." + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DefaultNodeResource: + description: Represents resource spec for nodes + example: + directPercentage: 7 + memory: memory + cpu: cpu + heapPercentage: 9 + properties: + cpu: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + directPercentage: + description: Percentage of direct memory from overall memory. Set to 0 to + use default value. + format: int32 + type: integer + heapPercentage: + description: Percentage of heap memory from overall memory. Set to 0 to + use default value. + format: int32 + type: integer + memory: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + required: + - cpu + - memory + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain: + example: + name: name + tls: + certificateName: certificateName + type: type + properties: + name: + type: string + tls: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DomainTLS' + type: + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DomainTLS: + example: + certificateName: certificateName + properties: + certificateName: + description: CertificateName specifies the certificate object name to use. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptedToken: + description: EncryptedToken is token that is encrypted using an encryption key. + example: + jwe: jwe + properties: + jwe: + description: "JWE is the token as a JSON Web Encryption (JWE) message. For\ + \ RSA public keys, the key encryption algorithm is RSA-OAEP, and the content\ + \ encryption algorithm is AES GCM." + type: string + type: object + x-kubernetes-map-type: atomic + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptionKey: + description: EncryptionKey specifies a public key for encryption purposes. Either + a PEM or JWK must be specified. + example: + pem: pem + jwk: jwk + properties: + jwk: + description: JWK is a JWK-encoded public key. + type: string + pem: + description: "PEM is a PEM-encoded public key in PKIX, ASN.1 DER form (\"\ + spki\" format)." + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EndpointAccess: + example: + gateway: gateway + properties: + gateway: + description: Gateway is the name of the PulsarGateway to use for the endpoint. + The default gateway of the pool member will be used if not specified. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecConfig: + description: |- + ExecConfig specifies a command to provide client credentials. The command is exec'd and outputs structured stdout holding credentials. + + See the client.authentiction.k8s.io API group for specifications of the exact input and output format + example: + args: + - args + - args + apiVersion: apiVersion + env: + - name: name + value: value + - name: name + value: value + command: command + properties: + apiVersion: + description: Preferred input version of the ExecInfo. The returned ExecCredentials + MUST use the same encoding version as the input. + type: string + args: + description: Arguments to pass to the command when executing it. + items: + type: string + type: array + x-kubernetes-list-type: atomic + command: + description: Command to execute. + type: string + env: + description: "Env defines additional environment variables to expose to\ + \ the process. These are unioned with the host's environment, as well\ + \ as variables client-go uses to pass argument to the plugin." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecEnvVar' + type: array + x-kubernetes-list-type: atomic + required: + - command + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecEnvVar: + description: ExecEnvVar is used for setting environment variables when executing + an exec-based credential plugin. + example: + name: name + value: value + properties: + name: + type: string + value: + type: string + required: + - name + - value + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster: + example: + reason: reason + name: name + namespace: namespace + properties: + name: + description: Name is the Cluster's name + type: string + namespace: + description: Namespace is the Cluster's namespace + type: string + reason: + description: Reason is the failed reason + type: string + required: + - name + - namespace + - reason + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedClusterRole: + example: + reason: reason + name: name + properties: + name: + description: Name is the ClusterRole's name + type: string + reason: + description: Reason is the failed reason + type: string + required: + - name + - reason + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRole: + example: + reason: reason + name: name + namespace: namespace + properties: + name: + description: Name is the Role's name + type: string + namespace: + description: Namespace is the Role's namespace + type: string + reason: + description: Reason is the failed reason + type: string + required: + - name + - namespace + - reason + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRoleBinding: + example: + reason: reason + name: name + namespace: namespace + properties: + name: + description: Name is the RoleBinding's name + type: string + namespace: + description: Namespace is the RoleBinding's namespace + type: string + reason: + description: Reason is the failed reason + type: string + required: + - name + - namespace + - reason + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCPCloudConnection: + example: + projectId: projectId + properties: + projectId: + type: string + required: + - projectId + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudOrganizationSpec: + example: + project: project + properties: + project: + type: string + required: + - project + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolMemberSpec: + example: + initialNodeCount: 0 + adminServiceAccount: adminServiceAccount + clusterName: clusterName + maxNodeCount: 6 + project: project + location: location + machineType: machineType + properties: + adminServiceAccount: + description: "AdminServiceAccount is the service account to be impersonated,\ + \ or leave it empty to call the API without impersonation." + type: string + clusterName: + description: ClusterName is the GKE cluster name. + type: string + initialNodeCount: + description: Deprecated + format: int32 + type: integer + location: + type: string + machineType: + description: Deprecated + type: string + maxNodeCount: + description: Deprecated + format: int32 + type: integer + project: + description: Project is the Google project containing the GKE cluster. + type: string + required: + - location + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Gateway: + description: Gateway defines the access of pulsar cluster endpoint + example: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + properties: + access: + description: "Access is the access type of the pulsar gateway, available\ + \ values are public or private. It is immutable, with the default value\ + \ public." + type: string + privateService: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GatewayStatus: + example: + privateServiceIds: + - id: id + - id: id + properties: + privateServiceIds: + description: "PrivateServiceIds are the id of the private endpoint services,\ + \ only exposed when the access type is private." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GenericPoolMemberSpec: + example: + endpoint: endpoint + masterAuth: + clientCertificate: clientCertificate + password: password + clientKey: clientKey + clusterCaCertificate: clusterCaCertificate + exec: + args: + - args + - args + apiVersion: apiVersion + env: + - name: name + value: value + - name: name + value: value + command: command + username: username + location: location + tlsServerName: tlsServerName + properties: + endpoint: + description: "Endpoint is *either* a full URL, or a hostname/port to point\ + \ to the master" + type: string + location: + description: Location is the location of the cluster. + type: string + masterAuth: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MasterAuth' + tlsServerName: + description: "TLSServerName is the SNI header name to set, overridding the\ + \ default. This is just the hostname and no port" + type: string + required: + - location + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool: + description: IdentityPool + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + expression: expression + description: description + authType: authType + providerName: providerName + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: IdentityPool + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + expression: expression + description: description + authType: authType + providerName: providerName + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + expression: expression + description: description + authType: authType + providerName: providerName + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: IdentityPoolList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolSpec: + description: IdentityPoolSpec defines the desired state of IdentityPool + example: + expression: expression + description: description + authType: authType + providerName: providerName + properties: + authType: + type: string + description: + type: string + expression: + type: string + providerName: + type: string + required: + - authType + - description + - expression + - providerName + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolStatus: + description: IdentityPoolStatus defines the desired state of IdentityPool + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.InstalledCSV: + example: + phase: phase + name: name + properties: + name: + type: string + phase: + type: string + required: + - name + - phase + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Invitation: + example: + decision: decision + expiration: 2000-01-23T04:56:07.000+00:00 + properties: + decision: + description: Decision indicates the user's response to the invitation + type: string + expiration: + description: Expiration indicates when the invitation expires + format: date-time + type: string + required: + - decision + - expiration + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.LakehouseStorageConfig: + example: + catalogWarehouse: catalogWarehouse + catalogCredentials: catalogCredentials + catalogType: catalogType + catalogConnectionUrl: catalogConnectionUrl + lakehouseType: lakehouseType + properties: + catalogConnectionUrl: + type: string + catalogCredentials: + description: "todo: maybe we need to support mount secrets as the catalog\ + \ credentials?" + type: string + catalogType: + type: string + catalogWarehouse: + type: string + lakehouseType: + type: string + required: + - catalogConnectionUrl + - catalogCredentials + - catalogWarehouse + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MaintenanceWindow: + example: + recurrence: recurrence + window: + duration: duration + startTime: startTime + properties: + recurrence: + description: "Recurrence define the maintenance execution cycle, 0~6, to\ + \ express Monday to Sunday" + type: string + window: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Window' + required: + - recurrence + - window + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MasterAuth: + example: + clientCertificate: clientCertificate + password: password + clientKey: clientKey + clusterCaCertificate: clusterCaCertificate + exec: + args: + - args + - args + apiVersion: apiVersion + env: + - name: name + value: value + - name: name + value: value + command: command + username: username + properties: + clientCertificate: + description: ClientCertificate is base64-encoded public certificate used + by clients to authenticate to the cluster endpoint. + type: string + clientKey: + description: ClientKey is base64-encoded private key used by clients to + authenticate to the cluster endpoint. + type: string + clusterCaCertificate: + description: ClusterCaCertificate is base64-encoded public certificate that + is the root of trust for the cluster. + type: string + exec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecConfig' + password: + description: Password is the password to use for HTTP basic authentication + to the master endpoint. + type: string + username: + description: Username is the username to use for HTTP basic authentication + to the master endpoint. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Network: + description: "Network defines how to provision the network infrastructure CIDR\ + \ and ID cannot be specified at the same time. When ID is specified, the existing\ + \ VPC will be used. Otherwise, a new VPC with the specified or default CIDR\ + \ will be created" + example: + subnetCIDR: subnetCIDR + cidr: cidr + id: id + properties: + cidr: + description: CIDR determines the CIDR of the VPC to create if specified + type: string + id: + description: "ID is the id or the name of an existing VPC when specified.\ + \ It's vpc id in AWS, vpc network name in GCP and vnet name in Azure" + type: string + subnetCIDR: + description: SubnetCIDR determines the CIDR of the subnet to create if specified + required for Azure + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OAuth2Config: + description: OAuth2Config define oauth2 config of PulsarInstance + example: + tokenLifetimeSeconds: 0 + properties: + tokenLifetimeSeconds: + description: "TokenLifetimeSeconds access token lifetime (in seconds) for\ + \ the API. Default value is 86,400 seconds (24 hours). Maximum value is\ + \ 2,592,000 seconds (30 days) Document link: https://auth0.com/docs/secure/tokens/access-tokens/update-access-token-lifetime" + format: int32 + type: integer + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider: + description: OIDCProvider + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + description: description + discoveryUrl: discoveryUrl + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: OIDCProvider + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + description: description + discoveryUrl: discoveryUrl + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + description: description + discoveryUrl: discoveryUrl + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: OIDCProviderList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderSpec: + description: OIDCProviderSpec defines the desired state of OIDCProvider + example: + description: description + discoveryUrl: discoveryUrl + properties: + description: + type: string + discoveryUrl: + type: string + required: + - description + - discoveryUrl + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderStatus: + description: OIDCProviderStatus defines the observed state of OIDCProvider + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization: + description: Organization + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + metadata: + key: metadata + billingParent: billingParent + displayName: displayName + gcloud: + project: project + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + billingAccount: + email: email + type: type + defaultPoolRef: + name: name + namespace: namespace + awsMarketplaceToken: awsMarketplaceToken + billingType: billingType + stripe: + daysUntilDue: 0 + collectionMethod: collectionMethod + keepInDraft: true + suger: + buyerIDs: + - buyerIDs + - buyerIDs + cloudFeature: + key: true + status: + billingParent: billingParent + subscriptionName: subscriptionName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + supportPlan: supportPlan + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: Organization + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + metadata: + key: metadata + billingParent: billingParent + displayName: displayName + gcloud: + project: project + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + billingAccount: + email: email + type: type + defaultPoolRef: + name: name + namespace: namespace + awsMarketplaceToken: awsMarketplaceToken + billingType: billingType + stripe: + daysUntilDue: 0 + collectionMethod: collectionMethod + keepInDraft: true + suger: + buyerIDs: + - buyerIDs + - buyerIDs + cloudFeature: + key: true + status: + billingParent: billingParent + subscriptionName: subscriptionName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + supportPlan: supportPlan + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + metadata: + key: metadata + billingParent: billingParent + displayName: displayName + gcloud: + project: project + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + billingAccount: + email: email + type: type + defaultPoolRef: + name: name + namespace: namespace + awsMarketplaceToken: awsMarketplaceToken + billingType: billingType + stripe: + daysUntilDue: 0 + collectionMethod: collectionMethod + keepInDraft: true + suger: + buyerIDs: + - buyerIDs + - buyerIDs + cloudFeature: + key: true + status: + billingParent: billingParent + subscriptionName: subscriptionName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + supportPlan: supportPlan + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: OrganizationList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSpec: + description: OrganizationSpec defines the desired state of Organization + example: + metadata: + key: metadata + billingParent: billingParent + displayName: displayName + gcloud: + project: project + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + billingAccount: + email: email + type: type + defaultPoolRef: + name: name + namespace: namespace + awsMarketplaceToken: awsMarketplaceToken + billingType: billingType + stripe: + daysUntilDue: 0 + collectionMethod: collectionMethod + keepInDraft: true + suger: + buyerIDs: + - buyerIDs + - buyerIDs + cloudFeature: + key: true + properties: + awsMarketplaceToken: + type: string + billingAccount: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BillingAccountSpec' + billingParent: + description: "Organiztion ID of this org's billing parent. Once set, this\ + \ org will inherit parent org's subscription, paymentMetthod and have\ + \ \"inherited\" as billing type" + type: string + billingType: + description: BillingType indicates the method of subscription that the organization + uses. It is primarily consumed by the cloud-manager to be able to distinguish + between invoiced subscriptions. + type: string + cloudFeature: + additionalProperties: + type: boolean + description: CloudFeature indicates features this org wants to enable/disable + type: object + defaultPoolRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef' + displayName: + description: Name to display to our users + type: string + domains: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain' + type: array + x-kubernetes-list-type: atomic + gcloud: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudOrganizationSpec' + metadata: + additionalProperties: + type: string + description: Metadata is user-visible (and possibly editable) metadata. + type: object + stripe: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStripe' + suger: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSuger' + type: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStatus: + description: OrganizationStatus defines the observed state of Organization + example: + billingParent: billingParent + subscriptionName: subscriptionName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + supportPlan: supportPlan + properties: + billingParent: + description: "reconciled parent of this organization. if spec.BillingParent\ + \ is set but status.BillingParent is not set, then reconciler will create\ + \ a parent child relationship if spec.BillingParent is not set but status.BillingParent\ + \ is set, then reconciler will delete parent child relationship if spec.BillingParent\ + \ is set but status.BillingParent is set and same, then reconciler will\ + \ do nothing if spec.BillingParent is set but status.Billingparent is\ + \ set and different, then reconciler will delete status.Billingparent\ + \ relationship and create new spec.BillingParent relationship" + type: string + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + subscriptionName: + description: Indicates the active subscription for this organization. This + information is available when the Subscribed condition is true. + type: string + supportPlan: + description: "returns support plan of current subscription. blank, implies\ + \ either no support plan or legacy support" + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStripe: + example: + daysUntilDue: 0 + collectionMethod: collectionMethod + keepInDraft: true + properties: + collectionMethod: + description: "CollectionMethod is how payment on a subscription is to be\ + \ collected, either charge_automatically or send_invoice" + type: string + daysUntilDue: + description: DaysUntilDue sets the due date for the invoice. Applicable + when collection method is send_invoice. + format: int64 + type: integer + keepInDraft: + description: KeepInDraft disables auto-advance of the invoice state. Applicable + when collection method is send_invoice. + type: boolean + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSuger: + example: + buyerIDs: + - buyerIDs + - buyerIDs + properties: + buyerIDs: + items: + type: string + type: array + x-kubernetes-list-type: set + required: + - buyerIDs + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool: + description: Pool + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + deploymentType: deploymentType + gcloud: "{}" + cloudFeature: + key: true + sharing: + namespaces: + - namespaces + - namespaces + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: Pool + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + deploymentType: deploymentType + gcloud: "{}" + cloudFeature: + key: true + sharing: + namespaces: + - namespaces + - namespaces + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + deploymentType: deploymentType + gcloud: "{}" + cloudFeature: + key: true + sharing: + namespaces: + - namespaces + - namespaces + type: type + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PoolList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember: + description: PoolMember + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + functionMesh: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + gcloud: + initialNodeCount: 0 + adminServiceAccount: adminServiceAccount + clusterName: clusterName + maxNodeCount: 6 + project: project + location: location + machineType: machineType + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + monitoring: + project: project + vmTenant: vmTenant + vmagentSecretRef: + name: name + namespace: namespace + vminsertBackendServiceName: vminsertBackendServiceName + type: type + istio: + gateway: + selector: + matchLabels: + key: matchLabels + tls: + certSecretName: certSecretName + revision: revision + generic: + endpoint: endpoint + masterAuth: + clientCertificate: clientCertificate + password: password + clientKey: clientKey + clusterCaCertificate: clusterCaCertificate + exec: + args: + - args + - args + apiVersion: apiVersion + env: + - name: name + value: value + - name: name + value: value + command: command + username: username + location: location + tlsServerName: tlsServerName + tieredStorage: + bucketName: bucketName + connectionOptions: + proxyUrl: proxyUrl + tlsServerName: tlsServerName + aws: + accessKeyID: accessKeyID + secretAccessKey: secretAccessKey + clusterName: clusterName + region: region + adminRoleARN: adminRoleARN + permissionBoundaryARN: permissionBoundaryARN + supportAccess: + chains: + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + roleChain: + - role: role + type: type + - role: role + type: type + azure: + resourceGroup: resourceGroup + clientID: clientID + clusterName: clusterName + tenantID: tenantID + location: location + subscriptionID: subscriptionID + poolName: poolName + pulsar: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + status: + deploymentType: deploymentType + serverVersion: serverVersion + installedCSVs: + - phase: phase + name: name + - phase: phase + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 1 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PoolMember + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberConnectionOptionsSpec: + example: + proxyUrl: proxyUrl + tlsServerName: tlsServerName + properties: + proxyUrl: + description: "ProxyUrl overrides the URL to K8S API. This is most typically\ + \ done for SNI proxying. If ProxyUrl is set but TLSServerName is not,\ + \ the *original* SNI value from the default endpoint will be used. If\ + \ you also want to change the SNI header, you must also set TLSServerName." + type: string + tlsServerName: + description: "TLSServerName is the SNI header name to set, overriding the\ + \ default endpoint. This should include the hostname value, with no port." + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySelector: + example: + matchLabels: + key: matchLabels + properties: + matchLabels: + additionalProperties: + type: string + description: One or more labels that indicate a specific set of pods on + which a policy should be applied. The scope of label search is restricted + to the configuration namespace in which the resource is present. + type: object + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySpec: + example: + selector: + matchLabels: + key: matchLabels + tls: + certSecretName: certSecretName + properties: + selector: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySelector' + tls: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewayTls' + required: + - selector + - tls + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewayTls: + example: + certSecretName: certSecretName + properties: + certSecretName: + description: The TLS secret to use (in the namespace of the gateway workload + pods). + type: string + required: + - certSecretName + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioSpec: + example: + gateway: + selector: + matchLabels: + key: matchLabels + tls: + certSecretName: certSecretName + revision: revision + properties: + gateway: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySpec' + revision: + description: Revision is the Istio revision tag. + type: string + required: + - revision + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + functionMesh: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + gcloud: + initialNodeCount: 0 + adminServiceAccount: adminServiceAccount + clusterName: clusterName + maxNodeCount: 6 + project: project + location: location + machineType: machineType + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + monitoring: + project: project + vmTenant: vmTenant + vmagentSecretRef: + name: name + namespace: namespace + vminsertBackendServiceName: vminsertBackendServiceName + type: type + istio: + gateway: + selector: + matchLabels: + key: matchLabels + tls: + certSecretName: certSecretName + revision: revision + generic: + endpoint: endpoint + masterAuth: + clientCertificate: clientCertificate + password: password + clientKey: clientKey + clusterCaCertificate: clusterCaCertificate + exec: + args: + - args + - args + apiVersion: apiVersion + env: + - name: name + value: value + - name: name + value: value + command: command + username: username + location: location + tlsServerName: tlsServerName + tieredStorage: + bucketName: bucketName + connectionOptions: + proxyUrl: proxyUrl + tlsServerName: tlsServerName + aws: + accessKeyID: accessKeyID + secretAccessKey: secretAccessKey + clusterName: clusterName + region: region + adminRoleARN: adminRoleARN + permissionBoundaryARN: permissionBoundaryARN + supportAccess: + chains: + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + roleChain: + - role: role + type: type + - role: role + type: type + azure: + resourceGroup: resourceGroup + clientID: clientID + clusterName: clusterName + tenantID: tenantID + location: location + subscriptionID: subscriptionID + poolName: poolName + pulsar: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + status: + deploymentType: deploymentType + serverVersion: serverVersion + installedCSVs: + - phase: phase + name: name + - phase: phase + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 1 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + functionMesh: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + gcloud: + initialNodeCount: 0 + adminServiceAccount: adminServiceAccount + clusterName: clusterName + maxNodeCount: 6 + project: project + location: location + machineType: machineType + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + monitoring: + project: project + vmTenant: vmTenant + vmagentSecretRef: + name: name + namespace: namespace + vminsertBackendServiceName: vminsertBackendServiceName + type: type + istio: + gateway: + selector: + matchLabels: + key: matchLabels + tls: + certSecretName: certSecretName + revision: revision + generic: + endpoint: endpoint + masterAuth: + clientCertificate: clientCertificate + password: password + clientKey: clientKey + clusterCaCertificate: clusterCaCertificate + exec: + args: + - args + - args + apiVersion: apiVersion + env: + - name: name + value: value + - name: name + value: value + command: command + username: username + location: location + tlsServerName: tlsServerName + tieredStorage: + bucketName: bucketName + connectionOptions: + proxyUrl: proxyUrl + tlsServerName: tlsServerName + aws: + accessKeyID: accessKeyID + secretAccessKey: secretAccessKey + clusterName: clusterName + region: region + adminRoleARN: adminRoleARN + permissionBoundaryARN: permissionBoundaryARN + supportAccess: + chains: + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + roleChain: + - role: role + type: type + - role: role + type: type + azure: + resourceGroup: resourceGroup + clientID: clientID + clusterName: clusterName + tenantID: tenantID + location: location + subscriptionID: subscriptionID + poolName: poolName + pulsar: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + status: + deploymentType: deploymentType + serverVersion: serverVersion + installedCSVs: + - phase: phase + name: name + - phase: phase + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 1 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PoolMemberList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberMonitoring: + example: + project: project + vmTenant: vmTenant + vmagentSecretRef: + name: name + namespace: namespace + vminsertBackendServiceName: vminsertBackendServiceName + properties: + project: + description: Project is the Google project containing UO components. + type: string + vmTenant: + description: VMTenant identifies the VM tenant to use (accountID or accountID:projectID). + type: string + vmagentSecretRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretReference' + vminsertBackendServiceName: + description: VMinsertBackendServiceName identifies the backend service for + vminsert. + type: string + required: + - project + - vmTenant + - vmagentSecretRef + - vminsertBackendServiceName + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec: + example: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + properties: + catalog: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecCatalog' + channel: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecChannel' + required: + - catalog + - channel + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecCatalog: + example: + image: image + pollInterval: pollInterval + properties: + image: + type: string + pollInterval: + description: "Duration is a wrapper around time.Duration which supports\ + \ correct marshaling to YAML and JSON. In particular, it marshals into\ + \ strings, which can be used as map keys in json." + type: string + required: + - image + - pollInterval + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecChannel: + example: + name: name + properties: + name: + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference: + description: PoolMemberReference is a reference to a pool member with a given + name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + - namespace + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberSpec: + description: PoolMemberSpec defines the desired state of PoolMember + example: + functionMesh: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + gcloud: + initialNodeCount: 0 + adminServiceAccount: adminServiceAccount + clusterName: clusterName + maxNodeCount: 6 + project: project + location: location + machineType: machineType + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + taints: + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + - timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + monitoring: + project: project + vmTenant: vmTenant + vmagentSecretRef: + name: name + namespace: namespace + vminsertBackendServiceName: vminsertBackendServiceName + type: type + istio: + gateway: + selector: + matchLabels: + key: matchLabels + tls: + certSecretName: certSecretName + revision: revision + generic: + endpoint: endpoint + masterAuth: + clientCertificate: clientCertificate + password: password + clientKey: clientKey + clusterCaCertificate: clusterCaCertificate + exec: + args: + - args + - args + apiVersion: apiVersion + env: + - name: name + value: value + - name: name + value: value + command: command + username: username + location: location + tlsServerName: tlsServerName + tieredStorage: + bucketName: bucketName + connectionOptions: + proxyUrl: proxyUrl + tlsServerName: tlsServerName + aws: + accessKeyID: accessKeyID + secretAccessKey: secretAccessKey + clusterName: clusterName + region: region + adminRoleARN: adminRoleARN + permissionBoundaryARN: permissionBoundaryARN + supportAccess: + chains: + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + roleChain: + - role: role + type: type + - role: role + type: type + azure: + resourceGroup: resourceGroup + clientID: clientID + clusterName: clusterName + tenantID: tenantID + location: location + subscriptionID: subscriptionID + poolName: poolName + pulsar: + catalog: + image: image + pollInterval: pollInterval + channel: + name: name + properties: + aws: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AwsPoolMemberSpec' + azure: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzurePoolMemberSpec' + connectionOptions: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberConnectionOptionsSpec' + domains: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain' + type: array + x-kubernetes-list-type: atomic + functionMesh: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec' + gcloud: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolMemberSpec' + generic: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GenericPoolMemberSpec' + istio: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioSpec' + monitoring: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberMonitoring' + poolName: + type: string + pulsar: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec' + supportAccess: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SupportAccessOptionsSpec' + taints: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Taint' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - key + x-kubernetes-patch-merge-key: key + tieredStorage: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberTieredStorageSpec' + type: + type: string + required: + - poolName + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberStatus: + description: PoolMemberStatus defines the observed state of PoolMember + example: + deploymentType: deploymentType + serverVersion: serverVersion + installedCSVs: + - phase: phase + name: name + - phase: phase + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 1 + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + deploymentType: + type: string + installedCSVs: + description: InstalledCSVs shows the name and status of installed operator + versions + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.InstalledCSV' + type: array + x-kubernetes-list-type: atomic + observedGeneration: + description: ObservedGeneration is the most recent generation observed by + the PoolMember controller. + format: int64 + type: integer + serverVersion: + type: string + required: + - deploymentType + - observedGeneration + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberTieredStorageSpec: + description: PoolMemberTieredStorageSpec is used to configure tiered storage + for a pool member. It only contains some common fields for all the pulsar + cluster in this pool member. + example: + bucketName: bucketName + properties: + bucketName: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption: + description: PoolOption + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + features: + key: true + deploymentType: deploymentType + poolRef: + name: name + namespace: namespace + cloudType: cloudType + locations: + - displayName: displayName + location: location + - displayName: displayName + location: location + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PoolOption + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + features: + key: true + deploymentType: deploymentType + poolRef: + name: name + namespace: namespace + cloudType: cloudType + locations: + - displayName: displayName + location: location + - displayName: displayName + location: location + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + features: + key: true + deploymentType: deploymentType + poolRef: + name: name + namespace: namespace + cloudType: cloudType + locations: + - displayName: displayName + location: location + - displayName: displayName + location: location + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PoolOptionList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionLocation: + example: + displayName: displayName + location: location + properties: + displayName: + type: string + location: + type: string + required: + - location + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionSpec: + description: PoolOptionSpec defines a reference to a Pool + example: + features: + key: true + deploymentType: deploymentType + poolRef: + name: name + namespace: namespace + cloudType: cloudType + locations: + - displayName: displayName + location: location + - displayName: displayName + location: location + properties: + cloudType: + type: string + deploymentType: + type: string + features: + additionalProperties: + type: boolean + type: object + locations: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionLocation' + type: array + x-kubernetes-list-type: atomic + poolRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef' + required: + - cloudType + - deploymentType + - locations + - poolRef + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionStatus: + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed PoolOption conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef: + description: PoolRef is a reference to a pool with a given name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + - namespace + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolSpec: + description: PoolSpec defines the desired state of Pool + example: + deploymentType: deploymentType + gcloud: "{}" + cloudFeature: + key: true + sharing: + namespaces: + - namespaces + - namespaces + type: type + properties: + cloudFeature: + additionalProperties: + type: boolean + description: CloudFeature indicates features this pool wants to enable/disable + by default for all Pulsar clusters created on it + type: object + deploymentType: + description: This feild is used by `cloud-manager` and `cloud-billing-reporter` + to potentially charge different rates for our customers. It is imperative + that we correctly set this field if a pool is a "Pro" tier or no tier. + type: string + gcloud: + properties: {} + type: object + sharing: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SharingConfig' + type: + type: string + required: + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolStatus: + description: PoolStatus defines the observed state of Pool + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed pool conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService: + example: + allowedIds: + - allowedIds + - allowedIds + properties: + allowedIds: + description: "AllowedIds is the list of Ids that are allowed to connect\ + \ to the private endpoint service, only can be configured when the access\ + \ type is private, private endpoint service will be disabled if the whitelist\ + \ is empty." + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId: + example: + id: id + properties: + id: + description: "Id is the identifier of private service It is endpoint service\ + \ name in AWS, psc attachment id in GCP, private service alias in Azure" + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ProtocolsConfig: + example: + amqp: "{}" + kafka: "{}" + mqtt: "{}" + properties: + amqp: + description: Amqp controls whether to enable Amqp protocol in brokers + properties: {} + type: object + kafka: + description: Kafka controls whether to enable Kafka protocol in brokers + properties: {} + type: object + mqtt: + description: Mqtt controls whether to enable mqtt protocol in brokers + properties: {} + type: object + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster: + description: PulsarCluster + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + zooKeeperSetRef: + name: name + namespace: namespace + instanceName: instanceName + displayName: displayName + bookkeeper: + image: image + replicas: 1 + resources: + directPercentage: 5 + memory: memory + ledgerDisk: ledgerDisk + journalDisk: journalDisk + cpu: cpu + heapPercentage: 5 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + storageSize: storageSize + nodeType: nodeType + broker: + image: image + replicas: 2 + resources: + directPercentage: 7 + memory: memory + cpu: cpu + heapPercentage: 9 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + nodeType: nodeType + poolMemberRef: + name: name + namespace: namespace + bookKeeperSetRef: + name: name + namespace: namespace + maintenanceWindow: + recurrence: recurrence + window: + duration: duration + startTime: startTime + releaseChannel: releaseChannel + endpointAccess: + - gateway: gateway + - gateway: gateway + tolerations: + - effect: effect + value: value + key: key + operator: operator + - effect: effect + value: value + key: key + operator: operator + location: location + config: + auditLog: + categories: + - categories + - categories + functionEnabled: true + websocketEnabled: true + custom: + key: custom + transactionEnabled: true + protocols: + amqp: "{}" + kafka: "{}" + mqtt: "{}" + lakehouseStorage: + catalogWarehouse: catalogWarehouse + catalogCredentials: catalogCredentials + catalogType: catalogType + catalogConnectionUrl: catalogConnectionUrl + lakehouseType: lakehouseType + serviceEndpoints: + - dnsName: dnsName + type: type + gateway: gateway + - dnsName: dnsName + type: type + gateway: gateway + status: + rbacStatus: + failedRoleBindings: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedRoles: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedClusterRoles: + - reason: reason + name: name + - reason: reason + name: name + deploymentType: deploymentType + zookeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + oxia: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + bookkeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + instanceType: instanceType + broker: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PulsarCluster + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus: + example: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + properties: + readyReplicas: + description: ReadyReplicas is the number of ready servers in the cluster + format: int32 + type: integer + replicas: + description: Replicas is the number of servers in the cluster + format: int32 + type: integer + updatedReplicas: + description: UpdatedReplicas is the number of servers that has been updated + to the latest configuration + format: int32 + type: integer + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + zooKeeperSetRef: + name: name + namespace: namespace + instanceName: instanceName + displayName: displayName + bookkeeper: + image: image + replicas: 1 + resources: + directPercentage: 5 + memory: memory + ledgerDisk: ledgerDisk + journalDisk: journalDisk + cpu: cpu + heapPercentage: 5 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + storageSize: storageSize + nodeType: nodeType + broker: + image: image + replicas: 2 + resources: + directPercentage: 7 + memory: memory + cpu: cpu + heapPercentage: 9 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + nodeType: nodeType + poolMemberRef: + name: name + namespace: namespace + bookKeeperSetRef: + name: name + namespace: namespace + maintenanceWindow: + recurrence: recurrence + window: + duration: duration + startTime: startTime + releaseChannel: releaseChannel + endpointAccess: + - gateway: gateway + - gateway: gateway + tolerations: + - effect: effect + value: value + key: key + operator: operator + - effect: effect + value: value + key: key + operator: operator + location: location + config: + auditLog: + categories: + - categories + - categories + functionEnabled: true + websocketEnabled: true + custom: + key: custom + transactionEnabled: true + protocols: + amqp: "{}" + kafka: "{}" + mqtt: "{}" + lakehouseStorage: + catalogWarehouse: catalogWarehouse + catalogCredentials: catalogCredentials + catalogType: catalogType + catalogConnectionUrl: catalogConnectionUrl + lakehouseType: lakehouseType + serviceEndpoints: + - dnsName: dnsName + type: type + gateway: gateway + - dnsName: dnsName + type: type + gateway: gateway + status: + rbacStatus: + failedRoleBindings: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedRoles: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedClusterRoles: + - reason: reason + name: name + - reason: reason + name: name + deploymentType: deploymentType + zookeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + oxia: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + bookkeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + instanceType: instanceType + broker: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + zooKeeperSetRef: + name: name + namespace: namespace + instanceName: instanceName + displayName: displayName + bookkeeper: + image: image + replicas: 1 + resources: + directPercentage: 5 + memory: memory + ledgerDisk: ledgerDisk + journalDisk: journalDisk + cpu: cpu + heapPercentage: 5 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + storageSize: storageSize + nodeType: nodeType + broker: + image: image + replicas: 2 + resources: + directPercentage: 7 + memory: memory + cpu: cpu + heapPercentage: 9 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + nodeType: nodeType + poolMemberRef: + name: name + namespace: namespace + bookKeeperSetRef: + name: name + namespace: namespace + maintenanceWindow: + recurrence: recurrence + window: + duration: duration + startTime: startTime + releaseChannel: releaseChannel + endpointAccess: + - gateway: gateway + - gateway: gateway + tolerations: + - effect: effect + value: value + key: key + operator: operator + - effect: effect + value: value + key: key + operator: operator + location: location + config: + auditLog: + categories: + - categories + - categories + functionEnabled: true + websocketEnabled: true + custom: + key: custom + transactionEnabled: true + protocols: + amqp: "{}" + kafka: "{}" + mqtt: "{}" + lakehouseStorage: + catalogWarehouse: catalogWarehouse + catalogCredentials: catalogCredentials + catalogType: catalogType + catalogConnectionUrl: catalogConnectionUrl + lakehouseType: lakehouseType + serviceEndpoints: + - dnsName: dnsName + type: type + gateway: gateway + - dnsName: dnsName + type: type + gateway: gateway + status: + rbacStatus: + failedRoleBindings: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedRoles: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedClusterRoles: + - reason: reason + name: name + - reason: reason + name: name + deploymentType: deploymentType + zookeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + oxia: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + bookkeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + instanceType: instanceType + broker: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PulsarClusterList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterSpec: + description: PulsarClusterSpec defines the desired state of PulsarCluster + example: + zooKeeperSetRef: + name: name + namespace: namespace + instanceName: instanceName + displayName: displayName + bookkeeper: + image: image + replicas: 1 + resources: + directPercentage: 5 + memory: memory + ledgerDisk: ledgerDisk + journalDisk: journalDisk + cpu: cpu + heapPercentage: 5 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + storageSize: storageSize + nodeType: nodeType + broker: + image: image + replicas: 2 + resources: + directPercentage: 7 + memory: memory + cpu: cpu + heapPercentage: 9 + autoScalingPolicy: + maxReplicas: 0 + minReplicas: 6 + resourceSpec: + nodeType: nodeType + poolMemberRef: + name: name + namespace: namespace + bookKeeperSetRef: + name: name + namespace: namespace + maintenanceWindow: + recurrence: recurrence + window: + duration: duration + startTime: startTime + releaseChannel: releaseChannel + endpointAccess: + - gateway: gateway + - gateway: gateway + tolerations: + - effect: effect + value: value + key: key + operator: operator + - effect: effect + value: value + key: key + operator: operator + location: location + config: + auditLog: + categories: + - categories + - categories + functionEnabled: true + websocketEnabled: true + custom: + key: custom + transactionEnabled: true + protocols: + amqp: "{}" + kafka: "{}" + mqtt: "{}" + lakehouseStorage: + catalogWarehouse: catalogWarehouse + catalogCredentials: catalogCredentials + catalogType: catalogType + catalogConnectionUrl: catalogConnectionUrl + lakehouseType: lakehouseType + serviceEndpoints: + - dnsName: dnsName + type: type + gateway: gateway + - dnsName: dnsName + type: type + gateway: gateway + properties: + bookKeeperSetRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperSetReference' + bookkeeper: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeper' + broker: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Broker' + config: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Config' + displayName: + description: Name to display to our users + type: string + endpointAccess: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EndpointAccess' + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - gateway + instanceName: + type: string + location: + type: string + maintenanceWindow: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MaintenanceWindow' + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference' + releaseChannel: + type: string + serviceEndpoints: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarServiceEndpoint' + type: array + x-kubernetes-list-type: atomic + tolerations: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration' + type: array + x-kubernetes-list-type: atomic + zooKeeperSetRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ZooKeeperSetReference' + required: + - broker + - instanceName + - location + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterStatus: + description: PulsarClusterStatus defines the observed state of PulsarCluster + example: + rbacStatus: + failedRoleBindings: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedRoles: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedClusterRoles: + - reason: reason + name: name + - reason: reason + name: name + deploymentType: deploymentType + zookeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + oxia: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + bookkeeper: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + instanceType: instanceType + broker: + replicas: 2 + readyReplicas: 3 + updatedReplicas: 4 + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + bookkeeper: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus' + broker: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus' + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + deploymentType: + description: Deployment type set via associated pool + type: string + instanceType: + description: "Instance type, i.e. serverless or default" + type: string + oxia: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus' + rbacStatus: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RBACStatus' + zookeeper: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway: + description: "PulsarGateway comprises resources for exposing pulsar endpoint,\ + \ including the Ingress Gateway in PoolMember and corresponding Private Endpoint\ + \ Service in Cloud Provider." + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + topologyAware: "{}" + poolMemberRef: + name: name + namespace: namespace + status: + privateServiceIds: + - id: id + - id: id + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewaySpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PulsarGateway + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + topologyAware: "{}" + poolMemberRef: + name: name + namespace: namespace + status: + privateServiceIds: + - id: id + - id: id + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 0 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + topologyAware: "{}" + poolMemberRef: + name: name + namespace: namespace + status: + privateServiceIds: + - id: id + - id: id + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 0 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PulsarGatewayList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewaySpec: + example: + access: access + privateService: + allowedIds: + - allowedIds + - allowedIds + domains: + - name: name + tls: + certificateName: certificateName + type: type + - name: name + tls: + certificateName: certificateName + type: type + topologyAware: "{}" + poolMemberRef: + name: name + namespace: namespace + properties: + access: + description: "Access is the access type of the pulsar gateway, available\ + \ values are public or private. It is immutable, with the default value\ + \ public." + type: string + domains: + description: Domains is the list of domain suffix that the pulsar gateway + will serve. This is automatically generated based on the PulsarGateway + name and PoolMember domain. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain' + type: array + x-kubernetes-list-type: atomic + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference' + privateService: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService' + topologyAware: + description: TopologyAware is the configuration of the topology aware feature + of the pulsar gateway. + properties: {} + type: object + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayStatus: + example: + privateServiceIds: + - id: id + - id: id + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 0 + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + observedGeneration: + description: ObservedGeneration is the most recent generation observed by + the pulsargateway controller. + format: int64 + type: integer + privateServiceIds: + description: "PrivateServiceIds are the id of the private endpoint services,\ + \ only exposed when the access type is private." + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId' + type: array + x-kubernetes-list-type: atomic + required: + - observedGeneration + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance: + description: PulsarInstance + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + auth: + apikey: "{}" + oauth2: + tokenLifetimeSeconds: 0 + poolRef: + name: name + namespace: namespace + availabilityMode: availabilityMode + type: type + plan: plan + status: + auth: + oauth2: + audience: audience + issuerURL: issuerURL + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PulsarInstance + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceAuth: + description: PulsarInstanceAuth defines auth section of PulsarInstance + example: + apikey: "{}" + oauth2: + tokenLifetimeSeconds: 0 + properties: + apikey: + description: ApiKey configuration + properties: {} + type: object + oauth2: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OAuth2Config' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + auth: + apikey: "{}" + oauth2: + tokenLifetimeSeconds: 0 + poolRef: + name: name + namespace: namespace + availabilityMode: availabilityMode + type: type + plan: plan + status: + auth: + oauth2: + audience: audience + issuerURL: issuerURL + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + auth: + apikey: "{}" + oauth2: + tokenLifetimeSeconds: 0 + poolRef: + name: name + namespace: namespace + availabilityMode: availabilityMode + type: type + plan: plan + status: + auth: + oauth2: + audience: audience + issuerURL: issuerURL + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: PulsarInstanceList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceSpec: + description: PulsarInstanceSpec defines the desired state of PulsarInstance + example: + auth: + apikey: "{}" + oauth2: + tokenLifetimeSeconds: 0 + poolRef: + name: name + namespace: namespace + availabilityMode: availabilityMode + type: type + plan: plan + properties: + auth: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceAuth' + availabilityMode: + description: AvailabilityMode decides whether pods of the same type in pulsar + should be in one zone or multiple zones + type: string + plan: + description: "Plan is the subscription plan, will create a stripe subscription\ + \ if not empty deprecated: 1.16" + type: string + poolRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef' + type: + description: "Type defines the instance specialization type: - standard:\ + \ a standard deployment of Pulsar, BookKeeper, and ZooKeeper. - dedicated:\ + \ a dedicated deployment of classic engine or ursa engine. - serverless:\ + \ a serverless deployment of Pulsar, shared BookKeeper, and shared oxia.\ + \ - byoc: bring your own cloud." + type: string + required: + - availabilityMode + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatus: + description: PulsarInstanceStatus defines the observed state of PulsarInstance + example: + auth: + oauth2: + audience: audience + issuerURL: issuerURL + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + auth: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuth' + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + required: + - auth + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuth: + example: + oauth2: + audience: audience + issuerURL: issuerURL + type: type + properties: + oauth2: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuthOAuth2' + type: + type: string + required: + - oauth2 + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuthOAuth2: + example: + audience: audience + issuerURL: issuerURL + properties: + audience: + type: string + issuerURL: + type: string + required: + - audience + - issuerURL + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarServiceEndpoint: + example: + dnsName: dnsName + type: type + gateway: gateway + properties: + dnsName: + type: string + gateway: + description: "Gateway is the name of the PulsarGateway to use for the endpoint,\ + \ will be empty if endpointAccess is not configured." + type: string + type: + type: string + required: + - dnsName + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RBACStatus: + example: + failedRoleBindings: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedRoles: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + failedClusterRoles: + - reason: reason + name: name + - reason: reason + name: name + properties: + failedClusterRoles: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedClusterRole' + type: array + x-kubernetes-list-type: atomic + failedRoleBindings: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRoleBinding' + type: array + x-kubernetes-list-type: atomic + failedRoles: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRole' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RegionInfo: + example: + region: region + zones: + - zones + - zones + properties: + region: + type: string + zones: + items: + type: string + type: array + required: + - region + - zones + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role: + description: Role + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + permissions: + - permissions + - permissions + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: Role + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding: + description: RoleBinding + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + conditionGroup: + conditionGroups: + - null + - null + conditions: + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + relation: 1 + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + cel: cel + roleRef: + apiGroup: apiGroup + kind: kind + name: name + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: RoleBinding + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingCondition: + description: RoleBindingCondition Deprecated + example: + type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + properties: + operator: + format: int32 + type: integer + srn: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Srn' + type: + format: int32 + type: integer + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + conditionGroup: + conditionGroups: + - null + - null + conditions: + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + relation: 1 + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + cel: cel + roleRef: + apiGroup: apiGroup + kind: kind + name: name + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + conditionGroup: + conditionGroups: + - null + - null + conditions: + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + relation: 1 + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + cel: cel + roleRef: + apiGroup: apiGroup + kind: kind + name: name + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: RoleBindingList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingSpec: + description: RoleBindingSpec defines the desired state of RoleBinding + example: + conditionGroup: + conditionGroups: + - null + - null + conditions: + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + - type: 6 + operator: 0 + srn: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + relation: 1 + subjects: + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + - apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + cel: cel + roleRef: + apiGroup: apiGroup + kind: kind + name: name + properties: + cel: + type: string + conditionGroup: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup' + roleRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef' + subjects: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject' + type: array + x-kubernetes-list-type: atomic + required: + - roleRef + - subjects + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingStatus: + description: RoleBindingStatus defines the observed state of RoleBinding + example: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + failedClusters: + description: FailedClusters is an array of clusters which failed to apply + the ClusterRole resources. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition: + example: + role: role + type: type + properties: + role: + type: string + type: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + permissions: + - permissions + - permissions + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + permissions: + - permissions + - permissions + status: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: RoleList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef: + example: + apiGroup: apiGroup + kind: kind + name: name + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + required: + - apiGroup + - kind + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleSpec: + description: RoleSpec defines the desired state of Role + example: + permissions: + - permissions + - permissions + properties: + permissions: + description: |- + Permissions Designed for general permission format + SERVICE.RESOURCE.VERB + items: + type: string + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleStatus: + description: RoleStatus defines the observed state of Role + example: + failedClusters: + - reason: reason + name: name + namespace: namespace + - reason: reason + name: name + namespace: namespace + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + failedClusters: + description: FailedClusters is an array of clusters which failed to apply + the ClusterRole resources. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret: + description: Secret + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + tolerations: + - effect: effect + value: value + key: key + operator: operator + - effect: effect + value: value + key: key + operator: operator + data: + key: data + instanceName: instanceName + kind: kind + location: location + poolMemberRef: + name: name + namespace: namespace + spec: "{}" + status: "{}" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + data: + additionalProperties: + type: string + description: the value should be base64 encoded + type: object + instanceName: + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + location: + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference' + spec: + properties: {} + type: object + status: + properties: {} + type: object + tolerations: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration' + type: array + x-kubernetes-list-type: atomic + required: + - instanceName + - location + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: Secret + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + tolerations: + - effect: effect + value: value + key: key + operator: operator + - effect: effect + value: value + key: key + operator: operator + data: + key: data + instanceName: instanceName + kind: kind + location: location + poolMemberRef: + name: name + namespace: namespace + spec: "{}" + status: "{}" + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + tolerations: + - effect: effect + value: value + key: key + operator: operator + - effect: effect + value: value + key: key + operator: operator + data: + key: data + instanceName: instanceName + kind: kind + location: location + poolMemberRef: + name: name + namespace: namespace + spec: "{}" + status: "{}" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: SecretList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretReference: + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration: + description: SelfRegistration + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + metadata: + key: metadata + displayName: displayName + stripe: "{}" + suger: + entitlementID: entitlementID + aws: + registrationToken: registrationToken + type: type + status: "{}" + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSpec' + status: + description: SelfRegistrationStatus defines the observed state of SelfRegistration + properties: {} + type: object + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: SelfRegistration + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationAws: + example: + registrationToken: registrationToken + properties: + registrationToken: + type: string + required: + - registrationToken + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSpec: + description: SelfRegistrationSpec defines the desired state of SelfRegistration + example: + metadata: + key: metadata + displayName: displayName + stripe: "{}" + suger: + entitlementID: entitlementID + aws: + registrationToken: registrationToken + type: type + properties: + aws: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationAws' + displayName: + type: string + metadata: + additionalProperties: + type: string + type: object + stripe: + properties: {} + type: object + suger: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSuger' + type: + type: string + required: + - displayName + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSuger: + example: + entitlementID: entitlementID + properties: + entitlementID: + type: string + required: + - entitlementID + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount: + description: ServiceAccount + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: "{}" + status: + privateKeyType: privateKeyType + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + privateKeyData: privateKeyData + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + description: ServiceAccountSpec defines the desired state of ServiceAccount + properties: {} + type: object + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ServiceAccount + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding: + description: ServiceAccountBinding + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + serviceAccountName: serviceAccountName + poolMemberRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ServiceAccountBinding + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + serviceAccountName: serviceAccountName + poolMemberRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + serviceAccountName: serviceAccountName + poolMemberRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ServiceAccountBindingList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingSpec: + description: ServiceAccountBindingSpec defines the desired state of ServiceAccountBinding + example: + serviceAccountName: serviceAccountName + poolMemberRef: + name: name + namespace: namespace + properties: + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference' + serviceAccountName: + description: refers to the ServiceAccount under the same namespace as this + binding object + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingStatus: + description: ServiceAccountBindingStatus defines the observed state of ServiceAccountBinding + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed service account + binding conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: "{}" + status: + privateKeyType: privateKeyType + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + privateKeyData: privateKeyData + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: "{}" + status: + privateKeyType: privateKeyType + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + privateKeyData: privateKeyData + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ServiceAccountList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountStatus: + description: ServiceAccountStatus defines the observed state of ServiceAccount + example: + privateKeyType: privateKeyType + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + privateKeyData: privateKeyData + properties: + conditions: + description: Conditions is an array of current observed service account + conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + privateKeyData: + description: PrivateKeyData provides the private key data (in base-64 format) + for authentication purposes + type: string + privateKeyType: + description: PrivateKeyType indicates the type of private key information + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SharingConfig: + example: + namespaces: + - namespaces + - namespaces + properties: + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - namespaces + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Srn: + description: Srn Deprecated + example: + schema: schema + cluster: cluster + instance: instance + topicDomain: topicDomain + organization: organization + namespace: namespace + topicName: topicName + subscription: subscription + version: version + tenant: tenant + properties: + cluster: + type: string + instance: + type: string + namespace: + type: string + organization: + type: string + schema: + type: string + subscription: + type: string + tenant: + type: string + topicDomain: + type: string + topicName: + type: string + version: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription: + description: StripeSubscription + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + product: product + customerId: customerId + quantities: + key: 0 + status: + subscriptionItems: + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 6 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: StripeSubscription + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + product: product + customerId: customerId + quantities: + key: 0 + status: + subscriptionItems: + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 6 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + product: product + customerId: customerId + quantities: + key: 0 + status: + subscriptionItems: + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 6 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: StripeSubscriptionList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionSpec: + description: StripeSubscriptionSpec defines the desired state of StripeSubscription + example: + product: product + customerId: customerId + quantities: + key: 0 + properties: + customerId: + description: CustomerId is the id of the customer + type: string + product: + description: Product is the name or id of the product + type: string + quantities: + additionalProperties: + format: int64 + type: integer + description: Quantities defines the quantity of certain prices in the subscription + type: object + required: + - customerId + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionStatus: + description: StripeSubscriptionStatus defines the observed state of StripeSubscription + example: + subscriptionItems: + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + - nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + observedGeneration: 6 + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + observedGeneration: + description: The generation observed by the controller. + format: int64 + type: integer + subscriptionItems: + description: SubscriptionItems is a list of subscription items (used to + report metrics) + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SubscriptionItem' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject: + example: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + properties: + apiGroup: + type: string + kind: + type: string + name: + type: string + namespace: + type: string + required: + - apiGroup + - kind + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SubscriptionItem: + example: + nickName: nickName + priceId: priceId + subscriptionId: subscriptionId + type: type + properties: + nickName: + type: string + priceId: + type: string + subscriptionId: + type: string + type: + type: string + required: + - nickName + - priceId + - subscriptionId + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SupportAccessOptionsSpec: + example: + chains: + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + - name: name + roleChain: + - role: role + type: type + - role: role + type: type + roleChain: + - role: role + type: type + - role: role + type: type + properties: + chains: + description: A role chain that is provided by name through the CLI to designate + which access chain to take when accessing a poolmember. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Chain' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + roleChain: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition' + type: array + x-kubernetes-list-type: atomic + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Taint: + description: Taint - The workload cluster this Taint is attached to has the + "effect" on any workload that does not tolerate the Taint. + example: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + properties: + effect: + description: "Required. The effect of the taint on workloads that do not\ + \ tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and\ + \ NoExecute." + type: string + key: + description: Required. The taint key to be applied to a workload cluster. + type: string + timeAdded: + description: TimeAdded represents the time at which the taint was added. + format: date-time + type: string + value: + description: Optional. The taint value corresponding to the taint key. + type: string + required: + - effect + - key + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration: + description: "The workload this Toleration is attached to tolerates any taint\ + \ that matches the triple using the matching operator ." + example: + effect: effect + value: value + key: key + operator: operator + properties: + effect: + description: "Effect indicates the taint effect to match. Empty means match\ + \ all taint effects. When specified, allowed values are NoSchedule and\ + \ PreferNoSchedule." + type: string + key: + description: "Key is the taint key that the toleration applies to. Empty\ + \ means match all taint keys. If the key is empty, operator must be Exists;\ + \ this combination means to match all values and all keys." + type: string + operator: + description: "Operator represents a key's relationship to the value. Valid\ + \ operators are Exists and Equal. Defaults to Equal. Exists is equivalent\ + \ to wildcard for value, so that a workload can tolerate all taints of\ + \ a particular category." + type: string + value: + description: "Value is the taint value the toleration matches to. If the\ + \ operator is Exists, the value should be empty, otherwise just a regular\ + \ string." + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User: + description: User + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + invitation: + decision: decision + expiration: 2000-01-23T04:56:07.000+00:00 + name: + last: last + first: first + type: type + email: email + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: User + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + invitation: + decision: decision + expiration: 2000-01-23T04:56:07.000+00:00 + name: + last: last + first: first + type: type + email: email + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + invitation: + decision: decision + expiration: 2000-01-23T04:56:07.000+00:00 + name: + last: last + first: first + type: type + email: email + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: UserList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserName: + example: + last: last + first: first + properties: + first: + type: string + last: + type: string + required: + - first + - last + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserSpec: + description: UserSpec defines the desired state of User + example: + invitation: + decision: decision + expiration: 2000-01-23T04:56:07.000+00:00 + name: + last: last + first: first + type: type + email: email + properties: + email: + type: string + invitation: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Invitation' + name: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserName' + type: + type: string + required: + - email + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserStatus: + description: UserStatus defines the observed state of User + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Window: + example: + duration: duration + startTime: startTime + properties: + duration: + description: StartTime define the maintenance execution duration + type: string + startTime: + description: StartTime define the maintenance execution start time + type: string + required: + - duration + - startTime + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ZooKeeperSetReference: + description: ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet + with a given name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription: + description: AWSSubscription + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + productCode: productCode + customerID: customerID + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: AWSSubscription + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + productCode: productCode + customerID: customerID + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + productCode: productCode + customerID: customerID + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: AWSSubscriptionList + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionSpec: + description: AWSSubscriptionSpec defines the desired state of AWSSubscription + example: + productCode: productCode + customerID: customerID + properties: + customerID: + type: string + productCode: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionStatus: + description: AWSSubscriptionStatus defines the observed state of AWSSubscription + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperResourceSpec: + example: + storageSize: storageSize + nodeType: nodeType + properties: + nodeType: + description: NodeType defines the request node specification type + type: string + storageSize: + description: StorageSize defines the size of the ledger storage + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet: + description: BookKeeperSet + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + image: image + zooKeeperSetRef: + name: name + namespace: namespace + replicas: 0 + resources: + ledgerDisk: ledgerDisk + journalDisk: journalDisk + DefaultNodeResource: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + status: + metadataServiceUri: metadataServiceUri + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: BookKeeperSet + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + image: image + zooKeeperSetRef: + name: name + namespace: namespace + replicas: 0 + resources: + ledgerDisk: ledgerDisk + journalDisk: journalDisk + DefaultNodeResource: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + status: + metadataServiceUri: metadataServiceUri + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + image: image + zooKeeperSetRef: + name: name + namespace: namespace + replicas: 0 + resources: + ledgerDisk: ledgerDisk + journalDisk: journalDisk + DefaultNodeResource: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + status: + metadataServiceUri: metadataServiceUri + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: BookKeeperSetList + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption: + description: BookKeeperSetOption + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + bookKeeperSetRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: BookKeeperSetOption + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + bookKeeperSetRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + bookKeeperSetRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: BookKeeperSetOptionList + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionSpec: + description: BookKeeperSetOptionSpec defines a reference to a Pool + example: + bookKeeperSetRef: + name: name + namespace: namespace + properties: + bookKeeperSetRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetReference' + required: + - bookKeeperSetRef + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionStatus: + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed BookKeeperSetOptionStatus + conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetReference: + description: BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet + with a given name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetSpec: + description: BookKeeperSetSpec defines the desired state of BookKeeperSet + example: + image: image + zooKeeperSetRef: + name: name + namespace: namespace + replicas: 0 + resources: + ledgerDisk: ledgerDisk + journalDisk: journalDisk + DefaultNodeResource: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + properties: + availabilityMode: + description: "AvailabilityMode decides whether servers should be in one\ + \ zone or multiple zones If unspecified, defaults to zonal." + type: string + image: + description: Image name is the name of the image to deploy. + type: string + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference' + replicas: + description: "Replicas is the desired number of BookKeeper servers. If unspecified,\ + \ defaults to 3." + format: int32 + type: integer + resourceSpec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperResourceSpec' + resources: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookkeeperNodeResource' + sharing: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig' + zooKeeperSetRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference' + required: + - zooKeeperSetRef + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetStatus: + description: BookKeeperSetStatus defines the observed state of BookKeeperSet + example: + metadataServiceUri: metadataServiceUri + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + metadataServiceUri: + description: MetadataServiceUri exposes the URI used for loading corresponding + metadata driver and resolving its metadata service location + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookkeeperNodeResource: + description: Represents resource spec for bookie nodes + example: + ledgerDisk: ledgerDisk + journalDisk: journalDisk + DefaultNodeResource: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + properties: + DefaultNodeResource: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource' + journalDisk: + description: JournalDisk size. Set to zero equivalent to use default value + type: string + ledgerDisk: + description: LedgerDisk size. Set to zero equivalent to use default value + type: string + required: + - DefaultNodeResource + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition: + description: |- + Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. + + Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + lastTransitionTime: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + message: + type: string + observedGeneration: + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon. For instance, if .metadata.generation\ + \ is currently 12, but the .status.conditions[x].observedGeneration is\ + \ 9, the condition is out of date with respect to the current state of\ + \ the instance." + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource: + description: Represents resource spec for nodes + example: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + properties: + cpu: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + directPercentage: + description: Percentage of direct memory from overall memory. Set to 0 to + use default value. + format: int32 + type: integer + heapPercentage: + description: Percentage of heap memory from overall memory. Set to 0 to + use default value. + format: int32 + type: integer + memory: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + required: + - cpu + - memory + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet: + description: MonitorSet + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + replicas: 0 + availabilityMode: availabilityMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + poolMemberRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: MonitorSet + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + replicas: 0 + availabilityMode: availabilityMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + poolMemberRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + replicas: 0 + availabilityMode: availabilityMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + poolMemberRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: MonitorSetList + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetSpec: + description: MonitorSetSpec defines the desired state of MonitorSet + example: + replicas: 0 + availabilityMode: availabilityMode + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + poolMemberRef: + name: name + namespace: namespace + properties: + availabilityMode: + description: "AvailabilityMode decides whether servers should be in one\ + \ zone or multiple zones If unspecified, defaults to zonal." + type: string + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference' + replicas: + description: "Replicas is the desired number of monitoring servers. If unspecified,\ + \ defaults to 1." + format: int32 + type: integer + selector: + $ref: '#/components/schemas/v1.LabelSelector' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetStatus: + description: MonitorSetStatus defines the observed state of MonitorSet + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference: + description: PoolMemberReference is a reference to a pool member with a given + name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + - namespace + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig: + example: + namespaces: + - namespaces + - namespaces + properties: + namespaces: + items: + type: string + type: array + x-kubernetes-list-type: atomic + required: + - namespaces + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperResourceSpec: + example: + storageSize: storageSize + nodeType: nodeType + properties: + nodeType: + description: NodeType defines the request node specification type + type: string + storageSize: + description: StorageSize defines the size of the storage + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet: + description: ZooKeeperSet + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + image: image + imagePullPolicy: imagePullPolicy + replicas: 0 + resources: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + status: + clusterConnectionString: clusterConnectionString + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ZooKeeperSet + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + image: image + imagePullPolicy: imagePullPolicy + replicas: 0 + resources: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + status: + clusterConnectionString: clusterConnectionString + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + image: image + imagePullPolicy: imagePullPolicy + replicas: 0 + resources: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + status: + clusterConnectionString: clusterConnectionString + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ZooKeeperSetList + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption: + description: ZooKeeperSetOption + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + zooKeeperSetRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionStatus' + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ZooKeeperSetOption + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + zooKeeperSetRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + zooKeeperSetRef: + name: name + namespace: namespace + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: cloud.streamnative.io + kind: ZooKeeperSetOptionList + version: v1alpha2 + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionSpec: + description: ZooKeeperSetOptionSpec defines a reference to a Pool + example: + zooKeeperSetRef: + name: name + namespace: namespace + properties: + zooKeeperSetRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference' + required: + - zooKeeperSetRef + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionStatus: + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + conditions: + description: Conditions is an array of current observed ZooKeeperSetOptionStatus + conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference: + description: ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet + with a given name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetSpec: + description: ZooKeeperSetSpec defines the desired state of ZooKeeperSet + example: + image: image + imagePullPolicy: imagePullPolicy + replicas: 0 + resources: + directPercentage: 6 + memory: memory + cpu: cpu + heapPercentage: 1 + availabilityMode: availabilityMode + poolMemberRef: + name: name + namespace: namespace + sharing: + namespaces: + - namespaces + - namespaces + resourceSpec: + storageSize: storageSize + nodeType: nodeType + properties: + availabilityMode: + description: "AvailabilityMode decides whether servers should be in one\ + \ zone or multiple zones If unspecified, defaults to zonal." + type: string + image: + description: Image name is the name of the image to deploy. + type: string + imagePullPolicy: + description: "Image pull policy, one of Always, Never, IfNotPresent, default\ + \ to Always." + type: string + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference' + replicas: + description: "Replicas is the desired number of ZooKeeper servers. If unspecified,\ + \ defaults to 1." + format: int32 + type: integer + resourceSpec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperResourceSpec' + resources: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource' + sharing: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetStatus: + description: ZooKeeperSetStatus defines the observed state of ZooKeeperSet + example: + clusterConnectionString: clusterConnectionString + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + clusterConnectionString: + description: ClusterConnectionString is a connection string for client connectivity + within the cluster. + type: string + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Artifact: + description: Artifact is the artifact configs to deploy. + example: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + properties: + additionalDependencies: + items: + type: string + type: array + additionalPythonArchives: + items: + type: string + type: array + additionalPythonLibraries: + items: + type: string + type: array + artifactKind: + type: string + entryClass: + type: string + entryModule: + type: string + flinkImageRegistry: + type: string + flinkImageRepository: + type: string + flinkImageTag: + type: string + flinkVersion: + type: string + jarUri: + type: string + kind: + type: string + mainArgs: + type: string + pythonArtifactUri: + type: string + sqlScript: + type: string + uri: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition: + description: |- + Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. + + Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + properties: + lastTransitionTime: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + message: + type: string + observedGeneration: + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon. For instance, if .metadata.generation\ + \ is currently 12, but the .status.conditions[x].observedGeneration is\ + \ 9, the condition is out of date with respect to the current state of\ + \ the instance." + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container: + description: A single application container that you want to run within a pod. + The Container API from the core group is not used directly to avoid unneeded + fields and reduce the size of the CRD. New fields could be added as needed. + example: + image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + properties: + args: + description: Arguments to the entrypoint. + items: + type: string + type: array + command: + description: Entrypoint array. Not executed within a shell. + items: + type: string + type: array + env: + description: List of environment variables to set in the container. + items: + $ref: '#/components/schemas/v1.EnvVar' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: name + envFrom: + description: List of sources to populate environment variables in the container. + items: + $ref: '#/components/schemas/v1.EnvFromSource' + type: array + image: + description: Docker image name. + type: string + imagePullPolicy: + description: |- + Image pull policy. + + Possible enum values: + - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + enum: + - Always + - IfNotPresent + - Never + type: string + livenessProbe: + $ref: '#/components/schemas/v1.Probe' + name: + description: Name of the container specified as a DNS_LABEL. Each container + in a pod must have a unique name (DNS_LABEL). + type: string + readinessProbe: + $ref: '#/components/schemas/v1.Probe' + resources: + $ref: '#/components/schemas/v1.ResourceRequirements' + securityContext: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext' + startupProbe: + $ref: '#/components/schemas/v1.Probe' + volumeMounts: + description: Pod volumes to mount into the container's filesystem. + items: + $ref: '#/components/schemas/v1.VolumeMount' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: mountPath + workingDir: + description: Container's working directory. + type: string + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkBlobStorage: + description: FlinkBlobStorage defines the configuration for the Flink blob storage. + example: + bucket: bucket + path: path + properties: + bucket: + description: Bucket is required if you want to use cloud storage. + type: string + path: + description: Path is the sub path in the bucket. Leave it empty if you want + to use the whole bucket. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment: + description: FlinkDeployment + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + template: + syncingMode: syncingMode + deployment: + userMetadata: + displayName: displayName + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + template: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + sessionClusterName: sessionClusterName + deploymentTargetName: deploymentTargetName + restoreStrategy: + kind: kind + allowNonRestoredState: true + maxSavepointCreationAttempts: 6 + state: state + maxJobCreationAttempts: 0 + jobFailureExpirationTime: jobFailureExpirationTime + communityTemplate: "{}" + defaultPulsarCluster: defaultPulsarCluster + annotations: + key: annotations + workspaceName: workspaceName + poolMemberRef: + name: name + namespace: namespace + labels: + key: labels + status: + deploymentStatus: + deploymentStatus: + running: + transitionTime: 2000-01-23T04:56:07.000+00:00 + jobId: jobId + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + state: state + customResourceStatus: + customResourceState: customResourceState + deploymentNamespace: deploymentNamespace + deploymentId: deploymentId + statusState: statusState + observedSpecState: observedSpecState + deploymentSystemMetadata: + createdAt: 2000-01-23T04:56:07.000+00:00 + modifiedAt: 2000-01-23T04:56:07.000+00:00 + resourceVersion: 8 + name: name + annotations: + key: annotations + labels: + key: labels + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + observedGeneration: 9 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentStatus' + type: object + x-kubernetes-group-version-kind: + - group: compute.streamnative.io + kind: FlinkDeployment + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + template: + syncingMode: syncingMode + deployment: + userMetadata: + displayName: displayName + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + template: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + sessionClusterName: sessionClusterName + deploymentTargetName: deploymentTargetName + restoreStrategy: + kind: kind + allowNonRestoredState: true + maxSavepointCreationAttempts: 6 + state: state + maxJobCreationAttempts: 0 + jobFailureExpirationTime: jobFailureExpirationTime + communityTemplate: "{}" + defaultPulsarCluster: defaultPulsarCluster + annotations: + key: annotations + workspaceName: workspaceName + poolMemberRef: + name: name + namespace: namespace + labels: + key: labels + status: + deploymentStatus: + deploymentStatus: + running: + transitionTime: 2000-01-23T04:56:07.000+00:00 + jobId: jobId + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + state: state + customResourceStatus: + customResourceState: customResourceState + deploymentNamespace: deploymentNamespace + deploymentId: deploymentId + statusState: statusState + observedSpecState: observedSpecState + deploymentSystemMetadata: + createdAt: 2000-01-23T04:56:07.000+00:00 + modifiedAt: 2000-01-23T04:56:07.000+00:00 + resourceVersion: 8 + name: name + annotations: + key: annotations + labels: + key: labels + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + observedGeneration: 9 + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + template: + syncingMode: syncingMode + deployment: + userMetadata: + displayName: displayName + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + template: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + sessionClusterName: sessionClusterName + deploymentTargetName: deploymentTargetName + restoreStrategy: + kind: kind + allowNonRestoredState: true + maxSavepointCreationAttempts: 6 + state: state + maxJobCreationAttempts: 0 + jobFailureExpirationTime: jobFailureExpirationTime + communityTemplate: "{}" + defaultPulsarCluster: defaultPulsarCluster + annotations: + key: annotations + workspaceName: workspaceName + poolMemberRef: + name: name + namespace: namespace + labels: + key: labels + status: + deploymentStatus: + deploymentStatus: + running: + transitionTime: 2000-01-23T04:56:07.000+00:00 + jobId: jobId + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + state: state + customResourceStatus: + customResourceState: customResourceState + deploymentNamespace: deploymentNamespace + deploymentId: deploymentId + statusState: statusState + observedSpecState: observedSpecState + deploymentSystemMetadata: + createdAt: 2000-01-23T04:56:07.000+00:00 + modifiedAt: 2000-01-23T04:56:07.000+00:00 + resourceVersion: 8 + name: name + annotations: + key: annotations + labels: + key: labels + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + observedGeneration: 9 + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: compute.streamnative.io + kind: FlinkDeploymentList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentSpec: + description: FlinkDeploymentSpec defines the desired state of FlinkDeployment + example: + template: + syncingMode: syncingMode + deployment: + userMetadata: + displayName: displayName + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + template: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + sessionClusterName: sessionClusterName + deploymentTargetName: deploymentTargetName + restoreStrategy: + kind: kind + allowNonRestoredState: true + maxSavepointCreationAttempts: 6 + state: state + maxJobCreationAttempts: 0 + jobFailureExpirationTime: jobFailureExpirationTime + communityTemplate: "{}" + defaultPulsarCluster: defaultPulsarCluster + annotations: + key: annotations + workspaceName: workspaceName + poolMemberRef: + name: name + namespace: namespace + labels: + key: labels + properties: + annotations: + additionalProperties: + type: string + type: object + communityTemplate: + description: CommunityDeploymentTemplate defines the desired state of CommunityDeployment + properties: {} + type: object + defaultPulsarCluster: + description: "DefaultPulsarCluster is the default pulsar cluster to use.\ + \ If not provided, the controller will use the first pulsar cluster from\ + \ the workspace." + type: string + labels: + additionalProperties: + type: string + type: object + poolMemberRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolMemberReference' + template: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplate' + workspaceName: + description: "WorkspaceName is the reference to the workspace, and is required" + type: string + required: + - workspaceName + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentStatus: + description: FlinkDeploymentStatus defines the observed state of FlinkDeployment + example: + deploymentStatus: + deploymentStatus: + running: + transitionTime: 2000-01-23T04:56:07.000+00:00 + jobId: jobId + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + state: state + customResourceStatus: + customResourceState: customResourceState + deploymentNamespace: deploymentNamespace + deploymentId: deploymentId + statusState: statusState + observedSpecState: observedSpecState + deploymentSystemMetadata: + createdAt: 2000-01-23T04:56:07.000+00:00 + modifiedAt: 2000-01-23T04:56:07.000+00:00 + resourceVersion: 8 + name: name + annotations: + key: annotations + labels: + key: labels + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + observedGeneration: 9 + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + deploymentStatus: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatus' + observedGeneration: + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon. For instance, if .metadata.generation\ + \ is currently 12, but the .status.conditions[x].observedGeneration is\ + \ 9, the condition is out of date with respect to the current state of\ + \ the instance." + format: int64 + type: integer + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Logging: + description: Logging defines the logging configuration for the Flink deployment. + example: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + properties: + log4j2ConfigurationTemplate: + type: string + log4jLoggers: + additionalProperties: + type: string + type: object + loggingProfile: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ObjectMeta: + example: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + properties: + annotations: + additionalProperties: + type: string + description: Annotations of the resource. + type: object + labels: + additionalProperties: + type: string + description: Labels of the resource. + type: object + name: + description: Name of the resource within a namespace. It must be unique. + type: string + namespace: + description: Namespace of the resource. + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate: + description: "PodTemplate defines the common pod configuration for Pods, including\ + \ when used in StatefulSets." + example: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + properties: + metadata: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplateSpec' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplateSpec: + example: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + properties: + affinity: + $ref: '#/components/schemas/v1.Affinity' + containers: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container' + type: array + imagePullSecrets: + items: + $ref: '#/components/schemas/v1.LocalObjectReference' + type: array + initContainers: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container' + type: array + nodeSelector: + additionalProperties: + type: string + type: object + securityContext: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext' + serviceAccountName: + type: string + shareProcessNamespace: + type: boolean + tolerations: + items: + $ref: '#/components/schemas/v1.Toleration' + type: array + volumes: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Volume' + type: array + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolMemberReference: + description: PoolMemberReference is a reference to a pool member with a given + name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + - namespace + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolRef: + description: PoolRef is a reference to a pool with a given name. + example: + name: name + namespace: namespace + properties: + name: + type: string + namespace: + type: string + required: + - name + - namespace + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec: + description: ResourceSpec defines the resource requirements for a component. + example: + memory: memory + cpu: cpu + properties: + cpu: + description: CPU represents the minimum amount of CPU required. + type: string + memory: + description: Memory represents the minimum amount of memory required. + type: string + required: + - cpu + - memory + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext: + example: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + properties: + fsGroup: + format: int64 + type: integer + readOnlyRootFilesystem: + description: ReadOnlyRootFilesystem specifies whether the container use + a read-only filesystem. + type: boolean + runAsGroup: + format: int64 + type: integer + runAsNonRoot: + type: boolean + runAsUser: + format: int64 + type: integer + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.UserMetadata: + description: UserMetadata Specify the metadata for the resource we are deploying. + example: + displayName: displayName + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + properties: + annotations: + additionalProperties: + type: string + type: object + displayName: + type: string + labels: + additionalProperties: + type: string + type: object + name: + type: string + namespace: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Volume: + description: Volume represents a named volume in a pod that may be accessed + by any container in the pod. The Volume API from the core group is not used + directly to avoid unneeded fields defined in `VolumeSource` and reduce the + size of the CRD. New fields in VolumeSource could be added as needed. + example: + configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + properties: + configMap: + $ref: '#/components/schemas/v1.ConfigMapVolumeSource' + name: + description: "Volume's name. Must be a DNS_LABEL and unique within the pod.\ + \ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + secret: + $ref: '#/components/schemas/v1.SecretVolumeSource' + required: + - name + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpCustomResourceStatus: + description: VvpCustomResourceStatus defines the observed state of VvpCustomResource + example: + customResourceState: customResourceState + deploymentNamespace: deploymentNamespace + deploymentId: deploymentId + statusState: statusState + observedSpecState: observedSpecState + properties: + customResourceState: + type: string + deploymentId: + type: string + deploymentNamespace: + type: string + observedSpecState: + type: string + statusState: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetails: + description: VvpDeploymentDetails + example: + template: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + sessionClusterName: sessionClusterName + deploymentTargetName: deploymentTargetName + restoreStrategy: + kind: kind + allowNonRestoredState: true + maxSavepointCreationAttempts: 6 + state: state + maxJobCreationAttempts: 0 + jobFailureExpirationTime: jobFailureExpirationTime + properties: + deploymentTargetName: + type: string + jobFailureExpirationTime: + type: string + maxJobCreationAttempts: + format: int32 + type: integer + maxSavepointCreationAttempts: + format: int32 + type: integer + restoreStrategy: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpRestoreStrategy' + sessionClusterName: + type: string + state: + type: string + template: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplate' + required: + - template + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplate: + description: VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails + example: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + properties: + metadata: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateMetadata' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpec' + required: + - spec + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateMetadata: + description: VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails + example: + annotations: + key: annotations + properties: + annotations: + additionalProperties: + type: string + type: object + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpec: + description: VvpDeploymentDetailsTemplateSpec defines the desired state of VvpDeploymentDetails + example: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + properties: + artifact: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Artifact' + flinkConfiguration: + additionalProperties: + type: string + type: object + kubernetes: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpecKubernetesSpec' + latestCheckpointFetchInterval: + format: int32 + type: integer + logging: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Logging' + numberOfTaskManagers: + format: int32 + type: integer + parallelism: + format: int32 + type: integer + resources: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentKubernetesResources' + required: + - artifact + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpecKubernetesSpec: + description: VvpDeploymentDetailsTemplateSpecKubernetesSpec defines the desired + state of VvpDeploymentDetails + example: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + properties: + jobManagerPodTemplate: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate' + labels: + additionalProperties: + type: string + type: object + taskManagerPodTemplate: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentKubernetesResources: + description: VvpDeploymentKubernetesResources defines the Kubernetes resources + for the VvpDeployment. + example: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + properties: + jobmanager: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec' + taskmanager: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentRunningStatus: + description: VvpDeploymentRunningStatus defines the observed state of VvpDeployment + example: + transitionTime: 2000-01-23T04:56:07.000+00:00 + jobId: jobId + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + properties: + conditions: + description: Conditions is an array of current observed conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusCondition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + jobId: + type: string + transitionTime: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatus: + description: VvpDeploymentStatus defines the observed state of VvpDeployment + example: + deploymentStatus: + running: + transitionTime: 2000-01-23T04:56:07.000+00:00 + jobId: jobId + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + state: state + customResourceStatus: + customResourceState: customResourceState + deploymentNamespace: deploymentNamespace + deploymentId: deploymentId + statusState: statusState + observedSpecState: observedSpecState + deploymentSystemMetadata: + createdAt: 2000-01-23T04:56:07.000+00:00 + modifiedAt: 2000-01-23T04:56:07.000+00:00 + resourceVersion: 8 + name: name + annotations: + key: annotations + labels: + key: labels + properties: + customResourceStatus: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpCustomResourceStatus' + deploymentStatus: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusDeploymentStatus' + deploymentSystemMetadata: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentSystemMetadata' + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusCondition: + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + properties: + lastTransitionTime: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + message: + type: string + observedGeneration: + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon. For instance, if .metadata.generation\ + \ is currently 12, but the .status.conditions[x].observedGeneration is\ + \ 9, the condition is out of date with respect to the current state of\ + \ the instance." + format: int64 + type: integer + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusDeploymentStatus: + description: VvpDeploymentStatusDeploymentStatus defines the observed state + of VvpDeployment + example: + running: + transitionTime: 2000-01-23T04:56:07.000+00:00 + jobId: jobId + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 6 + status: status + state: state + properties: + running: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentRunningStatus' + state: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentSystemMetadata: + description: VvpDeploymentSystemMetadata defines the observed state of VvpDeployment + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + modifiedAt: 2000-01-23T04:56:07.000+00:00 + resourceVersion: 8 + name: name + annotations: + key: annotations + labels: + key: labels + properties: + annotations: + additionalProperties: + type: string + type: object + createdAt: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + labels: + additionalProperties: + type: string + type: object + modifiedAt: + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods + that the time package offers. + format: date-time + type: string + name: + type: string + resourceVersion: + format: int32 + type: integer + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplate: + description: VvpDeploymentTemplate defines the desired state of VvpDeployment + example: + syncingMode: syncingMode + deployment: + userMetadata: + displayName: displayName + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + template: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + sessionClusterName: sessionClusterName + deploymentTargetName: deploymentTargetName + restoreStrategy: + kind: kind + allowNonRestoredState: true + maxSavepointCreationAttempts: 6 + state: state + maxJobCreationAttempts: 0 + jobFailureExpirationTime: jobFailureExpirationTime + properties: + deployment: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplateSpec' + syncingMode: + type: string + required: + - deployment + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplateSpec: + description: VvpDeploymentTemplateSpec defines the desired state of VvpDeployment + example: + userMetadata: + displayName: displayName + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + template: + metadata: + annotations: + key: annotations + spec: + artifact: + mainArgs: mainArgs + additionalPythonLibraries: + - additionalPythonLibraries + - additionalPythonLibraries + pythonArtifactUri: pythonArtifactUri + additionalDependencies: + - additionalDependencies + - additionalDependencies + flinkImageTag: flinkImageTag + kind: kind + entryClass: entryClass + artifactKind: artifactKind + entryModule: entryModule + flinkVersion: flinkVersion + uri: uri + sqlScript: sqlScript + additionalPythonArchives: + - additionalPythonArchives + - additionalPythonArchives + flinkImageRegistry: flinkImageRegistry + flinkImageRepository: flinkImageRepository + jarUri: jarUri + kubernetes: + taskManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + jobManagerPodTemplate: + metadata: + name: name + namespace: namespace + annotations: + key: annotations + labels: + key: labels + spec: + tolerations: + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + - effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + serviceAccountName: serviceAccountName + imagePullSecrets: + - name: name + - name: name + volumes: + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + - configMap: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + name: name + secret: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + containers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + shareProcessNamespace: true + initContainers: + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - image: image + imagePullPolicy: Always + livenessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + workingDir: workingDir + resources: + requests: + key: requests + limits: + key: limits + securityContext: + runAsUser: 1 + fsGroup: 7 + runAsGroup: 1 + runAsNonRoot: true + readOnlyRootFilesystem: true + startupProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + env: + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + command: + - command + - command + volumeMounts: + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + args: + - args + - args + name: name + readinessProbe: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + envFrom: + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + nodeSelector: + key: nodeSelector + labels: + key: labels + parallelism: 9 + logging: + log4jLoggers: + key: log4jLoggers + log4j2ConfigurationTemplate: log4j2ConfigurationTemplate + loggingProfile: loggingProfile + numberOfTaskManagers: 5 + resources: + jobmanager: + memory: memory + cpu: cpu + taskmanager: + memory: memory + cpu: cpu + latestCheckpointFetchInterval: 4 + flinkConfiguration: + key: flinkConfiguration + sessionClusterName: sessionClusterName + deploymentTargetName: deploymentTargetName + restoreStrategy: + kind: kind + allowNonRestoredState: true + maxSavepointCreationAttempts: 6 + state: state + maxJobCreationAttempts: 0 + jobFailureExpirationTime: jobFailureExpirationTime + properties: + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetails' + userMetadata: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.UserMetadata' + required: + - spec + - userMetadata + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpRestoreStrategy: + description: VvpRestoreStrategy defines the restore strategy of the deployment + example: + kind: kind + allowNonRestoredState: true + properties: + allowNonRestoredState: + type: boolean + kind: + type: string + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace: + description: Workspace + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + pulsarClusterNames: + - pulsarClusterNames + - pulsarClusterNames + flinkBlobStorage: + bucket: bucket + path: path + poolRef: + name: name + namespace: namespace + useExternalAccess: true + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ObjectMeta' + spec: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceSpec' + status: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceStatus' + type: object + x-kubernetes-group-version-kind: + - group: compute.streamnative.io + kind: Workspace + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList: + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + pulsarClusterNames: + - pulsarClusterNames + - pulsarClusterNames + flinkBlobStorage: + bucket: bucket + path: path + poolRef: + name: name + namespace: namespace + useExternalAccess: true + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + pulsarClusterNames: + - pulsarClusterNames + - pulsarClusterNames + flinkBlobStorage: + bucket: bucket + path: path + poolRef: + name: name + namespace: namespace + useExternalAccess: true + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + items: + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: compute.streamnative.io + kind: WorkspaceList + version: v1alpha1 + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceSpec: + description: WorkspaceSpec defines the desired state of Workspace + example: + pulsarClusterNames: + - pulsarClusterNames + - pulsarClusterNames + flinkBlobStorage: + bucket: bucket + path: path + poolRef: + name: name + namespace: namespace + useExternalAccess: true + properties: + flinkBlobStorage: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkBlobStorage' + poolRef: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolRef' + pulsarClusterNames: + description: PulsarClusterNames is the list of Pulsar clusters that the + workspace will have access to. + items: + type: string + type: array + useExternalAccess: + description: UseExternalAccess is the flag to indicate whether the workspace + will use external access. + type: boolean + required: + - poolRef + - pulsarClusterNames + type: object + com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceStatus: + description: WorkspaceStatus defines the observed state of Workspace + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 9 + status: status + properties: + conditions: + description: Conditions is an array of current observed pool conditions. + items: + $ref: '#/components/schemas/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + v1.Affinity: + description: Affinity is a group of affinity scheduling rules. + example: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + podAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + properties: + nodeAffinity: + $ref: '#/components/schemas/v1.NodeAffinity' + podAffinity: + $ref: '#/components/schemas/v1.PodAffinity' + podAntiAffinity: + $ref: '#/components/schemas/v1.PodAntiAffinity' + type: object + v1.ConfigMapEnvSource: + description: |- + ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. + + The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. + example: + name: name + optional: true + properties: + name: + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: Specify whether the ConfigMap must be defined + type: boolean + type: object + v1.ConfigMapKeySelector: + description: Selects a key from a ConfigMap. + example: + name: name + optional: true + key: key + properties: + key: + description: The key to select. + type: string + name: + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: Specify whether the ConfigMap or its key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + v1.ConfigMapVolumeSource: + description: |- + Adapts a ConfigMap into a volume. + + The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. + example: + defaultMode: 6 + name: name + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + properties: + defaultMode: + description: "defaultMode is optional: mode bits used to set permissions\ + \ on created files by default. Must be an octal value between 0000 and\ + \ 0777 or a decimal value between 0 and 511. YAML accepts both octal and\ + \ decimal values, JSON requires decimal values for mode bits. Defaults\ + \ to 0644. Directories within the path are not affected by this setting.\ + \ This might be in conflict with other options that affect the file mode,\ + \ like fsGroup, and the result can be other mode bits set." + format: int32 + type: integer + items: + description: "items if unspecified, each key-value pair in the Data field\ + \ of the referenced ConfigMap will be projected into the volume as a file\ + \ whose name is the key and content is the value. If specified, the listed\ + \ keys will be projected into the specified paths, and unlisted keys will\ + \ not be present. If a key is specified which is not present in the ConfigMap,\ + \ the volume setup will error unless it is marked optional. Paths must\ + \ be relative and may not contain the '..' path or start with '..'." + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + name: + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: optional specify whether the ConfigMap or its keys must be + defined + type: boolean + type: object + v1.EnvFromSource: + description: EnvFromSource represents the source of a set of ConfigMaps + example: + configMapRef: + name: name + optional: true + prefix: prefix + secretRef: + name: name + optional: true + properties: + configMapRef: + $ref: '#/components/schemas/v1.ConfigMapEnvSource' + prefix: + description: An optional identifier to prepend to each key in the ConfigMap. + Must be a C_IDENTIFIER. + type: string + secretRef: + $ref: '#/components/schemas/v1.SecretEnvSource' + type: object + v1.EnvVar: + description: EnvVar represents an environment variable present in a Container. + example: + name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + properties: + name: + description: Name of the environment variable. Must be a C_IDENTIFIER. + type: string + value: + description: "Variable references $(VAR_NAME) are expanded using the previously\ + \ defined environment variables in the container and any service environment\ + \ variables. If a variable cannot be resolved, the reference in the input\ + \ string will be unchanged. Double $$ are reduced to a single $, which\ + \ allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\ + \ produce the string literal \"$(VAR_NAME)\". Escaped references will\ + \ never be expanded, regardless of whether the variable exists or not.\ + \ Defaults to \"\"." + type: string + valueFrom: + $ref: '#/components/schemas/v1.EnvVarSource' + required: + - name + type: object + v1.EnvVarSource: + description: EnvVarSource represents a source for the value of an EnvVar. + example: + secretKeyRef: + name: name + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + properties: + configMapKeyRef: + $ref: '#/components/schemas/v1.ConfigMapKeySelector' + fieldRef: + $ref: '#/components/schemas/v1.ObjectFieldSelector' + resourceFieldRef: + $ref: '#/components/schemas/v1.ResourceFieldSelector' + secretKeyRef: + $ref: '#/components/schemas/v1.SecretKeySelector' + type: object + v1.ExecAction: + description: ExecAction describes a "run in container" action. + example: + command: + - command + - command + properties: + command: + description: "Command is the command line to execute inside the container,\ + \ the working directory for the command is root ('/') in the container's\ + \ filesystem. The command is simply exec'd, it is not run inside a shell,\ + \ so traditional shell instructions ('|', etc) won't work. To use a shell,\ + \ you need to explicitly call out to that shell. Exit status of 0 is treated\ + \ as live/healthy and non-zero is unhealthy." + items: + type: string + type: array + type: object + v1.GRPCAction: + example: + port: 2 + service: service + properties: + port: + description: Port number of the gRPC service. Number must be in the range + 1 to 65535. + format: int32 + type: integer + service: + description: |- + Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + + If this is not specified, the default behavior is defined by gRPC. + type: string + required: + - port + type: object + v1.HTTPGetAction: + description: HTTPGetAction describes an action based on HTTP Get requests. + example: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + properties: + host: + description: "Host name to connect to, defaults to the pod IP. You probably\ + \ want to set \"Host\" in httpHeaders instead." + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP allows repeated + headers. + items: + $ref: '#/components/schemas/v1.HTTPHeader' + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + description: Name or number of the port to access on the container. Number + must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + properties: {} + type: object + scheme: + description: |- + Scheme to use for connecting to the host. Defaults to HTTP. + + Possible enum values: + - `"HTTP"` means that the scheme used will be http:// + - `"HTTPS"` means that the scheme used will be https:// + enum: + - HTTP + - HTTPS + type: string + required: + - port + type: object + v1.HTTPHeader: + description: HTTPHeader describes a custom header to be used in HTTP probes + example: + name: name + value: value + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + v1.KeyToPath: + description: Maps a string key to a path within a volume. + example: + mode: 7 + path: path + key: key + properties: + key: + description: key is the key to project. + type: string + mode: + description: "mode is Optional: mode bits used to set permissions on this\ + \ file. Must be an octal value between 0000 and 0777 or a decimal value\ + \ between 0 and 511. YAML accepts both octal and decimal values, JSON\ + \ requires decimal values for mode bits. If not specified, the volume\ + \ defaultMode will be used. This might be in conflict with other options\ + \ that affect the file mode, like fsGroup, and the result can be other\ + \ mode bits set." + format: int32 + type: integer + path: + description: path is the relative path of the file to map the key to. May + not be an absolute path. May not contain the path element '..'. May not + start with the string '..'. + type: string + required: + - key + - path + type: object + v1.LocalObjectReference: + description: LocalObjectReference contains enough information to let you locate + the referenced object inside the same namespace. + example: + name: name + properties: + name: + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + type: object + x-kubernetes-map-type: atomic + v1.NodeAffinity: + description: Node affinity is a group of node affinity scheduling rules. + example: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + - preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ + \ by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node matches the corresponding matchExpressions; the\ + \ node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/v1.PreferredSchedulingTerm' + type: array + requiredDuringSchedulingIgnoredDuringExecution: + $ref: '#/components/schemas/v1.NodeSelector' + type: object + v1.NodeSelector: + description: "A node selector represents the union of the results of one or\ + \ more label queries over a set of nodes; that is, it represents the OR of\ + \ the selectors represented by the node selector terms." + example: + nodeSelectorTerms: + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + - matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + properties: + nodeSelectorTerms: + description: Required. A list of node selector terms. The terms are ORed. + items: + $ref: '#/components/schemas/v1.NodeSelectorTerm' + type: array + required: + - nodeSelectorTerms + type: object + x-kubernetes-map-type: atomic + v1.NodeSelectorRequirement: + description: "A node selector requirement is a selector that contains values,\ + \ a key, and an operator that relates the key and values." + example: + values: + - values + - values + key: key + operator: DoesNotExist + properties: + key: + description: The label key that the selector applies to. + type: string + operator: + description: |- + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + + Possible enum values: + - `"DoesNotExist"` + - `"Exists"` + - `"Gt"` + - `"In"` + - `"Lt"` + - `"NotIn"` + enum: + - DoesNotExist + - Exists + - Gt + - In + - Lt + - NotIn + type: string + values: + description: "An array of string values. If the operator is In or NotIn,\ + \ the values array must be non-empty. If the operator is Exists or DoesNotExist,\ + \ the values array must be empty. If the operator is Gt or Lt, the values\ + \ array must have a single element, which will be interpreted as an integer.\ + \ This array is replaced during a strategic merge patch." + items: + type: string + type: array + required: + - key + - operator + type: object + v1.NodeSelectorTerm: + description: A null or empty node selector term matches no objects. The requirements + of them are ANDed. The TopologySelectorTerm type implements a subset of the + NodeSelectorTerm. + example: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + properties: + matchExpressions: + description: A list of node selector requirements by node's labels. + items: + $ref: '#/components/schemas/v1.NodeSelectorRequirement' + type: array + matchFields: + description: A list of node selector requirements by node's fields. + items: + $ref: '#/components/schemas/v1.NodeSelectorRequirement' + type: array + type: object + x-kubernetes-map-type: atomic + v1.ObjectFieldSelector: + description: ObjectFieldSelector selects an APIVersioned field of an object. + example: + apiVersion: apiVersion + fieldPath: fieldPath + properties: + apiVersion: + description: "Version of the schema the FieldPath is written in terms of,\ + \ defaults to \"v1\"." + type: string + fieldPath: + description: Path of the field to select in the specified API version. + type: string + required: + - fieldPath + type: object + x-kubernetes-map-type: atomic + v1.PodAffinity: + description: Pod affinity is a group of inter pod affinity scheduling rules. + example: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ + \ by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ + \ the node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: "If the affinity requirements specified by this field are not\ + \ met at scheduling time, the pod will not be scheduled onto the node.\ + \ If the affinity requirements specified by this field cease to be met\ + \ at some point during pod execution (e.g. due to a pod label update),\ + \ the system may or may not try to eventually evict the pod from its node.\ + \ When there are multiple elements, the lists of nodes corresponding to\ + \ each podAffinityTerm are intersected, i.e. all terms must be satisfied." + items: + $ref: '#/components/schemas/v1.PodAffinityTerm' + type: array + type: object + v1.PodAffinityTerm: + description: "Defines a set of pods (namely those matching the labelSelector\ + \ relative to the given namespace(s)) that this pod should be co-located (affinity)\ + \ or not co-located (anti-affinity) with, where co-located is defined as running\ + \ on a node whose value of the label with key matches that of\ + \ any node on which a pod of the set of pods is running" + example: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + properties: + labelSelector: + $ref: '#/components/schemas/v1.LabelSelector' + namespaceSelector: + $ref: '#/components/schemas/v1.LabelSelector' + namespaces: + description: namespaces specifies a static list of namespace names that + the term applies to. The term is applied to the union of the namespaces + listed in this field and the ones selected by namespaceSelector. null + or empty namespaces list and null namespaceSelector means "this pod's + namespace". + items: + type: string + type: array + topologyKey: + description: "This pod should be co-located (affinity) or not co-located\ + \ (anti-affinity) with the pods matching the labelSelector in the specified\ + \ namespaces, where co-located is defined as running on a node whose value\ + \ of the label with key topologyKey matches that of any node on which\ + \ any of the selected pods is running. Empty topologyKey is not allowed." + type: string + required: + - topologyKey + type: object + v1.PodAntiAffinity: + description: Pod anti affinity is a group of inter pod anti affinity scheduling + rules. + example: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + - labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + - podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the anti-affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling anti-affinity expressions, etc.), compute a\ + \ sum by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ + \ the node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/v1.WeightedPodAffinityTerm' + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: "If the anti-affinity requirements specified by this field\ + \ are not met at scheduling time, the pod will not be scheduled onto the\ + \ node. If the anti-affinity requirements specified by this field cease\ + \ to be met at some point during pod execution (e.g. due to a pod label\ + \ update), the system may or may not try to eventually evict the pod from\ + \ its node. When there are multiple elements, the lists of nodes corresponding\ + \ to each podAffinityTerm are intersected, i.e. all terms must be satisfied." + items: + $ref: '#/components/schemas/v1.PodAffinityTerm' + type: array + type: object + v1.PreferredSchedulingTerm: + description: An empty preferred scheduling term matches all objects with implicit + weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no + objects (i.e. is also a no-op). + example: + preference: + matchExpressions: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + matchFields: + - values: + - values + - values + key: key + operator: DoesNotExist + - values: + - values + - values + key: key + operator: DoesNotExist + weight: 1 + properties: + preference: + $ref: '#/components/schemas/v1.NodeSelectorTerm' + weight: + description: "Weight associated with matching the corresponding nodeSelectorTerm,\ + \ in the range 1-100." + format: int32 + type: integer + required: + - preference + - weight + type: object + v1.Probe: + description: Probe describes a health check to be performed against a container + to determine whether it is alive or ready to receive traffic. + example: + terminationGracePeriodSeconds: 2 + failureThreshold: 5 + periodSeconds: 9 + tcpSocket: + port: "{}" + host: host + timeoutSeconds: 4 + successThreshold: 3 + initialDelaySeconds: 7 + exec: + command: + - command + - command + grpc: + port: 2 + service: service + httpGet: + path: path + scheme: HTTP + port: "{}" + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + properties: + exec: + $ref: '#/components/schemas/v1.ExecAction' + failureThreshold: + description: Minimum consecutive failures for the probe to be considered + failed after having succeeded. Defaults to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + $ref: '#/components/schemas/v1.GRPCAction' + httpGet: + $ref: '#/components/schemas/v1.HTTPGetAction' + initialDelaySeconds: + description: "Number of seconds after the container has started before liveness\ + \ probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. Default to 10 + seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe to be considered + successful after having failed. Defaults to 1. Must be 1 for liveness + and startup. Minimum value is 1. + format: int32 + type: integer + tcpSocket: + $ref: '#/components/schemas/v1.TCPSocketAction' + terminationGracePeriodSeconds: + description: "Optional duration in seconds the pod needs to terminate gracefully\ + \ upon probe failure. The grace period is the duration in seconds after\ + \ the processes running in the pod are sent a termination signal and the\ + \ time when the processes are forcibly halted with a kill signal. Set\ + \ this value longer than the expected cleanup time for your process. If\ + \ this value is nil, the pod's terminationGracePeriodSeconds will be used.\ + \ Otherwise, this value overrides the value provided by the pod spec.\ + \ Value must be non-negative integer. The value zero indicates stop immediately\ + \ via the kill signal (no opportunity to shut down). This is a beta field\ + \ and requires enabling ProbeTerminationGracePeriod feature gate. Minimum\ + \ value is 1. spec.terminationGracePeriodSeconds is used if unset." + format: int64 + type: integer + timeoutSeconds: + description: "Number of seconds after which the probe times out. Defaults\ + \ to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + format: int32 + type: integer + type: object + v1.ResourceFieldSelector: + description: "ResourceFieldSelector represents container resources (cpu, memory)\ + \ and their output format" + example: + divisor: divisor + resource: resource + containerName: containerName + properties: + containerName: + description: "Container name: required for volumes, optional for env vars" + type: string + divisor: + description: "Specifies the output format of the exposed resources, defaults\ + \ to \"1\"" + type: string + resource: + description: "Required: resource to select" + type: string + required: + - resource + type: object + x-kubernetes-map-type: atomic + v1.ResourceRequirements: + description: ResourceRequirements describes the compute resource requirements. + example: + requests: + key: requests + limits: + key: limits + properties: + limits: + additionalProperties: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + description: "Limits describes the maximum amount of compute resources allowed.\ + \ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + type: object + requests: + additionalProperties: + description: |- + Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. + + The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + + No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. + + When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. + + Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. + + Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + + Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. + + Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) + + This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + type: string + description: "Requests describes the minimum amount of compute resources\ + \ required. If Requests is omitted for a container, it defaults to Limits\ + \ if that is explicitly specified, otherwise to an implementation-defined\ + \ value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + type: object + type: object + v1.SecretEnvSource: + description: |- + SecretEnvSource selects a Secret to populate the environment variables with. + + The contents of the target Secret's Data field will represent the key-value pairs as environment variables. + example: + name: name + optional: true + properties: + name: + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: Specify whether the Secret must be defined + type: boolean + type: object + v1.SecretKeySelector: + description: SecretKeySelector selects a key of a Secret. + example: + name: name + optional: true + key: key + properties: + key: + description: The key of the secret to select from. Must be a valid secret + key. + type: string + name: + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + type: string + optional: + description: Specify whether the Secret or its key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + v1.SecretVolumeSource: + description: |- + Adapts a Secret into a volume. + + The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. + example: + secretName: secretName + defaultMode: 1 + optional: true + items: + - mode: 7 + path: path + key: key + - mode: 7 + path: path + key: key + properties: + defaultMode: + description: "defaultMode is Optional: mode bits used to set permissions\ + \ on created files by default. Must be an octal value between 0000 and\ + \ 0777 or a decimal value between 0 and 511. YAML accepts both octal and\ + \ decimal values, JSON requires decimal values for mode bits. Defaults\ + \ to 0644. Directories within the path are not affected by this setting.\ + \ This might be in conflict with other options that affect the file mode,\ + \ like fsGroup, and the result can be other mode bits set." + format: int32 + type: integer + items: + description: "items If unspecified, each key-value pair in the Data field\ + \ of the referenced Secret will be projected into the volume as a file\ + \ whose name is the key and content is the value. If specified, the listed\ + \ keys will be projected into the specified paths, and unlisted keys will\ + \ not be present. If a key is specified which is not present in the Secret,\ + \ the volume setup will error unless it is marked optional. Paths must\ + \ be relative and may not contain the '..' path or start with '..'." + items: + $ref: '#/components/schemas/v1.KeyToPath' + type: array + optional: + description: optional field specify whether the Secret or its keys must + be defined + type: boolean + secretName: + description: "secretName is the name of the secret in the pod's namespace\ + \ to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + type: string + type: object + v1.TCPSocketAction: + description: TCPSocketAction describes an action based on opening a socket + example: + port: "{}" + host: host + properties: + host: + description: "Optional: Host name to connect to, defaults to the pod IP." + type: string + port: + description: Number or name of the port to access on the container. Number + must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + properties: {} + type: object + required: + - port + type: object + v1.Toleration: + description: "The pod this Toleration is attached to tolerates any taint that\ + \ matches the triple using the matching operator ." + example: + effect: NoExecute + tolerationSeconds: 1 + value: value + key: key + operator: Equal + properties: + effect: + description: |- + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + + Possible enum values: + - `"NoExecute"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. + - `"NoSchedule"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. + - `"PreferNoSchedule"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. + enum: + - NoExecute + - NoSchedule + - PreferNoSchedule + type: string + key: + description: "Key is the taint key that the toleration applies to. Empty\ + \ means match all taint keys. If the key is empty, operator must be Exists;\ + \ this combination means to match all values and all keys." + type: string + operator: + description: |- + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + + Possible enum values: + - `"Equal"` + - `"Exists"` + enum: + - Equal + - Exists + type: string + tolerationSeconds: + description: "TolerationSeconds represents the period of time the toleration\ + \ (which must be of effect NoExecute, otherwise this field is ignored)\ + \ tolerates the taint. By default, it is not set, which means tolerate\ + \ the taint forever (do not evict). Zero and negative values will be treated\ + \ as 0 (evict immediately) by the system." + format: int64 + type: integer + value: + description: "Value is the taint value the toleration matches to. If the\ + \ operator is Exists, the value should be empty, otherwise just a regular\ + \ string." + type: string + type: object + v1.VolumeMount: + description: VolumeMount describes a mounting of a Volume within a container. + example: + mountPath: mountPath + mountPropagation: mountPropagation + name: name + readOnly: true + subPath: subPath + subPathExpr: subPathExpr + properties: + mountPath: + description: Path within the container at which the volume should be mounted. Must + not contain ':'. + type: string + mountPropagation: + description: "mountPropagation determines how mounts are propagated from\ + \ the host to container and the other way around. When not set, MountPropagationNone\ + \ is used. This field is beta in 1.10." + type: string + name: + description: This must match the Name of a Volume. + type: string + readOnly: + description: "Mounted read-only if true, read-write otherwise (false or\ + \ unspecified). Defaults to false." + type: boolean + subPath: + description: Path within the volume from which the container's volume should + be mounted. Defaults to "" (volume's root). + type: string + subPathExpr: + description: Expanded path within the volume from which the container's + volume should be mounted. Behaves similarly to SubPath but environment + variable references $(VAR_NAME) are expanded using the container's environment. + Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. + type: string + required: + - mountPath + - name + type: object + v1.WeightedPodAffinityTerm: + description: The weights of all of the matched WeightedPodAffinityTerm fields + are added per-node to find the most preferred node(s) + example: + podAffinityTerm: + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + topologyKey: topologyKey + namespaces: + - namespaces + - namespaces + weight: 5 + properties: + podAffinityTerm: + $ref: '#/components/schemas/v1.PodAffinityTerm' + weight: + description: "weight associated with matching the corresponding podAffinityTerm,\ + \ in the range 1-100." + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + v1.APIGroup: + description: "APIGroup contains the name, the supported versions, and the preferred\ + \ version of a group." + example: + apiVersion: apiVersion + versions: + - groupVersion: groupVersion + version: version + - groupVersion: groupVersion + version: version + kind: kind + preferredVersion: + groupVersion: groupVersion + version: version + name: name + serverAddressByClientCIDRs: + - clientCIDR: clientCIDR + serverAddress: serverAddress + - clientCIDR: clientCIDR + serverAddress: serverAddress + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + name: + description: name is the name of the group. + type: string + preferredVersion: + $ref: '#/components/schemas/v1.GroupVersionForDiscovery' + serverAddressByClientCIDRs: + description: "a map of client CIDR to server address that is serving this\ + \ group. This is to help clients reach servers in the most network-efficient\ + \ way possible. Clients can use the appropriate server address as per\ + \ the CIDR that they match. In case of multiple matches, clients should\ + \ use the longest matching CIDR. The server returns only those CIDRs that\ + \ it thinks that the client can match. For example: the master will return\ + \ an internal IP CIDR only, if the client reaches the server using an\ + \ internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header\ + \ or request.RemoteAddr (in that order) to get the client IP." + items: + $ref: '#/components/schemas/v1.ServerAddressByClientCIDR' + type: array + versions: + description: versions are the versions supported in this group. + items: + $ref: '#/components/schemas/v1.GroupVersionForDiscovery' + type: array + required: + - name + - versions + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: APIGroup + version: v1 + v1.APIGroupList: + description: "APIGroupList is a list of APIGroup, to allow clients to discover\ + \ the API at /apis." + example: + apiVersion: apiVersion + kind: kind + groups: + - apiVersion: apiVersion + versions: + - groupVersion: groupVersion + version: version + - groupVersion: groupVersion + version: version + kind: kind + preferredVersion: + groupVersion: groupVersion + version: version + name: name + serverAddressByClientCIDRs: + - clientCIDR: clientCIDR + serverAddress: serverAddress + - clientCIDR: clientCIDR + serverAddress: serverAddress + - apiVersion: apiVersion + versions: + - groupVersion: groupVersion + version: version + - groupVersion: groupVersion + version: version + kind: kind + preferredVersion: + groupVersion: groupVersion + version: version + name: name + serverAddressByClientCIDRs: + - clientCIDR: clientCIDR + serverAddress: serverAddress + - clientCIDR: clientCIDR + serverAddress: serverAddress + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + groups: + description: groups is a list of APIGroup. + items: + $ref: '#/components/schemas/v1.APIGroup' + type: array + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + required: + - groups + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: APIGroupList + version: v1 + v1.APIResource: + description: APIResource specifies the name of a resource and whether it is + namespaced. + example: + shortNames: + - shortNames + - shortNames + kind: kind + name: name + storageVersionHash: storageVersionHash + verbs: + - verbs + - verbs + categories: + - categories + - categories + version: version + namespaced: true + group: group + singularName: singularName + properties: + categories: + description: categories is a list of the grouped resources this resource + belongs to (e.g. 'all') + items: + type: string + type: array + group: + description: "group is the preferred group of the resource. Empty implies\ + \ the group of the containing resource list. For subresources, this may\ + \ have a different value, for example: Scale\"." + type: string + kind: + description: kind is the kind for the resource (e.g. 'Foo' is the kind for + a resource 'foo') + type: string + name: + description: name is the plural name of the resource. + type: string + namespaced: + description: namespaced indicates if a resource is namespaced or not. + type: boolean + shortNames: + description: shortNames is a list of suggested short names of the resource. + items: + type: string + type: array + singularName: + description: singularName is the singular name of the resource. This allows + clients to handle plural and singular opaquely. The singularName is more + correct for reporting status on a single item and both singular and plural + are allowed from the kubectl CLI interface. + type: string + storageVersionHash: + description: "The hash value of the storage version, the version this resource\ + \ is converted to when written to the data store. Value must be treated\ + \ as opaque by clients. Only equality comparison on the value is valid.\ + \ This is an alpha feature and may change or be removed in the future.\ + \ The field is populated by the apiserver only if the StorageVersionHash\ + \ feature gate is enabled. This field will remain optional even if it\ + \ graduates." + type: string + verbs: + description: "verbs is a list of supported kube verbs (this includes get,\ + \ list, watch, create, update, patch, delete, deletecollection, and proxy)" + items: + type: string + type: array + version: + description: "version is the preferred version of the resource. Empty implies\ + \ the version of the containing resource list For subresources, this may\ + \ have a different value, for example: v1 (while inside a v1beta1 version\ + \ of the core resource's group)\"." + type: string + required: + - kind + - name + - namespaced + - singularName + - verbs + type: object + v1.APIResourceList: + description: "APIResourceList is a list of APIResource, it is used to expose\ + \ the name of the resources supported in a specific group and version, and\ + \ if the resource is namespaced." + example: + apiVersion: apiVersion + kind: kind + groupVersion: groupVersion + resources: + - shortNames: + - shortNames + - shortNames + kind: kind + name: name + storageVersionHash: storageVersionHash + verbs: + - verbs + - verbs + categories: + - categories + - categories + version: version + namespaced: true + group: group + singularName: singularName + - shortNames: + - shortNames + - shortNames + kind: kind + name: name + storageVersionHash: storageVersionHash + verbs: + - verbs + - verbs + categories: + - categories + - categories + version: version + namespaced: true + group: group + singularName: singularName + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + groupVersion: + description: groupVersion is the group and version this APIResourceList + is for. + type: string + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + resources: + description: resources contains the name of the resources and if they are + namespaced. + items: + $ref: '#/components/schemas/v1.APIResource' + type: array + required: + - groupVersion + - resources + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: APIResourceList + version: v1 + v1.Condition: + description: Condition contains details for one aspect of the current state + of this API Resource. + example: + reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + status: status + properties: + lastTransitionTime: + description: "lastTransitionTime is the last time the condition transitioned\ + \ from one status to another. This should be when the underlying condition\ + \ changed. If that is not known, then using the time when the API field\ + \ changed is acceptable." + format: date-time + type: string + message: + description: message is a human readable message indicating details about + the transition. This may be an empty string. + type: string + observedGeneration: + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon. For instance, if .metadata.generation\ + \ is currently 12, but the .status.conditions[x].observedGeneration is\ + \ 9, the condition is out of date with respect to the current state of\ + \ the instance." + format: int64 + type: integer + reason: + description: "reason contains a programmatic identifier indicating the reason\ + \ for the condition's last transition. Producers of specific condition\ + \ types may define expected values and meanings for this field, and whether\ + \ the values are considered a guaranteed API. The value should be a CamelCase\ + \ string. This field may not be empty." + type: string + status: + description: "status of the condition, one of True, False, Unknown." + type: string + type: + description: type of condition in CamelCase or in foo.example.com/CamelCase. + type: string + required: + - lastTransitionTime + - message + - reason + - status + - type + type: object + v1.DeleteOptions: + description: DeleteOptions may be provided when deleting an API object. + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + dryRun: + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + type: array + gracePeriodSeconds: + description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete\ + \ immediately. If this value is nil, the default grace period for the\ + \ specified type will be used. Defaults to a per object value if not specified.\ + \ zero means delete immediately." + format: int64 + type: integer + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + orphanDependents: + description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's\ + \ finalizers list. Either this field or PropagationPolicy may be set,\ + \ but not both." + type: boolean + preconditions: + $ref: '#/components/schemas/v1.Preconditions' + propagationPolicy: + description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default\ + \ policy is decided by the existing finalizer set in the metadata.finalizers\ + \ and the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector\ + \ to delete the dependents in the background; 'Foreground' - a cascading\ + \ policy that deletes all dependents in the foreground." + type: string + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: DeleteOptions + version: v1 + - group: authorization.streamnative.io + kind: DeleteOptions + version: v1alpha1 + - group: autoscaling + kind: DeleteOptions + version: v1 + - group: billing.streamnative.io + kind: DeleteOptions + version: v1alpha1 + - group: cloud.streamnative.io + kind: DeleteOptions + version: v1alpha1 + - group: cloud.streamnative.io + kind: DeleteOptions + version: v1alpha2 + - group: compute.streamnative.io + kind: DeleteOptions + version: v1alpha1 + v1.GroupVersionForDiscovery: + description: GroupVersion contains the "group/version" and "version" string + of a version. It is made a struct to keep extensibility. + example: + groupVersion: groupVersion + version: version + properties: + groupVersion: + description: groupVersion specifies the API group and version in the form + "group/version" + type: string + version: + description: version specifies the version in the form of "version". This + is to save the clients the trouble of splitting the GroupVersion. + type: string + required: + - groupVersion + - version + type: object + v1.LabelSelector: + description: A label selector is a label query over a set of resources. The + result of matchLabels and matchExpressions are ANDed. An empty label selector + matches all objects. A null label selector matches no objects. + example: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + matchExpressions: + description: matchExpressions is a list of label selector requirements. + The requirements are ANDed. + items: + $ref: '#/components/schemas/v1.LabelSelectorRequirement' + type: array + matchLabels: + additionalProperties: + type: string + description: "matchLabels is a map of {key,value} pairs. A single {key,value}\ + \ in the matchLabels map is equivalent to an element of matchExpressions,\ + \ whose key field is \"key\", the operator is \"In\", and the values array\ + \ contains only \"value\". The requirements are ANDed." + type: object + type: object + x-kubernetes-map-type: atomic + v1.LabelSelectorRequirement: + description: "A label selector requirement is a selector that contains values,\ + \ a key, and an operator that relates the key and values." + example: + values: + - values + - values + key: key + operator: operator + properties: + key: + description: key is the label key that the selector applies to. + type: string + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: key + operator: + description: "operator represents a key's relationship to a set of values.\ + \ Valid operators are In, NotIn, Exists and DoesNotExist." + type: string + values: + description: "values is an array of string values. If the operator is In\ + \ or NotIn, the values array must be non-empty. If the operator is Exists\ + \ or DoesNotExist, the values array must be empty. This array is replaced\ + \ during a strategic merge patch." + items: + type: string + type: array + required: + - key + - operator + type: object + v1.ListMeta: + description: "ListMeta describes metadata that synthetic resources must have,\ + \ including lists and various status objects. A resource may have only one\ + \ of {ObjectMeta, ListMeta}." + example: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + properties: + continue: + description: "continue may be set if the user set a limit on the number\ + \ of items returned, and indicates that the server has more data available.\ + \ The value is opaque and may be used to issue another request to the\ + \ endpoint that served this list to retrieve the next set of available\ + \ objects. Continuing a consistent list may not be possible if the server\ + \ configuration has changed or more than a few minutes have passed. The\ + \ resourceVersion field returned when using this continue value will be\ + \ identical to the value in the first response, unless you have received\ + \ this token from an error message." + type: string + remainingItemCount: + description: "remainingItemCount is the number of subsequent items in the\ + \ list which are not included in this list response. If the list request\ + \ contained label or field selectors, then the number of remaining items\ + \ is unknown and the field will be left unset and omitted during serialization.\ + \ If the list is complete (either because it is not chunking or because\ + \ this is the last chunk), then there are no more remaining items and\ + \ this field will be left unset and omitted during serialization. Servers\ + \ older than v1.15 do not set this field. The intended use of the remainingItemCount\ + \ is *estimating* the size of a collection. Clients should not rely on\ + \ the remainingItemCount to be set or to be exact." + format: int64 + type: integer + resourceVersion: + description: "String that identifies the server's internal version of this\ + \ object that can be used by clients to determine when objects have changed.\ + \ Value must be treated as opaque by clients and passed unmodified back\ + \ to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + type: string + selfLink: + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." + type: string + type: object + v1.ManagedFieldsEntry: + description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group\ + \ version of the resource that the fieldset applies to." + example: + apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + properties: + apiVersion: + description: APIVersion defines the version of this resource that this field + set applies to. The format is "group/version" just like the top-level + APIVersion field. It is necessary to track the version of a field set + because it cannot be automatically converted. + type: string + fieldsType: + description: "FieldsType is the discriminator for the different fields format\ + \ and version. There is currently only one possible value: \"FieldsV1\"" + type: string + fieldsV1: + description: FieldsV1 holds the first JSON version format as described in + the "FieldsV1" type. + properties: {} + type: object + manager: + description: Manager is an identifier of the workflow managing these fields. + type: string + operation: + description: Operation is the type of operation which lead to this ManagedFieldsEntry + being created. The only valid values for this field are 'Apply' and 'Update'. + type: string + subresource: + description: "Subresource is the name of the subresource used to update\ + \ that object, or empty string if the object was updated through the main\ + \ resource. The value of this field is used to distinguish between managers,\ + \ even if they share the same name. For example, a status update will\ + \ be distinct from a regular update using the same manager name. Note\ + \ that the APIVersion field is not related to the Subresource field and\ + \ it always corresponds to the version of the main resource." + type: string + time: + description: "Time is the timestamp of when the ManagedFields entry was\ + \ added. The timestamp will also be updated if a field is added, the manager\ + \ changes any of the owned fields value or removes a field. The timestamp\ + \ does not update when a field is removed from the entry because another\ + \ manager took it over." + format: date-time + type: string + type: object + v1.ObjectMeta: + description: "ObjectMeta is metadata that all persisted resources must have,\ + \ which includes all objects users must create." + example: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + clusterName: clusterName + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + properties: + annotations: + additionalProperties: + type: string + description: "Annotations is an unstructured key value map stored with a\ + \ resource that may be set by external tools to store and retrieve arbitrary\ + \ metadata. They are not queryable and should be preserved when modifying\ + \ objects. More info: http://kubernetes.io/docs/user-guide/annotations" + type: object + clusterName: + description: |- + Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. + + The name in the go struct is changed to help clients detect accidental use. + type: string + creationTimestamp: + description: |- + CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + format: date-time + type: string + deletionGracePeriodSeconds: + description: Number of seconds allowed for this object to gracefully terminate + before it will be removed from the system. Only set when deletionTimestamp + is also set. May only be shortened. Read-only. + format: int64 + type: integer + deletionTimestamp: + description: |- + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + format: date-time + type: string + finalizers: + description: "Must be empty before the object is deleted from the registry.\ + \ Each entry is an identifier for the responsible component that will\ + \ remove the entry from the list. If the deletionTimestamp of the object\ + \ is non-nil, entries in this list can only be removed. Finalizers may\ + \ be processed and removed in any order. Order is NOT enforced because\ + \ it introduces significant risk of stuck finalizers. finalizers is a\ + \ shared field, any actor with permission can reorder it. If the finalizer\ + \ list is processed in order, then this can lead to a situation in which\ + \ the component responsible for the first finalizer in the list is waiting\ + \ for a signal (field value, external system, or other) produced by a\ + \ component responsible for a finalizer later in the list, resulting in\ + \ a deadlock. Without enforced ordering finalizers are free to order amongst\ + \ themselves and are not vulnerable to ordering changes in the list." + items: + type: string + type: array + x-kubernetes-patch-strategy: merge + generateName: + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will return a 409. + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + type: string + generation: + description: A sequence number representing a specific generation of the + desired state. Populated by the system. Read-only. + format: int64 + type: integer + labels: + additionalProperties: + type: string + description: "Map of string keys and values that can be used to organize\ + \ and categorize (scope and select) objects. May match selectors of replication\ + \ controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + type: object + managedFields: + description: "ManagedFields maps workflow-id and version to the set of fields\ + \ that are managed by that workflow. This is mostly for internal housekeeping,\ + \ and users typically shouldn't need to set or understand this field.\ + \ A workflow can be the user's name, a controller's name, or the name\ + \ of a specific apply path like \"ci-cd\". The set of fields is always\ + \ in the version that the workflow used when modifying the object." + items: + $ref: '#/components/schemas/v1.ManagedFieldsEntry' + type: array + name: + description: "Name must be unique within a namespace. Is required when creating\ + \ resources, although some resources may allow a client to request the\ + \ generation of an appropriate name automatically. Name is primarily intended\ + \ for creation idempotence and configuration definition. Cannot be updated.\ + \ More info: http://kubernetes.io/docs/user-guide/identifiers#names" + type: string + namespace: + description: |- + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + type: string + ownerReferences: + description: "List of objects depended by this object. If ALL objects in\ + \ the list have been deleted, this object will be garbage collected. If\ + \ this object is managed by a controller, then an entry in this list will\ + \ point to this controller, with the controller field set to true. There\ + \ cannot be more than one managing controller." + items: + $ref: '#/components/schemas/v1.OwnerReference' + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: uid + resourceVersion: + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + selfLink: + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." + type: string + uid: + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + type: string + type: object + v1.OwnerReference: + description: "OwnerReference contains enough information to let you identify\ + \ an owning object. An owning object must be in the same namespace as the\ + \ dependent, or be cluster-scoped, so there is no namespace field." + example: + uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + properties: + apiVersion: + description: API version of the referent. + type: string + blockOwnerDeletion: + description: "If true, AND if the owner has the \"foregroundDeletion\" finalizer,\ + \ then the owner cannot be deleted from the key-value store until this\ + \ reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion\ + \ for how the garbage collector interacts with this field and enforces\ + \ the foreground deletion. Defaults to false. To set this field, a user\ + \ needs \"delete\" permission of the owner, otherwise 422 (Unprocessable\ + \ Entity) will be returned." + type: boolean + controller: + description: "If true, this reference points to the managing controller." + type: boolean + kind: + description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + name: + description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names" + type: string + uid: + description: "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + type: string + required: + - apiVersion + - kind + - name + - uid + type: object + x-kubernetes-map-type: atomic + v1.Preconditions: + description: "Preconditions must be fulfilled before an operation (update, delete,\ + \ etc.) is carried out." + properties: + resourceVersion: + description: Specifies the target ResourceVersion + type: string + uid: + description: Specifies the target UID. + type: string + type: object + v1.ServerAddressByClientCIDR: + description: "ServerAddressByClientCIDR helps the client to determine the server\ + \ address that they should use, depending on the clientCIDR that they match." + example: + clientCIDR: clientCIDR + serverAddress: serverAddress + properties: + clientCIDR: + description: The CIDR with which clients can match their IP to figure out + the server address that they should use. + type: string + serverAddress: + description: "Address of this server, suitable for a client that matches\ + \ the above CIDR. This can be a hostname, hostname:port, IP or IP:port." + type: string + required: + - clientCIDR + - serverAddress + type: object + v1.Status: + description: Status is a return value for calls that don't return other objects. + example: + reason: reason + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + selfLink: selfLink + apiVersion: apiVersion + code: 0 + kind: kind + details: + uid: uid + kind: kind + causes: + - reason: reason + field: field + message: message + - reason: reason + field: field + message: message + retryAfterSeconds: 6 + name: name + group: group + message: message + status: status + properties: + apiVersion: + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + type: string + code: + description: "Suggested HTTP return code for this status, 0 if not set." + format: int32 + type: integer + details: + $ref: '#/components/schemas/v1.StatusDetails' + kind: + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + message: + description: A human-readable description of the status of this operation. + type: string + metadata: + $ref: '#/components/schemas/v1.ListMeta' + reason: + description: A machine-readable description of why this operation is in + the "Failure" status. If this value is empty there is no information available. + A Reason clarifies an HTTP status code but does not override it. + type: string + status: + description: "Status of the operation. One of: \"Success\" or \"Failure\"\ + . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + type: string + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: Status + version: v1 + v1.StatusCause: + description: "StatusCause provides more information about an api.Status failure,\ + \ including cases when multiple errors are encountered." + example: + reason: reason + field: field + message: message + properties: + field: + description: |- + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + + Examples: + "name" - the field "name" on the current resource + "items[0].name" - the field "name" on the first array entry in "items" + type: string + message: + description: A human-readable description of the cause of the error. This + field may be presented as-is to a reader. + type: string + reason: + description: A machine-readable description of the cause of the error. If + this value is empty there is no information available. + type: string + type: object + v1.StatusDetails: + description: "StatusDetails is a set of additional properties that MAY be set\ + \ by the server to provide additional information about a response. The Reason\ + \ field of a Status object defines what attributes will be set. Clients must\ + \ ignore fields that do not match the defined type of each attribute, and\ + \ should assume that any attribute may be empty, invalid, or under defined." + example: + uid: uid + kind: kind + causes: + - reason: reason + field: field + message: message + - reason: reason + field: field + message: message + retryAfterSeconds: 6 + name: name + group: group + properties: + causes: + description: The Causes array includes more details associated with the + StatusReason failure. Not all StatusReasons may provide detailed causes. + items: + $ref: '#/components/schemas/v1.StatusCause' + type: array + group: + description: The group attribute of the resource associated with the status + StatusReason. + type: string + kind: + description: "The kind attribute of the resource associated with the status\ + \ StatusReason. On some operations may differ from the requested resource\ + \ Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + type: string + name: + description: The name attribute of the resource associated with the status + StatusReason (when there is a single name which can be described). + type: string + retryAfterSeconds: + description: "If specified, the time in seconds before the operation should\ + \ be retried. Some errors may indicate the client must take an alternate\ + \ action - for those errors this field may indicate how long to wait before\ + \ taking the alternate action." + format: int32 + type: integer + uid: + description: "UID of the resource. (when there is a single resource which\ + \ can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + type: string + type: object + v1.WatchEvent: + description: Event represents a single event to a watched resource. + example: + type: type + object: "{}" + properties: + object: + description: |- + Object is: + * If Type is Added or Modified: the new state of the object. + * If Type is Deleted: the state of the object immediately before deletion. + * If Type is Error: *Status is recommended; other types may make sense + depending on context. + properties: {} + type: object + type: + type: string + required: + - object + - type + type: object + x-kubernetes-group-version-kind: + - group: "" + kind: WatchEvent + version: v1 + - group: authorization.streamnative.io + kind: WatchEvent + version: v1alpha1 + - group: autoscaling + kind: WatchEvent + version: v1 + - group: billing.streamnative.io + kind: WatchEvent + version: v1alpha1 + - group: cloud.streamnative.io + kind: WatchEvent + version: v1alpha1 + - group: cloud.streamnative.io + kind: WatchEvent + version: v1alpha2 + - group: compute.streamnative.io + kind: WatchEvent + version: v1alpha1 + version.Info: + description: Info contains versioning information. how we'll want to distribute + that information. + example: + gitVersion: gitVersion + gitCommit: gitCommit + major: major + minor: minor + goVersion: goVersion + buildDate: buildDate + compiler: compiler + gitTreeState: gitTreeState + platform: platform + properties: + buildDate: + type: string + compiler: + type: string + gitCommit: + type: string + gitTreeState: + type: string + gitVersion: + type: string + goVersion: + type: string + major: + type: string + minor: + type: string + platform: + type: string + required: + - buildDate + - compiler + - gitCommit + - gitTreeState + - gitVersion + - goVersion + - major + - minor + - platform + type: object +x-original-swagger-version: "2.0" diff --git a/sdk/sdk-apiserver/api_apis.go b/sdk/sdk-apiserver/api_apis.go new file mode 100644 index 0000000..99a0d1f --- /dev/null +++ b/sdk/sdk-apiserver/api_apis.go @@ -0,0 +1,126 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + + +// ApisApiService ApisApi service +type ApisApiService service + +type ApiGetAPIVersionsRequest struct { + ctx context.Context + ApiService *ApisApiService +} + +func (r ApiGetAPIVersionsRequest) Execute() (*V1APIGroupList, *http.Response, error) { + return r.ApiService.GetAPIVersionsExecute(r) +} + +/* +GetAPIVersions Method for GetAPIVersions + +get available API versions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAPIVersionsRequest +*/ +func (a *ApisApiService) GetAPIVersions(ctx context.Context) ApiGetAPIVersionsRequest { + return ApiGetAPIVersionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIGroupList +func (a *ApisApiService) GetAPIVersionsExecute(r ApiGetAPIVersionsRequest) (*V1APIGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApisApiService.GetAPIVersions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io.go b/sdk/sdk-apiserver/api_authorization_streamnative_io.go new file mode 100644 index 0000000..6d95535 --- /dev/null +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io.go @@ -0,0 +1,126 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + + +// AuthorizationStreamnativeIoApiService AuthorizationStreamnativeIoApi service +type AuthorizationStreamnativeIoApiService service + +type ApiGetAuthorizationStreamnativeIoAPIGroupRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoApiService +} + +func (r ApiGetAuthorizationStreamnativeIoAPIGroupRequest) Execute() (*V1APIGroup, *http.Response, error) { + return r.ApiService.GetAuthorizationStreamnativeIoAPIGroupExecute(r) +} + +/* +GetAuthorizationStreamnativeIoAPIGroup Method for GetAuthorizationStreamnativeIoAPIGroup + +get information of a group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuthorizationStreamnativeIoAPIGroupRequest +*/ +func (a *AuthorizationStreamnativeIoApiService) GetAuthorizationStreamnativeIoAPIGroup(ctx context.Context) ApiGetAuthorizationStreamnativeIoAPIGroupRequest { + return ApiGetAuthorizationStreamnativeIoAPIGroupRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIGroup +func (a *AuthorizationStreamnativeIoApiService) GetAuthorizationStreamnativeIoAPIGroupExecute(r ApiGetAuthorizationStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoApiService.GetAuthorizationStreamnativeIoAPIGroup") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go new file mode 100644 index 0000000..0bab820 --- /dev/null +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go @@ -0,0 +1,3135 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// AuthorizationStreamnativeIoV1alpha1ApiService AuthorizationStreamnativeIoV1alpha1Api service +type AuthorizationStreamnativeIoV1alpha1ApiService service + +type ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Pretty(pretty string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) DryRun(dryRun string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) FieldManager(fieldManager string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r) +} + +/* +CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +create an IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, namespace string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Pretty(pretty string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) DryRun(dryRun string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) FieldManager(fieldManager string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r) +} + +/* +CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +create status of an IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) DryRun(dryRun string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) FieldManager(fieldManager string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) Pretty(pretty string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview, *http.Response, error) { + return r.ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewExecute(r) +} + +/* +CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview Method for CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview + +create a SelfSubjectRbacReview + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest { + return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectrbacreviews" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) DryRun(dryRun string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) FieldManager(fieldManager string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) Pretty(pretty string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview, *http.Response, error) { + return r.ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewExecute(r) +} + +/* +CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview Method for CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview + +create a SelfSubjectRulesReview + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest { + return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectrulesreviews" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) DryRun(dryRun string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) FieldManager(fieldManager string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) Pretty(pretty string) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview, *http.Response, error) { + return r.ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewExecute(r) +} + +/* +CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview Method for CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview + +create a SelfSubjectUserReview + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest { + return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectuserreviews" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) DryRun(dryRun string) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) FieldManager(fieldManager string) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) Pretty(pretty string) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview, *http.Response, error) { + return r.ApiService.CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewExecute(r) +} + +/* +CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview Method for CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview + +create a SubjectRoleReview + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest { + return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/subjectrolereviews" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) DryRun(dryRun string) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) FieldManager(fieldManager string) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) Pretty(pretty string) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview, *http.Response, error) { + return r.ApiService.CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewExecute(r) +} + +/* +CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview Method for CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview + +create a SubjectRulesReview + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest { + return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/subjectrulesreviews" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) Pretty(pretty string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) Continue_(continue_ string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) DryRun(dryRun string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) FieldSelector(fieldSelector string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) LabelSelector(labelSelector string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) Limit(limit int32) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) OrphanDependents(orphanDependents bool) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) PropagationPolicy(propagationPolicy string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) ResourceVersion(resourceVersion string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) Body(body V1DeleteOptions) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + r.body = &body + return r +} + +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountExecute(r) +} + +/* +DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount Method for DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount + +delete collection of IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount(ctx context.Context, namespace string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { + return ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountExecute(r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Pretty(pretty string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) DryRun(dryRun string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) OrphanDependents(orphanDependents bool) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) PropagationPolicy(propagationPolicy string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Body(body V1DeleteOptions) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.body = &body + return r +} + +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r) +} + +/* +DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +delete an IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Pretty(pretty string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) DryRun(dryRun string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Body(body V1DeleteOptions) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r) +} + +/* +DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +delete status of an IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService +} + +func (r ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest) Execute() (*V1APIResourceList, *http.Response, error) { + return r.ApiService.GetAuthorizationStreamnativeIoV1alpha1APIResourcesExecute(r) +} + +/* +GetAuthorizationStreamnativeIoV1alpha1APIResources Method for GetAuthorizationStreamnativeIoV1alpha1APIResources + +get available resources + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) GetAuthorizationStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest { + return ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIResourceList +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) GetAuthorizationStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.GetAuthorizationStreamnativeIoV1alpha1APIResources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) Continue_(continue_ string) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) Limit(limit int32) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) Pretty(pretty string) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) Watch(watch bool) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList, *http.Response, error) { + return r.ApiService.ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesExecute(r) +} + +/* +ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces Method for ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces + +list or watch objects of kind IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces(ctx context.Context) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { + return ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesExecute(r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/iamaccounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Pretty(pretty string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Continue_(continue_ string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) FieldSelector(fieldSelector string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) LabelSelector(labelSelector string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Limit(limit int32) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) ResourceVersion(resourceVersion string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) TimeoutSeconds(timeoutSeconds int32) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Watch(watch bool) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.watch = &watch + return r +} + +func (r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList, *http.Response, error) { + return r.ApiService.ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r) +} + +/* +ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +list or watch objects of kind IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, namespace string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + return ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Body(body map[string]interface{}) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Pretty(pretty string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) DryRun(dryRun string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) FieldManager(fieldManager string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Force(force bool) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.force = &force + return r +} + +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r) +} + +/* +PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +partially update the specified IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Body(body map[string]interface{}) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Pretty(pretty string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) DryRun(dryRun string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) FieldManager(fieldManager string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Force(force bool) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r) +} + +/* +PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +partially update status of the specified IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Pretty(pretty string) ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r) +} + +/* +ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +read the specified IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Pretty(pretty string) ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r) +} + +/* +ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +read status of the specified IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Pretty(pretty string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) DryRun(dryRun string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) FieldManager(fieldManager string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r) +} + +/* +ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +replace the specified IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { + return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Pretty(pretty string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) DryRun(dryRun string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) FieldManager(fieldManager string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + return r.ApiService.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r) +} + +/* +ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +replace status of the specified IamAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Continue_(continue_ string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) FieldSelector(fieldSelector string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) LabelSelector(labelSelector string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Limit(limit int32) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Pretty(pretty string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) ResourceVersion(resourceVersion string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Watch(watch bool) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r) +} + +/* +WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +watch changes to status of an object of kind IamAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest +*/ +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { + return ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *AuthorizationStreamnativeIoV1alpha1ApiService) WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io.go b/sdk/sdk-apiserver/api_billing_streamnative_io.go new file mode 100644 index 0000000..24f288c --- /dev/null +++ b/sdk/sdk-apiserver/api_billing_streamnative_io.go @@ -0,0 +1,126 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + + +// BillingStreamnativeIoApiService BillingStreamnativeIoApi service +type BillingStreamnativeIoApiService service + +type ApiGetBillingStreamnativeIoAPIGroupRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoApiService +} + +func (r ApiGetBillingStreamnativeIoAPIGroupRequest) Execute() (*V1APIGroup, *http.Response, error) { + return r.ApiService.GetBillingStreamnativeIoAPIGroupExecute(r) +} + +/* +GetBillingStreamnativeIoAPIGroup Method for GetBillingStreamnativeIoAPIGroup + +get information of a group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBillingStreamnativeIoAPIGroupRequest +*/ +func (a *BillingStreamnativeIoApiService) GetBillingStreamnativeIoAPIGroup(ctx context.Context) ApiGetBillingStreamnativeIoAPIGroupRequest { + return ApiGetBillingStreamnativeIoAPIGroupRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIGroup +func (a *BillingStreamnativeIoApiService) GetBillingStreamnativeIoAPIGroupExecute(r ApiGetBillingStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoApiService.GetBillingStreamnativeIoAPIGroup") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go new file mode 100644 index 0000000..165b555 --- /dev/null +++ b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go @@ -0,0 +1,22831 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// BillingStreamnativeIoV1alpha1ApiService BillingStreamnativeIoV1alpha1Api service +type BillingStreamnativeIoV1alpha1ApiService service + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest Method for CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest + +create a CustomerPortalRequest + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/customerportalrequests" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +create a PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +create status of a PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +create a PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +create status of a PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedProductExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedProduct Method for CreateBillingStreamnativeIoV1alpha1NamespacedProduct + +create a Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus + +create status of a Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +create a SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +create status of a SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedSubscription Method for CreateBillingStreamnativeIoV1alpha1NamespacedSubscription + +create a Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +create a SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +create status of a SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +create status of a Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1PublicOfferExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1PublicOffer Method for CreateBillingStreamnativeIoV1alpha1PublicOffer + +create a PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest { + return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1PublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1PublicOfferStatus Method for CreateBillingStreamnativeIoV1alpha1PublicOfferStatus + +create status of a PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1PublicOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview Method for CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview + +create a SugerEntitlementReview + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview(ctx context.Context) ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest { + return ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewExecute(r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/sugerentitlementreviews" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1TestClockExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1TestClock Method for CreateBillingStreamnativeIoV1alpha1TestClock + +create a TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClock(ctx context.Context) ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest { + return ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClockExecute(r ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1TestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest) Pretty(pretty string) ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest) DryRun(dryRun string) ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest) FieldManager(fieldManager string) ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.CreateBillingStreamnativeIoV1alpha1TestClockStatusExecute(r) +} + +/* +CreateBillingStreamnativeIoV1alpha1TestClockStatus Method for CreateBillingStreamnativeIoV1alpha1TestClockStatus + +create status of a TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest { + return ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1TestClockStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent Method for DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent + +delete collection of PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer Method for DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer + +delete collection of PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct Method for DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct + +delete collection of Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent Method for DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent + +delete collection of SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription Method for DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription + +delete collection of Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent Method for DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent + +delete collection of SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer Method for DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer + +delete collection of PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer(ctx context.Context) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) Continue_(continue_ string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) FieldSelector(fieldSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) LabelSelector(labelSelector string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) Limit(limit int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) ResourceVersion(resourceVersion string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionTestClockExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1CollectionTestClock Method for DeleteBillingStreamnativeIoV1alpha1CollectionTestClock + +delete collection of TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionTestClock(ctx context.Context) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionTestClockExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionTestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +delete a PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +delete status of a PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +delete a PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +delete status of a PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedProductExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedProduct Method for DeleteBillingStreamnativeIoV1alpha1NamespacedProduct + +delete a Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus + +delete status of a Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +delete a SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +delete status of a SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription Method for DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription + +delete a Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +delete a SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +delete status of a SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +delete status of a Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1PublicOfferExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1PublicOffer Method for DeleteBillingStreamnativeIoV1alpha1PublicOffer + +delete a PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1PublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus Method for DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus + +delete status of a PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1TestClockExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1TestClock Method for DeleteBillingStreamnativeIoV1alpha1TestClock + +delete a TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClockExecute(r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1TestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) Pretty(pretty string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) DryRun(dryRun string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) Body(body V1DeleteOptions) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteBillingStreamnativeIoV1alpha1TestClockStatusExecute(r) +} + +/* +DeleteBillingStreamnativeIoV1alpha1TestClockStatus Method for DeleteBillingStreamnativeIoV1alpha1TestClockStatus + +delete status of a TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { + return ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1TestClockStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService +} + +func (r ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest) Execute() (*V1APIResourceList, *http.Response, error) { + return r.ApiService.GetBillingStreamnativeIoV1alpha1APIResourcesExecute(r) +} + +/* +GetBillingStreamnativeIoV1alpha1APIResources Method for GetBillingStreamnativeIoV1alpha1APIResources + +get available resources + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) GetBillingStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest { + return ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIResourceList +func (a *BillingStreamnativeIoV1alpha1ApiService) GetBillingStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.GetBillingStreamnativeIoV1alpha1APIResources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +list or watch objects of kind PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + return ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +list or watch objects of kind PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + return ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1NamespacedProductExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1NamespacedProduct Method for ListBillingStreamnativeIoV1alpha1NamespacedProduct + +list or watch objects of kind Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { + return ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +list or watch objects of kind SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + return ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1NamespacedSubscription Method for ListBillingStreamnativeIoV1alpha1NamespacedSubscription + +list or watch objects of kind Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +list or watch objects of kind SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces Method for ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces + +list or watch objects of kind PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { + return ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/paymentintents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces Method for ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces + +list or watch objects of kind PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { + return ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/privateoffers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1ProductForAllNamespacesExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces Method for ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces + +list or watch objects of kind Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { + return ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1ProductForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/products" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1PublicOfferExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1PublicOffer Method for ListBillingStreamnativeIoV1alpha1PublicOffer + +list or watch objects of kind PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { + return ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1PublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces Method for ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces + +list or watch objects of kind SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { + return ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/setupintents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces Method for ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces + +list or watch objects of kind Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { + return ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/subscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces Method for ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces + +list or watch objects of kind SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { + return ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/subscriptionintents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBillingStreamnativeIoV1alpha1TestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) Pretty(pretty string) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) Continue_(continue_ string) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) FieldSelector(fieldSelector string) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) LabelSelector(labelSelector string) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) Limit(limit int32) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) ResourceVersion(resourceVersion string) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) TimeoutSeconds(timeoutSeconds int32) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) Watch(watch bool) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + r.watch = &watch + return r +} + +func (r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList, *http.Response, error) { + return r.ApiService.ListBillingStreamnativeIoV1alpha1TestClockExecute(r) +} + +/* +ListBillingStreamnativeIoV1alpha1TestClock Method for ListBillingStreamnativeIoV1alpha1TestClock + +list or watch objects of kind TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1TestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1TestClock(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { + return ApiListBillingStreamnativeIoV1alpha1TestClockRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList +func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1TestClockExecute(r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1TestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +partially update the specified PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +partially update status of the specified PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +partially update the specified PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +partially update status of the specified PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedProductExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedProduct Method for PatchBillingStreamnativeIoV1alpha1NamespacedProduct + +partially update the specified Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus + +partially update status of the specified Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +partially update the specified SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +partially update status of the specified SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedSubscription Method for PatchBillingStreamnativeIoV1alpha1NamespacedSubscription + +partially update the specified Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +partially update the specified SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +partially update status of the specified SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +partially update status of the specified Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1PublicOfferExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1PublicOffer Method for PatchBillingStreamnativeIoV1alpha1PublicOffer + +partially update the specified PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1PublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1PublicOfferStatus Method for PatchBillingStreamnativeIoV1alpha1PublicOfferStatus + +partially update status of the specified PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1PublicOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1TestClockExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1TestClock Method for PatchBillingStreamnativeIoV1alpha1TestClock + +partially update the specified TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { + return ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClockExecute(r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1TestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Pretty(pretty string) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) DryRun(dryRun string) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) FieldManager(fieldManager string) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Force(force bool) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.PatchBillingStreamnativeIoV1alpha1TestClockStatusExecute(r) +} + +/* +PatchBillingStreamnativeIoV1alpha1TestClockStatus Method for PatchBillingStreamnativeIoV1alpha1TestClockStatus + +partially update status of the specified TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + return ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1TestClockStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +read the specified PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +read status of the specified PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +read the specified PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +read status of the specified PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedProductExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedProduct Method for ReadBillingStreamnativeIoV1alpha1NamespacedProduct + +read the specified Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus + +read status of the specified Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +read the specified SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +read status of the specified SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedSubscription Method for ReadBillingStreamnativeIoV1alpha1NamespacedSubscription + +read the specified Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +read the specified SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +read status of the specified SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +read status of the specified Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1PublicOfferExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1PublicOffer Method for ReadBillingStreamnativeIoV1alpha1PublicOffer + +read the specified PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest { + return ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1PublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1PublicOfferStatus Method for ReadBillingStreamnativeIoV1alpha1PublicOfferStatus + +read status of the specified PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1PublicOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1TestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1TestClockRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1TestClockRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1TestClockRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1TestClockExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1TestClock Method for ReadBillingStreamnativeIoV1alpha1TestClock + +read the specified TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReadBillingStreamnativeIoV1alpha1TestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1TestClockRequest { + return ApiReadBillingStreamnativeIoV1alpha1TestClockRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClockExecute(r ApiReadBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1TestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest) Pretty(pretty string) ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.ReadBillingStreamnativeIoV1alpha1TestClockStatusExecute(r) +} + +/* +ReadBillingStreamnativeIoV1alpha1TestClockStatus Method for ReadBillingStreamnativeIoV1alpha1TestClockStatus + +read status of the specified TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest { + return ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1TestClockStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +replace the specified PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +replace status of the specified PaymentIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +replace the specified PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +replace status of the specified PrivateOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedProductExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct + +replace the specified Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus + +replace status of the specified Product + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +replace the specified SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +replace status of the specified SetupIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription + +replace the specified Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +replace the specified SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +replace status of the specified SubscriptionIntent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +replace status of the specified Subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1PublicOfferExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1PublicOffer Method for ReplaceBillingStreamnativeIoV1alpha1PublicOffer + +replace the specified PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1PublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus Method for ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus + +replace status of the specified PublicOffer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1TestClockExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1TestClock Method for ReplaceBillingStreamnativeIoV1alpha1TestClock + +replace the specified TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClockExecute(r ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1TestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest) Pretty(pretty string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest) DryRun(dryRun string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest) FieldManager(fieldManager string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + return r.ApiService.ReplaceBillingStreamnativeIoV1alpha1TestClockStatusExecute(r) +} + +/* +ReplaceBillingStreamnativeIoV1alpha1TestClockStatus Method for ReplaceBillingStreamnativeIoV1alpha1TestClockStatus + +replace status of the specified TestClock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest { + return ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1TestClockStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +watch changes to an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList Method for WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList + +watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +watch changes to status of an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +watch changes to an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList Method for WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList + +watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +watch changes to status of an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProductExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedProduct Method for WatchBillingStreamnativeIoV1alpha1NamespacedProduct + +watch changes to an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProduct") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProductListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedProductList Method for WatchBillingStreamnativeIoV1alpha1NamespacedProductList + +watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProductList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus + +watch changes to status of an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +watch changes to an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList Method for WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList + +watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +watch changes to status of an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSubscription Method for WatchBillingStreamnativeIoV1alpha1NamespacedSubscription + +watch changes to an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +watch changes to an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList Method for WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList + +watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +watch changes to status of an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList Method for WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList + +watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +watch changes to status of an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces Method for WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces + +watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { + return ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/paymentintents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces Method for WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces + +watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { + return ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/privateoffers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces Method for WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces + +watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { + return ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/products" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1PublicOfferExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1PublicOffer Method for WatchBillingStreamnativeIoV1alpha1PublicOffer + +watch changes to an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { + return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PublicOffer") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1PublicOfferListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1PublicOfferList Method for WatchBillingStreamnativeIoV1alpha1PublicOfferList + +watch individual changes to a list of PublicOffer. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferList(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferListExecute(r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PublicOfferList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1PublicOfferStatus Method for WatchBillingStreamnativeIoV1alpha1PublicOfferStatus + +watch changes to status of an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PublicOfferStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces Method for WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces + +watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { + return ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/setupintents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces Method for WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces + +watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { + return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/subscriptionintents" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces Method for WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces + +watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { + return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/subscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1TestClockExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1TestClock Method for WatchBillingStreamnativeIoV1alpha1TestClock + +watch changes to an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { + return ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockExecute(r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1TestClock") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1TestClockListExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1TestClockList Method for WatchBillingStreamnativeIoV1alpha1TestClockList + +watch individual changes to a list of TestClock. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockList(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { + return ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockListExecute(r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1TestClockList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Continue_(continue_ string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) FieldSelector(fieldSelector string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) LabelSelector(labelSelector string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Limit(limit int32) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Pretty(pretty string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) ResourceVersion(resourceVersion string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Watch(watch bool) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchBillingStreamnativeIoV1alpha1TestClockStatusExecute(r) +} + +/* +WatchBillingStreamnativeIoV1alpha1TestClockStatus Method for WatchBillingStreamnativeIoV1alpha1TestClockStatus + +watch changes to status of an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest +*/ +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { + return ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1TestClockStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io.go b/sdk/sdk-apiserver/api_cloud_streamnative_io.go new file mode 100644 index 0000000..aedc2da --- /dev/null +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io.go @@ -0,0 +1,126 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + + +// CloudStreamnativeIoApiService CloudStreamnativeIoApi service +type CloudStreamnativeIoApiService service + +type ApiGetCloudStreamnativeIoAPIGroupRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoApiService +} + +func (r ApiGetCloudStreamnativeIoAPIGroupRequest) Execute() (*V1APIGroup, *http.Response, error) { + return r.ApiService.GetCloudStreamnativeIoAPIGroupExecute(r) +} + +/* +GetCloudStreamnativeIoAPIGroup Method for GetCloudStreamnativeIoAPIGroup + +get information of a group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCloudStreamnativeIoAPIGroupRequest +*/ +func (a *CloudStreamnativeIoApiService) GetCloudStreamnativeIoAPIGroup(ctx context.Context) ApiGetCloudStreamnativeIoAPIGroupRequest { + return ApiGetCloudStreamnativeIoAPIGroupRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIGroup +func (a *CloudStreamnativeIoApiService) GetCloudStreamnativeIoAPIGroupExecute(r ApiGetCloudStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoApiService.GetCloudStreamnativeIoAPIGroup") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go new file mode 100644 index 0000000..076043e --- /dev/null +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go @@ -0,0 +1,60150 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// CloudStreamnativeIoV1alpha1ApiService CloudStreamnativeIoV1alpha1Api service +type CloudStreamnativeIoV1alpha1ApiService service + +type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1ClusterRole Method for CreateCloudStreamnativeIoV1alpha1ClusterRole + +create a ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest { + return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding + +create a ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +create status of a ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus + +create status of a ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey + +create an APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +create status of an APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +create a CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +create status of a CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +create a CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +create status of a CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +create an IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +create status of an IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +create an OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +create status of an OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPool Method for CreateCloudStreamnativeIoV1alpha1NamespacedPool + +create a Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember + +create a PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +create status of a PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption + +create a PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +create status of a PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +create status of a Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +create a PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +create status of a PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +create a PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +create status of a PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +create a PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +create status of a PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedRole Method for CreateCloudStreamnativeIoV1alpha1NamespacedRole + +create a Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +create a RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +create status of a RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +create status of a Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedSecret Method for CreateCloudStreamnativeIoV1alpha1NamespacedSecret + +create a Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +create status of a Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +create a ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +create a ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +create status of a ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +create status of a ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +create a StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +create status of a StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedUserExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedUser Method for CreateCloudStreamnativeIoV1alpha1NamespacedUser + +create an User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus + +create status of an User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1OrganizationExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1Organization Method for CreateCloudStreamnativeIoV1alpha1Organization + +create an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1Organization(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest { + return ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1Organization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1OrganizationStatus Method for CreateCloudStreamnativeIoV1alpha1OrganizationStatus + +create status of an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1OrganizationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + dryRun *string + fieldManager *string + pretty *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest { + r.fieldManager = &fieldManager + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest { + r.pretty = &pretty + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha1SelfRegistrationExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha1SelfRegistration Method for CreateCloudStreamnativeIoV1alpha1SelfRegistration + +create a SelfRegistration + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1SelfRegistration(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest { + return ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration +func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1SelfRegistrationExecute(r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1SelfRegistration") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/selfregistrations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1ClusterRole Method for DeleteCloudStreamnativeIoV1alpha1ClusterRole + +delete a ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding + +delete a ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +delete status of a ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus + +delete status of a ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole Method for DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole + +delete collection of ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding Method for DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding + +delete collection of ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey + +delete collection of APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection + +delete collection of CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment + +delete collection of CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool + +delete collection of IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider + +delete collection of OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool + +delete collection of Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember + +delete collection of PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption + +delete collection of PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster + +delete collection of PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway + +delete collection of PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance + +delete collection of PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole + +delete collection of Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding + +delete collection of RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret + +delete collection of Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount + +delete collection of ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding + +delete collection of ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription + +delete collection of StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser Method for DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser + +delete collection of User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionOrganizationExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1CollectionOrganization Method for DeleteCloudStreamnativeIoV1alpha1CollectionOrganization + +delete collection of Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionOrganization(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionOrganizationExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey + +delete an APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +delete status of an APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +delete a CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +delete status of a CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +delete a CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +delete status of a CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +delete an IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +delete status of an IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +delete an OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +delete status of an OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPool Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPool + +delete a Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember + +delete a PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +delete status of a PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption + +delete a PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +delete status of a PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +delete status of a Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +delete a PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +delete status of a PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +delete a PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +delete status of a PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +delete a PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +delete status of a PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedRole Method for DeleteCloudStreamnativeIoV1alpha1NamespacedRole + +delete a Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +delete a RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +delete status of a RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +delete status of a Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedSecret Method for DeleteCloudStreamnativeIoV1alpha1NamespacedSecret + +delete a Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +delete status of a Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +delete a ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +delete a ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +delete status of a ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +delete status of a ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +delete a StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +delete status of a StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedUserExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedUser Method for DeleteCloudStreamnativeIoV1alpha1NamespacedUser + +delete an User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus + +delete status of an User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1OrganizationExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1Organization Method for DeleteCloudStreamnativeIoV1alpha1Organization + +delete an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1Organization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha1OrganizationStatus Method for DeleteCloudStreamnativeIoV1alpha1OrganizationStatus + +delete status of an Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1OrganizationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService +} + +func (r ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest) Execute() (*V1APIResourceList, *http.Response, error) { + return r.ApiService.GetCloudStreamnativeIoV1alpha1APIResourcesExecute(r) +} + +/* +GetCloudStreamnativeIoV1alpha1APIResources Method for GetCloudStreamnativeIoV1alpha1APIResources + +get available resources + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) GetCloudStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest { + return ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIResourceList +func (a *CloudStreamnativeIoV1alpha1ApiService) GetCloudStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.GetCloudStreamnativeIoV1alpha1APIResources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces + +list or watch objects of kind APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/apikeys" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces + +list or watch objects of kind CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/cloudconnections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces + +list or watch objects of kind CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/cloudenvironments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1ClusterRoleExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1ClusterRole Method for ListCloudStreamnativeIoV1alpha1ClusterRole + +list or watch objects of kind ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { + return ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for ListCloudStreamnativeIoV1alpha1ClusterRoleBinding + +list or watch objects of kind ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + return ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces + +list or watch objects of kind IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/identitypools" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for ListCloudStreamnativeIoV1alpha1NamespacedAPIKey + +list or watch objects of kind APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +list or watch objects of kind CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +list or watch objects of kind CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +list or watch objects of kind IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +list or watch objects of kind OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedPool Method for ListCloudStreamnativeIoV1alpha1NamespacedPool + +list or watch objects of kind Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for ListCloudStreamnativeIoV1alpha1NamespacedPoolMember + +list or watch objects of kind PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for ListCloudStreamnativeIoV1alpha1NamespacedPoolOption + +list or watch objects of kind PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +list or watch objects of kind PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +list or watch objects of kind PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +list or watch objects of kind PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedRole Method for ListCloudStreamnativeIoV1alpha1NamespacedRole + +list or watch objects of kind Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +list or watch objects of kind RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedSecret Method for ListCloudStreamnativeIoV1alpha1NamespacedSecret + +list or watch objects of kind Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +list or watch objects of kind ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +list or watch objects of kind ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +list or watch objects of kind StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1NamespacedUserExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1NamespacedUser Method for ListCloudStreamnativeIoV1alpha1NamespacedUser + +list or watch objects of kind User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { + return ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces + +list or watch objects of kind OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/oidcproviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1OrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1OrganizationExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1Organization Method for ListCloudStreamnativeIoV1alpha1Organization + +list or watch objects of kind Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1OrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1Organization(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { + return ApiListCloudStreamnativeIoV1alpha1OrganizationRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1Organization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1PoolForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces + +list or watch objects of kind Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/pools" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces + +list or watch objects of kind PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/poolmembers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces + +list or watch objects of kind PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/pooloptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces + +list or watch objects of kind PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/pulsarclusters" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces + +list or watch objects of kind PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/pulsargateways" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces + +list or watch objects of kind PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/pulsarinstances" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces + +list or watch objects of kind RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/rolebindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1RoleForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces + +list or watch objects of kind Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1SecretForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces + +list or watch objects of kind Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1SecretForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/secrets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces + +list or watch objects of kind ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/serviceaccountbindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces + +list or watch objects of kind ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/serviceaccounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces + +list or watch objects of kind StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/stripesubscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha1UserForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha1UserForAllNamespaces Method for ListCloudStreamnativeIoV1alpha1UserForAllNamespaces + +list or watch objects of kind User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1UserForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList +func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1UserForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1UserForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1ClusterRole Method for PatchCloudStreamnativeIoV1alpha1ClusterRole + +partially update the specified ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding + +partially update the specified ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +partially update status of the specified ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus + +partially update status of the specified ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey + +partially update the specified APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +partially update status of the specified APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +partially update the specified CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +partially update status of the specified CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +partially update the specified CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +partially update status of the specified CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +partially update the specified IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +partially update status of the specified IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +partially update the specified OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +partially update status of the specified OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPool Method for PatchCloudStreamnativeIoV1alpha1NamespacedPool + +partially update the specified Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember + +partially update the specified PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +partially update status of the specified PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption + +partially update the specified PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +partially update status of the specified PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +partially update status of the specified Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +partially update the specified PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +partially update status of the specified PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +partially update the specified PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +partially update status of the specified PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +partially update the specified PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +partially update status of the specified PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedRole Method for PatchCloudStreamnativeIoV1alpha1NamespacedRole + +partially update the specified Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +partially update the specified RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +partially update status of the specified RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +partially update status of the specified Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedSecret Method for PatchCloudStreamnativeIoV1alpha1NamespacedSecret + +partially update the specified Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +partially update status of the specified Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +partially update the specified ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +partially update the specified ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +partially update status of the specified ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +partially update status of the specified ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +partially update the specified StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +partially update status of the specified StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedUserExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedUser Method for PatchCloudStreamnativeIoV1alpha1NamespacedUser + +partially update the specified User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus + +partially update status of the specified User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1OrganizationExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1Organization Method for PatchCloudStreamnativeIoV1alpha1Organization + +partially update the specified Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { + return ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1Organization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha1OrganizationStatus Method for PatchCloudStreamnativeIoV1alpha1OrganizationStatus + +partially update status of the specified Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1OrganizationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1ClusterRole Method for ReadCloudStreamnativeIoV1alpha1ClusterRole + +read the specified ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest { + return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding + +read the specified ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +read status of the specified ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus + +read status of the specified ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey + +read the specified APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +read status of the specified APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +read the specified CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +read status of the specified CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +read the specified CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +read status of the specified CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +read the specified IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +read status of the specified IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +read the specified OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +read status of the specified OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPool Method for ReadCloudStreamnativeIoV1alpha1NamespacedPool + +read the specified Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember + +read the specified PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +read status of the specified PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption + +read the specified PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +read status of the specified PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +read status of the specified Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +read the specified PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +read status of the specified PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +read the specified PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +read status of the specified PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +read the specified PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +read status of the specified PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedRole Method for ReadCloudStreamnativeIoV1alpha1NamespacedRole + +read the specified Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +read the specified RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +read status of the specified RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +read status of the specified Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedSecret Method for ReadCloudStreamnativeIoV1alpha1NamespacedSecret + +read the specified Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +read status of the specified Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +read the specified ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +read the specified ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +read status of the specified ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +read status of the specified ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +read the specified StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +read status of the specified StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedUserExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedUser Method for ReadCloudStreamnativeIoV1alpha1NamespacedUser + +read the specified User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus + +read status of the specified User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1OrganizationExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1Organization Method for ReadCloudStreamnativeIoV1alpha1Organization + +read the specified Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest { + return ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1Organization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha1OrganizationStatus Method for ReadCloudStreamnativeIoV1alpha1OrganizationStatus + +read status of the specified Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1OrganizationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1ClusterRole Method for ReplaceCloudStreamnativeIoV1alpha1ClusterRole + +replace the specified ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding + +replace the specified ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +replace status of the specified ClusterRoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus + +replace status of the specified ClusterRole + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey + +replace the specified APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +replace status of the specified APIKey + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +replace the specified CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +replace status of the specified CloudConnection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +replace the specified CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +replace status of the specified CloudEnvironment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +replace the specified IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +replace status of the specified IdentityPool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +replace the specified OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +replace status of the specified OIDCProvider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPool Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPool + +replace the specified Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember + +replace the specified PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +replace status of the specified PoolMember + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption + +replace the specified PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +replace status of the specified PoolOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +replace status of the specified Pool + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +replace the specified PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +replace status of the specified PulsarCluster + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +replace the specified PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +replace status of the specified PulsarGateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +replace the specified PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +replace status of the specified PulsarInstance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedRole Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedRole + +replace the specified Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +replace the specified RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +replace status of the specified RoleBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +replace status of the specified Role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret + +replace the specified Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +replace status of the specified Secret + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +replace the specified ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +replace the specified ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +replace status of the specified ServiceAccountBinding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +replace status of the specified ServiceAccount + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +replace the specified StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +replace status of the specified StripeSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedUserExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedUser Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedUser + +replace the specified User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus + +replace status of the specified User + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1OrganizationExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1Organization Method for ReplaceCloudStreamnativeIoV1alpha1Organization + +replace the specified Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1Organization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus Method for ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus + +replace status of the specified Organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces + +watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/apikeys" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces + +watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/cloudconnections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces + +watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/cloudenvironments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ClusterRole Method for WatchCloudStreamnativeIoV1alpha1ClusterRole + +watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding + +watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList Method for WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList + +watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +watch changes to status of an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ClusterRoleList Method for WatchCloudStreamnativeIoV1alpha1ClusterRoleList + +watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleListExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus + +watch changes to status of an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces + +watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/identitypools" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey + +watch changes to an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList Method for WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList + +watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +watch changes to status of an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +watch changes to an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList Method for WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList + +watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +watch changes to status of an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +watch changes to an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList Method for WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList + +watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +watch changes to status of an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +watch changes to an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList Method for WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList + +watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +watch changes to status of an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +watch changes to an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList Method for WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList + +watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +watch changes to status of an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPool Method for WatchCloudStreamnativeIoV1alpha1NamespacedPool + +watch changes to an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPool") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolList Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolList + +watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember + +watch changes to an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList + +watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +watch changes to status of an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption + +watch changes to an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList + +watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +watch changes to status of an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +watch changes to status of an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +watch changes to an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList + +watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +watch changes to status of an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +watch changes to an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList + +watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +watch changes to status of an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +watch changes to an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList + +watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +watch changes to status of an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedRole Method for WatchCloudStreamnativeIoV1alpha1NamespacedRole + +watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRole") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList Method for WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList + +watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +watch changes to status of an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedRoleList Method for WatchCloudStreamnativeIoV1alpha1NamespacedRoleList + +watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +watch changes to status of an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedSecret Method for WatchCloudStreamnativeIoV1alpha1NamespacedSecret + +watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecret") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecretListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedSecretList Method for WatchCloudStreamnativeIoV1alpha1NamespacedSecretList + +watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecretList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +watch changes to status of an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +watch changes to an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList Method for WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList + +watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +watch changes to status of an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList Method for WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList + +watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +watch changes to status of an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +watch changes to an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList Method for WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList + +watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +watch changes to status of an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUserExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedUser Method for WatchCloudStreamnativeIoV1alpha1NamespacedUser + +watch changes to an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUserListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedUserList Method for WatchCloudStreamnativeIoV1alpha1NamespacedUserList + +watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUserList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus + +watch changes to status of an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces + +watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/oidcproviders" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1OrganizationExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1Organization Method for WatchCloudStreamnativeIoV1alpha1Organization + +watch changes to an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { + return ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1Organization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1OrganizationListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1OrganizationList Method for WatchCloudStreamnativeIoV1alpha1OrganizationList + +watch individual changes to a list of Organization. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { + return ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationListExecute(r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1OrganizationList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1OrganizationStatus Method for WatchCloudStreamnativeIoV1alpha1OrganizationStatus + +watch changes to status of an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1OrganizationStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces + +watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/pools" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces + +watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/poolmembers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces + +watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/pooloptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces + +watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsarclusters" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces + +watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsargateways" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces + +watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsarinstances" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces + +watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/rolebindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces + +watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces + +watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/secrets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces + +watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/serviceaccountbindings" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces + +watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/serviceaccounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces + +watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/stripesubscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces + +watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha1/watch/users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go new file mode 100644 index 0000000..a10fa14 --- /dev/null +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go @@ -0,0 +1,17171 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// CloudStreamnativeIoV1alpha2ApiService CloudStreamnativeIoV1alpha2Api service +type CloudStreamnativeIoV1alpha2ApiService service + +type ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2AWSSubscription Method for CreateCloudStreamnativeIoV1alpha2AWSSubscription + +create an AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2AWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +create status of an AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +create a BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +create a BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +create status of a BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +create status of a BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +create a MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +create status of a MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +create a ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +create a ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +create status of a ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Pretty(pretty string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) DryRun(dryRun string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) FieldManager(fieldManager string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r) +} + +/* +CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +create status of a ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2AWSSubscription Method for DeleteCloudStreamnativeIoV1alpha2AWSSubscription + +delete an AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2AWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +delete status of an AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription Method for DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription + +delete collection of AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet Method for DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet + +delete collection of BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption Method for DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption + +delete collection of BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet Method for DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet + +delete collection of MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet Method for DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet + +delete collection of ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) Continue_(continue_ string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) FieldSelector(fieldSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) LabelSelector(labelSelector string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) Limit(limit int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) ResourceVersion(resourceVersion string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption Method for DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption + +delete collection of ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +delete a BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +delete a BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +delete status of a BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +delete status of a BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +delete a MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +delete status of a MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +delete a ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +delete a ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +delete status of a ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Pretty(pretty string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) DryRun(dryRun string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Body(body V1DeleteOptions) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r) +} + +/* +DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +delete status of a ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService +} + +func (r ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest) Execute() (*V1APIResourceList, *http.Response, error) { + return r.ApiService.GetCloudStreamnativeIoV1alpha2APIResourcesExecute(r) +} + +/* +GetCloudStreamnativeIoV1alpha2APIResources Method for GetCloudStreamnativeIoV1alpha2APIResources + +get available resources + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) GetCloudStreamnativeIoV1alpha2APIResources(ctx context.Context) ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest { + return ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIResourceList +func (a *CloudStreamnativeIoV1alpha2ApiService) GetCloudStreamnativeIoV1alpha2APIResourcesExecute(r ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.GetCloudStreamnativeIoV1alpha2APIResources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2AWSSubscription Method for ListCloudStreamnativeIoV1alpha2AWSSubscription + +list or watch objects of kind AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + return ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2AWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces Method for ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces + +list or watch objects of kind BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/bookkeepersets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces Method for ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces + +list or watch objects of kind BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/bookkeepersetoptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces Method for ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces + +list or watch objects of kind MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/monitorsets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +list or watch objects of kind BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +list or watch objects of kind BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +list or watch objects of kind MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + return ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +list or watch objects of kind ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +list or watch objects of kind ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces Method for ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces + +list or watch objects of kind ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/zookeepersets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) Continue_(continue_ string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) Limit(limit int32) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) Pretty(pretty string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) Watch(watch bool) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList, *http.Response, error) { + return r.ApiService.ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesExecute(r) +} + +/* +ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces Method for ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces + +list or watch objects of kind ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { + return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList +func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/zookeepersetoptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2AWSSubscription Method for PatchCloudStreamnativeIoV1alpha2AWSSubscription + +partially update the specified AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2AWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +partially update status of the specified AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +partially update the specified BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +partially update the specified BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +partially update status of the specified BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +partially update status of the specified BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +partially update the specified MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +partially update status of the specified MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +partially update the specified ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +partially update the specified ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +partially update status of the specified ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Pretty(pretty string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) DryRun(dryRun string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) FieldManager(fieldManager string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Force(force bool) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r) +} + +/* +PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +partially update status of the specified ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2AWSSubscription Method for ReadCloudStreamnativeIoV1alpha2AWSSubscription + +read the specified AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2AWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +read status of the specified AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +read the specified BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +read the specified BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +read status of the specified BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +read status of the specified BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +read the specified MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +read status of the specified MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +read the specified ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +read the specified ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +read status of the specified ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Pretty(pretty string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r) +} + +/* +ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +read status of the specified ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2AWSSubscription Method for ReplaceCloudStreamnativeIoV1alpha2AWSSubscription + +replace the specified AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2AWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +replace status of the specified AWSSubscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +replace the specified BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +replace the specified BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +replace status of the specified BookKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +replace status of the specified BookKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +replace the specified MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +replace status of the specified MonitorSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +replace the specified ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +replace the specified ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +replace status of the specified ZooKeeperSetOption + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Pretty(pretty string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) DryRun(dryRun string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) FieldManager(fieldManager string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + return r.ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r) +} + +/* +ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +replace status of the specified ZooKeeperSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2AWSSubscription Method for WatchCloudStreamnativeIoV1alpha2AWSSubscription + +watch changes to an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { + return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscription") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList Method for WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList + +watch individual changes to a list of AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { + return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +watch changes to status of an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces + +watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces + +watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersetoptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces + +watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/monitorsets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +watch changes to an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList Method for WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList + +watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +watch changes to an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList Method for WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList + +watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +watch changes to status of an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +watch changes to status of an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +watch changes to an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList Method for WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList + +watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +watch changes to status of an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +watch changes to an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList Method for WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList + +watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +watch changes to an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList Method for WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList + +watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +watch changes to status of an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +watch changes to status of an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { + return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces + +watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/zookeepersets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest struct { + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) Limit(limit int32) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) Pretty(pretty string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) Watch(watch bool) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesExecute(r) +} + +/* +WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces Method for WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces + +watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest +*/ +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { + return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/cloud.streamnative.io/v1alpha2/watch/zookeepersetoptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io.go b/sdk/sdk-apiserver/api_compute_streamnative_io.go new file mode 100644 index 0000000..637667c --- /dev/null +++ b/sdk/sdk-apiserver/api_compute_streamnative_io.go @@ -0,0 +1,126 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + + +// ComputeStreamnativeIoApiService ComputeStreamnativeIoApi service +type ComputeStreamnativeIoApiService service + +type ApiGetComputeStreamnativeIoAPIGroupRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoApiService +} + +func (r ApiGetComputeStreamnativeIoAPIGroupRequest) Execute() (*V1APIGroup, *http.Response, error) { + return r.ApiService.GetComputeStreamnativeIoAPIGroupExecute(r) +} + +/* +GetComputeStreamnativeIoAPIGroup Method for GetComputeStreamnativeIoAPIGroup + +get information of a group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetComputeStreamnativeIoAPIGroupRequest +*/ +func (a *ComputeStreamnativeIoApiService) GetComputeStreamnativeIoAPIGroup(ctx context.Context) ApiGetComputeStreamnativeIoAPIGroupRequest { + return ApiGetComputeStreamnativeIoAPIGroupRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIGroup +func (a *ComputeStreamnativeIoApiService) GetComputeStreamnativeIoAPIGroupExecute(r ApiGetComputeStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoApiService.GetComputeStreamnativeIoAPIGroup") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go new file mode 100644 index 0000000..a4fdb0a --- /dev/null +++ b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go @@ -0,0 +1,5961 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// ComputeStreamnativeIoV1alpha1ApiService ComputeStreamnativeIoV1alpha1Api service +type ComputeStreamnativeIoV1alpha1ApiService service + +type ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) DryRun(dryRun string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) FieldManager(fieldManager string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r) +} + +/* +CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +create a FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Pretty(pretty string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) DryRun(dryRun string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) FieldManager(fieldManager string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r) +} + +/* +CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +create status of a FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Pretty(pretty string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) DryRun(dryRun string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) FieldManager(fieldManager string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r) +} + +/* +CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace + +create a Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Pretty(pretty string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) DryRun(dryRun string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) FieldManager(fieldManager string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r) +} + +/* +CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +create status of a Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) Continue_(continue_ string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) DryRun(dryRun string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) FieldSelector(fieldSelector string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) LabelSelector(labelSelector string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) Limit(limit int32) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) OrphanDependents(orphanDependents bool) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) ResourceVersion(resourceVersion string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) Body(body V1DeleteOptions) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + r.body = &body + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentExecute(r) +} + +/* +DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment Method for DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment + +delete collection of FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment(ctx context.Context, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { + return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentExecute(r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) Pretty(pretty string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) Continue_(continue_ string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.continue_ = &continue_ + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) DryRun(dryRun string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) FieldSelector(fieldSelector string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.fieldSelector = &fieldSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) LabelSelector(labelSelector string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) Limit(limit int32) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.limit = &limit + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) OrphanDependents(orphanDependents bool) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) PropagationPolicy(propagationPolicy string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) ResourceVersion(resourceVersion string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) ResourceVersionMatch(resourceVersionMatch string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) TimeoutSeconds(timeoutSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) Body(body V1DeleteOptions) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + r.body = &body + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceExecute(r) +} + +/* +DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace Method for DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace + +delete collection of Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace(ctx context.Context, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { + return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceExecute(r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) DryRun(dryRun string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) OrphanDependents(orphanDependents bool) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) PropagationPolicy(propagationPolicy string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Body(body V1DeleteOptions) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.body = &body + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r) +} + +/* +DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +delete a FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Pretty(pretty string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) DryRun(dryRun string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Body(body V1DeleteOptions) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r) +} + +/* +DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +delete status of a FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Pretty(pretty string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) DryRun(dryRun string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) OrphanDependents(orphanDependents bool) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) PropagationPolicy(propagationPolicy string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Body(body V1DeleteOptions) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.body = &body + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r) +} + +/* +DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace + +delete a Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Pretty(pretty string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) DryRun(dryRun string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.dryRun = &dryRun + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) OrphanDependents(orphanDependents bool) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) PropagationPolicy(propagationPolicy string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Body(body V1DeleteOptions) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.body = &body + return r +} + +func (r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Execute() (*V1Status, *http.Response, error) { + return r.ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r) +} + +/* +DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +delete status of a Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1Status +func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*V1Status, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService +} + +func (r ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest) Execute() (*V1APIResourceList, *http.Response, error) { + return r.ApiService.GetComputeStreamnativeIoV1alpha1APIResourcesExecute(r) +} + +/* +GetComputeStreamnativeIoV1alpha1APIResources Method for GetComputeStreamnativeIoV1alpha1APIResources + +get available resources + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) GetComputeStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest { + return ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1APIResourceList +func (a *ComputeStreamnativeIoV1alpha1ApiService) GetComputeStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.GetComputeStreamnativeIoV1alpha1APIResources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) Continue_(continue_ string) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) Limit(limit int32) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) Pretty(pretty string) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) Watch(watch bool) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList, *http.Response, error) { + return r.ApiService.ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesExecute(r) +} + +/* +ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces Method for ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces + +list or watch objects of kind FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces(ctx context.Context) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { + return ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesExecute(r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/flinkdeployments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Continue_(continue_ string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) FieldSelector(fieldSelector string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) LabelSelector(labelSelector string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Limit(limit int32) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) ResourceVersion(resourceVersion string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) TimeoutSeconds(timeoutSeconds int32) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Watch(watch bool) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.watch = &watch + return r +} + +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList, *http.Response, error) { + return r.ApiService.ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r) +} + +/* +ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +list or watch objects of kind FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, namespace string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + return ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Pretty(pretty string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Continue_(continue_ string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) FieldSelector(fieldSelector string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) LabelSelector(labelSelector string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Limit(limit int32) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.limit = &limit + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) ResourceVersion(resourceVersion string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) TimeoutSeconds(timeoutSeconds int32) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Watch(watch bool) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.watch = &watch + return r +} + +func (r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList, *http.Response, error) { + return r.ApiService.ListComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r) +} + +/* +ListComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for ListComputeStreamnativeIoV1alpha1NamespacedWorkspace + +list or watch objects of kind Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, namespace string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + return ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1NamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) Continue_(continue_ string) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) Limit(limit int32) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) Pretty(pretty string) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) Watch(watch bool) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList, *http.Response, error) { + return r.ApiService.ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesExecute(r) +} + +/* +ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces Method for ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces + +list or watch objects of kind Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces(ctx context.Context) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { + return ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList +func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesExecute(r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/workspaces" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) DryRun(dryRun string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) FieldManager(fieldManager string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Force(force bool) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.force = &force + return r +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r) +} + +/* +PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +partially update the specified FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Pretty(pretty string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) DryRun(dryRun string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) FieldManager(fieldManager string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Force(force bool) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r) +} + +/* +PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +partially update status of the specified FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Pretty(pretty string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) DryRun(dryRun string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) FieldManager(fieldManager string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Force(force bool) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.force = &force + return r +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r) +} + +/* +PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace + +partially update the specified Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + force *bool +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Pretty(pretty string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) DryRun(dryRun string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) FieldManager(fieldManager string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Force(force bool) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r) +} + +/* +PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +partially update status of the specified Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r) +} + +/* +ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +read the specified FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Pretty(pretty string) ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r) +} + +/* +ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +read status of the specified FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Pretty(pretty string) ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r) +} + +/* +ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace + +read the specified Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string +} + +// If 'true', then the output is pretty printed. +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Pretty(pretty string) ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.pretty = &pretty + return r +} + +func (r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r) +} + +/* +ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +read status of the specified Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) DryRun(dryRun string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) FieldManager(fieldManager string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r) +} + +/* +ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +replace the specified FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Pretty(pretty string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) DryRun(dryRun string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) FieldManager(fieldManager string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + return r.ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r) +} + +/* +ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +replace status of the specified FlinkDeployment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Pretty(pretty string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) DryRun(dryRun string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) FieldManager(fieldManager string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r) +} + +/* +ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace + +replace the specified Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string + fieldManager *string +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Pretty(pretty string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) DryRun(dryRun string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) FieldManager(fieldManager string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.fieldManager = &fieldManager + return r +} + +func (r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Execute() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + return r.ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r) +} + +/* +ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +replace status of the specified Workspace + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces Method for WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces + +watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces(ctx context.Context) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { + return ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesExecute(r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/flinkdeployments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +watch changes to an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { + return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList Method for WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList + +watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList(ctx context.Context, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { + return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +watch changes to status of an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { + return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace + +watch changes to an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { + return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList Method for WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList + +watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList(ctx context.Context, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { + return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest{ + ApiService: a, + ctx: ctx, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces" + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +watch changes to status of an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { + return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ + ApiService: a, + ctx: ctx, + name: name, + namespace: namespace, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest struct { + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) Continue_(continue_ string) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) LabelSelector(labelSelector string) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) Limit(limit int32) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.limit = &limit + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) Pretty(pretty string) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) Watch(watch bool) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) Execute() (*V1WatchEvent, *http.Response, error) { + return r.ApiService.WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesExecute(r) +} + +/* +WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces Method for WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces + +watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest +*/ +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces(ctx context.Context) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { + return ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V1WatchEvent +func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesExecute(r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/compute.streamnative.io/v1alpha1/watch/workspaces" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_custom_objects.go b/sdk/sdk-apiserver/api_custom_objects.go new file mode 100644 index 0000000..422820c --- /dev/null +++ b/sdk/sdk-apiserver/api_custom_objects.go @@ -0,0 +1,4466 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + + +// CustomObjectsApiService CustomObjectsApi service +type CustomObjectsApiService service + +type ApiCreateClusterCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + fieldValidation *string +} + +// The JSON schema of the Resource to create. +func (r ApiCreateClusterCustomObjectRequest) Body(body map[string]interface{}) ApiCreateClusterCustomObjectRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateClusterCustomObjectRequest) Pretty(pretty string) ApiCreateClusterCustomObjectRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateClusterCustomObjectRequest) DryRun(dryRun string) ApiCreateClusterCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiCreateClusterCustomObjectRequest) FieldManager(fieldManager string) ApiCreateClusterCustomObjectRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiCreateClusterCustomObjectRequest) FieldValidation(fieldValidation string) ApiCreateClusterCustomObjectRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiCreateClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CreateClusterCustomObjectExecute(r) +} + +/* +CreateClusterCustomObject Method for CreateClusterCustomObject + +Creates a cluster scoped Custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiCreateClusterCustomObjectRequest +*/ +func (a *CustomObjectsApiService) CreateClusterCustomObject(ctx context.Context, group string, version string, plural string) ApiCreateClusterCustomObjectRequest { + return ApiCreateClusterCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) CreateClusterCustomObjectExecute(r ApiCreateClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.CreateClusterCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateNamespacedCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string + fieldValidation *string +} + +// The JSON schema of the Resource to create. +func (r ApiCreateNamespacedCustomObjectRequest) Body(body map[string]interface{}) ApiCreateNamespacedCustomObjectRequest { + r.body = &body + return r +} + +// If 'true', then the output is pretty printed. +func (r ApiCreateNamespacedCustomObjectRequest) Pretty(pretty string) ApiCreateNamespacedCustomObjectRequest { + r.pretty = &pretty + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiCreateNamespacedCustomObjectRequest) DryRun(dryRun string) ApiCreateNamespacedCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiCreateNamespacedCustomObjectRequest) FieldManager(fieldManager string) ApiCreateNamespacedCustomObjectRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiCreateNamespacedCustomObjectRequest) FieldValidation(fieldValidation string) ApiCreateNamespacedCustomObjectRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiCreateNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.CreateNamespacedCustomObjectExecute(r) +} + +/* +CreateNamespacedCustomObject Method for CreateNamespacedCustomObject + +Creates a namespace scoped Custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param namespace The custom resource's namespace + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiCreateNamespacedCustomObjectRequest +*/ +func (a *CustomObjectsApiService) CreateNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string) ApiCreateNamespacedCustomObjectRequest { + return ApiCreateNamespacedCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) CreateNamespacedCustomObjectExecute(r ApiCreateNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.CreateNamespacedCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteClusterCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + dryRun *string + body *V1DeleteOptions +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteClusterCustomObjectRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteClusterCustomObjectRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteClusterCustomObjectRequest) OrphanDependents(orphanDependents bool) ApiDeleteClusterCustomObjectRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. +func (r ApiDeleteClusterCustomObjectRequest) PropagationPolicy(propagationPolicy string) ApiDeleteClusterCustomObjectRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteClusterCustomObjectRequest) DryRun(dryRun string) ApiDeleteClusterCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +func (r ApiDeleteClusterCustomObjectRequest) Body(body V1DeleteOptions) ApiDeleteClusterCustomObjectRequest { + r.body = &body + return r +} + +func (r ApiDeleteClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.DeleteClusterCustomObjectExecute(r) +} + +/* +DeleteClusterCustomObject Method for DeleteClusterCustomObject + +Deletes the specified cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiDeleteClusterCustomObjectRequest +*/ +func (a *CustomObjectsApiService) DeleteClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiDeleteClusterCustomObjectRequest { + return ApiDeleteClusterCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) DeleteClusterCustomObjectExecute(r ApiDeleteClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteClusterCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCollectionClusterCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + pretty *string + labelSelector *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + dryRun *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCollectionClusterCustomObjectRequest) Pretty(pretty string) ApiDeleteCollectionClusterCustomObjectRequest { + r.pretty = &pretty + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCollectionClusterCustomObjectRequest) LabelSelector(labelSelector string) ApiDeleteCollectionClusterCustomObjectRequest { + r.labelSelector = &labelSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCollectionClusterCustomObjectRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCollectionClusterCustomObjectRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCollectionClusterCustomObjectRequest) OrphanDependents(orphanDependents bool) ApiDeleteCollectionClusterCustomObjectRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. +func (r ApiDeleteCollectionClusterCustomObjectRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCollectionClusterCustomObjectRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCollectionClusterCustomObjectRequest) DryRun(dryRun string) ApiDeleteCollectionClusterCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +func (r ApiDeleteCollectionClusterCustomObjectRequest) Body(body V1DeleteOptions) ApiDeleteCollectionClusterCustomObjectRequest { + r.body = &body + return r +} + +func (r ApiDeleteCollectionClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.DeleteCollectionClusterCustomObjectExecute(r) +} + +/* +DeleteCollectionClusterCustomObject Method for DeleteCollectionClusterCustomObject + +Delete collection of cluster scoped custom objects + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiDeleteCollectionClusterCustomObjectRequest +*/ +func (a *CustomObjectsApiService) DeleteCollectionClusterCustomObject(ctx context.Context, group string, version string, plural string) ApiDeleteCollectionClusterCustomObjectRequest { + return ApiDeleteCollectionClusterCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) DeleteCollectionClusterCustomObjectExecute(r ApiDeleteCollectionClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteCollectionClusterCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCollectionNamespacedCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + pretty *string + labelSelector *string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + dryRun *string + fieldSelector *string + body *V1DeleteOptions +} + +// If 'true', then the output is pretty printed. +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) Pretty(pretty string) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.pretty = &pretty + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) LabelSelector(labelSelector string) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.labelSelector = &labelSelector + return r +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) OrphanDependents(orphanDependents bool) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) PropagationPolicy(propagationPolicy string) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) DryRun(dryRun string) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) FieldSelector(fieldSelector string) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.fieldSelector = &fieldSelector + return r +} + +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) Body(body V1DeleteOptions) ApiDeleteCollectionNamespacedCustomObjectRequest { + r.body = &body + return r +} + +func (r ApiDeleteCollectionNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.DeleteCollectionNamespacedCustomObjectExecute(r) +} + +/* +DeleteCollectionNamespacedCustomObject Method for DeleteCollectionNamespacedCustomObject + +Delete collection of namespace scoped custom objects + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param namespace The custom resource's namespace + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiDeleteCollectionNamespacedCustomObjectRequest +*/ +func (a *CustomObjectsApiService) DeleteCollectionNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string) ApiDeleteCollectionNamespacedCustomObjectRequest { + return ApiDeleteCollectionNamespacedCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) DeleteCollectionNamespacedCustomObjectExecute(r ApiDeleteCollectionNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteCollectionNamespacedCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteNamespacedCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + gracePeriodSeconds *int32 + orphanDependents *bool + propagationPolicy *string + dryRun *string + body *V1DeleteOptions +} + +// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. +func (r ApiDeleteNamespacedCustomObjectRequest) GracePeriodSeconds(gracePeriodSeconds int32) ApiDeleteNamespacedCustomObjectRequest { + r.gracePeriodSeconds = &gracePeriodSeconds + return r +} + +// Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +func (r ApiDeleteNamespacedCustomObjectRequest) OrphanDependents(orphanDependents bool) ApiDeleteNamespacedCustomObjectRequest { + r.orphanDependents = &orphanDependents + return r +} + +// Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. +func (r ApiDeleteNamespacedCustomObjectRequest) PropagationPolicy(propagationPolicy string) ApiDeleteNamespacedCustomObjectRequest { + r.propagationPolicy = &propagationPolicy + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiDeleteNamespacedCustomObjectRequest) DryRun(dryRun string) ApiDeleteNamespacedCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +func (r ApiDeleteNamespacedCustomObjectRequest) Body(body V1DeleteOptions) ApiDeleteNamespacedCustomObjectRequest { + r.body = &body + return r +} + +func (r ApiDeleteNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.DeleteNamespacedCustomObjectExecute(r) +} + +/* +DeleteNamespacedCustomObject Method for DeleteNamespacedCustomObject + +Deletes the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiDeleteNamespacedCustomObjectRequest +*/ +func (a *CustomObjectsApiService) DeleteNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiDeleteNamespacedCustomObjectRequest { + return ApiDeleteNamespacedCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) DeleteNamespacedCustomObjectExecute(r ApiDeleteNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteNamespacedCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.gracePeriodSeconds != nil { + localVarQueryParams.Add("gracePeriodSeconds", parameterToString(*r.gracePeriodSeconds, "")) + } + if r.orphanDependents != nil { + localVarQueryParams.Add("orphanDependents", parameterToString(*r.orphanDependents, "")) + } + if r.propagationPolicy != nil { + localVarQueryParams.Add("propagationPolicy", parameterToString(*r.propagationPolicy, "")) + } + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetClusterCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string +} + +func (r ApiGetClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetClusterCustomObjectExecute(r) +} + +/* +GetClusterCustomObject Method for GetClusterCustomObject + +Returns a cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetClusterCustomObjectRequest +*/ +func (a *CustomObjectsApiService) GetClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiGetClusterCustomObjectRequest { + return ApiGetClusterCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) GetClusterCustomObjectExecute(r ApiGetClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetClusterCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetClusterCustomObjectScaleRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string +} + +func (r ApiGetClusterCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetClusterCustomObjectScaleExecute(r) +} + +/* +GetClusterCustomObjectScale Method for GetClusterCustomObjectScale + +read scale of the specified custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetClusterCustomObjectScaleRequest +*/ +func (a *CustomObjectsApiService) GetClusterCustomObjectScale(ctx context.Context, group string, version string, plural string, name string) ApiGetClusterCustomObjectScaleRequest { + return ApiGetClusterCustomObjectScaleRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) GetClusterCustomObjectScaleExecute(r ApiGetClusterCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetClusterCustomObjectScale") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}/scale" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetClusterCustomObjectStatusRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string +} + +func (r ApiGetClusterCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetClusterCustomObjectStatusExecute(r) +} + +/* +GetClusterCustomObjectStatus Method for GetClusterCustomObjectStatus + +read status of the specified cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetClusterCustomObjectStatusRequest +*/ +func (a *CustomObjectsApiService) GetClusterCustomObjectStatus(ctx context.Context, group string, version string, plural string, name string) ApiGetClusterCustomObjectStatusRequest { + return ApiGetClusterCustomObjectStatusRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) GetClusterCustomObjectStatusExecute(r ApiGetClusterCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetClusterCustomObjectStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCustomObjectsAPIResourcesRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string +} + +func (r ApiGetCustomObjectsAPIResourcesRequest) Execute() (*V1APIResourceList, *http.Response, error) { + return r.ApiService.GetCustomObjectsAPIResourcesExecute(r) +} + +/* +GetCustomObjectsAPIResources Method for GetCustomObjectsAPIResources + +get available resources + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @return ApiGetCustomObjectsAPIResourcesRequest +*/ +func (a *CustomObjectsApiService) GetCustomObjectsAPIResources(ctx context.Context, group string, version string) ApiGetCustomObjectsAPIResourcesRequest { + return ApiGetCustomObjectsAPIResourcesRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + } +} + +// Execute executes the request +// @return V1APIResourceList +func (a *CustomObjectsApiService) GetCustomObjectsAPIResourcesExecute(r ApiGetCustomObjectsAPIResourcesRequest) (*V1APIResourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetCustomObjectsAPIResources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetNamespacedCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string +} + +func (r ApiGetNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetNamespacedCustomObjectExecute(r) +} + +/* +GetNamespacedCustomObject Method for GetNamespacedCustomObject + +Returns a namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetNamespacedCustomObjectRequest +*/ +func (a *CustomObjectsApiService) GetNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiGetNamespacedCustomObjectRequest { + return ApiGetNamespacedCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) GetNamespacedCustomObjectExecute(r ApiGetNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetNamespacedCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetNamespacedCustomObjectScaleRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string +} + +func (r ApiGetNamespacedCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetNamespacedCustomObjectScaleExecute(r) +} + +/* +GetNamespacedCustomObjectScale Method for GetNamespacedCustomObjectScale + +read scale of the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetNamespacedCustomObjectScaleRequest +*/ +func (a *CustomObjectsApiService) GetNamespacedCustomObjectScale(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiGetNamespacedCustomObjectScaleRequest { + return ApiGetNamespacedCustomObjectScaleRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) GetNamespacedCustomObjectScaleExecute(r ApiGetNamespacedCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetNamespacedCustomObjectScale") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetNamespacedCustomObjectStatusRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string +} + +func (r ApiGetNamespacedCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.GetNamespacedCustomObjectStatusExecute(r) +} + +/* +GetNamespacedCustomObjectStatus Method for GetNamespacedCustomObjectStatus + +read status of the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetNamespacedCustomObjectStatusRequest +*/ +func (a *CustomObjectsApiService) GetNamespacedCustomObjectStatus(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiGetNamespacedCustomObjectStatusRequest { + return ApiGetNamespacedCustomObjectStatusRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) GetNamespacedCustomObjectStatusExecute(r ApiGetNamespacedCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetNamespacedCustomObjectStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListClusterCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListClusterCustomObjectRequest) Pretty(pretty string) ApiListClusterCustomObjectRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. +func (r ApiListClusterCustomObjectRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListClusterCustomObjectRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListClusterCustomObjectRequest) Continue_(continue_ string) ApiListClusterCustomObjectRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListClusterCustomObjectRequest) FieldSelector(fieldSelector string) ApiListClusterCustomObjectRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListClusterCustomObjectRequest) LabelSelector(labelSelector string) ApiListClusterCustomObjectRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListClusterCustomObjectRequest) Limit(limit int32) ApiListClusterCustomObjectRequest { + r.limit = &limit + return r +} + +// When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. +func (r ApiListClusterCustomObjectRequest) ResourceVersion(resourceVersion string) ApiListClusterCustomObjectRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListClusterCustomObjectRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListClusterCustomObjectRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListClusterCustomObjectRequest) TimeoutSeconds(timeoutSeconds int32) ApiListClusterCustomObjectRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. +func (r ApiListClusterCustomObjectRequest) Watch(watch bool) ApiListClusterCustomObjectRequest { + r.watch = &watch + return r +} + +func (r ApiListClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ListClusterCustomObjectExecute(r) +} + +/* +ListClusterCustomObject Method for ListClusterCustomObject + +list or watch cluster scoped custom objects + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiListClusterCustomObjectRequest +*/ +func (a *CustomObjectsApiService) ListClusterCustomObject(ctx context.Context, group string, version string, plural string) ApiListClusterCustomObjectRequest { + return ApiListClusterCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ListClusterCustomObjectExecute(r ApiListClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ListClusterCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/json;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCustomObjectForAllNamespacesRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListCustomObjectForAllNamespacesRequest) Pretty(pretty string) ApiListCustomObjectForAllNamespacesRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. +func (r ApiListCustomObjectForAllNamespacesRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListCustomObjectForAllNamespacesRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListCustomObjectForAllNamespacesRequest) Continue_(continue_ string) ApiListCustomObjectForAllNamespacesRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListCustomObjectForAllNamespacesRequest) FieldSelector(fieldSelector string) ApiListCustomObjectForAllNamespacesRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListCustomObjectForAllNamespacesRequest) LabelSelector(labelSelector string) ApiListCustomObjectForAllNamespacesRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListCustomObjectForAllNamespacesRequest) Limit(limit int32) ApiListCustomObjectForAllNamespacesRequest { + r.limit = &limit + return r +} + +// When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. +func (r ApiListCustomObjectForAllNamespacesRequest) ResourceVersion(resourceVersion string) ApiListCustomObjectForAllNamespacesRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListCustomObjectForAllNamespacesRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListCustomObjectForAllNamespacesRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListCustomObjectForAllNamespacesRequest) TimeoutSeconds(timeoutSeconds int32) ApiListCustomObjectForAllNamespacesRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. +func (r ApiListCustomObjectForAllNamespacesRequest) Watch(watch bool) ApiListCustomObjectForAllNamespacesRequest { + r.watch = &watch + return r +} + +func (r ApiListCustomObjectForAllNamespacesRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ListCustomObjectForAllNamespacesExecute(r) +} + +/* +ListCustomObjectForAllNamespaces Method for ListCustomObjectForAllNamespaces + +list or watch namespace scoped custom objects + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiListCustomObjectForAllNamespacesRequest +*/ +func (a *CustomObjectsApiService) ListCustomObjectForAllNamespaces(ctx context.Context, group string, version string, plural string) ApiListCustomObjectForAllNamespacesRequest { + return ApiListCustomObjectForAllNamespacesRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ListCustomObjectForAllNamespacesExecute(r ApiListCustomObjectForAllNamespacesRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ListCustomObjectForAllNamespaces") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}#‎" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/json;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListNamespacedCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string + resourceVersionMatch *string + timeoutSeconds *int32 + watch *bool +} + +// If 'true', then the output is pretty printed. +func (r ApiListNamespacedCustomObjectRequest) Pretty(pretty string) ApiListNamespacedCustomObjectRequest { + r.pretty = &pretty + return r +} + +// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. +func (r ApiListNamespacedCustomObjectRequest) AllowWatchBookmarks(allowWatchBookmarks bool) ApiListNamespacedCustomObjectRequest { + r.allowWatchBookmarks = &allowWatchBookmarks + return r +} + +// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. +func (r ApiListNamespacedCustomObjectRequest) Continue_(continue_ string) ApiListNamespacedCustomObjectRequest { + r.continue_ = &continue_ + return r +} + +// A selector to restrict the list of returned objects by their fields. Defaults to everything. +func (r ApiListNamespacedCustomObjectRequest) FieldSelector(fieldSelector string) ApiListNamespacedCustomObjectRequest { + r.fieldSelector = &fieldSelector + return r +} + +// A selector to restrict the list of returned objects by their labels. Defaults to everything. +func (r ApiListNamespacedCustomObjectRequest) LabelSelector(labelSelector string) ApiListNamespacedCustomObjectRequest { + r.labelSelector = &labelSelector + return r +} + +// limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. +func (r ApiListNamespacedCustomObjectRequest) Limit(limit int32) ApiListNamespacedCustomObjectRequest { + r.limit = &limit + return r +} + +// When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. +func (r ApiListNamespacedCustomObjectRequest) ResourceVersion(resourceVersion string) ApiListNamespacedCustomObjectRequest { + r.resourceVersion = &resourceVersion + return r +} + +// resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset +func (r ApiListNamespacedCustomObjectRequest) ResourceVersionMatch(resourceVersionMatch string) ApiListNamespacedCustomObjectRequest { + r.resourceVersionMatch = &resourceVersionMatch + return r +} + +// Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. +func (r ApiListNamespacedCustomObjectRequest) TimeoutSeconds(timeoutSeconds int32) ApiListNamespacedCustomObjectRequest { + r.timeoutSeconds = &timeoutSeconds + return r +} + +// Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. +func (r ApiListNamespacedCustomObjectRequest) Watch(watch bool) ApiListNamespacedCustomObjectRequest { + r.watch = &watch + return r +} + +func (r ApiListNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ListNamespacedCustomObjectExecute(r) +} + +/* +ListNamespacedCustomObject Method for ListNamespacedCustomObject + +list or watch namespace scoped custom objects + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param namespace The custom resource's namespace + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiListNamespacedCustomObjectRequest +*/ +func (a *CustomObjectsApiService) ListNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string) ApiListNamespacedCustomObjectRequest { + return ApiListNamespacedCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ListNamespacedCustomObjectExecute(r ApiListNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ListNamespacedCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.pretty != nil { + localVarQueryParams.Add("pretty", parameterToString(*r.pretty, "")) + } + if r.allowWatchBookmarks != nil { + localVarQueryParams.Add("allowWatchBookmarks", parameterToString(*r.allowWatchBookmarks, "")) + } + if r.continue_ != nil { + localVarQueryParams.Add("continue", parameterToString(*r.continue_, "")) + } + if r.fieldSelector != nil { + localVarQueryParams.Add("fieldSelector", parameterToString(*r.fieldSelector, "")) + } + if r.labelSelector != nil { + localVarQueryParams.Add("labelSelector", parameterToString(*r.labelSelector, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.resourceVersion != nil { + localVarQueryParams.Add("resourceVersion", parameterToString(*r.resourceVersion, "")) + } + if r.resourceVersionMatch != nil { + localVarQueryParams.Add("resourceVersionMatch", parameterToString(*r.resourceVersionMatch, "")) + } + if r.timeoutSeconds != nil { + localVarQueryParams.Add("timeoutSeconds", parameterToString(*r.timeoutSeconds, "")) + } + if r.watch != nil { + localVarQueryParams.Add("watch", parameterToString(*r.watch, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/json;stream=watch"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchClusterCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string + force *bool +} + +// The JSON schema of the Resource to patch. +func (r ApiPatchClusterCustomObjectRequest) Body(body map[string]interface{}) ApiPatchClusterCustomObjectRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchClusterCustomObjectRequest) DryRun(dryRun string) ApiPatchClusterCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchClusterCustomObjectRequest) FieldManager(fieldManager string) ApiPatchClusterCustomObjectRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiPatchClusterCustomObjectRequest) FieldValidation(fieldValidation string) ApiPatchClusterCustomObjectRequest { + r.fieldValidation = &fieldValidation + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchClusterCustomObjectRequest) Force(force bool) ApiPatchClusterCustomObjectRequest { + r.force = &force + return r +} + +func (r ApiPatchClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.PatchClusterCustomObjectExecute(r) +} + +/* +PatchClusterCustomObject Method for PatchClusterCustomObject + +patch the specified cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchClusterCustomObjectRequest +*/ +func (a *CustomObjectsApiService) PatchClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiPatchClusterCustomObjectRequest { + return ApiPatchClusterCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) PatchClusterCustomObjectExecute(r ApiPatchClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchClusterCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchClusterCustomObjectScaleRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string + force *bool +} + +func (r ApiPatchClusterCustomObjectScaleRequest) Body(body map[string]interface{}) ApiPatchClusterCustomObjectScaleRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchClusterCustomObjectScaleRequest) DryRun(dryRun string) ApiPatchClusterCustomObjectScaleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchClusterCustomObjectScaleRequest) FieldManager(fieldManager string) ApiPatchClusterCustomObjectScaleRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiPatchClusterCustomObjectScaleRequest) FieldValidation(fieldValidation string) ApiPatchClusterCustomObjectScaleRequest { + r.fieldValidation = &fieldValidation + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchClusterCustomObjectScaleRequest) Force(force bool) ApiPatchClusterCustomObjectScaleRequest { + r.force = &force + return r +} + +func (r ApiPatchClusterCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.PatchClusterCustomObjectScaleExecute(r) +} + +/* +PatchClusterCustomObjectScale Method for PatchClusterCustomObjectScale + +partially update scale of the specified cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchClusterCustomObjectScaleRequest +*/ +func (a *CustomObjectsApiService) PatchClusterCustomObjectScale(ctx context.Context, group string, version string, plural string, name string) ApiPatchClusterCustomObjectScaleRequest { + return ApiPatchClusterCustomObjectScaleRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) PatchClusterCustomObjectScaleExecute(r ApiPatchClusterCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchClusterCustomObjectScale") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}/scale" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchClusterCustomObjectStatusRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string + force *bool +} + +func (r ApiPatchClusterCustomObjectStatusRequest) Body(body map[string]interface{}) ApiPatchClusterCustomObjectStatusRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchClusterCustomObjectStatusRequest) DryRun(dryRun string) ApiPatchClusterCustomObjectStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchClusterCustomObjectStatusRequest) FieldManager(fieldManager string) ApiPatchClusterCustomObjectStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiPatchClusterCustomObjectStatusRequest) FieldValidation(fieldValidation string) ApiPatchClusterCustomObjectStatusRequest { + r.fieldValidation = &fieldValidation + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchClusterCustomObjectStatusRequest) Force(force bool) ApiPatchClusterCustomObjectStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchClusterCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.PatchClusterCustomObjectStatusExecute(r) +} + +/* +PatchClusterCustomObjectStatus Method for PatchClusterCustomObjectStatus + +partially update status of the specified cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchClusterCustomObjectStatusRequest +*/ +func (a *CustomObjectsApiService) PatchClusterCustomObjectStatus(ctx context.Context, group string, version string, plural string, name string) ApiPatchClusterCustomObjectStatusRequest { + return ApiPatchClusterCustomObjectStatusRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) PatchClusterCustomObjectStatusExecute(r ApiPatchClusterCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchClusterCustomObjectStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchNamespacedCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string + force *bool +} + +// The JSON schema of the Resource to patch. +func (r ApiPatchNamespacedCustomObjectRequest) Body(body map[string]interface{}) ApiPatchNamespacedCustomObjectRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchNamespacedCustomObjectRequest) DryRun(dryRun string) ApiPatchNamespacedCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchNamespacedCustomObjectRequest) FieldManager(fieldManager string) ApiPatchNamespacedCustomObjectRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiPatchNamespacedCustomObjectRequest) FieldValidation(fieldValidation string) ApiPatchNamespacedCustomObjectRequest { + r.fieldValidation = &fieldValidation + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchNamespacedCustomObjectRequest) Force(force bool) ApiPatchNamespacedCustomObjectRequest { + r.force = &force + return r +} + +func (r ApiPatchNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.PatchNamespacedCustomObjectExecute(r) +} + +/* +PatchNamespacedCustomObject Method for PatchNamespacedCustomObject + +patch the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchNamespacedCustomObjectRequest +*/ +func (a *CustomObjectsApiService) PatchNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiPatchNamespacedCustomObjectRequest { + return ApiPatchNamespacedCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) PatchNamespacedCustomObjectExecute(r ApiPatchNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchNamespacedCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchNamespacedCustomObjectScaleRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string + force *bool +} + +func (r ApiPatchNamespacedCustomObjectScaleRequest) Body(body map[string]interface{}) ApiPatchNamespacedCustomObjectScaleRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchNamespacedCustomObjectScaleRequest) DryRun(dryRun string) ApiPatchNamespacedCustomObjectScaleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchNamespacedCustomObjectScaleRequest) FieldManager(fieldManager string) ApiPatchNamespacedCustomObjectScaleRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiPatchNamespacedCustomObjectScaleRequest) FieldValidation(fieldValidation string) ApiPatchNamespacedCustomObjectScaleRequest { + r.fieldValidation = &fieldValidation + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchNamespacedCustomObjectScaleRequest) Force(force bool) ApiPatchNamespacedCustomObjectScaleRequest { + r.force = &force + return r +} + +func (r ApiPatchNamespacedCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.PatchNamespacedCustomObjectScaleExecute(r) +} + +/* +PatchNamespacedCustomObjectScale Method for PatchNamespacedCustomObjectScale + +partially update scale of the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchNamespacedCustomObjectScaleRequest +*/ +func (a *CustomObjectsApiService) PatchNamespacedCustomObjectScale(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiPatchNamespacedCustomObjectScaleRequest { + return ApiPatchNamespacedCustomObjectScaleRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) PatchNamespacedCustomObjectScaleExecute(r ApiPatchNamespacedCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchNamespacedCustomObjectScale") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPatchNamespacedCustomObjectStatusRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string + force *bool +} + +func (r ApiPatchNamespacedCustomObjectStatusRequest) Body(body map[string]interface{}) ApiPatchNamespacedCustomObjectStatusRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiPatchNamespacedCustomObjectStatusRequest) DryRun(dryRun string) ApiPatchNamespacedCustomObjectStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). +func (r ApiPatchNamespacedCustomObjectStatusRequest) FieldManager(fieldManager string) ApiPatchNamespacedCustomObjectStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiPatchNamespacedCustomObjectStatusRequest) FieldValidation(fieldValidation string) ApiPatchNamespacedCustomObjectStatusRequest { + r.fieldValidation = &fieldValidation + return r +} + +// Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. +func (r ApiPatchNamespacedCustomObjectStatusRequest) Force(force bool) ApiPatchNamespacedCustomObjectStatusRequest { + r.force = &force + return r +} + +func (r ApiPatchNamespacedCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.PatchNamespacedCustomObjectStatusExecute(r) +} + +/* +PatchNamespacedCustomObjectStatus Method for PatchNamespacedCustomObjectStatus + +partially update status of the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchNamespacedCustomObjectStatusRequest +*/ +func (a *CustomObjectsApiService) PatchNamespacedCustomObjectStatus(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiPatchNamespacedCustomObjectStatusRequest { + return ApiPatchNamespacedCustomObjectStatusRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) PatchNamespacedCustomObjectStatusExecute(r ApiPatchNamespacedCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchNamespacedCustomObjectStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json-patch+json", "application/merge-patch+json", "application/apply-patch+yaml"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceClusterCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string +} + +// The JSON schema of the Resource to replace. +func (r ApiReplaceClusterCustomObjectRequest) Body(body map[string]interface{}) ApiReplaceClusterCustomObjectRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceClusterCustomObjectRequest) DryRun(dryRun string) ApiReplaceClusterCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceClusterCustomObjectRequest) FieldManager(fieldManager string) ApiReplaceClusterCustomObjectRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiReplaceClusterCustomObjectRequest) FieldValidation(fieldValidation string) ApiReplaceClusterCustomObjectRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiReplaceClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ReplaceClusterCustomObjectExecute(r) +} + +/* +ReplaceClusterCustomObject Method for ReplaceClusterCustomObject + +replace the specified cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceClusterCustomObjectRequest +*/ +func (a *CustomObjectsApiService) ReplaceClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiReplaceClusterCustomObjectRequest { + return ApiReplaceClusterCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ReplaceClusterCustomObjectExecute(r ApiReplaceClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceClusterCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceClusterCustomObjectScaleRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string +} + +func (r ApiReplaceClusterCustomObjectScaleRequest) Body(body map[string]interface{}) ApiReplaceClusterCustomObjectScaleRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceClusterCustomObjectScaleRequest) DryRun(dryRun string) ApiReplaceClusterCustomObjectScaleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceClusterCustomObjectScaleRequest) FieldManager(fieldManager string) ApiReplaceClusterCustomObjectScaleRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiReplaceClusterCustomObjectScaleRequest) FieldValidation(fieldValidation string) ApiReplaceClusterCustomObjectScaleRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiReplaceClusterCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ReplaceClusterCustomObjectScaleExecute(r) +} + +/* +ReplaceClusterCustomObjectScale Method for ReplaceClusterCustomObjectScale + +replace scale of the specified cluster scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceClusterCustomObjectScaleRequest +*/ +func (a *CustomObjectsApiService) ReplaceClusterCustomObjectScale(ctx context.Context, group string, version string, plural string, name string) ApiReplaceClusterCustomObjectScaleRequest { + return ApiReplaceClusterCustomObjectScaleRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ReplaceClusterCustomObjectScaleExecute(r ApiReplaceClusterCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceClusterCustomObjectScale") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}/scale" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceClusterCustomObjectStatusRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string +} + +func (r ApiReplaceClusterCustomObjectStatusRequest) Body(body map[string]interface{}) ApiReplaceClusterCustomObjectStatusRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceClusterCustomObjectStatusRequest) DryRun(dryRun string) ApiReplaceClusterCustomObjectStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceClusterCustomObjectStatusRequest) FieldManager(fieldManager string) ApiReplaceClusterCustomObjectStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiReplaceClusterCustomObjectStatusRequest) FieldValidation(fieldValidation string) ApiReplaceClusterCustomObjectStatusRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiReplaceClusterCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ReplaceClusterCustomObjectStatusExecute(r) +} + +/* +ReplaceClusterCustomObjectStatus Method for ReplaceClusterCustomObjectStatus + +replace status of the cluster scoped specified custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceClusterCustomObjectStatusRequest +*/ +func (a *CustomObjectsApiService) ReplaceClusterCustomObjectStatus(ctx context.Context, group string, version string, plural string, name string) ApiReplaceClusterCustomObjectStatusRequest { + return ApiReplaceClusterCustomObjectStatusRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ReplaceClusterCustomObjectStatusExecute(r ApiReplaceClusterCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceClusterCustomObjectStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/{plural}/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceNamespacedCustomObjectRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string +} + +// The JSON schema of the Resource to replace. +func (r ApiReplaceNamespacedCustomObjectRequest) Body(body map[string]interface{}) ApiReplaceNamespacedCustomObjectRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceNamespacedCustomObjectRequest) DryRun(dryRun string) ApiReplaceNamespacedCustomObjectRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceNamespacedCustomObjectRequest) FieldManager(fieldManager string) ApiReplaceNamespacedCustomObjectRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiReplaceNamespacedCustomObjectRequest) FieldValidation(fieldValidation string) ApiReplaceNamespacedCustomObjectRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiReplaceNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ReplaceNamespacedCustomObjectExecute(r) +} + +/* +ReplaceNamespacedCustomObject Method for ReplaceNamespacedCustomObject + +replace the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceNamespacedCustomObjectRequest +*/ +func (a *CustomObjectsApiService) ReplaceNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiReplaceNamespacedCustomObjectRequest { + return ApiReplaceNamespacedCustomObjectRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectExecute(r ApiReplaceNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceNamespacedCustomObject") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceNamespacedCustomObjectScaleRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string +} + +func (r ApiReplaceNamespacedCustomObjectScaleRequest) Body(body map[string]interface{}) ApiReplaceNamespacedCustomObjectScaleRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceNamespacedCustomObjectScaleRequest) DryRun(dryRun string) ApiReplaceNamespacedCustomObjectScaleRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceNamespacedCustomObjectScaleRequest) FieldManager(fieldManager string) ApiReplaceNamespacedCustomObjectScaleRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiReplaceNamespacedCustomObjectScaleRequest) FieldValidation(fieldValidation string) ApiReplaceNamespacedCustomObjectScaleRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiReplaceNamespacedCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ReplaceNamespacedCustomObjectScaleExecute(r) +} + +/* +ReplaceNamespacedCustomObjectScale Method for ReplaceNamespacedCustomObjectScale + +replace scale of the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceNamespacedCustomObjectScaleRequest +*/ +func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectScale(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiReplaceNamespacedCustomObjectScaleRequest { + return ApiReplaceNamespacedCustomObjectScaleRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectScaleExecute(r ApiReplaceNamespacedCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceNamespacedCustomObjectScale") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiReplaceNamespacedCustomObjectStatusRequest struct { + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string + fieldValidation *string +} + +func (r ApiReplaceNamespacedCustomObjectStatusRequest) Body(body map[string]interface{}) ApiReplaceNamespacedCustomObjectStatusRequest { + r.body = &body + return r +} + +// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed +func (r ApiReplaceNamespacedCustomObjectStatusRequest) DryRun(dryRun string) ApiReplaceNamespacedCustomObjectStatusRequest { + r.dryRun = &dryRun + return r +} + +// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. +func (r ApiReplaceNamespacedCustomObjectStatusRequest) FieldManager(fieldManager string) ApiReplaceNamespacedCustomObjectStatusRequest { + r.fieldManager = &fieldManager + return r +} + +// fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) +func (r ApiReplaceNamespacedCustomObjectStatusRequest) FieldValidation(fieldValidation string) ApiReplaceNamespacedCustomObjectStatusRequest { + r.fieldValidation = &fieldValidation + return r +} + +func (r ApiReplaceNamespacedCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { + return r.ApiService.ReplaceNamespacedCustomObjectStatusExecute(r) +} + +/* +ReplaceNamespacedCustomObjectStatus Method for ReplaceNamespacedCustomObjectStatus + +replace status of the specified namespace scoped custom object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceNamespacedCustomObjectStatusRequest +*/ +func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectStatus(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiReplaceNamespacedCustomObjectStatusRequest { + return ApiReplaceNamespacedCustomObjectStatusRequest{ + ApiService: a, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, + } +} + +// Execute executes the request +// @return map[string]interface{} +func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectStatusExecute(r ApiReplaceNamespacedCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceNamespacedCustomObjectStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" + localVarPath = strings.Replace(localVarPath, "{"+"group"+"}", url.PathEscape(parameterToString(r.group, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"version"+"}", url.PathEscape(parameterToString(r.version, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"namespace"+"}", url.PathEscape(parameterToString(r.namespace, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"plural"+"}", url.PathEscape(parameterToString(r.plural, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", url.PathEscape(parameterToString(r.name, "")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + if r.dryRun != nil { + localVarQueryParams.Add("dryRun", parameterToString(*r.dryRun, "")) + } + if r.fieldManager != nil { + localVarQueryParams.Add("fieldManager", parameterToString(*r.fieldManager, "")) + } + if r.fieldValidation != nil { + localVarQueryParams.Add("fieldValidation", parameterToString(*r.fieldValidation, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json", "application/yaml", "application/vnd.kubernetes.protobuf"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/api_version.go b/sdk/sdk-apiserver/api_version.go new file mode 100644 index 0000000..4cb386d --- /dev/null +++ b/sdk/sdk-apiserver/api_version.go @@ -0,0 +1,126 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + "net/url" +) + + +// VersionApiService VersionApi service +type VersionApiService service + +type ApiGetCodeVersionRequest struct { + ctx context.Context + ApiService *VersionApiService +} + +func (r ApiGetCodeVersionRequest) Execute() (*VersionInfo, *http.Response, error) { + return r.ApiService.GetCodeVersionExecute(r) +} + +/* +GetCodeVersion Method for GetCodeVersion + +get the code version + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCodeVersionRequest +*/ +func (a *VersionApiService) GetCodeVersion(ctx context.Context) ApiGetCodeVersionRequest { + return ApiGetCodeVersionRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return VersionInfo +func (a *VersionApiService) GetCodeVersionExecute(r ApiGetCodeVersionRequest) (*VersionInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VersionInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionApiService.GetCodeVersion") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/version/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-apiserver/client.go b/sdk/sdk-apiserver/client.go new file mode 100644 index 0000000..fa563bb --- /dev/null +++ b/sdk/sdk-apiserver/client.go @@ -0,0 +1,600 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Api API vv0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ApisApi *ApisApiService + + AuthorizationStreamnativeIoApi *AuthorizationStreamnativeIoApiService + + AuthorizationStreamnativeIoV1alpha1Api *AuthorizationStreamnativeIoV1alpha1ApiService + + BillingStreamnativeIoApi *BillingStreamnativeIoApiService + + BillingStreamnativeIoV1alpha1Api *BillingStreamnativeIoV1alpha1ApiService + + CloudStreamnativeIoApi *CloudStreamnativeIoApiService + + CloudStreamnativeIoV1alpha1Api *CloudStreamnativeIoV1alpha1ApiService + + CloudStreamnativeIoV1alpha2Api *CloudStreamnativeIoV1alpha2ApiService + + ComputeStreamnativeIoApi *ComputeStreamnativeIoApiService + + ComputeStreamnativeIoV1alpha1Api *ComputeStreamnativeIoV1alpha1ApiService + + CustomObjectsApi *CustomObjectsApiService + + VersionApi *VersionApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ApisApi = (*ApisApiService)(&c.common) + c.AuthorizationStreamnativeIoApi = (*AuthorizationStreamnativeIoApiService)(&c.common) + c.AuthorizationStreamnativeIoV1alpha1Api = (*AuthorizationStreamnativeIoV1alpha1ApiService)(&c.common) + c.BillingStreamnativeIoApi = (*BillingStreamnativeIoApiService)(&c.common) + c.BillingStreamnativeIoV1alpha1Api = (*BillingStreamnativeIoV1alpha1ApiService)(&c.common) + c.CloudStreamnativeIoApi = (*CloudStreamnativeIoApiService)(&c.common) + c.CloudStreamnativeIoV1alpha1Api = (*CloudStreamnativeIoV1alpha1ApiService)(&c.common) + c.CloudStreamnativeIoV1alpha2Api = (*CloudStreamnativeIoV1alpha2ApiService)(&c.common) + c.ComputeStreamnativeIoApi = (*ComputeStreamnativeIoApiService)(&c.common) + c.ComputeStreamnativeIoV1alpha1Api = (*ComputeStreamnativeIoV1alpha1ApiService)(&c.common) + c.CustomObjectsApi = (*CustomObjectsApiService)(&c.common) + c.VersionApi = (*VersionApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(**os.File); ok { + *f, err = ioutil.TempFile("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + 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 + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(**os.File); ok { + _, err = bodyBuf.ReadFrom(*fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/sdk/sdk-apiserver/configuration.go b/sdk/sdk-apiserver/configuration.go new file mode 100644 index 0000000..081106c --- /dev/null +++ b/sdk/sdk-apiserver/configuration.go @@ -0,0 +1,234 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/0.0.1/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("The variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/sdk/sdk-apiserver/docs/ApisApi.md b/sdk/sdk-apiserver/docs/ApisApi.md new file mode 100644 index 0000000..0831b4b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ApisApi.md @@ -0,0 +1,70 @@ +# \ApisApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAPIVersions**](ApisApi.md#GetAPIVersions) | **Get** /apis/ | + + + +## GetAPIVersions + +> V1APIGroupList GetAPIVersions(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApisApi.GetAPIVersions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApisApi.GetAPIVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAPIVersions`: V1APIGroupList + fmt.Fprintf(os.Stdout, "Response from `ApisApi.GetAPIVersions`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAPIVersionsRequest struct via the builder pattern + + +### Return type + +[**V1APIGroupList**](V1APIGroupList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoApi.md b/sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoApi.md new file mode 100644 index 0000000..86a4968 --- /dev/null +++ b/sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoApi.md @@ -0,0 +1,70 @@ +# \AuthorizationStreamnativeIoApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAuthorizationStreamnativeIoAPIGroup**](AuthorizationStreamnativeIoApi.md#GetAuthorizationStreamnativeIoAPIGroup) | **Get** /apis/authorization.streamnative.io/ | + + + +## GetAuthorizationStreamnativeIoAPIGroup + +> V1APIGroup GetAuthorizationStreamnativeIoAPIGroup(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoApi.GetAuthorizationStreamnativeIoAPIGroup(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoApi.GetAuthorizationStreamnativeIoAPIGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthorizationStreamnativeIoAPIGroup`: V1APIGroup + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoApi.GetAuthorizationStreamnativeIoAPIGroup`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthorizationStreamnativeIoAPIGroupRequest struct via the builder pattern + + +### Return type + +[**V1APIGroup**](V1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoV1alpha1Api.md b/sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoV1alpha1Api.md new file mode 100644 index 0000000..b37f0d6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/AuthorizationStreamnativeIoV1alpha1Api.md @@ -0,0 +1,1619 @@ +# \AuthorizationStreamnativeIoV1alpha1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](AuthorizationStreamnativeIoV1alpha1Api.md#CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount) | **Post** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts | +[**CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](AuthorizationStreamnativeIoV1alpha1Api.md#CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus) | **Post** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +[**CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview**](AuthorizationStreamnativeIoV1alpha1Api.md#CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview) | **Post** /apis/authorization.streamnative.io/v1alpha1/selfsubjectrbacreviews | +[**CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview**](AuthorizationStreamnativeIoV1alpha1Api.md#CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview) | **Post** /apis/authorization.streamnative.io/v1alpha1/selfsubjectrulesreviews | +[**CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview**](AuthorizationStreamnativeIoV1alpha1Api.md#CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview) | **Post** /apis/authorization.streamnative.io/v1alpha1/selfsubjectuserreviews | +[**CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview**](AuthorizationStreamnativeIoV1alpha1Api.md#CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview) | **Post** /apis/authorization.streamnative.io/v1alpha1/subjectrolereviews | +[**CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview**](AuthorizationStreamnativeIoV1alpha1Api.md#CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview) | **Post** /apis/authorization.streamnative.io/v1alpha1/subjectrulesreviews | +[**DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount**](AuthorizationStreamnativeIoV1alpha1Api.md#DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount) | **Delete** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts | +[**DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](AuthorizationStreamnativeIoV1alpha1Api.md#DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount) | **Delete** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +[**DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](AuthorizationStreamnativeIoV1alpha1Api.md#DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus) | **Delete** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +[**GetAuthorizationStreamnativeIoV1alpha1APIResources**](AuthorizationStreamnativeIoV1alpha1Api.md#GetAuthorizationStreamnativeIoV1alpha1APIResources) | **Get** /apis/authorization.streamnative.io/v1alpha1/ | +[**ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces**](AuthorizationStreamnativeIoV1alpha1Api.md#ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces) | **Get** /apis/authorization.streamnative.io/v1alpha1/iamaccounts | +[**ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](AuthorizationStreamnativeIoV1alpha1Api.md#ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount) | **Get** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts | +[**PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](AuthorizationStreamnativeIoV1alpha1Api.md#PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount) | **Patch** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +[**PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](AuthorizationStreamnativeIoV1alpha1Api.md#PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus) | **Patch** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +[**ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](AuthorizationStreamnativeIoV1alpha1Api.md#ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount) | **Get** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +[**ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](AuthorizationStreamnativeIoV1alpha1Api.md#ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus) | **Get** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +[**ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount**](AuthorizationStreamnativeIoV1alpha1Api.md#ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount) | **Put** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name} | +[**ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](AuthorizationStreamnativeIoV1alpha1Api.md#ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus) | **Put** /apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status | +[**WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus**](AuthorizationStreamnativeIoV1alpha1Api.md#WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus) | **Get** /apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}/status | + + + +## CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview(ctx).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview(context.Background()).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview(ctx).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview(context.Background()).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview(ctx).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview(context.Background()).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview(ctx).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview(context.Background()).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview(ctx).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview(context.Background()).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount + +> V1Status DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount`: V1Status + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +> V1Status DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: V1Status + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +> V1Status DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAuthorizationStreamnativeIoV1alpha1APIResources + +> V1APIResourceList GetAuthorizationStreamnativeIoV1alpha1APIResources(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.GetAuthorizationStreamnativeIoV1alpha1APIResources(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.GetAuthorizationStreamnativeIoV1alpha1APIResources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthorizationStreamnativeIoV1alpha1APIResources`: V1APIResourceList + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.GetAuthorizationStreamnativeIoV1alpha1APIResources`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest struct via the builder pattern + + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount() // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus + +> V1WatchEvent WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IamAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AuthorizationStreamnativeIoV1alpha1Api.WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthorizationStreamnativeIoV1alpha1Api.WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `AuthorizationStreamnativeIoV1alpha1Api.WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IamAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/BillingStreamnativeIoApi.md b/sdk/sdk-apiserver/docs/BillingStreamnativeIoApi.md new file mode 100644 index 0000000..c8e94f7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/BillingStreamnativeIoApi.md @@ -0,0 +1,70 @@ +# \BillingStreamnativeIoApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetBillingStreamnativeIoAPIGroup**](BillingStreamnativeIoApi.md#GetBillingStreamnativeIoAPIGroup) | **Get** /apis/billing.streamnative.io/ | + + + +## GetBillingStreamnativeIoAPIGroup + +> V1APIGroup GetBillingStreamnativeIoAPIGroup(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoApi.GetBillingStreamnativeIoAPIGroup(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoApi.GetBillingStreamnativeIoAPIGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBillingStreamnativeIoAPIGroup`: V1APIGroup + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoApi.GetBillingStreamnativeIoAPIGroup`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBillingStreamnativeIoAPIGroupRequest struct via the builder pattern + + +### Return type + +[**V1APIGroup**](V1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/BillingStreamnativeIoV1alpha1Api.md b/sdk/sdk-apiserver/docs/BillingStreamnativeIoV1alpha1Api.md new file mode 100644 index 0000000..d76dc75 --- /dev/null +++ b/sdk/sdk-apiserver/docs/BillingStreamnativeIoV1alpha1Api.md @@ -0,0 +1,11400 @@ +# \BillingStreamnativeIoV1alpha1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/customerportalrequests | +[**CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents | +[**CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +[**CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers | +[**CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +[**CreateBillingStreamnativeIoV1alpha1NamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedProduct) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products | +[**CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +[**CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents | +[**CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +[**CreateBillingStreamnativeIoV1alpha1NamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedSubscription) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions | +[**CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents | +[**CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +[**CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +[**CreateBillingStreamnativeIoV1alpha1PublicOffer**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1PublicOffer) | **Post** /apis/billing.streamnative.io/v1alpha1/publicoffers | +[**CreateBillingStreamnativeIoV1alpha1PublicOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1PublicOfferStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +[**CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview) | **Post** /apis/billing.streamnative.io/v1alpha1/sugerentitlementreviews | +[**CreateBillingStreamnativeIoV1alpha1TestClock**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1TestClock) | **Post** /apis/billing.streamnative.io/v1alpha1/testclocks | +[**CreateBillingStreamnativeIoV1alpha1TestClockStatus**](BillingStreamnativeIoV1alpha1Api.md#CreateBillingStreamnativeIoV1alpha1TestClockStatus) | **Post** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents | +[**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers | +[**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products | +[**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents | +[**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions | +[**DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents | +[**DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/publicoffers | +[**DeleteBillingStreamnativeIoV1alpha1CollectionTestClock**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1CollectionTestClock) | **Delete** /apis/billing.streamnative.io/v1alpha1/testclocks | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedProduct) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1PublicOffer**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1PublicOffer) | **Delete** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +[**DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +[**DeleteBillingStreamnativeIoV1alpha1TestClock**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1TestClock) | **Delete** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +[**DeleteBillingStreamnativeIoV1alpha1TestClockStatus**](BillingStreamnativeIoV1alpha1Api.md#DeleteBillingStreamnativeIoV1alpha1TestClockStatus) | **Delete** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +[**GetBillingStreamnativeIoV1alpha1APIResources**](BillingStreamnativeIoV1alpha1Api.md#GetBillingStreamnativeIoV1alpha1APIResources) | **Get** /apis/billing.streamnative.io/v1alpha1/ | +[**ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents | +[**ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers | +[**ListBillingStreamnativeIoV1alpha1NamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1NamespacedProduct) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products | +[**ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents | +[**ListBillingStreamnativeIoV1alpha1NamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1NamespacedSubscription) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions | +[**ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents | +[**ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/paymentintents | +[**ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/privateoffers | +[**ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/products | +[**ListBillingStreamnativeIoV1alpha1PublicOffer**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1PublicOffer) | **Get** /apis/billing.streamnative.io/v1alpha1/publicoffers | +[**ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/setupintents | +[**ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/subscriptions | +[**ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/subscriptionintents | +[**ListBillingStreamnativeIoV1alpha1TestClock**](BillingStreamnativeIoV1alpha1Api.md#ListBillingStreamnativeIoV1alpha1TestClock) | **Get** /apis/billing.streamnative.io/v1alpha1/testclocks | +[**PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +[**PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +[**PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +[**PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +[**PatchBillingStreamnativeIoV1alpha1NamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedProduct) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +[**PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +[**PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +[**PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +[**PatchBillingStreamnativeIoV1alpha1NamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedSubscription) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +[**PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +[**PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +[**PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +[**PatchBillingStreamnativeIoV1alpha1PublicOffer**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1PublicOffer) | **Patch** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +[**PatchBillingStreamnativeIoV1alpha1PublicOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1PublicOfferStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +[**PatchBillingStreamnativeIoV1alpha1TestClock**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1TestClock) | **Patch** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +[**PatchBillingStreamnativeIoV1alpha1TestClockStatus**](BillingStreamnativeIoV1alpha1Api.md#PatchBillingStreamnativeIoV1alpha1TestClockStatus) | **Patch** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +[**ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +[**ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1NamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedProduct) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +[**ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +[**ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1NamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedSubscription) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +[**ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +[**ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1PublicOffer**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1PublicOffer) | **Get** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +[**ReadBillingStreamnativeIoV1alpha1PublicOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1PublicOfferStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +[**ReadBillingStreamnativeIoV1alpha1TestClock**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1TestClock) | **Get** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +[**ReadBillingStreamnativeIoV1alpha1TestClockStatus**](BillingStreamnativeIoV1alpha1Api.md#ReadBillingStreamnativeIoV1alpha1TestClockStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1PublicOffer**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1PublicOffer) | **Put** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status | +[**ReplaceBillingStreamnativeIoV1alpha1TestClock**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1TestClock) | **Put** /apis/billing.streamnative.io/v1alpha1/testclocks/{name} | +[**ReplaceBillingStreamnativeIoV1alpha1TestClockStatus**](BillingStreamnativeIoV1alpha1Api.md#ReplaceBillingStreamnativeIoV1alpha1TestClockStatus) | **Put** /apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name} | +[**WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents | +[**WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name} | +[**WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers | +[**WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1NamespacedProduct**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedProduct) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name} | +[**WatchBillingStreamnativeIoV1alpha1NamespacedProductList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedProductList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products | +[**WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name} | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSubscription**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSubscription) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name} | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name} | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions | +[**WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/paymentintents | +[**WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/privateoffers | +[**WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/products | +[**WatchBillingStreamnativeIoV1alpha1PublicOffer**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1PublicOffer) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name} | +[**WatchBillingStreamnativeIoV1alpha1PublicOfferList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1PublicOfferList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/publicoffers | +[**WatchBillingStreamnativeIoV1alpha1PublicOfferStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1PublicOfferStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}/status | +[**WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/setupintents | +[**WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/subscriptionintents | +[**WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/subscriptions | +[**WatchBillingStreamnativeIoV1alpha1TestClock**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1TestClock) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name} | +[**WatchBillingStreamnativeIoV1alpha1TestClockList**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1TestClockList) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/testclocks | +[**WatchBillingStreamnativeIoV1alpha1TestClockStatus**](BillingStreamnativeIoV1alpha1Api.md#WatchBillingStreamnativeIoV1alpha1TestClockStatus) | **Get** /apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}/status | + + + +## CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest(ctx, namespace).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest(context.Background(), namespace).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedProduct + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product CreateBillingStreamnativeIoV1alpha1NamespacedProduct(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedProduct(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedProduct`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription CreateBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscription(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedSubscription`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1PublicOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer CreateBillingStreamnativeIoV1alpha1PublicOffer(ctx).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1PublicOffer(context.Background()).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1PublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1PublicOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1PublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1PublicOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer CreateBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1PublicOfferStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1PublicOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1PublicOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1PublicOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview(ctx).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview(context.Background()).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1TestClock + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock CreateBillingStreamnativeIoV1alpha1TestClock(ctx).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1TestClock(context.Background()).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1TestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1TestClock`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1TestClock`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1TestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateBillingStreamnativeIoV1alpha1TestClockStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock CreateBillingStreamnativeIoV1alpha1TestClockStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1TestClockStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1TestClockStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBillingStreamnativeIoV1alpha1TestClockStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.CreateBillingStreamnativeIoV1alpha1TestClockStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer(ctx).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer(context.Background()).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1CollectionTestClock + +> V1Status DeleteBillingStreamnativeIoV1alpha1CollectionTestClock(ctx).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionTestClock(context.Background()).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionTestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1CollectionTestClock`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1CollectionTestClock`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedProduct + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedProduct(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedProduct(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedProduct`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1PublicOffer + +> V1Status DeleteBillingStreamnativeIoV1alpha1PublicOffer(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1PublicOffer(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1PublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1PublicOffer`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1PublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1TestClock + +> V1Status DeleteBillingStreamnativeIoV1alpha1TestClock(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1TestClock(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1TestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1TestClock`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1TestClock`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1TestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteBillingStreamnativeIoV1alpha1TestClockStatus + +> V1Status DeleteBillingStreamnativeIoV1alpha1TestClockStatus(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1TestClockStatus(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1TestClockStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBillingStreamnativeIoV1alpha1TestClockStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.DeleteBillingStreamnativeIoV1alpha1TestClockStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetBillingStreamnativeIoV1alpha1APIResources + +> V1APIResourceList GetBillingStreamnativeIoV1alpha1APIResources(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.GetBillingStreamnativeIoV1alpha1APIResources(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.GetBillingStreamnativeIoV1alpha1APIResources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBillingStreamnativeIoV1alpha1APIResources`: V1APIResourceList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.GetBillingStreamnativeIoV1alpha1APIResources`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetBillingStreamnativeIoV1alpha1APIResourcesRequest struct via the builder pattern + + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1NamespacedProduct + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList ListBillingStreamnativeIoV1alpha1NamespacedProduct(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedProduct(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1NamespacedProduct`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1NamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1NamespacedSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList ListBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSubscription(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1NamespacedSubscription`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1PublicOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList ListBillingStreamnativeIoV1alpha1PublicOffer(ctx).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PublicOffer(context.Background()).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1PublicOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1PublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1PublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListBillingStreamnativeIoV1alpha1TestClock + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList ListBillingStreamnativeIoV1alpha1TestClock(ctx).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1TestClock(context.Background()).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1TestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBillingStreamnativeIoV1alpha1TestClock`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ListBillingStreamnativeIoV1alpha1TestClock`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListBillingStreamnativeIoV1alpha1TestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedProduct + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product PatchBillingStreamnativeIoV1alpha1NamespacedProduct(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedProduct(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedProduct`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription PatchBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscription(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedSubscription`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1PublicOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer PatchBillingStreamnativeIoV1alpha1PublicOffer(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1PublicOffer(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1PublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1PublicOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1PublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1PublicOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer PatchBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1PublicOfferStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1PublicOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1PublicOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1PublicOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1TestClock + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock PatchBillingStreamnativeIoV1alpha1TestClock(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1TestClock(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1TestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1TestClock`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1TestClock`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1TestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchBillingStreamnativeIoV1alpha1TestClockStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock PatchBillingStreamnativeIoV1alpha1TestClockStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1TestClockStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1TestClockStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBillingStreamnativeIoV1alpha1TestClockStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.PatchBillingStreamnativeIoV1alpha1TestClockStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedProduct + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ReadBillingStreamnativeIoV1alpha1NamespacedProduct(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedProduct(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedProduct`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ReadBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscription(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedSubscription`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1PublicOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ReadBillingStreamnativeIoV1alpha1PublicOffer(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1PublicOffer(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1PublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1PublicOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1PublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1PublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1PublicOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ReadBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1PublicOfferStatus(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1PublicOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1PublicOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1PublicOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1TestClock + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ReadBillingStreamnativeIoV1alpha1TestClock(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1TestClock(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1TestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1TestClock`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1TestClock`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1TestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadBillingStreamnativeIoV1alpha1TestClockStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ReadBillingStreamnativeIoV1alpha1TestClockStatus(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1TestClockStatus(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1TestClockStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadBillingStreamnativeIoV1alpha1TestClockStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReadBillingStreamnativeIoV1alpha1TestClockStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1PublicOffer + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ReplaceBillingStreamnativeIoV1alpha1PublicOffer(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1PublicOffer(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1PublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1PublicOffer`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1PublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1TestClock + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ReplaceBillingStreamnativeIoV1alpha1TestClock(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1TestClock(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1TestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1TestClock`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1TestClock`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1TestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceBillingStreamnativeIoV1alpha1TestClockStatus + +> ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ReplaceBillingStreamnativeIoV1alpha1TestClockStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock() // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1TestClockStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1TestClockStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceBillingStreamnativeIoV1alpha1TestClockStatus`: ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.ReplaceBillingStreamnativeIoV1alpha1TestClockStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PaymentIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PaymentIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PrivateOffer + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PrivateOffer | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedProduct + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedProduct(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProduct(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProduct``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedProduct`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProduct`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedProductList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedProductList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProductList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProductList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedProductList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProductList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Product + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Product | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SetupIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SetupIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSubscription + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscription(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSubscription`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the SubscriptionIntent + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the SubscriptionIntent | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Subscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Subscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1PublicOffer + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1PublicOffer(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOffer(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOffer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1PublicOffer`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOffer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1PublicOfferList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1PublicOfferList(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOfferList(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOfferList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1PublicOfferList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOfferList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1PublicOfferStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PublicOffer + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOfferStatus(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOfferStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1PublicOfferStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1PublicOfferStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PublicOffer | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1TestClock + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1TestClock(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClock(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1TestClock`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClock`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1TestClockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1TestClockList + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1TestClockList(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClockList(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClockList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1TestClockList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClockList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1TestClockListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchBillingStreamnativeIoV1alpha1TestClockStatus + +> V1WatchEvent WatchBillingStreamnativeIoV1alpha1TestClockStatus(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the TestClock + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClockStatus(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClockStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchBillingStreamnativeIoV1alpha1TestClockStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `BillingStreamnativeIoV1alpha1Api.WatchBillingStreamnativeIoV1alpha1TestClockStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the TestClock | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/CloudStreamnativeIoApi.md b/sdk/sdk-apiserver/docs/CloudStreamnativeIoApi.md new file mode 100644 index 0000000..fac7a10 --- /dev/null +++ b/sdk/sdk-apiserver/docs/CloudStreamnativeIoApi.md @@ -0,0 +1,70 @@ +# \CloudStreamnativeIoApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetCloudStreamnativeIoAPIGroup**](CloudStreamnativeIoApi.md#GetCloudStreamnativeIoAPIGroup) | **Get** /apis/cloud.streamnative.io/ | + + + +## GetCloudStreamnativeIoAPIGroup + +> V1APIGroup GetCloudStreamnativeIoAPIGroup(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoApi.GetCloudStreamnativeIoAPIGroup(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoApi.GetCloudStreamnativeIoAPIGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCloudStreamnativeIoAPIGroup`: V1APIGroup + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoApi.GetCloudStreamnativeIoAPIGroup`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCloudStreamnativeIoAPIGroupRequest struct via the builder pattern + + +### Return type + +[**V1APIGroup**](V1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha1Api.md b/sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha1Api.md new file mode 100644 index 0000000..dd36288 --- /dev/null +++ b/sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha1Api.md @@ -0,0 +1,29996 @@ +# \CloudStreamnativeIoV1alpha1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCloudStreamnativeIoV1alpha1ClusterRole**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1ClusterRole) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterroles | +[**CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings | +[**CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys | +[**CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections | +[**CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments | +[**CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools | +[**CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders | +[**CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPool) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances | +[**CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedRole) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles | +[**CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings | +[**CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedSecret) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets | +[**CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts | +[**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings | +[**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions | +[**CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1NamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedUser) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users | +[**CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1Organization**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1Organization) | **Post** /apis/cloud.streamnative.io/v1alpha1/organizations | +[**CreateCloudStreamnativeIoV1alpha1OrganizationStatus**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1OrganizationStatus) | **Post** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +[**CreateCloudStreamnativeIoV1alpha1SelfRegistration**](CloudStreamnativeIoV1alpha1Api.md#CreateCloudStreamnativeIoV1alpha1SelfRegistration) | **Post** /apis/cloud.streamnative.io/v1alpha1/selfregistrations | +[**DeleteCloudStreamnativeIoV1alpha1ClusterRole**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1ClusterRole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +[**DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +[**DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterroles | +[**DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions | +[**DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users | +[**DeleteCloudStreamnativeIoV1alpha1CollectionOrganization**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1CollectionOrganization) | **Delete** /apis/cloud.streamnative.io/v1alpha1/organizations | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPool) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedRole) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedSecret) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedUser) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +[**DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha1Organization**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1Organization) | **Delete** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +[**DeleteCloudStreamnativeIoV1alpha1OrganizationStatus**](CloudStreamnativeIoV1alpha1Api.md#DeleteCloudStreamnativeIoV1alpha1OrganizationStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +[**GetCloudStreamnativeIoV1alpha1APIResources**](CloudStreamnativeIoV1alpha1Api.md#GetCloudStreamnativeIoV1alpha1APIResources) | **Get** /apis/cloud.streamnative.io/v1alpha1/ | +[**ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/apikeys | +[**ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/cloudconnections | +[**ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/cloudenvironments | +[**ListCloudStreamnativeIoV1alpha1ClusterRole**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1ClusterRole) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterroles | +[**ListCloudStreamnativeIoV1alpha1ClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1ClusterRoleBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings | +[**ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/identitypools | +[**ListCloudStreamnativeIoV1alpha1NamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedAPIKey) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys | +[**ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections | +[**ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments | +[**ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools | +[**ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders | +[**ListCloudStreamnativeIoV1alpha1NamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedPool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools | +[**ListCloudStreamnativeIoV1alpha1NamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedPoolMember) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers | +[**ListCloudStreamnativeIoV1alpha1NamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedPoolOption) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions | +[**ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters | +[**ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways | +[**ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances | +[**ListCloudStreamnativeIoV1alpha1NamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedRole) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles | +[**ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings | +[**ListCloudStreamnativeIoV1alpha1NamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedSecret) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets | +[**ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts | +[**ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings | +[**ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions | +[**ListCloudStreamnativeIoV1alpha1NamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1NamespacedUser) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users | +[**ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/oidcproviders | +[**ListCloudStreamnativeIoV1alpha1Organization**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1Organization) | **Get** /apis/cloud.streamnative.io/v1alpha1/organizations | +[**ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pools | +[**ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/poolmembers | +[**ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pooloptions | +[**ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pulsarclusters | +[**ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pulsargateways | +[**ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/pulsarinstances | +[**ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/rolebindings | +[**ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/roles | +[**ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/secrets | +[**ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/serviceaccountbindings | +[**ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/serviceaccounts | +[**ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/stripesubscriptions | +[**ListCloudStreamnativeIoV1alpha1UserForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#ListCloudStreamnativeIoV1alpha1UserForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/users | +[**PatchCloudStreamnativeIoV1alpha1ClusterRole**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1ClusterRole) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +[**PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +[**PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPool) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedRole) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedSecret) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1NamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedUser) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +[**PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +[**PatchCloudStreamnativeIoV1alpha1Organization**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1Organization) | **Patch** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +[**PatchCloudStreamnativeIoV1alpha1OrganizationStatus**](CloudStreamnativeIoV1alpha1Api.md#PatchCloudStreamnativeIoV1alpha1OrganizationStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1ClusterRole**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1ClusterRole) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +[**ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +[**ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPool) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedRole) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedSecret) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1NamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedUser) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +[**ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +[**ReadCloudStreamnativeIoV1alpha1Organization**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1Organization) | **Get** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +[**ReadCloudStreamnativeIoV1alpha1OrganizationStatus**](CloudStreamnativeIoV1alpha1Api.md#ReadCloudStreamnativeIoV1alpha1OrganizationStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1ClusterRole**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1ClusterRole) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPool) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedRole) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedUser) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha1Organization**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1Organization) | **Put** /apis/cloud.streamnative.io/v1alpha1/organizations/{name} | +[**ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus**](CloudStreamnativeIoV1alpha1Api.md#ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus) | **Put** /apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/apikeys | +[**WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/cloudconnections | +[**WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/cloudenvironments | +[**WatchCloudStreamnativeIoV1alpha1ClusterRole**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ClusterRole) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name} | +[**WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name} | +[**WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings | +[**WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1ClusterRoleList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ClusterRoleList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles | +[**WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/identitypools | +[**WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys | +[**WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections | +[**WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments | +[**WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools | +[**WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders | +[**WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPool**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPool) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances | +[**WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedRole**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedRole) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings | +[**WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedRoleList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedRoleList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles | +[**WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedSecret**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedSecret) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedSecretList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedSecretList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets | +[**WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings | +[**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts | +[**WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions | +[**WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1NamespacedUser**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedUser) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name} | +[**WatchCloudStreamnativeIoV1alpha1NamespacedUserList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedUserList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users | +[**WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/oidcproviders | +[**WatchCloudStreamnativeIoV1alpha1Organization**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1Organization) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name} | +[**WatchCloudStreamnativeIoV1alpha1OrganizationList**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1OrganizationList) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/organizations | +[**WatchCloudStreamnativeIoV1alpha1OrganizationStatus**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1OrganizationStatus) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}/status | +[**WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pools | +[**WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/poolmembers | +[**WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pooloptions | +[**WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pulsarclusters | +[**WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pulsargateways | +[**WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/pulsarinstances | +[**WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/rolebindings | +[**WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/roles | +[**WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/secrets | +[**WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/serviceaccountbindings | +[**WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/serviceaccounts | +[**WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/stripesubscriptions | +[**WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces**](CloudStreamnativeIoV1alpha1Api.md#WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha1/watch/users | + + + +## CreateCloudStreamnativeIoV1alpha1ClusterRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole CreateCloudStreamnativeIoV1alpha1ClusterRole(ctx).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRole(context.Background()).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1ClusterRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding(context.Background()).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool CreateCloudStreamnativeIoV1alpha1NamespacedPool(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPool(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role CreateCloudStreamnativeIoV1alpha1NamespacedRole(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRole(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedSecret + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret CreateCloudStreamnativeIoV1alpha1NamespacedSecret(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret("InstanceName_example", "Location_example") // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedSecret(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedSecret`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret("InstanceName_example", "Location_example") // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedUser + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User CreateCloudStreamnativeIoV1alpha1NamespacedUser(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedUser(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedUser`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1Organization + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization CreateCloudStreamnativeIoV1alpha1Organization(ctx).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1Organization(context.Background()).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1Organization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1Organization`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1Organization`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1OrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1OrganizationStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization CreateCloudStreamnativeIoV1alpha1OrganizationStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1OrganizationStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1OrganizationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1OrganizationStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1OrganizationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha1SelfRegistration + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration CreateCloudStreamnativeIoV1alpha1SelfRegistration(ctx).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1SelfRegistration(context.Background()).Body(body).DryRun(dryRun).FieldManager(fieldManager).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1SelfRegistration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha1SelfRegistration`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1SelfRegistration`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md) | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1ClusterRole + +> V1Status DeleteCloudStreamnativeIoV1alpha1ClusterRole(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRole(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1ClusterRole`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding + +> V1Status DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole(ctx).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole(context.Background()).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding(ctx).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding(context.Background()).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1CollectionOrganization + +> V1Status DeleteCloudStreamnativeIoV1alpha1CollectionOrganization(ctx).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionOrganization(context.Background()).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1CollectionOrganization`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1CollectionOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPool + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPool(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPool(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPool`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedRole + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedRole(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRole(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedRole`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedSecret + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedSecret(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedSecret(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedSecret`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedUser + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedUser(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedUser(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedUser`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1Organization + +> V1Status DeleteCloudStreamnativeIoV1alpha1Organization(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1Organization(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1Organization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1Organization`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1Organization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha1OrganizationStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha1OrganizationStatus(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1OrganizationStatus(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1OrganizationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha1OrganizationStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1OrganizationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCloudStreamnativeIoV1alpha1APIResources + +> V1APIResourceList GetCloudStreamnativeIoV1alpha1APIResources(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.GetCloudStreamnativeIoV1alpha1APIResources(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.GetCloudStreamnativeIoV1alpha1APIResources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCloudStreamnativeIoV1alpha1APIResources`: V1APIResourceList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.GetCloudStreamnativeIoV1alpha1APIResources`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCloudStreamnativeIoV1alpha1APIResourcesRequest struct via the builder pattern + + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1ClusterRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList ListCloudStreamnativeIoV1alpha1ClusterRole(ctx).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ClusterRole(context.Background()).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1ClusterRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1ClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1ClusterRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList ListCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ClusterRoleBinding(context.Background()).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1ClusterRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedAPIKey + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList ListCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedAPIKey(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedAPIKey`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList ListCloudStreamnativeIoV1alpha1NamespacedPool(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPool(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedPoolMember + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList ListCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolMember(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedPoolMember`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedPoolOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList ListCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedPoolOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList ListCloudStreamnativeIoV1alpha1NamespacedRole(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedRole(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedSecret + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList ListCloudStreamnativeIoV1alpha1NamespacedSecret(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedSecret(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedSecret`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1NamespacedUser + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList ListCloudStreamnativeIoV1alpha1NamespacedUser(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedUser(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1NamespacedUser`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1NamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1Organization + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList ListCloudStreamnativeIoV1alpha1Organization(ctx).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1Organization(context.Background()).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1Organization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1Organization`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1Organization`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1OrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha1UserForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList ListCloudStreamnativeIoV1alpha1UserForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1UserForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1UserForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha1UserForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1UserForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1ClusterRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole PatchCloudStreamnativeIoV1alpha1ClusterRole(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRole(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1ClusterRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool PatchCloudStreamnativeIoV1alpha1NamespacedPool(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPool(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role PatchCloudStreamnativeIoV1alpha1NamespacedRole(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRole(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedSecret + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret PatchCloudStreamnativeIoV1alpha1NamespacedSecret(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedSecret(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedSecret`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedUser + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User PatchCloudStreamnativeIoV1alpha1NamespacedUser(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedUser(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedUser`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1Organization + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization PatchCloudStreamnativeIoV1alpha1Organization(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1Organization(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1Organization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1Organization`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1Organization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1OrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha1OrganizationStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization PatchCloudStreamnativeIoV1alpha1OrganizationStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1OrganizationStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1OrganizationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha1OrganizationStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.PatchCloudStreamnativeIoV1alpha1OrganizationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1ClusterRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ReadCloudStreamnativeIoV1alpha1ClusterRole(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRole(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1ClusterRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ReadCloudStreamnativeIoV1alpha1NamespacedPool(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPool(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ReadCloudStreamnativeIoV1alpha1NamespacedRole(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRole(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedSecret + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ReadCloudStreamnativeIoV1alpha1NamespacedSecret(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedSecret(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedSecret`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedUser + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ReadCloudStreamnativeIoV1alpha1NamespacedUser(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedUser(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedUser`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1Organization + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ReadCloudStreamnativeIoV1alpha1Organization(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1Organization(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1Organization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1Organization`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1Organization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1OrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha1OrganizationStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ReadCloudStreamnativeIoV1alpha1OrganizationStatus(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1OrganizationStatus(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1OrganizationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha1OrganizationStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1OrganizationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1ClusterRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ReplaceCloudStreamnativeIoV1alpha1ClusterRole(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRole(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1ClusterRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPool + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ReplaceCloudStreamnativeIoV1alpha1NamespacedPool(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPool(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPool`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedRole + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ReplaceCloudStreamnativeIoV1alpha1NamespacedRole(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRole(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedRole`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret("InstanceName_example", "Location_example") // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret("InstanceName_example", "Location_example") // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedUser + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ReplaceCloudStreamnativeIoV1alpha1NamespacedUser(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedUser(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedUser`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1Organization + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ReplaceCloudStreamnativeIoV1alpha1Organization(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1Organization(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1Organization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1Organization`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1Organization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ClusterRole + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ClusterRole(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRole(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ClusterRole`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRoleBinding + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRoleBinding | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ClusterRoleList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ClusterRoleList(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleList(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ClusterRoleList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ClusterRole + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ClusterRole | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the APIKey + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the APIKey | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudConnection + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudConnection | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the CloudEnvironment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the CloudEnvironment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the IdentityPool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the IdentityPool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the OIDCProvider + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the OIDCProvider | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPool + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPool(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPool(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPool``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPool`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPool`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolMember + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolMember | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PoolOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PoolOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Pool + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Pool | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarCluster + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarCluster | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarGateway + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarGateway | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the PulsarInstance + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the PulsarInstance | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedRole + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedRole(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRole(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedRole`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the RoleBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the RoleBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedRoleList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedRoleList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedRoleList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Role + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Role | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedSecret + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedSecret(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecret(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecret``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedSecret`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedSecretList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedSecretList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecretList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecretList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedSecretList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecretList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Secret + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Secret | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccountBinding + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccountBinding | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ServiceAccount + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ServiceAccount | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the StripeSubscription + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the StripeSubscription | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedUser + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedUser(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUser(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedUser`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedUserList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedUserList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUserList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUserList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedUserList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUserList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the User + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the User | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1Organization + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1Organization(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1Organization(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1Organization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1Organization`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1Organization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1OrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1OrganizationList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1OrganizationList(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OrganizationList(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OrganizationList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1OrganizationList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OrganizationList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1OrganizationStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1OrganizationStatus(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Organization + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OrganizationStatus(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OrganizationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1OrganizationStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1OrganizationStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha1Api.WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha2Api.md b/sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha2Api.md new file mode 100644 index 0000000..9e32b8e --- /dev/null +++ b/sdk/sdk-apiserver/docs/CloudStreamnativeIoV1alpha2Api.md @@ -0,0 +1,8567 @@ +# \CloudStreamnativeIoV1alpha2Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCloudStreamnativeIoV1alpha2AWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2AWSSubscription) | **Post** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions | +[**CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +[**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets | +[**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions | +[**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +[**CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +[**CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets | +[**CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +[**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets | +[**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions | +[**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +[**CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus) | **Post** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha2AWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2AWSSubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +[**DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription) | **Delete** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions | +[**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets | +[**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions | +[**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets | +[**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets | +[**DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +[**DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus) | **Delete** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +[**GetCloudStreamnativeIoV1alpha2APIResources**](CloudStreamnativeIoV1alpha2Api.md#GetCloudStreamnativeIoV1alpha2APIResources) | **Get** /apis/cloud.streamnative.io/v1alpha2/ | +[**ListCloudStreamnativeIoV1alpha2AWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2AWSSubscription) | **Get** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions | +[**ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/bookkeepersets | +[**ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/bookkeepersetoptions | +[**ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/monitorsets | +[**ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets | +[**ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions | +[**ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets | +[**ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets | +[**ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions | +[**ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/zookeepersets | +[**ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/zookeepersetoptions | +[**PatchCloudStreamnativeIoV1alpha2AWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2AWSSubscription) | **Patch** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +[**PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +[**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +[**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +[**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +[**PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +[**PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +[**PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +[**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +[**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +[**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +[**PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus) | **Patch** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +[**ReadCloudStreamnativeIoV1alpha2AWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2AWSSubscription) | **Get** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +[**ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +[**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +[**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +[**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +[**ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +[**ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +[**ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +[**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +[**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +[**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +[**ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha2AWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2AWSSubscription) | **Put** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name} | +[**ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name} | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name} | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name} | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name} | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name} | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status | +[**ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus) | **Put** /apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status | +[**WatchCloudStreamnativeIoV1alpha2AWSSubscription**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2AWSSubscription) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name} | +[**WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions | +[**WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}/status | +[**WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersets | +[**WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersetoptions | +[**WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/monitorsets | +[**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name} | +[**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets | +[**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name} | +[**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions | +[**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}/status | +[**WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}/status | +[**WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name} | +[**WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets | +[**WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}/status | +[**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name} | +[**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets | +[**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name} | +[**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions | +[**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}/status | +[**WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}/status | +[**WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/zookeepersets | +[**WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces**](CloudStreamnativeIoV1alpha2Api.md#WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces) | **Get** /apis/cloud.streamnative.io/v1alpha2/watch/zookeepersetoptions | + + + +## CreateCloudStreamnativeIoV1alpha2AWSSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription CreateCloudStreamnativeIoV1alpha2AWSSubscription(ctx).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2AWSSubscription(context.Background()).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2AWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2AWSSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2AWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2AWSSubscription + +> V1Status DeleteCloudStreamnativeIoV1alpha2AWSSubscription(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2AWSSubscription(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2AWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2AWSSubscription`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2AWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx, name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(context.Background(), name).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription + +> V1Status DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription(ctx).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription(context.Background()).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet + +> V1Status DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption + +> V1Status DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet + +> V1Status DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet + +> V1Status DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption + +> V1Status DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +> V1Status DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCloudStreamnativeIoV1alpha2APIResources + +> V1APIResourceList GetCloudStreamnativeIoV1alpha2APIResources(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.GetCloudStreamnativeIoV1alpha2APIResources(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.GetCloudStreamnativeIoV1alpha2APIResources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCloudStreamnativeIoV1alpha2APIResources`: V1APIResourceList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.GetCloudStreamnativeIoV1alpha2APIResources`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCloudStreamnativeIoV1alpha2APIResourcesRequest struct via the builder pattern + + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2AWSSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList ListCloudStreamnativeIoV1alpha2AWSSubscription(ctx).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2AWSSubscription(context.Background()).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2AWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2AWSSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2AWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2AWSSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription PatchCloudStreamnativeIoV1alpha2AWSSubscription(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2AWSSubscription(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2AWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2AWSSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2AWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2AWSSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ReadCloudStreamnativeIoV1alpha2AWSSubscription(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2AWSSubscription(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2AWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2AWSSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2AWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx, name).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(context.Background(), name).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2AWSSubscription + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ReplaceCloudStreamnativeIoV1alpha2AWSSubscription(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2AWSSubscription(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2AWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2AWSSubscription`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2AWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx, name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(context.Background(), name).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +> ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet() // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2AWSSubscription + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2AWSSubscription(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscription(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2AWSSubscription`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscription`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx, name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the AWSSubscription + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(context.Background(), name).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the AWSSubscription | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the BookKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the BookKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the MonitorSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the MonitorSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSetOption + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSetOption | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the ZooKeeperSet + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the ZooKeeperSet | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces + +> V1WatchEvent WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `CloudStreamnativeIoV1alpha2Api.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md new file mode 100644 index 0000000..b65bb85 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bucket** | Pointer to **string** | Bucket is required if you want to use cloud storage. | [optional] +**Path** | Pointer to **string** | Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorageWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorageWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorageWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBucket + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetBucket() string` + +GetBucket returns the Bucket field if non-nil, zero value otherwise. + +### GetBucketOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetBucketOk() (*string, bool)` + +GetBucketOk returns a tuple with the Bucket field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBucket + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) SetBucket(v string)` + +SetBucket sets Bucket field to given value. + +### HasBucket + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) HasBucket() bool` + +HasBucket returns a boolean if a field has been set. + +### GetPath + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) HasPath() bool` + +HasPath returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition.md new file mode 100644 index 0000000..2349414 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition.md @@ -0,0 +1,150 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTransitionTime** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**Message** | Pointer to **string** | | [optional] +**Reason** | Pointer to **string** | | [optional] +**Status** | **string** | | +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition(status string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ConditionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetLastTransitionTime() time.Time` + +GetLastTransitionTime returns the LastTransitionTime field if non-nil, zero value otherwise. + +### GetLastTransitionTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetLastTransitionTimeOk() (*time.Time, bool)` + +GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetLastTransitionTime(v time.Time)` + +SetLastTransitionTime sets LastTransitionTime field to given value. + +### HasLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) HasLastTransitionTime() bool` + +HasLastTransitionTime returns a boolean if a field has been set. + +### GetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md new file mode 100644 index 0000000..f34f9a3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md new file mode 100644 index 0000000..984af62 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList(items []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec.md new file mode 100644 index 0000000..cadf04b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalCloudStorage** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md) | | [optional] +**CloudStorage** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage.md) | | [optional] +**DisableIamRoleCreation** | Pointer to **bool** | | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdditionalCloudStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetAdditionalCloudStorage() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage` + +GetAdditionalCloudStorage returns the AdditionalCloudStorage field if non-nil, zero value otherwise. + +### GetAdditionalCloudStorageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetAdditionalCloudStorageOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage, bool)` + +GetAdditionalCloudStorageOk returns a tuple with the AdditionalCloudStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalCloudStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetAdditionalCloudStorage(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage)` + +SetAdditionalCloudStorage sets AdditionalCloudStorage field to given value. + +### HasAdditionalCloudStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasAdditionalCloudStorage() bool` + +HasAdditionalCloudStorage returns a boolean if a field has been set. + +### GetCloudStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetCloudStorage() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage` + +GetCloudStorage returns the CloudStorage field if non-nil, zero value otherwise. + +### GetCloudStorageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetCloudStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage, bool)` + +GetCloudStorageOk returns a tuple with the CloudStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetCloudStorage(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage)` + +SetCloudStorage sets CloudStorage field to given value. + +### HasCloudStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasCloudStorage() bool` + +HasCloudStorage returns a boolean if a field has been set. + +### GetDisableIamRoleCreation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetDisableIamRoleCreation() bool` + +GetDisableIamRoleCreation returns the DisableIamRoleCreation field if non-nil, zero value otherwise. + +### GetDisableIamRoleCreationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetDisableIamRoleCreationOk() (*bool, bool)` + +GetDisableIamRoleCreationOk returns a tuple with the DisableIamRoleCreation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableIamRoleCreation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetDisableIamRoleCreation(v bool)` + +SetDisableIamRoleCreation sets DisableIamRoleCreation field to given value. + +### HasDisableIamRoleCreation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasDisableIamRoleCreation() bool` + +HasDisableIamRoleCreation returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus.md new file mode 100644 index 0000000..23de959 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization.md new file mode 100644 index 0000000..2b61334 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization(displayName string, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1OrganizationWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1OrganizationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1OrganizationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference.md new file mode 100644 index 0000000..32a279b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference(name string, namespace string, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md new file mode 100644 index 0000000..d9397a5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiGroups** | Pointer to **[]string** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. | [optional] +**ResourceNames** | Pointer to **[]string** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. | [optional] +**Resources** | Pointer to **[]string** | Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. | [optional] +**Verbs** | **[]string** | Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule(verbs []string, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRuleWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRuleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRuleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiGroups + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetApiGroups() []string` + +GetApiGroups returns the ApiGroups field if non-nil, zero value otherwise. + +### GetApiGroupsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetApiGroupsOk() (*[]string, bool)` + +GetApiGroupsOk returns a tuple with the ApiGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiGroups + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetApiGroups(v []string)` + +SetApiGroups sets ApiGroups field to given value. + +### HasApiGroups + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) HasApiGroups() bool` + +HasApiGroups returns a boolean if a field has been set. + +### GetResourceNames + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResourceNames() []string` + +GetResourceNames returns the ResourceNames field if non-nil, zero value otherwise. + +### GetResourceNamesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResourceNamesOk() (*[]string, bool)` + +GetResourceNamesOk returns a tuple with the ResourceNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceNames + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetResourceNames(v []string)` + +SetResourceNames sets ResourceNames field to given value. + +### HasResourceNames + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) HasResourceNames() bool` + +HasResourceNames returns a boolean if a field has been set. + +### GetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResources() []string` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResourcesOk() (*[]string, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetResources(v []string)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetVerbs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetVerbs() []string` + +GetVerbs returns the Verbs field if non-nil, zero value otherwise. + +### GetVerbsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetVerbsOk() (*[]string, bool)` + +GetVerbsOk returns a tuple with the Verbs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerbs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetVerbs(v []string)` + +SetVerbs sets Verbs field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef.md new file mode 100644 index 0000000..d134488 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef.md @@ -0,0 +1,119 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiGroup** | **string** | | +**Kind** | **string** | | +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef(apiGroup string, kind string, name string, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRefWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetApiGroup() string` + +GetApiGroup returns the ApiGroup field if non-nil, zero value otherwise. + +### GetApiGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetApiGroupOk() (*string, bool)` + +GetApiGroupOk returns a tuple with the ApiGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetApiGroup(v string)` + +SetApiGroup sets ApiGroup field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md new file mode 100644 index 0000000..38263b8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec.md new file mode 100644 index 0000000..dd2af26 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus.md new file mode 100644 index 0000000..8e5df4b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserPrivileges** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUserPrivileges + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) GetUserPrivileges() string` + +GetUserPrivileges returns the UserPrivileges field if non-nil, zero value otherwise. + +### GetUserPrivilegesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) GetUserPrivilegesOk() (*string, bool)` + +GetUserPrivilegesOk returns a tuple with the UserPrivileges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserPrivileges + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) SetUserPrivileges(v string)` + +SetUserPrivileges sets UserPrivileges field to given value. + +### HasUserPrivileges + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) HasUserPrivileges() bool` + +HasUserPrivileges returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md new file mode 100644 index 0000000..b3db13b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec.md new file mode 100644 index 0000000..3ccc0df --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus.md new file mode 100644 index 0000000..7b43c2e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus.md @@ -0,0 +1,98 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationError** | Pointer to **string** | EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] +**Incomplete** | **bool** | Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. | +**ResourceRules** | [**[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md) | ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus(incomplete bool, resourceRules []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationError + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetEvaluationError() string` + +GetEvaluationError returns the EvaluationError field if non-nil, zero value otherwise. + +### GetEvaluationErrorOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetEvaluationErrorOk() (*string, bool)` + +GetEvaluationErrorOk returns a tuple with the EvaluationError field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationError + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) SetEvaluationError(v string)` + +SetEvaluationError sets EvaluationError field to given value. + +### HasEvaluationError + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) HasEvaluationError() bool` + +HasEvaluationError returns a boolean if a field has been set. + +### GetIncomplete + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetIncomplete() bool` + +GetIncomplete returns the Incomplete field if non-nil, zero value otherwise. + +### GetIncompleteOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetIncompleteOk() (*bool, bool)` + +GetIncompleteOk returns a tuple with the Incomplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncomplete + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) SetIncomplete(v bool)` + +SetIncomplete sets Incomplete field to given value. + + +### GetResourceRules + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetResourceRules() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule` + +GetResourceRules returns the ResourceRules field if non-nil, zero value otherwise. + +### GetResourceRulesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetResourceRulesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule, bool)` + +GetResourceRulesOk returns a tuple with the ResourceRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceRules + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) SetResourceRules(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule)` + +SetResourceRules sets ResourceRules field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md new file mode 100644 index 0000000..25f169b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to **map[string]interface{}** | SelfSubjectUserReviewSpec defines the desired state of SelfSubjectUserReview | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetSpec() map[string]interface{}` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetSpecOk() (*map[string]interface{}, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetSpec(v map[string]interface{})` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus.md new file mode 100644 index 0000000..0436834 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Users** | [**[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus(users []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) GetUsers() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) GetUsersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) SetUsers(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef)` + +SetUsers sets Users field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md new file mode 100644 index 0000000..911dbc8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec.md new file mode 100644 index 0000000..fa1b5d0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**User** | Pointer to **string** | User is the user you're testing for. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus.md new file mode 100644 index 0000000..bfe4c8e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Roles** | [**[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus(roles []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) GetRoles() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef` + +GetRoles returns the Roles field if non-nil, zero value otherwise. + +### GetRolesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) GetRolesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef, bool)` + +GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) SetRoles(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef)` + +SetRoles sets Roles field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md new file mode 100644 index 0000000..5733351 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec.md new file mode 100644 index 0000000..6df0592 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespace** | Pointer to **string** | | [optional] +**User** | Pointer to **string** | User is the user you're testing for. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus.md new file mode 100644 index 0000000..d40648c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus.md @@ -0,0 +1,98 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EvaluationError** | Pointer to **string** | EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] +**Incomplete** | **bool** | Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. | +**ResourceRules** | [**[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule.md) | ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus(incomplete bool, resourceRules []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvaluationError + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetEvaluationError() string` + +GetEvaluationError returns the EvaluationError field if non-nil, zero value otherwise. + +### GetEvaluationErrorOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetEvaluationErrorOk() (*string, bool)` + +GetEvaluationErrorOk returns a tuple with the EvaluationError field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvaluationError + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) SetEvaluationError(v string)` + +SetEvaluationError sets EvaluationError field to given value. + +### HasEvaluationError + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) HasEvaluationError() bool` + +HasEvaluationError returns a boolean if a field has been set. + +### GetIncomplete + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetIncomplete() bool` + +GetIncomplete returns the Incomplete field if non-nil, zero value otherwise. + +### GetIncompleteOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetIncompleteOk() (*bool, bool)` + +GetIncompleteOk returns a tuple with the Incomplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncomplete + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) SetIncomplete(v bool)` + +SetIncomplete sets Incomplete field to given value. + + +### GetResourceRules + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetResourceRules() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule` + +GetResourceRules returns the ResourceRules field if non-nil, zero value otherwise. + +### GetResourceRulesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetResourceRulesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule, bool)` + +GetResourceRulesOk returns a tuple with the ResourceRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceRules + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) SetResourceRules(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule)` + +SetResourceRules sets ResourceRules field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef.md new file mode 100644 index 0000000..80e1c12 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef.md @@ -0,0 +1,135 @@ +# ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiGroup** | **string** | | +**Kind** | **string** | | +**Name** | **string** | | +**Namespace** | **string** | | +**Organization** | [**ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef(apiGroup string, kind string, name string, namespace string, organization ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization, ) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRefWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef` + +NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetApiGroup() string` + +GetApiGroup returns the ApiGroup field if non-nil, zero value otherwise. + +### GetApiGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetApiGroupOk() (*string, bool)` + +GetApiGroupOk returns a tuple with the ApiGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetApiGroup(v string)` + +SetApiGroup sets ApiGroup field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + +### GetOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetOrganization() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetOrganizationOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetOrganization(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization)` + +SetOrganization sets Organization field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md new file mode 100644 index 0000000..c23c3e7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec.md new file mode 100644 index 0000000..7e9432b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReturnURL** | Pointer to **string** | The default URL to redirect customers to when they click on the portal’s link to return to your website. | [optional] +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReturnURL + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetReturnURL() string` + +GetReturnURL returns the ReturnURL field if non-nil, zero value otherwise. + +### GetReturnURLOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetReturnURLOk() (*string, bool)` + +GetReturnURLOk returns a tuple with the ReturnURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnURL + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) SetReturnURL(v string)` + +SetReturnURL sets ReturnURL field to given value. + +### HasReturnURL + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) HasReturnURL() bool` + +HasReturnURL returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus.md new file mode 100644 index 0000000..1140158 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus.md) | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + +### GetUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md new file mode 100644 index 0000000..9d5d8dc --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | Key is the item key within the offer and subscription. | [optional] +**Metadata** | Pointer to **map[string]string** | Metadata is an unstructured key value map stored with an item. | [optional] +**Price** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice.md) | | [optional] +**PriceRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference.md) | | [optional] +**Quantity** | Pointer to **string** | Quantity for this item. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetPrice + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPrice() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice` + +GetPrice returns the Price field if non-nil, zero value otherwise. + +### GetPriceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPriceOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice, bool)` + +GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrice + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetPrice(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice)` + +SetPrice sets Price field to given value. + +### HasPrice + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasPrice() bool` + +HasPrice returns a boolean if a field has been set. + +### GetPriceRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPriceRef() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference` + +GetPriceRef returns the PriceRef field if non-nil, zero value otherwise. + +### GetPriceRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPriceRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference, bool)` + +GetPriceRefOk returns a tuple with the PriceRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetPriceRef(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference)` + +SetPriceRef sets PriceRef field to given value. + +### HasPriceRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasPriceRef() bool` + +HasPriceRef returns a boolean if a field has been set. + +### GetQuantity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetQuantity() string` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetQuantityOk() (*string, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetQuantity(v string)` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice.md new file mode 100644 index 0000000..1469ee3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice.md @@ -0,0 +1,186 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | Pointer to **string** | Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. | [optional] +**Product** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md) | | [optional] +**Recurring** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring.md) | | [optional] +**Tiers** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md) | Tiers are Stripes billing tiers like | [optional] +**TiersMode** | Pointer to **string** | TiersMode is the stripe tier mode | [optional] +**UnitAmount** | Pointer to **string** | A quantity (or 0 for a free price) representing how much to charge. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrency + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetProduct() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetProductOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetProduct(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetRecurring() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring` + +GetRecurring returns the Recurring field if non-nil, zero value otherwise. + +### GetRecurringOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetRecurringOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring, bool)` + +GetRecurringOk returns a tuple with the Recurring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetRecurring(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring)` + +SetRecurring sets Recurring field to given value. + +### HasRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasRecurring() bool` + +HasRecurring returns a boolean if a field has been set. + +### GetTiers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiers() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier` + +GetTiers returns the Tiers field if non-nil, zero value otherwise. + +### GetTiersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier, bool)` + +GetTiersOk returns a tuple with the Tiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTiers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetTiers(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier)` + +SetTiers sets Tiers field to given value. + +### HasTiers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasTiers() bool` + +HasTiers returns a boolean if a field has been set. + +### GetTiersMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiersMode() string` + +GetTiersMode returns the TiersMode field if non-nil, zero value otherwise. + +### GetTiersModeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiersModeOk() (*string, bool)` + +GetTiersModeOk returns a tuple with the TiersMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTiersMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetTiersMode(v string)` + +SetTiersMode sets TiersMode field to given value. + +### HasTiersMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasTiersMode() bool` + +HasTiersMode returns a boolean if a field has been set. + +### GetUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetUnitAmount() string` + +GetUnitAmount returns the UnitAmount field if non-nil, zero value otherwise. + +### GetUnitAmountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetUnitAmountOk() (*string, bool)` + +GetUnitAmountOk returns a tuple with the UnitAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetUnitAmount(v string)` + +SetUnitAmount sets UnitAmount field to given value. + +### HasUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasUnitAmount() bool` + +HasUnitAmount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring.md new file mode 100644 index 0000000..26cbeb4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AggregateUsage** | Pointer to **string** | | [optional] +**Interval** | Pointer to **string** | Specifies billing frequency. Either `day`, `week`, `month` or `year`. | [optional] +**IntervalCount** | Pointer to **int64** | The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks). | [optional] +**UsageType** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurringWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurringWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurringWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAggregateUsage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetAggregateUsage() string` + +GetAggregateUsage returns the AggregateUsage field if non-nil, zero value otherwise. + +### GetAggregateUsageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetAggregateUsageOk() (*string, bool)` + +GetAggregateUsageOk returns a tuple with the AggregateUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregateUsage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetAggregateUsage(v string)` + +SetAggregateUsage sets AggregateUsage field to given value. + +### HasAggregateUsage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasAggregateUsage() bool` + +HasAggregateUsage returns a boolean if a field has been set. + +### GetInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetInterval() string` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetIntervalOk() (*string, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetInterval(v string)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetIntervalCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetIntervalCount() int64` + +GetIntervalCount returns the IntervalCount field if non-nil, zero value otherwise. + +### GetIntervalCountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetIntervalCountOk() (*int64, bool)` + +GetIntervalCountOk returns a tuple with the IntervalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntervalCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetIntervalCount(v int64)` + +SetIntervalCount sets IntervalCount field to given value. + +### HasIntervalCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasIntervalCount() bool` + +HasIntervalCount returns a boolean if a field has been set. + +### GetUsageType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetUsageType() string` + +GetUsageType returns the UsageType field if non-nil, zero value otherwise. + +### GetUsageTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetUsageTypeOk() (*string, bool)` + +GetUsageTypeOk returns a tuple with the UsageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsageType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetUsageType(v string)` + +SetUsageType sets UsageType field to given value. + +### HasUsageType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasUsageType() bool` + +HasUsageType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference.md new file mode 100644 index 0000000..1d205c2 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference.md @@ -0,0 +1,98 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | **string** | | +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference(kind string, name string, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md new file mode 100644 index 0000000..e37224b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md new file mode 100644 index 0000000..72693c4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec.md new file mode 100644 index 0000000..a2bfc62 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent.md) | | [optional] +**SubscriptionName** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + +### GetSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetSubscriptionName() string` + +GetSubscriptionName returns the SubscriptionName field if non-nil, zero value otherwise. + +### GetSubscriptionNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetSubscriptionNameOk() (*string, bool)` + +GetSubscriptionNameOk returns a tuple with the SubscriptionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) SetSubscriptionName(v string)` + +SetSubscriptionName sets SubscriptionName field to given value. + +### HasSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) HasSubscriptionName() bool` + +HasSubscriptionName returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus.md new file mode 100644 index 0000000..319da3d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference.md new file mode 100644 index 0000000..bd401e1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | Key is the price key within the product specification. | [optional] +**Product** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetProduct() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetProductOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) SetProduct(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md new file mode 100644 index 0000000..baf2ce8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec.md) | | [optional] +**Status** | Pointer to **map[string]interface{}** | PrivateOfferStatus defines the observed state of PrivateOffer | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetStatus() map[string]interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetStatusOk() (*map[string]interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetStatus(v map[string]interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md new file mode 100644 index 0000000..2fd2b98 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec.md new file mode 100644 index 0000000..72a1814 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec.md @@ -0,0 +1,238 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnchorDate** | Pointer to **time.Time** | AnchorDate is a timestamp representing the first billing cycle end date. This will be used to anchor future billing periods to that date. For example, setting the anchor date for a subscription starting on Apr 1 to be Apr 12 will send the invoice for the subscription out on Apr 12 and the 12th of every following month for a monthly subscription. It is represented in RFC3339 form and is in UTC. | [optional] +**Description** | Pointer to **string** | | [optional] +**Duration** | Pointer to **string** | Duration indicates how long the subscription for this offer should last. The value must greater than 0 | [optional] +**EndDate** | Pointer to **time.Time** | EndDate is a timestamp representing the planned end date of the subscription. It is represented in RFC3339 form and is in UTC. | [optional] +**Once** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md) | One-time items, each with an attached price. | [optional] +**Recurring** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md) | Recurring items, each with an attached price. | [optional] +**StartDate** | Pointer to **time.Time** | StartDate is a timestamp representing the planned start date of the subscription. It is represented in RFC3339 form and is in UTC. | [optional] +**Stripe** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnchorDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetAnchorDate() time.Time` + +GetAnchorDate returns the AnchorDate field if non-nil, zero value otherwise. + +### GetAnchorDateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetAnchorDateOk() (*time.Time, bool)` + +GetAnchorDateOk returns a tuple with the AnchorDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnchorDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetAnchorDate(v time.Time)` + +SetAnchorDate sets AnchorDate field to given value. + +### HasAnchorDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasAnchorDate() bool` + +HasAnchorDate returns a boolean if a field has been set. + +### GetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDuration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDuration() string` + +GetDuration returns the Duration field if non-nil, zero value otherwise. + +### GetDurationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDurationOk() (*string, bool)` + +GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetDuration(v string)` + +SetDuration sets Duration field to given value. + +### HasDuration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasDuration() bool` + +HasDuration returns a boolean if a field has been set. + +### GetEndDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetEndDate() time.Time` + +GetEndDate returns the EndDate field if non-nil, zero value otherwise. + +### GetEndDateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetEndDateOk() (*time.Time, bool)` + +GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetEndDate(v time.Time)` + +SetEndDate sets EndDate field to given value. + +### HasEndDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasEndDate() bool` + +HasEndDate returns a boolean if a field has been set. + +### GetOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetOnce() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem` + +GetOnce returns the Once field if non-nil, zero value otherwise. + +### GetOnceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetOnceOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool)` + +GetOnceOk returns a tuple with the Once field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetOnce(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem)` + +SetOnce sets Once field to given value. + +### HasOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasOnce() bool` + +HasOnce returns a boolean if a field has been set. + +### GetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetRecurring() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem` + +GetRecurring returns the Recurring field if non-nil, zero value otherwise. + +### GetRecurringOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetRecurringOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool)` + +GetRecurringOk returns a tuple with the Recurring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetRecurring(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem)` + +SetRecurring sets Recurring field to given value. + +### HasRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasRecurring() bool` + +HasRecurring returns a boolean if a field has been set. + +### GetStartDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStartDate() time.Time` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStartDateOk() (*time.Time, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetStartDate(v time.Time)` + +SetStartDate sets StartDate field to given value. + +### HasStartDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasStartDate() bool` + +HasStartDate returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStripe() map[string]interface{}` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStripeOk() (*map[string]interface{}, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetStripe(v map[string]interface{})` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md new file mode 100644 index 0000000..7c75de4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md new file mode 100644 index 0000000..279b766 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice.md new file mode 100644 index 0000000..202753a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | Key is the price key. | [optional] +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPriceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPriceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPriceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md new file mode 100644 index 0000000..57f081d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec.md new file mode 100644 index 0000000..2042096 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | Description is a product description | [optional] +**Name** | Pointer to **string** | Name is the product name. | [optional] +**Prices** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice.md) | Prices associated with the product. | [optional] +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec.md) | | [optional] +**Suger** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPrices + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetPrices() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice` + +GetPrices returns the Prices field if non-nil, zero value otherwise. + +### GetPricesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetPricesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice, bool)` + +GetPricesOk returns a tuple with the Prices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrices + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetPrices(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice)` + +SetPrices sets Prices field to given value. + +### HasPrices + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasPrices() bool` + +HasPrices returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + +### GetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec` + +GetSuger returns the Suger field if non-nil, zero value otherwise. + +### GetSugerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec, bool)` + +GetSugerOk returns a tuple with the Suger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec)` + +SetSuger sets Suger field to given value. + +### HasSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasSuger() bool` + +HasSuger returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus.md new file mode 100644 index 0000000..8df7d66 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Prices** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice.md) | The prices as stored in Stripe. | [optional] +**StripeID** | Pointer to **string** | The unique identifier for the Stripe product. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrices + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetPrices() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice` + +GetPrices returns the Prices field if non-nil, zero value otherwise. + +### GetPricesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetPricesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice, bool)` + +GetPricesOk returns a tuple with the Prices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrices + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) SetPrices(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice)` + +SetPrices sets Prices field to given value. + +### HasPrices + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) HasPrices() bool` + +HasPrices returns a boolean if a field has been set. + +### GetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetStripeID() string` + +GetStripeID returns the StripeID field if non-nil, zero value otherwise. + +### GetStripeIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetStripeIDOk() (*string, bool)` + +GetStripeIDOk returns a tuple with the StripeID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) SetStripeID(v string)` + +SetStripeID sets StripeID field to given value. + +### HasStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) HasStripeID() bool` + +HasStripeID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice.md new file mode 100644 index 0000000..b297816 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | | [optional] +**StripeID** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPriceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPriceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPriceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetStripeID() string` + +GetStripeID returns the StripeID field if non-nil, zero value otherwise. + +### GetStripeIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetStripeIDOk() (*string, bool)` + +GetStripeIDOk returns a tuple with the StripeID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) SetStripeID(v string)` + +SetStripeID sets StripeID field to given value. + +### HasStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) HasStripeID() bool` + +HasStripeID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md new file mode 100644 index 0000000..7b452f4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec.md) | | [optional] +**Status** | Pointer to **map[string]interface{}** | PublicOfferStatus defines the observed state of PublicOffer | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetStatus() map[string]interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetStatusOk() (*map[string]interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetStatus(v map[string]interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList.md new file mode 100644 index 0000000..cd81eed --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec.md new file mode 100644 index 0000000..b4e761b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Once** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md) | One-time items, each with an attached price. | [optional] +**Recurring** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem.md) | Recurring items, each with an attached price. | [optional] +**Stripe** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetOnce() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem` + +GetOnce returns the Once field if non-nil, zero value otherwise. + +### GetOnceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetOnceOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool)` + +GetOnceOk returns a tuple with the Once field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetOnce(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem)` + +SetOnce sets Once field to given value. + +### HasOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasOnce() bool` + +HasOnce returns a boolean if a field has been set. + +### GetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetRecurring() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem` + +GetRecurring returns the Recurring field if non-nil, zero value otherwise. + +### GetRecurringOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetRecurringOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool)` + +GetRecurringOk returns a tuple with the Recurring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetRecurring(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem)` + +SetRecurring sets Recurring field to given value. + +### HasRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasRecurring() bool` + +HasRecurring returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetStripe() map[string]interface{}` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetStripeOk() (*map[string]interface{}, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetStripe(v map[string]interface{})` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md new file mode 100644 index 0000000..6b69a0c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md new file mode 100644 index 0000000..4fa9fa8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference.md new file mode 100644 index 0000000..15a0d75 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec.md new file mode 100644 index 0000000..79796f1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus.md new file mode 100644 index 0000000..0c78dc1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed conidtions | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec.md new file mode 100644 index 0000000..6781d7c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configuration** | Pointer to **string** | Configuration is the ID of the portal configuration to use. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfiguration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) GetConfiguration() string` + +GetConfiguration returns the Configuration field if non-nil, zero value otherwise. + +### GetConfigurationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) GetConfigurationOk() (*string, bool)` + +GetConfigurationOk returns a tuple with the Configuration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfiguration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) SetConfiguration(v string)` + +SetConfiguration sets Configuration field to given value. + +### HasConfiguration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) HasConfiguration() bool` + +HasConfiguration returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus.md new file mode 100644 index 0000000..e22f1a8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | ID is the Stripe portal ID. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent.md new file mode 100644 index 0000000..ec02c2d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientSecret** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntentWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence.md new file mode 100644 index 0000000..1688efa --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AggregateUsage** | Pointer to **string** | | [optional] +**Interval** | Pointer to **string** | Interval is how often the price recurs | [optional] +**IntervalCount** | Pointer to **int64** | The number of intervals. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks). | [optional] +**UsageType** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAggregateUsage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetAggregateUsage() string` + +GetAggregateUsage returns the AggregateUsage field if non-nil, zero value otherwise. + +### GetAggregateUsageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetAggregateUsageOk() (*string, bool)` + +GetAggregateUsageOk returns a tuple with the AggregateUsage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregateUsage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetAggregateUsage(v string)` + +SetAggregateUsage sets AggregateUsage field to given value. + +### HasAggregateUsage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasAggregateUsage() bool` + +HasAggregateUsage returns a boolean if a field has been set. + +### GetInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetInterval() string` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetIntervalOk() (*string, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetInterval(v string)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetIntervalCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetIntervalCount() int64` + +GetIntervalCount returns the IntervalCount field if non-nil, zero value otherwise. + +### GetIntervalCountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetIntervalCountOk() (*int64, bool)` + +GetIntervalCountOk returns a tuple with the IntervalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntervalCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetIntervalCount(v int64)` + +SetIntervalCount sets IntervalCount field to given value. + +### HasIntervalCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasIntervalCount() bool` + +HasIntervalCount returns a boolean if a field has been set. + +### GetUsageType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetUsageType() string` + +GetUsageType returns the UsageType field if non-nil, zero value otherwise. + +### GetUsageTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetUsageTypeOk() (*string, bool)` + +GetUsageTypeOk returns a tuple with the UsageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsageType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetUsageType(v string)` + +SetUsageType sets UsageType field to given value. + +### HasUsageType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasUsageType() bool` + +HasUsageType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec.md new file mode 100644 index 0000000..3f7b45b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec.md @@ -0,0 +1,212 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | Pointer to **bool** | Active indicates the price is active on the product | [optional] +**Currency** | Pointer to **string** | Currency is the required three-letter ISO currency code The codes below were generated from https://stripe.com/docs/currencies | [optional] +**Name** | Pointer to **string** | Name to be displayed in the Stripe dashboard, hidden from customers | [optional] +**Recurring** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence.md) | | [optional] +**Tiers** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md) | Tiers are Stripes billing tiers like | [optional] +**TiersMode** | Pointer to **string** | TiersMode is the stripe tier mode | [optional] +**UnitAmount** | Pointer to **string** | UnitAmount in dollars. If present, billing_scheme is assumed to be per_unit | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActive + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetActive() bool` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetActiveOk() (*bool, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetActive(v bool)` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### GetCurrency + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetRecurring() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence` + +GetRecurring returns the Recurring field if non-nil, zero value otherwise. + +### GetRecurringOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetRecurringOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence, bool)` + +GetRecurringOk returns a tuple with the Recurring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetRecurring(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence)` + +SetRecurring sets Recurring field to given value. + +### HasRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasRecurring() bool` + +HasRecurring returns a boolean if a field has been set. + +### GetTiers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiers() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier` + +GetTiers returns the Tiers field if non-nil, zero value otherwise. + +### GetTiersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier, bool)` + +GetTiersOk returns a tuple with the Tiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTiers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetTiers(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier)` + +SetTiers sets Tiers field to given value. + +### HasTiers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasTiers() bool` + +HasTiers returns a boolean if a field has been set. + +### GetTiersMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiersMode() string` + +GetTiersMode returns the TiersMode field if non-nil, zero value otherwise. + +### GetTiersModeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiersModeOk() (*string, bool)` + +GetTiersModeOk returns a tuple with the TiersMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTiersMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetTiersMode(v string)` + +SetTiersMode sets TiersMode field to given value. + +### HasTiersMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasTiersMode() bool` + +HasTiersMode returns a boolean if a field has been set. + +### GetUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetUnitAmount() string` + +GetUnitAmount returns the UnitAmount field if non-nil, zero value otherwise. + +### GetUnitAmountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetUnitAmountOk() (*string, bool)` + +GetUnitAmountOk returns a tuple with the UnitAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetUnitAmount(v string)` + +SetUnitAmount sets UnitAmount field to given value. + +### HasUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasUnitAmount() bool` + +HasUnitAmount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec.md new file mode 100644 index 0000000..8ea67fc --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultPriceKey** | Pointer to **string** | DefaultPriceKey sets the default price for the product. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDefaultPriceKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) GetDefaultPriceKey() string` + +GetDefaultPriceKey returns the DefaultPriceKey field if non-nil, zero value otherwise. + +### GetDefaultPriceKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) GetDefaultPriceKeyOk() (*string, bool)` + +GetDefaultPriceKeyOk returns a tuple with the DefaultPriceKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPriceKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) SetDefaultPriceKey(v string)` + +SetDefaultPriceKey sets DefaultPriceKey field to given value. + +### HasDefaultPriceKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) HasDefaultPriceKey() bool` + +HasDefaultPriceKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent.md new file mode 100644 index 0000000..37146e5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientSecret** | Pointer to **string** | The client secret of this SetupIntent. Used for client-side retrieval using a publishable key. | [optional] +**Id** | Pointer to **string** | The unique identifier for the SetupIntent. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntentWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetClientSecret() string` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetClientSecretOk() (*string, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) SetClientSecret(v string)` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### GetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec.md new file mode 100644 index 0000000..b5b5f9d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionMethod** | Pointer to **string** | CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice | [optional] +**DaysUntilDue** | Pointer to **int64** | DaysUntilDue is applicable when collection method is send_invoice | [optional] +**Id** | Pointer to **string** | ID is the stripe subscription ID. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCollectionMethod + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetCollectionMethod() string` + +GetCollectionMethod returns the CollectionMethod field if non-nil, zero value otherwise. + +### GetCollectionMethodOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetCollectionMethodOk() (*string, bool)` + +GetCollectionMethodOk returns a tuple with the CollectionMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionMethod + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) SetCollectionMethod(v string)` + +SetCollectionMethod sets CollectionMethod field to given value. + +### HasCollectionMethod + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) HasCollectionMethod() bool` + +HasCollectionMethod returns a boolean if a field has been set. + +### GetDaysUntilDue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetDaysUntilDue() int64` + +GetDaysUntilDue returns the DaysUntilDue field if non-nil, zero value otherwise. + +### GetDaysUntilDueOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetDaysUntilDueOk() (*int64, bool)` + +GetDaysUntilDueOk returns a tuple with the DaysUntilDue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDaysUntilDue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) SetDaysUntilDue(v int64)` + +SetDaysUntilDue sets DaysUntilDue field to given value. + +### HasDaysUntilDue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) HasDaysUntilDue() bool` + +HasDaysUntilDue returns a boolean if a field has been set. + +### GetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md new file mode 100644 index 0000000..88f86b4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md new file mode 100644 index 0000000..2909f2f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md new file mode 100644 index 0000000..95f54d5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec.md new file mode 100644 index 0000000..bc00d83 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OfferRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference.md) | | [optional] +**Suger** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec.md) | | [optional] +**Type** | Pointer to **string** | The type of the subscription intent. Validate values: stripe, suger Default to stripe. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOfferRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetOfferRef() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference` + +GetOfferRef returns the OfferRef field if non-nil, zero value otherwise. + +### GetOfferRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetOfferRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference, bool)` + +GetOfferRefOk returns a tuple with the OfferRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOfferRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) SetOfferRef(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference)` + +SetOfferRef sets OfferRef field to given value. + +### HasOfferRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) HasOfferRef() bool` + +HasOfferRef returns a boolean if a field has been set. + +### GetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec` + +GetSuger returns the Suger field if non-nil, zero value otherwise. + +### GetSugerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec, bool)` + +GetSugerOk returns a tuple with the Suger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec)` + +SetSuger sets Suger field to given value. + +### HasSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) HasSuger() bool` + +HasSuger returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus.md new file mode 100644 index 0000000..a39db92 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**PaymentIntentName** | Pointer to **string** | | [optional] +**SetupIntentName** | Pointer to **string** | | [optional] +**SubscriptionName** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetPaymentIntentName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetPaymentIntentName() string` + +GetPaymentIntentName returns the PaymentIntentName field if non-nil, zero value otherwise. + +### GetPaymentIntentNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetPaymentIntentNameOk() (*string, bool)` + +GetPaymentIntentNameOk returns a tuple with the PaymentIntentName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentIntentName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetPaymentIntentName(v string)` + +SetPaymentIntentName sets PaymentIntentName field to given value. + +### HasPaymentIntentName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasPaymentIntentName() bool` + +HasPaymentIntentName returns a boolean if a field has been set. + +### GetSetupIntentName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSetupIntentName() string` + +GetSetupIntentName returns the SetupIntentName field if non-nil, zero value otherwise. + +### GetSetupIntentNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSetupIntentNameOk() (*string, bool)` + +GetSetupIntentNameOk returns a tuple with the SetupIntentName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetupIntentName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetSetupIntentName(v string)` + +SetSetupIntentName sets SetupIntentName field to given value. + +### HasSetupIntentName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasSetupIntentName() bool` + +HasSetupIntentName returns a boolean if a field has been set. + +### GetSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSubscriptionName() string` + +GetSubscriptionName returns the SubscriptionName field if non-nil, zero value otherwise. + +### GetSubscriptionNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSubscriptionNameOk() (*string, bool)` + +GetSubscriptionNameOk returns a tuple with the SubscriptionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetSubscriptionName(v string)` + +SetSubscriptionName sets SubscriptionName field to given value. + +### HasSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasSubscriptionName() bool` + +HasSubscriptionName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md new file mode 100644 index 0000000..3344586 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | Key is the item key within the subscription. | [optional] +**Metadata** | Pointer to **map[string]string** | Metadata is an unstructured key value map stored with an item. | [optional] +**Product** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference.md) | | [optional] +**Quantity** | Pointer to **string** | Quantity for this item. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItemWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetProduct() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetProductOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetProduct(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetQuantity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetQuantity() string` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetQuantityOk() (*string, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetQuantity(v string)` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md new file mode 100644 index 0000000..6464f97 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference.md new file mode 100644 index 0000000..6d99b11 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec.md new file mode 100644 index 0000000..593dabc --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec.md @@ -0,0 +1,342 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnchorDate** | Pointer to **time.Time** | AnchorDate is a timestamp representing the first billing cycle end date. It is represented by seconds from the epoch on the Stripe side. | [optional] +**CloudType** | Pointer to **string** | CloudType will validate resources like the consumption unit product are restricted to the correct cloud provider | [optional] +**Description** | Pointer to **string** | | [optional] +**EndDate** | Pointer to **time.Time** | EndDate is a timestamp representing the date when the subscription will be ended. It is represented in RFC3339 form and is in UTC. | [optional] +**EndingBalanceCents** | Pointer to **int64** | Ending balance for a subscription, this value is asynchrnously updated by billing-reporter and directly pulled from stripe's invoice object [1]. Negative at this value means that there are outstanding discount credits left for the customer. Nil implies that billing reporter hasn't run since creation and yet to set the value. [1] https://docs.stripe.com/api/invoices/object#invoice_object-ending_balance | [optional] +**Once** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md) | One-time items. | [optional] +**ParentSubscription** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference.md) | | [optional] +**Recurring** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem.md) | Recurring items. | [optional] +**StartDate** | Pointer to **time.Time** | StartDate is a timestamp representing the start date of the subscription. It is represented in RFC3339 form and is in UTC. | [optional] +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec.md) | | [optional] +**Suger** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec.md) | | [optional] +**Type** | Pointer to **string** | The type of the subscription. Validate values: stripe, suger Default to stripe. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnchorDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetAnchorDate() time.Time` + +GetAnchorDate returns the AnchorDate field if non-nil, zero value otherwise. + +### GetAnchorDateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetAnchorDateOk() (*time.Time, bool)` + +GetAnchorDateOk returns a tuple with the AnchorDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnchorDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetAnchorDate(v time.Time)` + +SetAnchorDate sets AnchorDate field to given value. + +### HasAnchorDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasAnchorDate() bool` + +HasAnchorDate returns a boolean if a field has been set. + +### GetCloudType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetCloudType() string` + +GetCloudType returns the CloudType field if non-nil, zero value otherwise. + +### GetCloudTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetCloudTypeOk() (*string, bool)` + +GetCloudTypeOk returns a tuple with the CloudType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetCloudType(v string)` + +SetCloudType sets CloudType field to given value. + +### HasCloudType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasCloudType() bool` + +HasCloudType returns a boolean if a field has been set. + +### GetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEndDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndDate() time.Time` + +GetEndDate returns the EndDate field if non-nil, zero value otherwise. + +### GetEndDateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndDateOk() (*time.Time, bool)` + +GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetEndDate(v time.Time)` + +SetEndDate sets EndDate field to given value. + +### HasEndDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasEndDate() bool` + +HasEndDate returns a boolean if a field has been set. + +### GetEndingBalanceCents + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndingBalanceCents() int64` + +GetEndingBalanceCents returns the EndingBalanceCents field if non-nil, zero value otherwise. + +### GetEndingBalanceCentsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndingBalanceCentsOk() (*int64, bool)` + +GetEndingBalanceCentsOk returns a tuple with the EndingBalanceCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndingBalanceCents + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetEndingBalanceCents(v int64)` + +SetEndingBalanceCents sets EndingBalanceCents field to given value. + +### HasEndingBalanceCents + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasEndingBalanceCents() bool` + +HasEndingBalanceCents returns a boolean if a field has been set. + +### GetOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetOnce() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem` + +GetOnce returns the Once field if non-nil, zero value otherwise. + +### GetOnceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetOnceOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem, bool)` + +GetOnceOk returns a tuple with the Once field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetOnce(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem)` + +SetOnce sets Once field to given value. + +### HasOnce + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasOnce() bool` + +HasOnce returns a boolean if a field has been set. + +### GetParentSubscription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetParentSubscription() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference` + +GetParentSubscription returns the ParentSubscription field if non-nil, zero value otherwise. + +### GetParentSubscriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetParentSubscriptionOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference, bool)` + +GetParentSubscriptionOk returns a tuple with the ParentSubscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentSubscription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetParentSubscription(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference)` + +SetParentSubscription sets ParentSubscription field to given value. + +### HasParentSubscription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasParentSubscription() bool` + +HasParentSubscription returns a boolean if a field has been set. + +### GetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetRecurring() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem` + +GetRecurring returns the Recurring field if non-nil, zero value otherwise. + +### GetRecurringOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetRecurringOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem, bool)` + +GetRecurringOk returns a tuple with the Recurring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetRecurring(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem)` + +SetRecurring sets Recurring field to given value. + +### HasRecurring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasRecurring() bool` + +HasRecurring returns a boolean if a field has been set. + +### GetStartDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStartDate() time.Time` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStartDateOk() (*time.Time, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetStartDate(v time.Time)` + +SetStartDate sets StartDate field to given value. + +### HasStartDate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasStartDate() bool` + +HasStartDate returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + +### GetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec` + +GetSuger returns the Suger field if non-nil, zero value otherwise. + +### GetSugerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec, bool)` + +GetSugerOk returns a tuple with the Suger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec)` + +SetSuger sets Suger field to given value. + +### HasSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasSuger() bool` + +HasSuger returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus.md new file mode 100644 index 0000000..6d92ebd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**Items** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem.md) | the status of the subscription is designed to support billing agents, so it provides product and subscription items. | [optional] +**PendingSetupIntent** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetPendingSetupIntent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetPendingSetupIntent() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference` + +GetPendingSetupIntent returns the PendingSetupIntent field if non-nil, zero value otherwise. + +### GetPendingSetupIntentOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetPendingSetupIntentOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference, bool)` + +GetPendingSetupIntentOk returns a tuple with the PendingSetupIntent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingSetupIntent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) SetPendingSetupIntent(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference)` + +SetPendingSetupIntent sets PendingSetupIntent field to given value. + +### HasPendingSetupIntent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) HasPendingSetupIntent() bool` + +HasPendingSetupIntent returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem.md new file mode 100644 index 0000000..0538dc0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | Key is the item key within the subscription. | [optional] +**Product** | Pointer to **string** | Product is the Product object reference as a qualified name. | [optional] +**StripeID** | Pointer to **string** | The unique identifier for the Stripe subscription item. | [optional] +**SugerID** | Pointer to **string** | The unique identifier for the Suger entitlement item. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItemWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetProduct(v string)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetStripeID() string` + +GetStripeID returns the StripeID field if non-nil, zero value otherwise. + +### GetStripeIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetStripeIDOk() (*string, bool)` + +GetStripeIDOk returns a tuple with the StripeID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetStripeID(v string)` + +SetStripeID sets StripeID field to given value. + +### HasStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasStripeID() bool` + +HasStripeID returns a boolean if a field has been set. + +### GetSugerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetSugerID() string` + +GetSugerID returns the SugerID field if non-nil, zero value otherwise. + +### GetSugerIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetSugerIDOk() (*string, bool)` + +GetSugerIDOk returns a tuple with the SugerID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSugerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetSugerID(v string)` + +SetSugerID sets SugerID field to given value. + +### HasSugerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasSugerID() bool` + +HasSugerID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md new file mode 100644 index 0000000..41162c8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec.md new file mode 100644 index 0000000..eec1165 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntitlementID** | Pointer to **string** | EntitlementID is the ID of the entitlement | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) GetEntitlementID() string` + +GetEntitlementID returns the EntitlementID field if non-nil, zero value otherwise. + +### GetEntitlementIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) GetEntitlementIDOk() (*string, bool)` + +GetEntitlementIDOk returns a tuple with the EntitlementID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) SetEntitlementID(v string)` + +SetEntitlementID sets EntitlementID field to given value. + +### HasEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) HasEntitlementID() bool` + +HasEntitlementID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus.md new file mode 100644 index 0000000..60de5f0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuyerID** | Pointer to **string** | BuyerID is the ID of buyer associated with organization The first one will be returned when there are more than one are found. | [optional] +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**Organization** | Pointer to **string** | Organization is the name of the organization matching the entitlement ID The first one will be returned when there are more than one are found. | [optional] +**Partner** | Pointer to **string** | Partner is the partner associated with organization | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuyerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetBuyerID() string` + +GetBuyerID returns the BuyerID field if non-nil, zero value otherwise. + +### GetBuyerIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetBuyerIDOk() (*string, bool)` + +GetBuyerIDOk returns a tuple with the BuyerID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuyerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetBuyerID(v string)` + +SetBuyerID sets BuyerID field to given value. + +### HasBuyerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasBuyerID() bool` + +HasBuyerID returns a boolean if a field has been set. + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetOrganization() string` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetOrganizationOk() (*string, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetOrganization(v string)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetPartner() string` + +GetPartner returns the Partner field if non-nil, zero value otherwise. + +### GetPartnerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetPartnerOk() (*string, bool)` + +GetPartnerOk returns a tuple with the Partner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetPartner(v string)` + +SetPartner sets Partner field to given value. + +### HasPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasPartner() bool` + +HasPartner returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct.md new file mode 100644 index 0000000..d62f5b8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DimensionKey** | **string** | DimensionKey is the metering dimension of the Suger product. | +**ProductID** | Pointer to **string** | ProductID is the suger product id. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct(dimensionKey string, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDimensionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetDimensionKey() string` + +GetDimensionKey returns the DimensionKey field if non-nil, zero value otherwise. + +### GetDimensionKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetDimensionKeyOk() (*string, bool)` + +GetDimensionKeyOk returns a tuple with the DimensionKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDimensionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) SetDimensionKey(v string)` + +SetDimensionKey sets DimensionKey field to given value. + + +### GetProductID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetProductID() string` + +GetProductID returns the ProductID field if non-nil, zero value otherwise. + +### GetProductIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetProductIDOk() (*string, bool)` + +GetProductIDOk returns a tuple with the ProductID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) SetProductID(v string)` + +SetProductID sets ProductID field to given value. + +### HasProductID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) HasProductID() bool` + +HasProductID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec.md new file mode 100644 index 0000000..5d3f4a5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DimensionKey** | Pointer to **string** | DimensionKey is the metering dimension of the Suger product. Deprecated: use Products | [optional] +**ProductID** | Pointer to **string** | ProductID is the suger product id. Deprecated: use Products | [optional] +**Products** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct.md) | Products is the list of suger products. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDimensionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetDimensionKey() string` + +GetDimensionKey returns the DimensionKey field if non-nil, zero value otherwise. + +### GetDimensionKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetDimensionKeyOk() (*string, bool)` + +GetDimensionKeyOk returns a tuple with the DimensionKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDimensionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) SetDimensionKey(v string)` + +SetDimensionKey sets DimensionKey field to given value. + +### HasDimensionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) HasDimensionKey() bool` + +HasDimensionKey returns a boolean if a field has been set. + +### GetProductID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProductID() string` + +GetProductID returns the ProductID field if non-nil, zero value otherwise. + +### GetProductIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProductIDOk() (*string, bool)` + +GetProductIDOk returns a tuple with the ProductID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) SetProductID(v string)` + +SetProductID sets ProductID field to given value. + +### HasProductID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) HasProductID() bool` + +HasProductID returns a boolean if a field has been set. + +### GetProducts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProducts() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct` + +GetProducts returns the Products field if non-nil, zero value otherwise. + +### GetProductsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProductsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct, bool)` + +GetProductsOk returns a tuple with the Products field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProducts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) SetProducts(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct)` + +SetProducts sets Products field to given value. + +### HasProducts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) HasProducts() bool` + +HasProducts returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec.md new file mode 100644 index 0000000..326841c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntitlementID** | Pointer to **string** | EntitlementID is the suger entitlement ID. An entitlement is a contract that one buyer has purchased your product in the marketplace. | [optional] +**Partner** | Pointer to **string** | The partner code of the entitlement. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetEntitlementID() string` + +GetEntitlementID returns the EntitlementID field if non-nil, zero value otherwise. + +### GetEntitlementIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetEntitlementIDOk() (*string, bool)` + +GetEntitlementIDOk returns a tuple with the EntitlementID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) SetEntitlementID(v string)` + +SetEntitlementID sets EntitlementID field to given value. + +### HasEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) HasEntitlementID() bool` + +HasEntitlementID returns a boolean if a field has been set. + +### GetPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetPartner() string` + +GetPartner returns the Partner field if non-nil, zero value otherwise. + +### GetPartnerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetPartnerOk() (*string, bool)` + +GetPartnerOk returns a tuple with the Partner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) SetPartner(v string)` + +SetPartner sets Partner field to given value. + +### HasPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) HasPartner() bool` + +HasPartner returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec.md new file mode 100644 index 0000000..c0cddf3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuyerID** | Pointer to **string** | BuyerID is the Suger internal ID of the buyer of the entitlement | [optional] +**EntitlementID** | **string** | ID is the Suger entitlement ID. Entitlement is the contract that one buyer has purchased your product in the marketplace. | +**Partner** | Pointer to **string** | Partner is the partner of the entitlement | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec(entitlementID string, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuyerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetBuyerID() string` + +GetBuyerID returns the BuyerID field if non-nil, zero value otherwise. + +### GetBuyerIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetBuyerIDOk() (*string, bool)` + +GetBuyerIDOk returns a tuple with the BuyerID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuyerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) SetBuyerID(v string)` + +SetBuyerID sets BuyerID field to given value. + +### HasBuyerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) HasBuyerID() bool` + +HasBuyerID returns a boolean if a field has been set. + +### GetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetEntitlementID() string` + +GetEntitlementID returns the EntitlementID field if non-nil, zero value otherwise. + +### GetEntitlementIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetEntitlementIDOk() (*string, bool)` + +GetEntitlementIDOk returns a tuple with the EntitlementID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) SetEntitlementID(v string)` + +SetEntitlementID sets EntitlementID field to given value. + + +### GetPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetPartner() string` + +GetPartner returns the Partner field if non-nil, zero value otherwise. + +### GetPartnerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetPartnerOk() (*string, bool)` + +GetPartnerOk returns a tuple with the Partner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) SetPartner(v string)` + +SetPartner sets Partner field to given value. + +### HasPartner + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) HasPartner() bool` + +HasPartner returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md new file mode 100644 index 0000000..a8539ee --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList.md new file mode 100644 index 0000000..6007dae --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock**](ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec.md new file mode 100644 index 0000000..cdee74f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FrozenTime** | **time.Time** | The current time of the clock. | +**Name** | Pointer to **string** | The clock display name. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec(frozenTime time.Time, ) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFrozenTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetFrozenTime() time.Time` + +GetFrozenTime returns the FrozenTime field if non-nil, zero value otherwise. + +### GetFrozenTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetFrozenTimeOk() (*time.Time, bool)` + +GetFrozenTimeOk returns a tuple with the FrozenTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrozenTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) SetFrozenTime(v time.Time)` + +SetFrozenTime sets FrozenTime field to given value. + + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus.md new file mode 100644 index 0000000..dc84dc6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**StripeID** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetStripeID() string` + +GetStripeID returns the StripeID field if non-nil, zero value otherwise. + +### GetStripeIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetStripeIDOk() (*string, bool)` + +GetStripeIDOk returns a tuple with the StripeID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) SetStripeID(v string)` + +SetStripeID sets StripeID field to given value. + +### HasStripeID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) HasStripeID() bool` + +HasStripeID returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md new file mode 100644 index 0000000..517c003 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlatAmount** | Pointer to **string** | FlatAmount is the flat billing amount for an entire tier, regardless of the number of units in the tier, in dollars. | [optional] +**UnitAmount** | Pointer to **string** | UnitAmount is the per-unit billing amount for each individual unit for which this tier applies, in dollars. | [optional] +**UpTo** | Pointer to **string** | UpTo specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TierWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TierWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier` + +NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TierWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFlatAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetFlatAmount() string` + +GetFlatAmount returns the FlatAmount field if non-nil, zero value otherwise. + +### GetFlatAmountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetFlatAmountOk() (*string, bool)` + +GetFlatAmountOk returns a tuple with the FlatAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlatAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) SetFlatAmount(v string)` + +SetFlatAmount sets FlatAmount field to given value. + +### HasFlatAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) HasFlatAmount() bool` + +HasFlatAmount returns a boolean if a field has been set. + +### GetUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUnitAmount() string` + +GetUnitAmount returns the UnitAmount field if non-nil, zero value otherwise. + +### GetUnitAmountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUnitAmountOk() (*string, bool)` + +GetUnitAmountOk returns a tuple with the UnitAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) SetUnitAmount(v string)` + +SetUnitAmount sets UnitAmount field to given value. + +### HasUnitAmount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) HasUnitAmount() bool` + +HasUnitAmount returns a boolean if a field has been set. + +### GetUpTo + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUpTo() string` + +GetUpTo returns the UpTo field if non-nil, zero value otherwise. + +### GetUpToOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUpToOk() (*string, bool)` + +GetUpToOk returns a tuple with the UpTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpTo + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) SetUpTo(v string)` + +SetUpTo sets UpTo field to given value. + +### HasUpTo + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) HasUpTo() bool` + +HasUpTo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md new file mode 100644 index 0000000..a925eb0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md new file mode 100644 index 0000000..f1515bd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec.md new file mode 100644 index 0000000..0e528cc --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec.md @@ -0,0 +1,186 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | Description is a user defined description of the key | [optional] +**EncryptionKey** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey.md) | | [optional] +**ExpirationTime** | Pointer to **time.Time** | Expiration is a duration (as a golang duration string) that defines how long this API key is valid for. This can only be set on initial creation and not updated later | [optional] +**InstanceName** | Pointer to **string** | InstanceName is the name of the instance this API key is for | [optional] +**Revoke** | Pointer to **bool** | Revoke is a boolean that defines if the token of this API key should be revoked. | [optional] +**ServiceAccountName** | Pointer to **string** | ServiceAccountName is the name of the service account this API key is for | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEncryptionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetEncryptionKey() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey` + +GetEncryptionKey returns the EncryptionKey field if non-nil, zero value otherwise. + +### GetEncryptionKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetEncryptionKeyOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey, bool)` + +GetEncryptionKeyOk returns a tuple with the EncryptionKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncryptionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetEncryptionKey(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey)` + +SetEncryptionKey sets EncryptionKey field to given value. + +### HasEncryptionKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasEncryptionKey() bool` + +HasEncryptionKey returns a boolean if a field has been set. + +### GetExpirationTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetExpirationTime() time.Time` + +GetExpirationTime returns the ExpirationTime field if non-nil, zero value otherwise. + +### GetExpirationTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetExpirationTimeOk() (*time.Time, bool)` + +GetExpirationTimeOk returns a tuple with the ExpirationTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetExpirationTime(v time.Time)` + +SetExpirationTime sets ExpirationTime field to given value. + +### HasExpirationTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasExpirationTime() bool` + +HasExpirationTime returns a boolean if a field has been set. + +### GetInstanceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetInstanceName() string` + +GetInstanceName returns the InstanceName field if non-nil, zero value otherwise. + +### GetInstanceNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetInstanceNameOk() (*string, bool)` + +GetInstanceNameOk returns a tuple with the InstanceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetInstanceName(v string)` + +SetInstanceName sets InstanceName field to given value. + +### HasInstanceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasInstanceName() bool` + +HasInstanceName returns a boolean if a field has been set. + +### GetRevoke + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetRevoke() bool` + +GetRevoke returns the Revoke field if non-nil, zero value otherwise. + +### GetRevokeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetRevokeOk() (*bool, bool)` + +GetRevokeOk returns a tuple with the Revoke field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevoke + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetRevoke(v bool)` + +SetRevoke sets Revoke field to given value. + +### HasRevoke + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasRevoke() bool` + +HasRevoke returns a boolean if a field has been set. + +### GetServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetServiceAccountName() string` + +GetServiceAccountName returns the ServiceAccountName field if non-nil, zero value otherwise. + +### GetServiceAccountNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetServiceAccountNameOk() (*string, bool)` + +GetServiceAccountNameOk returns a tuple with the ServiceAccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetServiceAccountName(v string)` + +SetServiceAccountName sets ServiceAccountName field to given value. + +### HasServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasServiceAccountName() bool` + +HasServiceAccountName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus.md new file mode 100644 index 0000000..6b6deae --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus.md @@ -0,0 +1,212 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions is an array of current observed service account conditions. | [optional] +**EncryptedToken** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken.md) | | [optional] +**ExpiresAt** | Pointer to **time.Time** | ExpiresAt is a timestamp of when the key expires | [optional] +**IssuedAt** | Pointer to **time.Time** | IssuedAt is a timestamp of when the key was issued, stored as an epoch in seconds | [optional] +**KeyId** | Pointer to **string** | KeyId is a generated field that is a uid for the token | [optional] +**RevokedAt** | Pointer to **time.Time** | ExpiresAt is a timestamp of when the key was revoked, it triggers revocation action | [optional] +**Token** | Pointer to **string** | Token is the plaintext security token issued for the key. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetEncryptedToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetEncryptedToken() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken` + +GetEncryptedToken returns the EncryptedToken field if non-nil, zero value otherwise. + +### GetEncryptedTokenOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetEncryptedTokenOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken, bool)` + +GetEncryptedTokenOk returns a tuple with the EncryptedToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncryptedToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetEncryptedToken(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken)` + +SetEncryptedToken sets EncryptedToken field to given value. + +### HasEncryptedToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasEncryptedToken() bool` + +HasEncryptedToken returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### GetIssuedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetIssuedAt() time.Time` + +GetIssuedAt returns the IssuedAt field if non-nil, zero value otherwise. + +### GetIssuedAtOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetIssuedAtOk() (*time.Time, bool)` + +GetIssuedAtOk returns a tuple with the IssuedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetIssuedAt(v time.Time)` + +SetIssuedAt sets IssuedAt field to given value. + +### HasIssuedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasIssuedAt() bool` + +HasIssuedAt returns a boolean if a field has been set. + +### GetKeyId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetKeyId() string` + +GetKeyId returns the KeyId field if non-nil, zero value otherwise. + +### GetKeyIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetKeyIdOk() (*string, bool)` + +GetKeyIdOk returns a tuple with the KeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetKeyId(v string)` + +SetKeyId sets KeyId field to given value. + +### HasKeyId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasKeyId() bool` + +HasKeyId returns a boolean if a field has been set. + +### GetRevokedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetRevokedAt() time.Time` + +GetRevokedAt returns the RevokedAt field if non-nil, zero value otherwise. + +### GetRevokedAtOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetRevokedAtOk() (*time.Time, bool)` + +GetRevokedAtOk returns a tuple with the RevokedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevokedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetRevokedAt(v time.Time)` + +SetRevokedAt sets RevokedAt field to given value. + +### HasRevokedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasRevokedAt() bool` + +HasRevokedAt returns a boolean if a field has been set. + +### GetToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetToken() string` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetTokenOk() (*string, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetToken(v string)` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasToken() bool` + +HasToken returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection.md new file mode 100644 index 0000000..719f508 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountId** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection(accountId string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnectionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog.md new file mode 100644 index 0000000..1798db8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Categories** | **[]string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog(categories []string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLogWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLogWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLogWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCategories + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) GetCategories() []string` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) GetCategoriesOk() (*[]string, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) SetCategories(v []string)` + +SetCategories sets Categories field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md new file mode 100644 index 0000000..7b182d9 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxReplicas** | **int32** | | +**MinReplicas** | Pointer to **int32** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy(maxReplicas int32, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicyWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMaxReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMaxReplicas() int32` + +GetMaxReplicas returns the MaxReplicas field if non-nil, zero value otherwise. + +### GetMaxReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMaxReplicasOk() (*int32, bool)` + +GetMaxReplicasOk returns a tuple with the MaxReplicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) SetMaxReplicas(v int32)` + +SetMaxReplicas sets MaxReplicas field to given value. + + +### GetMinReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMinReplicas() int32` + +GetMinReplicas returns the MinReplicas field if non-nil, zero value otherwise. + +### GetMinReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMinReplicasOk() (*int32, bool)` + +GetMinReplicasOk returns a tuple with the MinReplicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) SetMinReplicas(v int32)` + +SetMinReplicas sets MinReplicas field to given value. + +### HasMinReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) HasMinReplicas() bool` + +HasMinReplicas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec.md new file mode 100644 index 0000000..5b15e56 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec.md @@ -0,0 +1,176 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessKeyID** | Pointer to **string** | AWS Access key ID | [optional] +**AdminRoleARN** | Pointer to **string** | AdminRoleARN is the admin role to assume (or empty to use the manager's identity). | [optional] +**ClusterName** | **string** | ClusterName is the EKS cluster name. | +**PermissionBoundaryARN** | Pointer to **string** | PermissionBoundaryARN refers to the permission boundary to assign to IAM roles. | [optional] +**Region** | **string** | Region is the AWS region of the cluster. | +**SecretAccessKey** | Pointer to **string** | AWS Secret Access Key | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec(clusterName string, region string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccessKeyID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAccessKeyID() string` + +GetAccessKeyID returns the AccessKeyID field if non-nil, zero value otherwise. + +### GetAccessKeyIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAccessKeyIDOk() (*string, bool)` + +GetAccessKeyIDOk returns a tuple with the AccessKeyID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessKeyID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetAccessKeyID(v string)` + +SetAccessKeyID sets AccessKeyID field to given value. + +### HasAccessKeyID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasAccessKeyID() bool` + +HasAccessKeyID returns a boolean if a field has been set. + +### GetAdminRoleARN + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAdminRoleARN() string` + +GetAdminRoleARN returns the AdminRoleARN field if non-nil, zero value otherwise. + +### GetAdminRoleARNOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAdminRoleARNOk() (*string, bool)` + +GetAdminRoleARNOk returns a tuple with the AdminRoleARN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminRoleARN + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetAdminRoleARN(v string)` + +SetAdminRoleARN sets AdminRoleARN field to given value. + +### HasAdminRoleARN + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasAdminRoleARN() bool` + +HasAdminRoleARN returns a boolean if a field has been set. + +### GetClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetClusterName() string` + +GetClusterName returns the ClusterName field if non-nil, zero value otherwise. + +### GetClusterNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetClusterNameOk() (*string, bool)` + +GetClusterNameOk returns a tuple with the ClusterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetClusterName(v string)` + +SetClusterName sets ClusterName field to given value. + + +### GetPermissionBoundaryARN + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetPermissionBoundaryARN() string` + +GetPermissionBoundaryARN returns the PermissionBoundaryARN field if non-nil, zero value otherwise. + +### GetPermissionBoundaryARNOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetPermissionBoundaryARNOk() (*string, bool)` + +GetPermissionBoundaryARNOk returns a tuple with the PermissionBoundaryARN field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionBoundaryARN + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetPermissionBoundaryARN(v string)` + +SetPermissionBoundaryARN sets PermissionBoundaryARN field to given value. + +### HasPermissionBoundaryARN + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasPermissionBoundaryARN() bool` + +HasPermissionBoundaryARN returns a boolean if a field has been set. + +### GetRegion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetRegion(v string)` + +SetRegion sets Region field to given value. + + +### GetSecretAccessKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetSecretAccessKey() string` + +GetSecretAccessKey returns the SecretAccessKey field if non-nil, zero value otherwise. + +### GetSecretAccessKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetSecretAccessKeyOk() (*string, bool)` + +GetSecretAccessKeyOk returns a tuple with the SecretAccessKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretAccessKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetSecretAccessKey(v string)` + +SetSecretAccessKey sets SecretAccessKey field to given value. + +### HasSecretAccessKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasSecretAccessKey() bool` + +HasSecretAccessKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection.md new file mode 100644 index 0000000..e74b1d0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection.md @@ -0,0 +1,114 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientId** | **string** | | +**SubscriptionId** | **string** | | +**SupportClientId** | **string** | | +**TenantId** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection(clientId string, subscriptionId string, supportClientId string, tenantId string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnectionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetClientId() string` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetClientId(v string)` + +SetClientId sets ClientId field to given value. + + +### GetSubscriptionId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + + +### GetSupportClientId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSupportClientId() string` + +GetSupportClientId returns the SupportClientId field if non-nil, zero value otherwise. + +### GetSupportClientIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSupportClientIdOk() (*string, bool)` + +GetSupportClientIdOk returns a tuple with the SupportClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportClientId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetSupportClientId(v string)` + +SetSupportClientId sets SupportClientId field to given value. + + +### GetTenantId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec.md new file mode 100644 index 0000000..b661329 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec.md @@ -0,0 +1,156 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientID** | **string** | ClientID is the Azure client ID of which the GSA can impersonate. | +**ClusterName** | **string** | ClusterName is the AKS cluster name. | +**Location** | **string** | Location is the Azure location of the cluster. | +**ResourceGroup** | **string** | ResourceGroup is the Azure resource group of the cluster. | +**SubscriptionID** | **string** | SubscriptionID is the Azure subscription ID of the cluster. | +**TenantID** | **string** | TenantID is the Azure tenant ID of the client. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec(clientID string, clusterName string, location string, resourceGroup string, subscriptionID string, tenantID string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClientID() string` + +GetClientID returns the ClientID field if non-nil, zero value otherwise. + +### GetClientIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClientIDOk() (*string, bool)` + +GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetClientID(v string)` + +SetClientID sets ClientID field to given value. + + +### GetClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClusterName() string` + +GetClusterName returns the ClusterName field if non-nil, zero value otherwise. + +### GetClusterNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClusterNameOk() (*string, bool)` + +GetClusterNameOk returns a tuple with the ClusterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetClusterName(v string)` + +SetClusterName sets ClusterName field to given value. + + +### GetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetResourceGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetResourceGroup() string` + +GetResourceGroup returns the ResourceGroup field if non-nil, zero value otherwise. + +### GetResourceGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetResourceGroupOk() (*string, bool)` + +GetResourceGroupOk returns a tuple with the ResourceGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetResourceGroup(v string)` + +SetResourceGroup sets ResourceGroup field to given value. + + +### GetSubscriptionID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetSubscriptionID() string` + +GetSubscriptionID returns the SubscriptionID field if non-nil, zero value otherwise. + +### GetSubscriptionIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetSubscriptionIDOk() (*string, bool)` + +GetSubscriptionIDOk returns a tuple with the SubscriptionID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetSubscriptionID(v string)` + +SetSubscriptionID sets SubscriptionID field to given value. + + +### GetTenantID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetTenantID() string` + +GetTenantID returns the TenantID field if non-nil, zero value otherwise. + +### GetTenantIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetTenantIDOk() (*string, bool)` + +GetTenantIDOk returns a tuple with the TenantID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetTenantID(v string)` + +SetTenantID sets TenantID field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec.md new file mode 100644 index 0000000..050d901 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec(email string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) SetEmail(v string)` + +SetEmail sets Email field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper.md new file mode 100644 index 0000000..35bfc09 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper.md @@ -0,0 +1,155 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoScalingPolicy** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md) | | [optional] +**Image** | Pointer to **string** | Image name is the name of the image to deploy. | [optional] +**Replicas** | **int32** | Replicas is the expected size of the bookkeeper cluster. | +**ResourceSpec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec.md) | | [optional] +**Resources** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper(replicas int32, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAutoScalingPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetAutoScalingPolicy() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy` + +GetAutoScalingPolicy returns the AutoScalingPolicy field if non-nil, zero value otherwise. + +### GetAutoScalingPolicyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetAutoScalingPolicyOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy, bool)` + +GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoScalingPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetAutoScalingPolicy(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy)` + +SetAutoScalingPolicy sets AutoScalingPolicy field to given value. + +### HasAutoScalingPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasAutoScalingPolicy() bool` + +HasAutoScalingPolicy returns a boolean if a field has been set. + +### GetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetReplicas() int32` + +GetReplicas returns the Replicas field if non-nil, zero value otherwise. + +### GetReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetReplicasOk() (*int32, bool)` + +GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetReplicas(v int32)` + +SetReplicas sets Replicas field to given value. + + +### GetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec` + +GetResourceSpec returns the ResourceSpec field if non-nil, zero value otherwise. + +### GetResourceSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec, bool)` + +GetResourceSpecOk returns a tuple with the ResourceSpec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec)` + +SetResourceSpec sets ResourceSpec field to given value. + +### HasResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasResourceSpec() bool` + +HasResourceSpec returns a boolean if a field has been set. + +### GetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec.md new file mode 100644 index 0000000..bcbb4b1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeType** | Pointer to **string** | NodeType defines the request node specification type, take lower precedence over Resources | [optional] +**StorageSize** | Pointer to **string** | StorageSize defines the size of the storage | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetNodeType() string` + +GetNodeType returns the NodeType field if non-nil, zero value otherwise. + +### GetNodeTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetNodeTypeOk() (*string, bool)` + +GetNodeTypeOk returns a tuple with the NodeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) SetNodeType(v string)` + +SetNodeType sets NodeType field to given value. + +### HasNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) HasNodeType() bool` + +HasNodeType returns a boolean if a field has been set. + +### GetStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetStorageSize() string` + +GetStorageSize returns the StorageSize field if non-nil, zero value otherwise. + +### GetStorageSizeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetStorageSizeOk() (*string, bool)` + +GetStorageSizeOk returns a tuple with the StorageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) SetStorageSize(v string)` + +SetStorageSize sets StorageSize field to given value. + +### HasStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) HasStorageSize() bool` + +HasStorageSize returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference.md new file mode 100644 index 0000000..6e8f968 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource.md new file mode 100644 index 0000000..1904737 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource.md @@ -0,0 +1,176 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cpu** | **string** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | +**DirectPercentage** | Pointer to **int32** | Percentage of direct memory from overall memory. Set to 0 to use default value. | [optional] +**HeapPercentage** | Pointer to **int32** | Percentage of heap memory from overall memory. Set to 0 to use default value. | [optional] +**JournalDisk** | Pointer to **string** | JournalDisk size. Set to zero equivalent to use default value | [optional] +**LedgerDisk** | Pointer to **string** | LedgerDisk size. Set to zero equivalent to use default value | [optional] +**Memory** | **string** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource(cpu string, memory string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResourceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetCpu() string` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetCpuOk() (*string, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetCpu(v string)` + +SetCpu sets Cpu field to given value. + + +### GetDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetDirectPercentage() int32` + +GetDirectPercentage returns the DirectPercentage field if non-nil, zero value otherwise. + +### GetDirectPercentageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetDirectPercentageOk() (*int32, bool)` + +GetDirectPercentageOk returns a tuple with the DirectPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetDirectPercentage(v int32)` + +SetDirectPercentage sets DirectPercentage field to given value. + +### HasDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasDirectPercentage() bool` + +HasDirectPercentage returns a boolean if a field has been set. + +### GetHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetHeapPercentage() int32` + +GetHeapPercentage returns the HeapPercentage field if non-nil, zero value otherwise. + +### GetHeapPercentageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetHeapPercentageOk() (*int32, bool)` + +GetHeapPercentageOk returns a tuple with the HeapPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetHeapPercentage(v int32)` + +SetHeapPercentage sets HeapPercentage field to given value. + +### HasHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasHeapPercentage() bool` + +HasHeapPercentage returns a boolean if a field has been set. + +### GetJournalDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetJournalDisk() string` + +GetJournalDisk returns the JournalDisk field if non-nil, zero value otherwise. + +### GetJournalDiskOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetJournalDiskOk() (*string, bool)` + +GetJournalDiskOk returns a tuple with the JournalDisk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJournalDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetJournalDisk(v string)` + +SetJournalDisk sets JournalDisk field to given value. + +### HasJournalDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasJournalDisk() bool` + +HasJournalDisk returns a boolean if a field has been set. + +### GetLedgerDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetLedgerDisk() string` + +GetLedgerDisk returns the LedgerDisk field if non-nil, zero value otherwise. + +### GetLedgerDiskOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetLedgerDiskOk() (*string, bool)` + +GetLedgerDiskOk returns a tuple with the LedgerDisk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedgerDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetLedgerDisk(v string)` + +SetLedgerDisk sets LedgerDisk field to given value. + +### HasLedgerDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasLedgerDisk() bool` + +HasLedgerDisk returns a boolean if a field has been set. + +### GetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetMemory() string` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetMemoryOk() (*string, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetMemory(v string)` + +SetMemory sets Memory field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker.md new file mode 100644 index 0000000..89ad439 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker.md @@ -0,0 +1,155 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoScalingPolicy** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy.md) | | [optional] +**Image** | Pointer to **string** | Image name is the name of the image to deploy. | [optional] +**Replicas** | **int32** | Replicas is the expected size of the broker cluster. | +**ResourceSpec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec.md) | | [optional] +**Resources** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker(replicas int32, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAutoScalingPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetAutoScalingPolicy() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy` + +GetAutoScalingPolicy returns the AutoScalingPolicy field if non-nil, zero value otherwise. + +### GetAutoScalingPolicyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetAutoScalingPolicyOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy, bool)` + +GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoScalingPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetAutoScalingPolicy(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy)` + +SetAutoScalingPolicy sets AutoScalingPolicy field to given value. + +### HasAutoScalingPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasAutoScalingPolicy() bool` + +HasAutoScalingPolicy returns a boolean if a field has been set. + +### GetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetReplicas() int32` + +GetReplicas returns the Replicas field if non-nil, zero value otherwise. + +### GetReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetReplicasOk() (*int32, bool)` + +GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetReplicas(v int32)` + +SetReplicas sets Replicas field to given value. + + +### GetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec` + +GetResourceSpec returns the ResourceSpec field if non-nil, zero value otherwise. + +### GetResourceSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec, bool)` + +GetResourceSpecOk returns a tuple with the ResourceSpec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec)` + +SetResourceSpec sets ResourceSpec field to given value. + +### HasResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasResourceSpec() bool` + +HasResourceSpec returns a boolean if a field has been set. + +### GetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec.md new file mode 100644 index 0000000..e6eebef --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeType** | Pointer to **string** | NodeType defines the request node specification type, take lower precedence over Resources | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) GetNodeType() string` + +GetNodeType returns the NodeType field if non-nil, zero value otherwise. + +### GetNodeTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) GetNodeTypeOk() (*string, bool)` + +GetNodeTypeOk returns a tuple with the NodeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) SetNodeType(v string)` + +SetNodeType sets NodeType field to given value. + +### HasNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) HasNodeType() bool` + +HasNodeType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain.md new file mode 100644 index 0000000..26f4b6b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**RoleChain** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ChainWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ChainWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ChainWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRoleChain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetRoleChain() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition` + +GetRoleChain returns the RoleChain field if non-nil, zero value otherwise. + +### GetRoleChainOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetRoleChainOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition, bool)` + +GetRoleChainOk returns a tuple with the RoleChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleChain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) SetRoleChain(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition)` + +SetRoleChain sets RoleChain field to given value. + +### HasRoleChain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) HasRoleChain() bool` + +HasRoleChain returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md new file mode 100644 index 0000000..5147673 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md new file mode 100644 index 0000000..d657115 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec.md new file mode 100644 index 0000000..81713fb --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Aws** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection.md) | | [optional] +**Azure** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection.md) | | [optional] +**Gcp** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection.md) | | [optional] +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec(type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAws() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection` + +GetAws returns the Aws field if non-nil, zero value otherwise. + +### GetAwsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAwsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection, bool)` + +GetAwsOk returns a tuple with the Aws field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetAws(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection)` + +SetAws sets Aws field to given value. + +### HasAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) HasAws() bool` + +HasAws returns a boolean if a field has been set. + +### GetAzure + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAzure() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection` + +GetAzure returns the Azure field if non-nil, zero value otherwise. + +### GetAzureOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAzureOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection, bool)` + +GetAzureOk returns a tuple with the Azure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzure + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetAzure(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection)` + +SetAzure sets Azure field to given value. + +### HasAzure + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) HasAzure() bool` + +HasAzure returns a boolean if a field has been set. + +### GetGcp + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetGcp() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection` + +GetGcp returns the Gcp field if non-nil, zero value otherwise. + +### GetGcpOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetGcpOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection, bool)` + +GetGcpOk returns a tuple with the Gcp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcp + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetGcp(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection)` + +SetGcp sets Gcp field to given value. + +### HasGcp + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) HasGcp() bool` + +HasGcp returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus.md new file mode 100644 index 0000000..bffadd4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableLocations** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo.md) | | [optional] +**AwsPolicyVersion** | Pointer to **string** | | [optional] +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailableLocations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAvailableLocations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo` + +GetAvailableLocations returns the AvailableLocations field if non-nil, zero value otherwise. + +### GetAvailableLocationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAvailableLocationsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo, bool)` + +GetAvailableLocationsOk returns a tuple with the AvailableLocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableLocations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) SetAvailableLocations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo)` + +SetAvailableLocations sets AvailableLocations field to given value. + +### HasAvailableLocations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) HasAvailableLocations() bool` + +HasAvailableLocations returns a boolean if a field has been set. + +### GetAwsPolicyVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAwsPolicyVersion() string` + +GetAwsPolicyVersion returns the AwsPolicyVersion field if non-nil, zero value otherwise. + +### GetAwsPolicyVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAwsPolicyVersionOk() (*string, bool)` + +GetAwsPolicyVersionOk returns a tuple with the AwsPolicyVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAwsPolicyVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) SetAwsPolicyVersion(v string)` + +SetAwsPolicyVersion sets AwsPolicyVersion field to given value. + +### HasAwsPolicyVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) HasAwsPolicyVersion() bool` + +HasAwsPolicyVersion returns a boolean if a field has been set. + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md new file mode 100644 index 0000000..d8a5c49 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md new file mode 100644 index 0000000..eac5cfd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec.md new file mode 100644 index 0000000..111fdf3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec.md @@ -0,0 +1,186 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudConnectionName** | Pointer to **string** | CloudConnectionName references to the CloudConnection object | [optional] +**DefaultGateway** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway.md) | | [optional] +**Dns** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS.md) | | [optional] +**Network** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network.md) | | [optional] +**Region** | Pointer to **string** | Region defines in which region will resources be deployed | [optional] +**Zone** | Pointer to **string** | Zone defines in which availability zone will resources be deployed If specified, the cloud environment will be zonal. Default to unspecified and regional cloud environment | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCloudConnectionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetCloudConnectionName() string` + +GetCloudConnectionName returns the CloudConnectionName field if non-nil, zero value otherwise. + +### GetCloudConnectionNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetCloudConnectionNameOk() (*string, bool)` + +GetCloudConnectionNameOk returns a tuple with the CloudConnectionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudConnectionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetCloudConnectionName(v string)` + +SetCloudConnectionName sets CloudConnectionName field to given value. + +### HasCloudConnectionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasCloudConnectionName() bool` + +HasCloudConnectionName returns a boolean if a field has been set. + +### GetDefaultGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDefaultGateway() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway` + +GetDefaultGateway returns the DefaultGateway field if non-nil, zero value otherwise. + +### GetDefaultGatewayOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDefaultGatewayOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway, bool)` + +GetDefaultGatewayOk returns a tuple with the DefaultGateway field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetDefaultGateway(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway)` + +SetDefaultGateway sets DefaultGateway field to given value. + +### HasDefaultGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasDefaultGateway() bool` + +HasDefaultGateway returns a boolean if a field has been set. + +### GetDns + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDns() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS` + +GetDns returns the Dns field if non-nil, zero value otherwise. + +### GetDnsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDnsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS, bool)` + +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDns + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetDns(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS)` + +SetDns sets Dns field to given value. + +### HasDns + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasDns() bool` + +HasDns returns a boolean if a field has been set. + +### GetNetwork + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetNetwork() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network` + +GetNetwork returns the Network field if non-nil, zero value otherwise. + +### GetNetworkOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetNetworkOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network, bool)` + +GetNetworkOk returns a tuple with the Network field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetwork + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetNetwork(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network)` + +SetNetwork sets Network field to given value. + +### HasNetwork + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasNetwork() bool` + +HasNetwork returns a boolean if a field has been set. + +### GetRegion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetZone + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetZone() string` + +GetZone returns the Zone field if non-nil, zero value otherwise. + +### GetZoneOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetZoneOk() (*string, bool)` + +GetZoneOk returns a tuple with the Zone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZone + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetZone(v string)` + +SetZone sets Zone field to given value. + +### HasZone + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasZone() bool` + +HasZone returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus.md new file mode 100644 index 0000000..5f43ce4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]V1Condition**](V1Condition.md) | Conditions contains details for the current state of underlying resource | [optional] +**DefaultGateway** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetConditions() []V1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetConditionsOk() (*[]V1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) SetConditions(v []V1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetDefaultGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetDefaultGateway() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus` + +GetDefaultGateway returns the DefaultGateway field if non-nil, zero value otherwise. + +### GetDefaultGatewayOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetDefaultGatewayOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus, bool)` + +GetDefaultGatewayOk returns a tuple with the DefaultGateway field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) SetDefaultGateway(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus)` + +SetDefaultGateway sets DefaultGateway field to given value. + +### HasDefaultGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) HasDefaultGateway() bool` + +HasDefaultGateway returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md new file mode 100644 index 0000000..7d0199f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md new file mode 100644 index 0000000..2e9961d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList.md new file mode 100644 index 0000000..902d107 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec.md new file mode 100644 index 0000000..12cc1b2 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleRef** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md) | | +**Subjects** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec(roleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetRoleRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef` + +GetRoleRef returns the RoleRef field if non-nil, zero value otherwise. + +### GetRoleRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetRoleRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, bool)` + +GetRoleRefOk returns a tuple with the RoleRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) SetRoleRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef)` + +SetRoleRef sets RoleRef field to given value. + + +### GetSubjects + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetSubjects() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject` + +GetSubjects returns the Subjects field if non-nil, zero value otherwise. + +### GetSubjectsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetSubjectsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject, bool)` + +GetSubjectsOk returns a tuple with the Subjects field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjects + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) SetSubjects(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject)` + +SetSubjects sets Subjects field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus.md new file mode 100644 index 0000000..fc705eb --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList.md new file mode 100644 index 0000000..1ad6e25 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec.md new file mode 100644 index 0000000..f61ff75 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permissions** | Pointer to **[]string** | Permissions Designed for general permission format SERVICE.RESOURCE.VERB | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPermissions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus.md new file mode 100644 index 0000000..7383ed8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**FailedClusters** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md) | FailedClusters is an array of clusters which failed to apply the ClusterRole resources. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetFailedClusters() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster` + +GetFailedClusters returns the FailedClusters field if non-nil, zero value otherwise. + +### GetFailedClustersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetFailedClustersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster, bool)` + +GetFailedClustersOk returns a tuple with the FailedClusters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) SetFailedClusters(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster)` + +SetFailedClusters sets FailedClusters field to given value. + +### HasFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) HasFailedClusters() bool` + +HasFailedClusters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md new file mode 100644 index 0000000..349047b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md @@ -0,0 +1,176 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTransitionTime** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**Message** | Pointer to **string** | | [optional] +**ObservedGeneration** | Pointer to **int64** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] +**Reason** | Pointer to **string** | | [optional] +**Status** | **string** | | +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition(status string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetLastTransitionTime() time.Time` + +GetLastTransitionTime returns the LastTransitionTime field if non-nil, zero value otherwise. + +### GetLastTransitionTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetLastTransitionTimeOk() (*time.Time, bool)` + +GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetLastTransitionTime(v time.Time)` + +SetLastTransitionTime sets LastTransitionTime field to given value. + +### HasLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasLastTransitionTime() bool` + +HasLastTransitionTime returns a boolean if a field has been set. + +### GetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + +### HasObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasObservedGeneration() bool` + +HasObservedGeneration returns a boolean if a field has been set. + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md new file mode 100644 index 0000000..65a43e6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConditionGroups** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md) | | [optional] +**Conditions** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition.md) | | +**Relation** | Pointer to **int32** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup(conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroupWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroupWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroupWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditionGroups + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditionGroups() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup` + +GetConditionGroups returns the ConditionGroups field if non-nil, zero value otherwise. + +### GetConditionGroupsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditionGroupsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup, bool)` + +GetConditionGroupsOk returns a tuple with the ConditionGroups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditionGroups + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) SetConditionGroups(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup)` + +SetConditionGroups sets ConditionGroups field to given value. + +### HasConditionGroups + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) HasConditionGroups() bool` + +HasConditionGroups returns a boolean if a field has been set. + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition)` + +SetConditions sets Conditions field to given value. + + +### GetRelation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetRelation() int32` + +GetRelation returns the Relation field if non-nil, zero value otherwise. + +### GetRelationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetRelationOk() (*int32, bool)` + +GetRelationOk returns a tuple with the Relation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) SetRelation(v int32)` + +SetRelation sets Relation field to given value. + +### HasRelation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) HasRelation() bool` + +HasRelation returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config.md new file mode 100644 index 0000000..8b91251 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config.md @@ -0,0 +1,212 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuditLog** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog.md) | | [optional] +**Custom** | Pointer to **map[string]string** | Custom accepts custom configurations. | [optional] +**FunctionEnabled** | Pointer to **bool** | FunctionEnabled controls whether function is enabled. | [optional] +**LakehouseStorage** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig.md) | | [optional] +**Protocols** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig.md) | | [optional] +**TransactionEnabled** | Pointer to **bool** | TransactionEnabled controls whether transaction is enabled. | [optional] +**WebsocketEnabled** | Pointer to **bool** | WebsocketEnabled controls whether websocket is enabled. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConfigWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuditLog + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetAuditLog() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog` + +GetAuditLog returns the AuditLog field if non-nil, zero value otherwise. + +### GetAuditLogOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetAuditLogOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog, bool)` + +GetAuditLogOk returns a tuple with the AuditLog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuditLog + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetAuditLog(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog)` + +SetAuditLog sets AuditLog field to given value. + +### HasAuditLog + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasAuditLog() bool` + +HasAuditLog returns a boolean if a field has been set. + +### GetCustom + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetCustom() map[string]string` + +GetCustom returns the Custom field if non-nil, zero value otherwise. + +### GetCustomOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetCustomOk() (*map[string]string, bool)` + +GetCustomOk returns a tuple with the Custom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustom + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetCustom(v map[string]string)` + +SetCustom sets Custom field to given value. + +### HasCustom + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasCustom() bool` + +HasCustom returns a boolean if a field has been set. + +### GetFunctionEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetFunctionEnabled() bool` + +GetFunctionEnabled returns the FunctionEnabled field if non-nil, zero value otherwise. + +### GetFunctionEnabledOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetFunctionEnabledOk() (*bool, bool)` + +GetFunctionEnabledOk returns a tuple with the FunctionEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetFunctionEnabled(v bool)` + +SetFunctionEnabled sets FunctionEnabled field to given value. + +### HasFunctionEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasFunctionEnabled() bool` + +HasFunctionEnabled returns a boolean if a field has been set. + +### GetLakehouseStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetLakehouseStorage() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig` + +GetLakehouseStorage returns the LakehouseStorage field if non-nil, zero value otherwise. + +### GetLakehouseStorageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetLakehouseStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig, bool)` + +GetLakehouseStorageOk returns a tuple with the LakehouseStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLakehouseStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetLakehouseStorage(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig)` + +SetLakehouseStorage sets LakehouseStorage field to given value. + +### HasLakehouseStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasLakehouseStorage() bool` + +HasLakehouseStorage returns a boolean if a field has been set. + +### GetProtocols + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetProtocols() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig` + +GetProtocols returns the Protocols field if non-nil, zero value otherwise. + +### GetProtocolsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetProtocolsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig, bool)` + +GetProtocolsOk returns a tuple with the Protocols field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocols + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetProtocols(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig)` + +SetProtocols sets Protocols field to given value. + +### HasProtocols + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasProtocols() bool` + +HasProtocols returns a boolean if a field has been set. + +### GetTransactionEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetTransactionEnabled() bool` + +GetTransactionEnabled returns the TransactionEnabled field if non-nil, zero value otherwise. + +### GetTransactionEnabledOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetTransactionEnabledOk() (*bool, bool)` + +GetTransactionEnabledOk returns a tuple with the TransactionEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactionEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetTransactionEnabled(v bool)` + +SetTransactionEnabled sets TransactionEnabled field to given value. + +### HasTransactionEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasTransactionEnabled() bool` + +HasTransactionEnabled returns a boolean if a field has been set. + +### GetWebsocketEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetWebsocketEnabled() bool` + +GetWebsocketEnabled returns the WebsocketEnabled field if non-nil, zero value otherwise. + +### GetWebsocketEnabledOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetWebsocketEnabledOk() (*bool, bool)` + +GetWebsocketEnabledOk returns a tuple with the WebsocketEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetWebsocketEnabled(v bool)` + +SetWebsocketEnabled sets WebsocketEnabled field to given value. + +### HasWebsocketEnabled + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasWebsocketEnabled() bool` + +HasWebsocketEnabled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS.md new file mode 100644 index 0000000..687cab4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | ID is the identifier of a DNS Zone. It can be AWS zone id, GCP zone name, and Azure zone id If ID is specified, an existing zone will be used. Otherwise, a new DNS zone will be created and managed by SN. | [optional] +**Name** | Pointer to **string** | Name is the dns domain name. It can be AWS zone name, GCP dns name and Azure zone name. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNSWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNSWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNSWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource.md new file mode 100644 index 0000000..f8b5d0f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource.md @@ -0,0 +1,124 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cpu** | **string** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | +**DirectPercentage** | Pointer to **int32** | Percentage of direct memory from overall memory. Set to 0 to use default value. | [optional] +**HeapPercentage** | Pointer to **int32** | Percentage of heap memory from overall memory. Set to 0 to use default value. | [optional] +**Memory** | **string** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource(cpu string, memory string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResourceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetCpu() string` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetCpuOk() (*string, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetCpu(v string)` + +SetCpu sets Cpu field to given value. + + +### GetDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetDirectPercentage() int32` + +GetDirectPercentage returns the DirectPercentage field if non-nil, zero value otherwise. + +### GetDirectPercentageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetDirectPercentageOk() (*int32, bool)` + +GetDirectPercentageOk returns a tuple with the DirectPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetDirectPercentage(v int32)` + +SetDirectPercentage sets DirectPercentage field to given value. + +### HasDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) HasDirectPercentage() bool` + +HasDirectPercentage returns a boolean if a field has been set. + +### GetHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetHeapPercentage() int32` + +GetHeapPercentage returns the HeapPercentage field if non-nil, zero value otherwise. + +### GetHeapPercentageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetHeapPercentageOk() (*int32, bool)` + +GetHeapPercentageOk returns a tuple with the HeapPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetHeapPercentage(v int32)` + +SetHeapPercentage sets HeapPercentage field to given value. + +### HasHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) HasHeapPercentage() bool` + +HasHeapPercentage returns a boolean if a field has been set. + +### GetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetMemory() string` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetMemoryOk() (*string, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetMemory(v string)` + +SetMemory sets Memory field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md new file mode 100644 index 0000000..695c51f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Tls** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) SetName(v string)` + +SetName sets Name field to given value. + + +### GetTls + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetTls() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS` + +GetTls returns the Tls field if non-nil, zero value otherwise. + +### GetTlsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetTlsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS, bool)` + +GetTlsOk returns a tuple with the Tls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTls + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) SetTls(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS)` + +SetTls sets Tls field to given value. + +### HasTls + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) HasTls() bool` + +HasTls returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS.md new file mode 100644 index 0000000..e0a3231 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateName** | Pointer to **string** | CertificateName specifies the certificate object name to use. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLSWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLSWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLSWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificateName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) GetCertificateName() string` + +GetCertificateName returns the CertificateName field if non-nil, zero value otherwise. + +### GetCertificateNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) GetCertificateNameOk() (*string, bool)` + +GetCertificateNameOk returns a tuple with the CertificateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificateName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) SetCertificateName(v string)` + +SetCertificateName sets CertificateName field to given value. + +### HasCertificateName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) HasCertificateName() bool` + +HasCertificateName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken.md new file mode 100644 index 0000000..e210df6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jwe** | Pointer to **string** | JWE is the token as a JSON Web Encryption (JWE) message. For RSA public keys, the key encryption algorithm is RSA-OAEP, and the content encryption algorithm is AES GCM. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedTokenWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedTokenWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedTokenWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJwe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) GetJwe() string` + +GetJwe returns the Jwe field if non-nil, zero value otherwise. + +### GetJweOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) GetJweOk() (*string, bool)` + +GetJweOk returns a tuple with the Jwe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) SetJwe(v string)` + +SetJwe sets Jwe field to given value. + +### HasJwe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) HasJwe() bool` + +HasJwe returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey.md new file mode 100644 index 0000000..68103fa --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jwk** | Pointer to **string** | JWK is a JWK-encoded public key. | [optional] +**Pem** | Pointer to **string** | PEM is a PEM-encoded public key in PKIX, ASN.1 DER form (\"spki\" format). | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKeyWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKeyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKeyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJwk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetJwk() string` + +GetJwk returns the Jwk field if non-nil, zero value otherwise. + +### GetJwkOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetJwkOk() (*string, bool)` + +GetJwkOk returns a tuple with the Jwk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) SetJwk(v string)` + +SetJwk sets Jwk field to given value. + +### HasJwk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) HasJwk() bool` + +HasJwk returns a boolean if a field has been set. + +### GetPem + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetPem() string` + +GetPem returns the Pem field if non-nil, zero value otherwise. + +### GetPemOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetPemOk() (*string, bool)` + +GetPemOk returns a tuple with the Pem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPem + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) SetPem(v string)` + +SetPem sets Pem field to given value. + +### HasPem + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) HasPem() bool` + +HasPem returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess.md new file mode 100644 index 0000000..ef3d5fb --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Gateway** | Pointer to **string** | Gateway is the name of the PulsarGateway to use for the endpoint. The default gateway of the pool member will be used if not specified. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccessWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccessWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccessWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) GetGateway() string` + +GetGateway returns the Gateway field if non-nil, zero value otherwise. + +### GetGatewayOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) GetGatewayOk() (*string, bool)` + +GetGatewayOk returns a tuple with the Gateway field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) SetGateway(v string)` + +SetGateway sets Gateway field to given value. + +### HasGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) HasGateway() bool` + +HasGateway returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig.md new file mode 100644 index 0000000..5cef199 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | Preferred input version of the ExecInfo. The returned ExecCredentials MUST use the same encoding version as the input. | [optional] +**Args** | Pointer to **[]string** | Arguments to pass to the command when executing it. | [optional] +**Command** | **string** | Command to execute. | +**Env** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar.md) | Env defines additional environment variables to expose to the process. These are unioned with the host's environment, as well as variables client-go uses to pass argument to the plugin. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig(command string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfigWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetArgs() []string` + +GetArgs returns the Args field if non-nil, zero value otherwise. + +### GetArgsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetArgsOk() (*[]string, bool)` + +GetArgsOk returns a tuple with the Args field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetArgs(v []string)` + +SetArgs sets Args field to given value. + +### HasArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) HasArgs() bool` + +HasArgs returns a boolean if a field has been set. + +### GetCommand + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetCommand() string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetCommandOk() (*string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetCommand(v string)` + +SetCommand sets Command field to given value. + + +### GetEnv + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetEnv() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar` + +GetEnv returns the Env field if non-nil, zero value otherwise. + +### GetEnvOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetEnvOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar, bool)` + +GetEnvOk returns a tuple with the Env field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnv + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetEnv(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar)` + +SetEnv sets Env field to given value. + +### HasEnv + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) HasEnv() bool` + +HasEnv returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar.md new file mode 100644 index 0000000..aeb5471 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Value** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar(name string, value string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVarWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVarWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVarWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) SetName(v string)` + +SetName sets Name field to given value. + + +### GetValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md new file mode 100644 index 0000000..18e5dfe --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md @@ -0,0 +1,93 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name is the Cluster's name | +**Namespace** | **string** | Namespace is the Cluster's namespace | +**Reason** | **string** | Reason is the failed reason | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster(name string, namespace string, reason string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) SetReason(v string)` + +SetReason sets Reason field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole.md new file mode 100644 index 0000000..06fa9a0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name is the ClusterRole's name | +**Reason** | **string** | Reason is the failed reason | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole(name string, reason string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRoleWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) SetReason(v string)` + +SetReason sets Reason field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole.md new file mode 100644 index 0000000..e13373d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole.md @@ -0,0 +1,93 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name is the Role's name | +**Namespace** | **string** | Namespace is the Role's namespace | +**Reason** | **string** | Reason is the failed reason | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole(name string, namespace string, reason string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) SetReason(v string)` + +SetReason sets Reason field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding.md new file mode 100644 index 0000000..d647a84 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding.md @@ -0,0 +1,93 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name is the RoleBinding's name | +**Namespace** | **string** | Namespace is the RoleBinding's namespace | +**Reason** | **string** | Reason is the failed reason | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding(name string, namespace string, reason string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBindingWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) SetReason(v string)` + +SetReason sets Reason field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection.md new file mode 100644 index 0000000..c94e377 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectId** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection(projectId string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnectionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProjectId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) GetProjectId() string` + +GetProjectId returns the ProjectId field if non-nil, zero value otherwise. + +### GetProjectIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) GetProjectIdOk() (*string, bool)` + +GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) SetProjectId(v string)` + +SetProjectId sets ProjectId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec.md new file mode 100644 index 0000000..98de1ad --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Project** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec(project string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProject + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) GetProject() string` + +GetProject returns the Project field if non-nil, zero value otherwise. + +### GetProjectOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) GetProjectOk() (*string, bool)` + +GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProject + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) SetProject(v string)` + +SetProject sets Project field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec.md new file mode 100644 index 0000000..9cf1d62 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec.md @@ -0,0 +1,207 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdminServiceAccount** | Pointer to **string** | AdminServiceAccount is the service account to be impersonated, or leave it empty to call the API without impersonation. | [optional] +**ClusterName** | Pointer to **string** | ClusterName is the GKE cluster name. | [optional] +**InitialNodeCount** | Pointer to **int32** | Deprecated | [optional] +**Location** | **string** | | +**MachineType** | Pointer to **string** | Deprecated | [optional] +**MaxNodeCount** | Pointer to **int32** | Deprecated | [optional] +**Project** | Pointer to **string** | Project is the Google project containing the GKE cluster. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec(location string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdminServiceAccount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetAdminServiceAccount() string` + +GetAdminServiceAccount returns the AdminServiceAccount field if non-nil, zero value otherwise. + +### GetAdminServiceAccountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetAdminServiceAccountOk() (*string, bool)` + +GetAdminServiceAccountOk returns a tuple with the AdminServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminServiceAccount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetAdminServiceAccount(v string)` + +SetAdminServiceAccount sets AdminServiceAccount field to given value. + +### HasAdminServiceAccount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasAdminServiceAccount() bool` + +HasAdminServiceAccount returns a boolean if a field has been set. + +### GetClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetClusterName() string` + +GetClusterName returns the ClusterName field if non-nil, zero value otherwise. + +### GetClusterNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetClusterNameOk() (*string, bool)` + +GetClusterNameOk returns a tuple with the ClusterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetClusterName(v string)` + +SetClusterName sets ClusterName field to given value. + +### HasClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasClusterName() bool` + +HasClusterName returns a boolean if a field has been set. + +### GetInitialNodeCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetInitialNodeCount() int32` + +GetInitialNodeCount returns the InitialNodeCount field if non-nil, zero value otherwise. + +### GetInitialNodeCountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetInitialNodeCountOk() (*int32, bool)` + +GetInitialNodeCountOk returns a tuple with the InitialNodeCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitialNodeCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetInitialNodeCount(v int32)` + +SetInitialNodeCount sets InitialNodeCount field to given value. + +### HasInitialNodeCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasInitialNodeCount() bool` + +HasInitialNodeCount returns a boolean if a field has been set. + +### GetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetMachineType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMachineType() string` + +GetMachineType returns the MachineType field if non-nil, zero value otherwise. + +### GetMachineTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMachineTypeOk() (*string, bool)` + +GetMachineTypeOk returns a tuple with the MachineType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachineType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetMachineType(v string)` + +SetMachineType sets MachineType field to given value. + +### HasMachineType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasMachineType() bool` + +HasMachineType returns a boolean if a field has been set. + +### GetMaxNodeCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMaxNodeCount() int32` + +GetMaxNodeCount returns the MaxNodeCount field if non-nil, zero value otherwise. + +### GetMaxNodeCountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMaxNodeCountOk() (*int32, bool)` + +GetMaxNodeCountOk returns a tuple with the MaxNodeCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxNodeCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetMaxNodeCount(v int32)` + +SetMaxNodeCount sets MaxNodeCount field to given value. + +### HasMaxNodeCount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasMaxNodeCount() bool` + +HasMaxNodeCount returns a boolean if a field has been set. + +### GetProject + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetProject() string` + +GetProject returns the Project field if non-nil, zero value otherwise. + +### GetProjectOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetProjectOk() (*string, bool)` + +GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProject + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetProject(v string)` + +SetProject sets Project field to given value. + +### HasProject + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasProject() bool` + +HasProject returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway.md new file mode 100644 index 0000000..0469033 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Access** | Pointer to **string** | Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public. | [optional] +**PrivateService** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetAccess() string` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetAccessOk() (*string, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) SetAccess(v string)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### GetPrivateService + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetPrivateService() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService` + +GetPrivateService returns the PrivateService field if non-nil, zero value otherwise. + +### GetPrivateServiceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetPrivateServiceOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService, bool)` + +GetPrivateServiceOk returns a tuple with the PrivateService field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateService + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) SetPrivateService(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService)` + +SetPrivateService sets PrivateService field to given value. + +### HasPrivateService + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) HasPrivateService() bool` + +HasPrivateService returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus.md new file mode 100644 index 0000000..03121d2 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivateServiceIds** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md) | PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPrivateServiceIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) GetPrivateServiceIds() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId` + +GetPrivateServiceIds returns the PrivateServiceIds field if non-nil, zero value otherwise. + +### GetPrivateServiceIdsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) GetPrivateServiceIdsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId, bool)` + +GetPrivateServiceIdsOk returns a tuple with the PrivateServiceIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateServiceIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) SetPrivateServiceIds(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId)` + +SetPrivateServiceIds sets PrivateServiceIds field to given value. + +### HasPrivateServiceIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) HasPrivateServiceIds() bool` + +HasPrivateServiceIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec.md new file mode 100644 index 0000000..68386e5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Endpoint** | Pointer to **string** | Endpoint is *either* a full URL, or a hostname/port to point to the master | [optional] +**Location** | **string** | Location is the location of the cluster. | +**MasterAuth** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth.md) | | [optional] +**TlsServerName** | Pointer to **string** | TLSServerName is the SNI header name to set, overridding the default. This is just the hostname and no port | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec(location string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEndpoint + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetEndpoint() string` + +GetEndpoint returns the Endpoint field if non-nil, zero value otherwise. + +### GetEndpointOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetEndpointOk() (*string, bool)` + +GetEndpointOk returns a tuple with the Endpoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpoint + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetEndpoint(v string)` + +SetEndpoint sets Endpoint field to given value. + +### HasEndpoint + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) HasEndpoint() bool` + +HasEndpoint returns a boolean if a field has been set. + +### GetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetMasterAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetMasterAuth() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth` + +GetMasterAuth returns the MasterAuth field if non-nil, zero value otherwise. + +### GetMasterAuthOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetMasterAuthOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth, bool)` + +GetMasterAuthOk returns a tuple with the MasterAuth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMasterAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetMasterAuth(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth)` + +SetMasterAuth sets MasterAuth field to given value. + +### HasMasterAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) HasMasterAuth() bool` + +HasMasterAuth returns a boolean if a field has been set. + +### GetTlsServerName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetTlsServerName() string` + +GetTlsServerName returns the TlsServerName field if non-nil, zero value otherwise. + +### GetTlsServerNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetTlsServerNameOk() (*string, bool)` + +GetTlsServerNameOk returns a tuple with the TlsServerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTlsServerName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetTlsServerName(v string)` + +SetTlsServerName sets TlsServerName field to given value. + +### HasTlsServerName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) HasTlsServerName() bool` + +HasTlsServerName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md new file mode 100644 index 0000000..69533ab --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md new file mode 100644 index 0000000..fca529b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec.md new file mode 100644 index 0000000..1b1c7e4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec.md @@ -0,0 +1,114 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthType** | **string** | | +**Description** | **string** | | +**Expression** | **string** | | +**ProviderName** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec(authType string, description string, expression string, providerName string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetAuthType() string` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetAuthTypeOk() (*string, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetAuthType(v string)` + +SetAuthType sets AuthType field to given value. + + +### GetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetExpression + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetExpression() string` + +GetExpression returns the Expression field if non-nil, zero value otherwise. + +### GetExpressionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetExpressionOk() (*string, bool)` + +GetExpressionOk returns a tuple with the Expression field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpression + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetExpression(v string)` + +SetExpression sets Expression field to given value. + + +### GetProviderName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetProviderName() string` + +GetProviderName returns the ProviderName field if non-nil, zero value otherwise. + +### GetProviderNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetProviderNameOk() (*string, bool)` + +GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetProviderName(v string)` + +SetProviderName sets ProviderName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus.md new file mode 100644 index 0000000..de7d345 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV.md new file mode 100644 index 0000000..dddadd4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Phase** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV(name string, phase string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSVWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSVWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSVWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPhase + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetPhase() string` + +GetPhase returns the Phase field if non-nil, zero value otherwise. + +### GetPhaseOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetPhaseOk() (*string, bool)` + +GetPhaseOk returns a tuple with the Phase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhase + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) SetPhase(v string)` + +SetPhase sets Phase field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation.md new file mode 100644 index 0000000..c070f8f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Decision** | **string** | Decision indicates the user's response to the invitation | +**Expiration** | **time.Time** | Expiration indicates when the invitation expires | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation(decision string, expiration time.Time, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InvitationWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InvitationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InvitationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDecision + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetDecision() string` + +GetDecision returns the Decision field if non-nil, zero value otherwise. + +### GetDecisionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetDecisionOk() (*string, bool)` + +GetDecisionOk returns a tuple with the Decision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecision + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) SetDecision(v string)` + +SetDecision sets Decision field to given value. + + +### GetExpiration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetExpiration() time.Time` + +GetExpiration returns the Expiration field if non-nil, zero value otherwise. + +### GetExpirationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetExpirationOk() (*time.Time, bool)` + +GetExpirationOk returns a tuple with the Expiration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) SetExpiration(v time.Time)` + +SetExpiration sets Expiration field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig.md new file mode 100644 index 0000000..f1134c9 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig.md @@ -0,0 +1,145 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CatalogConnectionUrl** | **string** | | +**CatalogCredentials** | **string** | todo: maybe we need to support mount secrets as the catalog credentials? | +**CatalogType** | Pointer to **string** | | [optional] +**CatalogWarehouse** | **string** | | +**LakehouseType** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig(catalogConnectionUrl string, catalogCredentials string, catalogWarehouse string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfigWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCatalogConnectionUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogConnectionUrl() string` + +GetCatalogConnectionUrl returns the CatalogConnectionUrl field if non-nil, zero value otherwise. + +### GetCatalogConnectionUrlOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogConnectionUrlOk() (*string, bool)` + +GetCatalogConnectionUrlOk returns a tuple with the CatalogConnectionUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogConnectionUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogConnectionUrl(v string)` + +SetCatalogConnectionUrl sets CatalogConnectionUrl field to given value. + + +### GetCatalogCredentials + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogCredentials() string` + +GetCatalogCredentials returns the CatalogCredentials field if non-nil, zero value otherwise. + +### GetCatalogCredentialsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogCredentialsOk() (*string, bool)` + +GetCatalogCredentialsOk returns a tuple with the CatalogCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogCredentials + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogCredentials(v string)` + +SetCatalogCredentials sets CatalogCredentials field to given value. + + +### GetCatalogType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogType() string` + +GetCatalogType returns the CatalogType field if non-nil, zero value otherwise. + +### GetCatalogTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogTypeOk() (*string, bool)` + +GetCatalogTypeOk returns a tuple with the CatalogType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogType(v string)` + +SetCatalogType sets CatalogType field to given value. + +### HasCatalogType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) HasCatalogType() bool` + +HasCatalogType returns a boolean if a field has been set. + +### GetCatalogWarehouse + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogWarehouse() string` + +GetCatalogWarehouse returns the CatalogWarehouse field if non-nil, zero value otherwise. + +### GetCatalogWarehouseOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogWarehouseOk() (*string, bool)` + +GetCatalogWarehouseOk returns a tuple with the CatalogWarehouse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalogWarehouse + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogWarehouse(v string)` + +SetCatalogWarehouse sets CatalogWarehouse field to given value. + + +### GetLakehouseType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetLakehouseType() string` + +GetLakehouseType returns the LakehouseType field if non-nil, zero value otherwise. + +### GetLakehouseTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetLakehouseTypeOk() (*string, bool)` + +GetLakehouseTypeOk returns a tuple with the LakehouseType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLakehouseType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetLakehouseType(v string)` + +SetLakehouseType sets LakehouseType field to given value. + +### HasLakehouseType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) HasLakehouseType() bool` + +HasLakehouseType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow.md new file mode 100644 index 0000000..7944698 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Recurrence** | **string** | Recurrence define the maintenance execution cycle, 0~6, to express Monday to Sunday | +**Window** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow(recurrence string, window ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindowWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindowWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindowWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRecurrence + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetRecurrence() string` + +GetRecurrence returns the Recurrence field if non-nil, zero value otherwise. + +### GetRecurrenceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetRecurrenceOk() (*string, bool)` + +GetRecurrenceOk returns a tuple with the Recurrence field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecurrence + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) SetRecurrence(v string)` + +SetRecurrence sets Recurrence field to given value. + + +### GetWindow + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetWindow() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window` + +GetWindow returns the Window field if non-nil, zero value otherwise. + +### GetWindowOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetWindowOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window, bool)` + +GetWindowOk returns a tuple with the Window field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWindow + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) SetWindow(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window)` + +SetWindow sets Window field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth.md new file mode 100644 index 0000000..1810298 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth.md @@ -0,0 +1,186 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientCertificate** | Pointer to **string** | ClientCertificate is base64-encoded public certificate used by clients to authenticate to the cluster endpoint. | [optional] +**ClientKey** | Pointer to **string** | ClientKey is base64-encoded private key used by clients to authenticate to the cluster endpoint. | [optional] +**ClusterCaCertificate** | Pointer to **string** | ClusterCaCertificate is base64-encoded public certificate that is the root of trust for the cluster. | [optional] +**Exec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig.md) | | [optional] +**Password** | Pointer to **string** | Password is the password to use for HTTP basic authentication to the master endpoint. | [optional] +**Username** | Pointer to **string** | Username is the username to use for HTTP basic authentication to the master endpoint. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuthWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuthWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuthWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientCertificate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientCertificate() string` + +GetClientCertificate returns the ClientCertificate field if non-nil, zero value otherwise. + +### GetClientCertificateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientCertificateOk() (*string, bool)` + +GetClientCertificateOk returns a tuple with the ClientCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientCertificate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetClientCertificate(v string)` + +SetClientCertificate sets ClientCertificate field to given value. + +### HasClientCertificate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasClientCertificate() bool` + +HasClientCertificate returns a boolean if a field has been set. + +### GetClientKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientKey() string` + +GetClientKey returns the ClientKey field if non-nil, zero value otherwise. + +### GetClientKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientKeyOk() (*string, bool)` + +GetClientKeyOk returns a tuple with the ClientKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetClientKey(v string)` + +SetClientKey sets ClientKey field to given value. + +### HasClientKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasClientKey() bool` + +HasClientKey returns a boolean if a field has been set. + +### GetClusterCaCertificate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClusterCaCertificate() string` + +GetClusterCaCertificate returns the ClusterCaCertificate field if non-nil, zero value otherwise. + +### GetClusterCaCertificateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClusterCaCertificateOk() (*string, bool)` + +GetClusterCaCertificateOk returns a tuple with the ClusterCaCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCaCertificate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetClusterCaCertificate(v string)` + +SetClusterCaCertificate sets ClusterCaCertificate field to given value. + +### HasClusterCaCertificate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasClusterCaCertificate() bool` + +HasClusterCaCertificate returns a boolean if a field has been set. + +### GetExec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetExec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig` + +GetExec returns the Exec field if non-nil, zero value otherwise. + +### GetExecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetExecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig, bool)` + +GetExecOk returns a tuple with the Exec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetExec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig)` + +SetExec sets Exec field to given value. + +### HasExec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasExec() bool` + +HasExec returns a boolean if a field has been set. + +### GetPassword + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### GetUsername + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network.md new file mode 100644 index 0000000..fbe1a89 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cidr** | Pointer to **string** | CIDR determines the CIDR of the VPC to create if specified | [optional] +**Id** | Pointer to **string** | ID is the id or the name of an existing VPC when specified. It's vpc id in AWS, vpc network name in GCP and vnet name in Azure | [optional] +**SubnetCIDR** | Pointer to **string** | SubnetCIDR determines the CIDR of the subnet to create if specified required for Azure | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1NetworkWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1NetworkWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1NetworkWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCidr + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetCidr() string` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetCidrOk() (*string, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) SetCidr(v string)` + +SetCidr sets Cidr field to given value. + +### HasCidr + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) HasCidr() bool` + +HasCidr returns a boolean if a field has been set. + +### GetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetSubnetCIDR + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetSubnetCIDR() string` + +GetSubnetCIDR returns the SubnetCIDR field if non-nil, zero value otherwise. + +### GetSubnetCIDROk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetSubnetCIDROk() (*string, bool)` + +GetSubnetCIDROk returns a tuple with the SubnetCIDR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubnetCIDR + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) SetSubnetCIDR(v string)` + +SetSubnetCIDR sets SubnetCIDR field to given value. + +### HasSubnetCIDR + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) HasSubnetCIDR() bool` + +HasSubnetCIDR returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config.md new file mode 100644 index 0000000..ebf8d3b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TokenLifetimeSeconds** | Pointer to **int32** | TokenLifetimeSeconds access token lifetime (in seconds) for the API. Default value is 86,400 seconds (24 hours). Maximum value is 2,592,000 seconds (30 days) Document link: https://auth0.com/docs/secure/tokens/access-tokens/update-access-token-lifetime | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2ConfigWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2ConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2ConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTokenLifetimeSeconds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) GetTokenLifetimeSeconds() int32` + +GetTokenLifetimeSeconds returns the TokenLifetimeSeconds field if non-nil, zero value otherwise. + +### GetTokenLifetimeSecondsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) GetTokenLifetimeSecondsOk() (*int32, bool)` + +GetTokenLifetimeSecondsOk returns a tuple with the TokenLifetimeSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenLifetimeSeconds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) SetTokenLifetimeSeconds(v int32)` + +SetTokenLifetimeSeconds sets TokenLifetimeSeconds field to given value. + +### HasTokenLifetimeSeconds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) HasTokenLifetimeSeconds() bool` + +HasTokenLifetimeSeconds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md new file mode 100644 index 0000000..3462a98 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md new file mode 100644 index 0000000..eb3b9f0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec.md new file mode 100644 index 0000000..34093da --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | | +**DiscoveryUrl** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec(description string, discoveryUrl string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetDiscoveryUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDiscoveryUrl() string` + +GetDiscoveryUrl returns the DiscoveryUrl field if non-nil, zero value otherwise. + +### GetDiscoveryUrlOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDiscoveryUrlOk() (*string, bool)` + +GetDiscoveryUrlOk returns a tuple with the DiscoveryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoveryUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) SetDiscoveryUrl(v string)` + +SetDiscoveryUrl sets DiscoveryUrl field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus.md new file mode 100644 index 0000000..539b46f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md new file mode 100644 index 0000000..321cb67 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList.md new file mode 100644 index 0000000..9f3fca8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec.md new file mode 100644 index 0000000..6c62f13 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec.md @@ -0,0 +1,368 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AwsMarketplaceToken** | Pointer to **string** | | [optional] +**BillingAccount** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec.md) | | [optional] +**BillingParent** | Pointer to **string** | Organiztion ID of this org's billing parent. Once set, this org will inherit parent org's subscription, paymentMetthod and have \"inherited\" as billing type | [optional] +**BillingType** | Pointer to **string** | BillingType indicates the method of subscription that the organization uses. It is primarily consumed by the cloud-manager to be able to distinguish between invoiced subscriptions. | [optional] +**CloudFeature** | Pointer to **map[string]bool** | CloudFeature indicates features this org wants to enable/disable | [optional] +**DefaultPoolRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md) | | [optional] +**DisplayName** | Pointer to **string** | Name to display to our users | [optional] +**Domains** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md) | | [optional] +**Gcloud** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec.md) | | [optional] +**Metadata** | Pointer to **map[string]string** | Metadata is user-visible (and possibly editable) metadata. | [optional] +**Stripe** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe.md) | | [optional] +**Suger** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAwsMarketplaceToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetAwsMarketplaceToken() string` + +GetAwsMarketplaceToken returns the AwsMarketplaceToken field if non-nil, zero value otherwise. + +### GetAwsMarketplaceTokenOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetAwsMarketplaceTokenOk() (*string, bool)` + +GetAwsMarketplaceTokenOk returns a tuple with the AwsMarketplaceToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAwsMarketplaceToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetAwsMarketplaceToken(v string)` + +SetAwsMarketplaceToken sets AwsMarketplaceToken field to given value. + +### HasAwsMarketplaceToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasAwsMarketplaceToken() bool` + +HasAwsMarketplaceToken returns a boolean if a field has been set. + +### GetBillingAccount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingAccount() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec` + +GetBillingAccount returns the BillingAccount field if non-nil, zero value otherwise. + +### GetBillingAccountOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingAccountOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec, bool)` + +GetBillingAccountOk returns a tuple with the BillingAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingAccount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetBillingAccount(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec)` + +SetBillingAccount sets BillingAccount field to given value. + +### HasBillingAccount + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasBillingAccount() bool` + +HasBillingAccount returns a boolean if a field has been set. + +### GetBillingParent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingParent() string` + +GetBillingParent returns the BillingParent field if non-nil, zero value otherwise. + +### GetBillingParentOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingParentOk() (*string, bool)` + +GetBillingParentOk returns a tuple with the BillingParent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingParent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetBillingParent(v string)` + +SetBillingParent sets BillingParent field to given value. + +### HasBillingParent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasBillingParent() bool` + +HasBillingParent returns a boolean if a field has been set. + +### GetBillingType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingType() string` + +GetBillingType returns the BillingType field if non-nil, zero value otherwise. + +### GetBillingTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingTypeOk() (*string, bool)` + +GetBillingTypeOk returns a tuple with the BillingType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetBillingType(v string)` + +SetBillingType sets BillingType field to given value. + +### HasBillingType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasBillingType() bool` + +HasBillingType returns a boolean if a field has been set. + +### GetCloudFeature + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetCloudFeature() map[string]bool` + +GetCloudFeature returns the CloudFeature field if non-nil, zero value otherwise. + +### GetCloudFeatureOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetCloudFeatureOk() (*map[string]bool, bool)` + +GetCloudFeatureOk returns a tuple with the CloudFeature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudFeature + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetCloudFeature(v map[string]bool)` + +SetCloudFeature sets CloudFeature field to given value. + +### HasCloudFeature + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasCloudFeature() bool` + +HasCloudFeature returns a boolean if a field has been set. + +### GetDefaultPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDefaultPoolRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef` + +GetDefaultPoolRef returns the DefaultPoolRef field if non-nil, zero value otherwise. + +### GetDefaultPoolRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDefaultPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef, bool)` + +GetDefaultPoolRefOk returns a tuple with the DefaultPoolRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetDefaultPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef)` + +SetDefaultPoolRef sets DefaultPoolRef field to given value. + +### HasDefaultPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasDefaultPoolRef() bool` + +HasDefaultPoolRef returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDomains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDomainsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetDomains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetGcloud() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec` + +GetGcloud returns the Gcloud field if non-nil, zero value otherwise. + +### GetGcloudOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetGcloudOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec, bool)` + +GetGcloudOk returns a tuple with the Gcloud field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetGcloud(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec)` + +SetGcloud sets Gcloud field to given value. + +### HasGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasGcloud() bool` + +HasGcloud returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe)` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + +### GetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger` + +GetSuger returns the Suger field if non-nil, zero value otherwise. + +### GetSugerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger, bool)` + +GetSugerOk returns a tuple with the Suger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger)` + +SetSuger sets Suger field to given value. + +### HasSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasSuger() bool` + +HasSuger returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus.md new file mode 100644 index 0000000..b7af666 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BillingParent** | Pointer to **string** | reconciled parent of this organization. if spec.BillingParent is set but status.BillingParent is not set, then reconciler will create a parent child relationship if spec.BillingParent is not set but status.BillingParent is set, then reconciler will delete parent child relationship if spec.BillingParent is set but status.BillingParent is set and same, then reconciler will do nothing if spec.BillingParent is set but status.Billingparent is set and different, then reconciler will delete status.Billingparent relationship and create new spec.BillingParent relationship | [optional] +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**SubscriptionName** | Pointer to **string** | Indicates the active subscription for this organization. This information is available when the Subscribed condition is true. | [optional] +**SupportPlan** | Pointer to **string** | returns support plan of current subscription. blank, implies either no support plan or legacy support | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBillingParent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetBillingParent() string` + +GetBillingParent returns the BillingParent field if non-nil, zero value otherwise. + +### GetBillingParentOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetBillingParentOk() (*string, bool)` + +GetBillingParentOk returns a tuple with the BillingParent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBillingParent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetBillingParent(v string)` + +SetBillingParent sets BillingParent field to given value. + +### HasBillingParent + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasBillingParent() bool` + +HasBillingParent returns a boolean if a field has been set. + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSubscriptionName() string` + +GetSubscriptionName returns the SubscriptionName field if non-nil, zero value otherwise. + +### GetSubscriptionNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSubscriptionNameOk() (*string, bool)` + +GetSubscriptionNameOk returns a tuple with the SubscriptionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetSubscriptionName(v string)` + +SetSubscriptionName sets SubscriptionName field to given value. + +### HasSubscriptionName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasSubscriptionName() bool` + +HasSubscriptionName returns a boolean if a field has been set. + +### GetSupportPlan + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSupportPlan() string` + +GetSupportPlan returns the SupportPlan field if non-nil, zero value otherwise. + +### GetSupportPlanOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSupportPlanOk() (*string, bool)` + +GetSupportPlanOk returns a tuple with the SupportPlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportPlan + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetSupportPlan(v string)` + +SetSupportPlan sets SupportPlan field to given value. + +### HasSupportPlan + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasSupportPlan() bool` + +HasSupportPlan returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe.md new file mode 100644 index 0000000..8b1296e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionMethod** | Pointer to **string** | CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice | [optional] +**DaysUntilDue** | Pointer to **int64** | DaysUntilDue sets the due date for the invoice. Applicable when collection method is send_invoice. | [optional] +**KeepInDraft** | Pointer to **bool** | KeepInDraft disables auto-advance of the invoice state. Applicable when collection method is send_invoice. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripeWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripeWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripeWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCollectionMethod + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetCollectionMethod() string` + +GetCollectionMethod returns the CollectionMethod field if non-nil, zero value otherwise. + +### GetCollectionMethodOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetCollectionMethodOk() (*string, bool)` + +GetCollectionMethodOk returns a tuple with the CollectionMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionMethod + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) SetCollectionMethod(v string)` + +SetCollectionMethod sets CollectionMethod field to given value. + +### HasCollectionMethod + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) HasCollectionMethod() bool` + +HasCollectionMethod returns a boolean if a field has been set. + +### GetDaysUntilDue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetDaysUntilDue() int64` + +GetDaysUntilDue returns the DaysUntilDue field if non-nil, zero value otherwise. + +### GetDaysUntilDueOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetDaysUntilDueOk() (*int64, bool)` + +GetDaysUntilDueOk returns a tuple with the DaysUntilDue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDaysUntilDue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) SetDaysUntilDue(v int64)` + +SetDaysUntilDue sets DaysUntilDue field to given value. + +### HasDaysUntilDue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) HasDaysUntilDue() bool` + +HasDaysUntilDue returns a boolean if a field has been set. + +### GetKeepInDraft + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetKeepInDraft() bool` + +GetKeepInDraft returns the KeepInDraft field if non-nil, zero value otherwise. + +### GetKeepInDraftOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetKeepInDraftOk() (*bool, bool)` + +GetKeepInDraftOk returns a tuple with the KeepInDraft field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeepInDraft + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) SetKeepInDraft(v bool)` + +SetKeepInDraft sets KeepInDraft field to given value. + +### HasKeepInDraft + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) HasKeepInDraft() bool` + +HasKeepInDraft returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger.md new file mode 100644 index 0000000..b47eb0a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuyerIDs** | **[]string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger(buyerIDs []string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSugerWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSugerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSugerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuyerIDs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) GetBuyerIDs() []string` + +GetBuyerIDs returns the BuyerIDs field if non-nil, zero value otherwise. + +### GetBuyerIDsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) GetBuyerIDsOk() (*[]string, bool)` + +GetBuyerIDsOk returns a tuple with the BuyerIDs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuyerIDs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) SetBuyerIDs(v []string)` + +SetBuyerIDs sets BuyerIDs field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md new file mode 100644 index 0000000..1b4cbbd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md new file mode 100644 index 0000000..4adcdb8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md new file mode 100644 index 0000000..203f536 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec.md new file mode 100644 index 0000000..2a64321 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProxyUrl** | Pointer to **string** | ProxyUrl overrides the URL to K8S API. This is most typically done for SNI proxying. If ProxyUrl is set but TLSServerName is not, the *original* SNI value from the default endpoint will be used. If you also want to change the SNI header, you must also set TLSServerName. | [optional] +**TlsServerName** | Pointer to **string** | TLSServerName is the SNI header name to set, overriding the default endpoint. This should include the hostname value, with no port. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProxyUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetProxyUrl() string` + +GetProxyUrl returns the ProxyUrl field if non-nil, zero value otherwise. + +### GetProxyUrlOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetProxyUrlOk() (*string, bool)` + +GetProxyUrlOk returns a tuple with the ProxyUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProxyUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) SetProxyUrl(v string)` + +SetProxyUrl sets ProxyUrl field to given value. + +### HasProxyUrl + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) HasProxyUrl() bool` + +HasProxyUrl returns a boolean if a field has been set. + +### GetTlsServerName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetTlsServerName() string` + +GetTlsServerName returns the TlsServerName field if non-nil, zero value otherwise. + +### GetTlsServerNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetTlsServerNameOk() (*string, bool)` + +GetTlsServerNameOk returns a tuple with the TlsServerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTlsServerName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) SetTlsServerName(v string)` + +SetTlsServerName sets TlsServerName field to given value. + +### HasTlsServerName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) HasTlsServerName() bool` + +HasTlsServerName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector.md new file mode 100644 index 0000000..e8bc37a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MatchLabels** | Pointer to **map[string]string** | One or more labels that indicate a specific set of pods on which a policy should be applied. The scope of label search is restricted to the configuration namespace in which the resource is present. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelectorWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelectorWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelectorWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMatchLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) GetMatchLabels() map[string]string` + +GetMatchLabels returns the MatchLabels field if non-nil, zero value otherwise. + +### GetMatchLabelsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) GetMatchLabelsOk() (*map[string]string, bool)` + +GetMatchLabelsOk returns a tuple with the MatchLabels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) SetMatchLabels(v map[string]string)` + +SetMatchLabels sets MatchLabels field to given value. + +### HasMatchLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) HasMatchLabels() bool` + +HasMatchLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec.md new file mode 100644 index 0000000..c2aa4ed --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Selector** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector.md) | | +**Tls** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec(selector ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector, tls ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetSelector() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector` + +GetSelector returns the Selector field if non-nil, zero value otherwise. + +### GetSelectorOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetSelectorOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector, bool)` + +GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) SetSelector(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector)` + +SetSelector sets Selector field to given value. + + +### GetTls + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetTls() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls` + +GetTls returns the Tls field if non-nil, zero value otherwise. + +### GetTlsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetTlsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls, bool)` + +GetTlsOk returns a tuple with the Tls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTls + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) SetTls(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls)` + +SetTls sets Tls field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls.md new file mode 100644 index 0000000..f621487 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertSecretName** | **string** | The TLS secret to use (in the namespace of the gateway workload pods). | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls(certSecretName string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTlsWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTlsWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTlsWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertSecretName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) GetCertSecretName() string` + +GetCertSecretName returns the CertSecretName field if non-nil, zero value otherwise. + +### GetCertSecretNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) GetCertSecretNameOk() (*string, bool)` + +GetCertSecretNameOk returns a tuple with the CertSecretName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertSecretName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) SetCertSecretName(v string)` + +SetCertSecretName sets CertSecretName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec.md new file mode 100644 index 0000000..620f5e6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Gateway** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec.md) | | [optional] +**Revision** | **string** | Revision is the Istio revision tag. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec(revision string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetGateway() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec` + +GetGateway returns the Gateway field if non-nil, zero value otherwise. + +### GetGatewayOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetGatewayOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec, bool)` + +GetGatewayOk returns a tuple with the Gateway field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) SetGateway(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec)` + +SetGateway sets Gateway field to given value. + +### HasGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) HasGateway() bool` + +HasGateway returns a boolean if a field has been set. + +### GetRevision + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetRevision() string` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetRevisionOk() (*string, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) SetRevision(v string)` + +SetRevision sets Revision field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md new file mode 100644 index 0000000..a5904f1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring.md new file mode 100644 index 0000000..d9d6044 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring.md @@ -0,0 +1,114 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Project** | **string** | Project is the Google project containing UO components. | +**VmTenant** | **string** | VMTenant identifies the VM tenant to use (accountID or accountID:projectID). | +**VmagentSecretRef** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference.md) | | +**VminsertBackendServiceName** | **string** | VMinsertBackendServiceName identifies the backend service for vminsert. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring(project string, vmTenant string, vmagentSecretRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference, vminsertBackendServiceName string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoringWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoringWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoringWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProject + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetProject() string` + +GetProject returns the Project field if non-nil, zero value otherwise. + +### GetProjectOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetProjectOk() (*string, bool)` + +GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProject + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetProject(v string)` + +SetProject sets Project field to given value. + + +### GetVmTenant + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmTenant() string` + +GetVmTenant returns the VmTenant field if non-nil, zero value otherwise. + +### GetVmTenantOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmTenantOk() (*string, bool)` + +GetVmTenantOk returns a tuple with the VmTenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVmTenant + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetVmTenant(v string)` + +SetVmTenant sets VmTenant field to given value. + + +### GetVmagentSecretRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmagentSecretRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference` + +GetVmagentSecretRef returns the VmagentSecretRef field if non-nil, zero value otherwise. + +### GetVmagentSecretRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmagentSecretRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference, bool)` + +GetVmagentSecretRefOk returns a tuple with the VmagentSecretRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVmagentSecretRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetVmagentSecretRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference)` + +SetVmagentSecretRef sets VmagentSecretRef field to given value. + + +### GetVminsertBackendServiceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVminsertBackendServiceName() string` + +GetVminsertBackendServiceName returns the VminsertBackendServiceName field if non-nil, zero value otherwise. + +### GetVminsertBackendServiceNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVminsertBackendServiceNameOk() (*string, bool)` + +GetVminsertBackendServiceNameOk returns a tuple with the VminsertBackendServiceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVminsertBackendServiceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetVminsertBackendServiceName(v string)` + +SetVminsertBackendServiceName sets VminsertBackendServiceName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md new file mode 100644 index 0000000..f5e8adb --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Catalog** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog.md) | | +**Channel** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec(catalog ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog, channel ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCatalog + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetCatalog() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog` + +GetCatalog returns the Catalog field if non-nil, zero value otherwise. + +### GetCatalogOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetCatalogOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog, bool)` + +GetCatalogOk returns a tuple with the Catalog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCatalog + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) SetCatalog(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog)` + +SetCatalog sets Catalog field to given value. + + +### GetChannel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetChannel() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetChannelOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) SetChannel(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel)` + +SetChannel sets Channel field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog.md new file mode 100644 index 0000000..c5aba2e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Image** | **string** | | +**PollInterval** | **string** | Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog(image string, pollInterval string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalogWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalogWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalogWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) SetImage(v string)` + +SetImage sets Image field to given value. + + +### GetPollInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetPollInterval() string` + +GetPollInterval returns the PollInterval field if non-nil, zero value otherwise. + +### GetPollIntervalOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetPollIntervalOk() (*string, bool)` + +GetPollIntervalOk returns a tuple with the PollInterval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPollInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) SetPollInterval(v string)` + +SetPollInterval sets PollInterval field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel.md new file mode 100644 index 0000000..bad69a0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannelWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannelWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannelWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md new file mode 100644 index 0000000..17e0ec7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference(name string, namespace string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec.md new file mode 100644 index 0000000..9e781f6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec.md @@ -0,0 +1,410 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Aws** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec.md) | | [optional] +**Azure** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec.md) | | [optional] +**ConnectionOptions** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec.md) | | [optional] +**Domains** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md) | | [optional] +**FunctionMesh** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md) | | [optional] +**Gcloud** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec.md) | | [optional] +**Generic** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec.md) | | [optional] +**Istio** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec.md) | | [optional] +**Monitoring** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring.md) | | [optional] +**PoolName** | **string** | | +**Pulsar** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec.md) | | [optional] +**SupportAccess** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec.md) | | [optional] +**Taints** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint.md) | | [optional] +**TieredStorage** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec.md) | | [optional] +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec(poolName string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAws() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec` + +GetAws returns the Aws field if non-nil, zero value otherwise. + +### GetAwsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAwsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec, bool)` + +GetAwsOk returns a tuple with the Aws field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetAws(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec)` + +SetAws sets Aws field to given value. + +### HasAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasAws() bool` + +HasAws returns a boolean if a field has been set. + +### GetAzure + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAzure() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec` + +GetAzure returns the Azure field if non-nil, zero value otherwise. + +### GetAzureOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAzureOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec, bool)` + +GetAzureOk returns a tuple with the Azure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzure + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetAzure(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec)` + +SetAzure sets Azure field to given value. + +### HasAzure + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasAzure() bool` + +HasAzure returns a boolean if a field has been set. + +### GetConnectionOptions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetConnectionOptions() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec` + +GetConnectionOptions returns the ConnectionOptions field if non-nil, zero value otherwise. + +### GetConnectionOptionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetConnectionOptionsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec, bool)` + +GetConnectionOptionsOk returns a tuple with the ConnectionOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionOptions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetConnectionOptions(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec)` + +SetConnectionOptions sets ConnectionOptions field to given value. + +### HasConnectionOptions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasConnectionOptions() bool` + +HasConnectionOptions returns a boolean if a field has been set. + +### GetDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetDomains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetDomainsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetDomains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetFunctionMesh + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetFunctionMesh() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec` + +GetFunctionMesh returns the FunctionMesh field if non-nil, zero value otherwise. + +### GetFunctionMeshOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetFunctionMeshOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec, bool)` + +GetFunctionMeshOk returns a tuple with the FunctionMesh field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFunctionMesh + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetFunctionMesh(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec)` + +SetFunctionMesh sets FunctionMesh field to given value. + +### HasFunctionMesh + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasFunctionMesh() bool` + +HasFunctionMesh returns a boolean if a field has been set. + +### GetGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGcloud() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec` + +GetGcloud returns the Gcloud field if non-nil, zero value otherwise. + +### GetGcloudOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGcloudOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec, bool)` + +GetGcloudOk returns a tuple with the Gcloud field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetGcloud(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec)` + +SetGcloud sets Gcloud field to given value. + +### HasGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasGcloud() bool` + +HasGcloud returns a boolean if a field has been set. + +### GetGeneric + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGeneric() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec` + +GetGeneric returns the Generic field if non-nil, zero value otherwise. + +### GetGenericOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGenericOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec, bool)` + +GetGenericOk returns a tuple with the Generic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeneric + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetGeneric(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec)` + +SetGeneric sets Generic field to given value. + +### HasGeneric + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasGeneric() bool` + +HasGeneric returns a boolean if a field has been set. + +### GetIstio + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetIstio() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec` + +GetIstio returns the Istio field if non-nil, zero value otherwise. + +### GetIstioOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetIstioOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec, bool)` + +GetIstioOk returns a tuple with the Istio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIstio + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetIstio(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec)` + +SetIstio sets Istio field to given value. + +### HasIstio + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasIstio() bool` + +HasIstio returns a boolean if a field has been set. + +### GetMonitoring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetMonitoring() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring` + +GetMonitoring returns the Monitoring field if non-nil, zero value otherwise. + +### GetMonitoringOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetMonitoringOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring, bool)` + +GetMonitoringOk returns a tuple with the Monitoring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMonitoring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetMonitoring(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring)` + +SetMonitoring sets Monitoring field to given value. + +### HasMonitoring + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasMonitoring() bool` + +HasMonitoring returns a boolean if a field has been set. + +### GetPoolName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPoolName() string` + +GetPoolName returns the PoolName field if non-nil, zero value otherwise. + +### GetPoolNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPoolNameOk() (*string, bool)` + +GetPoolNameOk returns a tuple with the PoolName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetPoolName(v string)` + +SetPoolName sets PoolName field to given value. + + +### GetPulsar + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPulsar() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec` + +GetPulsar returns the Pulsar field if non-nil, zero value otherwise. + +### GetPulsarOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPulsarOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec, bool)` + +GetPulsarOk returns a tuple with the Pulsar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulsar + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetPulsar(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec)` + +SetPulsar sets Pulsar field to given value. + +### HasPulsar + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasPulsar() bool` + +HasPulsar returns a boolean if a field has been set. + +### GetSupportAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetSupportAccess() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec` + +GetSupportAccess returns the SupportAccess field if non-nil, zero value otherwise. + +### GetSupportAccessOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetSupportAccessOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec, bool)` + +GetSupportAccessOk returns a tuple with the SupportAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSupportAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetSupportAccess(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec)` + +SetSupportAccess sets SupportAccess field to given value. + +### HasSupportAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasSupportAccess() bool` + +HasSupportAccess returns a boolean if a field has been set. + +### GetTaints + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTaints() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint` + +GetTaints returns the Taints field if non-nil, zero value otherwise. + +### GetTaintsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTaintsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint, bool)` + +GetTaintsOk returns a tuple with the Taints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaints + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetTaints(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint)` + +SetTaints sets Taints field to given value. + +### HasTaints + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasTaints() bool` + +HasTaints returns a boolean if a field has been set. + +### GetTieredStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTieredStorage() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec` + +GetTieredStorage returns the TieredStorage field if non-nil, zero value otherwise. + +### GetTieredStorageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTieredStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec, bool)` + +GetTieredStorageOk returns a tuple with the TieredStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTieredStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetTieredStorage(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec)` + +SetTieredStorage sets TieredStorage field to given value. + +### HasTieredStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasTieredStorage() bool` + +HasTieredStorage returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus.md new file mode 100644 index 0000000..535cbe8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus.md @@ -0,0 +1,150 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**DeploymentType** | **string** | | +**InstalledCSVs** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV.md) | InstalledCSVs shows the name and status of installed operator versions | [optional] +**ObservedGeneration** | **int64** | ObservedGeneration is the most recent generation observed by the PoolMember controller. | +**ServerVersion** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus(deploymentType string, observedGeneration int64, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetDeploymentType() string` + +GetDeploymentType returns the DeploymentType field if non-nil, zero value otherwise. + +### GetDeploymentTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetDeploymentTypeOk() (*string, bool)` + +GetDeploymentTypeOk returns a tuple with the DeploymentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetDeploymentType(v string)` + +SetDeploymentType sets DeploymentType field to given value. + + +### GetInstalledCSVs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetInstalledCSVs() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV` + +GetInstalledCSVs returns the InstalledCSVs field if non-nil, zero value otherwise. + +### GetInstalledCSVsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetInstalledCSVsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV, bool)` + +GetInstalledCSVsOk returns a tuple with the InstalledCSVs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstalledCSVs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetInstalledCSVs(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV)` + +SetInstalledCSVs sets InstalledCSVs field to given value. + +### HasInstalledCSVs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) HasInstalledCSVs() bool` + +HasInstalledCSVs returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + + +### GetServerVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetServerVersion() string` + +GetServerVersion returns the ServerVersion field if non-nil, zero value otherwise. + +### GetServerVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetServerVersionOk() (*string, bool)` + +GetServerVersionOk returns a tuple with the ServerVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetServerVersion(v string)` + +SetServerVersion sets ServerVersion field to given value. + +### HasServerVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) HasServerVersion() bool` + +HasServerVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec.md new file mode 100644 index 0000000..f12331a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BucketName** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBucketName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) GetBucketName() string` + +GetBucketName returns the BucketName field if non-nil, zero value otherwise. + +### GetBucketNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) GetBucketNameOk() (*string, bool)` + +GetBucketNameOk returns a tuple with the BucketName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBucketName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) SetBucketName(v string)` + +SetBucketName sets BucketName field to given value. + +### HasBucketName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) HasBucketName() bool` + +HasBucketName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md new file mode 100644 index 0000000..37524a9 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md new file mode 100644 index 0000000..30261f7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation.md new file mode 100644 index 0000000..d5afd0b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | | [optional] +**Location** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation(location string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocationWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) SetLocation(v string)` + +SetLocation sets Location field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec.md new file mode 100644 index 0000000..9480542 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec.md @@ -0,0 +1,140 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudType** | **string** | | +**DeploymentType** | **string** | | +**Features** | Pointer to **map[string]bool** | | [optional] +**Locations** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation.md) | | +**PoolRef** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec(cloudType string, deploymentType string, locations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation, poolRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCloudType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetCloudType() string` + +GetCloudType returns the CloudType field if non-nil, zero value otherwise. + +### GetCloudTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetCloudTypeOk() (*string, bool)` + +GetCloudTypeOk returns a tuple with the CloudType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetCloudType(v string)` + +SetCloudType sets CloudType field to given value. + + +### GetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetDeploymentType() string` + +GetDeploymentType returns the DeploymentType field if non-nil, zero value otherwise. + +### GetDeploymentTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetDeploymentTypeOk() (*string, bool)` + +GetDeploymentTypeOk returns a tuple with the DeploymentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetDeploymentType(v string)` + +SetDeploymentType sets DeploymentType field to given value. + + +### GetFeatures + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetFeatures() map[string]bool` + +GetFeatures returns the Features field if non-nil, zero value otherwise. + +### GetFeaturesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetFeaturesOk() (*map[string]bool, bool)` + +GetFeaturesOk returns a tuple with the Features field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatures + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetFeatures(v map[string]bool)` + +SetFeatures sets Features field to given value. + +### HasFeatures + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) HasFeatures() bool` + +HasFeatures returns a boolean if a field has been set. + +### GetLocations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetLocations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation` + +GetLocations returns the Locations field if non-nil, zero value otherwise. + +### GetLocationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetLocationsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation, bool)` + +GetLocationsOk returns a tuple with the Locations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetLocations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation)` + +SetLocations sets Locations field to given value. + + +### GetPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetPoolRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef` + +GetPoolRef returns the PoolRef field if non-nil, zero value otherwise. + +### GetPoolRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef, bool)` + +GetPoolRefOk returns a tuple with the PoolRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef)` + +SetPoolRef sets PoolRef field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus.md new file mode 100644 index 0000000..e1dc666 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed PoolOption conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md new file mode 100644 index 0000000..7a85a21 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef(name string, namespace string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRefWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec.md new file mode 100644 index 0000000..a48063c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec.md @@ -0,0 +1,155 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudFeature** | Pointer to **map[string]bool** | CloudFeature indicates features this pool wants to enable/disable by default for all Pulsar clusters created on it | [optional] +**DeploymentType** | Pointer to **string** | This feild is used by `cloud-manager` and `cloud-billing-reporter` to potentially charge different rates for our customers. It is imperative that we correctly set this field if a pool is a \"Pro\" tier or no tier. | [optional] +**Gcloud** | Pointer to **map[string]interface{}** | | [optional] +**Sharing** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig.md) | | [optional] +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec(type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCloudFeature + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetCloudFeature() map[string]bool` + +GetCloudFeature returns the CloudFeature field if non-nil, zero value otherwise. + +### GetCloudFeatureOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetCloudFeatureOk() (*map[string]bool, bool)` + +GetCloudFeatureOk returns a tuple with the CloudFeature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudFeature + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetCloudFeature(v map[string]bool)` + +SetCloudFeature sets CloudFeature field to given value. + +### HasCloudFeature + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasCloudFeature() bool` + +HasCloudFeature returns a boolean if a field has been set. + +### GetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetDeploymentType() string` + +GetDeploymentType returns the DeploymentType field if non-nil, zero value otherwise. + +### GetDeploymentTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetDeploymentTypeOk() (*string, bool)` + +GetDeploymentTypeOk returns a tuple with the DeploymentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetDeploymentType(v string)` + +SetDeploymentType sets DeploymentType field to given value. + +### HasDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasDeploymentType() bool` + +HasDeploymentType returns a boolean if a field has been set. + +### GetGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetGcloud() map[string]interface{}` + +GetGcloud returns the Gcloud field if non-nil, zero value otherwise. + +### GetGcloudOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetGcloudOk() (*map[string]interface{}, bool)` + +GetGcloudOk returns a tuple with the Gcloud field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetGcloud(v map[string]interface{})` + +SetGcloud sets Gcloud field to given value. + +### HasGcloud + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasGcloud() bool` + +HasGcloud returns a boolean if a field has been set. + +### GetSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetSharing() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig` + +GetSharing returns the Sharing field if non-nil, zero value otherwise. + +### GetSharingOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetSharingOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig, bool)` + +GetSharingOk returns a tuple with the Sharing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetSharing(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig)` + +SetSharing sets Sharing field to given value. + +### HasSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasSharing() bool` + +HasSharing returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus.md new file mode 100644 index 0000000..167f838 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed pool conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md new file mode 100644 index 0000000..24585e5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowedIds** | Pointer to **[]string** | AllowedIds is the list of Ids that are allowed to connect to the private endpoint service, only can be configured when the access type is private, private endpoint service will be disabled if the whitelist is empty. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllowedIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) GetAllowedIds() []string` + +GetAllowedIds returns the AllowedIds field if non-nil, zero value otherwise. + +### GetAllowedIdsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) GetAllowedIdsOk() (*[]string, bool)` + +GetAllowedIdsOk returns a tuple with the AllowedIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) SetAllowedIds(v []string)` + +SetAllowedIds sets AllowedIds field to given value. + +### HasAllowedIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) HasAllowedIds() bool` + +HasAllowedIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md new file mode 100644 index 0000000..1c4f352 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | Id is the identifier of private service It is endpoint service name in AWS, psc attachment id in GCP, private service alias in Azure | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceIdWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceIdWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceIdWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig.md new file mode 100644 index 0000000..b4f4b9b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amqp** | Pointer to **map[string]interface{}** | Amqp controls whether to enable Amqp protocol in brokers | [optional] +**Kafka** | Pointer to **map[string]interface{}** | Kafka controls whether to enable Kafka protocol in brokers | [optional] +**Mqtt** | Pointer to **map[string]interface{}** | Mqtt controls whether to enable mqtt protocol in brokers | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfigWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAmqp + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetAmqp() map[string]interface{}` + +GetAmqp returns the Amqp field if non-nil, zero value otherwise. + +### GetAmqpOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetAmqpOk() (*map[string]interface{}, bool)` + +GetAmqpOk returns a tuple with the Amqp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmqp + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) SetAmqp(v map[string]interface{})` + +SetAmqp sets Amqp field to given value. + +### HasAmqp + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) HasAmqp() bool` + +HasAmqp returns a boolean if a field has been set. + +### GetKafka + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetKafka() map[string]interface{}` + +GetKafka returns the Kafka field if non-nil, zero value otherwise. + +### GetKafkaOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetKafkaOk() (*map[string]interface{}, bool)` + +GetKafkaOk returns a tuple with the Kafka field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKafka + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) SetKafka(v map[string]interface{})` + +SetKafka sets Kafka field to given value. + +### HasKafka + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) HasKafka() bool` + +HasKafka returns a boolean if a field has been set. + +### GetMqtt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetMqtt() map[string]interface{}` + +GetMqtt returns the Mqtt field if non-nil, zero value otherwise. + +### GetMqttOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetMqttOk() (*map[string]interface{}, bool)` + +GetMqttOk returns a tuple with the Mqtt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMqtt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) SetMqtt(v map[string]interface{})` + +SetMqtt sets Mqtt field to given value. + +### HasMqtt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) HasMqtt() bool` + +HasMqtt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md new file mode 100644 index 0000000..e14d675 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md new file mode 100644 index 0000000..5612bb5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReadyReplicas** | Pointer to **int32** | ReadyReplicas is the number of ready servers in the cluster | [optional] +**Replicas** | Pointer to **int32** | Replicas is the number of servers in the cluster | [optional] +**UpdatedReplicas** | Pointer to **int32** | UpdatedReplicas is the number of servers that has been updated to the latest configuration | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReadyReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReadyReplicas() int32` + +GetReadyReplicas returns the ReadyReplicas field if non-nil, zero value otherwise. + +### GetReadyReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReadyReplicasOk() (*int32, bool)` + +GetReadyReplicasOk returns a tuple with the ReadyReplicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadyReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) SetReadyReplicas(v int32)` + +SetReadyReplicas sets ReadyReplicas field to given value. + +### HasReadyReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) HasReadyReplicas() bool` + +HasReadyReplicas returns a boolean if a field has been set. + +### GetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReplicas() int32` + +GetReplicas returns the Replicas field if non-nil, zero value otherwise. + +### GetReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReplicasOk() (*int32, bool)` + +GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) SetReplicas(v int32)` + +SetReplicas sets Replicas field to given value. + +### HasReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) HasReplicas() bool` + +HasReplicas returns a boolean if a field has been set. + +### GetUpdatedReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetUpdatedReplicas() int32` + +GetUpdatedReplicas returns the UpdatedReplicas field if non-nil, zero value otherwise. + +### GetUpdatedReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetUpdatedReplicasOk() (*int32, bool)` + +GetUpdatedReplicasOk returns a tuple with the UpdatedReplicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) SetUpdatedReplicas(v int32)` + +SetUpdatedReplicas sets UpdatedReplicas field to given value. + +### HasUpdatedReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) HasUpdatedReplicas() bool` + +HasUpdatedReplicas returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md new file mode 100644 index 0000000..16d8408 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec.md new file mode 100644 index 0000000..388356e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec.md @@ -0,0 +1,379 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BookKeeperSetRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference.md) | | [optional] +**Bookkeeper** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper.md) | | [optional] +**Broker** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker.md) | | +**Config** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config.md) | | [optional] +**DisplayName** | Pointer to **string** | Name to display to our users | [optional] +**EndpointAccess** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess.md) | | [optional] +**InstanceName** | **string** | | +**Location** | **string** | | +**MaintenanceWindow** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow.md) | | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md) | | [optional] +**ReleaseChannel** | Pointer to **string** | | [optional] +**ServiceEndpoints** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint.md) | | [optional] +**Tolerations** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md) | | [optional] +**ZooKeeperSetRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec(broker ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker, instanceName string, location string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBookKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference` + +GetBookKeeperSetRef returns the BookKeeperSetRef field if non-nil, zero value otherwise. + +### GetBookKeeperSetRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference, bool)` + +GetBookKeeperSetRefOk returns a tuple with the BookKeeperSetRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBookKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetBookKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference)` + +SetBookKeeperSetRef sets BookKeeperSetRef field to given value. + +### HasBookKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasBookKeeperSetRef() bool` + +HasBookKeeperSetRef returns a boolean if a field has been set. + +### GetBookkeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookkeeper() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper` + +GetBookkeeper returns the Bookkeeper field if non-nil, zero value otherwise. + +### GetBookkeeperOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookkeeperOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper, bool)` + +GetBookkeeperOk returns a tuple with the Bookkeeper field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBookkeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetBookkeeper(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper)` + +SetBookkeeper sets Bookkeeper field to given value. + +### HasBookkeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasBookkeeper() bool` + +HasBookkeeper returns a boolean if a field has been set. + +### GetBroker + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBroker() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker` + +GetBroker returns the Broker field if non-nil, zero value otherwise. + +### GetBrokerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBrokerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker, bool)` + +GetBrokerOk returns a tuple with the Broker field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBroker + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetBroker(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker)` + +SetBroker sets Broker field to given value. + + +### GetConfig + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetConfig() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetConfigOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetConfig(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEndpointAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetEndpointAccess() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess` + +GetEndpointAccess returns the EndpointAccess field if non-nil, zero value otherwise. + +### GetEndpointAccessOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetEndpointAccessOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess, bool)` + +GetEndpointAccessOk returns a tuple with the EndpointAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndpointAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetEndpointAccess(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess)` + +SetEndpointAccess sets EndpointAccess field to given value. + +### HasEndpointAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasEndpointAccess() bool` + +HasEndpointAccess returns a boolean if a field has been set. + +### GetInstanceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetInstanceName() string` + +GetInstanceName returns the InstanceName field if non-nil, zero value otherwise. + +### GetInstanceNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetInstanceNameOk() (*string, bool)` + +GetInstanceNameOk returns a tuple with the InstanceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetInstanceName(v string)` + +SetInstanceName sets InstanceName field to given value. + + +### GetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetMaintenanceWindow + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetMaintenanceWindow() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow` + +GetMaintenanceWindow returns the MaintenanceWindow field if non-nil, zero value otherwise. + +### GetMaintenanceWindowOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetMaintenanceWindowOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow, bool)` + +GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaintenanceWindow + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetMaintenanceWindow(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow)` + +SetMaintenanceWindow sets MaintenanceWindow field to given value. + +### HasMaintenanceWindow + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasMaintenanceWindow() bool` + +HasMaintenanceWindow returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetReleaseChannel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetReleaseChannel() string` + +GetReleaseChannel returns the ReleaseChannel field if non-nil, zero value otherwise. + +### GetReleaseChannelOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetReleaseChannelOk() (*string, bool)` + +GetReleaseChannelOk returns a tuple with the ReleaseChannel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseChannel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetReleaseChannel(v string)` + +SetReleaseChannel sets ReleaseChannel field to given value. + +### HasReleaseChannel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasReleaseChannel() bool` + +HasReleaseChannel returns a boolean if a field has been set. + +### GetServiceEndpoints + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetServiceEndpoints() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint` + +GetServiceEndpoints returns the ServiceEndpoints field if non-nil, zero value otherwise. + +### GetServiceEndpointsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetServiceEndpointsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint, bool)` + +GetServiceEndpointsOk returns a tuple with the ServiceEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceEndpoints + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetServiceEndpoints(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint)` + +SetServiceEndpoints sets ServiceEndpoints field to given value. + +### HasServiceEndpoints + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasServiceEndpoints() bool` + +HasServiceEndpoints returns a boolean if a field has been set. + +### GetTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetTolerations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration` + +GetTolerations returns the Tolerations field if non-nil, zero value otherwise. + +### GetTolerationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetTolerationsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration, bool)` + +GetTolerationsOk returns a tuple with the Tolerations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetTolerations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration)` + +SetTolerations sets Tolerations field to given value. + +### HasTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasTolerations() bool` + +HasTolerations returns a boolean if a field has been set. + +### GetZooKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetZooKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference` + +GetZooKeeperSetRef returns the ZooKeeperSetRef field if non-nil, zero value otherwise. + +### GetZooKeeperSetRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetZooKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference, bool)` + +GetZooKeeperSetRefOk returns a tuple with the ZooKeeperSetRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZooKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetZooKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference)` + +SetZooKeeperSetRef sets ZooKeeperSetRef field to given value. + +### HasZooKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasZooKeeperSetRef() bool` + +HasZooKeeperSetRef returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus.md new file mode 100644 index 0000000..582cdae --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus.md @@ -0,0 +1,238 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bookkeeper** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md) | | [optional] +**Broker** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md) | | [optional] +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**DeploymentType** | Pointer to **string** | Deployment type set via associated pool | [optional] +**InstanceType** | Pointer to **string** | Instance type, i.e. serverless or default | [optional] +**Oxia** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md) | | [optional] +**RbacStatus** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus.md) | | [optional] +**Zookeeper** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBookkeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBookkeeper() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus` + +GetBookkeeper returns the Bookkeeper field if non-nil, zero value otherwise. + +### GetBookkeeperOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBookkeeperOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool)` + +GetBookkeeperOk returns a tuple with the Bookkeeper field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBookkeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetBookkeeper(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus)` + +SetBookkeeper sets Bookkeeper field to given value. + +### HasBookkeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasBookkeeper() bool` + +HasBookkeeper returns a boolean if a field has been set. + +### GetBroker + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBroker() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus` + +GetBroker returns the Broker field if non-nil, zero value otherwise. + +### GetBrokerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBrokerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool)` + +GetBrokerOk returns a tuple with the Broker field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBroker + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetBroker(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus)` + +SetBroker sets Broker field to given value. + +### HasBroker + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasBroker() bool` + +HasBroker returns a boolean if a field has been set. + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetDeploymentType() string` + +GetDeploymentType returns the DeploymentType field if non-nil, zero value otherwise. + +### GetDeploymentTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetDeploymentTypeOk() (*string, bool)` + +GetDeploymentTypeOk returns a tuple with the DeploymentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetDeploymentType(v string)` + +SetDeploymentType sets DeploymentType field to given value. + +### HasDeploymentType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasDeploymentType() bool` + +HasDeploymentType returns a boolean if a field has been set. + +### GetInstanceType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetInstanceType() string` + +GetInstanceType returns the InstanceType field if non-nil, zero value otherwise. + +### GetInstanceTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetInstanceTypeOk() (*string, bool)` + +GetInstanceTypeOk returns a tuple with the InstanceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetInstanceType(v string)` + +SetInstanceType sets InstanceType field to given value. + +### HasInstanceType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasInstanceType() bool` + +HasInstanceType returns a boolean if a field has been set. + +### GetOxia + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetOxia() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus` + +GetOxia returns the Oxia field if non-nil, zero value otherwise. + +### GetOxiaOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetOxiaOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool)` + +GetOxiaOk returns a tuple with the Oxia field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOxia + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetOxia(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus)` + +SetOxia sets Oxia field to given value. + +### HasOxia + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasOxia() bool` + +HasOxia returns a boolean if a field has been set. + +### GetRbacStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetRbacStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus` + +GetRbacStatus returns the RbacStatus field if non-nil, zero value otherwise. + +### GetRbacStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetRbacStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus, bool)` + +GetRbacStatusOk returns a tuple with the RbacStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRbacStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetRbacStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus)` + +SetRbacStatus sets RbacStatus field to given value. + +### HasRbacStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasRbacStatus() bool` + +HasRbacStatus returns a boolean if a field has been set. + +### GetZookeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetZookeeper() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus` + +GetZookeeper returns the Zookeeper field if non-nil, zero value otherwise. + +### GetZookeeperOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetZookeeperOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool)` + +GetZookeeperOk returns a tuple with the Zookeeper field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZookeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetZookeeper(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus)` + +SetZookeeper sets Zookeeper field to given value. + +### HasZookeeper + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasZookeeper() bool` + +HasZookeeper returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md new file mode 100644 index 0000000..6b7f2c3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md new file mode 100644 index 0000000..babbe1c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec.md new file mode 100644 index 0000000..eb553a8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Access** | Pointer to **string** | Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public. | [optional] +**Domains** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain.md) | Domains is the list of domain suffix that the pulsar gateway will serve. This is automatically generated based on the PulsarGateway name and PoolMember domain. | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md) | | [optional] +**PrivateService** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService.md) | | [optional] +**TopologyAware** | Pointer to **map[string]interface{}** | TopologyAware is the configuration of the topology aware feature of the pulsar gateway. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetAccess() string` + +GetAccess returns the Access field if non-nil, zero value otherwise. + +### GetAccessOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetAccessOk() (*string, bool)` + +GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetAccess(v string)` + +SetAccess sets Access field to given value. + +### HasAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasAccess() bool` + +HasAccess returns a boolean if a field has been set. + +### GetDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetDomains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain` + +GetDomains returns the Domains field if non-nil, zero value otherwise. + +### GetDomainsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetDomainsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain, bool)` + +GetDomainsOk returns a tuple with the Domains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetDomains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain)` + +SetDomains sets Domains field to given value. + +### HasDomains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasDomains() bool` + +HasDomains returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetPrivateService + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPrivateService() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService` + +GetPrivateService returns the PrivateService field if non-nil, zero value otherwise. + +### GetPrivateServiceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPrivateServiceOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService, bool)` + +GetPrivateServiceOk returns a tuple with the PrivateService field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateService + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetPrivateService(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService)` + +SetPrivateService sets PrivateService field to given value. + +### HasPrivateService + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasPrivateService() bool` + +HasPrivateService returns a boolean if a field has been set. + +### GetTopologyAware + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetTopologyAware() map[string]interface{}` + +GetTopologyAware returns the TopologyAware field if non-nil, zero value otherwise. + +### GetTopologyAwareOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetTopologyAwareOk() (*map[string]interface{}, bool)` + +GetTopologyAwareOk returns a tuple with the TopologyAware field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopologyAware + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetTopologyAware(v map[string]interface{})` + +SetTopologyAware sets TopologyAware field to given value. + +### HasTopologyAware + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasTopologyAware() bool` + +HasTopologyAware returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus.md new file mode 100644 index 0000000..09ded7f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**ObservedGeneration** | **int64** | ObservedGeneration is the most recent generation observed by the pulsargateway controller. | +**PrivateServiceIds** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId.md) | PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus(observedGeneration int64, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + + +### GetPrivateServiceIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetPrivateServiceIds() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId` + +GetPrivateServiceIds returns the PrivateServiceIds field if non-nil, zero value otherwise. + +### GetPrivateServiceIdsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetPrivateServiceIdsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId, bool)` + +GetPrivateServiceIdsOk returns a tuple with the PrivateServiceIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateServiceIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) SetPrivateServiceIds(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId)` + +SetPrivateServiceIds sets PrivateServiceIds field to given value. + +### HasPrivateServiceIds + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) HasPrivateServiceIds() bool` + +HasPrivateServiceIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md new file mode 100644 index 0000000..d5466ab --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth.md new file mode 100644 index 0000000..ae1b410 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apikey** | Pointer to **map[string]interface{}** | ApiKey configuration | [optional] +**Oauth2** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuthWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuthWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuthWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApikey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetApikey() map[string]interface{}` + +GetApikey returns the Apikey field if non-nil, zero value otherwise. + +### GetApikeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetApikeyOk() (*map[string]interface{}, bool)` + +GetApikeyOk returns a tuple with the Apikey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApikey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) SetApikey(v map[string]interface{})` + +SetApikey sets Apikey field to given value. + +### HasApikey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) HasApikey() bool` + +HasApikey returns a boolean if a field has been set. + +### GetOauth2 + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetOauth2() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config` + +GetOauth2 returns the Oauth2 field if non-nil, zero value otherwise. + +### GetOauth2Ok + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetOauth2Ok() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config, bool)` + +GetOauth2Ok returns a tuple with the Oauth2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOauth2 + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) SetOauth2(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config)` + +SetOauth2 sets Oauth2 field to given value. + +### HasOauth2 + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) HasOauth2() bool` + +HasOauth2 returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md new file mode 100644 index 0000000..1ea459e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec.md new file mode 100644 index 0000000..2aa9eb1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec.md @@ -0,0 +1,155 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Auth** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth.md) | | [optional] +**AvailabilityMode** | **string** | AvailabilityMode decides whether pods of the same type in pulsar should be in one zone or multiple zones | +**Plan** | Pointer to **string** | Plan is the subscription plan, will create a stripe subscription if not empty deprecated: 1.16 | [optional] +**PoolRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef.md) | | [optional] +**Type** | Pointer to **string** | Type defines the instance specialization type: - standard: a standard deployment of Pulsar, BookKeeper, and ZooKeeper. - dedicated: a dedicated deployment of classic engine or ursa engine. - serverless: a serverless deployment of Pulsar, shared BookKeeper, and shared oxia. - byoc: bring your own cloud. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec(availabilityMode string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAuth() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth` + +GetAuth returns the Auth field if non-nil, zero value otherwise. + +### GetAuthOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAuthOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth, bool)` + +GetAuthOk returns a tuple with the Auth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetAuth(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth)` + +SetAuth sets Auth field to given value. + +### HasAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasAuth() bool` + +HasAuth returns a boolean if a field has been set. + +### GetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAvailabilityMode() string` + +GetAvailabilityMode returns the AvailabilityMode field if non-nil, zero value otherwise. + +### GetAvailabilityModeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAvailabilityModeOk() (*string, bool)` + +GetAvailabilityModeOk returns a tuple with the AvailabilityMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetAvailabilityMode(v string)` + +SetAvailabilityMode sets AvailabilityMode field to given value. + + +### GetPlan + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPlan() string` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPlanOk() (*string, bool)` + +GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlan + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetPlan(v string)` + +SetPlan sets Plan field to given value. + +### HasPlan + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasPlan() bool` + +HasPlan returns a boolean if a field has been set. + +### GetPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPoolRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef` + +GetPoolRef returns the PoolRef field if non-nil, zero value otherwise. + +### GetPoolRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef, bool)` + +GetPoolRefOk returns a tuple with the PoolRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef)` + +SetPoolRef sets PoolRef field to given value. + +### HasPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasPoolRef() bool` + +HasPoolRef returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus.md new file mode 100644 index 0000000..30adb21 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Auth** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth.md) | | +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus(auth ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetAuth() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth` + +GetAuth returns the Auth field if non-nil, zero value otherwise. + +### GetAuthOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetAuthOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth, bool)` + +GetAuthOk returns a tuple with the Auth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuth + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) SetAuth(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth)` + +SetAuth sets Auth field to given value. + + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth.md new file mode 100644 index 0000000..7836569 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Oauth2** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2.md) | | +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth(oauth2 ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOauth2 + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetOauth2() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2` + +GetOauth2 returns the Oauth2 field if non-nil, zero value otherwise. + +### GetOauth2Ok + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetOauth2Ok() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2, bool)` + +GetOauth2Ok returns a tuple with the Oauth2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOauth2 + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) SetOauth2(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2)` + +SetOauth2 sets Oauth2 field to given value. + + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2.md new file mode 100644 index 0000000..89a29a1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Audience** | **string** | | +**IssuerURL** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2(audience string, issuerURL string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2WithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2WithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2WithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAudience + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetAudience() string` + +GetAudience returns the Audience field if non-nil, zero value otherwise. + +### GetAudienceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetAudienceOk() (*string, bool)` + +GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAudience + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) SetAudience(v string)` + +SetAudience sets Audience field to given value. + + +### GetIssuerURL + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetIssuerURL() string` + +GetIssuerURL returns the IssuerURL field if non-nil, zero value otherwise. + +### GetIssuerURLOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetIssuerURLOk() (*string, bool)` + +GetIssuerURLOk returns a tuple with the IssuerURL field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerURL + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) SetIssuerURL(v string)` + +SetIssuerURL sets IssuerURL field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint.md new file mode 100644 index 0000000..3b59998 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DnsName** | **string** | | +**Gateway** | Pointer to **string** | Gateway is the name of the PulsarGateway to use for the endpoint, will be empty if endpointAccess is not configured. | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint(dnsName string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpointWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpointWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpointWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDnsName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + + +### GetGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetGateway() string` + +GetGateway returns the Gateway field if non-nil, zero value otherwise. + +### GetGatewayOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetGatewayOk() (*string, bool)` + +GetGatewayOk returns a tuple with the Gateway field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) SetGateway(v string)` + +SetGateway sets Gateway field to given value. + +### HasGateway + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) HasGateway() bool` + +HasGateway returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus.md new file mode 100644 index 0000000..91049da --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailedClusterRoles** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole.md) | | [optional] +**FailedRoleBindings** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding.md) | | [optional] +**FailedRoles** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFailedClusterRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedClusterRoles() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole` + +GetFailedClusterRoles returns the FailedClusterRoles field if non-nil, zero value otherwise. + +### GetFailedClusterRolesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedClusterRolesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole, bool)` + +GetFailedClusterRolesOk returns a tuple with the FailedClusterRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedClusterRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) SetFailedClusterRoles(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole)` + +SetFailedClusterRoles sets FailedClusterRoles field to given value. + +### HasFailedClusterRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) HasFailedClusterRoles() bool` + +HasFailedClusterRoles returns a boolean if a field has been set. + +### GetFailedRoleBindings + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRoleBindings() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding` + +GetFailedRoleBindings returns the FailedRoleBindings field if non-nil, zero value otherwise. + +### GetFailedRoleBindingsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRoleBindingsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding, bool)` + +GetFailedRoleBindingsOk returns a tuple with the FailedRoleBindings field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedRoleBindings + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) SetFailedRoleBindings(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding)` + +SetFailedRoleBindings sets FailedRoleBindings field to given value. + +### HasFailedRoleBindings + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) HasFailedRoleBindings() bool` + +HasFailedRoleBindings returns a boolean if a field has been set. + +### GetFailedRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRoles() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole` + +GetFailedRoles returns the FailedRoles field if non-nil, zero value otherwise. + +### GetFailedRolesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRolesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole, bool)` + +GetFailedRolesOk returns a tuple with the FailedRoles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) SetFailedRoles(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole)` + +SetFailedRoles sets FailedRoles field to given value. + +### HasFailedRoles + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) HasFailedRoles() bool` + +HasFailedRoles returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo.md new file mode 100644 index 0000000..bfce06b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Region** | **string** | | +**Zones** | **[]string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo(region string, zones []string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfoWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfoWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfoWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) SetRegion(v string)` + +SetRegion sets Region field to given value. + + +### GetZones + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetZones() []string` + +GetZones returns the Zones field if non-nil, zero value otherwise. + +### GetZonesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetZonesOk() (*[]string, bool)` + +GetZonesOk returns a tuple with the Zones field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZones + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) SetZones(v []string)` + +SetZones sets Zones field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md new file mode 100644 index 0000000..75c143c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md new file mode 100644 index 0000000..8dafa7d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition.md new file mode 100644 index 0000000..a9bd981 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Operator** | Pointer to **int32** | | [optional] +**Srn** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn.md) | | [optional] +**Type** | Pointer to **int32** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingConditionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOperator + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetOperator() int32` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetOperatorOk() (*int32, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) SetOperator(v int32)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetSrn + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetSrn() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn` + +GetSrn returns the Srn field if non-nil, zero value otherwise. + +### GetSrnOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetSrnOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn, bool)` + +GetSrnOk returns a tuple with the Srn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSrn + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) SetSrn(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn)` + +SetSrn sets Srn field to given value. + +### HasSrn + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) HasSrn() bool` + +HasSrn returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) SetType(v int32)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md new file mode 100644 index 0000000..d33a7b1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec.md new file mode 100644 index 0000000..6ce504d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec.md @@ -0,0 +1,124 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cel** | Pointer to **string** | | [optional] +**ConditionGroup** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup.md) | | [optional] +**RoleRef** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md) | | +**Subjects** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec(roleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetCel() string` + +GetCel returns the Cel field if non-nil, zero value otherwise. + +### GetCelOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetCelOk() (*string, bool)` + +GetCelOk returns a tuple with the Cel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetCel(v string)` + +SetCel sets Cel field to given value. + +### HasCel + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) HasCel() bool` + +HasCel returns a boolean if a field has been set. + +### GetConditionGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetConditionGroup() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup` + +GetConditionGroup returns the ConditionGroup field if non-nil, zero value otherwise. + +### GetConditionGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetConditionGroupOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup, bool)` + +GetConditionGroupOk returns a tuple with the ConditionGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditionGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetConditionGroup(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup)` + +SetConditionGroup sets ConditionGroup field to given value. + +### HasConditionGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) HasConditionGroup() bool` + +HasConditionGroup returns a boolean if a field has been set. + +### GetRoleRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetRoleRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef` + +GetRoleRef returns the RoleRef field if non-nil, zero value otherwise. + +### GetRoleRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetRoleRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, bool)` + +GetRoleRefOk returns a tuple with the RoleRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetRoleRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef)` + +SetRoleRef sets RoleRef field to given value. + + +### GetSubjects + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetSubjects() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject` + +GetSubjects returns the Subjects field if non-nil, zero value otherwise. + +### GetSubjectsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetSubjectsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject, bool)` + +GetSubjectsOk returns a tuple with the Subjects field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubjects + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetSubjects(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject)` + +SetSubjects sets Subjects field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus.md new file mode 100644 index 0000000..b0b3704 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**FailedClusters** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md) | FailedClusters is an array of clusters which failed to apply the ClusterRole resources. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetFailedClusters() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster` + +GetFailedClusters returns the FailedClusters field if non-nil, zero value otherwise. + +### GetFailedClustersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetFailedClustersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster, bool)` + +GetFailedClustersOk returns a tuple with the FailedClusters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) SetFailedClusters(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster)` + +SetFailedClusters sets FailedClusters field to given value. + +### HasFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) HasFailedClusters() bool` + +HasFailedClusters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md new file mode 100644 index 0000000..b8522eb --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Role** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinitionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinitionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinitionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRole + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) SetRole(v string)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md new file mode 100644 index 0000000..961e3c8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md new file mode 100644 index 0000000..b0b7f95 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef.md @@ -0,0 +1,93 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiGroup** | **string** | | +**Kind** | **string** | | +**Name** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef(apiGroup string, kind string, name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRefWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetApiGroup() string` + +GetApiGroup returns the ApiGroup field if non-nil, zero value otherwise. + +### GetApiGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetApiGroupOk() (*string, bool)` + +GetApiGroupOk returns a tuple with the ApiGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) SetApiGroup(v string)` + +SetApiGroup sets ApiGroup field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec.md new file mode 100644 index 0000000..59097e7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permissions** | Pointer to **[]string** | Permissions Designed for general permission format SERVICE.RESOURCE.VERB | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPermissions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) GetPermissions() []string` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) GetPermissionsOk() (*[]string, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) SetPermissions(v []string)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus.md new file mode 100644 index 0000000..00aab73 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**FailedClusters** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster.md) | FailedClusters is an array of clusters which failed to apply the ClusterRole resources. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetFailedClusters() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster` + +GetFailedClusters returns the FailedClusters field if non-nil, zero value otherwise. + +### GetFailedClustersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetFailedClustersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster, bool)` + +GetFailedClustersOk returns a tuple with the FailedClusters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) SetFailedClusters(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster)` + +SetFailedClusters sets FailedClusters field to given value. + +### HasFailedClusters + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) HasFailedClusters() bool` + +HasFailedClusters returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md new file mode 100644 index 0000000..4c04ce6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md @@ -0,0 +1,280 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Data** | Pointer to **map[string]string** | the value should be base64 encoded | [optional] +**InstanceName** | **string** | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Location** | **string** | | +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md) | | [optional] +**Spec** | Pointer to **map[string]interface{}** | | [optional] +**Status** | Pointer to **map[string]interface{}** | | [optional] +**Tolerations** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret(instanceName string, location string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetData + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetData() map[string]string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetDataOk() (*map[string]string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetData(v map[string]string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetInstanceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetInstanceName() string` + +GetInstanceName returns the InstanceName field if non-nil, zero value otherwise. + +### GetInstanceNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetInstanceNameOk() (*string, bool)` + +GetInstanceNameOk returns a tuple with the InstanceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetInstanceName(v string)` + +SetInstanceName sets InstanceName field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetLocation(v string)` + +SetLocation sets Location field to given value. + + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetSpec() map[string]interface{}` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetSpecOk() (*map[string]interface{}, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetSpec(v map[string]interface{})` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetStatus() map[string]interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetStatusOk() (*map[string]interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetStatus(v map[string]interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetTolerations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration` + +GetTolerations returns the Tolerations field if non-nil, zero value otherwise. + +### GetTolerationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetTolerationsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration, bool)` + +GetTolerationsOk returns a tuple with the Tolerations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetTolerations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration)` + +SetTolerations sets Tolerations field to given value. + +### HasTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasTolerations() bool` + +HasTolerations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md new file mode 100644 index 0000000..aa9c228 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference.md new file mode 100644 index 0000000..4dea4c7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md new file mode 100644 index 0000000..3495ef4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec.md) | | [optional] +**Status** | Pointer to **map[string]interface{}** | SelfRegistrationStatus defines the observed state of SelfRegistration | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetStatus() map[string]interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetStatusOk() (*map[string]interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetStatus(v map[string]interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws.md new file mode 100644 index 0000000..891eccc --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RegistrationToken** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws(registrationToken string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAwsWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAwsWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAwsWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegistrationToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) GetRegistrationToken() string` + +GetRegistrationToken returns the RegistrationToken field if non-nil, zero value otherwise. + +### GetRegistrationTokenOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) GetRegistrationTokenOk() (*string, bool)` + +GetRegistrationTokenOk returns a tuple with the RegistrationToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegistrationToken + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) SetRegistrationToken(v string)` + +SetRegistrationToken sets RegistrationToken field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec.md new file mode 100644 index 0000000..9ed0a66 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec.md @@ -0,0 +1,176 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Aws** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws.md) | | [optional] +**DisplayName** | **string** | | +**Metadata** | Pointer to **map[string]string** | | [optional] +**Stripe** | Pointer to **map[string]interface{}** | | [optional] +**Suger** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger.md) | | [optional] +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec(displayName string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetAws() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws` + +GetAws returns the Aws field if non-nil, zero value otherwise. + +### GetAwsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetAwsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws, bool)` + +GetAwsOk returns a tuple with the Aws field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetAws(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws)` + +SetAws sets Aws field to given value. + +### HasAws + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasAws() bool` + +HasAws returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetMetadata() map[string]string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetMetadataOk() (*map[string]string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetMetadata(v map[string]string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetStripe() map[string]interface{}` + +GetStripe returns the Stripe field if non-nil, zero value otherwise. + +### GetStripeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetStripeOk() (*map[string]interface{}, bool)` + +GetStripeOk returns a tuple with the Stripe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetStripe(v map[string]interface{})` + +SetStripe sets Stripe field to given value. + +### HasStripe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasStripe() bool` + +HasStripe returns a boolean if a field has been set. + +### GetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger` + +GetSuger returns the Suger field if non-nil, zero value otherwise. + +### GetSugerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger, bool)` + +GetSugerOk returns a tuple with the Suger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger)` + +SetSuger sets Suger field to given value. + +### HasSuger + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasSuger() bool` + +HasSuger returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger.md new file mode 100644 index 0000000..8addf3f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntitlementID** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger(entitlementID string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSugerWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSugerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSugerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) GetEntitlementID() string` + +GetEntitlementID returns the EntitlementID field if non-nil, zero value otherwise. + +### GetEntitlementIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) GetEntitlementIDOk() (*string, bool)` + +GetEntitlementIDOk returns a tuple with the EntitlementID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntitlementID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) SetEntitlementID(v string)` + +SetEntitlementID sets EntitlementID field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md new file mode 100644 index 0000000..afdc6da --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to **map[string]interface{}** | ServiceAccountSpec defines the desired state of ServiceAccount | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetSpec() map[string]interface{}` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetSpecOk() (*map[string]interface{}, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetSpec(v map[string]interface{})` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md new file mode 100644 index 0000000..ef78004 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md new file mode 100644 index 0000000..d3e7996 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec.md new file mode 100644 index 0000000..0e42bcb --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference.md) | | [optional] +**ServiceAccountName** | Pointer to **string** | refers to the ServiceAccount under the same namespace as this binding object | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetServiceAccountName() string` + +GetServiceAccountName returns the ServiceAccountName field if non-nil, zero value otherwise. + +### GetServiceAccountNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetServiceAccountNameOk() (*string, bool)` + +GetServiceAccountNameOk returns a tuple with the ServiceAccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) SetServiceAccountName(v string)` + +SetServiceAccountName sets ServiceAccountName field to given value. + +### HasServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) HasServiceAccountName() bool` + +HasServiceAccountName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus.md new file mode 100644 index 0000000..20c1c3c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed service account binding conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md new file mode 100644 index 0000000..655a69a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus.md new file mode 100644 index 0000000..c371edf --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed service account conditions. | [optional] +**PrivateKeyData** | Pointer to **string** | PrivateKeyData provides the private key data (in base-64 format) for authentication purposes | [optional] +**PrivateKeyType** | Pointer to **string** | PrivateKeyType indicates the type of private key information | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetPrivateKeyData + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyData() string` + +GetPrivateKeyData returns the PrivateKeyData field if non-nil, zero value otherwise. + +### GetPrivateKeyDataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyDataOk() (*string, bool)` + +GetPrivateKeyDataOk returns a tuple with the PrivateKeyData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyData + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) SetPrivateKeyData(v string)` + +SetPrivateKeyData sets PrivateKeyData field to given value. + +### HasPrivateKeyData + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) HasPrivateKeyData() bool` + +HasPrivateKeyData returns a boolean if a field has been set. + +### GetPrivateKeyType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyType() string` + +GetPrivateKeyType returns the PrivateKeyType field if non-nil, zero value otherwise. + +### GetPrivateKeyTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyTypeOk() (*string, bool)` + +GetPrivateKeyTypeOk returns a tuple with the PrivateKeyType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) SetPrivateKeyType(v string)` + +SetPrivateKeyType sets PrivateKeyType field to given value. + +### HasPrivateKeyType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) HasPrivateKeyType() bool` + +HasPrivateKeyType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig.md new file mode 100644 index 0000000..41e435d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespaces** | **[]string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig(namespaces []string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfigWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNamespaces + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) GetNamespaces() []string` + +GetNamespaces returns the Namespaces field if non-nil, zero value otherwise. + +### GetNamespacesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) GetNamespacesOk() (*[]string, bool)` + +GetNamespacesOk returns a tuple with the Namespaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaces + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) SetNamespaces(v []string)` + +SetNamespaces sets Namespaces field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn.md new file mode 100644 index 0000000..f0b0d30 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn.md @@ -0,0 +1,290 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cluster** | Pointer to **string** | | [optional] +**Instance** | Pointer to **string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] +**Organization** | Pointer to **string** | | [optional] +**Schema** | Pointer to **string** | | [optional] +**Subscription** | Pointer to **string** | | [optional] +**Tenant** | Pointer to **string** | | [optional] +**TopicDomain** | Pointer to **string** | | [optional] +**TopicName** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SrnWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SrnWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SrnWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCluster + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetCluster() string` + +GetCluster returns the Cluster field if non-nil, zero value otherwise. + +### GetClusterOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetClusterOk() (*string, bool)` + +GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCluster + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetCluster(v string)` + +SetCluster sets Cluster field to given value. + +### HasCluster + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasCluster() bool` + +HasCluster returns a boolean if a field has been set. + +### GetInstance + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetOrganization() string` + +GetOrganization returns the Organization field if non-nil, zero value otherwise. + +### GetOrganizationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetOrganizationOk() (*string, bool)` + +GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetOrganization(v string)` + +SetOrganization sets Organization field to given value. + +### HasOrganization + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasOrganization() bool` + +HasOrganization returns a boolean if a field has been set. + +### GetSchema + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSchema() string` + +GetSchema returns the Schema field if non-nil, zero value otherwise. + +### GetSchemaOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSchemaOk() (*string, bool)` + +GetSchemaOk returns a tuple with the Schema field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchema + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetSchema(v string)` + +SetSchema sets Schema field to given value. + +### HasSchema + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasSchema() bool` + +HasSchema returns a boolean if a field has been set. + +### GetSubscription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSubscription() string` + +GetSubscription returns the Subscription field if non-nil, zero value otherwise. + +### GetSubscriptionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSubscriptionOk() (*string, bool)` + +GetSubscriptionOk returns a tuple with the Subscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetSubscription(v string)` + +SetSubscription sets Subscription field to given value. + +### HasSubscription + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasSubscription() bool` + +HasSubscription returns a boolean if a field has been set. + +### GetTenant + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTenant() string` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTenantOk() (*string, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetTenant(v string)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### GetTopicDomain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicDomain() string` + +GetTopicDomain returns the TopicDomain field if non-nil, zero value otherwise. + +### GetTopicDomainOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicDomainOk() (*string, bool)` + +GetTopicDomainOk returns a tuple with the TopicDomain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopicDomain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetTopicDomain(v string)` + +SetTopicDomain sets TopicDomain field to given value. + +### HasTopicDomain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasTopicDomain() bool` + +HasTopicDomain returns a boolean if a field has been set. + +### GetTopicName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicName() string` + +GetTopicName returns the TopicName field if non-nil, zero value otherwise. + +### GetTopicNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicNameOk() (*string, bool)` + +GetTopicNameOk returns a tuple with the TopicName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopicName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetTopicName(v string)` + +SetTopicName sets TopicName field to given value. + +### HasTopicName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasTopicName() bool` + +HasTopicName returns a boolean if a field has been set. + +### GetVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md new file mode 100644 index 0000000..6949595 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md new file mode 100644 index 0000000..14683bd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec.md new file mode 100644 index 0000000..3cc7569 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerId** | **string** | CustomerId is the id of the customer | +**Product** | Pointer to **string** | Product is the name or id of the product | [optional] +**Quantities** | Pointer to **map[string]int64** | Quantities defines the quantity of certain prices in the subscription | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec(customerId string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomerId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetCustomerId() string` + +GetCustomerId returns the CustomerId field if non-nil, zero value otherwise. + +### GetCustomerIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetCustomerIdOk() (*string, bool)` + +GetCustomerIdOk returns a tuple with the CustomerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) SetCustomerId(v string)` + +SetCustomerId sets CustomerId field to given value. + + +### GetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) SetProduct(v string)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetQuantities + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetQuantities() map[string]int64` + +GetQuantities returns the Quantities field if non-nil, zero value otherwise. + +### GetQuantitiesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetQuantitiesOk() (*map[string]int64, bool)` + +GetQuantitiesOk returns a tuple with the Quantities field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantities + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) SetQuantities(v map[string]int64)` + +SetQuantities sets Quantities field to given value. + +### HasQuantities + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) HasQuantities() bool` + +HasQuantities returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus.md new file mode 100644 index 0000000..5828ce3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**ObservedGeneration** | Pointer to **int64** | The generation observed by the controller. | [optional] +**SubscriptionItems** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem.md) | SubscriptionItems is a list of subscription items (used to report metrics) | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + +### HasObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) HasObservedGeneration() bool` + +HasObservedGeneration returns a boolean if a field has been set. + +### GetSubscriptionItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetSubscriptionItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem` + +GetSubscriptionItems returns the SubscriptionItems field if non-nil, zero value otherwise. + +### GetSubscriptionItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetSubscriptionItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem, bool)` + +GetSubscriptionItemsOk returns a tuple with the SubscriptionItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) SetSubscriptionItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem)` + +SetSubscriptionItems sets SubscriptionItems field to given value. + +### HasSubscriptionItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) HasSubscriptionItems() bool` + +HasSubscriptionItems returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md new file mode 100644 index 0000000..bc7defd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject.md @@ -0,0 +1,119 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiGroup** | **string** | | +**Kind** | **string** | | +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject(apiGroup string, kind string, name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubjectWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubjectWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubjectWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetApiGroup() string` + +GetApiGroup returns the ApiGroup field if non-nil, zero value otherwise. + +### GetApiGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetApiGroupOk() (*string, bool)` + +GetApiGroupOk returns a tuple with the ApiGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetApiGroup(v string)` + +SetApiGroup sets ApiGroup field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem.md new file mode 100644 index 0000000..f0ef094 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem.md @@ -0,0 +1,114 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NickName** | **string** | | +**PriceId** | **string** | | +**SubscriptionId** | **string** | | +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem(nickName string, priceId string, subscriptionId string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItemWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNickName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetNickName() string` + +GetNickName returns the NickName field if non-nil, zero value otherwise. + +### GetNickNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetNickNameOk() (*string, bool)` + +GetNickNameOk returns a tuple with the NickName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNickName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetNickName(v string)` + +SetNickName sets NickName field to given value. + + +### GetPriceId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetPriceId() string` + +GetPriceId returns the PriceId field if non-nil, zero value otherwise. + +### GetPriceIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetPriceIdOk() (*string, bool)` + +GetPriceIdOk returns a tuple with the PriceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetPriceId(v string)` + +SetPriceId sets PriceId field to given value. + + +### GetSubscriptionId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec.md new file mode 100644 index 0000000..774ca77 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chains** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain.md) | A role chain that is provided by name through the CLI to designate which access chain to take when accessing a poolmember. | [optional] +**RoleChain** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetChains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain` + +GetChains returns the Chains field if non-nil, zero value otherwise. + +### GetChainsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetChainsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain, bool)` + +GetChainsOk returns a tuple with the Chains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) SetChains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain)` + +SetChains sets Chains field to given value. + +### HasChains + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) HasChains() bool` + +HasChains returns a boolean if a field has been set. + +### GetRoleChain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetRoleChain() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition` + +GetRoleChain returns the RoleChain field if non-nil, zero value otherwise. + +### GetRoleChainOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetRoleChainOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition, bool)` + +GetRoleChainOk returns a tuple with the RoleChain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleChain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) SetRoleChain(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition)` + +SetRoleChain sets RoleChain field to given value. + +### HasRoleChain + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) HasRoleChain() bool` + +HasRoleChain returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint.md new file mode 100644 index 0000000..d7a4e98 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint.md @@ -0,0 +1,124 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Effect** | **string** | Required. The effect of the taint on workloads that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | +**Key** | **string** | Required. The taint key to be applied to a workload cluster. | +**TimeAdded** | Pointer to **time.Time** | TimeAdded represents the time at which the taint was added. | [optional] +**Value** | Pointer to **string** | Optional. The taint value corresponding to the taint key. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint(effect string, key string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TaintWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TaintWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TaintWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEffect + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetEffect(v string)` + +SetEffect sets Effect field to given value. + + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetTimeAdded + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetTimeAdded() time.Time` + +GetTimeAdded returns the TimeAdded field if non-nil, zero value otherwise. + +### GetTimeAddedOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetTimeAddedOk() (*time.Time, bool)` + +GetTimeAddedOk returns a tuple with the TimeAdded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeAdded + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetTimeAdded(v time.Time)` + +SetTimeAdded sets TimeAdded field to given value. + +### HasTimeAdded + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) HasTimeAdded() bool` + +HasTimeAdded returns a boolean if a field has been set. + +### GetValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md new file mode 100644 index 0000000..7c641f6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Effect** | Pointer to **string** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and PreferNoSchedule. | [optional] +**Key** | Pointer to **string** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. | [optional] +**Operator** | Pointer to **string** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. | [optional] +**Value** | Pointer to **string** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TolerationWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TolerationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TolerationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEffect + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetEffect(v string)` + +SetEffect sets Effect field to given value. + +### HasEffect + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasEffect() bool` + +HasEffect returns a boolean if a field has been set. + +### GetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetOperator + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetOperatorOk() (*string, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md new file mode 100644 index 0000000..4521524 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md new file mode 100644 index 0000000..0f1960d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName.md new file mode 100644 index 0000000..c649e1e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**First** | **string** | | +**Last** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName(first string, last string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserNameWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserNameWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserNameWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFirst + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetFirst() string` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetFirstOk() (*string, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) SetFirst(v string)` + +SetFirst sets First field to given value. + + +### GetLast + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetLast() string` + +GetLast returns the Last field if non-nil, zero value otherwise. + +### GetLastOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetLastOk() (*string, bool)` + +GetLastOk returns a tuple with the Last field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLast + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) SetLast(v string)` + +SetLast sets Last field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec.md new file mode 100644 index 0000000..86a42af --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | | +**Invitation** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation.md) | | [optional] +**Name** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec(email string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetInvitation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetInvitation() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation` + +GetInvitation returns the Invitation field if non-nil, zero value otherwise. + +### GetInvitationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetInvitationOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation, bool)` + +GetInvitationOk returns a tuple with the Invitation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvitation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetInvitation(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation)` + +SetInvitation sets Invitation field to given value. + +### HasInvitation + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) HasInvitation() bool` + +HasInvitation returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetName() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetNameOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetName(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus.md new file mode 100644 index 0000000..c5736d9 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window.md new file mode 100644 index 0000000..ff54080 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Duration** | **string** | StartTime define the maintenance execution duration | +**StartTime** | **string** | StartTime define the maintenance execution start time | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window(duration string, startTime string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1WindowWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1WindowWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1WindowWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDuration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetDuration() string` + +GetDuration returns the Duration field if non-nil, zero value otherwise. + +### GetDurationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetDurationOk() (*string, bool)` + +GetDurationOk returns a tuple with the Duration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDuration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) SetDuration(v string)` + +SetDuration sets Duration field to given value. + + +### GetStartTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetStartTime() string` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetStartTimeOk() (*string, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) SetStartTime(v string)` + +SetStartTime sets StartTime field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference.md new file mode 100644 index 0000000..397c25f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md new file mode 100644 index 0000000..f1ca676 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList.md new file mode 100644 index 0000000..e7f6d10 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec.md new file mode 100644 index 0000000..57be9f2 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerID** | Pointer to **string** | | [optional] +**ProductCode** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetCustomerID() string` + +GetCustomerID returns the CustomerID field if non-nil, zero value otherwise. + +### GetCustomerIDOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetCustomerIDOk() (*string, bool)` + +GetCustomerIDOk returns a tuple with the CustomerID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) SetCustomerID(v string)` + +SetCustomerID sets CustomerID field to given value. + +### HasCustomerID + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) HasCustomerID() bool` + +HasCustomerID returns a boolean if a field has been set. + +### GetProductCode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetProductCode() string` + +GetProductCode returns the ProductCode field if non-nil, zero value otherwise. + +### GetProductCodeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetProductCodeOk() (*string, bool)` + +GetProductCodeOk returns a tuple with the ProductCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductCode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) SetProductCode(v string)` + +SetProductCode sets ProductCode field to given value. + +### HasProductCode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) HasProductCode() bool` + +HasProductCode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus.md new file mode 100644 index 0000000..7210e26 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec.md new file mode 100644 index 0000000..83d7a41 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeType** | Pointer to **string** | NodeType defines the request node specification type | [optional] +**StorageSize** | Pointer to **string** | StorageSize defines the size of the ledger storage | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetNodeType() string` + +GetNodeType returns the NodeType field if non-nil, zero value otherwise. + +### GetNodeTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetNodeTypeOk() (*string, bool)` + +GetNodeTypeOk returns a tuple with the NodeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) SetNodeType(v string)` + +SetNodeType sets NodeType field to given value. + +### HasNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) HasNodeType() bool` + +HasNodeType returns a boolean if a field has been set. + +### GetStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetStorageSize() string` + +GetStorageSize returns the StorageSize field if non-nil, zero value otherwise. + +### GetStorageSizeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetStorageSizeOk() (*string, bool)` + +GetStorageSizeOk returns a tuple with the StorageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) SetStorageSize(v string)` + +SetStorageSize sets StorageSize field to given value. + +### HasStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) HasStorageSize() bool` + +HasStorageSize returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md new file mode 100644 index 0000000..b3eddc7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md new file mode 100644 index 0000000..5ab8c6b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md new file mode 100644 index 0000000..e841720 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md new file mode 100644 index 0000000..affae93 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec.md new file mode 100644 index 0000000..26c9703 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BookKeeperSetRef** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec(bookKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBookKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) GetBookKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference` + +GetBookKeeperSetRef returns the BookKeeperSetRef field if non-nil, zero value otherwise. + +### GetBookKeeperSetRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) GetBookKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference, bool)` + +GetBookKeeperSetRefOk returns a tuple with the BookKeeperSetRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBookKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) SetBookKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference)` + +SetBookKeeperSetRef sets BookKeeperSetRef field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus.md new file mode 100644 index 0000000..a448129 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md) | Conditions is an array of current observed BookKeeperSetOptionStatus conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference.md new file mode 100644 index 0000000..8732f4a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec.md new file mode 100644 index 0000000..ff60f87 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec.md @@ -0,0 +1,233 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityMode** | Pointer to **string** | AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. | [optional] +**Image** | Pointer to **string** | Image name is the name of the image to deploy. | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md) | | [optional] +**Replicas** | Pointer to **int32** | Replicas is the desired number of BookKeeper servers. If unspecified, defaults to 3. | [optional] +**ResourceSpec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec.md) | | [optional] +**Resources** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource.md) | | [optional] +**Sharing** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md) | | [optional] +**ZooKeeperSetRef** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec(zooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetAvailabilityMode() string` + +GetAvailabilityMode returns the AvailabilityMode field if non-nil, zero value otherwise. + +### GetAvailabilityModeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetAvailabilityModeOk() (*string, bool)` + +GetAvailabilityModeOk returns a tuple with the AvailabilityMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetAvailabilityMode(v string)` + +SetAvailabilityMode sets AvailabilityMode field to given value. + +### HasAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasAvailabilityMode() bool` + +HasAvailabilityMode returns a boolean if a field has been set. + +### GetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetReplicas() int32` + +GetReplicas returns the Replicas field if non-nil, zero value otherwise. + +### GetReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetReplicasOk() (*int32, bool)` + +GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetReplicas(v int32)` + +SetReplicas sets Replicas field to given value. + +### HasReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasReplicas() bool` + +HasReplicas returns a boolean if a field has been set. + +### GetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec` + +GetResourceSpec returns the ResourceSpec field if non-nil, zero value otherwise. + +### GetResourceSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec, bool)` + +GetResourceSpecOk returns a tuple with the ResourceSpec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec)` + +SetResourceSpec sets ResourceSpec field to given value. + +### HasResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasResourceSpec() bool` + +HasResourceSpec returns a boolean if a field has been set. + +### GetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetSharing() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig` + +GetSharing returns the Sharing field if non-nil, zero value otherwise. + +### GetSharingOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetSharingOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig, bool)` + +GetSharingOk returns a tuple with the Sharing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetSharing(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig)` + +SetSharing sets Sharing field to given value. + +### HasSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasSharing() bool` + +HasSharing returns a boolean if a field has been set. + +### GetZooKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetZooKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference` + +GetZooKeeperSetRef returns the ZooKeeperSetRef field if non-nil, zero value otherwise. + +### GetZooKeeperSetRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetZooKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference, bool)` + +GetZooKeeperSetRefOk returns a tuple with the ZooKeeperSetRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZooKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetZooKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference)` + +SetZooKeeperSetRef sets ZooKeeperSetRef field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus.md new file mode 100644 index 0000000..9b77392 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md) | Conditions is an array of current observed conditions. | [optional] +**MetadataServiceUri** | Pointer to **string** | MetadataServiceUri exposes the URI used for loading corresponding metadata driver and resolving its metadata service location | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetMetadataServiceUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetMetadataServiceUri() string` + +GetMetadataServiceUri returns the MetadataServiceUri field if non-nil, zero value otherwise. + +### GetMetadataServiceUriOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetMetadataServiceUriOk() (*string, bool)` + +GetMetadataServiceUriOk returns a tuple with the MetadataServiceUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadataServiceUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) SetMetadataServiceUri(v string)` + +SetMetadataServiceUri sets MetadataServiceUri field to given value. + +### HasMetadataServiceUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) HasMetadataServiceUri() bool` + +HasMetadataServiceUri returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource.md new file mode 100644 index 0000000..f0c462d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultNodeResource** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md) | | +**JournalDisk** | Pointer to **string** | JournalDisk size. Set to zero equivalent to use default value | [optional] +**LedgerDisk** | Pointer to **string** | LedgerDisk size. Set to zero equivalent to use default value | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource(defaultNodeResource ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResourceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDefaultNodeResource + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetDefaultNodeResource() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource` + +GetDefaultNodeResource returns the DefaultNodeResource field if non-nil, zero value otherwise. + +### GetDefaultNodeResourceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetDefaultNodeResourceOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource, bool)` + +GetDefaultNodeResourceOk returns a tuple with the DefaultNodeResource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultNodeResource + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) SetDefaultNodeResource(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource)` + +SetDefaultNodeResource sets DefaultNodeResource field to given value. + + +### GetJournalDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetJournalDisk() string` + +GetJournalDisk returns the JournalDisk field if non-nil, zero value otherwise. + +### GetJournalDiskOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetJournalDiskOk() (*string, bool)` + +GetJournalDiskOk returns a tuple with the JournalDisk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJournalDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) SetJournalDisk(v string)` + +SetJournalDisk sets JournalDisk field to given value. + +### HasJournalDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) HasJournalDisk() bool` + +HasJournalDisk returns a boolean if a field has been set. + +### GetLedgerDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetLedgerDisk() string` + +GetLedgerDisk returns the LedgerDisk field if non-nil, zero value otherwise. + +### GetLedgerDiskOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetLedgerDiskOk() (*string, bool)` + +GetLedgerDiskOk returns a tuple with the LedgerDisk field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLedgerDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) SetLedgerDisk(v string)` + +SetLedgerDisk sets LedgerDisk field to given value. + +### HasLedgerDisk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) HasLedgerDisk() bool` + +HasLedgerDisk returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md new file mode 100644 index 0000000..e626f53 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md @@ -0,0 +1,176 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTransitionTime** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**Message** | Pointer to **string** | | [optional] +**ObservedGeneration** | Pointer to **int64** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] +**Reason** | Pointer to **string** | | [optional] +**Status** | **string** | | +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition(status string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ConditionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetLastTransitionTime() time.Time` + +GetLastTransitionTime returns the LastTransitionTime field if non-nil, zero value otherwise. + +### GetLastTransitionTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetLastTransitionTimeOk() (*time.Time, bool)` + +GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetLastTransitionTime(v time.Time)` + +SetLastTransitionTime sets LastTransitionTime field to given value. + +### HasLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasLastTransitionTime() bool` + +HasLastTransitionTime returns a boolean if a field has been set. + +### GetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + +### HasObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasObservedGeneration() bool` + +HasObservedGeneration returns a boolean if a field has been set. + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md new file mode 100644 index 0000000..80486ce --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md @@ -0,0 +1,124 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cpu** | **string** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | +**DirectPercentage** | Pointer to **int32** | Percentage of direct memory from overall memory. Set to 0 to use default value. | [optional] +**HeapPercentage** | Pointer to **int32** | Percentage of heap memory from overall memory. Set to 0 to use default value. | [optional] +**Memory** | **string** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource(cpu string, memory string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResourceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetCpu() string` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetCpuOk() (*string, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetCpu(v string)` + +SetCpu sets Cpu field to given value. + + +### GetDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetDirectPercentage() int32` + +GetDirectPercentage returns the DirectPercentage field if non-nil, zero value otherwise. + +### GetDirectPercentageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetDirectPercentageOk() (*int32, bool)` + +GetDirectPercentageOk returns a tuple with the DirectPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetDirectPercentage(v int32)` + +SetDirectPercentage sets DirectPercentage field to given value. + +### HasDirectPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) HasDirectPercentage() bool` + +HasDirectPercentage returns a boolean if a field has been set. + +### GetHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetHeapPercentage() int32` + +GetHeapPercentage returns the HeapPercentage field if non-nil, zero value otherwise. + +### GetHeapPercentageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetHeapPercentageOk() (*int32, bool)` + +GetHeapPercentageOk returns a tuple with the HeapPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetHeapPercentage(v int32)` + +SetHeapPercentage sets HeapPercentage field to given value. + +### HasHeapPercentage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) HasHeapPercentage() bool` + +HasHeapPercentage returns a boolean if a field has been set. + +### GetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetMemory() string` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetMemoryOk() (*string, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetMemory(v string)` + +SetMemory sets Memory field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md new file mode 100644 index 0000000..fa4ea32 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md new file mode 100644 index 0000000..062f287 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec.md new file mode 100644 index 0000000..3131713 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityMode** | Pointer to **string** | AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md) | | [optional] +**Replicas** | Pointer to **int32** | Replicas is the desired number of monitoring servers. If unspecified, defaults to 1. | [optional] +**Selector** | Pointer to [**V1LabelSelector**](V1LabelSelector.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetAvailabilityMode() string` + +GetAvailabilityMode returns the AvailabilityMode field if non-nil, zero value otherwise. + +### GetAvailabilityModeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetAvailabilityModeOk() (*string, bool)` + +GetAvailabilityModeOk returns a tuple with the AvailabilityMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetAvailabilityMode(v string)` + +SetAvailabilityMode sets AvailabilityMode field to given value. + +### HasAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasAvailabilityMode() bool` + +HasAvailabilityMode returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetReplicas() int32` + +GetReplicas returns the Replicas field if non-nil, zero value otherwise. + +### GetReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetReplicasOk() (*int32, bool)` + +GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetReplicas(v int32)` + +SetReplicas sets Replicas field to given value. + +### HasReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasReplicas() bool` + +HasReplicas returns a boolean if a field has been set. + +### GetSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetSelector() V1LabelSelector` + +GetSelector returns the Selector field if non-nil, zero value otherwise. + +### GetSelectorOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetSelectorOk() (*V1LabelSelector, bool)` + +GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetSelector(v V1LabelSelector)` + +SetSelector sets Selector field to given value. + +### HasSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasSelector() bool` + +HasSelector returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus.md new file mode 100644 index 0000000..4e125fe --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md new file mode 100644 index 0000000..466f952 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference(name string, namespace string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md new file mode 100644 index 0000000..4c6325a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Namespaces** | **[]string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig(namespaces []string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfigWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNamespaces + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) GetNamespaces() []string` + +GetNamespaces returns the Namespaces field if non-nil, zero value otherwise. + +### GetNamespacesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) GetNamespacesOk() (*[]string, bool)` + +GetNamespacesOk returns a tuple with the Namespaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaces + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) SetNamespaces(v []string)` + +SetNamespaces sets Namespaces field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec.md new file mode 100644 index 0000000..0e557e1 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeType** | Pointer to **string** | NodeType defines the request node specification type | [optional] +**StorageSize** | Pointer to **string** | StorageSize defines the size of the storage | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetNodeType() string` + +GetNodeType returns the NodeType field if non-nil, zero value otherwise. + +### GetNodeTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetNodeTypeOk() (*string, bool)` + +GetNodeTypeOk returns a tuple with the NodeType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) SetNodeType(v string)` + +SetNodeType sets NodeType field to given value. + +### HasNodeType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) HasNodeType() bool` + +HasNodeType returns a boolean if a field has been set. + +### GetStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetStorageSize() string` + +GetStorageSize returns the StorageSize field if non-nil, zero value otherwise. + +### GetStorageSizeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetStorageSizeOk() (*string, bool)` + +GetStorageSizeOk returns a tuple with the StorageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) SetStorageSize(v string)` + +SetStorageSize sets StorageSize field to given value. + +### HasStorageSize + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) HasStorageSize() bool` + +HasStorageSize returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md new file mode 100644 index 0000000..9f9e306 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md new file mode 100644 index 0000000..d7e1a48 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md new file mode 100644 index 0000000..e27d544 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md new file mode 100644 index 0000000..cf3fb7b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec.md new file mode 100644 index 0000000..ebcc7be --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec.md @@ -0,0 +1,51 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ZooKeeperSetRef** | [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec(zooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetZooKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) GetZooKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference` + +GetZooKeeperSetRef returns the ZooKeeperSetRef field if non-nil, zero value otherwise. + +### GetZooKeeperSetRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) GetZooKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference, bool)` + +GetZooKeeperSetRefOk returns a tuple with the ZooKeeperSetRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZooKeeperSetRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) SetZooKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference)` + +SetZooKeeperSetRef sets ZooKeeperSetRef field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus.md new file mode 100644 index 0000000..9e3ed0f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md) | Conditions is an array of current observed ZooKeeperSetOptionStatus conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md new file mode 100644 index 0000000..1f1ff2b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec.md new file mode 100644 index 0000000..3ff8486 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec.md @@ -0,0 +1,238 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailabilityMode** | Pointer to **string** | AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. | [optional] +**Image** | Pointer to **string** | Image name is the name of the image to deploy. | [optional] +**ImagePullPolicy** | Pointer to **string** | Image pull policy, one of Always, Never, IfNotPresent, default to Always. | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference.md) | | [optional] +**Replicas** | Pointer to **int32** | Replicas is the desired number of ZooKeeper servers. If unspecified, defaults to 1. | [optional] +**ResourceSpec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec.md) | | [optional] +**Resources** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource.md) | | [optional] +**Sharing** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetAvailabilityMode() string` + +GetAvailabilityMode returns the AvailabilityMode field if non-nil, zero value otherwise. + +### GetAvailabilityModeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetAvailabilityModeOk() (*string, bool)` + +GetAvailabilityModeOk returns a tuple with the AvailabilityMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetAvailabilityMode(v string)` + +SetAvailabilityMode sets AvailabilityMode field to given value. + +### HasAvailabilityMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasAvailabilityMode() bool` + +HasAvailabilityMode returns a boolean if a field has been set. + +### GetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetImagePullPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImagePullPolicy() string` + +GetImagePullPolicy returns the ImagePullPolicy field if non-nil, zero value otherwise. + +### GetImagePullPolicyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImagePullPolicyOk() (*string, bool)` + +GetImagePullPolicyOk returns a tuple with the ImagePullPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImagePullPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetImagePullPolicy(v string)` + +SetImagePullPolicy sets ImagePullPolicy field to given value. + +### HasImagePullPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasImagePullPolicy() bool` + +HasImagePullPolicy returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetReplicas() int32` + +GetReplicas returns the Replicas field if non-nil, zero value otherwise. + +### GetReplicasOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetReplicasOk() (*int32, bool)` + +GetReplicasOk returns a tuple with the Replicas field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetReplicas(v int32)` + +SetReplicas sets Replicas field to given value. + +### HasReplicas + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasReplicas() bool` + +HasReplicas returns a boolean if a field has been set. + +### GetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec` + +GetResourceSpec returns the ResourceSpec field if non-nil, zero value otherwise. + +### GetResourceSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec, bool)` + +GetResourceSpecOk returns a tuple with the ResourceSpec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec)` + +SetResourceSpec sets ResourceSpec field to given value. + +### HasResourceSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasResourceSpec() bool` + +HasResourceSpec returns a boolean if a field has been set. + +### GetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetSharing() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig` + +GetSharing returns the Sharing field if non-nil, zero value otherwise. + +### GetSharingOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetSharingOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig, bool)` + +GetSharingOk returns a tuple with the Sharing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetSharing(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig)` + +SetSharing sets Sharing field to given value. + +### HasSharing + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasSharing() bool` + +HasSharing returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus.md new file mode 100644 index 0000000..a655509 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterConnectionString** | Pointer to **string** | ClusterConnectionString is a connection string for client connectivity within the cluster. | [optional] +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition**](ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition.md) | Conditions is an array of current observed conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClusterConnectionString + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetClusterConnectionString() string` + +GetClusterConnectionString returns the ClusterConnectionString field if non-nil, zero value otherwise. + +### GetClusterConnectionStringOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetClusterConnectionStringOk() (*string, bool)` + +GetClusterConnectionStringOk returns a tuple with the ClusterConnectionString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterConnectionString + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) SetClusterConnectionString(v string)` + +SetClusterConnectionString sets ClusterConnectionString field to given value. + +### HasClusterConnectionString + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) HasClusterConnectionString() bool` + +HasClusterConnectionString returns a boolean if a field has been set. + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact.md new file mode 100644 index 0000000..0158993 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact.md @@ -0,0 +1,446 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalDependencies** | Pointer to **[]string** | | [optional] +**AdditionalPythonArchives** | Pointer to **[]string** | | [optional] +**AdditionalPythonLibraries** | Pointer to **[]string** | | [optional] +**ArtifactKind** | Pointer to **string** | | [optional] +**EntryClass** | Pointer to **string** | | [optional] +**EntryModule** | Pointer to **string** | | [optional] +**FlinkImageRegistry** | Pointer to **string** | | [optional] +**FlinkImageRepository** | Pointer to **string** | | [optional] +**FlinkImageTag** | Pointer to **string** | | [optional] +**FlinkVersion** | Pointer to **string** | | [optional] +**JarUri** | Pointer to **string** | | [optional] +**Kind** | Pointer to **string** | | [optional] +**MainArgs** | Pointer to **string** | | [optional] +**PythonArtifactUri** | Pointer to **string** | | [optional] +**SqlScript** | Pointer to **string** | | [optional] +**Uri** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ArtifactWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ArtifactWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ArtifactWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdditionalDependencies + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalDependencies() []string` + +GetAdditionalDependencies returns the AdditionalDependencies field if non-nil, zero value otherwise. + +### GetAdditionalDependenciesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalDependenciesOk() (*[]string, bool)` + +GetAdditionalDependenciesOk returns a tuple with the AdditionalDependencies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalDependencies + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetAdditionalDependencies(v []string)` + +SetAdditionalDependencies sets AdditionalDependencies field to given value. + +### HasAdditionalDependencies + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasAdditionalDependencies() bool` + +HasAdditionalDependencies returns a boolean if a field has been set. + +### GetAdditionalPythonArchives + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonArchives() []string` + +GetAdditionalPythonArchives returns the AdditionalPythonArchives field if non-nil, zero value otherwise. + +### GetAdditionalPythonArchivesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonArchivesOk() (*[]string, bool)` + +GetAdditionalPythonArchivesOk returns a tuple with the AdditionalPythonArchives field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalPythonArchives + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetAdditionalPythonArchives(v []string)` + +SetAdditionalPythonArchives sets AdditionalPythonArchives field to given value. + +### HasAdditionalPythonArchives + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasAdditionalPythonArchives() bool` + +HasAdditionalPythonArchives returns a boolean if a field has been set. + +### GetAdditionalPythonLibraries + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonLibraries() []string` + +GetAdditionalPythonLibraries returns the AdditionalPythonLibraries field if non-nil, zero value otherwise. + +### GetAdditionalPythonLibrariesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonLibrariesOk() (*[]string, bool)` + +GetAdditionalPythonLibrariesOk returns a tuple with the AdditionalPythonLibraries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalPythonLibraries + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetAdditionalPythonLibraries(v []string)` + +SetAdditionalPythonLibraries sets AdditionalPythonLibraries field to given value. + +### HasAdditionalPythonLibraries + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasAdditionalPythonLibraries() bool` + +HasAdditionalPythonLibraries returns a boolean if a field has been set. + +### GetArtifactKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetArtifactKind() string` + +GetArtifactKind returns the ArtifactKind field if non-nil, zero value otherwise. + +### GetArtifactKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetArtifactKindOk() (*string, bool)` + +GetArtifactKindOk returns a tuple with the ArtifactKind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetArtifactKind(v string)` + +SetArtifactKind sets ArtifactKind field to given value. + +### HasArtifactKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasArtifactKind() bool` + +HasArtifactKind returns a boolean if a field has been set. + +### GetEntryClass + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryClass() string` + +GetEntryClass returns the EntryClass field if non-nil, zero value otherwise. + +### GetEntryClassOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryClassOk() (*string, bool)` + +GetEntryClassOk returns a tuple with the EntryClass field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryClass + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetEntryClass(v string)` + +SetEntryClass sets EntryClass field to given value. + +### HasEntryClass + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasEntryClass() bool` + +HasEntryClass returns a boolean if a field has been set. + +### GetEntryModule + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryModule() string` + +GetEntryModule returns the EntryModule field if non-nil, zero value otherwise. + +### GetEntryModuleOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryModuleOk() (*string, bool)` + +GetEntryModuleOk returns a tuple with the EntryModule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntryModule + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetEntryModule(v string)` + +SetEntryModule sets EntryModule field to given value. + +### HasEntryModule + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasEntryModule() bool` + +HasEntryModule returns a boolean if a field has been set. + +### GetFlinkImageRegistry + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRegistry() string` + +GetFlinkImageRegistry returns the FlinkImageRegistry field if non-nil, zero value otherwise. + +### GetFlinkImageRegistryOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRegistryOk() (*string, bool)` + +GetFlinkImageRegistryOk returns a tuple with the FlinkImageRegistry field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlinkImageRegistry + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkImageRegistry(v string)` + +SetFlinkImageRegistry sets FlinkImageRegistry field to given value. + +### HasFlinkImageRegistry + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkImageRegistry() bool` + +HasFlinkImageRegistry returns a boolean if a field has been set. + +### GetFlinkImageRepository + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRepository() string` + +GetFlinkImageRepository returns the FlinkImageRepository field if non-nil, zero value otherwise. + +### GetFlinkImageRepositoryOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRepositoryOk() (*string, bool)` + +GetFlinkImageRepositoryOk returns a tuple with the FlinkImageRepository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlinkImageRepository + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkImageRepository(v string)` + +SetFlinkImageRepository sets FlinkImageRepository field to given value. + +### HasFlinkImageRepository + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkImageRepository() bool` + +HasFlinkImageRepository returns a boolean if a field has been set. + +### GetFlinkImageTag + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageTag() string` + +GetFlinkImageTag returns the FlinkImageTag field if non-nil, zero value otherwise. + +### GetFlinkImageTagOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageTagOk() (*string, bool)` + +GetFlinkImageTagOk returns a tuple with the FlinkImageTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlinkImageTag + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkImageTag(v string)` + +SetFlinkImageTag sets FlinkImageTag field to given value. + +### HasFlinkImageTag + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkImageTag() bool` + +HasFlinkImageTag returns a boolean if a field has been set. + +### GetFlinkVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkVersion() string` + +GetFlinkVersion returns the FlinkVersion field if non-nil, zero value otherwise. + +### GetFlinkVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkVersionOk() (*string, bool)` + +GetFlinkVersionOk returns a tuple with the FlinkVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlinkVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkVersion(v string)` + +SetFlinkVersion sets FlinkVersion field to given value. + +### HasFlinkVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkVersion() bool` + +HasFlinkVersion returns a boolean if a field has been set. + +### GetJarUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetJarUri() string` + +GetJarUri returns the JarUri field if non-nil, zero value otherwise. + +### GetJarUriOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetJarUriOk() (*string, bool)` + +GetJarUriOk returns a tuple with the JarUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJarUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetJarUri(v string)` + +SetJarUri sets JarUri field to given value. + +### HasJarUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasJarUri() bool` + +HasJarUri returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMainArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetMainArgs() string` + +GetMainArgs returns the MainArgs field if non-nil, zero value otherwise. + +### GetMainArgsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetMainArgsOk() (*string, bool)` + +GetMainArgsOk returns a tuple with the MainArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMainArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetMainArgs(v string)` + +SetMainArgs sets MainArgs field to given value. + +### HasMainArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasMainArgs() bool` + +HasMainArgs returns a boolean if a field has been set. + +### GetPythonArtifactUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetPythonArtifactUri() string` + +GetPythonArtifactUri returns the PythonArtifactUri field if non-nil, zero value otherwise. + +### GetPythonArtifactUriOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetPythonArtifactUriOk() (*string, bool)` + +GetPythonArtifactUriOk returns a tuple with the PythonArtifactUri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPythonArtifactUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetPythonArtifactUri(v string)` + +SetPythonArtifactUri sets PythonArtifactUri field to given value. + +### HasPythonArtifactUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasPythonArtifactUri() bool` + +HasPythonArtifactUri returns a boolean if a field has been set. + +### GetSqlScript + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetSqlScript() string` + +GetSqlScript returns the SqlScript field if non-nil, zero value otherwise. + +### GetSqlScriptOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetSqlScriptOk() (*string, bool)` + +GetSqlScriptOk returns a tuple with the SqlScript field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSqlScript + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetSqlScript(v string)` + +SetSqlScript sets SqlScript field to given value. + +### HasSqlScript + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasSqlScript() bool` + +HasSqlScript returns a boolean if a field has been set. + +### GetUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetUri() string` + +GetUri returns the Uri field if non-nil, zero value otherwise. + +### GetUriOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetUriOk() (*string, bool)` + +GetUriOk returns a tuple with the Uri field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetUri(v string)` + +SetUri sets Uri field to given value. + +### HasUri + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasUri() bool` + +HasUri returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md new file mode 100644 index 0000000..7602c16 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md @@ -0,0 +1,176 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTransitionTime** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**Message** | Pointer to **string** | | [optional] +**ObservedGeneration** | Pointer to **int64** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] +**Reason** | Pointer to **string** | | [optional] +**Status** | **string** | | +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition(status string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ConditionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetLastTransitionTime() time.Time` + +GetLastTransitionTime returns the LastTransitionTime field if non-nil, zero value otherwise. + +### GetLastTransitionTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetLastTransitionTimeOk() (*time.Time, bool)` + +GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetLastTransitionTime(v time.Time)` + +SetLastTransitionTime sets LastTransitionTime field to given value. + +### HasLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasLastTransitionTime() bool` + +HasLastTransitionTime returns a boolean if a field has been set. + +### GetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + +### HasObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasObservedGeneration() bool` + +HasObservedGeneration returns a boolean if a field has been set. + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md new file mode 100644 index 0000000..2d934ae --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md @@ -0,0 +1,389 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Args** | Pointer to **[]string** | Arguments to the entrypoint. | [optional] +**Command** | Pointer to **[]string** | Entrypoint array. Not executed within a shell. | [optional] +**Env** | Pointer to [**[]V1EnvVar**](V1EnvVar.md) | List of environment variables to set in the container. | [optional] +**EnvFrom** | Pointer to [**[]V1EnvFromSource**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. | [optional] +**Image** | Pointer to **string** | Docker image name. | [optional] +**ImagePullPolicy** | Pointer to **string** | Image pull policy. Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] +**LivenessProbe** | Pointer to [**V1Probe**](V1Probe.md) | | [optional] +**Name** | **string** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). | +**ReadinessProbe** | Pointer to [**V1Probe**](V1Probe.md) | | [optional] +**Resources** | Pointer to [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] +**SecurityContext** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md) | | [optional] +**StartupProbe** | Pointer to [**V1Probe**](V1Probe.md) | | [optional] +**VolumeMounts** | Pointer to [**[]V1VolumeMount**](V1VolumeMount.md) | Pod volumes to mount into the container's filesystem. | [optional] +**WorkingDir** | Pointer to **string** | Container's working directory. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ContainerWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ContainerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ContainerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetArgs() []string` + +GetArgs returns the Args field if non-nil, zero value otherwise. + +### GetArgsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetArgsOk() (*[]string, bool)` + +GetArgsOk returns a tuple with the Args field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetArgs(v []string)` + +SetArgs sets Args field to given value. + +### HasArgs + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasArgs() bool` + +HasArgs returns a boolean if a field has been set. + +### GetCommand + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetCommand() []string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetCommandOk() (*[]string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetCommand(v []string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + +### GetEnv + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnv() []V1EnvVar` + +GetEnv returns the Env field if non-nil, zero value otherwise. + +### GetEnvOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnvOk() (*[]V1EnvVar, bool)` + +GetEnvOk returns a tuple with the Env field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnv + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetEnv(v []V1EnvVar)` + +SetEnv sets Env field to given value. + +### HasEnv + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasEnv() bool` + +HasEnv returns a boolean if a field has been set. + +### GetEnvFrom + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnvFrom() []V1EnvFromSource` + +GetEnvFrom returns the EnvFrom field if non-nil, zero value otherwise. + +### GetEnvFromOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnvFromOk() (*[]V1EnvFromSource, bool)` + +GetEnvFromOk returns a tuple with the EnvFrom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvFrom + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetEnvFrom(v []V1EnvFromSource)` + +SetEnvFrom sets EnvFrom field to given value. + +### HasEnvFrom + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasEnvFrom() bool` + +HasEnvFrom returns a boolean if a field has been set. + +### GetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImage() string` + +GetImage returns the Image field if non-nil, zero value otherwise. + +### GetImageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImageOk() (*string, bool)` + +GetImageOk returns a tuple with the Image field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetImage(v string)` + +SetImage sets Image field to given value. + +### HasImage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasImage() bool` + +HasImage returns a boolean if a field has been set. + +### GetImagePullPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImagePullPolicy() string` + +GetImagePullPolicy returns the ImagePullPolicy field if non-nil, zero value otherwise. + +### GetImagePullPolicyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImagePullPolicyOk() (*string, bool)` + +GetImagePullPolicyOk returns a tuple with the ImagePullPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImagePullPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetImagePullPolicy(v string)` + +SetImagePullPolicy sets ImagePullPolicy field to given value. + +### HasImagePullPolicy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasImagePullPolicy() bool` + +HasImagePullPolicy returns a boolean if a field has been set. + +### GetLivenessProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetLivenessProbe() V1Probe` + +GetLivenessProbe returns the LivenessProbe field if non-nil, zero value otherwise. + +### GetLivenessProbeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetLivenessProbeOk() (*V1Probe, bool)` + +GetLivenessProbeOk returns a tuple with the LivenessProbe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLivenessProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetLivenessProbe(v V1Probe)` + +SetLivenessProbe sets LivenessProbe field to given value. + +### HasLivenessProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasLivenessProbe() bool` + +HasLivenessProbe returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetName(v string)` + +SetName sets Name field to given value. + + +### GetReadinessProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetReadinessProbe() V1Probe` + +GetReadinessProbe returns the ReadinessProbe field if non-nil, zero value otherwise. + +### GetReadinessProbeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetReadinessProbeOk() (*V1Probe, bool)` + +GetReadinessProbeOk returns a tuple with the ReadinessProbe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadinessProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetReadinessProbe(v V1Probe)` + +SetReadinessProbe sets ReadinessProbe field to given value. + +### HasReadinessProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasReadinessProbe() bool` + +HasReadinessProbe returns a boolean if a field has been set. + +### GetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetResources() V1ResourceRequirements` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetResourcesOk() (*V1ResourceRequirements, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetResources(v V1ResourceRequirements)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasResources() bool` + +HasResources returns a boolean if a field has been set. + +### GetSecurityContext + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetSecurityContext() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext` + +GetSecurityContext returns the SecurityContext field if non-nil, zero value otherwise. + +### GetSecurityContextOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetSecurityContextOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext, bool)` + +GetSecurityContextOk returns a tuple with the SecurityContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityContext + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetSecurityContext(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext)` + +SetSecurityContext sets SecurityContext field to given value. + +### HasSecurityContext + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasSecurityContext() bool` + +HasSecurityContext returns a boolean if a field has been set. + +### GetStartupProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetStartupProbe() V1Probe` + +GetStartupProbe returns the StartupProbe field if non-nil, zero value otherwise. + +### GetStartupProbeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetStartupProbeOk() (*V1Probe, bool)` + +GetStartupProbeOk returns a tuple with the StartupProbe field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartupProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetStartupProbe(v V1Probe)` + +SetStartupProbe sets StartupProbe field to given value. + +### HasStartupProbe + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasStartupProbe() bool` + +HasStartupProbe returns a boolean if a field has been set. + +### GetVolumeMounts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetVolumeMounts() []V1VolumeMount` + +GetVolumeMounts returns the VolumeMounts field if non-nil, zero value otherwise. + +### GetVolumeMountsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetVolumeMountsOk() (*[]V1VolumeMount, bool)` + +GetVolumeMountsOk returns a tuple with the VolumeMounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVolumeMounts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetVolumeMounts(v []V1VolumeMount)` + +SetVolumeMounts sets VolumeMounts field to given value. + +### HasVolumeMounts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasVolumeMounts() bool` + +HasVolumeMounts returns a boolean if a field has been set. + +### GetWorkingDir + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetWorkingDir() string` + +GetWorkingDir returns the WorkingDir field if non-nil, zero value otherwise. + +### GetWorkingDirOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetWorkingDirOk() (*string, bool)` + +GetWorkingDirOk returns a tuple with the WorkingDir field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkingDir + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetWorkingDir(v string)` + +SetWorkingDir sets WorkingDir field to given value. + +### HasWorkingDir + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasWorkingDir() bool` + +HasWorkingDir returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage.md new file mode 100644 index 0000000..a423f61 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bucket** | Pointer to **string** | Bucket is required if you want to use cloud storage. | [optional] +**Path** | Pointer to **string** | Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorageWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorageWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorageWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBucket + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetBucket() string` + +GetBucket returns the Bucket field if non-nil, zero value otherwise. + +### GetBucketOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetBucketOk() (*string, bool)` + +GetBucketOk returns a tuple with the Bucket field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBucket + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) SetBucket(v string)` + +SetBucket sets Bucket field to given value. + +### HasBucket + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) HasBucket() bool` + +HasBucket returns a boolean if a field has been set. + +### GetPath + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) HasPath() bool` + +HasPath returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md new file mode 100644 index 0000000..2e45b5d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md new file mode 100644 index 0000000..8e66af5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList(items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec.md new file mode 100644 index 0000000..20389d0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec.md @@ -0,0 +1,207 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]string** | | [optional] +**CommunityTemplate** | Pointer to **map[string]interface{}** | CommunityDeploymentTemplate defines the desired state of CommunityDeployment | [optional] +**DefaultPulsarCluster** | Pointer to **string** | DefaultPulsarCluster is the default pulsar cluster to use. If not provided, the controller will use the first pulsar cluster from the workspace. | [optional] +**Labels** | Pointer to **map[string]string** | | [optional] +**PoolMemberRef** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference.md) | | [optional] +**Template** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate.md) | | [optional] +**WorkspaceName** | **string** | WorkspaceName is the reference to the workspace, and is required | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec(workspaceName string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetCommunityTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetCommunityTemplate() map[string]interface{}` + +GetCommunityTemplate returns the CommunityTemplate field if non-nil, zero value otherwise. + +### GetCommunityTemplateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetCommunityTemplateOk() (*map[string]interface{}, bool)` + +GetCommunityTemplateOk returns a tuple with the CommunityTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommunityTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetCommunityTemplate(v map[string]interface{})` + +SetCommunityTemplate sets CommunityTemplate field to given value. + +### HasCommunityTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasCommunityTemplate() bool` + +HasCommunityTemplate returns a boolean if a field has been set. + +### GetDefaultPulsarCluster + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetDefaultPulsarCluster() string` + +GetDefaultPulsarCluster returns the DefaultPulsarCluster field if non-nil, zero value otherwise. + +### GetDefaultPulsarClusterOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetDefaultPulsarClusterOk() (*string, bool)` + +GetDefaultPulsarClusterOk returns a tuple with the DefaultPulsarCluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPulsarCluster + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetDefaultPulsarCluster(v string)` + +SetDefaultPulsarCluster sets DefaultPulsarCluster field to given value. + +### HasDefaultPulsarCluster + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasDefaultPulsarCluster() bool` + +HasDefaultPulsarCluster returns a boolean if a field has been set. + +### GetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetLabels() map[string]string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetLabelsOk() (*map[string]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetLabels(v map[string]string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference` + +GetPoolMemberRef returns the PoolMemberRef field if non-nil, zero value otherwise. + +### GetPoolMemberRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference, bool)` + +GetPoolMemberRefOk returns a tuple with the PoolMemberRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference)` + +SetPoolMemberRef sets PoolMemberRef field to given value. + +### HasPoolMemberRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasPoolMemberRef() bool` + +HasPoolMemberRef returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate)` + +SetTemplate sets Template field to given value. + +### HasTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasTemplate() bool` + +HasTemplate returns a boolean if a field has been set. + +### GetWorkspaceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetWorkspaceName() string` + +GetWorkspaceName returns the WorkspaceName field if non-nil, zero value otherwise. + +### GetWorkspaceNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetWorkspaceNameOk() (*string, bool)` + +GetWorkspaceNameOk returns a tuple with the WorkspaceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkspaceName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetWorkspaceName(v string)` + +SetWorkspaceName sets WorkspaceName field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus.md new file mode 100644 index 0000000..fb62e67 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md) | Conditions is an array of current observed conditions. | [optional] +**DeploymentStatus** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus.md) | | [optional] +**ObservedGeneration** | Pointer to **int64** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetDeploymentStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetDeploymentStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus` + +GetDeploymentStatus returns the DeploymentStatus field if non-nil, zero value otherwise. + +### GetDeploymentStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetDeploymentStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus, bool)` + +GetDeploymentStatusOk returns a tuple with the DeploymentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) SetDeploymentStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus)` + +SetDeploymentStatus sets DeploymentStatus field to given value. + +### HasDeploymentStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) HasDeploymentStatus() bool` + +HasDeploymentStatus returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + +### HasObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) HasObservedGeneration() bool` + +HasObservedGeneration returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging.md new file mode 100644 index 0000000..d93f9ea --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Log4j2ConfigurationTemplate** | Pointer to **string** | | [optional] +**Log4jLoggers** | Pointer to **map[string]string** | | [optional] +**LoggingProfile** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1LoggingWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1LoggingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1LoggingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLog4j2ConfigurationTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4j2ConfigurationTemplate() string` + +GetLog4j2ConfigurationTemplate returns the Log4j2ConfigurationTemplate field if non-nil, zero value otherwise. + +### GetLog4j2ConfigurationTemplateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4j2ConfigurationTemplateOk() (*string, bool)` + +GetLog4j2ConfigurationTemplateOk returns a tuple with the Log4j2ConfigurationTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLog4j2ConfigurationTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) SetLog4j2ConfigurationTemplate(v string)` + +SetLog4j2ConfigurationTemplate sets Log4j2ConfigurationTemplate field to given value. + +### HasLog4j2ConfigurationTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) HasLog4j2ConfigurationTemplate() bool` + +HasLog4j2ConfigurationTemplate returns a boolean if a field has been set. + +### GetLog4jLoggers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4jLoggers() map[string]string` + +GetLog4jLoggers returns the Log4jLoggers field if non-nil, zero value otherwise. + +### GetLog4jLoggersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4jLoggersOk() (*map[string]string, bool)` + +GetLog4jLoggersOk returns a tuple with the Log4jLoggers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLog4jLoggers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) SetLog4jLoggers(v map[string]string)` + +SetLog4jLoggers sets Log4jLoggers field to given value. + +### HasLog4jLoggers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) HasLog4jLoggers() bool` + +HasLog4jLoggers returns a boolean if a field has been set. + +### GetLoggingProfile + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLoggingProfile() string` + +GetLoggingProfile returns the LoggingProfile field if non-nil, zero value otherwise. + +### GetLoggingProfileOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLoggingProfileOk() (*string, bool)` + +GetLoggingProfileOk returns a tuple with the LoggingProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoggingProfile + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) SetLoggingProfile(v string)` + +SetLoggingProfile sets LoggingProfile field to given value. + +### HasLoggingProfile + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) HasLoggingProfile() bool` + +HasLoggingProfile returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta.md new file mode 100644 index 0000000..8b2a381 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta.md @@ -0,0 +1,134 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]string** | Annotations of the resource. | [optional] +**Labels** | Pointer to **map[string]string** | Labels of the resource. | [optional] +**Name** | Pointer to **string** | Name of the resource within a namespace. It must be unique. | [optional] +**Namespace** | Pointer to **string** | Namespace of the resource. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMetaWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMetaWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMetaWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetLabels() map[string]string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetLabelsOk() (*map[string]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetLabels(v map[string]string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md new file mode 100644 index 0000000..6d4ea4f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) SetMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec.md new file mode 100644 index 0000000..ff4455d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec.md @@ -0,0 +1,290 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Affinity** | Pointer to [**V1Affinity**](V1Affinity.md) | | [optional] +**Containers** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md) | | [optional] +**ImagePullSecrets** | Pointer to [**[]V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] +**InitContainers** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container.md) | | [optional] +**NodeSelector** | Pointer to **map[string]string** | | [optional] +**SecurityContext** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md) | | [optional] +**ServiceAccountName** | Pointer to **string** | | [optional] +**ShareProcessNamespace** | Pointer to **bool** | | [optional] +**Tolerations** | Pointer to [**[]V1Toleration**](V1Toleration.md) | | [optional] +**Volumes** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAffinity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetAffinity() V1Affinity` + +GetAffinity returns the Affinity field if non-nil, zero value otherwise. + +### GetAffinityOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetAffinityOk() (*V1Affinity, bool)` + +GetAffinityOk returns a tuple with the Affinity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAffinity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetAffinity(v V1Affinity)` + +SetAffinity sets Affinity field to given value. + +### HasAffinity + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasAffinity() bool` + +HasAffinity returns a boolean if a field has been set. + +### GetContainers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetContainers() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container` + +GetContainers returns the Containers field if non-nil, zero value otherwise. + +### GetContainersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetContainersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container, bool)` + +GetContainersOk returns a tuple with the Containers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetContainers(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container)` + +SetContainers sets Containers field to given value. + +### HasContainers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasContainers() bool` + +HasContainers returns a boolean if a field has been set. + +### GetImagePullSecrets + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetImagePullSecrets() []V1LocalObjectReference` + +GetImagePullSecrets returns the ImagePullSecrets field if non-nil, zero value otherwise. + +### GetImagePullSecretsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetImagePullSecretsOk() (*[]V1LocalObjectReference, bool)` + +GetImagePullSecretsOk returns a tuple with the ImagePullSecrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImagePullSecrets + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetImagePullSecrets(v []V1LocalObjectReference)` + +SetImagePullSecrets sets ImagePullSecrets field to given value. + +### HasImagePullSecrets + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasImagePullSecrets() bool` + +HasImagePullSecrets returns a boolean if a field has been set. + +### GetInitContainers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetInitContainers() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container` + +GetInitContainers returns the InitContainers field if non-nil, zero value otherwise. + +### GetInitContainersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetInitContainersOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container, bool)` + +GetInitContainersOk returns a tuple with the InitContainers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitContainers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetInitContainers(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container)` + +SetInitContainers sets InitContainers field to given value. + +### HasInitContainers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasInitContainers() bool` + +HasInitContainers returns a boolean if a field has been set. + +### GetNodeSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetNodeSelector() map[string]string` + +GetNodeSelector returns the NodeSelector field if non-nil, zero value otherwise. + +### GetNodeSelectorOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetNodeSelectorOk() (*map[string]string, bool)` + +GetNodeSelectorOk returns a tuple with the NodeSelector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetNodeSelector(v map[string]string)` + +SetNodeSelector sets NodeSelector field to given value. + +### HasNodeSelector + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasNodeSelector() bool` + +HasNodeSelector returns a boolean if a field has been set. + +### GetSecurityContext + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetSecurityContext() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext` + +GetSecurityContext returns the SecurityContext field if non-nil, zero value otherwise. + +### GetSecurityContextOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetSecurityContextOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext, bool)` + +GetSecurityContextOk returns a tuple with the SecurityContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityContext + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetSecurityContext(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext)` + +SetSecurityContext sets SecurityContext field to given value. + +### HasSecurityContext + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasSecurityContext() bool` + +HasSecurityContext returns a boolean if a field has been set. + +### GetServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetServiceAccountName() string` + +GetServiceAccountName returns the ServiceAccountName field if non-nil, zero value otherwise. + +### GetServiceAccountNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetServiceAccountNameOk() (*string, bool)` + +GetServiceAccountNameOk returns a tuple with the ServiceAccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetServiceAccountName(v string)` + +SetServiceAccountName sets ServiceAccountName field to given value. + +### HasServiceAccountName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasServiceAccountName() bool` + +HasServiceAccountName returns a boolean if a field has been set. + +### GetShareProcessNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetShareProcessNamespace() bool` + +GetShareProcessNamespace returns the ShareProcessNamespace field if non-nil, zero value otherwise. + +### GetShareProcessNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetShareProcessNamespaceOk() (*bool, bool)` + +GetShareProcessNamespaceOk returns a tuple with the ShareProcessNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShareProcessNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetShareProcessNamespace(v bool)` + +SetShareProcessNamespace sets ShareProcessNamespace field to given value. + +### HasShareProcessNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasShareProcessNamespace() bool` + +HasShareProcessNamespace returns a boolean if a field has been set. + +### GetTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetTolerations() []V1Toleration` + +GetTolerations returns the Tolerations field if non-nil, zero value otherwise. + +### GetTolerationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetTolerationsOk() (*[]V1Toleration, bool)` + +GetTolerationsOk returns a tuple with the Tolerations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetTolerations(v []V1Toleration)` + +SetTolerations sets Tolerations field to given value. + +### HasTolerations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasTolerations() bool` + +HasTolerations returns a boolean if a field has been set. + +### GetVolumes + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetVolumes() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume` + +GetVolumes returns the Volumes field if non-nil, zero value otherwise. + +### GetVolumesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetVolumesOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume, bool)` + +GetVolumesOk returns a tuple with the Volumes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVolumes + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetVolumes(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume)` + +SetVolumes sets Volumes field to given value. + +### HasVolumes + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasVolumes() bool` + +HasVolumes returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference.md new file mode 100644 index 0000000..a4410db --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference(name string, namespace string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReferenceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef.md new file mode 100644 index 0000000..f3579d9 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Namespace** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef(name string, namespace string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRefWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md new file mode 100644 index 0000000..8f02f73 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cpu** | **string** | CPU represents the minimum amount of CPU required. | +**Memory** | **string** | Memory represents the minimum amount of memory required. | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec(cpu string, memory string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetCpu() string` + +GetCpu returns the Cpu field if non-nil, zero value otherwise. + +### GetCpuOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetCpuOk() (*string, bool)` + +GetCpuOk returns a tuple with the Cpu field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCpu + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) SetCpu(v string)` + +SetCpu sets Cpu field to given value. + + +### GetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetMemory() string` + +GetMemory returns the Memory field if non-nil, zero value otherwise. + +### GetMemoryOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetMemoryOk() (*string, bool)` + +GetMemoryOk returns a tuple with the Memory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemory + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) SetMemory(v string)` + +SetMemory sets Memory field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md new file mode 100644 index 0000000..95449bd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FsGroup** | Pointer to **int64** | | [optional] +**ReadOnlyRootFilesystem** | Pointer to **bool** | ReadOnlyRootFilesystem specifies whether the container use a read-only filesystem. | [optional] +**RunAsGroup** | Pointer to **int64** | | [optional] +**RunAsNonRoot** | Pointer to **bool** | | [optional] +**RunAsUser** | Pointer to **int64** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContextWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContextWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContextWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFsGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetFsGroup() int64` + +GetFsGroup returns the FsGroup field if non-nil, zero value otherwise. + +### GetFsGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetFsGroupOk() (*int64, bool)` + +GetFsGroupOk returns a tuple with the FsGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFsGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetFsGroup(v int64)` + +SetFsGroup sets FsGroup field to given value. + +### HasFsGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasFsGroup() bool` + +HasFsGroup returns a boolean if a field has been set. + +### GetReadOnlyRootFilesystem + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetReadOnlyRootFilesystem() bool` + +GetReadOnlyRootFilesystem returns the ReadOnlyRootFilesystem field if non-nil, zero value otherwise. + +### GetReadOnlyRootFilesystemOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetReadOnlyRootFilesystemOk() (*bool, bool)` + +GetReadOnlyRootFilesystemOk returns a tuple with the ReadOnlyRootFilesystem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadOnlyRootFilesystem + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetReadOnlyRootFilesystem(v bool)` + +SetReadOnlyRootFilesystem sets ReadOnlyRootFilesystem field to given value. + +### HasReadOnlyRootFilesystem + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasReadOnlyRootFilesystem() bool` + +HasReadOnlyRootFilesystem returns a boolean if a field has been set. + +### GetRunAsGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsGroup() int64` + +GetRunAsGroup returns the RunAsGroup field if non-nil, zero value otherwise. + +### GetRunAsGroupOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsGroupOk() (*int64, bool)` + +GetRunAsGroupOk returns a tuple with the RunAsGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunAsGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetRunAsGroup(v int64)` + +SetRunAsGroup sets RunAsGroup field to given value. + +### HasRunAsGroup + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasRunAsGroup() bool` + +HasRunAsGroup returns a boolean if a field has been set. + +### GetRunAsNonRoot + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsNonRoot() bool` + +GetRunAsNonRoot returns the RunAsNonRoot field if non-nil, zero value otherwise. + +### GetRunAsNonRootOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsNonRootOk() (*bool, bool)` + +GetRunAsNonRootOk returns a tuple with the RunAsNonRoot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunAsNonRoot + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetRunAsNonRoot(v bool)` + +SetRunAsNonRoot sets RunAsNonRoot field to given value. + +### HasRunAsNonRoot + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasRunAsNonRoot() bool` + +HasRunAsNonRoot returns a boolean if a field has been set. + +### GetRunAsUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsUser() int64` + +GetRunAsUser returns the RunAsUser field if non-nil, zero value otherwise. + +### GetRunAsUserOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsUserOk() (*int64, bool)` + +GetRunAsUserOk returns a tuple with the RunAsUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunAsUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetRunAsUser(v int64)` + +SetRunAsUser sets RunAsUser field to given value. + +### HasRunAsUser + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasRunAsUser() bool` + +HasRunAsUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata.md new file mode 100644 index 0000000..9344bd2 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Labels** | Pointer to **map[string]string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Namespace** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadataWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadataWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadataWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetLabels() map[string]string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetLabelsOk() (*map[string]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetLabels(v map[string]string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume.md new file mode 100644 index 0000000..3204c62 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume.md @@ -0,0 +1,103 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigMap** | Pointer to [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | | [optional] +**Name** | **string** | Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | +**Secret** | Pointer to [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume(name string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VolumeWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VolumeWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VolumeWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfigMap + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetConfigMap() V1ConfigMapVolumeSource` + +GetConfigMap returns the ConfigMap field if non-nil, zero value otherwise. + +### GetConfigMapOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetConfigMapOk() (*V1ConfigMapVolumeSource, bool)` + +GetConfigMapOk returns a tuple with the ConfigMap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigMap + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) SetConfigMap(v V1ConfigMapVolumeSource)` + +SetConfigMap sets ConfigMap field to given value. + +### HasConfigMap + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) HasConfigMap() bool` + +HasConfigMap returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetSecret() V1SecretVolumeSource` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetSecretOk() (*V1SecretVolumeSource, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) SetSecret(v V1SecretVolumeSource)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus.md new file mode 100644 index 0000000..cf4eedc --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomResourceState** | Pointer to **string** | | [optional] +**DeploymentId** | Pointer to **string** | | [optional] +**DeploymentNamespace** | Pointer to **string** | | [optional] +**ObservedSpecState** | Pointer to **string** | | [optional] +**StatusState** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomResourceState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetCustomResourceState() string` + +GetCustomResourceState returns the CustomResourceState field if non-nil, zero value otherwise. + +### GetCustomResourceStateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetCustomResourceStateOk() (*string, bool)` + +GetCustomResourceStateOk returns a tuple with the CustomResourceState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomResourceState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetCustomResourceState(v string)` + +SetCustomResourceState sets CustomResourceState field to given value. + +### HasCustomResourceState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasCustomResourceState() bool` + +HasCustomResourceState returns a boolean if a field has been set. + +### GetDeploymentId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentId() string` + +GetDeploymentId returns the DeploymentId field if non-nil, zero value otherwise. + +### GetDeploymentIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentIdOk() (*string, bool)` + +GetDeploymentIdOk returns a tuple with the DeploymentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetDeploymentId(v string)` + +SetDeploymentId sets DeploymentId field to given value. + +### HasDeploymentId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasDeploymentId() bool` + +HasDeploymentId returns a boolean if a field has been set. + +### GetDeploymentNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentNamespace() string` + +GetDeploymentNamespace returns the DeploymentNamespace field if non-nil, zero value otherwise. + +### GetDeploymentNamespaceOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentNamespaceOk() (*string, bool)` + +GetDeploymentNamespaceOk returns a tuple with the DeploymentNamespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetDeploymentNamespace(v string)` + +SetDeploymentNamespace sets DeploymentNamespace field to given value. + +### HasDeploymentNamespace + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasDeploymentNamespace() bool` + +HasDeploymentNamespace returns a boolean if a field has been set. + +### GetObservedSpecState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetObservedSpecState() string` + +GetObservedSpecState returns the ObservedSpecState field if non-nil, zero value otherwise. + +### GetObservedSpecStateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetObservedSpecStateOk() (*string, bool)` + +GetObservedSpecStateOk returns a tuple with the ObservedSpecState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedSpecState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetObservedSpecState(v string)` + +SetObservedSpecState sets ObservedSpecState field to given value. + +### HasObservedSpecState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasObservedSpecState() bool` + +HasObservedSpecState returns a boolean if a field has been set. + +### GetStatusState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetStatusState() string` + +GetStatusState returns the StatusState field if non-nil, zero value otherwise. + +### GetStatusStateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetStatusStateOk() (*string, bool)` + +GetStatusStateOk returns a tuple with the StatusState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetStatusState(v string)` + +SetStatusState sets StatusState field to given value. + +### HasStatusState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasStatusState() bool` + +HasStatusState returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails.md new file mode 100644 index 0000000..42e4152 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails.md @@ -0,0 +1,233 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeploymentTargetName** | Pointer to **string** | | [optional] +**JobFailureExpirationTime** | Pointer to **string** | | [optional] +**MaxJobCreationAttempts** | Pointer to **int32** | | [optional] +**MaxSavepointCreationAttempts** | Pointer to **int32** | | [optional] +**RestoreStrategy** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy.md) | | [optional] +**SessionClusterName** | Pointer to **string** | | [optional] +**State** | Pointer to **string** | | [optional] +**Template** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails(template ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeploymentTargetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetDeploymentTargetName() string` + +GetDeploymentTargetName returns the DeploymentTargetName field if non-nil, zero value otherwise. + +### GetDeploymentTargetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetDeploymentTargetNameOk() (*string, bool)` + +GetDeploymentTargetNameOk returns a tuple with the DeploymentTargetName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentTargetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetDeploymentTargetName(v string)` + +SetDeploymentTargetName sets DeploymentTargetName field to given value. + +### HasDeploymentTargetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasDeploymentTargetName() bool` + +HasDeploymentTargetName returns a boolean if a field has been set. + +### GetJobFailureExpirationTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetJobFailureExpirationTime() string` + +GetJobFailureExpirationTime returns the JobFailureExpirationTime field if non-nil, zero value otherwise. + +### GetJobFailureExpirationTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetJobFailureExpirationTimeOk() (*string, bool)` + +GetJobFailureExpirationTimeOk returns a tuple with the JobFailureExpirationTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobFailureExpirationTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetJobFailureExpirationTime(v string)` + +SetJobFailureExpirationTime sets JobFailureExpirationTime field to given value. + +### HasJobFailureExpirationTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasJobFailureExpirationTime() bool` + +HasJobFailureExpirationTime returns a boolean if a field has been set. + +### GetMaxJobCreationAttempts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxJobCreationAttempts() int32` + +GetMaxJobCreationAttempts returns the MaxJobCreationAttempts field if non-nil, zero value otherwise. + +### GetMaxJobCreationAttemptsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxJobCreationAttemptsOk() (*int32, bool)` + +GetMaxJobCreationAttemptsOk returns a tuple with the MaxJobCreationAttempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxJobCreationAttempts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetMaxJobCreationAttempts(v int32)` + +SetMaxJobCreationAttempts sets MaxJobCreationAttempts field to given value. + +### HasMaxJobCreationAttempts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasMaxJobCreationAttempts() bool` + +HasMaxJobCreationAttempts returns a boolean if a field has been set. + +### GetMaxSavepointCreationAttempts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxSavepointCreationAttempts() int32` + +GetMaxSavepointCreationAttempts returns the MaxSavepointCreationAttempts field if non-nil, zero value otherwise. + +### GetMaxSavepointCreationAttemptsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxSavepointCreationAttemptsOk() (*int32, bool)` + +GetMaxSavepointCreationAttemptsOk returns a tuple with the MaxSavepointCreationAttempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxSavepointCreationAttempts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetMaxSavepointCreationAttempts(v int32)` + +SetMaxSavepointCreationAttempts sets MaxSavepointCreationAttempts field to given value. + +### HasMaxSavepointCreationAttempts + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasMaxSavepointCreationAttempts() bool` + +HasMaxSavepointCreationAttempts returns a boolean if a field has been set. + +### GetRestoreStrategy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetRestoreStrategy() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy` + +GetRestoreStrategy returns the RestoreStrategy field if non-nil, zero value otherwise. + +### GetRestoreStrategyOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetRestoreStrategyOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy, bool)` + +GetRestoreStrategyOk returns a tuple with the RestoreStrategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestoreStrategy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetRestoreStrategy(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy)` + +SetRestoreStrategy sets RestoreStrategy field to given value. + +### HasRestoreStrategy + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasRestoreStrategy() bool` + +HasRestoreStrategy returns a boolean if a field has been set. + +### GetSessionClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetSessionClusterName() string` + +GetSessionClusterName returns the SessionClusterName field if non-nil, zero value otherwise. + +### GetSessionClusterNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetSessionClusterNameOk() (*string, bool)` + +GetSessionClusterNameOk returns a tuple with the SessionClusterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetSessionClusterName(v string)` + +SetSessionClusterName sets SessionClusterName field to given value. + +### HasSessionClusterName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasSessionClusterName() bool` + +HasSessionClusterName returns a boolean if a field has been set. + +### GetState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate)` + +SetTemplate sets Template field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate.md new file mode 100644 index 0000000..807732f --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Metadata** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata.md) | | [optional] +**Spec** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate(spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) SetMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec)` + +SetSpec sets Spec field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata.md new file mode 100644 index 0000000..f3adf9e --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadataWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadataWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadataWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec.md new file mode 100644 index 0000000..9913556 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec.md @@ -0,0 +1,233 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifact** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact.md) | | +**FlinkConfiguration** | Pointer to **map[string]string** | | [optional] +**Kubernetes** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec.md) | | [optional] +**LatestCheckpointFetchInterval** | Pointer to **int32** | | [optional] +**Logging** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging.md) | | [optional] +**NumberOfTaskManagers** | Pointer to **int32** | | [optional] +**Parallelism** | Pointer to **int32** | | [optional] +**Resources** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec(artifact ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifact + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetArtifact() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact` + +GetArtifact returns the Artifact field if non-nil, zero value otherwise. + +### GetArtifactOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetArtifactOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact, bool)` + +GetArtifactOk returns a tuple with the Artifact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifact + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetArtifact(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact)` + +SetArtifact sets Artifact field to given value. + + +### GetFlinkConfiguration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetFlinkConfiguration() map[string]string` + +GetFlinkConfiguration returns the FlinkConfiguration field if non-nil, zero value otherwise. + +### GetFlinkConfigurationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetFlinkConfigurationOk() (*map[string]string, bool)` + +GetFlinkConfigurationOk returns a tuple with the FlinkConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlinkConfiguration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetFlinkConfiguration(v map[string]string)` + +SetFlinkConfiguration sets FlinkConfiguration field to given value. + +### HasFlinkConfiguration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasFlinkConfiguration() bool` + +HasFlinkConfiguration returns a boolean if a field has been set. + +### GetKubernetes + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetKubernetes() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec` + +GetKubernetes returns the Kubernetes field if non-nil, zero value otherwise. + +### GetKubernetesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetKubernetesOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec, bool)` + +GetKubernetesOk returns a tuple with the Kubernetes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKubernetes + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetKubernetes(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec)` + +SetKubernetes sets Kubernetes field to given value. + +### HasKubernetes + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasKubernetes() bool` + +HasKubernetes returns a boolean if a field has been set. + +### GetLatestCheckpointFetchInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLatestCheckpointFetchInterval() int32` + +GetLatestCheckpointFetchInterval returns the LatestCheckpointFetchInterval field if non-nil, zero value otherwise. + +### GetLatestCheckpointFetchIntervalOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLatestCheckpointFetchIntervalOk() (*int32, bool)` + +GetLatestCheckpointFetchIntervalOk returns a tuple with the LatestCheckpointFetchInterval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatestCheckpointFetchInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetLatestCheckpointFetchInterval(v int32)` + +SetLatestCheckpointFetchInterval sets LatestCheckpointFetchInterval field to given value. + +### HasLatestCheckpointFetchInterval + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasLatestCheckpointFetchInterval() bool` + +HasLatestCheckpointFetchInterval returns a boolean if a field has been set. + +### GetLogging + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLogging() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging` + +GetLogging returns the Logging field if non-nil, zero value otherwise. + +### GetLoggingOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLoggingOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging, bool)` + +GetLoggingOk returns a tuple with the Logging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogging + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetLogging(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging)` + +SetLogging sets Logging field to given value. + +### HasLogging + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasLogging() bool` + +HasLogging returns a boolean if a field has been set. + +### GetNumberOfTaskManagers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetNumberOfTaskManagers() int32` + +GetNumberOfTaskManagers returns the NumberOfTaskManagers field if non-nil, zero value otherwise. + +### GetNumberOfTaskManagersOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetNumberOfTaskManagersOk() (*int32, bool)` + +GetNumberOfTaskManagersOk returns a tuple with the NumberOfTaskManagers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumberOfTaskManagers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetNumberOfTaskManagers(v int32)` + +SetNumberOfTaskManagers sets NumberOfTaskManagers field to given value. + +### HasNumberOfTaskManagers + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasNumberOfTaskManagers() bool` + +HasNumberOfTaskManagers returns a boolean if a field has been set. + +### GetParallelism + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetParallelism() int32` + +GetParallelism returns the Parallelism field if non-nil, zero value otherwise. + +### GetParallelismOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetParallelismOk() (*int32, bool)` + +GetParallelismOk returns a tuple with the Parallelism field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParallelism + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetParallelism(v int32)` + +SetParallelism sets Parallelism field to given value. + +### HasParallelism + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasParallelism() bool` + +HasParallelism returns a boolean if a field has been set. + +### GetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetResources() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources)` + +SetResources sets Resources field to given value. + +### HasResources + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasResources() bool` + +HasResources returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec.md new file mode 100644 index 0000000..553964c --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JobManagerPodTemplate** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md) | | [optional] +**Labels** | Pointer to **map[string]string** | | [optional] +**TaskManagerPodTemplate** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobManagerPodTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetJobManagerPodTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate` + +GetJobManagerPodTemplate returns the JobManagerPodTemplate field if non-nil, zero value otherwise. + +### GetJobManagerPodTemplateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetJobManagerPodTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate, bool)` + +GetJobManagerPodTemplateOk returns a tuple with the JobManagerPodTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobManagerPodTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) SetJobManagerPodTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate)` + +SetJobManagerPodTemplate sets JobManagerPodTemplate field to given value. + +### HasJobManagerPodTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) HasJobManagerPodTemplate() bool` + +HasJobManagerPodTemplate returns a boolean if a field has been set. + +### GetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetLabels() map[string]string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetLabelsOk() (*map[string]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) SetLabels(v map[string]string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetTaskManagerPodTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetTaskManagerPodTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate` + +GetTaskManagerPodTemplate returns the TaskManagerPodTemplate field if non-nil, zero value otherwise. + +### GetTaskManagerPodTemplateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetTaskManagerPodTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate, bool)` + +GetTaskManagerPodTemplateOk returns a tuple with the TaskManagerPodTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskManagerPodTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) SetTaskManagerPodTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate)` + +SetTaskManagerPodTemplate sets TaskManagerPodTemplate field to given value. + +### HasTaskManagerPodTemplate + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) HasTaskManagerPodTemplate() bool` + +HasTaskManagerPodTemplate returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources.md new file mode 100644 index 0000000..5db7159 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jobmanager** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md) | | [optional] +**Taskmanager** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResourcesWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResourcesWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResourcesWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetJobmanager + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetJobmanager() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec` + +GetJobmanager returns the Jobmanager field if non-nil, zero value otherwise. + +### GetJobmanagerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetJobmanagerOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec, bool)` + +GetJobmanagerOk returns a tuple with the Jobmanager field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobmanager + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) SetJobmanager(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec)` + +SetJobmanager sets Jobmanager field to given value. + +### HasJobmanager + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) HasJobmanager() bool` + +HasJobmanager returns a boolean if a field has been set. + +### GetTaskmanager + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetTaskmanager() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec` + +GetTaskmanager returns the Taskmanager field if non-nil, zero value otherwise. + +### GetTaskmanagerOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetTaskmanagerOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec, bool)` + +GetTaskmanagerOk returns a tuple with the Taskmanager field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaskmanager + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) SetTaskmanager(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec)` + +SetTaskmanager sets Taskmanager field to given value. + +### HasTaskmanager + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) HasTaskmanager() bool` + +HasTaskmanager returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus.md new file mode 100644 index 0000000..c1823de --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition.md) | Conditions is an array of current observed conditions. | [optional] +**JobId** | Pointer to **string** | | [optional] +**TransitionTime** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + +### GetJobId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetJobId() string` + +GetJobId returns the JobId field if non-nil, zero value otherwise. + +### GetJobIdOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetJobIdOk() (*string, bool)` + +GetJobIdOk returns a tuple with the JobId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJobId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) SetJobId(v string)` + +SetJobId sets JobId field to given value. + +### HasJobId + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) HasJobId() bool` + +HasJobId returns a boolean if a field has been set. + +### GetTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetTransitionTime() time.Time` + +GetTransitionTime returns the TransitionTime field if non-nil, zero value otherwise. + +### GetTransitionTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetTransitionTimeOk() (*time.Time, bool)` + +GetTransitionTimeOk returns a tuple with the TransitionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) SetTransitionTime(v time.Time)` + +SetTransitionTime sets TransitionTime field to given value. + +### HasTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) HasTransitionTime() bool` + +HasTransitionTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus.md new file mode 100644 index 0000000..af23b4d --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus.md @@ -0,0 +1,108 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomResourceStatus** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus.md) | | [optional] +**DeploymentStatus** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus.md) | | [optional] +**DeploymentSystemMetadata** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomResourceStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetCustomResourceStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus` + +GetCustomResourceStatus returns the CustomResourceStatus field if non-nil, zero value otherwise. + +### GetCustomResourceStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetCustomResourceStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus, bool)` + +GetCustomResourceStatusOk returns a tuple with the CustomResourceStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomResourceStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) SetCustomResourceStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus)` + +SetCustomResourceStatus sets CustomResourceStatus field to given value. + +### HasCustomResourceStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) HasCustomResourceStatus() bool` + +HasCustomResourceStatus returns a boolean if a field has been set. + +### GetDeploymentStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus` + +GetDeploymentStatus returns the DeploymentStatus field if non-nil, zero value otherwise. + +### GetDeploymentStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus, bool)` + +GetDeploymentStatusOk returns a tuple with the DeploymentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) SetDeploymentStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus)` + +SetDeploymentStatus sets DeploymentStatus field to given value. + +### HasDeploymentStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) HasDeploymentStatus() bool` + +HasDeploymentStatus returns a boolean if a field has been set. + +### GetDeploymentSystemMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentSystemMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata` + +GetDeploymentSystemMetadata returns the DeploymentSystemMetadata field if non-nil, zero value otherwise. + +### GetDeploymentSystemMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentSystemMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata, bool)` + +GetDeploymentSystemMetadataOk returns a tuple with the DeploymentSystemMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeploymentSystemMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) SetDeploymentSystemMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata)` + +SetDeploymentSystemMetadata sets DeploymentSystemMetadata field to given value. + +### HasDeploymentSystemMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) HasDeploymentSystemMetadata() bool` + +HasDeploymentSystemMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition.md new file mode 100644 index 0000000..802a4ae --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition.md @@ -0,0 +1,176 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTransitionTime** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**Message** | Pointer to **string** | | [optional] +**ObservedGeneration** | Pointer to **int64** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] +**Reason** | Pointer to **string** | | [optional] +**Status** | **string** | | +**Type** | **string** | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition(status string, type_ string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusConditionWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetLastTransitionTime() time.Time` + +GetLastTransitionTime returns the LastTransitionTime field if non-nil, zero value otherwise. + +### GetLastTransitionTimeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetLastTransitionTimeOk() (*time.Time, bool)` + +GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetLastTransitionTime(v time.Time)` + +SetLastTransitionTime sets LastTransitionTime field to given value. + +### HasLastTransitionTime + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasLastTransitionTime() bool` + +HasLastTransitionTime returns a boolean if a field has been set. + +### GetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + +### HasObservedGeneration + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasObservedGeneration() bool` + +HasObservedGeneration returns a boolean if a field has been set. + +### GetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus.md new file mode 100644 index 0000000..3f50fd0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Running** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus.md) | | [optional] +**State** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRunning + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetRunning() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus` + +GetRunning returns the Running field if non-nil, zero value otherwise. + +### GetRunningOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetRunningOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus, bool)` + +GetRunningOk returns a tuple with the Running field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRunning + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) SetRunning(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus)` + +SetRunning sets Running field to given value. + +### HasRunning + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) HasRunning() bool` + +HasRunning returns a boolean if a field has been set. + +### GetState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) HasState() bool` + +HasState returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata.md new file mode 100644 index 0000000..6fd796a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata.md @@ -0,0 +1,186 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]string** | | [optional] +**CreatedAt** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**Labels** | Pointer to **map[string]string** | | [optional] +**ModifiedAt** | Pointer to **time.Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] +**Name** | Pointer to **string** | | [optional] +**ResourceVersion** | Pointer to **int32** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadataWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadataWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadataWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetLabels() map[string]string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetLabelsOk() (*map[string]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetLabels(v map[string]string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetModifiedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetModifiedAt() time.Time` + +GetModifiedAt returns the ModifiedAt field if non-nil, zero value otherwise. + +### GetModifiedAtOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetModifiedAtOk() (*time.Time, bool)` + +GetModifiedAtOk returns a tuple with the ModifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetModifiedAt(v time.Time)` + +SetModifiedAt sets ModifiedAt field to given value. + +### HasModifiedAt + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasModifiedAt() bool` + +HasModifiedAt returns a boolean if a field has been set. + +### GetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetResourceVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetResourceVersion() int32` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetResourceVersionOk() (*int32, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetResourceVersion(v int32)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasResourceVersion() bool` + +HasResourceVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate.md new file mode 100644 index 0000000..3997d67 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate.md @@ -0,0 +1,77 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deployment** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec.md) | | +**SyncingMode** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate(deployment ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeployment + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetDeployment() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec` + +GetDeployment returns the Deployment field if non-nil, zero value otherwise. + +### GetDeploymentOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetDeploymentOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec, bool)` + +GetDeploymentOk returns a tuple with the Deployment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeployment + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) SetDeployment(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec)` + +SetDeployment sets Deployment field to given value. + + +### GetSyncingMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetSyncingMode() string` + +GetSyncingMode returns the SyncingMode field if non-nil, zero value otherwise. + +### GetSyncingModeOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetSyncingModeOk() (*string, bool)` + +GetSyncingModeOk returns a tuple with the SyncingMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncingMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) SetSyncingMode(v string)` + +SetSyncingMode sets SyncingMode field to given value. + +### HasSyncingMode + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) HasSyncingMode() bool` + +HasSyncingMode returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec.md new file mode 100644 index 0000000..56cb2bd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec.md @@ -0,0 +1,72 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Spec** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails.md) | | +**UserMetadata** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata.md) | | + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec(spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails, userMetadata ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails)` + +SetSpec sets Spec field to given value. + + +### GetUserMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetUserMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata` + +GetUserMetadata returns the UserMetadata field if non-nil, zero value otherwise. + +### GetUserMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetUserMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata, bool)` + +GetUserMetadataOk returns a tuple with the UserMetadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) SetUserMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata)` + +SetUserMetadata sets UserMetadata field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy.md new file mode 100644 index 0000000..ffb4091 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy.md @@ -0,0 +1,82 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowNonRestoredState** | Pointer to **bool** | | [optional] +**Kind** | Pointer to **string** | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategyWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllowNonRestoredState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetAllowNonRestoredState() bool` + +GetAllowNonRestoredState returns the AllowNonRestoredState field if non-nil, zero value otherwise. + +### GetAllowNonRestoredStateOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetAllowNonRestoredStateOk() (*bool, bool)` + +GetAllowNonRestoredStateOk returns a tuple with the AllowNonRestoredState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowNonRestoredState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) SetAllowNonRestoredState(v bool)` + +SetAllowNonRestoredState sets AllowNonRestoredState field to given value. + +### HasAllowNonRestoredState + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) HasAllowNonRestoredState() bool` + +HasAllowNonRestoredState returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) HasKind() bool` + +HasKind returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md new file mode 100644 index 0000000..3291cdd --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md @@ -0,0 +1,160 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**Spec** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec.md) | | [optional] +**Status** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetMetadata() V1ObjectMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetMetadataOk() (*V1ObjectMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetMetadata(v V1ObjectMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec` + +GetSpec returns the Spec field if non-nil, zero value otherwise. + +### GetSpecOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec, bool)` + +GetSpecOk returns a tuple with the Spec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec)` + +SetSpec sets Spec field to given value. + +### HasSpec + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasSpec() bool` + +HasSpec returns a boolean if a field has been set. + +### GetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md new file mode 100644 index 0000000..27e4de3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md @@ -0,0 +1,129 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Items** | [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) | | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList(items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceListWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetItemsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace)` + +SetItems sets Items field to given value. + + +### GetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec.md new file mode 100644 index 0000000..6fbab4b --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec.md @@ -0,0 +1,124 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlinkBlobStorage** | Pointer to [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage.md) | | [optional] +**PoolRef** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef.md) | | +**PulsarClusterNames** | **[]string** | PulsarClusterNames is the list of Pulsar clusters that the workspace will have access to. | +**UseExternalAccess** | Pointer to **bool** | UseExternalAccess is the flag to indicate whether the workspace will use external access. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec(poolRef ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef, pulsarClusterNames []string, ) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpecWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFlinkBlobStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetFlinkBlobStorage() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage` + +GetFlinkBlobStorage returns the FlinkBlobStorage field if non-nil, zero value otherwise. + +### GetFlinkBlobStorageOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetFlinkBlobStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage, bool)` + +GetFlinkBlobStorageOk returns a tuple with the FlinkBlobStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlinkBlobStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetFlinkBlobStorage(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage)` + +SetFlinkBlobStorage sets FlinkBlobStorage field to given value. + +### HasFlinkBlobStorage + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) HasFlinkBlobStorage() bool` + +HasFlinkBlobStorage returns a boolean if a field has been set. + +### GetPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPoolRef() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef` + +GetPoolRef returns the PoolRef field if non-nil, zero value otherwise. + +### GetPoolRefOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef, bool)` + +GetPoolRefOk returns a tuple with the PoolRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPoolRef + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef)` + +SetPoolRef sets PoolRef field to given value. + + +### GetPulsarClusterNames + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPulsarClusterNames() []string` + +GetPulsarClusterNames returns the PulsarClusterNames field if non-nil, zero value otherwise. + +### GetPulsarClusterNamesOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPulsarClusterNamesOk() (*[]string, bool)` + +GetPulsarClusterNamesOk returns a tuple with the PulsarClusterNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPulsarClusterNames + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetPulsarClusterNames(v []string)` + +SetPulsarClusterNames sets PulsarClusterNames field to given value. + + +### GetUseExternalAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetUseExternalAccess() bool` + +GetUseExternalAccess returns the UseExternalAccess field if non-nil, zero value otherwise. + +### GetUseExternalAccessOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetUseExternalAccessOk() (*bool, bool)` + +GetUseExternalAccessOk returns a tuple with the UseExternalAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseExternalAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetUseExternalAccess(v bool)` + +SetUseExternalAccess sets UseExternalAccess field to given value. + +### HasUseExternalAccess + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) HasUseExternalAccess() bool` + +HasUseExternalAccess returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus.md b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus.md new file mode 100644 index 0000000..d44efc4 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus.md @@ -0,0 +1,56 @@ +# ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conditions** | Pointer to [**[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition.md) | Conditions is an array of current observed pool conditions. | [optional] + +## Methods + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatusWithDefaults + +`func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus` + +NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition` + +GetConditions returns the Conditions field if non-nil, zero value otherwise. + +### GetConditionsOk + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) GetConditionsOk() (*[]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition, bool)` + +GetConditionsOk returns a tuple with the Conditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition)` + +SetConditions sets Conditions field to given value. + +### HasConditions + +`func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) HasConditions() bool` + +HasConditions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/ComputeStreamnativeIoApi.md b/sdk/sdk-apiserver/docs/ComputeStreamnativeIoApi.md new file mode 100644 index 0000000..56bf2c7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComputeStreamnativeIoApi.md @@ -0,0 +1,70 @@ +# \ComputeStreamnativeIoApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetComputeStreamnativeIoAPIGroup**](ComputeStreamnativeIoApi.md#GetComputeStreamnativeIoAPIGroup) | **Get** /apis/compute.streamnative.io/ | + + + +## GetComputeStreamnativeIoAPIGroup + +> V1APIGroup GetComputeStreamnativeIoAPIGroup(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoApi.GetComputeStreamnativeIoAPIGroup(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoApi.GetComputeStreamnativeIoAPIGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetComputeStreamnativeIoAPIGroup`: V1APIGroup + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoApi.GetComputeStreamnativeIoAPIGroup`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetComputeStreamnativeIoAPIGroupRequest struct via the builder pattern + + +### Return type + +[**V1APIGroup**](V1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/ComputeStreamnativeIoV1alpha1Api.md b/sdk/sdk-apiserver/docs/ComputeStreamnativeIoV1alpha1Api.md new file mode 100644 index 0000000..23d1d8a --- /dev/null +++ b/sdk/sdk-apiserver/docs/ComputeStreamnativeIoV1alpha1Api.md @@ -0,0 +1,2978 @@ +# \ComputeStreamnativeIoV1alpha1Api + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments | +[**CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](ComputeStreamnativeIoV1alpha1Api.md#CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +[**CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces | +[**CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](ComputeStreamnativeIoV1alpha1Api.md#CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus) | **Post** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +[**DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments | +[**DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces | +[**DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +[**DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](ComputeStreamnativeIoV1alpha1Api.md#DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +[**DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +[**DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](ComputeStreamnativeIoV1alpha1Api.md#DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus) | **Delete** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +[**GetComputeStreamnativeIoV1alpha1APIResources**](ComputeStreamnativeIoV1alpha1Api.md#GetComputeStreamnativeIoV1alpha1APIResources) | **Get** /apis/compute.streamnative.io/v1alpha1/ | +[**ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces**](ComputeStreamnativeIoV1alpha1Api.md#ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/flinkdeployments | +[**ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments | +[**ListComputeStreamnativeIoV1alpha1NamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#ListComputeStreamnativeIoV1alpha1NamespacedWorkspace) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces | +[**ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces**](ComputeStreamnativeIoV1alpha1Api.md#ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/workspaces | +[**PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +[**PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](ComputeStreamnativeIoV1alpha1Api.md#PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +[**PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +[**PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](ComputeStreamnativeIoV1alpha1Api.md#PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus) | **Patch** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +[**ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +[**ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](ComputeStreamnativeIoV1alpha1Api.md#ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +[**ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +[**ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](ComputeStreamnativeIoV1alpha1Api.md#ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus) | **Get** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +[**ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name} | +[**ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](ComputeStreamnativeIoV1alpha1Api.md#ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status | +[**ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name} | +[**ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](ComputeStreamnativeIoV1alpha1Api.md#ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus) | **Put** /apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status | +[**WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/flinkdeployments | +[**WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name} | +[**WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments | +[**WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}/status | +[**WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name} | +[**WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces | +[**WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}/status | +[**WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces**](ComputeStreamnativeIoV1alpha1Api.md#WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces) | **Get** /apis/compute.streamnative.io/v1alpha1/watch/workspaces | + + + +## CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace(context.Background(), namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment + +> V1Status DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment`: V1Status + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace + +> V1Status DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace(ctx, namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace(context.Background(), namespace).Pretty(pretty).Continue_(continue_).DryRun(dryRun).FieldSelector(fieldSelector).GracePeriodSeconds(gracePeriodSeconds).LabelSelector(labelSelector).Limit(limit).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace`: V1Status + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +> V1Status DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: V1Status + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +> V1Status DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace + +> V1Status DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace`: V1Status + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +> V1Status DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx, name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(context.Background(), name, namespace).Pretty(pretty).DryRun(dryRun).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: V1Status + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetComputeStreamnativeIoV1alpha1APIResources + +> V1APIResourceList GetComputeStreamnativeIoV1alpha1APIResources(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.GetComputeStreamnativeIoV1alpha1APIResources(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.GetComputeStreamnativeIoV1alpha1APIResources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetComputeStreamnativeIoV1alpha1APIResources`: V1APIResourceList + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.GetComputeStreamnativeIoV1alpha1APIResources`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetComputeStreamnativeIoV1alpha1APIResourcesRequest struct via the builder pattern + + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListComputeStreamnativeIoV1alpha1NamespacedWorkspace + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList ListComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx, namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1NamespacedWorkspace(context.Background(), namespace).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1NamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListComputeStreamnativeIoV1alpha1NamespacedWorkspace`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1NamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := map[string]interface{}{ ... } // map[string]interface{} | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **map[string]interface{}** | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx, name, namespace).Pretty(pretty).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(context.Background(), name, namespace).Pretty(pretty).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +> ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx, name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + body := *openapiclient.NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace() // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace | + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(context.Background(), name, namespace).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | [**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) | | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + +### Return type + +[**ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace**](ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the FlinkDeployment + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the FlinkDeployment | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList(ctx, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList(context.Background(), namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx, name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + name := "name_example" // string | name of the Workspace + namespace := "namespace_example" // string | object name and auth scope, such as for teams and projects + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(context.Background(), name, namespace).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**name** | **string** | name of the Workspace | +**namespace** | **string** | object name and auth scope, such as for teams and projects | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces + +> V1WatchEvent WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces(ctx).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + resourceVersion := "resourceVersion_example" // string | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces(context.Background()).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).Pretty(pretty).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces`: V1WatchEvent + fmt.Fprintf(os.Stdout, "Response from `ComputeStreamnativeIoV1alpha1Api.WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **resourceVersion** | **string** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | + +### Return type + +[**V1WatchEvent**](V1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/CustomObjectsApi.md b/sdk/sdk-apiserver/docs/CustomObjectsApi.md new file mode 100644 index 0000000..0a4386f --- /dev/null +++ b/sdk/sdk-apiserver/docs/CustomObjectsApi.md @@ -0,0 +1,2498 @@ +# \CustomObjectsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateClusterCustomObject**](CustomObjectsApi.md#CreateClusterCustomObject) | **Post** /apis/{group}/{version}/{plural} | +[**CreateNamespacedCustomObject**](CustomObjectsApi.md#CreateNamespacedCustomObject) | **Post** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +[**DeleteClusterCustomObject**](CustomObjectsApi.md#DeleteClusterCustomObject) | **Delete** /apis/{group}/{version}/{plural}/{name} | +[**DeleteCollectionClusterCustomObject**](CustomObjectsApi.md#DeleteCollectionClusterCustomObject) | **Delete** /apis/{group}/{version}/{plural} | +[**DeleteCollectionNamespacedCustomObject**](CustomObjectsApi.md#DeleteCollectionNamespacedCustomObject) | **Delete** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +[**DeleteNamespacedCustomObject**](CustomObjectsApi.md#DeleteNamespacedCustomObject) | **Delete** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**GetClusterCustomObject**](CustomObjectsApi.md#GetClusterCustomObject) | **Get** /apis/{group}/{version}/{plural}/{name} | +[**GetClusterCustomObjectScale**](CustomObjectsApi.md#GetClusterCustomObjectScale) | **Get** /apis/{group}/{version}/{plural}/{name}/scale | +[**GetClusterCustomObjectStatus**](CustomObjectsApi.md#GetClusterCustomObjectStatus) | **Get** /apis/{group}/{version}/{plural}/{name}/status | +[**GetCustomObjectsAPIResources**](CustomObjectsApi.md#GetCustomObjectsAPIResources) | **Get** /apis/{group}/{version} | +[**GetNamespacedCustomObject**](CustomObjectsApi.md#GetNamespacedCustomObject) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**GetNamespacedCustomObjectScale**](CustomObjectsApi.md#GetNamespacedCustomObjectScale) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | +[**GetNamespacedCustomObjectStatus**](CustomObjectsApi.md#GetNamespacedCustomObjectStatus) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | +[**ListClusterCustomObject**](CustomObjectsApi.md#ListClusterCustomObject) | **Get** /apis/{group}/{version}/{plural} | +[**ListCustomObjectForAllNamespaces**](CustomObjectsApi.md#ListCustomObjectForAllNamespaces) | **Get** /apis/{group}/{version}/{plural}#‎ | +[**ListNamespacedCustomObject**](CustomObjectsApi.md#ListNamespacedCustomObject) | **Get** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +[**PatchClusterCustomObject**](CustomObjectsApi.md#PatchClusterCustomObject) | **Patch** /apis/{group}/{version}/{plural}/{name} | +[**PatchClusterCustomObjectScale**](CustomObjectsApi.md#PatchClusterCustomObjectScale) | **Patch** /apis/{group}/{version}/{plural}/{name}/scale | +[**PatchClusterCustomObjectStatus**](CustomObjectsApi.md#PatchClusterCustomObjectStatus) | **Patch** /apis/{group}/{version}/{plural}/{name}/status | +[**PatchNamespacedCustomObject**](CustomObjectsApi.md#PatchNamespacedCustomObject) | **Patch** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**PatchNamespacedCustomObjectScale**](CustomObjectsApi.md#PatchNamespacedCustomObjectScale) | **Patch** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | +[**PatchNamespacedCustomObjectStatus**](CustomObjectsApi.md#PatchNamespacedCustomObjectStatus) | **Patch** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | +[**ReplaceClusterCustomObject**](CustomObjectsApi.md#ReplaceClusterCustomObject) | **Put** /apis/{group}/{version}/{plural}/{name} | +[**ReplaceClusterCustomObjectScale**](CustomObjectsApi.md#ReplaceClusterCustomObjectScale) | **Put** /apis/{group}/{version}/{plural}/{name}/scale | +[**ReplaceClusterCustomObjectStatus**](CustomObjectsApi.md#ReplaceClusterCustomObjectStatus) | **Put** /apis/{group}/{version}/{plural}/{name}/status | +[**ReplaceNamespacedCustomObject**](CustomObjectsApi.md#ReplaceNamespacedCustomObject) | **Put** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**ReplaceNamespacedCustomObjectScale**](CustomObjectsApi.md#ReplaceNamespacedCustomObjectScale) | **Put** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | +[**ReplaceNamespacedCustomObjectStatus**](CustomObjectsApi.md#ReplaceNamespacedCustomObjectStatus) | **Put** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | + + + +## CreateClusterCustomObject + +> map[string]interface{} CreateClusterCustomObject(ctx, group, version, plural).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + plural := "plural_example" // string | The custom resource's plural name. For TPRs this would be lowercase plural kind. + body := map[string]interface{}{ ... } // map[string]interface{} | The JSON schema of the Resource to create. + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.CreateClusterCustomObject(context.Background(), group, version, plural).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.CreateClusterCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateClusterCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.CreateClusterCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | +**plural** | **string** | The custom resource's plural name. For TPRs this would be lowercase plural kind. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateClusterCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **body** | **map[string]interface{}** | The JSON schema of the Resource to create. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateNamespacedCustomObject + +> map[string]interface{} CreateNamespacedCustomObject(ctx, group, version, namespace, plural).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | The custom resource's plural name. For TPRs this would be lowercase plural kind. + body := map[string]interface{}{ ... } // map[string]interface{} | The JSON schema of the Resource to create. + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.CreateNamespacedCustomObject(context.Background(), group, version, namespace, plural).Body(body).Pretty(pretty).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.CreateNamespacedCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNamespacedCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.CreateNamespacedCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | The custom resource's plural name. For TPRs this would be lowercase plural kind. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateNamespacedCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | The JSON schema of the Resource to create. | + **pretty** | **string** | If 'true', then the output is pretty printed. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteClusterCustomObject + +> map[string]interface{} DeleteClusterCustomObject(ctx, group, version, plural, name).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom object's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.DeleteClusterCustomObject(context.Background(), group, version, plural, name).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.DeleteClusterCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteClusterCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.DeleteClusterCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom object's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteClusterCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCollectionClusterCustomObject + +> map[string]interface{} DeleteCollectionClusterCustomObject(ctx, group, version, plural).Pretty(pretty).LabelSelector(labelSelector).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + plural := "plural_example" // string | The custom resource's plural name. For TPRs this would be lowercase plural kind. + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.DeleteCollectionClusterCustomObject(context.Background(), group, version, plural).Pretty(pretty).LabelSelector(labelSelector).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.DeleteCollectionClusterCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCollectionClusterCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.DeleteCollectionClusterCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | +**plural** | **string** | The custom resource's plural name. For TPRs this would be lowercase plural kind. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCollectionClusterCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteCollectionNamespacedCustomObject + +> map[string]interface{} DeleteCollectionNamespacedCustomObject(ctx, group, version, namespace, plural).Pretty(pretty).LabelSelector(labelSelector).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).FieldSelector(fieldSelector).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | The custom resource's plural name. For TPRs this would be lowercase plural kind. + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.DeleteCollectionNamespacedCustomObject(context.Background(), group, version, namespace, plural).Pretty(pretty).LabelSelector(labelSelector).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).FieldSelector(fieldSelector).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.DeleteCollectionNamespacedCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCollectionNamespacedCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.DeleteCollectionNamespacedCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | The custom resource's plural name. For TPRs this would be lowercase plural kind. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteCollectionNamespacedCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteNamespacedCustomObject + +> map[string]interface{} DeleteNamespacedCustomObject(ctx, group, version, namespace, plural, name).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).Body(body).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + gracePeriodSeconds := int32(56) // int32 | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + orphanDependents := true // bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + propagationPolicy := "propagationPolicy_example" // string | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + body := *openapiclient.NewV1DeleteOptions() // V1DeleteOptions | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.DeleteNamespacedCustomObject(context.Background(), group, version, namespace, plural, name).GracePeriodSeconds(gracePeriodSeconds).OrphanDependents(orphanDependents).PropagationPolicy(propagationPolicy).DryRun(dryRun).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.DeleteNamespacedCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteNamespacedCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.DeleteNamespacedCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteNamespacedCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + **gracePeriodSeconds** | **int32** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | + **orphanDependents** | **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | + **propagationPolicy** | **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **body** | [**V1DeleteOptions**](V1DeleteOptions.md) | | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetClusterCustomObject + +> map[string]interface{} GetClusterCustomObject(ctx, group, version, plural, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom object's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.GetClusterCustomObject(context.Background(), group, version, plural, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.GetClusterCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetClusterCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.GetClusterCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom object's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetClusterCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetClusterCustomObjectScale + +> map[string]interface{} GetClusterCustomObjectScale(ctx, group, version, plural, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.GetClusterCustomObjectScale(context.Background(), group, version, plural, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.GetClusterCustomObjectScale``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetClusterCustomObjectScale`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.GetClusterCustomObjectScale`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetClusterCustomObjectScaleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetClusterCustomObjectStatus + +> map[string]interface{} GetClusterCustomObjectStatus(ctx, group, version, plural, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.GetClusterCustomObjectStatus(context.Background(), group, version, plural, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.GetClusterCustomObjectStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetClusterCustomObjectStatus`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.GetClusterCustomObjectStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetClusterCustomObjectStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetCustomObjectsAPIResources + +> V1APIResourceList GetCustomObjectsAPIResources(ctx, group, version).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.GetCustomObjectsAPIResources(context.Background(), group, version).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.GetCustomObjectsAPIResources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomObjectsAPIResources`: V1APIResourceList + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.GetCustomObjectsAPIResources`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCustomObjectsAPIResourcesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetNamespacedCustomObject + +> map[string]interface{} GetNamespacedCustomObject(ctx, group, version, namespace, plural, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.GetNamespacedCustomObject(context.Background(), group, version, namespace, plural, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.GetNamespacedCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNamespacedCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.GetNamespacedCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetNamespacedCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetNamespacedCustomObjectScale + +> map[string]interface{} GetNamespacedCustomObjectScale(ctx, group, version, namespace, plural, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.GetNamespacedCustomObjectScale(context.Background(), group, version, namespace, plural, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.GetNamespacedCustomObjectScale``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNamespacedCustomObjectScale`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.GetNamespacedCustomObjectScale`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetNamespacedCustomObjectScaleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetNamespacedCustomObjectStatus + +> map[string]interface{} GetNamespacedCustomObjectStatus(ctx, group, version, namespace, plural, name).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.GetNamespacedCustomObjectStatus(context.Background(), group, version, namespace, plural, name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.GetNamespacedCustomObjectStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNamespacedCustomObjectStatus`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.GetNamespacedCustomObjectStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetNamespacedCustomObjectStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListClusterCustomObject + +> map[string]interface{} ListClusterCustomObject(ctx, group, version, plural).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + plural := "plural_example" // string | The custom resource's plural name. For TPRs this would be lowercase plural kind. + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ListClusterCustomObject(context.Background(), group, version, plural).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ListClusterCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListClusterCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ListClusterCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | +**plural** | **string** | The custom resource's plural name. For TPRs this would be lowercase plural kind. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListClusterCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListCustomObjectForAllNamespaces + +> map[string]interface{} ListCustomObjectForAllNamespaces(ctx, group, version, plural).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + plural := "plural_example" // string | The custom resource's plural name. For TPRs this would be lowercase plural kind. + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ListCustomObjectForAllNamespaces(context.Background(), group, version, plural).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ListCustomObjectForAllNamespaces``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCustomObjectForAllNamespaces`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ListCustomObjectForAllNamespaces`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | +**plural** | **string** | The custom resource's plural name. For TPRs this would be lowercase plural kind. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListCustomObjectForAllNamespacesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListNamespacedCustomObject + +> map[string]interface{} ListNamespacedCustomObject(ctx, group, version, namespace, plural).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | The custom resource's group name + version := "version_example" // string | The custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | The custom resource's plural name. For TPRs this would be lowercase plural kind. + pretty := "pretty_example" // string | If 'true', then the output is pretty printed. (optional) + allowWatchBookmarks := true // bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. (optional) + continue_ := "continue__example" // string | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + fieldSelector := "fieldSelector_example" // string | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + labelSelector := "labelSelector_example" // string | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + limit := int32(56) // int32 | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + resourceVersion := "resourceVersion_example" // string | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + resourceVersionMatch := "resourceVersionMatch_example" // string | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) + timeoutSeconds := int32(56) // int32 | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + watch := true // bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ListNamespacedCustomObject(context.Background(), group, version, namespace, plural).Pretty(pretty).AllowWatchBookmarks(allowWatchBookmarks).Continue_(continue_).FieldSelector(fieldSelector).LabelSelector(labelSelector).Limit(limit).ResourceVersion(resourceVersion).ResourceVersionMatch(resourceVersionMatch).TimeoutSeconds(timeoutSeconds).Watch(watch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ListNamespacedCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNamespacedCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ListNamespacedCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | The custom resource's group name | +**version** | **string** | The custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | The custom resource's plural name. For TPRs this would be lowercase plural kind. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListNamespacedCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **pretty** | **string** | If 'true', then the output is pretty printed. | + **allowWatchBookmarks** | **bool** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. | + **continue_** | **string** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | + **fieldSelector** | **string** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | + **labelSelector** | **string** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | + **limit** | **int32** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | + **resourceVersion** | **string** | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | + **resourceVersionMatch** | **string** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | + **timeoutSeconds** | **int32** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | + **watch** | **bool** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchClusterCustomObject + +> map[string]interface{} PatchClusterCustomObject(ctx, group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom object's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | The JSON schema of the Resource to patch. + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.PatchClusterCustomObject(context.Background(), group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.PatchClusterCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchClusterCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.PatchClusterCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom object's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchClusterCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | The JSON schema of the Resource to patch. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchClusterCustomObjectScale + +> map[string]interface{} PatchClusterCustomObjectScale(ctx, group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.PatchClusterCustomObjectScale(context.Background(), group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.PatchClusterCustomObjectScale``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchClusterCustomObjectScale`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.PatchClusterCustomObjectScale`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchClusterCustomObjectScaleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchClusterCustomObjectStatus + +> map[string]interface{} PatchClusterCustomObjectStatus(ctx, group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.PatchClusterCustomObjectStatus(context.Background(), group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.PatchClusterCustomObjectStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchClusterCustomObjectStatus`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.PatchClusterCustomObjectStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchClusterCustomObjectStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchNamespacedCustomObject + +> map[string]interface{} PatchNamespacedCustomObject(ctx, group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | The JSON schema of the Resource to patch. + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.PatchNamespacedCustomObject(context.Background(), group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.PatchNamespacedCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNamespacedCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.PatchNamespacedCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchNamespacedCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + **body** | **map[string]interface{}** | The JSON schema of the Resource to patch. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchNamespacedCustomObjectScale + +> map[string]interface{} PatchNamespacedCustomObjectScale(ctx, group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.PatchNamespacedCustomObjectScale(context.Background(), group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.PatchNamespacedCustomObjectScale``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNamespacedCustomObjectScale`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.PatchNamespacedCustomObjectScale`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchNamespacedCustomObjectScaleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PatchNamespacedCustomObjectStatus + +> map[string]interface{} PatchNamespacedCustomObjectStatus(ctx, group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + force := true // bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.PatchNamespacedCustomObjectStatus(context.Background(), group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Force(force).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.PatchNamespacedCustomObjectStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNamespacedCustomObjectStatus`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.PatchNamespacedCustomObjectStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPatchNamespacedCustomObjectStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + **force** | **bool** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json-patch+json, application/merge-patch+json, application/apply-patch+yaml +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceClusterCustomObject + +> map[string]interface{} ReplaceClusterCustomObject(ctx, group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom object's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | The JSON schema of the Resource to replace. + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ReplaceClusterCustomObject(context.Background(), group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ReplaceClusterCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceClusterCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ReplaceClusterCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom object's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceClusterCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | The JSON schema of the Resource to replace. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceClusterCustomObjectScale + +> map[string]interface{} ReplaceClusterCustomObjectScale(ctx, group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ReplaceClusterCustomObjectScale(context.Background(), group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ReplaceClusterCustomObjectScale``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceClusterCustomObjectScale`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ReplaceClusterCustomObjectScale`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceClusterCustomObjectScaleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceClusterCustomObjectStatus + +> map[string]interface{} ReplaceClusterCustomObjectStatus(ctx, group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ReplaceClusterCustomObjectStatus(context.Background(), group, version, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ReplaceClusterCustomObjectStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceClusterCustomObjectStatus`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ReplaceClusterCustomObjectStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceClusterCustomObjectStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceNamespacedCustomObject + +> map[string]interface{} ReplaceNamespacedCustomObject(ctx, group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | The JSON schema of the Resource to replace. + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ReplaceNamespacedCustomObject(context.Background(), group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ReplaceNamespacedCustomObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceNamespacedCustomObject`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ReplaceNamespacedCustomObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceNamespacedCustomObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + **body** | **map[string]interface{}** | The JSON schema of the Resource to replace. | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceNamespacedCustomObjectScale + +> map[string]interface{} ReplaceNamespacedCustomObjectScale(ctx, group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ReplaceNamespacedCustomObjectScale(context.Background(), group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ReplaceNamespacedCustomObjectScale``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceNamespacedCustomObjectScale`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ReplaceNamespacedCustomObjectScale`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceNamespacedCustomObjectScaleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ReplaceNamespacedCustomObjectStatus + +> map[string]interface{} ReplaceNamespacedCustomObjectStatus(ctx, group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + group := "group_example" // string | the custom resource's group + version := "version_example" // string | the custom resource's version + namespace := "namespace_example" // string | The custom resource's namespace + plural := "plural_example" // string | the custom resource's plural name. For TPRs this would be lowercase plural kind. + name := "name_example" // string | the custom object's name + body := map[string]interface{}{ ... } // map[string]interface{} | + dryRun := "dryRun_example" // string | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + fieldManager := "fieldManager_example" // string | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + fieldValidation := "fieldValidation_example" // string | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomObjectsApi.ReplaceNamespacedCustomObjectStatus(context.Background(), group, version, namespace, plural, name).Body(body).DryRun(dryRun).FieldManager(fieldManager).FieldValidation(fieldValidation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomObjectsApi.ReplaceNamespacedCustomObjectStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReplaceNamespacedCustomObjectStatus`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomObjectsApi.ReplaceNamespacedCustomObjectStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**group** | **string** | the custom resource's group | +**version** | **string** | the custom resource's version | +**namespace** | **string** | The custom resource's namespace | +**plural** | **string** | the custom resource's plural name. For TPRs this would be lowercase plural kind. | +**name** | **string** | the custom object's name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReplaceNamespacedCustomObjectStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + + + **body** | **map[string]interface{}** | | + **dryRun** | **string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | + **fieldManager** | **string** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | + **fieldValidation** | **string** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) | + +### Return type + +**map[string]interface{}** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/V1APIGroup.md b/sdk/sdk-apiserver/docs/V1APIGroup.md new file mode 100644 index 0000000..f20c6d3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1APIGroup.md @@ -0,0 +1,176 @@ +# V1APIGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Name** | **string** | name is the name of the group. | +**PreferredVersion** | Pointer to [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | | [optional] +**ServerAddressByClientCIDRs** | Pointer to [**[]V1ServerAddressByClientCIDR**](V1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | [optional] +**Versions** | [**[]V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | + +## Methods + +### NewV1APIGroup + +`func NewV1APIGroup(name string, versions []V1GroupVersionForDiscovery, ) *V1APIGroup` + +NewV1APIGroup instantiates a new V1APIGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1APIGroupWithDefaults + +`func NewV1APIGroupWithDefaults() *V1APIGroup` + +NewV1APIGroupWithDefaults instantiates a new V1APIGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1APIGroup) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1APIGroup) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1APIGroup) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *V1APIGroup) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetKind + +`func (o *V1APIGroup) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1APIGroup) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1APIGroup) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *V1APIGroup) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetName + +`func (o *V1APIGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1APIGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1APIGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPreferredVersion + +`func (o *V1APIGroup) GetPreferredVersion() V1GroupVersionForDiscovery` + +GetPreferredVersion returns the PreferredVersion field if non-nil, zero value otherwise. + +### GetPreferredVersionOk + +`func (o *V1APIGroup) GetPreferredVersionOk() (*V1GroupVersionForDiscovery, bool)` + +GetPreferredVersionOk returns a tuple with the PreferredVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredVersion + +`func (o *V1APIGroup) SetPreferredVersion(v V1GroupVersionForDiscovery)` + +SetPreferredVersion sets PreferredVersion field to given value. + +### HasPreferredVersion + +`func (o *V1APIGroup) HasPreferredVersion() bool` + +HasPreferredVersion returns a boolean if a field has been set. + +### GetServerAddressByClientCIDRs + +`func (o *V1APIGroup) GetServerAddressByClientCIDRs() []V1ServerAddressByClientCIDR` + +GetServerAddressByClientCIDRs returns the ServerAddressByClientCIDRs field if non-nil, zero value otherwise. + +### GetServerAddressByClientCIDRsOk + +`func (o *V1APIGroup) GetServerAddressByClientCIDRsOk() (*[]V1ServerAddressByClientCIDR, bool)` + +GetServerAddressByClientCIDRsOk returns a tuple with the ServerAddressByClientCIDRs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerAddressByClientCIDRs + +`func (o *V1APIGroup) SetServerAddressByClientCIDRs(v []V1ServerAddressByClientCIDR)` + +SetServerAddressByClientCIDRs sets ServerAddressByClientCIDRs field to given value. + +### HasServerAddressByClientCIDRs + +`func (o *V1APIGroup) HasServerAddressByClientCIDRs() bool` + +HasServerAddressByClientCIDRs returns a boolean if a field has been set. + +### GetVersions + +`func (o *V1APIGroup) GetVersions() []V1GroupVersionForDiscovery` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *V1APIGroup) GetVersionsOk() (*[]V1GroupVersionForDiscovery, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *V1APIGroup) SetVersions(v []V1GroupVersionForDiscovery)` + +SetVersions sets Versions field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1APIGroupList.md b/sdk/sdk-apiserver/docs/V1APIGroupList.md new file mode 100644 index 0000000..5e2e8c0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1APIGroupList.md @@ -0,0 +1,103 @@ +# V1APIGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Groups** | [**[]V1APIGroup**](V1APIGroup.md) | groups is a list of APIGroup. | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] + +## Methods + +### NewV1APIGroupList + +`func NewV1APIGroupList(groups []V1APIGroup, ) *V1APIGroupList` + +NewV1APIGroupList instantiates a new V1APIGroupList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1APIGroupListWithDefaults + +`func NewV1APIGroupListWithDefaults() *V1APIGroupList` + +NewV1APIGroupListWithDefaults instantiates a new V1APIGroupList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1APIGroupList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1APIGroupList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1APIGroupList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *V1APIGroupList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetGroups + +`func (o *V1APIGroupList) GetGroups() []V1APIGroup` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *V1APIGroupList) GetGroupsOk() (*[]V1APIGroup, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *V1APIGroupList) SetGroups(v []V1APIGroup)` + +SetGroups sets Groups field to given value. + + +### GetKind + +`func (o *V1APIGroupList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1APIGroupList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1APIGroupList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *V1APIGroupList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1APIResource.md b/sdk/sdk-apiserver/docs/V1APIResource.md new file mode 100644 index 0000000..a368872 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1APIResource.md @@ -0,0 +1,265 @@ +# V1APIResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Categories** | Pointer to **[]string** | categories is a list of the grouped resources this resource belongs to (e.g. 'all') | [optional] +**Group** | Pointer to **string** | group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". | [optional] +**Kind** | **string** | kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') | +**Name** | **string** | name is the plural name of the resource. | +**Namespaced** | **bool** | namespaced indicates if a resource is namespaced or not. | +**ShortNames** | Pointer to **[]string** | shortNames is a list of suggested short names of the resource. | [optional] +**SingularName** | **string** | singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. | +**StorageVersionHash** | Pointer to **string** | The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. | [optional] +**Verbs** | **[]string** | verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) | +**Version** | Pointer to **string** | version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". | [optional] + +## Methods + +### NewV1APIResource + +`func NewV1APIResource(kind string, name string, namespaced bool, singularName string, verbs []string, ) *V1APIResource` + +NewV1APIResource instantiates a new V1APIResource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1APIResourceWithDefaults + +`func NewV1APIResourceWithDefaults() *V1APIResource` + +NewV1APIResourceWithDefaults instantiates a new V1APIResource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCategories + +`func (o *V1APIResource) GetCategories() []string` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *V1APIResource) GetCategoriesOk() (*[]string, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *V1APIResource) SetCategories(v []string)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *V1APIResource) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### GetGroup + +`func (o *V1APIResource) GetGroup() string` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *V1APIResource) GetGroupOk() (*string, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *V1APIResource) SetGroup(v string)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *V1APIResource) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetKind + +`func (o *V1APIResource) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1APIResource) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1APIResource) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *V1APIResource) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1APIResource) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1APIResource) SetName(v string)` + +SetName sets Name field to given value. + + +### GetNamespaced + +`func (o *V1APIResource) GetNamespaced() bool` + +GetNamespaced returns the Namespaced field if non-nil, zero value otherwise. + +### GetNamespacedOk + +`func (o *V1APIResource) GetNamespacedOk() (*bool, bool)` + +GetNamespacedOk returns a tuple with the Namespaced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaced + +`func (o *V1APIResource) SetNamespaced(v bool)` + +SetNamespaced sets Namespaced field to given value. + + +### GetShortNames + +`func (o *V1APIResource) GetShortNames() []string` + +GetShortNames returns the ShortNames field if non-nil, zero value otherwise. + +### GetShortNamesOk + +`func (o *V1APIResource) GetShortNamesOk() (*[]string, bool)` + +GetShortNamesOk returns a tuple with the ShortNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortNames + +`func (o *V1APIResource) SetShortNames(v []string)` + +SetShortNames sets ShortNames field to given value. + +### HasShortNames + +`func (o *V1APIResource) HasShortNames() bool` + +HasShortNames returns a boolean if a field has been set. + +### GetSingularName + +`func (o *V1APIResource) GetSingularName() string` + +GetSingularName returns the SingularName field if non-nil, zero value otherwise. + +### GetSingularNameOk + +`func (o *V1APIResource) GetSingularNameOk() (*string, bool)` + +GetSingularNameOk returns a tuple with the SingularName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSingularName + +`func (o *V1APIResource) SetSingularName(v string)` + +SetSingularName sets SingularName field to given value. + + +### GetStorageVersionHash + +`func (o *V1APIResource) GetStorageVersionHash() string` + +GetStorageVersionHash returns the StorageVersionHash field if non-nil, zero value otherwise. + +### GetStorageVersionHashOk + +`func (o *V1APIResource) GetStorageVersionHashOk() (*string, bool)` + +GetStorageVersionHashOk returns a tuple with the StorageVersionHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStorageVersionHash + +`func (o *V1APIResource) SetStorageVersionHash(v string)` + +SetStorageVersionHash sets StorageVersionHash field to given value. + +### HasStorageVersionHash + +`func (o *V1APIResource) HasStorageVersionHash() bool` + +HasStorageVersionHash returns a boolean if a field has been set. + +### GetVerbs + +`func (o *V1APIResource) GetVerbs() []string` + +GetVerbs returns the Verbs field if non-nil, zero value otherwise. + +### GetVerbsOk + +`func (o *V1APIResource) GetVerbsOk() (*[]string, bool)` + +GetVerbsOk returns a tuple with the Verbs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerbs + +`func (o *V1APIResource) SetVerbs(v []string)` + +SetVerbs sets Verbs field to given value. + + +### GetVersion + +`func (o *V1APIResource) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *V1APIResource) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *V1APIResource) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *V1APIResource) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1APIResourceList.md b/sdk/sdk-apiserver/docs/V1APIResourceList.md new file mode 100644 index 0000000..a565acd --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1APIResourceList.md @@ -0,0 +1,124 @@ +# V1APIResourceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**GroupVersion** | **string** | groupVersion is the group and version this APIResourceList is for. | +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Resources** | [**[]V1APIResource**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | + +## Methods + +### NewV1APIResourceList + +`func NewV1APIResourceList(groupVersion string, resources []V1APIResource, ) *V1APIResourceList` + +NewV1APIResourceList instantiates a new V1APIResourceList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1APIResourceListWithDefaults + +`func NewV1APIResourceListWithDefaults() *V1APIResourceList` + +NewV1APIResourceListWithDefaults instantiates a new V1APIResourceList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1APIResourceList) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1APIResourceList) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1APIResourceList) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *V1APIResourceList) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetGroupVersion + +`func (o *V1APIResourceList) GetGroupVersion() string` + +GetGroupVersion returns the GroupVersion field if non-nil, zero value otherwise. + +### GetGroupVersionOk + +`func (o *V1APIResourceList) GetGroupVersionOk() (*string, bool)` + +GetGroupVersionOk returns a tuple with the GroupVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupVersion + +`func (o *V1APIResourceList) SetGroupVersion(v string)` + +SetGroupVersion sets GroupVersion field to given value. + + +### GetKind + +`func (o *V1APIResourceList) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1APIResourceList) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1APIResourceList) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *V1APIResourceList) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetResources + +`func (o *V1APIResourceList) GetResources() []V1APIResource` + +GetResources returns the Resources field if non-nil, zero value otherwise. + +### GetResourcesOk + +`func (o *V1APIResourceList) GetResourcesOk() (*[]V1APIResource, bool)` + +GetResourcesOk returns a tuple with the Resources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResources + +`func (o *V1APIResourceList) SetResources(v []V1APIResource)` + +SetResources sets Resources field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1Affinity.md b/sdk/sdk-apiserver/docs/V1Affinity.md new file mode 100644 index 0000000..fb99189 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1Affinity.md @@ -0,0 +1,108 @@ +# V1Affinity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeAffinity** | Pointer to [**V1NodeAffinity**](V1NodeAffinity.md) | | [optional] +**PodAffinity** | Pointer to [**V1PodAffinity**](V1PodAffinity.md) | | [optional] +**PodAntiAffinity** | Pointer to [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | | [optional] + +## Methods + +### NewV1Affinity + +`func NewV1Affinity() *V1Affinity` + +NewV1Affinity instantiates a new V1Affinity object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1AffinityWithDefaults + +`func NewV1AffinityWithDefaults() *V1Affinity` + +NewV1AffinityWithDefaults instantiates a new V1Affinity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeAffinity + +`func (o *V1Affinity) GetNodeAffinity() V1NodeAffinity` + +GetNodeAffinity returns the NodeAffinity field if non-nil, zero value otherwise. + +### GetNodeAffinityOk + +`func (o *V1Affinity) GetNodeAffinityOk() (*V1NodeAffinity, bool)` + +GetNodeAffinityOk returns a tuple with the NodeAffinity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeAffinity + +`func (o *V1Affinity) SetNodeAffinity(v V1NodeAffinity)` + +SetNodeAffinity sets NodeAffinity field to given value. + +### HasNodeAffinity + +`func (o *V1Affinity) HasNodeAffinity() bool` + +HasNodeAffinity returns a boolean if a field has been set. + +### GetPodAffinity + +`func (o *V1Affinity) GetPodAffinity() V1PodAffinity` + +GetPodAffinity returns the PodAffinity field if non-nil, zero value otherwise. + +### GetPodAffinityOk + +`func (o *V1Affinity) GetPodAffinityOk() (*V1PodAffinity, bool)` + +GetPodAffinityOk returns a tuple with the PodAffinity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPodAffinity + +`func (o *V1Affinity) SetPodAffinity(v V1PodAffinity)` + +SetPodAffinity sets PodAffinity field to given value. + +### HasPodAffinity + +`func (o *V1Affinity) HasPodAffinity() bool` + +HasPodAffinity returns a boolean if a field has been set. + +### GetPodAntiAffinity + +`func (o *V1Affinity) GetPodAntiAffinity() V1PodAntiAffinity` + +GetPodAntiAffinity returns the PodAntiAffinity field if non-nil, zero value otherwise. + +### GetPodAntiAffinityOk + +`func (o *V1Affinity) GetPodAntiAffinityOk() (*V1PodAntiAffinity, bool)` + +GetPodAntiAffinityOk returns a tuple with the PodAntiAffinity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPodAntiAffinity + +`func (o *V1Affinity) SetPodAntiAffinity(v V1PodAntiAffinity)` + +SetPodAntiAffinity sets PodAntiAffinity field to given value. + +### HasPodAntiAffinity + +`func (o *V1Affinity) HasPodAntiAffinity() bool` + +HasPodAntiAffinity returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1Condition.md b/sdk/sdk-apiserver/docs/V1Condition.md new file mode 100644 index 0000000..2fb4c12 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1Condition.md @@ -0,0 +1,161 @@ +# V1Condition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastTransitionTime** | **time.Time** | lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. | +**Message** | **string** | message is a human readable message indicating details about the transition. This may be an empty string. | +**ObservedGeneration** | Pointer to **int64** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [optional] +**Reason** | **string** | reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. | +**Status** | **string** | status of the condition, one of True, False, Unknown. | +**Type** | **string** | type of condition in CamelCase or in foo.example.com/CamelCase. | + +## Methods + +### NewV1Condition + +`func NewV1Condition(lastTransitionTime time.Time, message string, reason string, status string, type_ string, ) *V1Condition` + +NewV1Condition instantiates a new V1Condition object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ConditionWithDefaults + +`func NewV1ConditionWithDefaults() *V1Condition` + +NewV1ConditionWithDefaults instantiates a new V1Condition object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastTransitionTime + +`func (o *V1Condition) GetLastTransitionTime() time.Time` + +GetLastTransitionTime returns the LastTransitionTime field if non-nil, zero value otherwise. + +### GetLastTransitionTimeOk + +`func (o *V1Condition) GetLastTransitionTimeOk() (*time.Time, bool)` + +GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTransitionTime + +`func (o *V1Condition) SetLastTransitionTime(v time.Time)` + +SetLastTransitionTime sets LastTransitionTime field to given value. + + +### GetMessage + +`func (o *V1Condition) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *V1Condition) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *V1Condition) SetMessage(v string)` + +SetMessage sets Message field to given value. + + +### GetObservedGeneration + +`func (o *V1Condition) GetObservedGeneration() int64` + +GetObservedGeneration returns the ObservedGeneration field if non-nil, zero value otherwise. + +### GetObservedGenerationOk + +`func (o *V1Condition) GetObservedGenerationOk() (*int64, bool)` + +GetObservedGenerationOk returns a tuple with the ObservedGeneration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObservedGeneration + +`func (o *V1Condition) SetObservedGeneration(v int64)` + +SetObservedGeneration sets ObservedGeneration field to given value. + +### HasObservedGeneration + +`func (o *V1Condition) HasObservedGeneration() bool` + +HasObservedGeneration returns a boolean if a field has been set. + +### GetReason + +`func (o *V1Condition) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *V1Condition) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *V1Condition) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetStatus + +`func (o *V1Condition) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V1Condition) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V1Condition) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetType + +`func (o *V1Condition) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V1Condition) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V1Condition) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ConfigMapEnvSource.md b/sdk/sdk-apiserver/docs/V1ConfigMapEnvSource.md new file mode 100644 index 0000000..bed5975 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ConfigMapEnvSource.md @@ -0,0 +1,82 @@ +# V1ConfigMapEnvSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**Optional** | Pointer to **bool** | Specify whether the ConfigMap must be defined | [optional] + +## Methods + +### NewV1ConfigMapEnvSource + +`func NewV1ConfigMapEnvSource() *V1ConfigMapEnvSource` + +NewV1ConfigMapEnvSource instantiates a new V1ConfigMapEnvSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ConfigMapEnvSourceWithDefaults + +`func NewV1ConfigMapEnvSourceWithDefaults() *V1ConfigMapEnvSource` + +NewV1ConfigMapEnvSourceWithDefaults instantiates a new V1ConfigMapEnvSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *V1ConfigMapEnvSource) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1ConfigMapEnvSource) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1ConfigMapEnvSource) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1ConfigMapEnvSource) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptional + +`func (o *V1ConfigMapEnvSource) GetOptional() bool` + +GetOptional returns the Optional field if non-nil, zero value otherwise. + +### GetOptionalOk + +`func (o *V1ConfigMapEnvSource) GetOptionalOk() (*bool, bool)` + +GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptional + +`func (o *V1ConfigMapEnvSource) SetOptional(v bool)` + +SetOptional sets Optional field to given value. + +### HasOptional + +`func (o *V1ConfigMapEnvSource) HasOptional() bool` + +HasOptional returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ConfigMapKeySelector.md b/sdk/sdk-apiserver/docs/V1ConfigMapKeySelector.md new file mode 100644 index 0000000..658a9d6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ConfigMapKeySelector.md @@ -0,0 +1,103 @@ +# V1ConfigMapKeySelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key to select. | +**Name** | Pointer to **string** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**Optional** | Pointer to **bool** | Specify whether the ConfigMap or its key must be defined | [optional] + +## Methods + +### NewV1ConfigMapKeySelector + +`func NewV1ConfigMapKeySelector(key string, ) *V1ConfigMapKeySelector` + +NewV1ConfigMapKeySelector instantiates a new V1ConfigMapKeySelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ConfigMapKeySelectorWithDefaults + +`func NewV1ConfigMapKeySelectorWithDefaults() *V1ConfigMapKeySelector` + +NewV1ConfigMapKeySelectorWithDefaults instantiates a new V1ConfigMapKeySelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *V1ConfigMapKeySelector) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *V1ConfigMapKeySelector) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *V1ConfigMapKeySelector) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *V1ConfigMapKeySelector) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1ConfigMapKeySelector) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1ConfigMapKeySelector) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1ConfigMapKeySelector) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptional + +`func (o *V1ConfigMapKeySelector) GetOptional() bool` + +GetOptional returns the Optional field if non-nil, zero value otherwise. + +### GetOptionalOk + +`func (o *V1ConfigMapKeySelector) GetOptionalOk() (*bool, bool)` + +GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptional + +`func (o *V1ConfigMapKeySelector) SetOptional(v bool)` + +SetOptional sets Optional field to given value. + +### HasOptional + +`func (o *V1ConfigMapKeySelector) HasOptional() bool` + +HasOptional returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ConfigMapVolumeSource.md b/sdk/sdk-apiserver/docs/V1ConfigMapVolumeSource.md new file mode 100644 index 0000000..6776bcc --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ConfigMapVolumeSource.md @@ -0,0 +1,134 @@ +# V1ConfigMapVolumeSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultMode** | Pointer to **int32** | defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**Items** | Pointer to [**[]V1KeyToPath**](V1KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**Name** | Pointer to **string** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**Optional** | Pointer to **bool** | optional specify whether the ConfigMap or its keys must be defined | [optional] + +## Methods + +### NewV1ConfigMapVolumeSource + +`func NewV1ConfigMapVolumeSource() *V1ConfigMapVolumeSource` + +NewV1ConfigMapVolumeSource instantiates a new V1ConfigMapVolumeSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ConfigMapVolumeSourceWithDefaults + +`func NewV1ConfigMapVolumeSourceWithDefaults() *V1ConfigMapVolumeSource` + +NewV1ConfigMapVolumeSourceWithDefaults instantiates a new V1ConfigMapVolumeSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDefaultMode + +`func (o *V1ConfigMapVolumeSource) GetDefaultMode() int32` + +GetDefaultMode returns the DefaultMode field if non-nil, zero value otherwise. + +### GetDefaultModeOk + +`func (o *V1ConfigMapVolumeSource) GetDefaultModeOk() (*int32, bool)` + +GetDefaultModeOk returns a tuple with the DefaultMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultMode + +`func (o *V1ConfigMapVolumeSource) SetDefaultMode(v int32)` + +SetDefaultMode sets DefaultMode field to given value. + +### HasDefaultMode + +`func (o *V1ConfigMapVolumeSource) HasDefaultMode() bool` + +HasDefaultMode returns a boolean if a field has been set. + +### GetItems + +`func (o *V1ConfigMapVolumeSource) GetItems() []V1KeyToPath` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *V1ConfigMapVolumeSource) GetItemsOk() (*[]V1KeyToPath, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *V1ConfigMapVolumeSource) SetItems(v []V1KeyToPath)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *V1ConfigMapVolumeSource) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetName + +`func (o *V1ConfigMapVolumeSource) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1ConfigMapVolumeSource) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1ConfigMapVolumeSource) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1ConfigMapVolumeSource) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptional + +`func (o *V1ConfigMapVolumeSource) GetOptional() bool` + +GetOptional returns the Optional field if non-nil, zero value otherwise. + +### GetOptionalOk + +`func (o *V1ConfigMapVolumeSource) GetOptionalOk() (*bool, bool)` + +GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptional + +`func (o *V1ConfigMapVolumeSource) SetOptional(v bool)` + +SetOptional sets Optional field to given value. + +### HasOptional + +`func (o *V1ConfigMapVolumeSource) HasOptional() bool` + +HasOptional returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1DeleteOptions.md b/sdk/sdk-apiserver/docs/V1DeleteOptions.md new file mode 100644 index 0000000..e1cf0cf --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1DeleteOptions.md @@ -0,0 +1,212 @@ +# V1DeleteOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**DryRun** | Pointer to **[]string** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**GracePeriodSeconds** | Pointer to **int64** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**OrphanDependents** | Pointer to **bool** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**Preconditions** | Pointer to [**V1Preconditions**](V1Preconditions.md) | | [optional] +**PropagationPolicy** | Pointer to **string** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +## Methods + +### NewV1DeleteOptions + +`func NewV1DeleteOptions() *V1DeleteOptions` + +NewV1DeleteOptions instantiates a new V1DeleteOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1DeleteOptionsWithDefaults + +`func NewV1DeleteOptionsWithDefaults() *V1DeleteOptions` + +NewV1DeleteOptionsWithDefaults instantiates a new V1DeleteOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1DeleteOptions) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1DeleteOptions) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1DeleteOptions) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *V1DeleteOptions) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetDryRun + +`func (o *V1DeleteOptions) GetDryRun() []string` + +GetDryRun returns the DryRun field if non-nil, zero value otherwise. + +### GetDryRunOk + +`func (o *V1DeleteOptions) GetDryRunOk() (*[]string, bool)` + +GetDryRunOk returns a tuple with the DryRun field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDryRun + +`func (o *V1DeleteOptions) SetDryRun(v []string)` + +SetDryRun sets DryRun field to given value. + +### HasDryRun + +`func (o *V1DeleteOptions) HasDryRun() bool` + +HasDryRun returns a boolean if a field has been set. + +### GetGracePeriodSeconds + +`func (o *V1DeleteOptions) GetGracePeriodSeconds() int64` + +GetGracePeriodSeconds returns the GracePeriodSeconds field if non-nil, zero value otherwise. + +### GetGracePeriodSecondsOk + +`func (o *V1DeleteOptions) GetGracePeriodSecondsOk() (*int64, bool)` + +GetGracePeriodSecondsOk returns a tuple with the GracePeriodSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGracePeriodSeconds + +`func (o *V1DeleteOptions) SetGracePeriodSeconds(v int64)` + +SetGracePeriodSeconds sets GracePeriodSeconds field to given value. + +### HasGracePeriodSeconds + +`func (o *V1DeleteOptions) HasGracePeriodSeconds() bool` + +HasGracePeriodSeconds returns a boolean if a field has been set. + +### GetKind + +`func (o *V1DeleteOptions) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1DeleteOptions) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1DeleteOptions) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *V1DeleteOptions) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetOrphanDependents + +`func (o *V1DeleteOptions) GetOrphanDependents() bool` + +GetOrphanDependents returns the OrphanDependents field if non-nil, zero value otherwise. + +### GetOrphanDependentsOk + +`func (o *V1DeleteOptions) GetOrphanDependentsOk() (*bool, bool)` + +GetOrphanDependentsOk returns a tuple with the OrphanDependents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrphanDependents + +`func (o *V1DeleteOptions) SetOrphanDependents(v bool)` + +SetOrphanDependents sets OrphanDependents field to given value. + +### HasOrphanDependents + +`func (o *V1DeleteOptions) HasOrphanDependents() bool` + +HasOrphanDependents returns a boolean if a field has been set. + +### GetPreconditions + +`func (o *V1DeleteOptions) GetPreconditions() V1Preconditions` + +GetPreconditions returns the Preconditions field if non-nil, zero value otherwise. + +### GetPreconditionsOk + +`func (o *V1DeleteOptions) GetPreconditionsOk() (*V1Preconditions, bool)` + +GetPreconditionsOk returns a tuple with the Preconditions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreconditions + +`func (o *V1DeleteOptions) SetPreconditions(v V1Preconditions)` + +SetPreconditions sets Preconditions field to given value. + +### HasPreconditions + +`func (o *V1DeleteOptions) HasPreconditions() bool` + +HasPreconditions returns a boolean if a field has been set. + +### GetPropagationPolicy + +`func (o *V1DeleteOptions) GetPropagationPolicy() string` + +GetPropagationPolicy returns the PropagationPolicy field if non-nil, zero value otherwise. + +### GetPropagationPolicyOk + +`func (o *V1DeleteOptions) GetPropagationPolicyOk() (*string, bool)` + +GetPropagationPolicyOk returns a tuple with the PropagationPolicy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPropagationPolicy + +`func (o *V1DeleteOptions) SetPropagationPolicy(v string)` + +SetPropagationPolicy sets PropagationPolicy field to given value. + +### HasPropagationPolicy + +`func (o *V1DeleteOptions) HasPropagationPolicy() bool` + +HasPropagationPolicy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1EnvFromSource.md b/sdk/sdk-apiserver/docs/V1EnvFromSource.md new file mode 100644 index 0000000..8685b83 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1EnvFromSource.md @@ -0,0 +1,108 @@ +# V1EnvFromSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigMapRef** | Pointer to [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] +**Prefix** | Pointer to **string** | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] +**SecretRef** | Pointer to [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] + +## Methods + +### NewV1EnvFromSource + +`func NewV1EnvFromSource() *V1EnvFromSource` + +NewV1EnvFromSource instantiates a new V1EnvFromSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1EnvFromSourceWithDefaults + +`func NewV1EnvFromSourceWithDefaults() *V1EnvFromSource` + +NewV1EnvFromSourceWithDefaults instantiates a new V1EnvFromSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfigMapRef + +`func (o *V1EnvFromSource) GetConfigMapRef() V1ConfigMapEnvSource` + +GetConfigMapRef returns the ConfigMapRef field if non-nil, zero value otherwise. + +### GetConfigMapRefOk + +`func (o *V1EnvFromSource) GetConfigMapRefOk() (*V1ConfigMapEnvSource, bool)` + +GetConfigMapRefOk returns a tuple with the ConfigMapRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigMapRef + +`func (o *V1EnvFromSource) SetConfigMapRef(v V1ConfigMapEnvSource)` + +SetConfigMapRef sets ConfigMapRef field to given value. + +### HasConfigMapRef + +`func (o *V1EnvFromSource) HasConfigMapRef() bool` + +HasConfigMapRef returns a boolean if a field has been set. + +### GetPrefix + +`func (o *V1EnvFromSource) GetPrefix() string` + +GetPrefix returns the Prefix field if non-nil, zero value otherwise. + +### GetPrefixOk + +`func (o *V1EnvFromSource) GetPrefixOk() (*string, bool)` + +GetPrefixOk returns a tuple with the Prefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefix + +`func (o *V1EnvFromSource) SetPrefix(v string)` + +SetPrefix sets Prefix field to given value. + +### HasPrefix + +`func (o *V1EnvFromSource) HasPrefix() bool` + +HasPrefix returns a boolean if a field has been set. + +### GetSecretRef + +`func (o *V1EnvFromSource) GetSecretRef() V1SecretEnvSource` + +GetSecretRef returns the SecretRef field if non-nil, zero value otherwise. + +### GetSecretRefOk + +`func (o *V1EnvFromSource) GetSecretRefOk() (*V1SecretEnvSource, bool)` + +GetSecretRefOk returns a tuple with the SecretRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretRef + +`func (o *V1EnvFromSource) SetSecretRef(v V1SecretEnvSource)` + +SetSecretRef sets SecretRef field to given value. + +### HasSecretRef + +`func (o *V1EnvFromSource) HasSecretRef() bool` + +HasSecretRef returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1EnvVar.md b/sdk/sdk-apiserver/docs/V1EnvVar.md new file mode 100644 index 0000000..46fba48 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1EnvVar.md @@ -0,0 +1,103 @@ +# V1EnvVar + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of the environment variable. Must be a C_IDENTIFIER. | +**Value** | Pointer to **string** | Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". | [optional] +**ValueFrom** | Pointer to [**V1EnvVarSource**](V1EnvVarSource.md) | | [optional] + +## Methods + +### NewV1EnvVar + +`func NewV1EnvVar(name string, ) *V1EnvVar` + +NewV1EnvVar instantiates a new V1EnvVar object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1EnvVarWithDefaults + +`func NewV1EnvVarWithDefaults() *V1EnvVar` + +NewV1EnvVarWithDefaults instantiates a new V1EnvVar object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *V1EnvVar) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1EnvVar) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1EnvVar) SetName(v string)` + +SetName sets Name field to given value. + + +### GetValue + +`func (o *V1EnvVar) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V1EnvVar) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *V1EnvVar) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V1EnvVar) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetValueFrom + +`func (o *V1EnvVar) GetValueFrom() V1EnvVarSource` + +GetValueFrom returns the ValueFrom field if non-nil, zero value otherwise. + +### GetValueFromOk + +`func (o *V1EnvVar) GetValueFromOk() (*V1EnvVarSource, bool)` + +GetValueFromOk returns a tuple with the ValueFrom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValueFrom + +`func (o *V1EnvVar) SetValueFrom(v V1EnvVarSource)` + +SetValueFrom sets ValueFrom field to given value. + +### HasValueFrom + +`func (o *V1EnvVar) HasValueFrom() bool` + +HasValueFrom returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1EnvVarSource.md b/sdk/sdk-apiserver/docs/V1EnvVarSource.md new file mode 100644 index 0000000..bfd8847 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1EnvVarSource.md @@ -0,0 +1,134 @@ +# V1EnvVarSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigMapKeyRef** | Pointer to [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | | [optional] +**FieldRef** | Pointer to [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] +**ResourceFieldRef** | Pointer to [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] +**SecretKeyRef** | Pointer to [**V1SecretKeySelector**](V1SecretKeySelector.md) | | [optional] + +## Methods + +### NewV1EnvVarSource + +`func NewV1EnvVarSource() *V1EnvVarSource` + +NewV1EnvVarSource instantiates a new V1EnvVarSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1EnvVarSourceWithDefaults + +`func NewV1EnvVarSourceWithDefaults() *V1EnvVarSource` + +NewV1EnvVarSourceWithDefaults instantiates a new V1EnvVarSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfigMapKeyRef + +`func (o *V1EnvVarSource) GetConfigMapKeyRef() V1ConfigMapKeySelector` + +GetConfigMapKeyRef returns the ConfigMapKeyRef field if non-nil, zero value otherwise. + +### GetConfigMapKeyRefOk + +`func (o *V1EnvVarSource) GetConfigMapKeyRefOk() (*V1ConfigMapKeySelector, bool)` + +GetConfigMapKeyRefOk returns a tuple with the ConfigMapKeyRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigMapKeyRef + +`func (o *V1EnvVarSource) SetConfigMapKeyRef(v V1ConfigMapKeySelector)` + +SetConfigMapKeyRef sets ConfigMapKeyRef field to given value. + +### HasConfigMapKeyRef + +`func (o *V1EnvVarSource) HasConfigMapKeyRef() bool` + +HasConfigMapKeyRef returns a boolean if a field has been set. + +### GetFieldRef + +`func (o *V1EnvVarSource) GetFieldRef() V1ObjectFieldSelector` + +GetFieldRef returns the FieldRef field if non-nil, zero value otherwise. + +### GetFieldRefOk + +`func (o *V1EnvVarSource) GetFieldRefOk() (*V1ObjectFieldSelector, bool)` + +GetFieldRefOk returns a tuple with the FieldRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldRef + +`func (o *V1EnvVarSource) SetFieldRef(v V1ObjectFieldSelector)` + +SetFieldRef sets FieldRef field to given value. + +### HasFieldRef + +`func (o *V1EnvVarSource) HasFieldRef() bool` + +HasFieldRef returns a boolean if a field has been set. + +### GetResourceFieldRef + +`func (o *V1EnvVarSource) GetResourceFieldRef() V1ResourceFieldSelector` + +GetResourceFieldRef returns the ResourceFieldRef field if non-nil, zero value otherwise. + +### GetResourceFieldRefOk + +`func (o *V1EnvVarSource) GetResourceFieldRefOk() (*V1ResourceFieldSelector, bool)` + +GetResourceFieldRefOk returns a tuple with the ResourceFieldRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceFieldRef + +`func (o *V1EnvVarSource) SetResourceFieldRef(v V1ResourceFieldSelector)` + +SetResourceFieldRef sets ResourceFieldRef field to given value. + +### HasResourceFieldRef + +`func (o *V1EnvVarSource) HasResourceFieldRef() bool` + +HasResourceFieldRef returns a boolean if a field has been set. + +### GetSecretKeyRef + +`func (o *V1EnvVarSource) GetSecretKeyRef() V1SecretKeySelector` + +GetSecretKeyRef returns the SecretKeyRef field if non-nil, zero value otherwise. + +### GetSecretKeyRefOk + +`func (o *V1EnvVarSource) GetSecretKeyRefOk() (*V1SecretKeySelector, bool)` + +GetSecretKeyRefOk returns a tuple with the SecretKeyRef field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretKeyRef + +`func (o *V1EnvVarSource) SetSecretKeyRef(v V1SecretKeySelector)` + +SetSecretKeyRef sets SecretKeyRef field to given value. + +### HasSecretKeyRef + +`func (o *V1EnvVarSource) HasSecretKeyRef() bool` + +HasSecretKeyRef returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ExecAction.md b/sdk/sdk-apiserver/docs/V1ExecAction.md new file mode 100644 index 0000000..2a03068 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ExecAction.md @@ -0,0 +1,56 @@ +# V1ExecAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | Pointer to **[]string** | Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. | [optional] + +## Methods + +### NewV1ExecAction + +`func NewV1ExecAction() *V1ExecAction` + +NewV1ExecAction instantiates a new V1ExecAction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ExecActionWithDefaults + +`func NewV1ExecActionWithDefaults() *V1ExecAction` + +NewV1ExecActionWithDefaults instantiates a new V1ExecAction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCommand + +`func (o *V1ExecAction) GetCommand() []string` + +GetCommand returns the Command field if non-nil, zero value otherwise. + +### GetCommandOk + +`func (o *V1ExecAction) GetCommandOk() (*[]string, bool)` + +GetCommandOk returns a tuple with the Command field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommand + +`func (o *V1ExecAction) SetCommand(v []string)` + +SetCommand sets Command field to given value. + +### HasCommand + +`func (o *V1ExecAction) HasCommand() bool` + +HasCommand returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1GRPCAction.md b/sdk/sdk-apiserver/docs/V1GRPCAction.md new file mode 100644 index 0000000..de885a0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1GRPCAction.md @@ -0,0 +1,77 @@ +# V1GRPCAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Port** | **int32** | Port number of the gRPC service. Number must be in the range 1 to 65535. | +**Service** | Pointer to **string** | Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. | [optional] + +## Methods + +### NewV1GRPCAction + +`func NewV1GRPCAction(port int32, ) *V1GRPCAction` + +NewV1GRPCAction instantiates a new V1GRPCAction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1GRPCActionWithDefaults + +`func NewV1GRPCActionWithDefaults() *V1GRPCAction` + +NewV1GRPCActionWithDefaults instantiates a new V1GRPCAction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPort + +`func (o *V1GRPCAction) GetPort() int32` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *V1GRPCAction) GetPortOk() (*int32, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *V1GRPCAction) SetPort(v int32)` + +SetPort sets Port field to given value. + + +### GetService + +`func (o *V1GRPCAction) GetService() string` + +GetService returns the Service field if non-nil, zero value otherwise. + +### GetServiceOk + +`func (o *V1GRPCAction) GetServiceOk() (*string, bool)` + +GetServiceOk returns a tuple with the Service field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetService + +`func (o *V1GRPCAction) SetService(v string)` + +SetService sets Service field to given value. + +### HasService + +`func (o *V1GRPCAction) HasService() bool` + +HasService returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1GroupVersionForDiscovery.md b/sdk/sdk-apiserver/docs/V1GroupVersionForDiscovery.md new file mode 100644 index 0000000..38ebd1a --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1GroupVersionForDiscovery.md @@ -0,0 +1,72 @@ +# V1GroupVersionForDiscovery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupVersion** | **string** | groupVersion specifies the API group and version in the form \"group/version\" | +**Version** | **string** | version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. | + +## Methods + +### NewV1GroupVersionForDiscovery + +`func NewV1GroupVersionForDiscovery(groupVersion string, version string, ) *V1GroupVersionForDiscovery` + +NewV1GroupVersionForDiscovery instantiates a new V1GroupVersionForDiscovery object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1GroupVersionForDiscoveryWithDefaults + +`func NewV1GroupVersionForDiscoveryWithDefaults() *V1GroupVersionForDiscovery` + +NewV1GroupVersionForDiscoveryWithDefaults instantiates a new V1GroupVersionForDiscovery object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroupVersion + +`func (o *V1GroupVersionForDiscovery) GetGroupVersion() string` + +GetGroupVersion returns the GroupVersion field if non-nil, zero value otherwise. + +### GetGroupVersionOk + +`func (o *V1GroupVersionForDiscovery) GetGroupVersionOk() (*string, bool)` + +GetGroupVersionOk returns a tuple with the GroupVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupVersion + +`func (o *V1GroupVersionForDiscovery) SetGroupVersion(v string)` + +SetGroupVersion sets GroupVersion field to given value. + + +### GetVersion + +`func (o *V1GroupVersionForDiscovery) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *V1GroupVersionForDiscovery) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *V1GroupVersionForDiscovery) SetVersion(v string)` + +SetVersion sets Version field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1HTTPGetAction.md b/sdk/sdk-apiserver/docs/V1HTTPGetAction.md new file mode 100644 index 0000000..3cf3ac0 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1HTTPGetAction.md @@ -0,0 +1,155 @@ +# V1HTTPGetAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] +**HttpHeaders** | Pointer to [**[]V1HTTPHeader**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] +**Path** | Pointer to **string** | Path to access on the HTTP server. | [optional] +**Port** | **map[string]interface{}** | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**Scheme** | Pointer to **string** | Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: - `\"HTTP\"` means that the scheme used will be http:// - `\"HTTPS\"` means that the scheme used will be https:// | [optional] + +## Methods + +### NewV1HTTPGetAction + +`func NewV1HTTPGetAction(port map[string]interface{}, ) *V1HTTPGetAction` + +NewV1HTTPGetAction instantiates a new V1HTTPGetAction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1HTTPGetActionWithDefaults + +`func NewV1HTTPGetActionWithDefaults() *V1HTTPGetAction` + +NewV1HTTPGetActionWithDefaults instantiates a new V1HTTPGetAction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *V1HTTPGetAction) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *V1HTTPGetAction) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *V1HTTPGetAction) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *V1HTTPGetAction) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetHttpHeaders + +`func (o *V1HTTPGetAction) GetHttpHeaders() []V1HTTPHeader` + +GetHttpHeaders returns the HttpHeaders field if non-nil, zero value otherwise. + +### GetHttpHeadersOk + +`func (o *V1HTTPGetAction) GetHttpHeadersOk() (*[]V1HTTPHeader, bool)` + +GetHttpHeadersOk returns a tuple with the HttpHeaders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpHeaders + +`func (o *V1HTTPGetAction) SetHttpHeaders(v []V1HTTPHeader)` + +SetHttpHeaders sets HttpHeaders field to given value. + +### HasHttpHeaders + +`func (o *V1HTTPGetAction) HasHttpHeaders() bool` + +HasHttpHeaders returns a boolean if a field has been set. + +### GetPath + +`func (o *V1HTTPGetAction) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *V1HTTPGetAction) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *V1HTTPGetAction) SetPath(v string)` + +SetPath sets Path field to given value. + +### HasPath + +`func (o *V1HTTPGetAction) HasPath() bool` + +HasPath returns a boolean if a field has been set. + +### GetPort + +`func (o *V1HTTPGetAction) GetPort() map[string]interface{}` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *V1HTTPGetAction) GetPortOk() (*map[string]interface{}, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *V1HTTPGetAction) SetPort(v map[string]interface{})` + +SetPort sets Port field to given value. + + +### GetScheme + +`func (o *V1HTTPGetAction) GetScheme() string` + +GetScheme returns the Scheme field if non-nil, zero value otherwise. + +### GetSchemeOk + +`func (o *V1HTTPGetAction) GetSchemeOk() (*string, bool)` + +GetSchemeOk returns a tuple with the Scheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheme + +`func (o *V1HTTPGetAction) SetScheme(v string)` + +SetScheme sets Scheme field to given value. + +### HasScheme + +`func (o *V1HTTPGetAction) HasScheme() bool` + +HasScheme returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1HTTPHeader.md b/sdk/sdk-apiserver/docs/V1HTTPHeader.md new file mode 100644 index 0000000..6749f43 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1HTTPHeader.md @@ -0,0 +1,72 @@ +# V1HTTPHeader + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The header field name | +**Value** | **string** | The header field value | + +## Methods + +### NewV1HTTPHeader + +`func NewV1HTTPHeader(name string, value string, ) *V1HTTPHeader` + +NewV1HTTPHeader instantiates a new V1HTTPHeader object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1HTTPHeaderWithDefaults + +`func NewV1HTTPHeaderWithDefaults() *V1HTTPHeader` + +NewV1HTTPHeaderWithDefaults instantiates a new V1HTTPHeader object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *V1HTTPHeader) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1HTTPHeader) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1HTTPHeader) SetName(v string)` + +SetName sets Name field to given value. + + +### GetValue + +`func (o *V1HTTPHeader) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V1HTTPHeader) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *V1HTTPHeader) SetValue(v string)` + +SetValue sets Value field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1KeyToPath.md b/sdk/sdk-apiserver/docs/V1KeyToPath.md new file mode 100644 index 0000000..673486d --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1KeyToPath.md @@ -0,0 +1,98 @@ +# V1KeyToPath + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | key is the key to project. | +**Mode** | Pointer to **int32** | mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**Path** | **string** | path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. | + +## Methods + +### NewV1KeyToPath + +`func NewV1KeyToPath(key string, path string, ) *V1KeyToPath` + +NewV1KeyToPath instantiates a new V1KeyToPath object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1KeyToPathWithDefaults + +`func NewV1KeyToPathWithDefaults() *V1KeyToPath` + +NewV1KeyToPathWithDefaults instantiates a new V1KeyToPath object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *V1KeyToPath) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *V1KeyToPath) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *V1KeyToPath) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetMode + +`func (o *V1KeyToPath) GetMode() int32` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *V1KeyToPath) GetModeOk() (*int32, bool)` + +GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMode + +`func (o *V1KeyToPath) SetMode(v int32)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *V1KeyToPath) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetPath + +`func (o *V1KeyToPath) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *V1KeyToPath) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *V1KeyToPath) SetPath(v string)` + +SetPath sets Path field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1LabelSelector.md b/sdk/sdk-apiserver/docs/V1LabelSelector.md new file mode 100644 index 0000000..1d1f8c8 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1LabelSelector.md @@ -0,0 +1,82 @@ +# V1LabelSelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MatchExpressions** | Pointer to [**[]V1LabelSelectorRequirement**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] +**MatchLabels** | Pointer to **map[string]string** | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. | [optional] + +## Methods + +### NewV1LabelSelector + +`func NewV1LabelSelector() *V1LabelSelector` + +NewV1LabelSelector instantiates a new V1LabelSelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1LabelSelectorWithDefaults + +`func NewV1LabelSelectorWithDefaults() *V1LabelSelector` + +NewV1LabelSelectorWithDefaults instantiates a new V1LabelSelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMatchExpressions + +`func (o *V1LabelSelector) GetMatchExpressions() []V1LabelSelectorRequirement` + +GetMatchExpressions returns the MatchExpressions field if non-nil, zero value otherwise. + +### GetMatchExpressionsOk + +`func (o *V1LabelSelector) GetMatchExpressionsOk() (*[]V1LabelSelectorRequirement, bool)` + +GetMatchExpressionsOk returns a tuple with the MatchExpressions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchExpressions + +`func (o *V1LabelSelector) SetMatchExpressions(v []V1LabelSelectorRequirement)` + +SetMatchExpressions sets MatchExpressions field to given value. + +### HasMatchExpressions + +`func (o *V1LabelSelector) HasMatchExpressions() bool` + +HasMatchExpressions returns a boolean if a field has been set. + +### GetMatchLabels + +`func (o *V1LabelSelector) GetMatchLabels() map[string]string` + +GetMatchLabels returns the MatchLabels field if non-nil, zero value otherwise. + +### GetMatchLabelsOk + +`func (o *V1LabelSelector) GetMatchLabelsOk() (*map[string]string, bool)` + +GetMatchLabelsOk returns a tuple with the MatchLabels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchLabels + +`func (o *V1LabelSelector) SetMatchLabels(v map[string]string)` + +SetMatchLabels sets MatchLabels field to given value. + +### HasMatchLabels + +`func (o *V1LabelSelector) HasMatchLabels() bool` + +HasMatchLabels returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1LabelSelectorRequirement.md b/sdk/sdk-apiserver/docs/V1LabelSelectorRequirement.md new file mode 100644 index 0000000..2bb9fb2 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1LabelSelectorRequirement.md @@ -0,0 +1,98 @@ +# V1LabelSelectorRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | key is the label key that the selector applies to. | +**Operator** | **string** | operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. | +**Values** | Pointer to **[]string** | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. | [optional] + +## Methods + +### NewV1LabelSelectorRequirement + +`func NewV1LabelSelectorRequirement(key string, operator string, ) *V1LabelSelectorRequirement` + +NewV1LabelSelectorRequirement instantiates a new V1LabelSelectorRequirement object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1LabelSelectorRequirementWithDefaults + +`func NewV1LabelSelectorRequirementWithDefaults() *V1LabelSelectorRequirement` + +NewV1LabelSelectorRequirementWithDefaults instantiates a new V1LabelSelectorRequirement object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *V1LabelSelectorRequirement) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *V1LabelSelectorRequirement) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *V1LabelSelectorRequirement) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetOperator + +`func (o *V1LabelSelectorRequirement) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *V1LabelSelectorRequirement) GetOperatorOk() (*string, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *V1LabelSelectorRequirement) SetOperator(v string)` + +SetOperator sets Operator field to given value. + + +### GetValues + +`func (o *V1LabelSelectorRequirement) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *V1LabelSelectorRequirement) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *V1LabelSelectorRequirement) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *V1LabelSelectorRequirement) HasValues() bool` + +HasValues returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ListMeta.md b/sdk/sdk-apiserver/docs/V1ListMeta.md new file mode 100644 index 0000000..cc00be3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ListMeta.md @@ -0,0 +1,134 @@ +# V1ListMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Continue** | Pointer to **string** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. | [optional] +**RemainingItemCount** | Pointer to **int64** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. | [optional] +**ResourceVersion** | Pointer to **string** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] +**SelfLink** | Pointer to **string** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] + +## Methods + +### NewV1ListMeta + +`func NewV1ListMeta() *V1ListMeta` + +NewV1ListMeta instantiates a new V1ListMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ListMetaWithDefaults + +`func NewV1ListMetaWithDefaults() *V1ListMeta` + +NewV1ListMetaWithDefaults instantiates a new V1ListMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContinue + +`func (o *V1ListMeta) GetContinue() string` + +GetContinue returns the Continue field if non-nil, zero value otherwise. + +### GetContinueOk + +`func (o *V1ListMeta) GetContinueOk() (*string, bool)` + +GetContinueOk returns a tuple with the Continue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContinue + +`func (o *V1ListMeta) SetContinue(v string)` + +SetContinue sets Continue field to given value. + +### HasContinue + +`func (o *V1ListMeta) HasContinue() bool` + +HasContinue returns a boolean if a field has been set. + +### GetRemainingItemCount + +`func (o *V1ListMeta) GetRemainingItemCount() int64` + +GetRemainingItemCount returns the RemainingItemCount field if non-nil, zero value otherwise. + +### GetRemainingItemCountOk + +`func (o *V1ListMeta) GetRemainingItemCountOk() (*int64, bool)` + +GetRemainingItemCountOk returns a tuple with the RemainingItemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemainingItemCount + +`func (o *V1ListMeta) SetRemainingItemCount(v int64)` + +SetRemainingItemCount sets RemainingItemCount field to given value. + +### HasRemainingItemCount + +`func (o *V1ListMeta) HasRemainingItemCount() bool` + +HasRemainingItemCount returns a boolean if a field has been set. + +### GetResourceVersion + +`func (o *V1ListMeta) GetResourceVersion() string` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *V1ListMeta) GetResourceVersionOk() (*string, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *V1ListMeta) SetResourceVersion(v string)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *V1ListMeta) HasResourceVersion() bool` + +HasResourceVersion returns a boolean if a field has been set. + +### GetSelfLink + +`func (o *V1ListMeta) GetSelfLink() string` + +GetSelfLink returns the SelfLink field if non-nil, zero value otherwise. + +### GetSelfLinkOk + +`func (o *V1ListMeta) GetSelfLinkOk() (*string, bool)` + +GetSelfLinkOk returns a tuple with the SelfLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfLink + +`func (o *V1ListMeta) SetSelfLink(v string)` + +SetSelfLink sets SelfLink field to given value. + +### HasSelfLink + +`func (o *V1ListMeta) HasSelfLink() bool` + +HasSelfLink returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1LocalObjectReference.md b/sdk/sdk-apiserver/docs/V1LocalObjectReference.md new file mode 100644 index 0000000..53f52ea --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1LocalObjectReference.md @@ -0,0 +1,56 @@ +# V1LocalObjectReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] + +## Methods + +### NewV1LocalObjectReference + +`func NewV1LocalObjectReference() *V1LocalObjectReference` + +NewV1LocalObjectReference instantiates a new V1LocalObjectReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1LocalObjectReferenceWithDefaults + +`func NewV1LocalObjectReferenceWithDefaults() *V1LocalObjectReference` + +NewV1LocalObjectReferenceWithDefaults instantiates a new V1LocalObjectReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *V1LocalObjectReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1LocalObjectReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1LocalObjectReference) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1LocalObjectReference) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ManagedFieldsEntry.md b/sdk/sdk-apiserver/docs/V1ManagedFieldsEntry.md new file mode 100644 index 0000000..ce82820 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ManagedFieldsEntry.md @@ -0,0 +1,212 @@ +# V1ManagedFieldsEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. | [optional] +**FieldsType** | Pointer to **string** | FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" | [optional] +**FieldsV1** | Pointer to **map[string]interface{}** | FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. | [optional] +**Manager** | Pointer to **string** | Manager is an identifier of the workflow managing these fields. | [optional] +**Operation** | Pointer to **string** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] +**Subresource** | Pointer to **string** | Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. | [optional] +**Time** | Pointer to **time.Time** | Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. | [optional] + +## Methods + +### NewV1ManagedFieldsEntry + +`func NewV1ManagedFieldsEntry() *V1ManagedFieldsEntry` + +NewV1ManagedFieldsEntry instantiates a new V1ManagedFieldsEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ManagedFieldsEntryWithDefaults + +`func NewV1ManagedFieldsEntryWithDefaults() *V1ManagedFieldsEntry` + +NewV1ManagedFieldsEntryWithDefaults instantiates a new V1ManagedFieldsEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1ManagedFieldsEntry) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1ManagedFieldsEntry) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1ManagedFieldsEntry) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *V1ManagedFieldsEntry) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetFieldsType + +`func (o *V1ManagedFieldsEntry) GetFieldsType() string` + +GetFieldsType returns the FieldsType field if non-nil, zero value otherwise. + +### GetFieldsTypeOk + +`func (o *V1ManagedFieldsEntry) GetFieldsTypeOk() (*string, bool)` + +GetFieldsTypeOk returns a tuple with the FieldsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldsType + +`func (o *V1ManagedFieldsEntry) SetFieldsType(v string)` + +SetFieldsType sets FieldsType field to given value. + +### HasFieldsType + +`func (o *V1ManagedFieldsEntry) HasFieldsType() bool` + +HasFieldsType returns a boolean if a field has been set. + +### GetFieldsV1 + +`func (o *V1ManagedFieldsEntry) GetFieldsV1() map[string]interface{}` + +GetFieldsV1 returns the FieldsV1 field if non-nil, zero value otherwise. + +### GetFieldsV1Ok + +`func (o *V1ManagedFieldsEntry) GetFieldsV1Ok() (*map[string]interface{}, bool)` + +GetFieldsV1Ok returns a tuple with the FieldsV1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldsV1 + +`func (o *V1ManagedFieldsEntry) SetFieldsV1(v map[string]interface{})` + +SetFieldsV1 sets FieldsV1 field to given value. + +### HasFieldsV1 + +`func (o *V1ManagedFieldsEntry) HasFieldsV1() bool` + +HasFieldsV1 returns a boolean if a field has been set. + +### GetManager + +`func (o *V1ManagedFieldsEntry) GetManager() string` + +GetManager returns the Manager field if non-nil, zero value otherwise. + +### GetManagerOk + +`func (o *V1ManagedFieldsEntry) GetManagerOk() (*string, bool)` + +GetManagerOk returns a tuple with the Manager field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManager + +`func (o *V1ManagedFieldsEntry) SetManager(v string)` + +SetManager sets Manager field to given value. + +### HasManager + +`func (o *V1ManagedFieldsEntry) HasManager() bool` + +HasManager returns a boolean if a field has been set. + +### GetOperation + +`func (o *V1ManagedFieldsEntry) GetOperation() string` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *V1ManagedFieldsEntry) GetOperationOk() (*string, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *V1ManagedFieldsEntry) SetOperation(v string)` + +SetOperation sets Operation field to given value. + +### HasOperation + +`func (o *V1ManagedFieldsEntry) HasOperation() bool` + +HasOperation returns a boolean if a field has been set. + +### GetSubresource + +`func (o *V1ManagedFieldsEntry) GetSubresource() string` + +GetSubresource returns the Subresource field if non-nil, zero value otherwise. + +### GetSubresourceOk + +`func (o *V1ManagedFieldsEntry) GetSubresourceOk() (*string, bool)` + +GetSubresourceOk returns a tuple with the Subresource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubresource + +`func (o *V1ManagedFieldsEntry) SetSubresource(v string)` + +SetSubresource sets Subresource field to given value. + +### HasSubresource + +`func (o *V1ManagedFieldsEntry) HasSubresource() bool` + +HasSubresource returns a boolean if a field has been set. + +### GetTime + +`func (o *V1ManagedFieldsEntry) GetTime() time.Time` + +GetTime returns the Time field if non-nil, zero value otherwise. + +### GetTimeOk + +`func (o *V1ManagedFieldsEntry) GetTimeOk() (*time.Time, bool)` + +GetTimeOk returns a tuple with the Time field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTime + +`func (o *V1ManagedFieldsEntry) SetTime(v time.Time)` + +SetTime sets Time field to given value. + +### HasTime + +`func (o *V1ManagedFieldsEntry) HasTime() bool` + +HasTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1NodeAffinity.md b/sdk/sdk-apiserver/docs/V1NodeAffinity.md new file mode 100644 index 0000000..802ad08 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1NodeAffinity.md @@ -0,0 +1,82 @@ +# V1NodeAffinity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreferredDuringSchedulingIgnoredDuringExecution** | Pointer to [**[]V1PreferredSchedulingTerm**](V1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] +**RequiredDuringSchedulingIgnoredDuringExecution** | Pointer to [**V1NodeSelector**](V1NodeSelector.md) | | [optional] + +## Methods + +### NewV1NodeAffinity + +`func NewV1NodeAffinity() *V1NodeAffinity` + +NewV1NodeAffinity instantiates a new V1NodeAffinity object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1NodeAffinityWithDefaults + +`func NewV1NodeAffinityWithDefaults() *V1NodeAffinity` + +NewV1NodeAffinityWithDefaults instantiates a new V1NodeAffinity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1NodeAffinity) GetPreferredDuringSchedulingIgnoredDuringExecution() []V1PreferredSchedulingTerm` + +GetPreferredDuringSchedulingIgnoredDuringExecution returns the PreferredDuringSchedulingIgnoredDuringExecution field if non-nil, zero value otherwise. + +### GetPreferredDuringSchedulingIgnoredDuringExecutionOk + +`func (o *V1NodeAffinity) GetPreferredDuringSchedulingIgnoredDuringExecutionOk() (*[]V1PreferredSchedulingTerm, bool)` + +GetPreferredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the PreferredDuringSchedulingIgnoredDuringExecution field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1NodeAffinity) SetPreferredDuringSchedulingIgnoredDuringExecution(v []V1PreferredSchedulingTerm)` + +SetPreferredDuringSchedulingIgnoredDuringExecution sets PreferredDuringSchedulingIgnoredDuringExecution field to given value. + +### HasPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1NodeAffinity) HasPreferredDuringSchedulingIgnoredDuringExecution() bool` + +HasPreferredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. + +### GetRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1NodeAffinity) GetRequiredDuringSchedulingIgnoredDuringExecution() V1NodeSelector` + +GetRequiredDuringSchedulingIgnoredDuringExecution returns the RequiredDuringSchedulingIgnoredDuringExecution field if non-nil, zero value otherwise. + +### GetRequiredDuringSchedulingIgnoredDuringExecutionOk + +`func (o *V1NodeAffinity) GetRequiredDuringSchedulingIgnoredDuringExecutionOk() (*V1NodeSelector, bool)` + +GetRequiredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the RequiredDuringSchedulingIgnoredDuringExecution field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1NodeAffinity) SetRequiredDuringSchedulingIgnoredDuringExecution(v V1NodeSelector)` + +SetRequiredDuringSchedulingIgnoredDuringExecution sets RequiredDuringSchedulingIgnoredDuringExecution field to given value. + +### HasRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1NodeAffinity) HasRequiredDuringSchedulingIgnoredDuringExecution() bool` + +HasRequiredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1NodeSelector.md b/sdk/sdk-apiserver/docs/V1NodeSelector.md new file mode 100644 index 0000000..ab99c2a --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1NodeSelector.md @@ -0,0 +1,51 @@ +# V1NodeSelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeSelectorTerms** | [**[]V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | + +## Methods + +### NewV1NodeSelector + +`func NewV1NodeSelector(nodeSelectorTerms []V1NodeSelectorTerm, ) *V1NodeSelector` + +NewV1NodeSelector instantiates a new V1NodeSelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1NodeSelectorWithDefaults + +`func NewV1NodeSelectorWithDefaults() *V1NodeSelector` + +NewV1NodeSelectorWithDefaults instantiates a new V1NodeSelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNodeSelectorTerms + +`func (o *V1NodeSelector) GetNodeSelectorTerms() []V1NodeSelectorTerm` + +GetNodeSelectorTerms returns the NodeSelectorTerms field if non-nil, zero value otherwise. + +### GetNodeSelectorTermsOk + +`func (o *V1NodeSelector) GetNodeSelectorTermsOk() (*[]V1NodeSelectorTerm, bool)` + +GetNodeSelectorTermsOk returns a tuple with the NodeSelectorTerms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeSelectorTerms + +`func (o *V1NodeSelector) SetNodeSelectorTerms(v []V1NodeSelectorTerm)` + +SetNodeSelectorTerms sets NodeSelectorTerms field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1NodeSelectorRequirement.md b/sdk/sdk-apiserver/docs/V1NodeSelectorRequirement.md new file mode 100644 index 0000000..c90c212 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1NodeSelectorRequirement.md @@ -0,0 +1,98 @@ +# V1NodeSelectorRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The label key that the selector applies to. | +**Operator** | **string** | Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. Possible enum values: - `\"DoesNotExist\"` - `\"Exists\"` - `\"Gt\"` - `\"In\"` - `\"Lt\"` - `\"NotIn\"` | +**Values** | Pointer to **[]string** | An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. | [optional] + +## Methods + +### NewV1NodeSelectorRequirement + +`func NewV1NodeSelectorRequirement(key string, operator string, ) *V1NodeSelectorRequirement` + +NewV1NodeSelectorRequirement instantiates a new V1NodeSelectorRequirement object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1NodeSelectorRequirementWithDefaults + +`func NewV1NodeSelectorRequirementWithDefaults() *V1NodeSelectorRequirement` + +NewV1NodeSelectorRequirementWithDefaults instantiates a new V1NodeSelectorRequirement object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *V1NodeSelectorRequirement) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *V1NodeSelectorRequirement) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *V1NodeSelectorRequirement) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetOperator + +`func (o *V1NodeSelectorRequirement) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *V1NodeSelectorRequirement) GetOperatorOk() (*string, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *V1NodeSelectorRequirement) SetOperator(v string)` + +SetOperator sets Operator field to given value. + + +### GetValues + +`func (o *V1NodeSelectorRequirement) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *V1NodeSelectorRequirement) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *V1NodeSelectorRequirement) SetValues(v []string)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *V1NodeSelectorRequirement) HasValues() bool` + +HasValues returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1NodeSelectorTerm.md b/sdk/sdk-apiserver/docs/V1NodeSelectorTerm.md new file mode 100644 index 0000000..90e2b6d --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1NodeSelectorTerm.md @@ -0,0 +1,82 @@ +# V1NodeSelectorTerm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MatchExpressions** | Pointer to [**[]V1NodeSelectorRequirement**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's labels. | [optional] +**MatchFields** | Pointer to [**[]V1NodeSelectorRequirement**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's fields. | [optional] + +## Methods + +### NewV1NodeSelectorTerm + +`func NewV1NodeSelectorTerm() *V1NodeSelectorTerm` + +NewV1NodeSelectorTerm instantiates a new V1NodeSelectorTerm object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1NodeSelectorTermWithDefaults + +`func NewV1NodeSelectorTermWithDefaults() *V1NodeSelectorTerm` + +NewV1NodeSelectorTermWithDefaults instantiates a new V1NodeSelectorTerm object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMatchExpressions + +`func (o *V1NodeSelectorTerm) GetMatchExpressions() []V1NodeSelectorRequirement` + +GetMatchExpressions returns the MatchExpressions field if non-nil, zero value otherwise. + +### GetMatchExpressionsOk + +`func (o *V1NodeSelectorTerm) GetMatchExpressionsOk() (*[]V1NodeSelectorRequirement, bool)` + +GetMatchExpressionsOk returns a tuple with the MatchExpressions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchExpressions + +`func (o *V1NodeSelectorTerm) SetMatchExpressions(v []V1NodeSelectorRequirement)` + +SetMatchExpressions sets MatchExpressions field to given value. + +### HasMatchExpressions + +`func (o *V1NodeSelectorTerm) HasMatchExpressions() bool` + +HasMatchExpressions returns a boolean if a field has been set. + +### GetMatchFields + +`func (o *V1NodeSelectorTerm) GetMatchFields() []V1NodeSelectorRequirement` + +GetMatchFields returns the MatchFields field if non-nil, zero value otherwise. + +### GetMatchFieldsOk + +`func (o *V1NodeSelectorTerm) GetMatchFieldsOk() (*[]V1NodeSelectorRequirement, bool)` + +GetMatchFieldsOk returns a tuple with the MatchFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMatchFields + +`func (o *V1NodeSelectorTerm) SetMatchFields(v []V1NodeSelectorRequirement)` + +SetMatchFields sets MatchFields field to given value. + +### HasMatchFields + +`func (o *V1NodeSelectorTerm) HasMatchFields() bool` + +HasMatchFields returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ObjectFieldSelector.md b/sdk/sdk-apiserver/docs/V1ObjectFieldSelector.md new file mode 100644 index 0000000..2b20b85 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ObjectFieldSelector.md @@ -0,0 +1,77 @@ +# V1ObjectFieldSelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] +**FieldPath** | **string** | Path of the field to select in the specified API version. | + +## Methods + +### NewV1ObjectFieldSelector + +`func NewV1ObjectFieldSelector(fieldPath string, ) *V1ObjectFieldSelector` + +NewV1ObjectFieldSelector instantiates a new V1ObjectFieldSelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ObjectFieldSelectorWithDefaults + +`func NewV1ObjectFieldSelectorWithDefaults() *V1ObjectFieldSelector` + +NewV1ObjectFieldSelectorWithDefaults instantiates a new V1ObjectFieldSelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1ObjectFieldSelector) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1ObjectFieldSelector) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1ObjectFieldSelector) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *V1ObjectFieldSelector) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetFieldPath + +`func (o *V1ObjectFieldSelector) GetFieldPath() string` + +GetFieldPath returns the FieldPath field if non-nil, zero value otherwise. + +### GetFieldPathOk + +`func (o *V1ObjectFieldSelector) GetFieldPathOk() (*string, bool)` + +GetFieldPathOk returns a tuple with the FieldPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFieldPath + +`func (o *V1ObjectFieldSelector) SetFieldPath(v string)` + +SetFieldPath sets FieldPath field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ObjectMeta.md b/sdk/sdk-apiserver/docs/V1ObjectMeta.md new file mode 100644 index 0000000..581ca6a --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ObjectMeta.md @@ -0,0 +1,446 @@ +# V1ObjectMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Annotations** | Pointer to **map[string]string** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] +**ClusterName** | Pointer to **string** | Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. The name in the go struct is changed to help clients detect accidental use. | [optional] +**CreationTimestamp** | Pointer to **time.Time** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**DeletionGracePeriodSeconds** | Pointer to **int64** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] +**DeletionTimestamp** | Pointer to **time.Time** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**Finalizers** | Pointer to **[]string** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. | [optional] +**GenerateName** | Pointer to **string** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | [optional] +**Generation** | Pointer to **int64** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] +**Labels** | Pointer to **map[string]string** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] +**ManagedFields** | Pointer to [**[]V1ManagedFieldsEntry**](V1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. | [optional] +**Name** | Pointer to **string** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**Namespace** | Pointer to **string** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces | [optional] +**OwnerReferences** | Pointer to [**[]V1OwnerReference**](V1OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. | [optional] +**ResourceVersion** | Pointer to **string** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] +**SelfLink** | Pointer to **string** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] +**Uid** | Pointer to **string** | UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] + +## Methods + +### NewV1ObjectMeta + +`func NewV1ObjectMeta() *V1ObjectMeta` + +NewV1ObjectMeta instantiates a new V1ObjectMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ObjectMetaWithDefaults + +`func NewV1ObjectMetaWithDefaults() *V1ObjectMeta` + +NewV1ObjectMetaWithDefaults instantiates a new V1ObjectMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnnotations + +`func (o *V1ObjectMeta) GetAnnotations() map[string]string` + +GetAnnotations returns the Annotations field if non-nil, zero value otherwise. + +### GetAnnotationsOk + +`func (o *V1ObjectMeta) GetAnnotationsOk() (*map[string]string, bool)` + +GetAnnotationsOk returns a tuple with the Annotations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnnotations + +`func (o *V1ObjectMeta) SetAnnotations(v map[string]string)` + +SetAnnotations sets Annotations field to given value. + +### HasAnnotations + +`func (o *V1ObjectMeta) HasAnnotations() bool` + +HasAnnotations returns a boolean if a field has been set. + +### GetClusterName + +`func (o *V1ObjectMeta) GetClusterName() string` + +GetClusterName returns the ClusterName field if non-nil, zero value otherwise. + +### GetClusterNameOk + +`func (o *V1ObjectMeta) GetClusterNameOk() (*string, bool)` + +GetClusterNameOk returns a tuple with the ClusterName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterName + +`func (o *V1ObjectMeta) SetClusterName(v string)` + +SetClusterName sets ClusterName field to given value. + +### HasClusterName + +`func (o *V1ObjectMeta) HasClusterName() bool` + +HasClusterName returns a boolean if a field has been set. + +### GetCreationTimestamp + +`func (o *V1ObjectMeta) GetCreationTimestamp() time.Time` + +GetCreationTimestamp returns the CreationTimestamp field if non-nil, zero value otherwise. + +### GetCreationTimestampOk + +`func (o *V1ObjectMeta) GetCreationTimestampOk() (*time.Time, bool)` + +GetCreationTimestampOk returns a tuple with the CreationTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreationTimestamp + +`func (o *V1ObjectMeta) SetCreationTimestamp(v time.Time)` + +SetCreationTimestamp sets CreationTimestamp field to given value. + +### HasCreationTimestamp + +`func (o *V1ObjectMeta) HasCreationTimestamp() bool` + +HasCreationTimestamp returns a boolean if a field has been set. + +### GetDeletionGracePeriodSeconds + +`func (o *V1ObjectMeta) GetDeletionGracePeriodSeconds() int64` + +GetDeletionGracePeriodSeconds returns the DeletionGracePeriodSeconds field if non-nil, zero value otherwise. + +### GetDeletionGracePeriodSecondsOk + +`func (o *V1ObjectMeta) GetDeletionGracePeriodSecondsOk() (*int64, bool)` + +GetDeletionGracePeriodSecondsOk returns a tuple with the DeletionGracePeriodSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletionGracePeriodSeconds + +`func (o *V1ObjectMeta) SetDeletionGracePeriodSeconds(v int64)` + +SetDeletionGracePeriodSeconds sets DeletionGracePeriodSeconds field to given value. + +### HasDeletionGracePeriodSeconds + +`func (o *V1ObjectMeta) HasDeletionGracePeriodSeconds() bool` + +HasDeletionGracePeriodSeconds returns a boolean if a field has been set. + +### GetDeletionTimestamp + +`func (o *V1ObjectMeta) GetDeletionTimestamp() time.Time` + +GetDeletionTimestamp returns the DeletionTimestamp field if non-nil, zero value otherwise. + +### GetDeletionTimestampOk + +`func (o *V1ObjectMeta) GetDeletionTimestampOk() (*time.Time, bool)` + +GetDeletionTimestampOk returns a tuple with the DeletionTimestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletionTimestamp + +`func (o *V1ObjectMeta) SetDeletionTimestamp(v time.Time)` + +SetDeletionTimestamp sets DeletionTimestamp field to given value. + +### HasDeletionTimestamp + +`func (o *V1ObjectMeta) HasDeletionTimestamp() bool` + +HasDeletionTimestamp returns a boolean if a field has been set. + +### GetFinalizers + +`func (o *V1ObjectMeta) GetFinalizers() []string` + +GetFinalizers returns the Finalizers field if non-nil, zero value otherwise. + +### GetFinalizersOk + +`func (o *V1ObjectMeta) GetFinalizersOk() (*[]string, bool)` + +GetFinalizersOk returns a tuple with the Finalizers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinalizers + +`func (o *V1ObjectMeta) SetFinalizers(v []string)` + +SetFinalizers sets Finalizers field to given value. + +### HasFinalizers + +`func (o *V1ObjectMeta) HasFinalizers() bool` + +HasFinalizers returns a boolean if a field has been set. + +### GetGenerateName + +`func (o *V1ObjectMeta) GetGenerateName() string` + +GetGenerateName returns the GenerateName field if non-nil, zero value otherwise. + +### GetGenerateNameOk + +`func (o *V1ObjectMeta) GetGenerateNameOk() (*string, bool)` + +GetGenerateNameOk returns a tuple with the GenerateName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGenerateName + +`func (o *V1ObjectMeta) SetGenerateName(v string)` + +SetGenerateName sets GenerateName field to given value. + +### HasGenerateName + +`func (o *V1ObjectMeta) HasGenerateName() bool` + +HasGenerateName returns a boolean if a field has been set. + +### GetGeneration + +`func (o *V1ObjectMeta) GetGeneration() int64` + +GetGeneration returns the Generation field if non-nil, zero value otherwise. + +### GetGenerationOk + +`func (o *V1ObjectMeta) GetGenerationOk() (*int64, bool)` + +GetGenerationOk returns a tuple with the Generation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeneration + +`func (o *V1ObjectMeta) SetGeneration(v int64)` + +SetGeneration sets Generation field to given value. + +### HasGeneration + +`func (o *V1ObjectMeta) HasGeneration() bool` + +HasGeneration returns a boolean if a field has been set. + +### GetLabels + +`func (o *V1ObjectMeta) GetLabels() map[string]string` + +GetLabels returns the Labels field if non-nil, zero value otherwise. + +### GetLabelsOk + +`func (o *V1ObjectMeta) GetLabelsOk() (*map[string]string, bool)` + +GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabels + +`func (o *V1ObjectMeta) SetLabels(v map[string]string)` + +SetLabels sets Labels field to given value. + +### HasLabels + +`func (o *V1ObjectMeta) HasLabels() bool` + +HasLabels returns a boolean if a field has been set. + +### GetManagedFields + +`func (o *V1ObjectMeta) GetManagedFields() []V1ManagedFieldsEntry` + +GetManagedFields returns the ManagedFields field if non-nil, zero value otherwise. + +### GetManagedFieldsOk + +`func (o *V1ObjectMeta) GetManagedFieldsOk() (*[]V1ManagedFieldsEntry, bool)` + +GetManagedFieldsOk returns a tuple with the ManagedFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManagedFields + +`func (o *V1ObjectMeta) SetManagedFields(v []V1ManagedFieldsEntry)` + +SetManagedFields sets ManagedFields field to given value. + +### HasManagedFields + +`func (o *V1ObjectMeta) HasManagedFields() bool` + +HasManagedFields returns a boolean if a field has been set. + +### GetName + +`func (o *V1ObjectMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1ObjectMeta) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1ObjectMeta) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1ObjectMeta) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNamespace + +`func (o *V1ObjectMeta) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *V1ObjectMeta) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *V1ObjectMeta) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *V1ObjectMeta) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetOwnerReferences + +`func (o *V1ObjectMeta) GetOwnerReferences() []V1OwnerReference` + +GetOwnerReferences returns the OwnerReferences field if non-nil, zero value otherwise. + +### GetOwnerReferencesOk + +`func (o *V1ObjectMeta) GetOwnerReferencesOk() (*[]V1OwnerReference, bool)` + +GetOwnerReferencesOk returns a tuple with the OwnerReferences field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwnerReferences + +`func (o *V1ObjectMeta) SetOwnerReferences(v []V1OwnerReference)` + +SetOwnerReferences sets OwnerReferences field to given value. + +### HasOwnerReferences + +`func (o *V1ObjectMeta) HasOwnerReferences() bool` + +HasOwnerReferences returns a boolean if a field has been set. + +### GetResourceVersion + +`func (o *V1ObjectMeta) GetResourceVersion() string` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *V1ObjectMeta) GetResourceVersionOk() (*string, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *V1ObjectMeta) SetResourceVersion(v string)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *V1ObjectMeta) HasResourceVersion() bool` + +HasResourceVersion returns a boolean if a field has been set. + +### GetSelfLink + +`func (o *V1ObjectMeta) GetSelfLink() string` + +GetSelfLink returns the SelfLink field if non-nil, zero value otherwise. + +### GetSelfLinkOk + +`func (o *V1ObjectMeta) GetSelfLinkOk() (*string, bool)` + +GetSelfLinkOk returns a tuple with the SelfLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfLink + +`func (o *V1ObjectMeta) SetSelfLink(v string)` + +SetSelfLink sets SelfLink field to given value. + +### HasSelfLink + +`func (o *V1ObjectMeta) HasSelfLink() bool` + +HasSelfLink returns a boolean if a field has been set. + +### GetUid + +`func (o *V1ObjectMeta) GetUid() string` + +GetUid returns the Uid field if non-nil, zero value otherwise. + +### GetUidOk + +`func (o *V1ObjectMeta) GetUidOk() (*string, bool)` + +GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUid + +`func (o *V1ObjectMeta) SetUid(v string)` + +SetUid sets Uid field to given value. + +### HasUid + +`func (o *V1ObjectMeta) HasUid() bool` + +HasUid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1OwnerReference.md b/sdk/sdk-apiserver/docs/V1OwnerReference.md new file mode 100644 index 0000000..2bcb7fb --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1OwnerReference.md @@ -0,0 +1,166 @@ +# V1OwnerReference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | **string** | API version of the referent. | +**BlockOwnerDeletion** | Pointer to **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. | [optional] +**Controller** | Pointer to **bool** | If true, this reference points to the managing controller. | [optional] +**Kind** | **string** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | +**Name** | **string** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | +**Uid** | **string** | UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids | + +## Methods + +### NewV1OwnerReference + +`func NewV1OwnerReference(apiVersion string, kind string, name string, uid string, ) *V1OwnerReference` + +NewV1OwnerReference instantiates a new V1OwnerReference object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1OwnerReferenceWithDefaults + +`func NewV1OwnerReferenceWithDefaults() *V1OwnerReference` + +NewV1OwnerReferenceWithDefaults instantiates a new V1OwnerReference object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1OwnerReference) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1OwnerReference) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1OwnerReference) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + + +### GetBlockOwnerDeletion + +`func (o *V1OwnerReference) GetBlockOwnerDeletion() bool` + +GetBlockOwnerDeletion returns the BlockOwnerDeletion field if non-nil, zero value otherwise. + +### GetBlockOwnerDeletionOk + +`func (o *V1OwnerReference) GetBlockOwnerDeletionOk() (*bool, bool)` + +GetBlockOwnerDeletionOk returns a tuple with the BlockOwnerDeletion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBlockOwnerDeletion + +`func (o *V1OwnerReference) SetBlockOwnerDeletion(v bool)` + +SetBlockOwnerDeletion sets BlockOwnerDeletion field to given value. + +### HasBlockOwnerDeletion + +`func (o *V1OwnerReference) HasBlockOwnerDeletion() bool` + +HasBlockOwnerDeletion returns a boolean if a field has been set. + +### GetController + +`func (o *V1OwnerReference) GetController() bool` + +GetController returns the Controller field if non-nil, zero value otherwise. + +### GetControllerOk + +`func (o *V1OwnerReference) GetControllerOk() (*bool, bool)` + +GetControllerOk returns a tuple with the Controller field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetController + +`func (o *V1OwnerReference) SetController(v bool)` + +SetController sets Controller field to given value. + +### HasController + +`func (o *V1OwnerReference) HasController() bool` + +HasController returns a boolean if a field has been set. + +### GetKind + +`func (o *V1OwnerReference) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1OwnerReference) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1OwnerReference) SetKind(v string)` + +SetKind sets Kind field to given value. + + +### GetName + +`func (o *V1OwnerReference) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1OwnerReference) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1OwnerReference) SetName(v string)` + +SetName sets Name field to given value. + + +### GetUid + +`func (o *V1OwnerReference) GetUid() string` + +GetUid returns the Uid field if non-nil, zero value otherwise. + +### GetUidOk + +`func (o *V1OwnerReference) GetUidOk() (*string, bool)` + +GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUid + +`func (o *V1OwnerReference) SetUid(v string)` + +SetUid sets Uid field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1PodAffinity.md b/sdk/sdk-apiserver/docs/V1PodAffinity.md new file mode 100644 index 0000000..d307a50 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1PodAffinity.md @@ -0,0 +1,82 @@ +# V1PodAffinity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreferredDuringSchedulingIgnoredDuringExecution** | Pointer to [**[]V1WeightedPodAffinityTerm**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**RequiredDuringSchedulingIgnoredDuringExecution** | Pointer to [**[]V1PodAffinityTerm**](V1PodAffinityTerm.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] + +## Methods + +### NewV1PodAffinity + +`func NewV1PodAffinity() *V1PodAffinity` + +NewV1PodAffinity instantiates a new V1PodAffinity object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1PodAffinityWithDefaults + +`func NewV1PodAffinityWithDefaults() *V1PodAffinity` + +NewV1PodAffinityWithDefaults instantiates a new V1PodAffinity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAffinity) GetPreferredDuringSchedulingIgnoredDuringExecution() []V1WeightedPodAffinityTerm` + +GetPreferredDuringSchedulingIgnoredDuringExecution returns the PreferredDuringSchedulingIgnoredDuringExecution field if non-nil, zero value otherwise. + +### GetPreferredDuringSchedulingIgnoredDuringExecutionOk + +`func (o *V1PodAffinity) GetPreferredDuringSchedulingIgnoredDuringExecutionOk() (*[]V1WeightedPodAffinityTerm, bool)` + +GetPreferredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the PreferredDuringSchedulingIgnoredDuringExecution field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAffinity) SetPreferredDuringSchedulingIgnoredDuringExecution(v []V1WeightedPodAffinityTerm)` + +SetPreferredDuringSchedulingIgnoredDuringExecution sets PreferredDuringSchedulingIgnoredDuringExecution field to given value. + +### HasPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAffinity) HasPreferredDuringSchedulingIgnoredDuringExecution() bool` + +HasPreferredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. + +### GetRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAffinity) GetRequiredDuringSchedulingIgnoredDuringExecution() []V1PodAffinityTerm` + +GetRequiredDuringSchedulingIgnoredDuringExecution returns the RequiredDuringSchedulingIgnoredDuringExecution field if non-nil, zero value otherwise. + +### GetRequiredDuringSchedulingIgnoredDuringExecutionOk + +`func (o *V1PodAffinity) GetRequiredDuringSchedulingIgnoredDuringExecutionOk() (*[]V1PodAffinityTerm, bool)` + +GetRequiredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the RequiredDuringSchedulingIgnoredDuringExecution field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAffinity) SetRequiredDuringSchedulingIgnoredDuringExecution(v []V1PodAffinityTerm)` + +SetRequiredDuringSchedulingIgnoredDuringExecution sets RequiredDuringSchedulingIgnoredDuringExecution field to given value. + +### HasRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAffinity) HasRequiredDuringSchedulingIgnoredDuringExecution() bool` + +HasRequiredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1PodAffinityTerm.md b/sdk/sdk-apiserver/docs/V1PodAffinityTerm.md new file mode 100644 index 0000000..75006c9 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1PodAffinityTerm.md @@ -0,0 +1,129 @@ +# V1PodAffinityTerm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LabelSelector** | Pointer to [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**NamespaceSelector** | Pointer to [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**Namespaces** | Pointer to **[]string** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". | [optional] +**TopologyKey** | **string** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | + +## Methods + +### NewV1PodAffinityTerm + +`func NewV1PodAffinityTerm(topologyKey string, ) *V1PodAffinityTerm` + +NewV1PodAffinityTerm instantiates a new V1PodAffinityTerm object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1PodAffinityTermWithDefaults + +`func NewV1PodAffinityTermWithDefaults() *V1PodAffinityTerm` + +NewV1PodAffinityTermWithDefaults instantiates a new V1PodAffinityTerm object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLabelSelector + +`func (o *V1PodAffinityTerm) GetLabelSelector() V1LabelSelector` + +GetLabelSelector returns the LabelSelector field if non-nil, zero value otherwise. + +### GetLabelSelectorOk + +`func (o *V1PodAffinityTerm) GetLabelSelectorOk() (*V1LabelSelector, bool)` + +GetLabelSelectorOk returns a tuple with the LabelSelector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabelSelector + +`func (o *V1PodAffinityTerm) SetLabelSelector(v V1LabelSelector)` + +SetLabelSelector sets LabelSelector field to given value. + +### HasLabelSelector + +`func (o *V1PodAffinityTerm) HasLabelSelector() bool` + +HasLabelSelector returns a boolean if a field has been set. + +### GetNamespaceSelector + +`func (o *V1PodAffinityTerm) GetNamespaceSelector() V1LabelSelector` + +GetNamespaceSelector returns the NamespaceSelector field if non-nil, zero value otherwise. + +### GetNamespaceSelectorOk + +`func (o *V1PodAffinityTerm) GetNamespaceSelectorOk() (*V1LabelSelector, bool)` + +GetNamespaceSelectorOk returns a tuple with the NamespaceSelector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceSelector + +`func (o *V1PodAffinityTerm) SetNamespaceSelector(v V1LabelSelector)` + +SetNamespaceSelector sets NamespaceSelector field to given value. + +### HasNamespaceSelector + +`func (o *V1PodAffinityTerm) HasNamespaceSelector() bool` + +HasNamespaceSelector returns a boolean if a field has been set. + +### GetNamespaces + +`func (o *V1PodAffinityTerm) GetNamespaces() []string` + +GetNamespaces returns the Namespaces field if non-nil, zero value otherwise. + +### GetNamespacesOk + +`func (o *V1PodAffinityTerm) GetNamespacesOk() (*[]string, bool)` + +GetNamespacesOk returns a tuple with the Namespaces field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaces + +`func (o *V1PodAffinityTerm) SetNamespaces(v []string)` + +SetNamespaces sets Namespaces field to given value. + +### HasNamespaces + +`func (o *V1PodAffinityTerm) HasNamespaces() bool` + +HasNamespaces returns a boolean if a field has been set. + +### GetTopologyKey + +`func (o *V1PodAffinityTerm) GetTopologyKey() string` + +GetTopologyKey returns the TopologyKey field if non-nil, zero value otherwise. + +### GetTopologyKeyOk + +`func (o *V1PodAffinityTerm) GetTopologyKeyOk() (*string, bool)` + +GetTopologyKeyOk returns a tuple with the TopologyKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopologyKey + +`func (o *V1PodAffinityTerm) SetTopologyKey(v string)` + +SetTopologyKey sets TopologyKey field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1PodAntiAffinity.md b/sdk/sdk-apiserver/docs/V1PodAntiAffinity.md new file mode 100644 index 0000000..8da8e25 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1PodAntiAffinity.md @@ -0,0 +1,82 @@ +# V1PodAntiAffinity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PreferredDuringSchedulingIgnoredDuringExecution** | Pointer to [**[]V1WeightedPodAffinityTerm**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**RequiredDuringSchedulingIgnoredDuringExecution** | Pointer to [**[]V1PodAffinityTerm**](V1PodAffinityTerm.md) | If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] + +## Methods + +### NewV1PodAntiAffinity + +`func NewV1PodAntiAffinity() *V1PodAntiAffinity` + +NewV1PodAntiAffinity instantiates a new V1PodAntiAffinity object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1PodAntiAffinityWithDefaults + +`func NewV1PodAntiAffinityWithDefaults() *V1PodAntiAffinity` + +NewV1PodAntiAffinityWithDefaults instantiates a new V1PodAntiAffinity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAntiAffinity) GetPreferredDuringSchedulingIgnoredDuringExecution() []V1WeightedPodAffinityTerm` + +GetPreferredDuringSchedulingIgnoredDuringExecution returns the PreferredDuringSchedulingIgnoredDuringExecution field if non-nil, zero value otherwise. + +### GetPreferredDuringSchedulingIgnoredDuringExecutionOk + +`func (o *V1PodAntiAffinity) GetPreferredDuringSchedulingIgnoredDuringExecutionOk() (*[]V1WeightedPodAffinityTerm, bool)` + +GetPreferredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the PreferredDuringSchedulingIgnoredDuringExecution field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAntiAffinity) SetPreferredDuringSchedulingIgnoredDuringExecution(v []V1WeightedPodAffinityTerm)` + +SetPreferredDuringSchedulingIgnoredDuringExecution sets PreferredDuringSchedulingIgnoredDuringExecution field to given value. + +### HasPreferredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAntiAffinity) HasPreferredDuringSchedulingIgnoredDuringExecution() bool` + +HasPreferredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. + +### GetRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAntiAffinity) GetRequiredDuringSchedulingIgnoredDuringExecution() []V1PodAffinityTerm` + +GetRequiredDuringSchedulingIgnoredDuringExecution returns the RequiredDuringSchedulingIgnoredDuringExecution field if non-nil, zero value otherwise. + +### GetRequiredDuringSchedulingIgnoredDuringExecutionOk + +`func (o *V1PodAntiAffinity) GetRequiredDuringSchedulingIgnoredDuringExecutionOk() (*[]V1PodAffinityTerm, bool)` + +GetRequiredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the RequiredDuringSchedulingIgnoredDuringExecution field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAntiAffinity) SetRequiredDuringSchedulingIgnoredDuringExecution(v []V1PodAffinityTerm)` + +SetRequiredDuringSchedulingIgnoredDuringExecution sets RequiredDuringSchedulingIgnoredDuringExecution field to given value. + +### HasRequiredDuringSchedulingIgnoredDuringExecution + +`func (o *V1PodAntiAffinity) HasRequiredDuringSchedulingIgnoredDuringExecution() bool` + +HasRequiredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1Preconditions.md b/sdk/sdk-apiserver/docs/V1Preconditions.md new file mode 100644 index 0000000..c29510e --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1Preconditions.md @@ -0,0 +1,82 @@ +# V1Preconditions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceVersion** | Pointer to **string** | Specifies the target ResourceVersion | [optional] +**Uid** | Pointer to **string** | Specifies the target UID. | [optional] + +## Methods + +### NewV1Preconditions + +`func NewV1Preconditions() *V1Preconditions` + +NewV1Preconditions instantiates a new V1Preconditions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1PreconditionsWithDefaults + +`func NewV1PreconditionsWithDefaults() *V1Preconditions` + +NewV1PreconditionsWithDefaults instantiates a new V1Preconditions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResourceVersion + +`func (o *V1Preconditions) GetResourceVersion() string` + +GetResourceVersion returns the ResourceVersion field if non-nil, zero value otherwise. + +### GetResourceVersionOk + +`func (o *V1Preconditions) GetResourceVersionOk() (*string, bool)` + +GetResourceVersionOk returns a tuple with the ResourceVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceVersion + +`func (o *V1Preconditions) SetResourceVersion(v string)` + +SetResourceVersion sets ResourceVersion field to given value. + +### HasResourceVersion + +`func (o *V1Preconditions) HasResourceVersion() bool` + +HasResourceVersion returns a boolean if a field has been set. + +### GetUid + +`func (o *V1Preconditions) GetUid() string` + +GetUid returns the Uid field if non-nil, zero value otherwise. + +### GetUidOk + +`func (o *V1Preconditions) GetUidOk() (*string, bool)` + +GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUid + +`func (o *V1Preconditions) SetUid(v string)` + +SetUid sets Uid field to given value. + +### HasUid + +`func (o *V1Preconditions) HasUid() bool` + +HasUid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1PreferredSchedulingTerm.md b/sdk/sdk-apiserver/docs/V1PreferredSchedulingTerm.md new file mode 100644 index 0000000..5519440 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1PreferredSchedulingTerm.md @@ -0,0 +1,72 @@ +# V1PreferredSchedulingTerm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | | +**Weight** | **int32** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | + +## Methods + +### NewV1PreferredSchedulingTerm + +`func NewV1PreferredSchedulingTerm(preference V1NodeSelectorTerm, weight int32, ) *V1PreferredSchedulingTerm` + +NewV1PreferredSchedulingTerm instantiates a new V1PreferredSchedulingTerm object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1PreferredSchedulingTermWithDefaults + +`func NewV1PreferredSchedulingTermWithDefaults() *V1PreferredSchedulingTerm` + +NewV1PreferredSchedulingTermWithDefaults instantiates a new V1PreferredSchedulingTerm object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPreference + +`func (o *V1PreferredSchedulingTerm) GetPreference() V1NodeSelectorTerm` + +GetPreference returns the Preference field if non-nil, zero value otherwise. + +### GetPreferenceOk + +`func (o *V1PreferredSchedulingTerm) GetPreferenceOk() (*V1NodeSelectorTerm, bool)` + +GetPreferenceOk returns a tuple with the Preference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreference + +`func (o *V1PreferredSchedulingTerm) SetPreference(v V1NodeSelectorTerm)` + +SetPreference sets Preference field to given value. + + +### GetWeight + +`func (o *V1PreferredSchedulingTerm) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *V1PreferredSchedulingTerm) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *V1PreferredSchedulingTerm) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1Probe.md b/sdk/sdk-apiserver/docs/V1Probe.md new file mode 100644 index 0000000..dd85fa7 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1Probe.md @@ -0,0 +1,290 @@ +# V1Probe + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Exec** | Pointer to [**V1ExecAction**](V1ExecAction.md) | | [optional] +**FailureThreshold** | Pointer to **int32** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] +**Grpc** | Pointer to [**V1GRPCAction**](V1GRPCAction.md) | | [optional] +**HttpGet** | Pointer to [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] +**InitialDelaySeconds** | Pointer to **int32** | Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] +**PeriodSeconds** | Pointer to **int32** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] +**SuccessThreshold** | Pointer to **int32** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. | [optional] +**TcpSocket** | Pointer to [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] +**TerminationGracePeriodSeconds** | Pointer to **int64** | Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. | [optional] +**TimeoutSeconds** | Pointer to **int32** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] + +## Methods + +### NewV1Probe + +`func NewV1Probe() *V1Probe` + +NewV1Probe instantiates a new V1Probe object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ProbeWithDefaults + +`func NewV1ProbeWithDefaults() *V1Probe` + +NewV1ProbeWithDefaults instantiates a new V1Probe object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExec + +`func (o *V1Probe) GetExec() V1ExecAction` + +GetExec returns the Exec field if non-nil, zero value otherwise. + +### GetExecOk + +`func (o *V1Probe) GetExecOk() (*V1ExecAction, bool)` + +GetExecOk returns a tuple with the Exec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExec + +`func (o *V1Probe) SetExec(v V1ExecAction)` + +SetExec sets Exec field to given value. + +### HasExec + +`func (o *V1Probe) HasExec() bool` + +HasExec returns a boolean if a field has been set. + +### GetFailureThreshold + +`func (o *V1Probe) GetFailureThreshold() int32` + +GetFailureThreshold returns the FailureThreshold field if non-nil, zero value otherwise. + +### GetFailureThresholdOk + +`func (o *V1Probe) GetFailureThresholdOk() (*int32, bool)` + +GetFailureThresholdOk returns a tuple with the FailureThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFailureThreshold + +`func (o *V1Probe) SetFailureThreshold(v int32)` + +SetFailureThreshold sets FailureThreshold field to given value. + +### HasFailureThreshold + +`func (o *V1Probe) HasFailureThreshold() bool` + +HasFailureThreshold returns a boolean if a field has been set. + +### GetGrpc + +`func (o *V1Probe) GetGrpc() V1GRPCAction` + +GetGrpc returns the Grpc field if non-nil, zero value otherwise. + +### GetGrpcOk + +`func (o *V1Probe) GetGrpcOk() (*V1GRPCAction, bool)` + +GetGrpcOk returns a tuple with the Grpc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrpc + +`func (o *V1Probe) SetGrpc(v V1GRPCAction)` + +SetGrpc sets Grpc field to given value. + +### HasGrpc + +`func (o *V1Probe) HasGrpc() bool` + +HasGrpc returns a boolean if a field has been set. + +### GetHttpGet + +`func (o *V1Probe) GetHttpGet() V1HTTPGetAction` + +GetHttpGet returns the HttpGet field if non-nil, zero value otherwise. + +### GetHttpGetOk + +`func (o *V1Probe) GetHttpGetOk() (*V1HTTPGetAction, bool)` + +GetHttpGetOk returns a tuple with the HttpGet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHttpGet + +`func (o *V1Probe) SetHttpGet(v V1HTTPGetAction)` + +SetHttpGet sets HttpGet field to given value. + +### HasHttpGet + +`func (o *V1Probe) HasHttpGet() bool` + +HasHttpGet returns a boolean if a field has been set. + +### GetInitialDelaySeconds + +`func (o *V1Probe) GetInitialDelaySeconds() int32` + +GetInitialDelaySeconds returns the InitialDelaySeconds field if non-nil, zero value otherwise. + +### GetInitialDelaySecondsOk + +`func (o *V1Probe) GetInitialDelaySecondsOk() (*int32, bool)` + +GetInitialDelaySecondsOk returns a tuple with the InitialDelaySeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInitialDelaySeconds + +`func (o *V1Probe) SetInitialDelaySeconds(v int32)` + +SetInitialDelaySeconds sets InitialDelaySeconds field to given value. + +### HasInitialDelaySeconds + +`func (o *V1Probe) HasInitialDelaySeconds() bool` + +HasInitialDelaySeconds returns a boolean if a field has been set. + +### GetPeriodSeconds + +`func (o *V1Probe) GetPeriodSeconds() int32` + +GetPeriodSeconds returns the PeriodSeconds field if non-nil, zero value otherwise. + +### GetPeriodSecondsOk + +`func (o *V1Probe) GetPeriodSecondsOk() (*int32, bool)` + +GetPeriodSecondsOk returns a tuple with the PeriodSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeriodSeconds + +`func (o *V1Probe) SetPeriodSeconds(v int32)` + +SetPeriodSeconds sets PeriodSeconds field to given value. + +### HasPeriodSeconds + +`func (o *V1Probe) HasPeriodSeconds() bool` + +HasPeriodSeconds returns a boolean if a field has been set. + +### GetSuccessThreshold + +`func (o *V1Probe) GetSuccessThreshold() int32` + +GetSuccessThreshold returns the SuccessThreshold field if non-nil, zero value otherwise. + +### GetSuccessThresholdOk + +`func (o *V1Probe) GetSuccessThresholdOk() (*int32, bool)` + +GetSuccessThresholdOk returns a tuple with the SuccessThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuccessThreshold + +`func (o *V1Probe) SetSuccessThreshold(v int32)` + +SetSuccessThreshold sets SuccessThreshold field to given value. + +### HasSuccessThreshold + +`func (o *V1Probe) HasSuccessThreshold() bool` + +HasSuccessThreshold returns a boolean if a field has been set. + +### GetTcpSocket + +`func (o *V1Probe) GetTcpSocket() V1TCPSocketAction` + +GetTcpSocket returns the TcpSocket field if non-nil, zero value otherwise. + +### GetTcpSocketOk + +`func (o *V1Probe) GetTcpSocketOk() (*V1TCPSocketAction, bool)` + +GetTcpSocketOk returns a tuple with the TcpSocket field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTcpSocket + +`func (o *V1Probe) SetTcpSocket(v V1TCPSocketAction)` + +SetTcpSocket sets TcpSocket field to given value. + +### HasTcpSocket + +`func (o *V1Probe) HasTcpSocket() bool` + +HasTcpSocket returns a boolean if a field has been set. + +### GetTerminationGracePeriodSeconds + +`func (o *V1Probe) GetTerminationGracePeriodSeconds() int64` + +GetTerminationGracePeriodSeconds returns the TerminationGracePeriodSeconds field if non-nil, zero value otherwise. + +### GetTerminationGracePeriodSecondsOk + +`func (o *V1Probe) GetTerminationGracePeriodSecondsOk() (*int64, bool)` + +GetTerminationGracePeriodSecondsOk returns a tuple with the TerminationGracePeriodSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationGracePeriodSeconds + +`func (o *V1Probe) SetTerminationGracePeriodSeconds(v int64)` + +SetTerminationGracePeriodSeconds sets TerminationGracePeriodSeconds field to given value. + +### HasTerminationGracePeriodSeconds + +`func (o *V1Probe) HasTerminationGracePeriodSeconds() bool` + +HasTerminationGracePeriodSeconds returns a boolean if a field has been set. + +### GetTimeoutSeconds + +`func (o *V1Probe) GetTimeoutSeconds() int32` + +GetTimeoutSeconds returns the TimeoutSeconds field if non-nil, zero value otherwise. + +### GetTimeoutSecondsOk + +`func (o *V1Probe) GetTimeoutSecondsOk() (*int32, bool)` + +GetTimeoutSecondsOk returns a tuple with the TimeoutSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeoutSeconds + +`func (o *V1Probe) SetTimeoutSeconds(v int32)` + +SetTimeoutSeconds sets TimeoutSeconds field to given value. + +### HasTimeoutSeconds + +`func (o *V1Probe) HasTimeoutSeconds() bool` + +HasTimeoutSeconds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ResourceFieldSelector.md b/sdk/sdk-apiserver/docs/V1ResourceFieldSelector.md new file mode 100644 index 0000000..dc74326 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ResourceFieldSelector.md @@ -0,0 +1,103 @@ +# V1ResourceFieldSelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerName** | Pointer to **string** | Container name: required for volumes, optional for env vars | [optional] +**Divisor** | Pointer to **string** | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] +**Resource** | **string** | Required: resource to select | + +## Methods + +### NewV1ResourceFieldSelector + +`func NewV1ResourceFieldSelector(resource string, ) *V1ResourceFieldSelector` + +NewV1ResourceFieldSelector instantiates a new V1ResourceFieldSelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ResourceFieldSelectorWithDefaults + +`func NewV1ResourceFieldSelectorWithDefaults() *V1ResourceFieldSelector` + +NewV1ResourceFieldSelectorWithDefaults instantiates a new V1ResourceFieldSelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerName + +`func (o *V1ResourceFieldSelector) GetContainerName() string` + +GetContainerName returns the ContainerName field if non-nil, zero value otherwise. + +### GetContainerNameOk + +`func (o *V1ResourceFieldSelector) GetContainerNameOk() (*string, bool)` + +GetContainerNameOk returns a tuple with the ContainerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerName + +`func (o *V1ResourceFieldSelector) SetContainerName(v string)` + +SetContainerName sets ContainerName field to given value. + +### HasContainerName + +`func (o *V1ResourceFieldSelector) HasContainerName() bool` + +HasContainerName returns a boolean if a field has been set. + +### GetDivisor + +`func (o *V1ResourceFieldSelector) GetDivisor() string` + +GetDivisor returns the Divisor field if non-nil, zero value otherwise. + +### GetDivisorOk + +`func (o *V1ResourceFieldSelector) GetDivisorOk() (*string, bool)` + +GetDivisorOk returns a tuple with the Divisor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDivisor + +`func (o *V1ResourceFieldSelector) SetDivisor(v string)` + +SetDivisor sets Divisor field to given value. + +### HasDivisor + +`func (o *V1ResourceFieldSelector) HasDivisor() bool` + +HasDivisor returns a boolean if a field has been set. + +### GetResource + +`func (o *V1ResourceFieldSelector) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *V1ResourceFieldSelector) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *V1ResourceFieldSelector) SetResource(v string)` + +SetResource sets Resource field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ResourceRequirements.md b/sdk/sdk-apiserver/docs/V1ResourceRequirements.md new file mode 100644 index 0000000..2067778 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ResourceRequirements.md @@ -0,0 +1,82 @@ +# V1ResourceRequirements + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Limits** | Pointer to **map[string]string** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] +**Requests** | Pointer to **map[string]string** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] + +## Methods + +### NewV1ResourceRequirements + +`func NewV1ResourceRequirements() *V1ResourceRequirements` + +NewV1ResourceRequirements instantiates a new V1ResourceRequirements object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ResourceRequirementsWithDefaults + +`func NewV1ResourceRequirementsWithDefaults() *V1ResourceRequirements` + +NewV1ResourceRequirementsWithDefaults instantiates a new V1ResourceRequirements object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLimits + +`func (o *V1ResourceRequirements) GetLimits() map[string]string` + +GetLimits returns the Limits field if non-nil, zero value otherwise. + +### GetLimitsOk + +`func (o *V1ResourceRequirements) GetLimitsOk() (*map[string]string, bool)` + +GetLimitsOk returns a tuple with the Limits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimits + +`func (o *V1ResourceRequirements) SetLimits(v map[string]string)` + +SetLimits sets Limits field to given value. + +### HasLimits + +`func (o *V1ResourceRequirements) HasLimits() bool` + +HasLimits returns a boolean if a field has been set. + +### GetRequests + +`func (o *V1ResourceRequirements) GetRequests() map[string]string` + +GetRequests returns the Requests field if non-nil, zero value otherwise. + +### GetRequestsOk + +`func (o *V1ResourceRequirements) GetRequestsOk() (*map[string]string, bool)` + +GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequests + +`func (o *V1ResourceRequirements) SetRequests(v map[string]string)` + +SetRequests sets Requests field to given value. + +### HasRequests + +`func (o *V1ResourceRequirements) HasRequests() bool` + +HasRequests returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1SecretEnvSource.md b/sdk/sdk-apiserver/docs/V1SecretEnvSource.md new file mode 100644 index 0000000..a111971 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1SecretEnvSource.md @@ -0,0 +1,82 @@ +# V1SecretEnvSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**Optional** | Pointer to **bool** | Specify whether the Secret must be defined | [optional] + +## Methods + +### NewV1SecretEnvSource + +`func NewV1SecretEnvSource() *V1SecretEnvSource` + +NewV1SecretEnvSource instantiates a new V1SecretEnvSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1SecretEnvSourceWithDefaults + +`func NewV1SecretEnvSourceWithDefaults() *V1SecretEnvSource` + +NewV1SecretEnvSourceWithDefaults instantiates a new V1SecretEnvSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *V1SecretEnvSource) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1SecretEnvSource) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1SecretEnvSource) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1SecretEnvSource) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptional + +`func (o *V1SecretEnvSource) GetOptional() bool` + +GetOptional returns the Optional field if non-nil, zero value otherwise. + +### GetOptionalOk + +`func (o *V1SecretEnvSource) GetOptionalOk() (*bool, bool)` + +GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptional + +`func (o *V1SecretEnvSource) SetOptional(v bool)` + +SetOptional sets Optional field to given value. + +### HasOptional + +`func (o *V1SecretEnvSource) HasOptional() bool` + +HasOptional returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1SecretKeySelector.md b/sdk/sdk-apiserver/docs/V1SecretKeySelector.md new file mode 100644 index 0000000..0968f1f --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1SecretKeySelector.md @@ -0,0 +1,103 @@ +# V1SecretKeySelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The key of the secret to select from. Must be a valid secret key. | +**Name** | Pointer to **string** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**Optional** | Pointer to **bool** | Specify whether the Secret or its key must be defined | [optional] + +## Methods + +### NewV1SecretKeySelector + +`func NewV1SecretKeySelector(key string, ) *V1SecretKeySelector` + +NewV1SecretKeySelector instantiates a new V1SecretKeySelector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1SecretKeySelectorWithDefaults + +`func NewV1SecretKeySelectorWithDefaults() *V1SecretKeySelector` + +NewV1SecretKeySelectorWithDefaults instantiates a new V1SecretKeySelector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKey + +`func (o *V1SecretKeySelector) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *V1SecretKeySelector) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *V1SecretKeySelector) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetName + +`func (o *V1SecretKeySelector) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1SecretKeySelector) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1SecretKeySelector) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1SecretKeySelector) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptional + +`func (o *V1SecretKeySelector) GetOptional() bool` + +GetOptional returns the Optional field if non-nil, zero value otherwise. + +### GetOptionalOk + +`func (o *V1SecretKeySelector) GetOptionalOk() (*bool, bool)` + +GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptional + +`func (o *V1SecretKeySelector) SetOptional(v bool)` + +SetOptional sets Optional field to given value. + +### HasOptional + +`func (o *V1SecretKeySelector) HasOptional() bool` + +HasOptional returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1SecretVolumeSource.md b/sdk/sdk-apiserver/docs/V1SecretVolumeSource.md new file mode 100644 index 0000000..34f8302 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1SecretVolumeSource.md @@ -0,0 +1,134 @@ +# V1SecretVolumeSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultMode** | Pointer to **int32** | defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] +**Items** | Pointer to [**[]V1KeyToPath**](V1KeyToPath.md) | items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] +**Optional** | Pointer to **bool** | optional field specify whether the Secret or its keys must be defined | [optional] +**SecretName** | Pointer to **string** | secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] + +## Methods + +### NewV1SecretVolumeSource + +`func NewV1SecretVolumeSource() *V1SecretVolumeSource` + +NewV1SecretVolumeSource instantiates a new V1SecretVolumeSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1SecretVolumeSourceWithDefaults + +`func NewV1SecretVolumeSourceWithDefaults() *V1SecretVolumeSource` + +NewV1SecretVolumeSourceWithDefaults instantiates a new V1SecretVolumeSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDefaultMode + +`func (o *V1SecretVolumeSource) GetDefaultMode() int32` + +GetDefaultMode returns the DefaultMode field if non-nil, zero value otherwise. + +### GetDefaultModeOk + +`func (o *V1SecretVolumeSource) GetDefaultModeOk() (*int32, bool)` + +GetDefaultModeOk returns a tuple with the DefaultMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultMode + +`func (o *V1SecretVolumeSource) SetDefaultMode(v int32)` + +SetDefaultMode sets DefaultMode field to given value. + +### HasDefaultMode + +`func (o *V1SecretVolumeSource) HasDefaultMode() bool` + +HasDefaultMode returns a boolean if a field has been set. + +### GetItems + +`func (o *V1SecretVolumeSource) GetItems() []V1KeyToPath` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *V1SecretVolumeSource) GetItemsOk() (*[]V1KeyToPath, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *V1SecretVolumeSource) SetItems(v []V1KeyToPath)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *V1SecretVolumeSource) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### GetOptional + +`func (o *V1SecretVolumeSource) GetOptional() bool` + +GetOptional returns the Optional field if non-nil, zero value otherwise. + +### GetOptionalOk + +`func (o *V1SecretVolumeSource) GetOptionalOk() (*bool, bool)` + +GetOptionalOk returns a tuple with the Optional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptional + +`func (o *V1SecretVolumeSource) SetOptional(v bool)` + +SetOptional sets Optional field to given value. + +### HasOptional + +`func (o *V1SecretVolumeSource) HasOptional() bool` + +HasOptional returns a boolean if a field has been set. + +### GetSecretName + +`func (o *V1SecretVolumeSource) GetSecretName() string` + +GetSecretName returns the SecretName field if non-nil, zero value otherwise. + +### GetSecretNameOk + +`func (o *V1SecretVolumeSource) GetSecretNameOk() (*string, bool)` + +GetSecretNameOk returns a tuple with the SecretName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecretName + +`func (o *V1SecretVolumeSource) SetSecretName(v string)` + +SetSecretName sets SecretName field to given value. + +### HasSecretName + +`func (o *V1SecretVolumeSource) HasSecretName() bool` + +HasSecretName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1ServerAddressByClientCIDR.md b/sdk/sdk-apiserver/docs/V1ServerAddressByClientCIDR.md new file mode 100644 index 0000000..4b5dcec --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1ServerAddressByClientCIDR.md @@ -0,0 +1,72 @@ +# V1ServerAddressByClientCIDR + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientCIDR** | **string** | The CIDR with which clients can match their IP to figure out the server address that they should use. | +**ServerAddress** | **string** | Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. | + +## Methods + +### NewV1ServerAddressByClientCIDR + +`func NewV1ServerAddressByClientCIDR(clientCIDR string, serverAddress string, ) *V1ServerAddressByClientCIDR` + +NewV1ServerAddressByClientCIDR instantiates a new V1ServerAddressByClientCIDR object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1ServerAddressByClientCIDRWithDefaults + +`func NewV1ServerAddressByClientCIDRWithDefaults() *V1ServerAddressByClientCIDR` + +NewV1ServerAddressByClientCIDRWithDefaults instantiates a new V1ServerAddressByClientCIDR object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientCIDR + +`func (o *V1ServerAddressByClientCIDR) GetClientCIDR() string` + +GetClientCIDR returns the ClientCIDR field if non-nil, zero value otherwise. + +### GetClientCIDROk + +`func (o *V1ServerAddressByClientCIDR) GetClientCIDROk() (*string, bool)` + +GetClientCIDROk returns a tuple with the ClientCIDR field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientCIDR + +`func (o *V1ServerAddressByClientCIDR) SetClientCIDR(v string)` + +SetClientCIDR sets ClientCIDR field to given value. + + +### GetServerAddress + +`func (o *V1ServerAddressByClientCIDR) GetServerAddress() string` + +GetServerAddress returns the ServerAddress field if non-nil, zero value otherwise. + +### GetServerAddressOk + +`func (o *V1ServerAddressByClientCIDR) GetServerAddressOk() (*string, bool)` + +GetServerAddressOk returns a tuple with the ServerAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServerAddress + +`func (o *V1ServerAddressByClientCIDR) SetServerAddress(v string)` + +SetServerAddress sets ServerAddress field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1Status.md b/sdk/sdk-apiserver/docs/V1Status.md new file mode 100644 index 0000000..2106d10 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1Status.md @@ -0,0 +1,238 @@ +# V1Status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | Pointer to **string** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**Code** | Pointer to **int32** | Suggested HTTP return code for this status, 0 if not set. | [optional] +**Details** | Pointer to [**V1StatusDetails**](V1StatusDetails.md) | | [optional] +**Kind** | Pointer to **string** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Message** | Pointer to **string** | A human-readable description of the status of this operation. | [optional] +**Metadata** | Pointer to [**V1ListMeta**](V1ListMeta.md) | | [optional] +**Reason** | Pointer to **string** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] +**Status** | Pointer to **string** | Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] + +## Methods + +### NewV1Status + +`func NewV1Status() *V1Status` + +NewV1Status instantiates a new V1Status object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1StatusWithDefaults + +`func NewV1StatusWithDefaults() *V1Status` + +NewV1StatusWithDefaults instantiates a new V1Status object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApiVersion + +`func (o *V1Status) GetApiVersion() string` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *V1Status) GetApiVersionOk() (*string, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *V1Status) SetApiVersion(v string)` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *V1Status) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### GetCode + +`func (o *V1Status) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *V1Status) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *V1Status) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *V1Status) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetDetails + +`func (o *V1Status) GetDetails() V1StatusDetails` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *V1Status) GetDetailsOk() (*V1StatusDetails, bool)` + +GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetails + +`func (o *V1Status) SetDetails(v V1StatusDetails)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *V1Status) HasDetails() bool` + +HasDetails returns a boolean if a field has been set. + +### GetKind + +`func (o *V1Status) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1Status) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1Status) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *V1Status) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetMessage + +`func (o *V1Status) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *V1Status) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *V1Status) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *V1Status) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetMetadata + +`func (o *V1Status) GetMetadata() V1ListMeta` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *V1Status) GetMetadataOk() (*V1ListMeta, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *V1Status) SetMetadata(v V1ListMeta)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *V1Status) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetReason + +`func (o *V1Status) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *V1Status) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *V1Status) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *V1Status) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetStatus + +`func (o *V1Status) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V1Status) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V1Status) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V1Status) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1StatusCause.md b/sdk/sdk-apiserver/docs/V1StatusCause.md new file mode 100644 index 0000000..1ea6ce3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1StatusCause.md @@ -0,0 +1,108 @@ +# V1StatusCause + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | Pointer to **string** | The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" | [optional] +**Message** | Pointer to **string** | A human-readable description of the cause of the error. This field may be presented as-is to a reader. | [optional] +**Reason** | Pointer to **string** | A machine-readable description of the cause of the error. If this value is empty there is no information available. | [optional] + +## Methods + +### NewV1StatusCause + +`func NewV1StatusCause() *V1StatusCause` + +NewV1StatusCause instantiates a new V1StatusCause object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1StatusCauseWithDefaults + +`func NewV1StatusCauseWithDefaults() *V1StatusCause` + +NewV1StatusCauseWithDefaults instantiates a new V1StatusCause object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetField + +`func (o *V1StatusCause) GetField() string` + +GetField returns the Field field if non-nil, zero value otherwise. + +### GetFieldOk + +`func (o *V1StatusCause) GetFieldOk() (*string, bool)` + +GetFieldOk returns a tuple with the Field field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetField + +`func (o *V1StatusCause) SetField(v string)` + +SetField sets Field field to given value. + +### HasField + +`func (o *V1StatusCause) HasField() bool` + +HasField returns a boolean if a field has been set. + +### GetMessage + +`func (o *V1StatusCause) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *V1StatusCause) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *V1StatusCause) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *V1StatusCause) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetReason + +`func (o *V1StatusCause) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *V1StatusCause) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *V1StatusCause) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *V1StatusCause) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1StatusDetails.md b/sdk/sdk-apiserver/docs/V1StatusDetails.md new file mode 100644 index 0000000..b6dc5c6 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1StatusDetails.md @@ -0,0 +1,186 @@ +# V1StatusDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Causes** | Pointer to [**[]V1StatusCause**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] +**Group** | Pointer to **string** | The group attribute of the resource associated with the status StatusReason. | [optional] +**Kind** | Pointer to **string** | The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**Name** | Pointer to **string** | The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). | [optional] +**RetryAfterSeconds** | Pointer to **int32** | If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. | [optional] +**Uid** | Pointer to **string** | UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids | [optional] + +## Methods + +### NewV1StatusDetails + +`func NewV1StatusDetails() *V1StatusDetails` + +NewV1StatusDetails instantiates a new V1StatusDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1StatusDetailsWithDefaults + +`func NewV1StatusDetailsWithDefaults() *V1StatusDetails` + +NewV1StatusDetailsWithDefaults instantiates a new V1StatusDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCauses + +`func (o *V1StatusDetails) GetCauses() []V1StatusCause` + +GetCauses returns the Causes field if non-nil, zero value otherwise. + +### GetCausesOk + +`func (o *V1StatusDetails) GetCausesOk() (*[]V1StatusCause, bool)` + +GetCausesOk returns a tuple with the Causes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCauses + +`func (o *V1StatusDetails) SetCauses(v []V1StatusCause)` + +SetCauses sets Causes field to given value. + +### HasCauses + +`func (o *V1StatusDetails) HasCauses() bool` + +HasCauses returns a boolean if a field has been set. + +### GetGroup + +`func (o *V1StatusDetails) GetGroup() string` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *V1StatusDetails) GetGroupOk() (*string, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *V1StatusDetails) SetGroup(v string)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *V1StatusDetails) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetKind + +`func (o *V1StatusDetails) GetKind() string` + +GetKind returns the Kind field if non-nil, zero value otherwise. + +### GetKindOk + +`func (o *V1StatusDetails) GetKindOk() (*string, bool)` + +GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKind + +`func (o *V1StatusDetails) SetKind(v string)` + +SetKind sets Kind field to given value. + +### HasKind + +`func (o *V1StatusDetails) HasKind() bool` + +HasKind returns a boolean if a field has been set. + +### GetName + +`func (o *V1StatusDetails) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1StatusDetails) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1StatusDetails) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V1StatusDetails) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetRetryAfterSeconds + +`func (o *V1StatusDetails) GetRetryAfterSeconds() int32` + +GetRetryAfterSeconds returns the RetryAfterSeconds field if non-nil, zero value otherwise. + +### GetRetryAfterSecondsOk + +`func (o *V1StatusDetails) GetRetryAfterSecondsOk() (*int32, bool)` + +GetRetryAfterSecondsOk returns a tuple with the RetryAfterSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRetryAfterSeconds + +`func (o *V1StatusDetails) SetRetryAfterSeconds(v int32)` + +SetRetryAfterSeconds sets RetryAfterSeconds field to given value. + +### HasRetryAfterSeconds + +`func (o *V1StatusDetails) HasRetryAfterSeconds() bool` + +HasRetryAfterSeconds returns a boolean if a field has been set. + +### GetUid + +`func (o *V1StatusDetails) GetUid() string` + +GetUid returns the Uid field if non-nil, zero value otherwise. + +### GetUidOk + +`func (o *V1StatusDetails) GetUidOk() (*string, bool)` + +GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUid + +`func (o *V1StatusDetails) SetUid(v string)` + +SetUid sets Uid field to given value. + +### HasUid + +`func (o *V1StatusDetails) HasUid() bool` + +HasUid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1TCPSocketAction.md b/sdk/sdk-apiserver/docs/V1TCPSocketAction.md new file mode 100644 index 0000000..0fdcc4f --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1TCPSocketAction.md @@ -0,0 +1,77 @@ +# V1TCPSocketAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | Optional: Host name to connect to, defaults to the pod IP. | [optional] +**Port** | **map[string]interface{}** | Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | + +## Methods + +### NewV1TCPSocketAction + +`func NewV1TCPSocketAction(port map[string]interface{}, ) *V1TCPSocketAction` + +NewV1TCPSocketAction instantiates a new V1TCPSocketAction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1TCPSocketActionWithDefaults + +`func NewV1TCPSocketActionWithDefaults() *V1TCPSocketAction` + +NewV1TCPSocketActionWithDefaults instantiates a new V1TCPSocketAction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHost + +`func (o *V1TCPSocketAction) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *V1TCPSocketAction) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *V1TCPSocketAction) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *V1TCPSocketAction) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetPort + +`func (o *V1TCPSocketAction) GetPort() map[string]interface{}` + +GetPort returns the Port field if non-nil, zero value otherwise. + +### GetPortOk + +`func (o *V1TCPSocketAction) GetPortOk() (*map[string]interface{}, bool)` + +GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPort + +`func (o *V1TCPSocketAction) SetPort(v map[string]interface{})` + +SetPort sets Port field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1Toleration.md b/sdk/sdk-apiserver/docs/V1Toleration.md new file mode 100644 index 0000000..017bc63 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1Toleration.md @@ -0,0 +1,160 @@ +# V1Toleration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Effect** | Pointer to **string** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. Possible enum values: - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. | [optional] +**Key** | Pointer to **string** | Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. | [optional] +**Operator** | Pointer to **string** | Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Possible enum values: - `\"Equal\"` - `\"Exists\"` | [optional] +**TolerationSeconds** | Pointer to **int64** | TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. | [optional] +**Value** | Pointer to **string** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] + +## Methods + +### NewV1Toleration + +`func NewV1Toleration() *V1Toleration` + +NewV1Toleration instantiates a new V1Toleration object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1TolerationWithDefaults + +`func NewV1TolerationWithDefaults() *V1Toleration` + +NewV1TolerationWithDefaults instantiates a new V1Toleration object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEffect + +`func (o *V1Toleration) GetEffect() string` + +GetEffect returns the Effect field if non-nil, zero value otherwise. + +### GetEffectOk + +`func (o *V1Toleration) GetEffectOk() (*string, bool)` + +GetEffectOk returns a tuple with the Effect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEffect + +`func (o *V1Toleration) SetEffect(v string)` + +SetEffect sets Effect field to given value. + +### HasEffect + +`func (o *V1Toleration) HasEffect() bool` + +HasEffect returns a boolean if a field has been set. + +### GetKey + +`func (o *V1Toleration) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *V1Toleration) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *V1Toleration) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *V1Toleration) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetOperator + +`func (o *V1Toleration) GetOperator() string` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *V1Toleration) GetOperatorOk() (*string, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *V1Toleration) SetOperator(v string)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *V1Toleration) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetTolerationSeconds + +`func (o *V1Toleration) GetTolerationSeconds() int64` + +GetTolerationSeconds returns the TolerationSeconds field if non-nil, zero value otherwise. + +### GetTolerationSecondsOk + +`func (o *V1Toleration) GetTolerationSecondsOk() (*int64, bool)` + +GetTolerationSecondsOk returns a tuple with the TolerationSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTolerationSeconds + +`func (o *V1Toleration) SetTolerationSeconds(v int64)` + +SetTolerationSeconds sets TolerationSeconds field to given value. + +### HasTolerationSeconds + +`func (o *V1Toleration) HasTolerationSeconds() bool` + +HasTolerationSeconds returns a boolean if a field has been set. + +### GetValue + +`func (o *V1Toleration) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V1Toleration) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *V1Toleration) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V1Toleration) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1VolumeMount.md b/sdk/sdk-apiserver/docs/V1VolumeMount.md new file mode 100644 index 0000000..a2c967d --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1VolumeMount.md @@ -0,0 +1,176 @@ +# V1VolumeMount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MountPath** | **string** | Path within the container at which the volume should be mounted. Must not contain ':'. | +**MountPropagation** | Pointer to **string** | mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. | [optional] +**Name** | **string** | This must match the Name of a Volume. | +**ReadOnly** | Pointer to **bool** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] +**SubPath** | Pointer to **string** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] +**SubPathExpr** | Pointer to **string** | Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. | [optional] + +## Methods + +### NewV1VolumeMount + +`func NewV1VolumeMount(mountPath string, name string, ) *V1VolumeMount` + +NewV1VolumeMount instantiates a new V1VolumeMount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1VolumeMountWithDefaults + +`func NewV1VolumeMountWithDefaults() *V1VolumeMount` + +NewV1VolumeMountWithDefaults instantiates a new V1VolumeMount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMountPath + +`func (o *V1VolumeMount) GetMountPath() string` + +GetMountPath returns the MountPath field if non-nil, zero value otherwise. + +### GetMountPathOk + +`func (o *V1VolumeMount) GetMountPathOk() (*string, bool)` + +GetMountPathOk returns a tuple with the MountPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountPath + +`func (o *V1VolumeMount) SetMountPath(v string)` + +SetMountPath sets MountPath field to given value. + + +### GetMountPropagation + +`func (o *V1VolumeMount) GetMountPropagation() string` + +GetMountPropagation returns the MountPropagation field if non-nil, zero value otherwise. + +### GetMountPropagationOk + +`func (o *V1VolumeMount) GetMountPropagationOk() (*string, bool)` + +GetMountPropagationOk returns a tuple with the MountPropagation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountPropagation + +`func (o *V1VolumeMount) SetMountPropagation(v string)` + +SetMountPropagation sets MountPropagation field to given value. + +### HasMountPropagation + +`func (o *V1VolumeMount) HasMountPropagation() bool` + +HasMountPropagation returns a boolean if a field has been set. + +### GetName + +`func (o *V1VolumeMount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V1VolumeMount) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *V1VolumeMount) SetName(v string)` + +SetName sets Name field to given value. + + +### GetReadOnly + +`func (o *V1VolumeMount) GetReadOnly() bool` + +GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise. + +### GetReadOnlyOk + +`func (o *V1VolumeMount) GetReadOnlyOk() (*bool, bool)` + +GetReadOnlyOk returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadOnly + +`func (o *V1VolumeMount) SetReadOnly(v bool)` + +SetReadOnly sets ReadOnly field to given value. + +### HasReadOnly + +`func (o *V1VolumeMount) HasReadOnly() bool` + +HasReadOnly returns a boolean if a field has been set. + +### GetSubPath + +`func (o *V1VolumeMount) GetSubPath() string` + +GetSubPath returns the SubPath field if non-nil, zero value otherwise. + +### GetSubPathOk + +`func (o *V1VolumeMount) GetSubPathOk() (*string, bool)` + +GetSubPathOk returns a tuple with the SubPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubPath + +`func (o *V1VolumeMount) SetSubPath(v string)` + +SetSubPath sets SubPath field to given value. + +### HasSubPath + +`func (o *V1VolumeMount) HasSubPath() bool` + +HasSubPath returns a boolean if a field has been set. + +### GetSubPathExpr + +`func (o *V1VolumeMount) GetSubPathExpr() string` + +GetSubPathExpr returns the SubPathExpr field if non-nil, zero value otherwise. + +### GetSubPathExprOk + +`func (o *V1VolumeMount) GetSubPathExprOk() (*string, bool)` + +GetSubPathExprOk returns a tuple with the SubPathExpr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubPathExpr + +`func (o *V1VolumeMount) SetSubPathExpr(v string)` + +SetSubPathExpr sets SubPathExpr field to given value. + +### HasSubPathExpr + +`func (o *V1VolumeMount) HasSubPathExpr() bool` + +HasSubPathExpr returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1WatchEvent.md b/sdk/sdk-apiserver/docs/V1WatchEvent.md new file mode 100644 index 0000000..e45daf5 --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1WatchEvent.md @@ -0,0 +1,72 @@ +# V1WatchEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Object** | **map[string]interface{}** | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | +**Type** | **string** | | + +## Methods + +### NewV1WatchEvent + +`func NewV1WatchEvent(object map[string]interface{}, type_ string, ) *V1WatchEvent` + +NewV1WatchEvent instantiates a new V1WatchEvent object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1WatchEventWithDefaults + +`func NewV1WatchEventWithDefaults() *V1WatchEvent` + +NewV1WatchEventWithDefaults instantiates a new V1WatchEvent object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObject + +`func (o *V1WatchEvent) GetObject() map[string]interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *V1WatchEvent) GetObjectOk() (*map[string]interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *V1WatchEvent) SetObject(v map[string]interface{})` + +SetObject sets Object field to given value. + + +### GetType + +`func (o *V1WatchEvent) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V1WatchEvent) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *V1WatchEvent) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/V1WeightedPodAffinityTerm.md b/sdk/sdk-apiserver/docs/V1WeightedPodAffinityTerm.md new file mode 100644 index 0000000..8a9a65d --- /dev/null +++ b/sdk/sdk-apiserver/docs/V1WeightedPodAffinityTerm.md @@ -0,0 +1,72 @@ +# V1WeightedPodAffinityTerm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PodAffinityTerm** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | | +**Weight** | **int32** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | + +## Methods + +### NewV1WeightedPodAffinityTerm + +`func NewV1WeightedPodAffinityTerm(podAffinityTerm V1PodAffinityTerm, weight int32, ) *V1WeightedPodAffinityTerm` + +NewV1WeightedPodAffinityTerm instantiates a new V1WeightedPodAffinityTerm object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1WeightedPodAffinityTermWithDefaults + +`func NewV1WeightedPodAffinityTermWithDefaults() *V1WeightedPodAffinityTerm` + +NewV1WeightedPodAffinityTermWithDefaults instantiates a new V1WeightedPodAffinityTerm object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPodAffinityTerm + +`func (o *V1WeightedPodAffinityTerm) GetPodAffinityTerm() V1PodAffinityTerm` + +GetPodAffinityTerm returns the PodAffinityTerm field if non-nil, zero value otherwise. + +### GetPodAffinityTermOk + +`func (o *V1WeightedPodAffinityTerm) GetPodAffinityTermOk() (*V1PodAffinityTerm, bool)` + +GetPodAffinityTermOk returns a tuple with the PodAffinityTerm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPodAffinityTerm + +`func (o *V1WeightedPodAffinityTerm) SetPodAffinityTerm(v V1PodAffinityTerm)` + +SetPodAffinityTerm sets PodAffinityTerm field to given value. + + +### GetWeight + +`func (o *V1WeightedPodAffinityTerm) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *V1WeightedPodAffinityTerm) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *V1WeightedPodAffinityTerm) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/docs/VersionApi.md b/sdk/sdk-apiserver/docs/VersionApi.md new file mode 100644 index 0000000..1b34468 --- /dev/null +++ b/sdk/sdk-apiserver/docs/VersionApi.md @@ -0,0 +1,70 @@ +# \VersionApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetCodeVersion**](VersionApi.md#GetCodeVersion) | **Get** /version/ | + + + +## GetCodeVersion + +> VersionInfo GetCodeVersion(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VersionApi.GetCodeVersion(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionApi.GetCodeVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCodeVersion`: VersionInfo + fmt.Fprintf(os.Stdout, "Response from `VersionApi.GetCodeVersion`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCodeVersionRequest struct via the builder pattern + + +### Return type + +[**VersionInfo**](VersionInfo.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/sdk/sdk-apiserver/docs/VersionInfo.md b/sdk/sdk-apiserver/docs/VersionInfo.md new file mode 100644 index 0000000..d4a29b3 --- /dev/null +++ b/sdk/sdk-apiserver/docs/VersionInfo.md @@ -0,0 +1,219 @@ +# VersionInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildDate** | **string** | | +**Compiler** | **string** | | +**GitCommit** | **string** | | +**GitTreeState** | **string** | | +**GitVersion** | **string** | | +**GoVersion** | **string** | | +**Major** | **string** | | +**Minor** | **string** | | +**Platform** | **string** | | + +## Methods + +### NewVersionInfo + +`func NewVersionInfo(buildDate string, compiler string, gitCommit string, gitTreeState string, gitVersion string, goVersion string, major string, minor string, platform string, ) *VersionInfo` + +NewVersionInfo instantiates a new VersionInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVersionInfoWithDefaults + +`func NewVersionInfoWithDefaults() *VersionInfo` + +NewVersionInfoWithDefaults instantiates a new VersionInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildDate + +`func (o *VersionInfo) GetBuildDate() string` + +GetBuildDate returns the BuildDate field if non-nil, zero value otherwise. + +### GetBuildDateOk + +`func (o *VersionInfo) GetBuildDateOk() (*string, bool)` + +GetBuildDateOk returns a tuple with the BuildDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildDate + +`func (o *VersionInfo) SetBuildDate(v string)` + +SetBuildDate sets BuildDate field to given value. + + +### GetCompiler + +`func (o *VersionInfo) GetCompiler() string` + +GetCompiler returns the Compiler field if non-nil, zero value otherwise. + +### GetCompilerOk + +`func (o *VersionInfo) GetCompilerOk() (*string, bool)` + +GetCompilerOk returns a tuple with the Compiler field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompiler + +`func (o *VersionInfo) SetCompiler(v string)` + +SetCompiler sets Compiler field to given value. + + +### GetGitCommit + +`func (o *VersionInfo) GetGitCommit() string` + +GetGitCommit returns the GitCommit field if non-nil, zero value otherwise. + +### GetGitCommitOk + +`func (o *VersionInfo) GetGitCommitOk() (*string, bool)` + +GetGitCommitOk returns a tuple with the GitCommit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGitCommit + +`func (o *VersionInfo) SetGitCommit(v string)` + +SetGitCommit sets GitCommit field to given value. + + +### GetGitTreeState + +`func (o *VersionInfo) GetGitTreeState() string` + +GetGitTreeState returns the GitTreeState field if non-nil, zero value otherwise. + +### GetGitTreeStateOk + +`func (o *VersionInfo) GetGitTreeStateOk() (*string, bool)` + +GetGitTreeStateOk returns a tuple with the GitTreeState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGitTreeState + +`func (o *VersionInfo) SetGitTreeState(v string)` + +SetGitTreeState sets GitTreeState field to given value. + + +### GetGitVersion + +`func (o *VersionInfo) GetGitVersion() string` + +GetGitVersion returns the GitVersion field if non-nil, zero value otherwise. + +### GetGitVersionOk + +`func (o *VersionInfo) GetGitVersionOk() (*string, bool)` + +GetGitVersionOk returns a tuple with the GitVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGitVersion + +`func (o *VersionInfo) SetGitVersion(v string)` + +SetGitVersion sets GitVersion field to given value. + + +### GetGoVersion + +`func (o *VersionInfo) GetGoVersion() string` + +GetGoVersion returns the GoVersion field if non-nil, zero value otherwise. + +### GetGoVersionOk + +`func (o *VersionInfo) GetGoVersionOk() (*string, bool)` + +GetGoVersionOk returns a tuple with the GoVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoVersion + +`func (o *VersionInfo) SetGoVersion(v string)` + +SetGoVersion sets GoVersion field to given value. + + +### GetMajor + +`func (o *VersionInfo) GetMajor() string` + +GetMajor returns the Major field if non-nil, zero value otherwise. + +### GetMajorOk + +`func (o *VersionInfo) GetMajorOk() (*string, bool)` + +GetMajorOk returns a tuple with the Major field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMajor + +`func (o *VersionInfo) SetMajor(v string)` + +SetMajor sets Major field to given value. + + +### GetMinor + +`func (o *VersionInfo) GetMinor() string` + +GetMinor returns the Minor field if non-nil, zero value otherwise. + +### GetMinorOk + +`func (o *VersionInfo) GetMinorOk() (*string, bool)` + +GetMinorOk returns a tuple with the Minor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinor + +`func (o *VersionInfo) SetMinor(v string)` + +SetMinor sets Minor field to given value. + + +### GetPlatform + +`func (o *VersionInfo) GetPlatform() string` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *VersionInfo) GetPlatformOk() (*string, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *VersionInfo) SetPlatform(v string)` + +SetPlatform sets Platform field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/sdk/sdk-apiserver/git_push.sh b/sdk/sdk-apiserver/git_push.sh new file mode 100644 index 0000000..d85f3e4 --- /dev/null +++ b/sdk/sdk-apiserver/git_push.sh @@ -0,0 +1,61 @@ +#!/bin/sh +# +# Copyright © 2023-2024 StreamNative Inc. +# + +# 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" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="kubernetes-client" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="go" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdk/sdk-apiserver/go.mod b/sdk/sdk-apiserver/go.mod new file mode 100644 index 0000000..276dd21 --- /dev/null +++ b/sdk/sdk-apiserver/go.mod @@ -0,0 +1,8 @@ +module github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver + +go 1.13 + +require ( + github.com/google/go-cmp v0.6.0 // indirect + golang.org/x/oauth2 v0.25.0 +) diff --git a/sdk/sdk-apiserver/go.sum b/sdk/sdk-apiserver/go.sum new file mode 100644 index 0000000..f7db442 --- /dev/null +++ b/sdk/sdk-apiserver/go.sum @@ -0,0 +1,2 @@ +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go new file mode 100644 index 0000000..88619ef --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage struct { + // Bucket is required if you want to use cloud storage. + Bucket *string `json:"bucket,omitempty"` + // Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket. + Path *string `json:"path,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorageWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorageWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage{} + return &this +} + +// GetBucket returns the Bucket field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetBucket() string { + if o == nil || o.Bucket == nil { + var ret string + return ret + } + return *o.Bucket +} + +// GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetBucketOk() (*string, bool) { + if o == nil || o.Bucket == nil { + return nil, false + } + return o.Bucket, true +} + +// HasBucket returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) HasBucket() bool { + if o != nil && o.Bucket != nil { + return true + } + + return false +} + +// SetBucket gets a reference to the given string and assigns it to the Bucket field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) SetBucket(v string) { + o.Bucket = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetPath() string { + if o == nil || o.Path == nil { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) GetPathOk() (*string, bool) { + if o == nil || o.Path == nil { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) HasPath() bool { + if o != nil && o.Path != nil { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) SetPath(v string) { + o.Path = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Bucket != nil { + toSerialize["bucket"] = o.Bucket + } + if o.Path != nil { + toSerialize["path"] = o.Path + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go new file mode 100644 index 0000000..30c4fbf --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go @@ -0,0 +1,251 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition struct { + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition(status string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition{} + this.Status = status + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition{} + return &this +} + +// GetLastTransitionTime returns the LastTransitionTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetLastTransitionTime() time.Time { + if o == nil || o.LastTransitionTime == nil { + var ret time.Time + return ret + } + return *o.LastTransitionTime +} + +// GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetLastTransitionTimeOk() (*time.Time, bool) { + if o == nil || o.LastTransitionTime == nil { + return nil, false + } + return o.LastTransitionTime, true +} + +// HasLastTransitionTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) HasLastTransitionTime() bool { + if o != nil && o.LastTransitionTime != nil { + return true + } + + return false +} + +// SetLastTransitionTime gets a reference to the given time.Time and assigns it to the LastTransitionTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetLastTransitionTime(v time.Time) { + o.LastTransitionTime = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetMessage(v string) { + o.Message = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetReason(v string) { + o.Reason = &v +} + +// GetStatus returns the Status field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetStatus(v string) { + o.Status = v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastTransitionTime != nil { + toSerialize["lastTransitionTime"] = o.LastTransitionTime + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go new file mode 100644 index 0000000..68463cc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount IamAccount +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go new file mode 100644 index 0000000..5a5e3d2 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList(items []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go new file mode 100644 index 0000000..d8943d5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go @@ -0,0 +1,227 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec IamAccountSpec defines the desired state of IamAccount +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec struct { + AdditionalCloudStorage []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage `json:"additionalCloudStorage,omitempty"` + CloudStorage *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage `json:"cloudStorage,omitempty"` + DisableIamRoleCreation *bool `json:"disableIamRoleCreation,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec{} + return &this +} + +// GetAdditionalCloudStorage returns the AdditionalCloudStorage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetAdditionalCloudStorage() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage { + if o == nil || o.AdditionalCloudStorage == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage + return ret + } + return o.AdditionalCloudStorage +} + +// GetAdditionalCloudStorageOk returns a tuple with the AdditionalCloudStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetAdditionalCloudStorageOk() ([]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage, bool) { + if o == nil || o.AdditionalCloudStorage == nil { + return nil, false + } + return o.AdditionalCloudStorage, true +} + +// HasAdditionalCloudStorage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasAdditionalCloudStorage() bool { + if o != nil && o.AdditionalCloudStorage != nil { + return true + } + + return false +} + +// SetAdditionalCloudStorage gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage and assigns it to the AdditionalCloudStorage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetAdditionalCloudStorage(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) { + o.AdditionalCloudStorage = v +} + +// GetCloudStorage returns the CloudStorage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetCloudStorage() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage { + if o == nil || o.CloudStorage == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage + return ret + } + return *o.CloudStorage +} + +// GetCloudStorageOk returns a tuple with the CloudStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetCloudStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage, bool) { + if o == nil || o.CloudStorage == nil { + return nil, false + } + return o.CloudStorage, true +} + +// HasCloudStorage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasCloudStorage() bool { + if o != nil && o.CloudStorage != nil { + return true + } + + return false +} + +// SetCloudStorage gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage and assigns it to the CloudStorage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetCloudStorage(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage) { + o.CloudStorage = &v +} + +// GetDisableIamRoleCreation returns the DisableIamRoleCreation field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetDisableIamRoleCreation() bool { + if o == nil || o.DisableIamRoleCreation == nil { + var ret bool + return ret + } + return *o.DisableIamRoleCreation +} + +// GetDisableIamRoleCreationOk returns a tuple with the DisableIamRoleCreation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetDisableIamRoleCreationOk() (*bool, bool) { + if o == nil || o.DisableIamRoleCreation == nil { + return nil, false + } + return o.DisableIamRoleCreation, true +} + +// HasDisableIamRoleCreation returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasDisableIamRoleCreation() bool { + if o != nil && o.DisableIamRoleCreation != nil { + return true + } + + return false +} + +// SetDisableIamRoleCreation gets a reference to the given bool and assigns it to the DisableIamRoleCreation field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetDisableIamRoleCreation(v bool) { + o.DisableIamRoleCreation = &v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) { + o.PoolMemberRef = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AdditionalCloudStorage != nil { + toSerialize["additionalCloudStorage"] = o.AdditionalCloudStorage + } + if o.CloudStorage != nil { + toSerialize["cloudStorage"] = o.CloudStorage + } + if o.DisableIamRoleCreation != nil { + toSerialize["disableIamRoleCreation"] = o.DisableIamRoleCreation + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go new file mode 100644 index 0000000..dadc0fd --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus IamAccountStatus defines the observed state of IamAccount +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go new file mode 100644 index 0000000..c84c7d5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization struct { + DisplayName string `json:"displayName"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization(displayName string) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization{} + this.DisplayName = displayName + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1OrganizationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1OrganizationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) SetDisplayName(v string) { + o.DisplayName = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["displayName"] = o.DisplayName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go new file mode 100644 index 0000000..ffa2bb6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference struct { + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference(name string, namespace string) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference{} + this.Name = name + this.Namespace = namespace + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) SetNamespace(v string) { + o.Namespace = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go new file mode 100644 index 0000000..d542d84 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go @@ -0,0 +1,224 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule struct { + // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + ApiGroups []string `json:"apiGroups,omitempty"` + // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + ResourceNames []string `json:"resourceNames,omitempty"` + // Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. + Resources []string `json:"resources,omitempty"` + // Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + Verbs []string `json:"verbs"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule(verbs []string) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule{} + this.Verbs = verbs + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRuleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRuleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule{} + return &this +} + +// GetApiGroups returns the ApiGroups field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetApiGroups() []string { + if o == nil || o.ApiGroups == nil { + var ret []string + return ret + } + return o.ApiGroups +} + +// GetApiGroupsOk returns a tuple with the ApiGroups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetApiGroupsOk() ([]string, bool) { + if o == nil || o.ApiGroups == nil { + return nil, false + } + return o.ApiGroups, true +} + +// HasApiGroups returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) HasApiGroups() bool { + if o != nil && o.ApiGroups != nil { + return true + } + + return false +} + +// SetApiGroups gets a reference to the given []string and assigns it to the ApiGroups field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetApiGroups(v []string) { + o.ApiGroups = v +} + +// GetResourceNames returns the ResourceNames field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResourceNames() []string { + if o == nil || o.ResourceNames == nil { + var ret []string + return ret + } + return o.ResourceNames +} + +// GetResourceNamesOk returns a tuple with the ResourceNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResourceNamesOk() ([]string, bool) { + if o == nil || o.ResourceNames == nil { + return nil, false + } + return o.ResourceNames, true +} + +// HasResourceNames returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) HasResourceNames() bool { + if o != nil && o.ResourceNames != nil { + return true + } + + return false +} + +// SetResourceNames gets a reference to the given []string and assigns it to the ResourceNames field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetResourceNames(v []string) { + o.ResourceNames = v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResources() []string { + if o == nil || o.Resources == nil { + var ret []string + return ret + } + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetResourcesOk() ([]string, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given []string and assigns it to the Resources field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetResources(v []string) { + o.Resources = v +} + +// GetVerbs returns the Verbs field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetVerbs() []string { + if o == nil { + var ret []string + return ret + } + + return o.Verbs +} + +// GetVerbsOk returns a tuple with the Verbs field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) GetVerbsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Verbs, true +} + +// SetVerbs sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) SetVerbs(v []string) { + o.Verbs = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiGroups != nil { + toSerialize["apiGroups"] = o.ApiGroups + } + if o.ResourceNames != nil { + toSerialize["resourceNames"] = o.ResourceNames + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + if true { + toSerialize["verbs"] = o.Verbs + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go new file mode 100644 index 0000000..99f7b14 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go @@ -0,0 +1,206 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef struct { + ApiGroup string `json:"apiGroup"` + Kind string `json:"kind"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef(apiGroup string, kind string, name string) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef{} + this.ApiGroup = apiGroup + this.Kind = kind + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef{} + return &this +} + +// GetApiGroup returns the ApiGroup field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetApiGroup() string { + if o == nil { + var ret string + return ret + } + + return o.ApiGroup +} + +// GetApiGroupOk returns a tuple with the ApiGroup field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetApiGroupOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiGroup, true +} + +// SetApiGroup sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetApiGroup(v string) { + o.ApiGroup = v +} + +// GetKind returns the Kind field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["apiGroup"] = o.ApiGroup + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go new file mode 100644 index 0000000..f16d0af --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview SelfSubjectRbacReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go new file mode 100644 index 0000000..3de7f84 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go @@ -0,0 +1,119 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec SelfSubjectRbacReviewSpec defines the desired state of SelfSubjectRulesReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec struct { + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec{} + return &this +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go new file mode 100644 index 0000000..b747132 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go @@ -0,0 +1,119 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus SelfSubjectRbacReviewStatus defines the observed state of SelfSubjectRulesReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus struct { + UserPrivileges *string `json:"userPrivileges,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus{} + return &this +} + +// GetUserPrivileges returns the UserPrivileges field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) GetUserPrivileges() string { + if o == nil || o.UserPrivileges == nil { + var ret string + return ret + } + return *o.UserPrivileges +} + +// GetUserPrivilegesOk returns a tuple with the UserPrivileges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) GetUserPrivilegesOk() (*string, bool) { + if o == nil || o.UserPrivileges == nil { + return nil, false + } + return o.UserPrivileges, true +} + +// HasUserPrivileges returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) HasUserPrivileges() bool { + if o != nil && o.UserPrivileges != nil { + return true + } + + return false +} + +// SetUserPrivileges gets a reference to the given string and assigns it to the UserPrivileges field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) SetUserPrivileges(v string) { + o.UserPrivileges = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.UserPrivileges != nil { + toSerialize["userPrivileges"] = o.UserPrivileges + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go new file mode 100644 index 0000000..747580f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview SelfSubjectRulesReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go new file mode 100644 index 0000000..433853d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go @@ -0,0 +1,119 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec SelfSubjectRulesReviewSpec defines the desired state of SelfSubjectRulesReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec struct { + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec{} + return &this +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go new file mode 100644 index 0000000..a5ec7cc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go @@ -0,0 +1,180 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus SelfSubjectRulesReviewStatus defines the observed state of SelfSubjectRulesReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus struct { + // EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + EvaluationError *string `json:"evaluationError,omitempty"` + // Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + Incomplete bool `json:"incomplete"` + // ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + ResourceRules []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule `json:"resourceRules"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus(incomplete bool, resourceRules []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus{} + this.Incomplete = incomplete + this.ResourceRules = resourceRules + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus{} + return &this +} + +// GetEvaluationError returns the EvaluationError field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetEvaluationError() string { + if o == nil || o.EvaluationError == nil { + var ret string + return ret + } + return *o.EvaluationError +} + +// GetEvaluationErrorOk returns a tuple with the EvaluationError field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetEvaluationErrorOk() (*string, bool) { + if o == nil || o.EvaluationError == nil { + return nil, false + } + return o.EvaluationError, true +} + +// HasEvaluationError returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) HasEvaluationError() bool { + if o != nil && o.EvaluationError != nil { + return true + } + + return false +} + +// SetEvaluationError gets a reference to the given string and assigns it to the EvaluationError field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) SetEvaluationError(v string) { + o.EvaluationError = &v +} + +// GetIncomplete returns the Incomplete field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetIncomplete() bool { + if o == nil { + var ret bool + return ret + } + + return o.Incomplete +} + +// GetIncompleteOk returns a tuple with the Incomplete field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetIncompleteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Incomplete, true +} + +// SetIncomplete sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) SetIncomplete(v bool) { + o.Incomplete = v +} + +// GetResourceRules returns the ResourceRules field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetResourceRules() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule + return ret + } + + return o.ResourceRules +} + +// GetResourceRulesOk returns a tuple with the ResourceRules field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) GetResourceRulesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule, bool) { + if o == nil { + return nil, false + } + return o.ResourceRules, true +} + +// SetResourceRules sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) SetResourceRules(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) { + o.ResourceRules = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.EvaluationError != nil { + toSerialize["evaluationError"] = o.EvaluationError + } + if true { + toSerialize["incomplete"] = o.Incomplete + } + if true { + toSerialize["resourceRules"] = o.ResourceRules + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go new file mode 100644 index 0000000..c84ff56 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview SelfSubjectUserReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + // SelfSubjectUserReviewSpec defines the desired state of SelfSubjectUserReview + Spec map[string]interface{} `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetSpec() map[string]interface{} { + if o == nil || o.Spec == nil { + var ret map[string]interface{} + return ret + } + return o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetSpecOk() (map[string]interface{}, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given map[string]interface{} and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetSpec(v map[string]interface{}) { + o.Spec = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go new file mode 100644 index 0000000..86749e5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus SelfSubjectUserReviewStatus defines the observed state of SelfSubjectUserReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus struct { + Users []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef `json:"users"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus(users []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus{} + this.Users = users + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus{} + return &this +} + +// GetUsers returns the Users field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) GetUsers() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) GetUsersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) SetUsers(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) { + o.Users = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["users"] = o.Users + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go new file mode 100644 index 0000000..1ee60d9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview SubjectRoleReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go new file mode 100644 index 0000000..ba7500a --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec struct { + // User is the user you're testing for. + User *string `json:"user,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec{} + return &this +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) GetUser() string { + if o == nil || o.User == nil { + var ret string + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) GetUserOk() (*string, bool) { + if o == nil || o.User == nil { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) HasUser() bool { + if o != nil && o.User != nil { + return true + } + + return false +} + +// SetUser gets a reference to the given string and assigns it to the User field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) SetUser(v string) { + o.User = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.User != nil { + toSerialize["user"] = o.User + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go new file mode 100644 index 0000000..07d09e0 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus struct { + Roles []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef `json:"roles"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus(roles []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus{} + this.Roles = roles + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus{} + return &this +} + +// GetRoles returns the Roles field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) GetRoles() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef + return ret + } + + return o.Roles +} + +// GetRolesOk returns a tuple with the Roles field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) GetRolesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef, bool) { + if o == nil { + return nil, false + } + return o.Roles, true +} + +// SetRoles sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) SetRoles(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef) { + o.Roles = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["roles"] = o.Roles + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go new file mode 100644 index 0000000..f6ab5af --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview SubjectRulesReview +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go new file mode 100644 index 0000000..409f1d8 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec struct { + Namespace *string `json:"namespace,omitempty"` + // User is the user you're testing for. + User *string `json:"user,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec{} + return &this +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) SetNamespace(v string) { + o.Namespace = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetUser() string { + if o == nil || o.User == nil { + var ret string + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) GetUserOk() (*string, bool) { + if o == nil || o.User == nil { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) HasUser() bool { + if o != nil && o.User != nil { + return true + } + + return false +} + +// SetUser gets a reference to the given string and assigns it to the User field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) SetUser(v string) { + o.User = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + if o.User != nil { + toSerialize["user"] = o.User + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go new file mode 100644 index 0000000..9531bf3 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go @@ -0,0 +1,180 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus struct { + // EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + EvaluationError *string `json:"evaluationError,omitempty"` + // Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + Incomplete bool `json:"incomplete"` + // ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + ResourceRules []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule `json:"resourceRules"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus(incomplete bool, resourceRules []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus{} + this.Incomplete = incomplete + this.ResourceRules = resourceRules + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus{} + return &this +} + +// GetEvaluationError returns the EvaluationError field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetEvaluationError() string { + if o == nil || o.EvaluationError == nil { + var ret string + return ret + } + return *o.EvaluationError +} + +// GetEvaluationErrorOk returns a tuple with the EvaluationError field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetEvaluationErrorOk() (*string, bool) { + if o == nil || o.EvaluationError == nil { + return nil, false + } + return o.EvaluationError, true +} + +// HasEvaluationError returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) HasEvaluationError() bool { + if o != nil && o.EvaluationError != nil { + return true + } + + return false +} + +// SetEvaluationError gets a reference to the given string and assigns it to the EvaluationError field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) SetEvaluationError(v string) { + o.EvaluationError = &v +} + +// GetIncomplete returns the Incomplete field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetIncomplete() bool { + if o == nil { + var ret bool + return ret + } + + return o.Incomplete +} + +// GetIncompleteOk returns a tuple with the Incomplete field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetIncompleteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Incomplete, true +} + +// SetIncomplete sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) SetIncomplete(v bool) { + o.Incomplete = v +} + +// GetResourceRules returns the ResourceRules field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetResourceRules() []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule + return ret + } + + return o.ResourceRules +} + +// GetResourceRulesOk returns a tuple with the ResourceRules field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) GetResourceRulesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule, bool) { + if o == nil { + return nil, false + } + return o.ResourceRules, true +} + +// SetResourceRules sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) SetResourceRules(v []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1ResourceRule) { + o.ResourceRules = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.EvaluationError != nil { + toSerialize["evaluationError"] = o.EvaluationError + } + if true { + toSerialize["incomplete"] = o.Incomplete + } + if true { + toSerialize["resourceRules"] = o.ResourceRules + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go new file mode 100644 index 0000000..90b8bbe --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go @@ -0,0 +1,228 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef +type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef struct { + ApiGroup string `json:"apiGroup"` + Kind string `json:"kind"` + Name string `json:"name"` + Namespace string `json:"namespace"` + Organization ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization `json:"organization"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef(apiGroup string, kind string, name string, namespace string, organization ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef{} + this.ApiGroup = apiGroup + this.Kind = kind + this.Name = name + this.Namespace = namespace + this.Organization = organization + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef { + this := ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef{} + return &this +} + +// GetApiGroup returns the ApiGroup field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetApiGroup() string { + if o == nil { + var ret string + return ret + } + + return o.ApiGroup +} + +// GetApiGroupOk returns a tuple with the ApiGroup field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetApiGroupOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiGroup, true +} + +// SetApiGroup sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetApiGroup(v string) { + o.ApiGroup = v +} + +// GetKind returns the Kind field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetNamespace(v string) { + o.Namespace = v +} + +// GetOrganization returns the Organization field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetOrganization() ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization + return ret + } + + return o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) GetOrganizationOk() (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization, bool) { + if o == nil { + return nil, false + } + return &o.Organization, true +} + +// SetOrganization sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) SetOrganization(v ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization) { + o.Organization = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["apiGroup"] = o.ApiGroup + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + if true { + toSerialize["organization"] = o.Organization + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef struct { + value *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) Get() *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) Set(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef(val *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef { + return &NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go new file mode 100644 index 0000000..3fecdd1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest CustomerPortalRequest is a request for a Customer Portal session. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go new file mode 100644 index 0000000..7d9e1c9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec CustomerPortalRequestSpec represents the details of the request. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec struct { + // The default URL to redirect customers to when they click on the portal’s link to return to your website. + ReturnURL *string `json:"returnURL,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec `json:"stripe,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec{} + return &this +} + +// GetReturnURL returns the ReturnURL field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetReturnURL() string { + if o == nil || o.ReturnURL == nil { + var ret string + return ret + } + return *o.ReturnURL +} + +// GetReturnURLOk returns a tuple with the ReturnURL field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetReturnURLOk() (*string, bool) { + if o == nil || o.ReturnURL == nil { + return nil, false + } + return o.ReturnURL, true +} + +// HasReturnURL returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) HasReturnURL() bool { + if o != nil && o.ReturnURL != nil { + return true + } + + return false +} + +// SetReturnURL gets a reference to the given string and assigns it to the ReturnURL field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) SetReturnURL(v string) { + o.ReturnURL = &v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) { + o.Stripe = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ReturnURL != nil { + toSerialize["returnURL"] = o.ReturnURL + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go new file mode 100644 index 0000000..28a8e5f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go @@ -0,0 +1,192 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus CustomerPortalRequestStatus defines the observed state of CustomerPortalRequest +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus struct { + // Conditions is an array of current observed conditions. + Conditions []V1Condition `json:"conditions,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus `json:"stripe,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) { + o.Stripe = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetUrl() string { + if o == nil || o.Url == nil { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) GetUrlOk() (*string, bool) { + if o == nil || o.Url == nil { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) HasUrl() bool { + if o != nil && o.Url != nil { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) SetUrl(v string) { + o.Url = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + if o.Url != nil { + toSerialize["url"] = o.Url + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go new file mode 100644 index 0000000..69168dc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem OfferItem defines an offered product at a particular price. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem struct { + // Key is the item key within the offer and subscription. + Key *string `json:"key,omitempty"` + // Metadata is an unstructured key value map stored with an item. + Metadata *map[string]string `json:"metadata,omitempty"` + Price *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice `json:"price,omitempty"` + PriceRef *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference `json:"priceRef,omitempty"` + // Quantity for this item. + Quantity *string `json:"quantity,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetKey(v string) { + o.Key = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetMetadata() map[string]string { + if o == nil || o.Metadata == nil { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetMetadataOk() (*map[string]string, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetPrice returns the Price field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPrice() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice { + if o == nil || o.Price == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice + return ret + } + return *o.Price +} + +// GetPriceOk returns a tuple with the Price field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPriceOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice, bool) { + if o == nil || o.Price == nil { + return nil, false + } + return o.Price, true +} + +// HasPrice returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasPrice() bool { + if o != nil && o.Price != nil { + return true + } + + return false +} + +// SetPrice gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice and assigns it to the Price field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetPrice(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) { + o.Price = &v +} + +// GetPriceRef returns the PriceRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPriceRef() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference { + if o == nil || o.PriceRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference + return ret + } + return *o.PriceRef +} + +// GetPriceRefOk returns a tuple with the PriceRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetPriceRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference, bool) { + if o == nil || o.PriceRef == nil { + return nil, false + } + return o.PriceRef, true +} + +// HasPriceRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasPriceRef() bool { + if o != nil && o.PriceRef != nil { + return true + } + + return false +} + +// SetPriceRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference and assigns it to the PriceRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetPriceRef(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) { + o.PriceRef = &v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetQuantity() string { + if o == nil || o.Quantity == nil { + var ret string + return ret + } + return *o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) GetQuantityOk() (*string, bool) { + if o == nil || o.Quantity == nil { + return nil, false + } + return o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) HasQuantity() bool { + if o != nil && o.Quantity != nil { + return true + } + + return false +} + +// SetQuantity gets a reference to the given string and assigns it to the Quantity field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) SetQuantity(v string) { + o.Quantity = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Price != nil { + toSerialize["price"] = o.Price + } + if o.PriceRef != nil { + toSerialize["priceRef"] = o.PriceRef + } + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go new file mode 100644 index 0000000..5c16a00 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go @@ -0,0 +1,303 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice OfferItemPrice is used to specify a custom price for a given product. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice struct { + // Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. + Currency *string `json:"currency,omitempty"` + Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` + Recurring *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring `json:"recurring,omitempty"` + // Tiers are Stripes billing tiers like + Tiers []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier `json:"tiers,omitempty"` + // TiersMode is the stripe tier mode + TiersMode *string `json:"tiersMode,omitempty"` + // A quantity (or 0 for a free price) representing how much to charge. + UnitAmount *string `json:"unitAmount,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice{} + return &this +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetCurrency() string { + if o == nil || o.Currency == nil { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetCurrencyOk() (*string, bool) { + if o == nil || o.Currency == nil { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasCurrency() bool { + if o != nil && o.Currency != nil { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetCurrency(v string) { + o.Currency = &v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetProduct() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference { + if o == nil || o.Product == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetProductOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference and assigns it to the Product field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetProduct(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) { + o.Product = &v +} + +// GetRecurring returns the Recurring field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetRecurring() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring { + if o == nil || o.Recurring == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring + return ret + } + return *o.Recurring +} + +// GetRecurringOk returns a tuple with the Recurring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetRecurringOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring, bool) { + if o == nil || o.Recurring == nil { + return nil, false + } + return o.Recurring, true +} + +// HasRecurring returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasRecurring() bool { + if o != nil && o.Recurring != nil { + return true + } + + return false +} + +// SetRecurring gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring and assigns it to the Recurring field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetRecurring(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) { + o.Recurring = &v +} + +// GetTiers returns the Tiers field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiers() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier { + if o == nil || o.Tiers == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier + return ret + } + return o.Tiers +} + +// GetTiersOk returns a tuple with the Tiers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier, bool) { + if o == nil || o.Tiers == nil { + return nil, false + } + return o.Tiers, true +} + +// HasTiers returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasTiers() bool { + if o != nil && o.Tiers != nil { + return true + } + + return false +} + +// SetTiers gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier and assigns it to the Tiers field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetTiers(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) { + o.Tiers = v +} + +// GetTiersMode returns the TiersMode field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiersMode() string { + if o == nil || o.TiersMode == nil { + var ret string + return ret + } + return *o.TiersMode +} + +// GetTiersModeOk returns a tuple with the TiersMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetTiersModeOk() (*string, bool) { + if o == nil || o.TiersMode == nil { + return nil, false + } + return o.TiersMode, true +} + +// HasTiersMode returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasTiersMode() bool { + if o != nil && o.TiersMode != nil { + return true + } + + return false +} + +// SetTiersMode gets a reference to the given string and assigns it to the TiersMode field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetTiersMode(v string) { + o.TiersMode = &v +} + +// GetUnitAmount returns the UnitAmount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetUnitAmount() string { + if o == nil || o.UnitAmount == nil { + var ret string + return ret + } + return *o.UnitAmount +} + +// GetUnitAmountOk returns a tuple with the UnitAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) GetUnitAmountOk() (*string, bool) { + if o == nil || o.UnitAmount == nil { + return nil, false + } + return o.UnitAmount, true +} + +// HasUnitAmount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) HasUnitAmount() bool { + if o != nil && o.UnitAmount != nil { + return true + } + + return false +} + +// SetUnitAmount gets a reference to the given string and assigns it to the UnitAmount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) SetUnitAmount(v string) { + o.UnitAmount = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Currency != nil { + toSerialize["currency"] = o.Currency + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + if o.Recurring != nil { + toSerialize["recurring"] = o.Recurring + } + if o.Tiers != nil { + toSerialize["tiers"] = o.Tiers + } + if o.TiersMode != nil { + toSerialize["tiersMode"] = o.TiersMode + } + if o.UnitAmount != nil { + toSerialize["unitAmount"] = o.UnitAmount + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go new file mode 100644 index 0000000..811aa7c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go @@ -0,0 +1,229 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring OfferItemPriceRecurring specifies the recurring components of a price such as `interval` and `interval_count`. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring struct { + AggregateUsage *string `json:"aggregateUsage,omitempty"` + // Specifies billing frequency. Either `day`, `week`, `month` or `year`. + Interval *string `json:"interval,omitempty"` + // The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks). + IntervalCount *int64 `json:"intervalCount,omitempty"` + UsageType *string `json:"usageType,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurringWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurringWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring{} + return &this +} + +// GetAggregateUsage returns the AggregateUsage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetAggregateUsage() string { + if o == nil || o.AggregateUsage == nil { + var ret string + return ret + } + return *o.AggregateUsage +} + +// GetAggregateUsageOk returns a tuple with the AggregateUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetAggregateUsageOk() (*string, bool) { + if o == nil || o.AggregateUsage == nil { + return nil, false + } + return o.AggregateUsage, true +} + +// HasAggregateUsage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasAggregateUsage() bool { + if o != nil && o.AggregateUsage != nil { + return true + } + + return false +} + +// SetAggregateUsage gets a reference to the given string and assigns it to the AggregateUsage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetAggregateUsage(v string) { + o.AggregateUsage = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetInterval() string { + if o == nil || o.Interval == nil { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetIntervalOk() (*string, bool) { + if o == nil || o.Interval == nil { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasInterval() bool { + if o != nil && o.Interval != nil { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetInterval(v string) { + o.Interval = &v +} + +// GetIntervalCount returns the IntervalCount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetIntervalCount() int64 { + if o == nil || o.IntervalCount == nil { + var ret int64 + return ret + } + return *o.IntervalCount +} + +// GetIntervalCountOk returns a tuple with the IntervalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetIntervalCountOk() (*int64, bool) { + if o == nil || o.IntervalCount == nil { + return nil, false + } + return o.IntervalCount, true +} + +// HasIntervalCount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasIntervalCount() bool { + if o != nil && o.IntervalCount != nil { + return true + } + + return false +} + +// SetIntervalCount gets a reference to the given int64 and assigns it to the IntervalCount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetIntervalCount(v int64) { + o.IntervalCount = &v +} + +// GetUsageType returns the UsageType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetUsageType() string { + if o == nil || o.UsageType == nil { + var ret string + return ret + } + return *o.UsageType +} + +// GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) GetUsageTypeOk() (*string, bool) { + if o == nil || o.UsageType == nil { + return nil, false + } + return o.UsageType, true +} + +// HasUsageType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) HasUsageType() bool { + if o != nil && o.UsageType != nil { + return true + } + + return false +} + +// SetUsageType gets a reference to the given string and assigns it to the UsageType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) SetUsageType(v string) { + o.UsageType = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AggregateUsage != nil { + toSerialize["aggregateUsage"] = o.AggregateUsage + } + if o.Interval != nil { + toSerialize["interval"] = o.Interval + } + if o.IntervalCount != nil { + toSerialize["intervalCount"] = o.IntervalCount + } + if o.UsageType != nil { + toSerialize["usageType"] = o.UsageType + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go new file mode 100644 index 0000000..67369fd --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go @@ -0,0 +1,177 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference OfferReference references an offer object. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference struct { + Kind string `json:"kind"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference(kind string, name string) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference{} + this.Kind = kind + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference{} + return &this +} + +// GetKind returns the Kind field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go new file mode 100644 index 0000000..320e22c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent PaymentIntent is the Schema for the paymentintents API +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go new file mode 100644 index 0000000..756215c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go new file mode 100644 index 0000000..3a76f9d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go @@ -0,0 +1,191 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec PaymentIntentSpec defines the desired state of PaymentIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec struct { + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent `json:"stripe,omitempty"` + SubscriptionName *string `json:"subscriptionName,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec{} + return &this +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) { + o.Stripe = &v +} + +// GetSubscriptionName returns the SubscriptionName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetSubscriptionName() string { + if o == nil || o.SubscriptionName == nil { + var ret string + return ret + } + return *o.SubscriptionName +} + +// GetSubscriptionNameOk returns a tuple with the SubscriptionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetSubscriptionNameOk() (*string, bool) { + if o == nil || o.SubscriptionName == nil { + return nil, false + } + return o.SubscriptionName, true +} + +// HasSubscriptionName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) HasSubscriptionName() bool { + if o != nil && o.SubscriptionName != nil { + return true + } + + return false +} + +// SetSubscriptionName gets a reference to the given string and assigns it to the SubscriptionName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) SetSubscriptionName(v string) { + o.SubscriptionName = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + if o.SubscriptionName != nil { + toSerialize["subscriptionName"] = o.SubscriptionName + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go new file mode 100644 index 0000000..fae2c02 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus PaymentIntentStatus defines the observed state of PaymentIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus struct { + // Conditions is an array of current observed conditions. + Conditions []V1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go new file mode 100644 index 0000000..107965c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference PriceReference references a price within a Product object. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference struct { + // Key is the price key within the product specification. + Key *string `json:"key,omitempty"` + Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) SetKey(v string) { + o.Key = &v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetProduct() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference { + if o == nil || o.Product == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) GetProductOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference and assigns it to the Product field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) SetProduct(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) { + o.Product = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go new file mode 100644 index 0000000..823bcbf --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer PrivateOffer +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec `json:"spec,omitempty"` + // PrivateOfferStatus defines the observed state of PrivateOffer + Status map[string]interface{} `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetStatus() map[string]interface{} { + if o == nil || o.Status == nil { + var ret map[string]interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) GetStatusOk() (map[string]interface{}, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given map[string]interface{} and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) SetStatus(v map[string]interface{}) { + o.Status = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go new file mode 100644 index 0000000..4420161 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go new file mode 100644 index 0000000..929372b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go @@ -0,0 +1,378 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec PrivateOfferSpec defines the desired state of PrivateOffer +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec struct { + // AnchorDate is a timestamp representing the first billing cycle end date. This will be used to anchor future billing periods to that date. For example, setting the anchor date for a subscription starting on Apr 1 to be Apr 12 will send the invoice for the subscription out on Apr 12 and the 12th of every following month for a monthly subscription. It is represented in RFC3339 form and is in UTC. + AnchorDate *time.Time `json:"anchorDate,omitempty"` + Description *string `json:"description,omitempty"` + // Duration indicates how long the subscription for this offer should last. The value must greater than 0 + Duration *string `json:"duration,omitempty"` + // EndDate is a timestamp representing the planned end date of the subscription. It is represented in RFC3339 form and is in UTC. + EndDate *time.Time `json:"endDate,omitempty"` + // One-time items, each with an attached price. + Once []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem `json:"once,omitempty"` + // Recurring items, each with an attached price. + Recurring []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem `json:"recurring,omitempty"` + // StartDate is a timestamp representing the planned start date of the subscription. It is represented in RFC3339 form and is in UTC. + StartDate *time.Time `json:"startDate,omitempty"` + Stripe map[string]interface{} `json:"stripe,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec{} + return &this +} + +// GetAnchorDate returns the AnchorDate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetAnchorDate() time.Time { + if o == nil || o.AnchorDate == nil { + var ret time.Time + return ret + } + return *o.AnchorDate +} + +// GetAnchorDateOk returns a tuple with the AnchorDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetAnchorDateOk() (*time.Time, bool) { + if o == nil || o.AnchorDate == nil { + return nil, false + } + return o.AnchorDate, true +} + +// HasAnchorDate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasAnchorDate() bool { + if o != nil && o.AnchorDate != nil { + return true + } + + return false +} + +// SetAnchorDate gets a reference to the given time.Time and assigns it to the AnchorDate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetAnchorDate(v time.Time) { + o.AnchorDate = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetDescription(v string) { + o.Description = &v +} + +// GetDuration returns the Duration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDuration() string { + if o == nil || o.Duration == nil { + var ret string + return ret + } + return *o.Duration +} + +// GetDurationOk returns a tuple with the Duration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetDurationOk() (*string, bool) { + if o == nil || o.Duration == nil { + return nil, false + } + return o.Duration, true +} + +// HasDuration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasDuration() bool { + if o != nil && o.Duration != nil { + return true + } + + return false +} + +// SetDuration gets a reference to the given string and assigns it to the Duration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetDuration(v string) { + o.Duration = &v +} + +// GetEndDate returns the EndDate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetEndDate() time.Time { + if o == nil || o.EndDate == nil { + var ret time.Time + return ret + } + return *o.EndDate +} + +// GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetEndDateOk() (*time.Time, bool) { + if o == nil || o.EndDate == nil { + return nil, false + } + return o.EndDate, true +} + +// HasEndDate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasEndDate() bool { + if o != nil && o.EndDate != nil { + return true + } + + return false +} + +// SetEndDate gets a reference to the given time.Time and assigns it to the EndDate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetEndDate(v time.Time) { + o.EndDate = &v +} + +// GetOnce returns the Once field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetOnce() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + if o == nil || o.Once == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem + return ret + } + return o.Once +} + +// GetOnceOk returns a tuple with the Once field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetOnceOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool) { + if o == nil || o.Once == nil { + return nil, false + } + return o.Once, true +} + +// HasOnce returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasOnce() bool { + if o != nil && o.Once != nil { + return true + } + + return false +} + +// SetOnce gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem and assigns it to the Once field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetOnce(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) { + o.Once = v +} + +// GetRecurring returns the Recurring field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetRecurring() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + if o == nil || o.Recurring == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem + return ret + } + return o.Recurring +} + +// GetRecurringOk returns a tuple with the Recurring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetRecurringOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool) { + if o == nil || o.Recurring == nil { + return nil, false + } + return o.Recurring, true +} + +// HasRecurring returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasRecurring() bool { + if o != nil && o.Recurring != nil { + return true + } + + return false +} + +// SetRecurring gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem and assigns it to the Recurring field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetRecurring(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) { + o.Recurring = v +} + +// GetStartDate returns the StartDate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStartDate() time.Time { + if o == nil || o.StartDate == nil { + var ret time.Time + return ret + } + return *o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStartDateOk() (*time.Time, bool) { + if o == nil || o.StartDate == nil { + return nil, false + } + return o.StartDate, true +} + +// HasStartDate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasStartDate() bool { + if o != nil && o.StartDate != nil { + return true + } + + return false +} + +// SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetStartDate(v time.Time) { + o.StartDate = &v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStripe() map[string]interface{} { + if o == nil || o.Stripe == nil { + var ret map[string]interface{} + return ret + } + return o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) GetStripeOk() (map[string]interface{}, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given map[string]interface{} and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) SetStripe(v map[string]interface{}) { + o.Stripe = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AnchorDate != nil { + toSerialize["anchorDate"] = o.AnchorDate + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Duration != nil { + toSerialize["duration"] = o.Duration + } + if o.EndDate != nil { + toSerialize["endDate"] = o.EndDate + } + if o.Once != nil { + toSerialize["once"] = o.Once + } + if o.Recurring != nil { + toSerialize["recurring"] = o.Recurring + } + if o.StartDate != nil { + toSerialize["startDate"] = o.StartDate + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go new file mode 100644 index 0000000..eb8a734 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product Product is the Schema for the products API +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go new file mode 100644 index 0000000..98bd61d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go new file mode 100644 index 0000000..0916ab8 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice ProductPrice specifies a price for a product. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice struct { + // Key is the price key. + Key *string `json:"key,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec `json:"stripe,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPriceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPriceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) SetKey(v string) { + o.Key = &v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) { + o.Stripe = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go new file mode 100644 index 0000000..6d0f5e7 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference ProductReference references a Product object. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) SetName(v string) { + o.Name = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go new file mode 100644 index 0000000..aaaa304 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec ProductSpec defines the desired state of Product +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec struct { + // Description is a product description + Description *string `json:"description,omitempty"` + // Name is the product name. + Name *string `json:"name,omitempty"` + // Prices associated with the product. + Prices []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice `json:"prices,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec `json:"stripe,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec `json:"suger,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetName(v string) { + o.Name = &v +} + +// GetPrices returns the Prices field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetPrices() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice { + if o == nil || o.Prices == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice + return ret + } + return o.Prices +} + +// GetPricesOk returns a tuple with the Prices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetPricesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice, bool) { + if o == nil || o.Prices == nil { + return nil, false + } + return o.Prices, true +} + +// HasPrices returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasPrices() bool { + if o != nil && o.Prices != nil { + return true + } + + return false +} + +// SetPrices gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice and assigns it to the Prices field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetPrices(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice) { + o.Prices = v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) { + o.Stripe = &v +} + +// GetSuger returns the Suger field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec { + if o == nil || o.Suger == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec + return ret + } + return *o.Suger +} + +// GetSugerOk returns a tuple with the Suger field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec, bool) { + if o == nil || o.Suger == nil { + return nil, false + } + return o.Suger, true +} + +// HasSuger returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) HasSuger() bool { + if o != nil && o.Suger != nil { + return true + } + + return false +} + +// SetSuger gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec and assigns it to the Suger field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) { + o.Suger = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Prices != nil { + toSerialize["prices"] = o.Prices + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + if o.Suger != nil { + toSerialize["suger"] = o.Suger + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go new file mode 100644 index 0000000..e8f5a6f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus ProductStatus defines the observed state of Product +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus struct { + // The prices as stored in Stripe. + Prices []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice `json:"prices,omitempty"` + // The unique identifier for the Stripe product. + StripeID *string `json:"stripeID,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus{} + return &this +} + +// GetPrices returns the Prices field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetPrices() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice { + if o == nil || o.Prices == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice + return ret + } + return o.Prices +} + +// GetPricesOk returns a tuple with the Prices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetPricesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice, bool) { + if o == nil || o.Prices == nil { + return nil, false + } + return o.Prices, true +} + +// HasPrices returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) HasPrices() bool { + if o != nil && o.Prices != nil { + return true + } + + return false +} + +// SetPrices gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice and assigns it to the Prices field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) SetPrices(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) { + o.Prices = v +} + +// GetStripeID returns the StripeID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetStripeID() string { + if o == nil || o.StripeID == nil { + var ret string + return ret + } + return *o.StripeID +} + +// GetStripeIDOk returns a tuple with the StripeID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) GetStripeIDOk() (*string, bool) { + if o == nil || o.StripeID == nil { + return nil, false + } + return o.StripeID, true +} + +// HasStripeID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) HasStripeID() bool { + if o != nil && o.StripeID != nil { + return true + } + + return false +} + +// SetStripeID gets a reference to the given string and assigns it to the StripeID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) SetStripeID(v string) { + o.StripeID = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Prices != nil { + toSerialize["prices"] = o.Prices + } + if o.StripeID != nil { + toSerialize["stripeID"] = o.StripeID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go new file mode 100644 index 0000000..e2b90d9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice struct { + Key *string `json:"key,omitempty"` + StripeID *string `json:"stripeID,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPriceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPriceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) SetKey(v string) { + o.Key = &v +} + +// GetStripeID returns the StripeID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetStripeID() string { + if o == nil || o.StripeID == nil { + var ret string + return ret + } + return *o.StripeID +} + +// GetStripeIDOk returns a tuple with the StripeID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) GetStripeIDOk() (*string, bool) { + if o == nil || o.StripeID == nil { + return nil, false + } + return o.StripeID, true +} + +// HasStripeID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) HasStripeID() bool { + if o != nil && o.StripeID != nil { + return true + } + + return false +} + +// SetStripeID gets a reference to the given string and assigns it to the StripeID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) SetStripeID(v string) { + o.StripeID = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.StripeID != nil { + toSerialize["stripeID"] = o.StripeID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go new file mode 100644 index 0000000..f7894ce --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer PublicOffer is the Schema for the publicoffers API +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec `json:"spec,omitempty"` + // PublicOfferStatus defines the observed state of PublicOffer + Status map[string]interface{} `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetStatus() map[string]interface{} { + if o == nil || o.Status == nil { + var ret map[string]interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) GetStatusOk() (map[string]interface{}, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given map[string]interface{} and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) SetStatus(v map[string]interface{}) { + o.Status = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go new file mode 100644 index 0000000..c33cdc7 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go new file mode 100644 index 0000000..f6b05ef --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go @@ -0,0 +1,229 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec PublicOfferSpec defines the desired state of PublicOffer +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec struct { + Description *string `json:"description,omitempty"` + // One-time items, each with an attached price. + Once []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem `json:"once,omitempty"` + // Recurring items, each with an attached price. + Recurring []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem `json:"recurring,omitempty"` + Stripe map[string]interface{} `json:"stripe,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetDescription(v string) { + o.Description = &v +} + +// GetOnce returns the Once field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetOnce() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + if o == nil || o.Once == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem + return ret + } + return o.Once +} + +// GetOnceOk returns a tuple with the Once field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetOnceOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool) { + if o == nil || o.Once == nil { + return nil, false + } + return o.Once, true +} + +// HasOnce returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasOnce() bool { + if o != nil && o.Once != nil { + return true + } + + return false +} + +// SetOnce gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem and assigns it to the Once field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetOnce(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) { + o.Once = v +} + +// GetRecurring returns the Recurring field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetRecurring() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem { + if o == nil || o.Recurring == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem + return ret + } + return o.Recurring +} + +// GetRecurringOk returns a tuple with the Recurring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetRecurringOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem, bool) { + if o == nil || o.Recurring == nil { + return nil, false + } + return o.Recurring, true +} + +// HasRecurring returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasRecurring() bool { + if o != nil && o.Recurring != nil { + return true + } + + return false +} + +// SetRecurring gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem and assigns it to the Recurring field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetRecurring(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem) { + o.Recurring = v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetStripe() map[string]interface{} { + if o == nil || o.Stripe == nil { + var ret map[string]interface{} + return ret + } + return o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) GetStripeOk() (map[string]interface{}, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given map[string]interface{} and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) SetStripe(v map[string]interface{}) { + o.Stripe = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Once != nil { + toSerialize["once"] = o.Once + } + if o.Recurring != nil { + toSerialize["recurring"] = o.Recurring + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go new file mode 100644 index 0000000..6f5a069 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent SetupIntent is the Schema for the setupintents API +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go new file mode 100644 index 0000000..bb5f1fc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go new file mode 100644 index 0000000..b2f8ee6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference SetupIntentReference represents a SetupIntent Reference. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) SetName(v string) { + o.Name = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go new file mode 100644 index 0000000..343e33c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec SetupIntentSpec defines the desired state of SetupIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec struct { + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent `json:"stripe,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec{} + return &this +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) { + o.Stripe = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go new file mode 100644 index 0000000..f04f967 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus SetupIntentStatus defines the observed state of SetupIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus struct { + // Conditions is an array of current observed conidtions + Conditions []V1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go new file mode 100644 index 0000000..22d4dd1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec struct { + // Configuration is the ID of the portal configuration to use. + Configuration *string `json:"configuration,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec{} + return &this +} + +// GetConfiguration returns the Configuration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) GetConfiguration() string { + if o == nil || o.Configuration == nil { + var ret string + return ret + } + return *o.Configuration +} + +// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) GetConfigurationOk() (*string, bool) { + if o == nil || o.Configuration == nil { + return nil, false + } + return o.Configuration, true +} + +// HasConfiguration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) HasConfiguration() bool { + if o != nil && o.Configuration != nil { + return true + } + + return false +} + +// SetConfiguration gets a reference to the given string and assigns it to the Configuration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) SetConfiguration(v string) { + o.Configuration = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Configuration != nil { + toSerialize["configuration"] = o.Configuration + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go new file mode 100644 index 0000000..634f4e1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus struct { + // ID is the Stripe portal ID. + Id *string `json:"id,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) SetId(v string) { + o.Id = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go new file mode 100644 index 0000000..21a0190 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent struct { + ClientSecret *string `json:"clientSecret,omitempty"` + Id *string `json:"id,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent{} + return &this +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetClientSecret() string { + if o == nil || o.ClientSecret == nil { + var ret string + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetClientSecretOk() (*string, bool) { + if o == nil || o.ClientSecret == nil { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) HasClientSecret() bool { + if o != nil && o.ClientSecret != nil { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) SetClientSecret(v string) { + o.ClientSecret = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) SetId(v string) { + o.Id = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ClientSecret != nil { + toSerialize["clientSecret"] = o.ClientSecret + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go new file mode 100644 index 0000000..d36bdc8 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go @@ -0,0 +1,229 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence StripePriceRecurrence defines how a price's billing recurs +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence struct { + AggregateUsage *string `json:"aggregateUsage,omitempty"` + // Interval is how often the price recurs + Interval *string `json:"interval,omitempty"` + // The number of intervals. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks). + IntervalCount *int64 `json:"intervalCount,omitempty"` + UsageType *string `json:"usageType,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence{} + return &this +} + +// GetAggregateUsage returns the AggregateUsage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetAggregateUsage() string { + if o == nil || o.AggregateUsage == nil { + var ret string + return ret + } + return *o.AggregateUsage +} + +// GetAggregateUsageOk returns a tuple with the AggregateUsage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetAggregateUsageOk() (*string, bool) { + if o == nil || o.AggregateUsage == nil { + return nil, false + } + return o.AggregateUsage, true +} + +// HasAggregateUsage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasAggregateUsage() bool { + if o != nil && o.AggregateUsage != nil { + return true + } + + return false +} + +// SetAggregateUsage gets a reference to the given string and assigns it to the AggregateUsage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetAggregateUsage(v string) { + o.AggregateUsage = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetInterval() string { + if o == nil || o.Interval == nil { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetIntervalOk() (*string, bool) { + if o == nil || o.Interval == nil { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasInterval() bool { + if o != nil && o.Interval != nil { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetInterval(v string) { + o.Interval = &v +} + +// GetIntervalCount returns the IntervalCount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetIntervalCount() int64 { + if o == nil || o.IntervalCount == nil { + var ret int64 + return ret + } + return *o.IntervalCount +} + +// GetIntervalCountOk returns a tuple with the IntervalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetIntervalCountOk() (*int64, bool) { + if o == nil || o.IntervalCount == nil { + return nil, false + } + return o.IntervalCount, true +} + +// HasIntervalCount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasIntervalCount() bool { + if o != nil && o.IntervalCount != nil { + return true + } + + return false +} + +// SetIntervalCount gets a reference to the given int64 and assigns it to the IntervalCount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetIntervalCount(v int64) { + o.IntervalCount = &v +} + +// GetUsageType returns the UsageType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetUsageType() string { + if o == nil || o.UsageType == nil { + var ret string + return ret + } + return *o.UsageType +} + +// GetUsageTypeOk returns a tuple with the UsageType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) GetUsageTypeOk() (*string, bool) { + if o == nil || o.UsageType == nil { + return nil, false + } + return o.UsageType, true +} + +// HasUsageType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) HasUsageType() bool { + if o != nil && o.UsageType != nil { + return true + } + + return false +} + +// SetUsageType gets a reference to the given string and assigns it to the UsageType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) SetUsageType(v string) { + o.UsageType = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AggregateUsage != nil { + toSerialize["aggregateUsage"] = o.AggregateUsage + } + if o.Interval != nil { + toSerialize["interval"] = o.Interval + } + if o.IntervalCount != nil { + toSerialize["intervalCount"] = o.IntervalCount + } + if o.UsageType != nil { + toSerialize["usageType"] = o.UsageType + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go new file mode 100644 index 0000000..7184746 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go @@ -0,0 +1,341 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec struct { + // Active indicates the price is active on the product + Active *bool `json:"active,omitempty"` + // Currency is the required three-letter ISO currency code The codes below were generated from https://stripe.com/docs/currencies + Currency *string `json:"currency,omitempty"` + // Name to be displayed in the Stripe dashboard, hidden from customers + Name *string `json:"name,omitempty"` + Recurring *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence `json:"recurring,omitempty"` + // Tiers are Stripes billing tiers like + Tiers []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier `json:"tiers,omitempty"` + // TiersMode is the stripe tier mode + TiersMode *string `json:"tiersMode,omitempty"` + // UnitAmount in dollars. If present, billing_scheme is assumed to be per_unit + UnitAmount *string `json:"unitAmount,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec{} + return &this +} + +// GetActive returns the Active field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetActive() bool { + if o == nil || o.Active == nil { + var ret bool + return ret + } + return *o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetActiveOk() (*bool, bool) { + if o == nil || o.Active == nil { + return nil, false + } + return o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasActive() bool { + if o != nil && o.Active != nil { + return true + } + + return false +} + +// SetActive gets a reference to the given bool and assigns it to the Active field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetActive(v bool) { + o.Active = &v +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetCurrency() string { + if o == nil || o.Currency == nil { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetCurrencyOk() (*string, bool) { + if o == nil || o.Currency == nil { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasCurrency() bool { + if o != nil && o.Currency != nil { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetCurrency(v string) { + o.Currency = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetName(v string) { + o.Name = &v +} + +// GetRecurring returns the Recurring field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetRecurring() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence { + if o == nil || o.Recurring == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence + return ret + } + return *o.Recurring +} + +// GetRecurringOk returns a tuple with the Recurring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetRecurringOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence, bool) { + if o == nil || o.Recurring == nil { + return nil, false + } + return o.Recurring, true +} + +// HasRecurring returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasRecurring() bool { + if o != nil && o.Recurring != nil { + return true + } + + return false +} + +// SetRecurring gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence and assigns it to the Recurring field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetRecurring(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence) { + o.Recurring = &v +} + +// GetTiers returns the Tiers field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiers() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier { + if o == nil || o.Tiers == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier + return ret + } + return o.Tiers +} + +// GetTiersOk returns a tuple with the Tiers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier, bool) { + if o == nil || o.Tiers == nil { + return nil, false + } + return o.Tiers, true +} + +// HasTiers returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasTiers() bool { + if o != nil && o.Tiers != nil { + return true + } + + return false +} + +// SetTiers gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier and assigns it to the Tiers field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetTiers(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) { + o.Tiers = v +} + +// GetTiersMode returns the TiersMode field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiersMode() string { + if o == nil || o.TiersMode == nil { + var ret string + return ret + } + return *o.TiersMode +} + +// GetTiersModeOk returns a tuple with the TiersMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetTiersModeOk() (*string, bool) { + if o == nil || o.TiersMode == nil { + return nil, false + } + return o.TiersMode, true +} + +// HasTiersMode returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasTiersMode() bool { + if o != nil && o.TiersMode != nil { + return true + } + + return false +} + +// SetTiersMode gets a reference to the given string and assigns it to the TiersMode field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetTiersMode(v string) { + o.TiersMode = &v +} + +// GetUnitAmount returns the UnitAmount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetUnitAmount() string { + if o == nil || o.UnitAmount == nil { + var ret string + return ret + } + return *o.UnitAmount +} + +// GetUnitAmountOk returns a tuple with the UnitAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) GetUnitAmountOk() (*string, bool) { + if o == nil || o.UnitAmount == nil { + return nil, false + } + return o.UnitAmount, true +} + +// HasUnitAmount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) HasUnitAmount() bool { + if o != nil && o.UnitAmount != nil { + return true + } + + return false +} + +// SetUnitAmount gets a reference to the given string and assigns it to the UnitAmount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) SetUnitAmount(v string) { + o.UnitAmount = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Currency != nil { + toSerialize["currency"] = o.Currency + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Recurring != nil { + toSerialize["recurring"] = o.Recurring + } + if o.Tiers != nil { + toSerialize["tiers"] = o.Tiers + } + if o.TiersMode != nil { + toSerialize["tiersMode"] = o.TiersMode + } + if o.UnitAmount != nil { + toSerialize["unitAmount"] = o.UnitAmount + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go new file mode 100644 index 0000000..59e1a2e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec struct { + // DefaultPriceKey sets the default price for the product. + DefaultPriceKey *string `json:"defaultPriceKey,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec{} + return &this +} + +// GetDefaultPriceKey returns the DefaultPriceKey field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) GetDefaultPriceKey() string { + if o == nil || o.DefaultPriceKey == nil { + var ret string + return ret + } + return *o.DefaultPriceKey +} + +// GetDefaultPriceKeyOk returns a tuple with the DefaultPriceKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) GetDefaultPriceKeyOk() (*string, bool) { + if o == nil || o.DefaultPriceKey == nil { + return nil, false + } + return o.DefaultPriceKey, true +} + +// HasDefaultPriceKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) HasDefaultPriceKey() bool { + if o != nil && o.DefaultPriceKey != nil { + return true + } + + return false +} + +// SetDefaultPriceKey gets a reference to the given string and assigns it to the DefaultPriceKey field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) SetDefaultPriceKey(v string) { + o.DefaultPriceKey = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DefaultPriceKey != nil { + toSerialize["defaultPriceKey"] = o.DefaultPriceKey + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go new file mode 100644 index 0000000..d9cba80 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent StripeSetupIntent holds Stripe information about a SetupIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent struct { + // The client secret of this SetupIntent. Used for client-side retrieval using a publishable key. + ClientSecret *string `json:"clientSecret,omitempty"` + // The unique identifier for the SetupIntent. + Id *string `json:"id,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent{} + return &this +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetClientSecret() string { + if o == nil || o.ClientSecret == nil { + var ret string + return ret + } + return *o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetClientSecretOk() (*string, bool) { + if o == nil || o.ClientSecret == nil { + return nil, false + } + return o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) HasClientSecret() bool { + if o != nil && o.ClientSecret != nil { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) SetClientSecret(v string) { + o.ClientSecret = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) SetId(v string) { + o.Id = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ClientSecret != nil { + toSerialize["clientSecret"] = o.ClientSecret + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go new file mode 100644 index 0000000..cc6d3da --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec struct { + // CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice + CollectionMethod *string `json:"collectionMethod,omitempty"` + // DaysUntilDue is applicable when collection method is send_invoice + DaysUntilDue *int64 `json:"daysUntilDue,omitempty"` + // ID is the stripe subscription ID. + Id *string `json:"id,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec{} + return &this +} + +// GetCollectionMethod returns the CollectionMethod field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetCollectionMethod() string { + if o == nil || o.CollectionMethod == nil { + var ret string + return ret + } + return *o.CollectionMethod +} + +// GetCollectionMethodOk returns a tuple with the CollectionMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetCollectionMethodOk() (*string, bool) { + if o == nil || o.CollectionMethod == nil { + return nil, false + } + return o.CollectionMethod, true +} + +// HasCollectionMethod returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) HasCollectionMethod() bool { + if o != nil && o.CollectionMethod != nil { + return true + } + + return false +} + +// SetCollectionMethod gets a reference to the given string and assigns it to the CollectionMethod field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) SetCollectionMethod(v string) { + o.CollectionMethod = &v +} + +// GetDaysUntilDue returns the DaysUntilDue field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetDaysUntilDue() int64 { + if o == nil || o.DaysUntilDue == nil { + var ret int64 + return ret + } + return *o.DaysUntilDue +} + +// GetDaysUntilDueOk returns a tuple with the DaysUntilDue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetDaysUntilDueOk() (*int64, bool) { + if o == nil || o.DaysUntilDue == nil { + return nil, false + } + return o.DaysUntilDue, true +} + +// HasDaysUntilDue returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) HasDaysUntilDue() bool { + if o != nil && o.DaysUntilDue != nil { + return true + } + + return false +} + +// SetDaysUntilDue gets a reference to the given int64 and assigns it to the DaysUntilDue field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) SetDaysUntilDue(v int64) { + o.DaysUntilDue = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) SetId(v string) { + o.Id = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CollectionMethod != nil { + toSerialize["collectionMethod"] = o.CollectionMethod + } + if o.DaysUntilDue != nil { + toSerialize["daysUntilDue"] = o.DaysUntilDue + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go new file mode 100644 index 0000000..8a6c5de --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription Subscription is the Schema for the subscriptions API This object represents the goal of having a subscription. Creators: self-registration controller, suger webhook Readers: org admins +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go new file mode 100644 index 0000000..d77b867 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent SubscriptionIntent is the Schema for the subscriptionintents API +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go new file mode 100644 index 0000000..f8e682e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go new file mode 100644 index 0000000..690345a --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go @@ -0,0 +1,192 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec SubscriptionIntentSpec defines the desired state of SubscriptionIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec struct { + OfferRef *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference `json:"offerRef,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec `json:"suger,omitempty"` + // The type of the subscription intent. Validate values: stripe, suger Default to stripe. + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec{} + return &this +} + +// GetOfferRef returns the OfferRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetOfferRef() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference { + if o == nil || o.OfferRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference + return ret + } + return *o.OfferRef +} + +// GetOfferRefOk returns a tuple with the OfferRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetOfferRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference, bool) { + if o == nil || o.OfferRef == nil { + return nil, false + } + return o.OfferRef, true +} + +// HasOfferRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) HasOfferRef() bool { + if o != nil && o.OfferRef != nil { + return true + } + + return false +} + +// SetOfferRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference and assigns it to the OfferRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) SetOfferRef(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference) { + o.OfferRef = &v +} + +// GetSuger returns the Suger field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec { + if o == nil || o.Suger == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec + return ret + } + return *o.Suger +} + +// GetSugerOk returns a tuple with the Suger field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec, bool) { + if o == nil || o.Suger == nil { + return nil, false + } + return o.Suger, true +} + +// HasSuger returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) HasSuger() bool { + if o != nil && o.Suger != nil { + return true + } + + return false +} + +// SetSuger gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec and assigns it to the Suger field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) { + o.Suger = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.OfferRef != nil { + toSerialize["offerRef"] = o.OfferRef + } + if o.Suger != nil { + toSerialize["suger"] = o.Suger + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go new file mode 100644 index 0000000..1fb373d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go @@ -0,0 +1,228 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus SubscriptionIntentStatus defines the observed state of SubscriptionIntent +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus struct { + // Conditions is an array of current observed conditions. + Conditions []V1Condition `json:"conditions,omitempty"` + PaymentIntentName *string `json:"paymentIntentName,omitempty"` + SetupIntentName *string `json:"setupIntentName,omitempty"` + SubscriptionName *string `json:"subscriptionName,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +// GetPaymentIntentName returns the PaymentIntentName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetPaymentIntentName() string { + if o == nil || o.PaymentIntentName == nil { + var ret string + return ret + } + return *o.PaymentIntentName +} + +// GetPaymentIntentNameOk returns a tuple with the PaymentIntentName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetPaymentIntentNameOk() (*string, bool) { + if o == nil || o.PaymentIntentName == nil { + return nil, false + } + return o.PaymentIntentName, true +} + +// HasPaymentIntentName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasPaymentIntentName() bool { + if o != nil && o.PaymentIntentName != nil { + return true + } + + return false +} + +// SetPaymentIntentName gets a reference to the given string and assigns it to the PaymentIntentName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetPaymentIntentName(v string) { + o.PaymentIntentName = &v +} + +// GetSetupIntentName returns the SetupIntentName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSetupIntentName() string { + if o == nil || o.SetupIntentName == nil { + var ret string + return ret + } + return *o.SetupIntentName +} + +// GetSetupIntentNameOk returns a tuple with the SetupIntentName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSetupIntentNameOk() (*string, bool) { + if o == nil || o.SetupIntentName == nil { + return nil, false + } + return o.SetupIntentName, true +} + +// HasSetupIntentName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasSetupIntentName() bool { + if o != nil && o.SetupIntentName != nil { + return true + } + + return false +} + +// SetSetupIntentName gets a reference to the given string and assigns it to the SetupIntentName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetSetupIntentName(v string) { + o.SetupIntentName = &v +} + +// GetSubscriptionName returns the SubscriptionName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSubscriptionName() string { + if o == nil || o.SubscriptionName == nil { + var ret string + return ret + } + return *o.SubscriptionName +} + +// GetSubscriptionNameOk returns a tuple with the SubscriptionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) GetSubscriptionNameOk() (*string, bool) { + if o == nil || o.SubscriptionName == nil { + return nil, false + } + return o.SubscriptionName, true +} + +// HasSubscriptionName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) HasSubscriptionName() bool { + if o != nil && o.SubscriptionName != nil { + return true + } + + return false +} + +// SetSubscriptionName gets a reference to the given string and assigns it to the SubscriptionName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) SetSubscriptionName(v string) { + o.SubscriptionName = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.PaymentIntentName != nil { + toSerialize["paymentIntentName"] = o.PaymentIntentName + } + if o.SetupIntentName != nil { + toSerialize["setupIntentName"] = o.SetupIntentName + } + if o.SubscriptionName != nil { + toSerialize["subscriptionName"] = o.SubscriptionName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go new file mode 100644 index 0000000..4a67b98 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go @@ -0,0 +1,230 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem SubscriptionItem defines a product within a subscription. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem struct { + // Key is the item key within the subscription. + Key *string `json:"key,omitempty"` + // Metadata is an unstructured key value map stored with an item. + Metadata *map[string]string `json:"metadata,omitempty"` + Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` + // Quantity for this item. + Quantity *string `json:"quantity,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetKey(v string) { + o.Key = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetMetadata() map[string]string { + if o == nil || o.Metadata == nil { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetMetadataOk() (*map[string]string, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetProduct() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference { + if o == nil || o.Product == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetProductOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference and assigns it to the Product field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetProduct(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference) { + o.Product = &v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetQuantity() string { + if o == nil || o.Quantity == nil { + var ret string + return ret + } + return *o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) GetQuantityOk() (*string, bool) { + if o == nil || o.Quantity == nil { + return nil, false + } + return o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) HasQuantity() bool { + if o != nil && o.Quantity != nil { + return true + } + + return false +} + +// SetQuantity gets a reference to the given string and assigns it to the Quantity field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) SetQuantity(v string) { + o.Quantity = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go new file mode 100644 index 0000000..bf6247f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go new file mode 100644 index 0000000..b3b042d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference SubscriptionReference references a Subscription object. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) SetName(v string) { + o.Name = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go new file mode 100644 index 0000000..47d5bae --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go @@ -0,0 +1,524 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec SubscriptionSpec defines the desired state of Subscription +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec struct { + // AnchorDate is a timestamp representing the first billing cycle end date. It is represented by seconds from the epoch on the Stripe side. + AnchorDate *time.Time `json:"anchorDate,omitempty"` + // CloudType will validate resources like the consumption unit product are restricted to the correct cloud provider + CloudType *string `json:"cloudType,omitempty"` + Description *string `json:"description,omitempty"` + // EndDate is a timestamp representing the date when the subscription will be ended. It is represented in RFC3339 form and is in UTC. + EndDate *time.Time `json:"endDate,omitempty"` + // Ending balance for a subscription, this value is asynchrnously updated by billing-reporter and directly pulled from stripe's invoice object [1]. Negative at this value means that there are outstanding discount credits left for the customer. Nil implies that billing reporter hasn't run since creation and yet to set the value. [1] https://docs.stripe.com/api/invoices/object#invoice_object-ending_balance + EndingBalanceCents *int64 `json:"endingBalanceCents,omitempty"` + // One-time items. + Once []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem `json:"once,omitempty"` + ParentSubscription *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference `json:"parentSubscription,omitempty"` + // Recurring items. + Recurring []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem `json:"recurring,omitempty"` + // StartDate is a timestamp representing the start date of the subscription. It is represented in RFC3339 form and is in UTC. + StartDate *time.Time `json:"startDate,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec `json:"stripe,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec `json:"suger,omitempty"` + // The type of the subscription. Validate values: stripe, suger Default to stripe. + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec{} + return &this +} + +// GetAnchorDate returns the AnchorDate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetAnchorDate() time.Time { + if o == nil || o.AnchorDate == nil { + var ret time.Time + return ret + } + return *o.AnchorDate +} + +// GetAnchorDateOk returns a tuple with the AnchorDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetAnchorDateOk() (*time.Time, bool) { + if o == nil || o.AnchorDate == nil { + return nil, false + } + return o.AnchorDate, true +} + +// HasAnchorDate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasAnchorDate() bool { + if o != nil && o.AnchorDate != nil { + return true + } + + return false +} + +// SetAnchorDate gets a reference to the given time.Time and assigns it to the AnchorDate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetAnchorDate(v time.Time) { + o.AnchorDate = &v +} + +// GetCloudType returns the CloudType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetCloudType() string { + if o == nil || o.CloudType == nil { + var ret string + return ret + } + return *o.CloudType +} + +// GetCloudTypeOk returns a tuple with the CloudType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetCloudTypeOk() (*string, bool) { + if o == nil || o.CloudType == nil { + return nil, false + } + return o.CloudType, true +} + +// HasCloudType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasCloudType() bool { + if o != nil && o.CloudType != nil { + return true + } + + return false +} + +// SetCloudType gets a reference to the given string and assigns it to the CloudType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetCloudType(v string) { + o.CloudType = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetDescription(v string) { + o.Description = &v +} + +// GetEndDate returns the EndDate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndDate() time.Time { + if o == nil || o.EndDate == nil { + var ret time.Time + return ret + } + return *o.EndDate +} + +// GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndDateOk() (*time.Time, bool) { + if o == nil || o.EndDate == nil { + return nil, false + } + return o.EndDate, true +} + +// HasEndDate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasEndDate() bool { + if o != nil && o.EndDate != nil { + return true + } + + return false +} + +// SetEndDate gets a reference to the given time.Time and assigns it to the EndDate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetEndDate(v time.Time) { + o.EndDate = &v +} + +// GetEndingBalanceCents returns the EndingBalanceCents field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndingBalanceCents() int64 { + if o == nil || o.EndingBalanceCents == nil { + var ret int64 + return ret + } + return *o.EndingBalanceCents +} + +// GetEndingBalanceCentsOk returns a tuple with the EndingBalanceCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetEndingBalanceCentsOk() (*int64, bool) { + if o == nil || o.EndingBalanceCents == nil { + return nil, false + } + return o.EndingBalanceCents, true +} + +// HasEndingBalanceCents returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasEndingBalanceCents() bool { + if o != nil && o.EndingBalanceCents != nil { + return true + } + + return false +} + +// SetEndingBalanceCents gets a reference to the given int64 and assigns it to the EndingBalanceCents field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetEndingBalanceCents(v int64) { + o.EndingBalanceCents = &v +} + +// GetOnce returns the Once field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetOnce() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem { + if o == nil || o.Once == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem + return ret + } + return o.Once +} + +// GetOnceOk returns a tuple with the Once field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetOnceOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem, bool) { + if o == nil || o.Once == nil { + return nil, false + } + return o.Once, true +} + +// HasOnce returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasOnce() bool { + if o != nil && o.Once != nil { + return true + } + + return false +} + +// SetOnce gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem and assigns it to the Once field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetOnce(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) { + o.Once = v +} + +// GetParentSubscription returns the ParentSubscription field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetParentSubscription() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference { + if o == nil || o.ParentSubscription == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference + return ret + } + return *o.ParentSubscription +} + +// GetParentSubscriptionOk returns a tuple with the ParentSubscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetParentSubscriptionOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference, bool) { + if o == nil || o.ParentSubscription == nil { + return nil, false + } + return o.ParentSubscription, true +} + +// HasParentSubscription returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasParentSubscription() bool { + if o != nil && o.ParentSubscription != nil { + return true + } + + return false +} + +// SetParentSubscription gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference and assigns it to the ParentSubscription field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetParentSubscription(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference) { + o.ParentSubscription = &v +} + +// GetRecurring returns the Recurring field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetRecurring() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem { + if o == nil || o.Recurring == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem + return ret + } + return o.Recurring +} + +// GetRecurringOk returns a tuple with the Recurring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetRecurringOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem, bool) { + if o == nil || o.Recurring == nil { + return nil, false + } + return o.Recurring, true +} + +// HasRecurring returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasRecurring() bool { + if o != nil && o.Recurring != nil { + return true + } + + return false +} + +// SetRecurring gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem and assigns it to the Recurring field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetRecurring(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem) { + o.Recurring = v +} + +// GetStartDate returns the StartDate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStartDate() time.Time { + if o == nil || o.StartDate == nil { + var ret time.Time + return ret + } + return *o.StartDate +} + +// GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStartDateOk() (*time.Time, bool) { + if o == nil || o.StartDate == nil { + return nil, false + } + return o.StartDate, true +} + +// HasStartDate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasStartDate() bool { + if o != nil && o.StartDate != nil { + return true + } + + return false +} + +// SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetStartDate(v time.Time) { + o.StartDate = &v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec) { + o.Stripe = &v +} + +// GetSuger returns the Suger field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec { + if o == nil || o.Suger == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec + return ret + } + return *o.Suger +} + +// GetSugerOk returns a tuple with the Suger field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec, bool) { + if o == nil || o.Suger == nil { + return nil, false + } + return o.Suger, true +} + +// HasSuger returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasSuger() bool { + if o != nil && o.Suger != nil { + return true + } + + return false +} + +// SetSuger gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec and assigns it to the Suger field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) { + o.Suger = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AnchorDate != nil { + toSerialize["anchorDate"] = o.AnchorDate + } + if o.CloudType != nil { + toSerialize["cloudType"] = o.CloudType + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.EndDate != nil { + toSerialize["endDate"] = o.EndDate + } + if o.EndingBalanceCents != nil { + toSerialize["endingBalanceCents"] = o.EndingBalanceCents + } + if o.Once != nil { + toSerialize["once"] = o.Once + } + if o.ParentSubscription != nil { + toSerialize["parentSubscription"] = o.ParentSubscription + } + if o.Recurring != nil { + toSerialize["recurring"] = o.Recurring + } + if o.StartDate != nil { + toSerialize["startDate"] = o.StartDate + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + if o.Suger != nil { + toSerialize["suger"] = o.Suger + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go new file mode 100644 index 0000000..077c87f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go @@ -0,0 +1,193 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus SubscriptionStatus defines the observed state of Subscription +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus struct { + // Conditions is an array of current observed conditions. + Conditions []V1Condition `json:"conditions,omitempty"` + // the status of the subscription is designed to support billing agents, so it provides product and subscription items. + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem `json:"items,omitempty"` + PendingSetupIntent *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference `json:"pendingSetupIntent,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem { + if o == nil || o.Items == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem and assigns it to the Items field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) { + o.Items = v +} + +// GetPendingSetupIntent returns the PendingSetupIntent field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetPendingSetupIntent() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference { + if o == nil || o.PendingSetupIntent == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference + return ret + } + return *o.PendingSetupIntent +} + +// GetPendingSetupIntentOk returns a tuple with the PendingSetupIntent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) GetPendingSetupIntentOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference, bool) { + if o == nil || o.PendingSetupIntent == nil { + return nil, false + } + return o.PendingSetupIntent, true +} + +// HasPendingSetupIntent returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) HasPendingSetupIntent() bool { + if o != nil && o.PendingSetupIntent != nil { + return true + } + + return false +} + +// SetPendingSetupIntent gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference and assigns it to the PendingSetupIntent field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) SetPendingSetupIntent(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference) { + o.PendingSetupIntent = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if o.PendingSetupIntent != nil { + toSerialize["pendingSetupIntent"] = o.PendingSetupIntent + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go new file mode 100644 index 0000000..1be9339 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem struct { + // Key is the item key within the subscription. + Key *string `json:"key,omitempty"` + // Product is the Product object reference as a qualified name. + Product *string `json:"product,omitempty"` + // The unique identifier for the Stripe subscription item. + StripeID *string `json:"stripeID,omitempty"` + // The unique identifier for the Suger entitlement item. + SugerID *string `json:"sugerID,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetKey(v string) { + o.Key = &v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetProduct() string { + if o == nil || o.Product == nil { + var ret string + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetProductOk() (*string, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given string and assigns it to the Product field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetProduct(v string) { + o.Product = &v +} + +// GetStripeID returns the StripeID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetStripeID() string { + if o == nil || o.StripeID == nil { + var ret string + return ret + } + return *o.StripeID +} + +// GetStripeIDOk returns a tuple with the StripeID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetStripeIDOk() (*string, bool) { + if o == nil || o.StripeID == nil { + return nil, false + } + return o.StripeID, true +} + +// HasStripeID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasStripeID() bool { + if o != nil && o.StripeID != nil { + return true + } + + return false +} + +// SetStripeID gets a reference to the given string and assigns it to the StripeID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetStripeID(v string) { + o.StripeID = &v +} + +// GetSugerID returns the SugerID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetSugerID() string { + if o == nil || o.SugerID == nil { + var ret string + return ret + } + return *o.SugerID +} + +// GetSugerIDOk returns a tuple with the SugerID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) GetSugerIDOk() (*string, bool) { + if o == nil || o.SugerID == nil { + return nil, false + } + return o.SugerID, true +} + +// HasSugerID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) HasSugerID() bool { + if o != nil && o.SugerID != nil { + return true + } + + return false +} + +// SetSugerID gets a reference to the given string and assigns it to the SugerID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) SetSugerID(v string) { + o.SugerID = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + if o.StripeID != nil { + toSerialize["stripeID"] = o.StripeID + } + if o.SugerID != nil { + toSerialize["sugerID"] = o.SugerID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go new file mode 100644 index 0000000..34fa177 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview SugerEntitlementReview is a request to find the organization with entitlement ID. +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go new file mode 100644 index 0000000..94a9cee --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec struct { + // EntitlementID is the ID of the entitlement + EntitlementID *string `json:"entitlementID,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec{} + return &this +} + +// GetEntitlementID returns the EntitlementID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) GetEntitlementID() string { + if o == nil || o.EntitlementID == nil { + var ret string + return ret + } + return *o.EntitlementID +} + +// GetEntitlementIDOk returns a tuple with the EntitlementID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) GetEntitlementIDOk() (*string, bool) { + if o == nil || o.EntitlementID == nil { + return nil, false + } + return o.EntitlementID, true +} + +// HasEntitlementID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) HasEntitlementID() bool { + if o != nil && o.EntitlementID != nil { + return true + } + + return false +} + +// SetEntitlementID gets a reference to the given string and assigns it to the EntitlementID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) SetEntitlementID(v string) { + o.EntitlementID = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.EntitlementID != nil { + toSerialize["entitlementID"] = o.EntitlementID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go new file mode 100644 index 0000000..5c9df9f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus struct { + // BuyerID is the ID of buyer associated with organization The first one will be returned when there are more than one are found. + BuyerID *string `json:"buyerID,omitempty"` + // Conditions is an array of current observed conditions. + Conditions []V1Condition `json:"conditions,omitempty"` + // Organization is the name of the organization matching the entitlement ID The first one will be returned when there are more than one are found. + Organization *string `json:"organization,omitempty"` + // Partner is the partner associated with organization + Partner *string `json:"partner,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus{} + return &this +} + +// GetBuyerID returns the BuyerID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetBuyerID() string { + if o == nil || o.BuyerID == nil { + var ret string + return ret + } + return *o.BuyerID +} + +// GetBuyerIDOk returns a tuple with the BuyerID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetBuyerIDOk() (*string, bool) { + if o == nil || o.BuyerID == nil { + return nil, false + } + return o.BuyerID, true +} + +// HasBuyerID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasBuyerID() bool { + if o != nil && o.BuyerID != nil { + return true + } + + return false +} + +// SetBuyerID gets a reference to the given string and assigns it to the BuyerID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetBuyerID(v string) { + o.BuyerID = &v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetOrganization() string { + if o == nil || o.Organization == nil { + var ret string + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetOrganizationOk() (*string, bool) { + if o == nil || o.Organization == nil { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasOrganization() bool { + if o != nil && o.Organization != nil { + return true + } + + return false +} + +// SetOrganization gets a reference to the given string and assigns it to the Organization field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetOrganization(v string) { + o.Organization = &v +} + +// GetPartner returns the Partner field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetPartner() string { + if o == nil || o.Partner == nil { + var ret string + return ret + } + return *o.Partner +} + +// GetPartnerOk returns a tuple with the Partner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) GetPartnerOk() (*string, bool) { + if o == nil || o.Partner == nil { + return nil, false + } + return o.Partner, true +} + +// HasPartner returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) HasPartner() bool { + if o != nil && o.Partner != nil { + return true + } + + return false +} + +// SetPartner gets a reference to the given string and assigns it to the Partner field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) SetPartner(v string) { + o.Partner = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BuyerID != nil { + toSerialize["buyerID"] = o.BuyerID + } + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.Organization != nil { + toSerialize["organization"] = o.Organization + } + if o.Partner != nil { + toSerialize["partner"] = o.Partner + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go new file mode 100644 index 0000000..1e72214 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go @@ -0,0 +1,150 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct struct { + // DimensionKey is the metering dimension of the Suger product. + DimensionKey string `json:"dimensionKey"` + // ProductID is the suger product id. + ProductID *string `json:"productID,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct(dimensionKey string) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct{} + this.DimensionKey = dimensionKey + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct{} + return &this +} + +// GetDimensionKey returns the DimensionKey field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetDimensionKey() string { + if o == nil { + var ret string + return ret + } + + return o.DimensionKey +} + +// GetDimensionKeyOk returns a tuple with the DimensionKey field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetDimensionKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DimensionKey, true +} + +// SetDimensionKey sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) SetDimensionKey(v string) { + o.DimensionKey = v +} + +// GetProductID returns the ProductID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetProductID() string { + if o == nil || o.ProductID == nil { + var ret string + return ret + } + return *o.ProductID +} + +// GetProductIDOk returns a tuple with the ProductID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) GetProductIDOk() (*string, bool) { + if o == nil || o.ProductID == nil { + return nil, false + } + return o.ProductID, true +} + +// HasProductID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) HasProductID() bool { + if o != nil && o.ProductID != nil { + return true + } + + return false +} + +// SetProductID gets a reference to the given string and assigns it to the ProductID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) SetProductID(v string) { + o.ProductID = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["dimensionKey"] = o.DimensionKey + } + if o.ProductID != nil { + toSerialize["productID"] = o.ProductID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go new file mode 100644 index 0000000..c1783cc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec struct { + // DimensionKey is the metering dimension of the Suger product. Deprecated: use Products + DimensionKey *string `json:"dimensionKey,omitempty"` + // ProductID is the suger product id. Deprecated: use Products + ProductID *string `json:"productID,omitempty"` + // Products is the list of suger products. + Products []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct `json:"products,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec{} + return &this +} + +// GetDimensionKey returns the DimensionKey field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetDimensionKey() string { + if o == nil || o.DimensionKey == nil { + var ret string + return ret + } + return *o.DimensionKey +} + +// GetDimensionKeyOk returns a tuple with the DimensionKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetDimensionKeyOk() (*string, bool) { + if o == nil || o.DimensionKey == nil { + return nil, false + } + return o.DimensionKey, true +} + +// HasDimensionKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) HasDimensionKey() bool { + if o != nil && o.DimensionKey != nil { + return true + } + + return false +} + +// SetDimensionKey gets a reference to the given string and assigns it to the DimensionKey field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) SetDimensionKey(v string) { + o.DimensionKey = &v +} + +// GetProductID returns the ProductID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProductID() string { + if o == nil || o.ProductID == nil { + var ret string + return ret + } + return *o.ProductID +} + +// GetProductIDOk returns a tuple with the ProductID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProductIDOk() (*string, bool) { + if o == nil || o.ProductID == nil { + return nil, false + } + return o.ProductID, true +} + +// HasProductID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) HasProductID() bool { + if o != nil && o.ProductID != nil { + return true + } + + return false +} + +// SetProductID gets a reference to the given string and assigns it to the ProductID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) SetProductID(v string) { + o.ProductID = &v +} + +// GetProducts returns the Products field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProducts() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct { + if o == nil || o.Products == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct + return ret + } + return o.Products +} + +// GetProductsOk returns a tuple with the Products field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) GetProductsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct, bool) { + if o == nil || o.Products == nil { + return nil, false + } + return o.Products, true +} + +// HasProducts returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) HasProducts() bool { + if o != nil && o.Products != nil { + return true + } + + return false +} + +// SetProducts gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct and assigns it to the Products field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) SetProducts(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProduct) { + o.Products = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DimensionKey != nil { + toSerialize["dimensionKey"] = o.DimensionKey + } + if o.ProductID != nil { + toSerialize["productID"] = o.ProductID + } + if o.Products != nil { + toSerialize["products"] = o.Products + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go new file mode 100644 index 0000000..ab1ac8f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec struct { + // EntitlementID is the suger entitlement ID. An entitlement is a contract that one buyer has purchased your product in the marketplace. + EntitlementID *string `json:"entitlementID,omitempty"` + // The partner code of the entitlement. + Partner *string `json:"partner,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec{} + return &this +} + +// GetEntitlementID returns the EntitlementID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetEntitlementID() string { + if o == nil || o.EntitlementID == nil { + var ret string + return ret + } + return *o.EntitlementID +} + +// GetEntitlementIDOk returns a tuple with the EntitlementID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetEntitlementIDOk() (*string, bool) { + if o == nil || o.EntitlementID == nil { + return nil, false + } + return o.EntitlementID, true +} + +// HasEntitlementID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) HasEntitlementID() bool { + if o != nil && o.EntitlementID != nil { + return true + } + + return false +} + +// SetEntitlementID gets a reference to the given string and assigns it to the EntitlementID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) SetEntitlementID(v string) { + o.EntitlementID = &v +} + +// GetPartner returns the Partner field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetPartner() string { + if o == nil || o.Partner == nil { + var ret string + return ret + } + return *o.Partner +} + +// GetPartnerOk returns a tuple with the Partner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) GetPartnerOk() (*string, bool) { + if o == nil || o.Partner == nil { + return nil, false + } + return o.Partner, true +} + +// HasPartner returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) HasPartner() bool { + if o != nil && o.Partner != nil { + return true + } + + return false +} + +// SetPartner gets a reference to the given string and assigns it to the Partner field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) SetPartner(v string) { + o.Partner = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.EntitlementID != nil { + toSerialize["entitlementID"] = o.EntitlementID + } + if o.Partner != nil { + toSerialize["partner"] = o.Partner + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go new file mode 100644 index 0000000..2207292 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go @@ -0,0 +1,187 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec struct { + // BuyerID is the Suger internal ID of the buyer of the entitlement + BuyerID *string `json:"buyerID,omitempty"` + // ID is the Suger entitlement ID. Entitlement is the contract that one buyer has purchased your product in the marketplace. + EntitlementID string `json:"entitlementID"` + // Partner is the partner of the entitlement + Partner *string `json:"partner,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec(entitlementID string) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec{} + this.EntitlementID = entitlementID + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec{} + return &this +} + +// GetBuyerID returns the BuyerID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetBuyerID() string { + if o == nil || o.BuyerID == nil { + var ret string + return ret + } + return *o.BuyerID +} + +// GetBuyerIDOk returns a tuple with the BuyerID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetBuyerIDOk() (*string, bool) { + if o == nil || o.BuyerID == nil { + return nil, false + } + return o.BuyerID, true +} + +// HasBuyerID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) HasBuyerID() bool { + if o != nil && o.BuyerID != nil { + return true + } + + return false +} + +// SetBuyerID gets a reference to the given string and assigns it to the BuyerID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) SetBuyerID(v string) { + o.BuyerID = &v +} + +// GetEntitlementID returns the EntitlementID field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetEntitlementID() string { + if o == nil { + var ret string + return ret + } + + return o.EntitlementID +} + +// GetEntitlementIDOk returns a tuple with the EntitlementID field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetEntitlementIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EntitlementID, true +} + +// SetEntitlementID sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) SetEntitlementID(v string) { + o.EntitlementID = v +} + +// GetPartner returns the Partner field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetPartner() string { + if o == nil || o.Partner == nil { + var ret string + return ret + } + return *o.Partner +} + +// GetPartnerOk returns a tuple with the Partner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) GetPartnerOk() (*string, bool) { + if o == nil || o.Partner == nil { + return nil, false + } + return o.Partner, true +} + +// HasPartner returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) HasPartner() bool { + if o != nil && o.Partner != nil { + return true + } + + return false +} + +// SetPartner gets a reference to the given string and assigns it to the Partner field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) SetPartner(v string) { + o.Partner = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BuyerID != nil { + toSerialize["buyerID"] = o.BuyerID + } + if true { + toSerialize["entitlementID"] = o.EntitlementID + } + if o.Partner != nil { + toSerialize["partner"] = o.Partner + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go new file mode 100644 index 0000000..5ae97cb --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go new file mode 100644 index 0000000..1b1197e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList(items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go new file mode 100644 index 0000000..a85c29f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go @@ -0,0 +1,151 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec struct { + // The current time of the clock. + FrozenTime time.Time `json:"frozenTime"` + // The clock display name. + Name *string `json:"name,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec(frozenTime time.Time) *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec{} + this.FrozenTime = frozenTime + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec{} + return &this +} + +// GetFrozenTime returns the FrozenTime field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetFrozenTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.FrozenTime +} + +// GetFrozenTimeOk returns a tuple with the FrozenTime field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetFrozenTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.FrozenTime, true +} + +// SetFrozenTime sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) SetFrozenTime(v time.Time) { + o.FrozenTime = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) SetName(v string) { + o.Name = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["frozenTime"] = o.FrozenTime + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go new file mode 100644 index 0000000..7e93c7b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus struct { + // Conditions is an array of current observed conditions. + Conditions []V1Condition `json:"conditions,omitempty"` + StripeID *string `json:"stripeID,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +// GetStripeID returns the StripeID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetStripeID() string { + if o == nil || o.StripeID == nil { + var ret string + return ret + } + return *o.StripeID +} + +// GetStripeIDOk returns a tuple with the StripeID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) GetStripeIDOk() (*string, bool) { + if o == nil || o.StripeID == nil { + return nil, false + } + return o.StripeID, true +} + +// HasStripeID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) HasStripeID() bool { + if o != nil && o.StripeID != nil { + return true + } + + return false +} + +// SetStripeID gets a reference to the given string and assigns it to the StripeID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) SetStripeID(v string) { + o.StripeID = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.StripeID != nil { + toSerialize["stripeID"] = o.StripeID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go new file mode 100644 index 0000000..8dda237 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier +type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier struct { + // FlatAmount is the flat billing amount for an entire tier, regardless of the number of units in the tier, in dollars. + FlatAmount *string `json:"flatAmount,omitempty"` + // UnitAmount is the per-unit billing amount for each individual unit for which this tier applies, in dollars. + UnitAmount *string `json:"unitAmount,omitempty"` + // UpTo specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier. + UpTo *string `json:"upTo,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TierWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TierWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier { + this := ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier{} + return &this +} + +// GetFlatAmount returns the FlatAmount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetFlatAmount() string { + if o == nil || o.FlatAmount == nil { + var ret string + return ret + } + return *o.FlatAmount +} + +// GetFlatAmountOk returns a tuple with the FlatAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetFlatAmountOk() (*string, bool) { + if o == nil || o.FlatAmount == nil { + return nil, false + } + return o.FlatAmount, true +} + +// HasFlatAmount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) HasFlatAmount() bool { + if o != nil && o.FlatAmount != nil { + return true + } + + return false +} + +// SetFlatAmount gets a reference to the given string and assigns it to the FlatAmount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) SetFlatAmount(v string) { + o.FlatAmount = &v +} + +// GetUnitAmount returns the UnitAmount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUnitAmount() string { + if o == nil || o.UnitAmount == nil { + var ret string + return ret + } + return *o.UnitAmount +} + +// GetUnitAmountOk returns a tuple with the UnitAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUnitAmountOk() (*string, bool) { + if o == nil || o.UnitAmount == nil { + return nil, false + } + return o.UnitAmount, true +} + +// HasUnitAmount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) HasUnitAmount() bool { + if o != nil && o.UnitAmount != nil { + return true + } + + return false +} + +// SetUnitAmount gets a reference to the given string and assigns it to the UnitAmount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) SetUnitAmount(v string) { + o.UnitAmount = &v +} + +// GetUpTo returns the UpTo field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUpTo() string { + if o == nil || o.UpTo == nil { + var ret string + return ret + } + return *o.UpTo +} + +// GetUpToOk returns a tuple with the UpTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) GetUpToOk() (*string, bool) { + if o == nil || o.UpTo == nil { + return nil, false + } + return o.UpTo, true +} + +// HasUpTo returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) HasUpTo() bool { + if o != nil && o.UpTo != nil { + return true + } + + return false +} + +// SetUpTo gets a reference to the given string and assigns it to the UpTo field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) SetUpTo(v string) { + o.UpTo = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.FlatAmount != nil { + toSerialize["flatAmount"] = o.FlatAmount + } + if o.UnitAmount != nil { + toSerialize["unitAmount"] = o.UnitAmount + } + if o.UpTo != nil { + toSerialize["upTo"] = o.UpTo + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier struct { + value *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) Get() *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) Set(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier(val *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier { + return &NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go new file mode 100644 index 0000000..6143a40 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey APIKey +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go new file mode 100644 index 0000000..d423d79 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go new file mode 100644 index 0000000..3c76655 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go @@ -0,0 +1,305 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec APIKeySpec defines the desired state of APIKey +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec struct { + // Description is a user defined description of the key + Description *string `json:"description,omitempty"` + EncryptionKey *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey `json:"encryptionKey,omitempty"` + // Expiration is a duration (as a golang duration string) that defines how long this API key is valid for. This can only be set on initial creation and not updated later + ExpirationTime *time.Time `json:"expirationTime,omitempty"` + // InstanceName is the name of the instance this API key is for + InstanceName *string `json:"instanceName,omitempty"` + // Revoke is a boolean that defines if the token of this API key should be revoked. + Revoke *bool `json:"revoke,omitempty"` + // ServiceAccountName is the name of the service account this API key is for + ServiceAccountName *string `json:"serviceAccountName,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetDescription(v string) { + o.Description = &v +} + +// GetEncryptionKey returns the EncryptionKey field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetEncryptionKey() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey { + if o == nil || o.EncryptionKey == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey + return ret + } + return *o.EncryptionKey +} + +// GetEncryptionKeyOk returns a tuple with the EncryptionKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetEncryptionKeyOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey, bool) { + if o == nil || o.EncryptionKey == nil { + return nil, false + } + return o.EncryptionKey, true +} + +// HasEncryptionKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasEncryptionKey() bool { + if o != nil && o.EncryptionKey != nil { + return true + } + + return false +} + +// SetEncryptionKey gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey and assigns it to the EncryptionKey field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetEncryptionKey(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) { + o.EncryptionKey = &v +} + +// GetExpirationTime returns the ExpirationTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetExpirationTime() time.Time { + if o == nil || o.ExpirationTime == nil { + var ret time.Time + return ret + } + return *o.ExpirationTime +} + +// GetExpirationTimeOk returns a tuple with the ExpirationTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetExpirationTimeOk() (*time.Time, bool) { + if o == nil || o.ExpirationTime == nil { + return nil, false + } + return o.ExpirationTime, true +} + +// HasExpirationTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasExpirationTime() bool { + if o != nil && o.ExpirationTime != nil { + return true + } + + return false +} + +// SetExpirationTime gets a reference to the given time.Time and assigns it to the ExpirationTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetExpirationTime(v time.Time) { + o.ExpirationTime = &v +} + +// GetInstanceName returns the InstanceName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetInstanceName() string { + if o == nil || o.InstanceName == nil { + var ret string + return ret + } + return *o.InstanceName +} + +// GetInstanceNameOk returns a tuple with the InstanceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetInstanceNameOk() (*string, bool) { + if o == nil || o.InstanceName == nil { + return nil, false + } + return o.InstanceName, true +} + +// HasInstanceName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasInstanceName() bool { + if o != nil && o.InstanceName != nil { + return true + } + + return false +} + +// SetInstanceName gets a reference to the given string and assigns it to the InstanceName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetInstanceName(v string) { + o.InstanceName = &v +} + +// GetRevoke returns the Revoke field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetRevoke() bool { + if o == nil || o.Revoke == nil { + var ret bool + return ret + } + return *o.Revoke +} + +// GetRevokeOk returns a tuple with the Revoke field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetRevokeOk() (*bool, bool) { + if o == nil || o.Revoke == nil { + return nil, false + } + return o.Revoke, true +} + +// HasRevoke returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasRevoke() bool { + if o != nil && o.Revoke != nil { + return true + } + + return false +} + +// SetRevoke gets a reference to the given bool and assigns it to the Revoke field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetRevoke(v bool) { + o.Revoke = &v +} + +// GetServiceAccountName returns the ServiceAccountName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetServiceAccountName() string { + if o == nil || o.ServiceAccountName == nil { + var ret string + return ret + } + return *o.ServiceAccountName +} + +// GetServiceAccountNameOk returns a tuple with the ServiceAccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) GetServiceAccountNameOk() (*string, bool) { + if o == nil || o.ServiceAccountName == nil { + return nil, false + } + return o.ServiceAccountName, true +} + +// HasServiceAccountName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) HasServiceAccountName() bool { + if o != nil && o.ServiceAccountName != nil { + return true + } + + return false +} + +// SetServiceAccountName gets a reference to the given string and assigns it to the ServiceAccountName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) SetServiceAccountName(v string) { + o.ServiceAccountName = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.EncryptionKey != nil { + toSerialize["encryptionKey"] = o.EncryptionKey + } + if o.ExpirationTime != nil { + toSerialize["expirationTime"] = o.ExpirationTime + } + if o.InstanceName != nil { + toSerialize["instanceName"] = o.InstanceName + } + if o.Revoke != nil { + toSerialize["revoke"] = o.Revoke + } + if o.ServiceAccountName != nil { + toSerialize["serviceAccountName"] = o.ServiceAccountName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go new file mode 100644 index 0000000..0eda457 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go @@ -0,0 +1,342 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus APIKeyStatus defines the observed state of ServiceAccount +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus struct { + // Conditions is an array of current observed service account conditions. + Conditions []V1Condition `json:"conditions,omitempty"` + EncryptedToken *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken `json:"encryptedToken,omitempty"` + // ExpiresAt is a timestamp of when the key expires + ExpiresAt *time.Time `json:"expiresAt,omitempty"` + // IssuedAt is a timestamp of when the key was issued, stored as an epoch in seconds + IssuedAt *time.Time `json:"issuedAt,omitempty"` + // KeyId is a generated field that is a uid for the token + KeyId *string `json:"keyId,omitempty"` + // ExpiresAt is a timestamp of when the key was revoked, it triggers revocation action + RevokedAt *time.Time `json:"revokedAt,omitempty"` + // Token is the plaintext security token issued for the key. + Token *string `json:"token,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +// GetEncryptedToken returns the EncryptedToken field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetEncryptedToken() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken { + if o == nil || o.EncryptedToken == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken + return ret + } + return *o.EncryptedToken +} + +// GetEncryptedTokenOk returns a tuple with the EncryptedToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetEncryptedTokenOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken, bool) { + if o == nil || o.EncryptedToken == nil { + return nil, false + } + return o.EncryptedToken, true +} + +// HasEncryptedToken returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasEncryptedToken() bool { + if o != nil && o.EncryptedToken != nil { + return true + } + + return false +} + +// SetEncryptedToken gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken and assigns it to the EncryptedToken field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetEncryptedToken(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) { + o.EncryptedToken = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetExpiresAt() time.Time { + if o == nil || o.ExpiresAt == nil { + var ret time.Time + return ret + } + return *o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetExpiresAtOk() (*time.Time, bool) { + if o == nil || o.ExpiresAt == nil { + return nil, false + } + return o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasExpiresAt() bool { + if o != nil && o.ExpiresAt != nil { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetExpiresAt(v time.Time) { + o.ExpiresAt = &v +} + +// GetIssuedAt returns the IssuedAt field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetIssuedAt() time.Time { + if o == nil || o.IssuedAt == nil { + var ret time.Time + return ret + } + return *o.IssuedAt +} + +// GetIssuedAtOk returns a tuple with the IssuedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetIssuedAtOk() (*time.Time, bool) { + if o == nil || o.IssuedAt == nil { + return nil, false + } + return o.IssuedAt, true +} + +// HasIssuedAt returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasIssuedAt() bool { + if o != nil && o.IssuedAt != nil { + return true + } + + return false +} + +// SetIssuedAt gets a reference to the given time.Time and assigns it to the IssuedAt field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetIssuedAt(v time.Time) { + o.IssuedAt = &v +} + +// GetKeyId returns the KeyId field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetKeyId() string { + if o == nil || o.KeyId == nil { + var ret string + return ret + } + return *o.KeyId +} + +// GetKeyIdOk returns a tuple with the KeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetKeyIdOk() (*string, bool) { + if o == nil || o.KeyId == nil { + return nil, false + } + return o.KeyId, true +} + +// HasKeyId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasKeyId() bool { + if o != nil && o.KeyId != nil { + return true + } + + return false +} + +// SetKeyId gets a reference to the given string and assigns it to the KeyId field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetKeyId(v string) { + o.KeyId = &v +} + +// GetRevokedAt returns the RevokedAt field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetRevokedAt() time.Time { + if o == nil || o.RevokedAt == nil { + var ret time.Time + return ret + } + return *o.RevokedAt +} + +// GetRevokedAtOk returns a tuple with the RevokedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetRevokedAtOk() (*time.Time, bool) { + if o == nil || o.RevokedAt == nil { + return nil, false + } + return o.RevokedAt, true +} + +// HasRevokedAt returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasRevokedAt() bool { + if o != nil && o.RevokedAt != nil { + return true + } + + return false +} + +// SetRevokedAt gets a reference to the given time.Time and assigns it to the RevokedAt field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetRevokedAt(v time.Time) { + o.RevokedAt = &v +} + +// GetToken returns the Token field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetToken() string { + if o == nil || o.Token == nil { + var ret string + return ret + } + return *o.Token +} + +// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) GetTokenOk() (*string, bool) { + if o == nil || o.Token == nil { + return nil, false + } + return o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) HasToken() bool { + if o != nil && o.Token != nil { + return true + } + + return false +} + +// SetToken gets a reference to the given string and assigns it to the Token field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) SetToken(v string) { + o.Token = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.EncryptedToken != nil { + toSerialize["encryptedToken"] = o.EncryptedToken + } + if o.ExpiresAt != nil { + toSerialize["expiresAt"] = o.ExpiresAt + } + if o.IssuedAt != nil { + toSerialize["issuedAt"] = o.IssuedAt + } + if o.KeyId != nil { + toSerialize["keyId"] = o.KeyId + } + if o.RevokedAt != nil { + toSerialize["revokedAt"] = o.RevokedAt + } + if o.Token != nil { + toSerialize["token"] = o.Token + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go new file mode 100644 index 0000000..249b7ba --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog struct { + Categories []string `json:"categories"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog(categories []string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog{} + this.Categories = categories + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLogWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLogWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog{} + return &this +} + +// GetCategories returns the Categories field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) GetCategories() []string { + if o == nil { + var ret []string + return ret + } + + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) GetCategoriesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Categories, true +} + +// SetCategories sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) SetCategories(v []string) { + o.Categories = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["categories"] = o.Categories + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go new file mode 100644 index 0000000..4b935ba --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy AutoScalingPolicy defines the min/max replicas for component is autoscaling enabled. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy struct { + MaxReplicas int32 `json:"maxReplicas"` + MinReplicas *int32 `json:"minReplicas,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy(maxReplicas int32) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy{} + this.MaxReplicas = maxReplicas + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy{} + return &this +} + +// GetMaxReplicas returns the MaxReplicas field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMaxReplicas() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MaxReplicas +} + +// GetMaxReplicasOk returns a tuple with the MaxReplicas field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMaxReplicasOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MaxReplicas, true +} + +// SetMaxReplicas sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) SetMaxReplicas(v int32) { + o.MaxReplicas = v +} + +// GetMinReplicas returns the MinReplicas field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMinReplicas() int32 { + if o == nil || o.MinReplicas == nil { + var ret int32 + return ret + } + return *o.MinReplicas +} + +// GetMinReplicasOk returns a tuple with the MinReplicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) GetMinReplicasOk() (*int32, bool) { + if o == nil || o.MinReplicas == nil { + return nil, false + } + return o.MinReplicas, true +} + +// HasMinReplicas returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) HasMinReplicas() bool { + if o != nil && o.MinReplicas != nil { + return true + } + + return false +} + +// SetMinReplicas gets a reference to the given int32 and assigns it to the MinReplicas field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) SetMinReplicas(v int32) { + o.MinReplicas = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["maxReplicas"] = o.MaxReplicas + } + if o.MinReplicas != nil { + toSerialize["minReplicas"] = o.MinReplicas + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go new file mode 100644 index 0000000..399ae3b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection struct { + AccountId string `json:"accountId"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection(accountId string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection{} + this.AccountId = accountId + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection{} + return &this +} + +// GetAccountId returns the AccountId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) SetAccountId(v string) { + o.AccountId = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["accountId"] = o.AccountId + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go new file mode 100644 index 0000000..fafab8a --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go @@ -0,0 +1,291 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec struct { + // AWS Access key ID + AccessKeyID *string `json:"accessKeyID,omitempty"` + // AdminRoleARN is the admin role to assume (or empty to use the manager's identity). + AdminRoleARN *string `json:"adminRoleARN,omitempty"` + // ClusterName is the EKS cluster name. + ClusterName string `json:"clusterName"` + // PermissionBoundaryARN refers to the permission boundary to assign to IAM roles. + PermissionBoundaryARN *string `json:"permissionBoundaryARN,omitempty"` + // Region is the AWS region of the cluster. + Region string `json:"region"` + // AWS Secret Access Key + SecretAccessKey *string `json:"secretAccessKey,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec(clusterName string, region string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec{} + this.ClusterName = clusterName + this.Region = region + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec{} + return &this +} + +// GetAccessKeyID returns the AccessKeyID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAccessKeyID() string { + if o == nil || o.AccessKeyID == nil { + var ret string + return ret + } + return *o.AccessKeyID +} + +// GetAccessKeyIDOk returns a tuple with the AccessKeyID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAccessKeyIDOk() (*string, bool) { + if o == nil || o.AccessKeyID == nil { + return nil, false + } + return o.AccessKeyID, true +} + +// HasAccessKeyID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasAccessKeyID() bool { + if o != nil && o.AccessKeyID != nil { + return true + } + + return false +} + +// SetAccessKeyID gets a reference to the given string and assigns it to the AccessKeyID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetAccessKeyID(v string) { + o.AccessKeyID = &v +} + +// GetAdminRoleARN returns the AdminRoleARN field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAdminRoleARN() string { + if o == nil || o.AdminRoleARN == nil { + var ret string + return ret + } + return *o.AdminRoleARN +} + +// GetAdminRoleARNOk returns a tuple with the AdminRoleARN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetAdminRoleARNOk() (*string, bool) { + if o == nil || o.AdminRoleARN == nil { + return nil, false + } + return o.AdminRoleARN, true +} + +// HasAdminRoleARN returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasAdminRoleARN() bool { + if o != nil && o.AdminRoleARN != nil { + return true + } + + return false +} + +// SetAdminRoleARN gets a reference to the given string and assigns it to the AdminRoleARN field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetAdminRoleARN(v string) { + o.AdminRoleARN = &v +} + +// GetClusterName returns the ClusterName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetClusterName() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterName +} + +// GetClusterNameOk returns a tuple with the ClusterName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetClusterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterName, true +} + +// SetClusterName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetClusterName(v string) { + o.ClusterName = v +} + +// GetPermissionBoundaryARN returns the PermissionBoundaryARN field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetPermissionBoundaryARN() string { + if o == nil || o.PermissionBoundaryARN == nil { + var ret string + return ret + } + return *o.PermissionBoundaryARN +} + +// GetPermissionBoundaryARNOk returns a tuple with the PermissionBoundaryARN field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetPermissionBoundaryARNOk() (*string, bool) { + if o == nil || o.PermissionBoundaryARN == nil { + return nil, false + } + return o.PermissionBoundaryARN, true +} + +// HasPermissionBoundaryARN returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasPermissionBoundaryARN() bool { + if o != nil && o.PermissionBoundaryARN != nil { + return true + } + + return false +} + +// SetPermissionBoundaryARN gets a reference to the given string and assigns it to the PermissionBoundaryARN field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetPermissionBoundaryARN(v string) { + o.PermissionBoundaryARN = &v +} + +// GetRegion returns the Region field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetRegion(v string) { + o.Region = v +} + +// GetSecretAccessKey returns the SecretAccessKey field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetSecretAccessKey() string { + if o == nil || o.SecretAccessKey == nil { + var ret string + return ret + } + return *o.SecretAccessKey +} + +// GetSecretAccessKeyOk returns a tuple with the SecretAccessKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) GetSecretAccessKeyOk() (*string, bool) { + if o == nil || o.SecretAccessKey == nil { + return nil, false + } + return o.SecretAccessKey, true +} + +// HasSecretAccessKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) HasSecretAccessKey() bool { + if o != nil && o.SecretAccessKey != nil { + return true + } + + return false +} + +// SetSecretAccessKey gets a reference to the given string and assigns it to the SecretAccessKey field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) SetSecretAccessKey(v string) { + o.SecretAccessKey = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AccessKeyID != nil { + toSerialize["accessKeyID"] = o.AccessKeyID + } + if o.AdminRoleARN != nil { + toSerialize["adminRoleARN"] = o.AdminRoleARN + } + if true { + toSerialize["clusterName"] = o.ClusterName + } + if o.PermissionBoundaryARN != nil { + toSerialize["permissionBoundaryARN"] = o.PermissionBoundaryARN + } + if true { + toSerialize["region"] = o.Region + } + if o.SecretAccessKey != nil { + toSerialize["secretAccessKey"] = o.SecretAccessKey + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go new file mode 100644 index 0000000..230002e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go @@ -0,0 +1,199 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection struct { + ClientId string `json:"clientId"` + SubscriptionId string `json:"subscriptionId"` + SupportClientId string `json:"supportClientId"` + TenantId string `json:"tenantId"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection(clientId string, subscriptionId string, supportClientId string, tenantId string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection{} + this.ClientId = clientId + this.SubscriptionId = subscriptionId + this.SupportClientId = supportClientId + this.TenantId = tenantId + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection{} + return &this +} + +// GetClientId returns the ClientId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetClientId() string { + if o == nil { + var ret string + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetClientId(v string) { + o.ClientId = v +} + +// GetSubscriptionId returns the SubscriptionId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSubscriptionId() string { + if o == nil { + var ret string + return ret + } + + return o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSubscriptionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionId, true +} + +// SetSubscriptionId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetSubscriptionId(v string) { + o.SubscriptionId = v +} + +// GetSupportClientId returns the SupportClientId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSupportClientId() string { + if o == nil { + var ret string + return ret + } + + return o.SupportClientId +} + +// GetSupportClientIdOk returns a tuple with the SupportClientId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetSupportClientIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SupportClientId, true +} + +// SetSupportClientId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetSupportClientId(v string) { + o.SupportClientId = v +} + +// GetTenantId returns the TenantId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetTenantId() string { + if o == nil { + var ret string + return ret + } + + return o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) GetTenantIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantId, true +} + +// SetTenantId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) SetTenantId(v string) { + o.TenantId = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["clientId"] = o.ClientId + } + if true { + toSerialize["subscriptionId"] = o.SubscriptionId + } + if true { + toSerialize["supportClientId"] = o.SupportClientId + } + if true { + toSerialize["tenantId"] = o.TenantId + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go new file mode 100644 index 0000000..fa624c0 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go @@ -0,0 +1,263 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec struct { + // ClientID is the Azure client ID of which the GSA can impersonate. + ClientID string `json:"clientID"` + // ClusterName is the AKS cluster name. + ClusterName string `json:"clusterName"` + // Location is the Azure location of the cluster. + Location string `json:"location"` + // ResourceGroup is the Azure resource group of the cluster. + ResourceGroup string `json:"resourceGroup"` + // SubscriptionID is the Azure subscription ID of the cluster. + SubscriptionID string `json:"subscriptionID"` + // TenantID is the Azure tenant ID of the client. + TenantID string `json:"tenantID"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec(clientID string, clusterName string, location string, resourceGroup string, subscriptionID string, tenantID string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec{} + this.ClientID = clientID + this.ClusterName = clusterName + this.Location = location + this.ResourceGroup = resourceGroup + this.SubscriptionID = subscriptionID + this.TenantID = tenantID + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec{} + return &this +} + +// GetClientID returns the ClientID field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClientID() string { + if o == nil { + var ret string + return ret + } + + return o.ClientID +} + +// GetClientIDOk returns a tuple with the ClientID field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClientIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientID, true +} + +// SetClientID sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetClientID(v string) { + o.ClientID = v +} + +// GetClusterName returns the ClusterName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClusterName() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterName +} + +// GetClusterNameOk returns a tuple with the ClusterName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetClusterNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterName, true +} + +// SetClusterName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetClusterName(v string) { + o.ClusterName = v +} + +// GetLocation returns the Location field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetLocation(v string) { + o.Location = v +} + +// GetResourceGroup returns the ResourceGroup field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetResourceGroup() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceGroup +} + +// GetResourceGroupOk returns a tuple with the ResourceGroup field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetResourceGroupOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceGroup, true +} + +// SetResourceGroup sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetResourceGroup(v string) { + o.ResourceGroup = v +} + +// GetSubscriptionID returns the SubscriptionID field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetSubscriptionID() string { + if o == nil { + var ret string + return ret + } + + return o.SubscriptionID +} + +// GetSubscriptionIDOk returns a tuple with the SubscriptionID field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetSubscriptionIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionID, true +} + +// SetSubscriptionID sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetSubscriptionID(v string) { + o.SubscriptionID = v +} + +// GetTenantID returns the TenantID field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetTenantID() string { + if o == nil { + var ret string + return ret + } + + return o.TenantID +} + +// GetTenantIDOk returns a tuple with the TenantID field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) GetTenantIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TenantID, true +} + +// SetTenantID sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) SetTenantID(v string) { + o.TenantID = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["clientID"] = o.ClientID + } + if true { + toSerialize["clusterName"] = o.ClusterName + } + if true { + toSerialize["location"] = o.Location + } + if true { + toSerialize["resourceGroup"] = o.ResourceGroup + } + if true { + toSerialize["subscriptionID"] = o.SubscriptionID + } + if true { + toSerialize["tenantID"] = o.TenantID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go new file mode 100644 index 0000000..bf13d1f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec struct { + Email string `json:"email"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec(email string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec{} + this.Email = email + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec{} + return &this +} + +// GetEmail returns the Email field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) SetEmail(v string) { + o.Email = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["email"] = o.Email + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go new file mode 100644 index 0000000..efd0b77 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go @@ -0,0 +1,258 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper struct { + AutoScalingPolicy *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy `json:"autoScalingPolicy,omitempty"` + // Image name is the name of the image to deploy. + Image *string `json:"image,omitempty"` + // Replicas is the expected size of the bookkeeper cluster. + Replicas int32 `json:"replicas"` + ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec `json:"resourceSpec,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource `json:"resources,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper(replicas int32) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper{} + this.Replicas = replicas + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper{} + return &this +} + +// GetAutoScalingPolicy returns the AutoScalingPolicy field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetAutoScalingPolicy() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy { + if o == nil || o.AutoScalingPolicy == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy + return ret + } + return *o.AutoScalingPolicy +} + +// GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetAutoScalingPolicyOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy, bool) { + if o == nil || o.AutoScalingPolicy == nil { + return nil, false + } + return o.AutoScalingPolicy, true +} + +// HasAutoScalingPolicy returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasAutoScalingPolicy() bool { + if o != nil && o.AutoScalingPolicy != nil { + return true + } + + return false +} + +// SetAutoScalingPolicy gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy and assigns it to the AutoScalingPolicy field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetAutoScalingPolicy(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) { + o.AutoScalingPolicy = &v +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetImage() string { + if o == nil || o.Image == nil { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetImageOk() (*string, bool) { + if o == nil || o.Image == nil { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasImage() bool { + if o != nil && o.Image != nil { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetImage(v string) { + o.Image = &v +} + +// GetReplicas returns the Replicas field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetReplicas() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Replicas +} + +// GetReplicasOk returns a tuple with the Replicas field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetReplicasOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Replicas, true +} + +// SetReplicas sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetReplicas(v int32) { + o.Replicas = v +} + +// GetResourceSpec returns the ResourceSpec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec { + if o == nil || o.ResourceSpec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec + return ret + } + return *o.ResourceSpec +} + +// GetResourceSpecOk returns a tuple with the ResourceSpec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec, bool) { + if o == nil || o.ResourceSpec == nil { + return nil, false + } + return o.ResourceSpec, true +} + +// HasResourceSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasResourceSpec() bool { + if o != nil && o.ResourceSpec != nil { + return true + } + + return false +} + +// SetResourceSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec and assigns it to the ResourceSpec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) { + o.ResourceSpec = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource { + if o == nil || o.Resources == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource and assigns it to the Resources field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) { + o.Resources = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AutoScalingPolicy != nil { + toSerialize["autoScalingPolicy"] = o.AutoScalingPolicy + } + if o.Image != nil { + toSerialize["image"] = o.Image + } + if true { + toSerialize["replicas"] = o.Replicas + } + if o.ResourceSpec != nil { + toSerialize["resourceSpec"] = o.ResourceSpec + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go new file mode 100644 index 0000000..5d978f0 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec struct { + // NodeType defines the request node specification type, take lower precedence over Resources + NodeType *string `json:"nodeType,omitempty"` + // StorageSize defines the size of the storage + StorageSize *string `json:"storageSize,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec{} + return &this +} + +// GetNodeType returns the NodeType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetNodeType() string { + if o == nil || o.NodeType == nil { + var ret string + return ret + } + return *o.NodeType +} + +// GetNodeTypeOk returns a tuple with the NodeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetNodeTypeOk() (*string, bool) { + if o == nil || o.NodeType == nil { + return nil, false + } + return o.NodeType, true +} + +// HasNodeType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) HasNodeType() bool { + if o != nil && o.NodeType != nil { + return true + } + + return false +} + +// SetNodeType gets a reference to the given string and assigns it to the NodeType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) SetNodeType(v string) { + o.NodeType = &v +} + +// GetStorageSize returns the StorageSize field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetStorageSize() string { + if o == nil || o.StorageSize == nil { + var ret string + return ret + } + return *o.StorageSize +} + +// GetStorageSizeOk returns a tuple with the StorageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) GetStorageSizeOk() (*string, bool) { + if o == nil || o.StorageSize == nil { + return nil, false + } + return o.StorageSize, true +} + +// HasStorageSize returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) HasStorageSize() bool { + if o != nil && o.StorageSize != nil { + return true + } + + return false +} + +// SetStorageSize gets a reference to the given string and assigns it to the StorageSize field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) SetStorageSize(v string) { + o.StorageSize = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.NodeType != nil { + toSerialize["nodeType"] = o.NodeType + } + if o.StorageSize != nil { + toSerialize["storageSize"] = o.StorageSize + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go new file mode 100644 index 0000000..433e913 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference struct { + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference(name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go new file mode 100644 index 0000000..151bfba --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go @@ -0,0 +1,291 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource Represents resource spec for bookie nodes +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource struct { + // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + Cpu string `json:"cpu"` + // Percentage of direct memory from overall memory. Set to 0 to use default value. + DirectPercentage *int32 `json:"directPercentage,omitempty"` + // Percentage of heap memory from overall memory. Set to 0 to use default value. + HeapPercentage *int32 `json:"heapPercentage,omitempty"` + // JournalDisk size. Set to zero equivalent to use default value + JournalDisk *string `json:"journalDisk,omitempty"` + // LedgerDisk size. Set to zero equivalent to use default value + LedgerDisk *string `json:"ledgerDisk,omitempty"` + // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + Memory string `json:"memory"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource(cpu string, memory string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource{} + this.Cpu = cpu + this.Memory = memory + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource{} + return &this +} + +// GetCpu returns the Cpu field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetCpu() string { + if o == nil { + var ret string + return ret + } + + return o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetCpuOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cpu, true +} + +// SetCpu sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetCpu(v string) { + o.Cpu = v +} + +// GetDirectPercentage returns the DirectPercentage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetDirectPercentage() int32 { + if o == nil || o.DirectPercentage == nil { + var ret int32 + return ret + } + return *o.DirectPercentage +} + +// GetDirectPercentageOk returns a tuple with the DirectPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetDirectPercentageOk() (*int32, bool) { + if o == nil || o.DirectPercentage == nil { + return nil, false + } + return o.DirectPercentage, true +} + +// HasDirectPercentage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasDirectPercentage() bool { + if o != nil && o.DirectPercentage != nil { + return true + } + + return false +} + +// SetDirectPercentage gets a reference to the given int32 and assigns it to the DirectPercentage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetDirectPercentage(v int32) { + o.DirectPercentage = &v +} + +// GetHeapPercentage returns the HeapPercentage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetHeapPercentage() int32 { + if o == nil || o.HeapPercentage == nil { + var ret int32 + return ret + } + return *o.HeapPercentage +} + +// GetHeapPercentageOk returns a tuple with the HeapPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetHeapPercentageOk() (*int32, bool) { + if o == nil || o.HeapPercentage == nil { + return nil, false + } + return o.HeapPercentage, true +} + +// HasHeapPercentage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasHeapPercentage() bool { + if o != nil && o.HeapPercentage != nil { + return true + } + + return false +} + +// SetHeapPercentage gets a reference to the given int32 and assigns it to the HeapPercentage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetHeapPercentage(v int32) { + o.HeapPercentage = &v +} + +// GetJournalDisk returns the JournalDisk field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetJournalDisk() string { + if o == nil || o.JournalDisk == nil { + var ret string + return ret + } + return *o.JournalDisk +} + +// GetJournalDiskOk returns a tuple with the JournalDisk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetJournalDiskOk() (*string, bool) { + if o == nil || o.JournalDisk == nil { + return nil, false + } + return o.JournalDisk, true +} + +// HasJournalDisk returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasJournalDisk() bool { + if o != nil && o.JournalDisk != nil { + return true + } + + return false +} + +// SetJournalDisk gets a reference to the given string and assigns it to the JournalDisk field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetJournalDisk(v string) { + o.JournalDisk = &v +} + +// GetLedgerDisk returns the LedgerDisk field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetLedgerDisk() string { + if o == nil || o.LedgerDisk == nil { + var ret string + return ret + } + return *o.LedgerDisk +} + +// GetLedgerDiskOk returns a tuple with the LedgerDisk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetLedgerDiskOk() (*string, bool) { + if o == nil || o.LedgerDisk == nil { + return nil, false + } + return o.LedgerDisk, true +} + +// HasLedgerDisk returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) HasLedgerDisk() bool { + if o != nil && o.LedgerDisk != nil { + return true + } + + return false +} + +// SetLedgerDisk gets a reference to the given string and assigns it to the LedgerDisk field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetLedgerDisk(v string) { + o.LedgerDisk = &v +} + +// GetMemory returns the Memory field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetMemory() string { + if o == nil { + var ret string + return ret + } + + return o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) GetMemoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Memory, true +} + +// SetMemory sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) SetMemory(v string) { + o.Memory = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cpu"] = o.Cpu + } + if o.DirectPercentage != nil { + toSerialize["directPercentage"] = o.DirectPercentage + } + if o.HeapPercentage != nil { + toSerialize["heapPercentage"] = o.HeapPercentage + } + if o.JournalDisk != nil { + toSerialize["journalDisk"] = o.JournalDisk + } + if o.LedgerDisk != nil { + toSerialize["ledgerDisk"] = o.LedgerDisk + } + if true { + toSerialize["memory"] = o.Memory + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go new file mode 100644 index 0000000..2d77ac6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go @@ -0,0 +1,258 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker struct { + AutoScalingPolicy *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy `json:"autoScalingPolicy,omitempty"` + // Image name is the name of the image to deploy. + Image *string `json:"image,omitempty"` + // Replicas is the expected size of the broker cluster. + Replicas int32 `json:"replicas"` + ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec `json:"resourceSpec,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource `json:"resources,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker(replicas int32) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker{} + this.Replicas = replicas + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker{} + return &this +} + +// GetAutoScalingPolicy returns the AutoScalingPolicy field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetAutoScalingPolicy() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy { + if o == nil || o.AutoScalingPolicy == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy + return ret + } + return *o.AutoScalingPolicy +} + +// GetAutoScalingPolicyOk returns a tuple with the AutoScalingPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetAutoScalingPolicyOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy, bool) { + if o == nil || o.AutoScalingPolicy == nil { + return nil, false + } + return o.AutoScalingPolicy, true +} + +// HasAutoScalingPolicy returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasAutoScalingPolicy() bool { + if o != nil && o.AutoScalingPolicy != nil { + return true + } + + return false +} + +// SetAutoScalingPolicy gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy and assigns it to the AutoScalingPolicy field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetAutoScalingPolicy(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy) { + o.AutoScalingPolicy = &v +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetImage() string { + if o == nil || o.Image == nil { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetImageOk() (*string, bool) { + if o == nil || o.Image == nil { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasImage() bool { + if o != nil && o.Image != nil { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetImage(v string) { + o.Image = &v +} + +// GetReplicas returns the Replicas field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetReplicas() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Replicas +} + +// GetReplicasOk returns a tuple with the Replicas field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetReplicasOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Replicas, true +} + +// SetReplicas sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetReplicas(v int32) { + o.Replicas = v +} + +// GetResourceSpec returns the ResourceSpec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec { + if o == nil || o.ResourceSpec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec + return ret + } + return *o.ResourceSpec +} + +// GetResourceSpecOk returns a tuple with the ResourceSpec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec, bool) { + if o == nil || o.ResourceSpec == nil { + return nil, false + } + return o.ResourceSpec, true +} + +// HasResourceSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasResourceSpec() bool { + if o != nil && o.ResourceSpec != nil { + return true + } + + return false +} + +// SetResourceSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec and assigns it to the ResourceSpec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) { + o.ResourceSpec = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource { + if o == nil || o.Resources == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource and assigns it to the Resources field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) { + o.Resources = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AutoScalingPolicy != nil { + toSerialize["autoScalingPolicy"] = o.AutoScalingPolicy + } + if o.Image != nil { + toSerialize["image"] = o.Image + } + if true { + toSerialize["replicas"] = o.Replicas + } + if o.ResourceSpec != nil { + toSerialize["resourceSpec"] = o.ResourceSpec + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go new file mode 100644 index 0000000..272589d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec struct { + // NodeType defines the request node specification type, take lower precedence over Resources + NodeType *string `json:"nodeType,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec{} + return &this +} + +// GetNodeType returns the NodeType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) GetNodeType() string { + if o == nil || o.NodeType == nil { + var ret string + return ret + } + return *o.NodeType +} + +// GetNodeTypeOk returns a tuple with the NodeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) GetNodeTypeOk() (*string, bool) { + if o == nil || o.NodeType == nil { + return nil, false + } + return o.NodeType, true +} + +// HasNodeType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) HasNodeType() bool { + if o != nil && o.NodeType != nil { + return true + } + + return false +} + +// SetNodeType gets a reference to the given string and assigns it to the NodeType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) SetNodeType(v string) { + o.NodeType = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.NodeType != nil { + toSerialize["nodeType"] = o.NodeType + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go new file mode 100644 index 0000000..679c082 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain Chain specifies a named chain for a role definition array. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain struct { + Name *string `json:"name,omitempty"` + RoleChain []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition `json:"roleChain,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ChainWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ChainWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) SetName(v string) { + o.Name = &v +} + +// GetRoleChain returns the RoleChain field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetRoleChain() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition { + if o == nil || o.RoleChain == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition + return ret + } + return o.RoleChain +} + +// GetRoleChainOk returns a tuple with the RoleChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) GetRoleChainOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition, bool) { + if o == nil || o.RoleChain == nil { + return nil, false + } + return o.RoleChain, true +} + +// HasRoleChain returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) HasRoleChain() bool { + if o != nil && o.RoleChain != nil { + return true + } + + return false +} + +// SetRoleChain gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition and assigns it to the RoleChain field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) SetRoleChain(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) { + o.RoleChain = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.RoleChain != nil { + toSerialize["roleChain"] = o.RoleChain + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go new file mode 100644 index 0000000..acc969f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection CloudConnection represents a connection to the customer's cloud environment Currently, this object *only* is used to serve as an inventory of customer connections and make sure that they remain valid. In the future, we might consider this object to be used by other objects, but existing APIs already take care of that Other internal options are defined in the CloudConnectionBackendConfig type which is the \"companion\" CRD to this user facing API +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go new file mode 100644 index 0000000..4b14e52 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go new file mode 100644 index 0000000..506f760 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go @@ -0,0 +1,220 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec CloudConnectionSpec defines the desired state of CloudConnection +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec struct { + Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection `json:"aws,omitempty"` + Azure *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection `json:"azure,omitempty"` + Gcp *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection `json:"gcp,omitempty"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec(type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec{} + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec{} + return &this +} + +// GetAws returns the Aws field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAws() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection { + if o == nil || o.Aws == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection + return ret + } + return *o.Aws +} + +// GetAwsOk returns a tuple with the Aws field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAwsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection, bool) { + if o == nil || o.Aws == nil { + return nil, false + } + return o.Aws, true +} + +// HasAws returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) HasAws() bool { + if o != nil && o.Aws != nil { + return true + } + + return false +} + +// SetAws gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection and assigns it to the Aws field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetAws(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection) { + o.Aws = &v +} + +// GetAzure returns the Azure field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAzure() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection { + if o == nil || o.Azure == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection + return ret + } + return *o.Azure +} + +// GetAzureOk returns a tuple with the Azure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetAzureOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection, bool) { + if o == nil || o.Azure == nil { + return nil, false + } + return o.Azure, true +} + +// HasAzure returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) HasAzure() bool { + if o != nil && o.Azure != nil { + return true + } + + return false +} + +// SetAzure gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection and assigns it to the Azure field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetAzure(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection) { + o.Azure = &v +} + +// GetGcp returns the Gcp field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetGcp() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection { + if o == nil || o.Gcp == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection + return ret + } + return *o.Gcp +} + +// GetGcpOk returns a tuple with the Gcp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetGcpOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection, bool) { + if o == nil || o.Gcp == nil { + return nil, false + } + return o.Gcp, true +} + +// HasGcp returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) HasGcp() bool { + if o != nil && o.Gcp != nil { + return true + } + + return false +} + +// SetGcp gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection and assigns it to the Gcp field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetGcp(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) { + o.Gcp = &v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Aws != nil { + toSerialize["aws"] = o.Aws + } + if o.Azure != nil { + toSerialize["azure"] = o.Azure + } + if o.Gcp != nil { + toSerialize["gcp"] = o.Gcp + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go new file mode 100644 index 0000000..2ac0d03 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go @@ -0,0 +1,192 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus CloudConnectionStatus defines the observed state of CloudConnection +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus struct { + AvailableLocations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo `json:"availableLocations,omitempty"` + AwsPolicyVersion *string `json:"awsPolicyVersion,omitempty"` + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus{} + return &this +} + +// GetAvailableLocations returns the AvailableLocations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAvailableLocations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo { + if o == nil || o.AvailableLocations == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo + return ret + } + return o.AvailableLocations +} + +// GetAvailableLocationsOk returns a tuple with the AvailableLocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAvailableLocationsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo, bool) { + if o == nil || o.AvailableLocations == nil { + return nil, false + } + return o.AvailableLocations, true +} + +// HasAvailableLocations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) HasAvailableLocations() bool { + if o != nil && o.AvailableLocations != nil { + return true + } + + return false +} + +// SetAvailableLocations gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo and assigns it to the AvailableLocations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) SetAvailableLocations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) { + o.AvailableLocations = v +} + +// GetAwsPolicyVersion returns the AwsPolicyVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAwsPolicyVersion() string { + if o == nil || o.AwsPolicyVersion == nil { + var ret string + return ret + } + return *o.AwsPolicyVersion +} + +// GetAwsPolicyVersionOk returns a tuple with the AwsPolicyVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetAwsPolicyVersionOk() (*string, bool) { + if o == nil || o.AwsPolicyVersion == nil { + return nil, false + } + return o.AwsPolicyVersion, true +} + +// HasAwsPolicyVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) HasAwsPolicyVersion() bool { + if o != nil && o.AwsPolicyVersion != nil { + return true + } + + return false +} + +// SetAwsPolicyVersion gets a reference to the given string and assigns it to the AwsPolicyVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) SetAwsPolicyVersion(v string) { + o.AwsPolicyVersion = &v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailableLocations != nil { + toSerialize["availableLocations"] = o.AvailableLocations + } + if o.AwsPolicyVersion != nil { + toSerialize["awsPolicyVersion"] = o.AwsPolicyVersion + } + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go new file mode 100644 index 0000000..4bb91f0 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment CloudEnvironment represents the infrastructure environment for running pulsar clusters, consisting of Kubernetes cluster and set of applications +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go new file mode 100644 index 0000000..66ccaa0 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go new file mode 100644 index 0000000..9da87cf --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go @@ -0,0 +1,302 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec CloudEnvironmentSpec defines the desired state of CloudEnvironment +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec struct { + // CloudConnectionName references to the CloudConnection object + CloudConnectionName *string `json:"cloudConnectionName,omitempty"` + DefaultGateway *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway `json:"defaultGateway,omitempty"` + Dns *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS `json:"dns,omitempty"` + Network *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network `json:"network,omitempty"` + // Region defines in which region will resources be deployed + Region *string `json:"region,omitempty"` + // Zone defines in which availability zone will resources be deployed If specified, the cloud environment will be zonal. Default to unspecified and regional cloud environment + Zone *string `json:"zone,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec{} + return &this +} + +// GetCloudConnectionName returns the CloudConnectionName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetCloudConnectionName() string { + if o == nil || o.CloudConnectionName == nil { + var ret string + return ret + } + return *o.CloudConnectionName +} + +// GetCloudConnectionNameOk returns a tuple with the CloudConnectionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetCloudConnectionNameOk() (*string, bool) { + if o == nil || o.CloudConnectionName == nil { + return nil, false + } + return o.CloudConnectionName, true +} + +// HasCloudConnectionName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasCloudConnectionName() bool { + if o != nil && o.CloudConnectionName != nil { + return true + } + + return false +} + +// SetCloudConnectionName gets a reference to the given string and assigns it to the CloudConnectionName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetCloudConnectionName(v string) { + o.CloudConnectionName = &v +} + +// GetDefaultGateway returns the DefaultGateway field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDefaultGateway() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway { + if o == nil || o.DefaultGateway == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway + return ret + } + return *o.DefaultGateway +} + +// GetDefaultGatewayOk returns a tuple with the DefaultGateway field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDefaultGatewayOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway, bool) { + if o == nil || o.DefaultGateway == nil { + return nil, false + } + return o.DefaultGateway, true +} + +// HasDefaultGateway returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasDefaultGateway() bool { + if o != nil && o.DefaultGateway != nil { + return true + } + + return false +} + +// SetDefaultGateway gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway and assigns it to the DefaultGateway field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetDefaultGateway(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) { + o.DefaultGateway = &v +} + +// GetDns returns the Dns field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDns() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS { + if o == nil || o.Dns == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS + return ret + } + return *o.Dns +} + +// GetDnsOk returns a tuple with the Dns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetDnsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS, bool) { + if o == nil || o.Dns == nil { + return nil, false + } + return o.Dns, true +} + +// HasDns returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasDns() bool { + if o != nil && o.Dns != nil { + return true + } + + return false +} + +// SetDns gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS and assigns it to the Dns field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetDns(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) { + o.Dns = &v +} + +// GetNetwork returns the Network field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetNetwork() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network { + if o == nil || o.Network == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network + return ret + } + return *o.Network +} + +// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetNetworkOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network, bool) { + if o == nil || o.Network == nil { + return nil, false + } + return o.Network, true +} + +// HasNetwork returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasNetwork() bool { + if o != nil && o.Network != nil { + return true + } + + return false +} + +// SetNetwork gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network and assigns it to the Network field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetNetwork(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) { + o.Network = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetRegion(v string) { + o.Region = &v +} + +// GetZone returns the Zone field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetZone() string { + if o == nil || o.Zone == nil { + var ret string + return ret + } + return *o.Zone +} + +// GetZoneOk returns a tuple with the Zone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) GetZoneOk() (*string, bool) { + if o == nil || o.Zone == nil { + return nil, false + } + return o.Zone, true +} + +// HasZone returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) HasZone() bool { + if o != nil && o.Zone != nil { + return true + } + + return false +} + +// SetZone gets a reference to the given string and assigns it to the Zone field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) SetZone(v string) { + o.Zone = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CloudConnectionName != nil { + toSerialize["cloudConnectionName"] = o.CloudConnectionName + } + if o.DefaultGateway != nil { + toSerialize["defaultGateway"] = o.DefaultGateway + } + if o.Dns != nil { + toSerialize["dns"] = o.Dns + } + if o.Network != nil { + toSerialize["network"] = o.Network + } + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.Zone != nil { + toSerialize["zone"] = o.Zone + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go new file mode 100644 index 0000000..c363f7d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus CloudEnvironmentStatus defines the observed state of CloudEnvironment +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus struct { + // Conditions contains details for the current state of underlying resource + Conditions []V1Condition `json:"conditions,omitempty"` + DefaultGateway *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus `json:"defaultGateway,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetConditions() []V1Condition { + if o == nil || o.Conditions == nil { + var ret []V1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetConditionsOk() ([]V1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []V1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) SetConditions(v []V1Condition) { + o.Conditions = v +} + +// GetDefaultGateway returns the DefaultGateway field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetDefaultGateway() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus { + if o == nil || o.DefaultGateway == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus + return ret + } + return *o.DefaultGateway +} + +// GetDefaultGatewayOk returns a tuple with the DefaultGateway field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) GetDefaultGatewayOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus, bool) { + if o == nil || o.DefaultGateway == nil { + return nil, false + } + return o.DefaultGateway, true +} + +// HasDefaultGateway returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) HasDefaultGateway() bool { + if o != nil && o.DefaultGateway != nil { + return true + } + + return false +} + +// SetDefaultGateway gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus and assigns it to the DefaultGateway field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) SetDefaultGateway(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) { + o.DefaultGateway = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.DefaultGateway != nil { + toSerialize["defaultGateway"] = o.DefaultGateway + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go new file mode 100644 index 0000000..3b34af1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ClusterRole +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go new file mode 100644 index 0000000..6cae365 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ClusterRoleBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go new file mode 100644 index 0000000..d53a301 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go new file mode 100644 index 0000000..381a8a2 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec ClusterRoleBindingSpec defines the desired state of ClusterRoleBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec struct { + RoleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef `json:"roleRef"` + Subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject `json:"subjects"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec(roleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec{} + this.RoleRef = roleRef + this.Subjects = subjects + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec{} + return &this +} + +// GetRoleRef returns the RoleRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetRoleRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef + return ret + } + + return o.RoleRef +} + +// GetRoleRefOk returns a tuple with the RoleRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetRoleRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, bool) { + if o == nil { + return nil, false + } + return &o.RoleRef, true +} + +// SetRoleRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) SetRoleRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) { + o.RoleRef = v +} + +// GetSubjects returns the Subjects field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetSubjects() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject + return ret + } + + return o.Subjects +} + +// GetSubjectsOk returns a tuple with the Subjects field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) GetSubjectsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject, bool) { + if o == nil { + return nil, false + } + return o.Subjects, true +} + +// SetSubjects sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) SetSubjects(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) { + o.Subjects = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["roleRef"] = o.RoleRef + } + if true { + toSerialize["subjects"] = o.Subjects + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go new file mode 100644 index 0000000..6eb7868 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus ClusterRoleBindingStatus defines the observed state of ClusterRoleBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go new file mode 100644 index 0000000..69a4e93 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go new file mode 100644 index 0000000..ec0a33e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec ClusterRoleSpec defines the desired state of ClusterRole +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec struct { + // Permissions Designed for general permission format SERVICE.RESOURCE.VERB + Permissions []string `json:"permissions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec{} + return &this +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) GetPermissions() []string { + if o == nil || o.Permissions == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) GetPermissionsOk() ([]string, bool) { + if o == nil || o.Permissions == nil { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) HasPermissions() bool { + if o != nil && o.Permissions != nil { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) SetPermissions(v []string) { + o.Permissions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Permissions != nil { + toSerialize["permissions"] = o.Permissions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go new file mode 100644 index 0000000..c1e6c30 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus ClusterRoleStatus defines the observed state of ClusterRole +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // FailedClusters is an array of clusters which failed to apply the ClusterRole resources. + FailedClusters []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster `json:"failedClusters,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetFailedClusters returns the FailedClusters field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetFailedClusters() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster { + if o == nil || o.FailedClusters == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster + return ret + } + return o.FailedClusters +} + +// GetFailedClustersOk returns a tuple with the FailedClusters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) GetFailedClustersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster, bool) { + if o == nil || o.FailedClusters == nil { + return nil, false + } + return o.FailedClusters, true +} + +// HasFailedClusters returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) HasFailedClusters() bool { + if o != nil && o.FailedClusters != nil { + return true + } + + return false +} + +// SetFailedClusters gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster and assigns it to the FailedClusters field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) SetFailedClusters(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) { + o.FailedClusters = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.FailedClusters != nil { + toSerialize["failedClusters"] = o.FailedClusters + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go new file mode 100644 index 0000000..2438fd5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go @@ -0,0 +1,288 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition struct { + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition(status string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition{} + this.Status = status + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition{} + return &this +} + +// GetLastTransitionTime returns the LastTransitionTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetLastTransitionTime() time.Time { + if o == nil || o.LastTransitionTime == nil { + var ret time.Time + return ret + } + return *o.LastTransitionTime +} + +// GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetLastTransitionTimeOk() (*time.Time, bool) { + if o == nil || o.LastTransitionTime == nil { + return nil, false + } + return o.LastTransitionTime, true +} + +// HasLastTransitionTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasLastTransitionTime() bool { + if o != nil && o.LastTransitionTime != nil { + return true + } + + return false +} + +// SetLastTransitionTime gets a reference to the given time.Time and assigns it to the LastTransitionTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetLastTransitionTime(v time.Time) { + o.LastTransitionTime = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetMessage(v string) { + o.Message = &v +} + +// GetObservedGeneration returns the ObservedGeneration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetObservedGeneration() int64 { + if o == nil || o.ObservedGeneration == nil { + var ret int64 + return ret + } + return *o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetObservedGenerationOk() (*int64, bool) { + if o == nil || o.ObservedGeneration == nil { + return nil, false + } + return o.ObservedGeneration, true +} + +// HasObservedGeneration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasObservedGeneration() bool { + if o != nil && o.ObservedGeneration != nil { + return true + } + + return false +} + +// SetObservedGeneration gets a reference to the given int64 and assigns it to the ObservedGeneration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetObservedGeneration(v int64) { + o.ObservedGeneration = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetReason(v string) { + o.Reason = &v +} + +// GetStatus returns the Status field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetStatus(v string) { + o.Status = v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastTransitionTime != nil { + toSerialize["lastTransitionTime"] = o.LastTransitionTime + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.ObservedGeneration != nil { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go new file mode 100644 index 0000000..2c9870b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go @@ -0,0 +1,184 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup ConditionGroup Deprecated +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup struct { + ConditionGroups []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup `json:"conditionGroups,omitempty"` + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition `json:"conditions"` + Relation *int32 `json:"relation,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup(conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup{} + this.Conditions = conditions + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroupWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroupWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup{} + return &this +} + +// GetConditionGroups returns the ConditionGroups field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditionGroups() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup { + if o == nil || o.ConditionGroups == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup + return ret + } + return o.ConditionGroups +} + +// GetConditionGroupsOk returns a tuple with the ConditionGroups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditionGroupsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup, bool) { + if o == nil || o.ConditionGroups == nil { + return nil, false + } + return o.ConditionGroups, true +} + +// HasConditionGroups returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) HasConditionGroups() bool { + if o != nil && o.ConditionGroups != nil { + return true + } + + return false +} + +// SetConditionGroups gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup and assigns it to the ConditionGroups field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) SetConditionGroups(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) { + o.ConditionGroups = v +} + +// GetConditions returns the Conditions field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition + return ret + } + + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition, bool) { + if o == nil { + return nil, false + } + return o.Conditions, true +} + +// SetConditions sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) { + o.Conditions = v +} + +// GetRelation returns the Relation field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetRelation() int32 { + if o == nil || o.Relation == nil { + var ret int32 + return ret + } + return *o.Relation +} + +// GetRelationOk returns a tuple with the Relation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) GetRelationOk() (*int32, bool) { + if o == nil || o.Relation == nil { + return nil, false + } + return o.Relation, true +} + +// HasRelation returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) HasRelation() bool { + if o != nil && o.Relation != nil { + return true + } + + return false +} + +// SetRelation gets a reference to the given int32 and assigns it to the Relation field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) SetRelation(v int32) { + o.Relation = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ConditionGroups != nil { + toSerialize["conditionGroups"] = o.ConditionGroups + } + if true { + toSerialize["conditions"] = o.Conditions + } + if o.Relation != nil { + toSerialize["relation"] = o.Relation + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go new file mode 100644 index 0000000..0ab0069 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go @@ -0,0 +1,339 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config struct { + AuditLog *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog `json:"auditLog,omitempty"` + // Custom accepts custom configurations. + Custom *map[string]string `json:"custom,omitempty"` + // FunctionEnabled controls whether function is enabled. + FunctionEnabled *bool `json:"functionEnabled,omitempty"` + LakehouseStorage *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig `json:"lakehouseStorage,omitempty"` + Protocols *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig `json:"protocols,omitempty"` + // TransactionEnabled controls whether transaction is enabled. + TransactionEnabled *bool `json:"transactionEnabled,omitempty"` + // WebsocketEnabled controls whether websocket is enabled. + WebsocketEnabled *bool `json:"websocketEnabled,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config{} + return &this +} + +// GetAuditLog returns the AuditLog field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetAuditLog() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog { + if o == nil || o.AuditLog == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog + return ret + } + return *o.AuditLog +} + +// GetAuditLogOk returns a tuple with the AuditLog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetAuditLogOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog, bool) { + if o == nil || o.AuditLog == nil { + return nil, false + } + return o.AuditLog, true +} + +// HasAuditLog returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasAuditLog() bool { + if o != nil && o.AuditLog != nil { + return true + } + + return false +} + +// SetAuditLog gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog and assigns it to the AuditLog field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetAuditLog(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog) { + o.AuditLog = &v +} + +// GetCustom returns the Custom field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetCustom() map[string]string { + if o == nil || o.Custom == nil { + var ret map[string]string + return ret + } + return *o.Custom +} + +// GetCustomOk returns a tuple with the Custom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetCustomOk() (*map[string]string, bool) { + if o == nil || o.Custom == nil { + return nil, false + } + return o.Custom, true +} + +// HasCustom returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasCustom() bool { + if o != nil && o.Custom != nil { + return true + } + + return false +} + +// SetCustom gets a reference to the given map[string]string and assigns it to the Custom field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetCustom(v map[string]string) { + o.Custom = &v +} + +// GetFunctionEnabled returns the FunctionEnabled field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetFunctionEnabled() bool { + if o == nil || o.FunctionEnabled == nil { + var ret bool + return ret + } + return *o.FunctionEnabled +} + +// GetFunctionEnabledOk returns a tuple with the FunctionEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetFunctionEnabledOk() (*bool, bool) { + if o == nil || o.FunctionEnabled == nil { + return nil, false + } + return o.FunctionEnabled, true +} + +// HasFunctionEnabled returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasFunctionEnabled() bool { + if o != nil && o.FunctionEnabled != nil { + return true + } + + return false +} + +// SetFunctionEnabled gets a reference to the given bool and assigns it to the FunctionEnabled field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetFunctionEnabled(v bool) { + o.FunctionEnabled = &v +} + +// GetLakehouseStorage returns the LakehouseStorage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetLakehouseStorage() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig { + if o == nil || o.LakehouseStorage == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig + return ret + } + return *o.LakehouseStorage +} + +// GetLakehouseStorageOk returns a tuple with the LakehouseStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetLakehouseStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig, bool) { + if o == nil || o.LakehouseStorage == nil { + return nil, false + } + return o.LakehouseStorage, true +} + +// HasLakehouseStorage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasLakehouseStorage() bool { + if o != nil && o.LakehouseStorage != nil { + return true + } + + return false +} + +// SetLakehouseStorage gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig and assigns it to the LakehouseStorage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetLakehouseStorage(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) { + o.LakehouseStorage = &v +} + +// GetProtocols returns the Protocols field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetProtocols() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig { + if o == nil || o.Protocols == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig + return ret + } + return *o.Protocols +} + +// GetProtocolsOk returns a tuple with the Protocols field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetProtocolsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig, bool) { + if o == nil || o.Protocols == nil { + return nil, false + } + return o.Protocols, true +} + +// HasProtocols returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasProtocols() bool { + if o != nil && o.Protocols != nil { + return true + } + + return false +} + +// SetProtocols gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig and assigns it to the Protocols field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetProtocols(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) { + o.Protocols = &v +} + +// GetTransactionEnabled returns the TransactionEnabled field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetTransactionEnabled() bool { + if o == nil || o.TransactionEnabled == nil { + var ret bool + return ret + } + return *o.TransactionEnabled +} + +// GetTransactionEnabledOk returns a tuple with the TransactionEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetTransactionEnabledOk() (*bool, bool) { + if o == nil || o.TransactionEnabled == nil { + return nil, false + } + return o.TransactionEnabled, true +} + +// HasTransactionEnabled returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasTransactionEnabled() bool { + if o != nil && o.TransactionEnabled != nil { + return true + } + + return false +} + +// SetTransactionEnabled gets a reference to the given bool and assigns it to the TransactionEnabled field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetTransactionEnabled(v bool) { + o.TransactionEnabled = &v +} + +// GetWebsocketEnabled returns the WebsocketEnabled field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetWebsocketEnabled() bool { + if o == nil || o.WebsocketEnabled == nil { + var ret bool + return ret + } + return *o.WebsocketEnabled +} + +// GetWebsocketEnabledOk returns a tuple with the WebsocketEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) GetWebsocketEnabledOk() (*bool, bool) { + if o == nil || o.WebsocketEnabled == nil { + return nil, false + } + return o.WebsocketEnabled, true +} + +// HasWebsocketEnabled returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) HasWebsocketEnabled() bool { + if o != nil && o.WebsocketEnabled != nil { + return true + } + + return false +} + +// SetWebsocketEnabled gets a reference to the given bool and assigns it to the WebsocketEnabled field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) SetWebsocketEnabled(v bool) { + o.WebsocketEnabled = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AuditLog != nil { + toSerialize["auditLog"] = o.AuditLog + } + if o.Custom != nil { + toSerialize["custom"] = o.Custom + } + if o.FunctionEnabled != nil { + toSerialize["functionEnabled"] = o.FunctionEnabled + } + if o.LakehouseStorage != nil { + toSerialize["lakehouseStorage"] = o.LakehouseStorage + } + if o.Protocols != nil { + toSerialize["protocols"] = o.Protocols + } + if o.TransactionEnabled != nil { + toSerialize["transactionEnabled"] = o.TransactionEnabled + } + if o.WebsocketEnabled != nil { + toSerialize["websocketEnabled"] = o.WebsocketEnabled + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go new file mode 100644 index 0000000..eee6c76 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go @@ -0,0 +1,217 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource Represents resource spec for nodes +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource struct { + // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + Cpu string `json:"cpu"` + // Percentage of direct memory from overall memory. Set to 0 to use default value. + DirectPercentage *int32 `json:"directPercentage,omitempty"` + // Percentage of heap memory from overall memory. Set to 0 to use default value. + HeapPercentage *int32 `json:"heapPercentage,omitempty"` + // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + Memory string `json:"memory"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource(cpu string, memory string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource{} + this.Cpu = cpu + this.Memory = memory + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource{} + return &this +} + +// GetCpu returns the Cpu field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetCpu() string { + if o == nil { + var ret string + return ret + } + + return o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetCpuOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cpu, true +} + +// SetCpu sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetCpu(v string) { + o.Cpu = v +} + +// GetDirectPercentage returns the DirectPercentage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetDirectPercentage() int32 { + if o == nil || o.DirectPercentage == nil { + var ret int32 + return ret + } + return *o.DirectPercentage +} + +// GetDirectPercentageOk returns a tuple with the DirectPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetDirectPercentageOk() (*int32, bool) { + if o == nil || o.DirectPercentage == nil { + return nil, false + } + return o.DirectPercentage, true +} + +// HasDirectPercentage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) HasDirectPercentage() bool { + if o != nil && o.DirectPercentage != nil { + return true + } + + return false +} + +// SetDirectPercentage gets a reference to the given int32 and assigns it to the DirectPercentage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetDirectPercentage(v int32) { + o.DirectPercentage = &v +} + +// GetHeapPercentage returns the HeapPercentage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetHeapPercentage() int32 { + if o == nil || o.HeapPercentage == nil { + var ret int32 + return ret + } + return *o.HeapPercentage +} + +// GetHeapPercentageOk returns a tuple with the HeapPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetHeapPercentageOk() (*int32, bool) { + if o == nil || o.HeapPercentage == nil { + return nil, false + } + return o.HeapPercentage, true +} + +// HasHeapPercentage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) HasHeapPercentage() bool { + if o != nil && o.HeapPercentage != nil { + return true + } + + return false +} + +// SetHeapPercentage gets a reference to the given int32 and assigns it to the HeapPercentage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetHeapPercentage(v int32) { + o.HeapPercentage = &v +} + +// GetMemory returns the Memory field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetMemory() string { + if o == nil { + var ret string + return ret + } + + return o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) GetMemoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Memory, true +} + +// SetMemory sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) SetMemory(v string) { + o.Memory = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cpu"] = o.Cpu + } + if o.DirectPercentage != nil { + toSerialize["directPercentage"] = o.DirectPercentage + } + if o.HeapPercentage != nil { + toSerialize["heapPercentage"] = o.HeapPercentage + } + if true { + toSerialize["memory"] = o.Memory + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go new file mode 100644 index 0000000..a9ff8bf --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS DNS defines the DNS domain and how should the DNS zone be managed. ID and Name must be specified at the same time +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS struct { + // ID is the identifier of a DNS Zone. It can be AWS zone id, GCP zone name, and Azure zone id If ID is specified, an existing zone will be used. Otherwise, a new DNS zone will be created and managed by SN. + Id *string `json:"id,omitempty"` + // Name is the dns domain name. It can be AWS zone name, GCP dns name and Azure zone name. + Name *string `json:"name,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNSWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNSWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) SetName(v string) { + o.Name = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go new file mode 100644 index 0000000..a63e312 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go @@ -0,0 +1,184 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain struct { + Name string `json:"name"` + Tls *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS `json:"tls,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain(name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) SetName(v string) { + o.Name = v +} + +// GetTls returns the Tls field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetTls() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS { + if o == nil || o.Tls == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS + return ret + } + return *o.Tls +} + +// GetTlsOk returns a tuple with the Tls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetTlsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS, bool) { + if o == nil || o.Tls == nil { + return nil, false + } + return o.Tls, true +} + +// HasTls returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) HasTls() bool { + if o != nil && o.Tls != nil { + return true + } + + return false +} + +// SetTls gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS and assigns it to the Tls field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) SetTls(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) { + o.Tls = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Tls != nil { + toSerialize["tls"] = o.Tls + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go new file mode 100644 index 0000000..123c1f4 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS struct { + // CertificateName specifies the certificate object name to use. + CertificateName *string `json:"certificateName,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLSWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLSWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS{} + return &this +} + +// GetCertificateName returns the CertificateName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) GetCertificateName() string { + if o == nil || o.CertificateName == nil { + var ret string + return ret + } + return *o.CertificateName +} + +// GetCertificateNameOk returns a tuple with the CertificateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) GetCertificateNameOk() (*string, bool) { + if o == nil || o.CertificateName == nil { + return nil, false + } + return o.CertificateName, true +} + +// HasCertificateName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) HasCertificateName() bool { + if o != nil && o.CertificateName != nil { + return true + } + + return false +} + +// SetCertificateName gets a reference to the given string and assigns it to the CertificateName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) SetCertificateName(v string) { + o.CertificateName = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CertificateName != nil { + toSerialize["certificateName"] = o.CertificateName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go new file mode 100644 index 0000000..bd28d78 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken EncryptedToken is token that is encrypted using an encryption key. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken struct { + // JWE is the token as a JSON Web Encryption (JWE) message. For RSA public keys, the key encryption algorithm is RSA-OAEP, and the content encryption algorithm is AES GCM. + Jwe *string `json:"jwe,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedTokenWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedTokenWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken{} + return &this +} + +// GetJwe returns the Jwe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) GetJwe() string { + if o == nil || o.Jwe == nil { + var ret string + return ret + } + return *o.Jwe +} + +// GetJweOk returns a tuple with the Jwe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) GetJweOk() (*string, bool) { + if o == nil || o.Jwe == nil { + return nil, false + } + return o.Jwe, true +} + +// HasJwe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) HasJwe() bool { + if o != nil && o.Jwe != nil { + return true + } + + return false +} + +// SetJwe gets a reference to the given string and assigns it to the Jwe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) SetJwe(v string) { + o.Jwe = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Jwe != nil { + toSerialize["jwe"] = o.Jwe + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go new file mode 100644 index 0000000..879f739 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey EncryptionKey specifies a public key for encryption purposes. Either a PEM or JWK must be specified. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey struct { + // JWK is a JWK-encoded public key. + Jwk *string `json:"jwk,omitempty"` + // PEM is a PEM-encoded public key in PKIX, ASN.1 DER form (\"spki\" format). + Pem *string `json:"pem,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKeyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKeyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey{} + return &this +} + +// GetJwk returns the Jwk field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetJwk() string { + if o == nil || o.Jwk == nil { + var ret string + return ret + } + return *o.Jwk +} + +// GetJwkOk returns a tuple with the Jwk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetJwkOk() (*string, bool) { + if o == nil || o.Jwk == nil { + return nil, false + } + return o.Jwk, true +} + +// HasJwk returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) HasJwk() bool { + if o != nil && o.Jwk != nil { + return true + } + + return false +} + +// SetJwk gets a reference to the given string and assigns it to the Jwk field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) SetJwk(v string) { + o.Jwk = &v +} + +// GetPem returns the Pem field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetPem() string { + if o == nil || o.Pem == nil { + var ret string + return ret + } + return *o.Pem +} + +// GetPemOk returns a tuple with the Pem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) GetPemOk() (*string, bool) { + if o == nil || o.Pem == nil { + return nil, false + } + return o.Pem, true +} + +// HasPem returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) HasPem() bool { + if o != nil && o.Pem != nil { + return true + } + + return false +} + +// SetPem gets a reference to the given string and assigns it to the Pem field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) SetPem(v string) { + o.Pem = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Jwk != nil { + toSerialize["jwk"] = o.Jwk + } + if o.Pem != nil { + toSerialize["pem"] = o.Pem + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go new file mode 100644 index 0000000..e17bf6f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess struct { + // Gateway is the name of the PulsarGateway to use for the endpoint. The default gateway of the pool member will be used if not specified. + Gateway *string `json:"gateway,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccessWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccessWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess{} + return &this +} + +// GetGateway returns the Gateway field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) GetGateway() string { + if o == nil || o.Gateway == nil { + var ret string + return ret + } + return *o.Gateway +} + +// GetGatewayOk returns a tuple with the Gateway field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) GetGatewayOk() (*string, bool) { + if o == nil || o.Gateway == nil { + return nil, false + } + return o.Gateway, true +} + +// HasGateway returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) HasGateway() bool { + if o != nil && o.Gateway != nil { + return true + } + + return false +} + +// SetGateway gets a reference to the given string and assigns it to the Gateway field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) SetGateway(v string) { + o.Gateway = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Gateway != nil { + toSerialize["gateway"] = o.Gateway + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go new file mode 100644 index 0000000..892ac12 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go @@ -0,0 +1,224 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig ExecConfig specifies a command to provide client credentials. The command is exec'd and outputs structured stdout holding credentials. See the client.authentiction.k8s.io API group for specifications of the exact input and output format +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig struct { + // Preferred input version of the ExecInfo. The returned ExecCredentials MUST use the same encoding version as the input. + ApiVersion *string `json:"apiVersion,omitempty"` + // Arguments to pass to the command when executing it. + Args []string `json:"args,omitempty"` + // Command to execute. + Command string `json:"command"` + // Env defines additional environment variables to expose to the process. These are unioned with the host's environment, as well as variables client-go uses to pass argument to the plugin. + Env []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar `json:"env,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig(command string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig{} + this.Command = command + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetArgs returns the Args field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetArgs() []string { + if o == nil || o.Args == nil { + var ret []string + return ret + } + return o.Args +} + +// GetArgsOk returns a tuple with the Args field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetArgsOk() ([]string, bool) { + if o == nil || o.Args == nil { + return nil, false + } + return o.Args, true +} + +// HasArgs returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) HasArgs() bool { + if o != nil && o.Args != nil { + return true + } + + return false +} + +// SetArgs gets a reference to the given []string and assigns it to the Args field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetArgs(v []string) { + o.Args = v +} + +// GetCommand returns the Command field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetCommand() string { + if o == nil { + var ret string + return ret + } + + return o.Command +} + +// GetCommandOk returns a tuple with the Command field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetCommandOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Command, true +} + +// SetCommand sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetCommand(v string) { + o.Command = v +} + +// GetEnv returns the Env field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetEnv() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar { + if o == nil || o.Env == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar + return ret + } + return o.Env +} + +// GetEnvOk returns a tuple with the Env field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) GetEnvOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar, bool) { + if o == nil || o.Env == nil { + return nil, false + } + return o.Env, true +} + +// HasEnv returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) HasEnv() bool { + if o != nil && o.Env != nil { + return true + } + + return false +} + +// SetEnv gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar and assigns it to the Env field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) SetEnv(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) { + o.Env = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Args != nil { + toSerialize["args"] = o.Args + } + if true { + toSerialize["command"] = o.Command + } + if o.Env != nil { + toSerialize["env"] = o.Env + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go new file mode 100644 index 0000000..ff02f64 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar ExecEnvVar is used for setting environment variables when executing an exec-based credential plugin. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar struct { + Name string `json:"name"` + Value string `json:"value"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar(name string, value string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar{} + this.Name = name + this.Value = value + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVarWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVarWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) SetValue(v string) { + o.Value = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go new file mode 100644 index 0000000..0e95de6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go @@ -0,0 +1,173 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster struct { + // Name is the Cluster's name + Name string `json:"name"` + // Namespace is the Cluster's namespace + Namespace string `json:"namespace"` + // Reason is the failed reason + Reason string `json:"reason"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster(name string, namespace string, reason string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster{} + this.Name = name + this.Namespace = namespace + this.Reason = reason + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) SetNamespace(v string) { + o.Namespace = v +} + +// GetReason returns the Reason field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) SetReason(v string) { + o.Reason = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + if true { + toSerialize["reason"] = o.Reason + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go new file mode 100644 index 0000000..f9b6aca --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go @@ -0,0 +1,143 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole struct { + // Name is the ClusterRole's name + Name string `json:"name"` + // Reason is the failed reason + Reason string `json:"reason"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole(name string, reason string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole{} + this.Name = name + this.Reason = reason + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) SetName(v string) { + o.Name = v +} + +// GetReason returns the Reason field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) SetReason(v string) { + o.Reason = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["reason"] = o.Reason + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go new file mode 100644 index 0000000..0313ef1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go @@ -0,0 +1,173 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole struct { + // Name is the Role's name + Name string `json:"name"` + // Namespace is the Role's namespace + Namespace string `json:"namespace"` + // Reason is the failed reason + Reason string `json:"reason"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole(name string, namespace string, reason string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole{} + this.Name = name + this.Namespace = namespace + this.Reason = reason + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) SetNamespace(v string) { + o.Namespace = v +} + +// GetReason returns the Reason field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) SetReason(v string) { + o.Reason = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + if true { + toSerialize["reason"] = o.Reason + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go new file mode 100644 index 0000000..b756dcc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go @@ -0,0 +1,173 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding struct { + // Name is the RoleBinding's name + Name string `json:"name"` + // Namespace is the RoleBinding's namespace + Namespace string `json:"namespace"` + // Reason is the failed reason + Reason string `json:"reason"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding(name string, namespace string, reason string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding{} + this.Name = name + this.Namespace = namespace + this.Reason = reason + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) SetNamespace(v string) { + o.Namespace = v +} + +// GetReason returns the Reason field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) SetReason(v string) { + o.Reason = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + if true { + toSerialize["reason"] = o.Reason + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go new file mode 100644 index 0000000..a7b133c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec struct { + Project string `json:"project"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec(project string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec{} + this.Project = project + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec{} + return &this +} + +// GetProject returns the Project field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) GetProject() string { + if o == nil { + var ret string + return ret + } + + return o.Project +} + +// GetProjectOk returns a tuple with the Project field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) GetProjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Project, true +} + +// SetProject sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) SetProject(v string) { + o.Project = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["project"] = o.Project + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go new file mode 100644 index 0000000..01f5b8b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go @@ -0,0 +1,334 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec struct { + // AdminServiceAccount is the service account to be impersonated, or leave it empty to call the API without impersonation. + AdminServiceAccount *string `json:"adminServiceAccount,omitempty"` + // ClusterName is the GKE cluster name. + ClusterName *string `json:"clusterName,omitempty"` + // Deprecated + InitialNodeCount *int32 `json:"initialNodeCount,omitempty"` + Location string `json:"location"` + // Deprecated + MachineType *string `json:"machineType,omitempty"` + // Deprecated + MaxNodeCount *int32 `json:"maxNodeCount,omitempty"` + // Project is the Google project containing the GKE cluster. + Project *string `json:"project,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec(location string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec{} + this.Location = location + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec{} + return &this +} + +// GetAdminServiceAccount returns the AdminServiceAccount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetAdminServiceAccount() string { + if o == nil || o.AdminServiceAccount == nil { + var ret string + return ret + } + return *o.AdminServiceAccount +} + +// GetAdminServiceAccountOk returns a tuple with the AdminServiceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetAdminServiceAccountOk() (*string, bool) { + if o == nil || o.AdminServiceAccount == nil { + return nil, false + } + return o.AdminServiceAccount, true +} + +// HasAdminServiceAccount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasAdminServiceAccount() bool { + if o != nil && o.AdminServiceAccount != nil { + return true + } + + return false +} + +// SetAdminServiceAccount gets a reference to the given string and assigns it to the AdminServiceAccount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetAdminServiceAccount(v string) { + o.AdminServiceAccount = &v +} + +// GetClusterName returns the ClusterName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetClusterName() string { + if o == nil || o.ClusterName == nil { + var ret string + return ret + } + return *o.ClusterName +} + +// GetClusterNameOk returns a tuple with the ClusterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetClusterNameOk() (*string, bool) { + if o == nil || o.ClusterName == nil { + return nil, false + } + return o.ClusterName, true +} + +// HasClusterName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasClusterName() bool { + if o != nil && o.ClusterName != nil { + return true + } + + return false +} + +// SetClusterName gets a reference to the given string and assigns it to the ClusterName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetClusterName(v string) { + o.ClusterName = &v +} + +// GetInitialNodeCount returns the InitialNodeCount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetInitialNodeCount() int32 { + if o == nil || o.InitialNodeCount == nil { + var ret int32 + return ret + } + return *o.InitialNodeCount +} + +// GetInitialNodeCountOk returns a tuple with the InitialNodeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetInitialNodeCountOk() (*int32, bool) { + if o == nil || o.InitialNodeCount == nil { + return nil, false + } + return o.InitialNodeCount, true +} + +// HasInitialNodeCount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasInitialNodeCount() bool { + if o != nil && o.InitialNodeCount != nil { + return true + } + + return false +} + +// SetInitialNodeCount gets a reference to the given int32 and assigns it to the InitialNodeCount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetInitialNodeCount(v int32) { + o.InitialNodeCount = &v +} + +// GetLocation returns the Location field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetLocation(v string) { + o.Location = v +} + +// GetMachineType returns the MachineType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMachineType() string { + if o == nil || o.MachineType == nil { + var ret string + return ret + } + return *o.MachineType +} + +// GetMachineTypeOk returns a tuple with the MachineType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMachineTypeOk() (*string, bool) { + if o == nil || o.MachineType == nil { + return nil, false + } + return o.MachineType, true +} + +// HasMachineType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasMachineType() bool { + if o != nil && o.MachineType != nil { + return true + } + + return false +} + +// SetMachineType gets a reference to the given string and assigns it to the MachineType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetMachineType(v string) { + o.MachineType = &v +} + +// GetMaxNodeCount returns the MaxNodeCount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMaxNodeCount() int32 { + if o == nil || o.MaxNodeCount == nil { + var ret int32 + return ret + } + return *o.MaxNodeCount +} + +// GetMaxNodeCountOk returns a tuple with the MaxNodeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetMaxNodeCountOk() (*int32, bool) { + if o == nil || o.MaxNodeCount == nil { + return nil, false + } + return o.MaxNodeCount, true +} + +// HasMaxNodeCount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasMaxNodeCount() bool { + if o != nil && o.MaxNodeCount != nil { + return true + } + + return false +} + +// SetMaxNodeCount gets a reference to the given int32 and assigns it to the MaxNodeCount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetMaxNodeCount(v int32) { + o.MaxNodeCount = &v +} + +// GetProject returns the Project field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetProject() string { + if o == nil || o.Project == nil { + var ret string + return ret + } + return *o.Project +} + +// GetProjectOk returns a tuple with the Project field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) GetProjectOk() (*string, bool) { + if o == nil || o.Project == nil { + return nil, false + } + return o.Project, true +} + +// HasProject returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) HasProject() bool { + if o != nil && o.Project != nil { + return true + } + + return false +} + +// SetProject gets a reference to the given string and assigns it to the Project field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) SetProject(v string) { + o.Project = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AdminServiceAccount != nil { + toSerialize["adminServiceAccount"] = o.AdminServiceAccount + } + if o.ClusterName != nil { + toSerialize["clusterName"] = o.ClusterName + } + if o.InitialNodeCount != nil { + toSerialize["initialNodeCount"] = o.InitialNodeCount + } + if true { + toSerialize["location"] = o.Location + } + if o.MachineType != nil { + toSerialize["machineType"] = o.MachineType + } + if o.MaxNodeCount != nil { + toSerialize["maxNodeCount"] = o.MaxNodeCount + } + if o.Project != nil { + toSerialize["project"] = o.Project + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go new file mode 100644 index 0000000..c846740 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway Gateway defines the access of pulsar cluster endpoint +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway struct { + // Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public. + Access *string `json:"access,omitempty"` + PrivateService *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService `json:"privateService,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway{} + return &this +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetAccess() string { + if o == nil || o.Access == nil { + var ret string + return ret + } + return *o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetAccessOk() (*string, bool) { + if o == nil || o.Access == nil { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) HasAccess() bool { + if o != nil && o.Access != nil { + return true + } + + return false +} + +// SetAccess gets a reference to the given string and assigns it to the Access field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) SetAccess(v string) { + o.Access = &v +} + +// GetPrivateService returns the PrivateService field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetPrivateService() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService { + if o == nil || o.PrivateService == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService + return ret + } + return *o.PrivateService +} + +// GetPrivateServiceOk returns a tuple with the PrivateService field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) GetPrivateServiceOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService, bool) { + if o == nil || o.PrivateService == nil { + return nil, false + } + return o.PrivateService, true +} + +// HasPrivateService returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) HasPrivateService() bool { + if o != nil && o.PrivateService != nil { + return true + } + + return false +} + +// SetPrivateService gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService and assigns it to the PrivateService field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) SetPrivateService(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) { + o.PrivateService = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Access != nil { + toSerialize["access"] = o.Access + } + if o.PrivateService != nil { + toSerialize["privateService"] = o.PrivateService + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go new file mode 100644 index 0000000..275af38 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus struct { + // PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private. + PrivateServiceIds []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId `json:"privateServiceIds,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus{} + return &this +} + +// GetPrivateServiceIds returns the PrivateServiceIds field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) GetPrivateServiceIds() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId { + if o == nil || o.PrivateServiceIds == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId + return ret + } + return o.PrivateServiceIds +} + +// GetPrivateServiceIdsOk returns a tuple with the PrivateServiceIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) GetPrivateServiceIdsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId, bool) { + if o == nil || o.PrivateServiceIds == nil { + return nil, false + } + return o.PrivateServiceIds, true +} + +// HasPrivateServiceIds returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) HasPrivateServiceIds() bool { + if o != nil && o.PrivateServiceIds != nil { + return true + } + + return false +} + +// SetPrivateServiceIds gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId and assigns it to the PrivateServiceIds field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) SetPrivateServiceIds(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) { + o.PrivateServiceIds = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PrivateServiceIds != nil { + toSerialize["privateServiceIds"] = o.PrivateServiceIds + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go new file mode 100644 index 0000000..c6d8c09 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection struct { + ProjectId string `json:"projectId"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection(projectId string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection{} + this.ProjectId = projectId + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnectionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnectionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection{} + return &this +} + +// GetProjectId returns the ProjectId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) GetProjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) GetProjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectId, true +} + +// SetProjectId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) SetProjectId(v string) { + o.ProjectId = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["projectId"] = o.ProjectId + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go new file mode 100644 index 0000000..ccfbb30 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go @@ -0,0 +1,223 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec struct { + // Endpoint is *either* a full URL, or a hostname/port to point to the master + Endpoint *string `json:"endpoint,omitempty"` + // Location is the location of the cluster. + Location string `json:"location"` + MasterAuth *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth `json:"masterAuth,omitempty"` + // TLSServerName is the SNI header name to set, overridding the default. This is just the hostname and no port + TlsServerName *string `json:"tlsServerName,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec(location string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec{} + this.Location = location + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec{} + return &this +} + +// GetEndpoint returns the Endpoint field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetEndpoint() string { + if o == nil || o.Endpoint == nil { + var ret string + return ret + } + return *o.Endpoint +} + +// GetEndpointOk returns a tuple with the Endpoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetEndpointOk() (*string, bool) { + if o == nil || o.Endpoint == nil { + return nil, false + } + return o.Endpoint, true +} + +// HasEndpoint returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) HasEndpoint() bool { + if o != nil && o.Endpoint != nil { + return true + } + + return false +} + +// SetEndpoint gets a reference to the given string and assigns it to the Endpoint field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetEndpoint(v string) { + o.Endpoint = &v +} + +// GetLocation returns the Location field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetLocation(v string) { + o.Location = v +} + +// GetMasterAuth returns the MasterAuth field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetMasterAuth() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth { + if o == nil || o.MasterAuth == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth + return ret + } + return *o.MasterAuth +} + +// GetMasterAuthOk returns a tuple with the MasterAuth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetMasterAuthOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth, bool) { + if o == nil || o.MasterAuth == nil { + return nil, false + } + return o.MasterAuth, true +} + +// HasMasterAuth returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) HasMasterAuth() bool { + if o != nil && o.MasterAuth != nil { + return true + } + + return false +} + +// SetMasterAuth gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth and assigns it to the MasterAuth field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetMasterAuth(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) { + o.MasterAuth = &v +} + +// GetTlsServerName returns the TlsServerName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetTlsServerName() string { + if o == nil || o.TlsServerName == nil { + var ret string + return ret + } + return *o.TlsServerName +} + +// GetTlsServerNameOk returns a tuple with the TlsServerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) GetTlsServerNameOk() (*string, bool) { + if o == nil || o.TlsServerName == nil { + return nil, false + } + return o.TlsServerName, true +} + +// HasTlsServerName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) HasTlsServerName() bool { + if o != nil && o.TlsServerName != nil { + return true + } + + return false +} + +// SetTlsServerName gets a reference to the given string and assigns it to the TlsServerName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) SetTlsServerName(v string) { + o.TlsServerName = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Endpoint != nil { + toSerialize["endpoint"] = o.Endpoint + } + if true { + toSerialize["location"] = o.Location + } + if o.MasterAuth != nil { + toSerialize["masterAuth"] = o.MasterAuth + } + if o.TlsServerName != nil { + toSerialize["tlsServerName"] = o.TlsServerName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go new file mode 100644 index 0000000..82e651e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool IdentityPool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go new file mode 100644 index 0000000..7fd2c45 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go new file mode 100644 index 0000000..550a1b1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go @@ -0,0 +1,199 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec IdentityPoolSpec defines the desired state of IdentityPool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec struct { + AuthType string `json:"authType"` + Description string `json:"description"` + Expression string `json:"expression"` + ProviderName string `json:"providerName"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec(authType string, description string, expression string, providerName string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec{} + this.AuthType = authType + this.Description = description + this.Expression = expression + this.ProviderName = providerName + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec{} + return &this +} + +// GetAuthType returns the AuthType field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetAuthType() string { + if o == nil { + var ret string + return ret + } + + return o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetAuthTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthType, true +} + +// SetAuthType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetAuthType(v string) { + o.AuthType = v +} + +// GetDescription returns the Description field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetDescription(v string) { + o.Description = v +} + +// GetExpression returns the Expression field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetExpression() string { + if o == nil { + var ret string + return ret + } + + return o.Expression +} + +// GetExpressionOk returns a tuple with the Expression field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetExpressionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Expression, true +} + +// SetExpression sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetExpression(v string) { + o.Expression = v +} + +// GetProviderName returns the ProviderName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetProviderName() string { + if o == nil { + var ret string + return ret + } + + return o.ProviderName +} + +// GetProviderNameOk returns a tuple with the ProviderName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) GetProviderNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProviderName, true +} + +// SetProviderName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) SetProviderName(v string) { + o.ProviderName = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["authType"] = o.AuthType + } + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["expression"] = o.Expression + } + if true { + toSerialize["providerName"] = o.ProviderName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go new file mode 100644 index 0000000..14cc607 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus IdentityPoolStatus defines the desired state of IdentityPool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go new file mode 100644 index 0000000..6e21443 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV struct { + Name string `json:"name"` + Phase string `json:"phase"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV(name string, phase string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV{} + this.Name = name + this.Phase = phase + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSVWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSVWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) SetName(v string) { + o.Name = v +} + +// GetPhase returns the Phase field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetPhase() string { + if o == nil { + var ret string + return ret + } + + return o.Phase +} + +// GetPhaseOk returns a tuple with the Phase field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) GetPhaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Phase, true +} + +// SetPhase sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) SetPhase(v string) { + o.Phase = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["phase"] = o.Phase + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go new file mode 100644 index 0000000..dbf5a2d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go @@ -0,0 +1,144 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation struct { + // Decision indicates the user's response to the invitation + Decision string `json:"decision"` + // Expiration indicates when the invitation expires + Expiration time.Time `json:"expiration"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation(decision string, expiration time.Time) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation{} + this.Decision = decision + this.Expiration = expiration + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InvitationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InvitationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation{} + return &this +} + +// GetDecision returns the Decision field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetDecision() string { + if o == nil { + var ret string + return ret + } + + return o.Decision +} + +// GetDecisionOk returns a tuple with the Decision field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetDecisionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Decision, true +} + +// SetDecision sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) SetDecision(v string) { + o.Decision = v +} + +// GetExpiration returns the Expiration field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetExpiration() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Expiration +} + +// GetExpirationOk returns a tuple with the Expiration field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) GetExpirationOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Expiration, true +} + +// SetExpiration sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) SetExpiration(v time.Time) { + o.Expiration = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["decision"] = o.Decision + } + if true { + toSerialize["expiration"] = o.Expiration + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go new file mode 100644 index 0000000..c82a7fd --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go @@ -0,0 +1,243 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig struct { + CatalogConnectionUrl string `json:"catalogConnectionUrl"` + // todo: maybe we need to support mount secrets as the catalog credentials? + CatalogCredentials string `json:"catalogCredentials"` + CatalogType *string `json:"catalogType,omitempty"` + CatalogWarehouse string `json:"catalogWarehouse"` + LakehouseType *string `json:"lakehouseType,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig(catalogConnectionUrl string, catalogCredentials string, catalogWarehouse string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig{} + this.CatalogConnectionUrl = catalogConnectionUrl + this.CatalogCredentials = catalogCredentials + this.CatalogWarehouse = catalogWarehouse + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig{} + return &this +} + +// GetCatalogConnectionUrl returns the CatalogConnectionUrl field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogConnectionUrl() string { + if o == nil { + var ret string + return ret + } + + return o.CatalogConnectionUrl +} + +// GetCatalogConnectionUrlOk returns a tuple with the CatalogConnectionUrl field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogConnectionUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CatalogConnectionUrl, true +} + +// SetCatalogConnectionUrl sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogConnectionUrl(v string) { + o.CatalogConnectionUrl = v +} + +// GetCatalogCredentials returns the CatalogCredentials field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogCredentials() string { + if o == nil { + var ret string + return ret + } + + return o.CatalogCredentials +} + +// GetCatalogCredentialsOk returns a tuple with the CatalogCredentials field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogCredentialsOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CatalogCredentials, true +} + +// SetCatalogCredentials sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogCredentials(v string) { + o.CatalogCredentials = v +} + +// GetCatalogType returns the CatalogType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogType() string { + if o == nil || o.CatalogType == nil { + var ret string + return ret + } + return *o.CatalogType +} + +// GetCatalogTypeOk returns a tuple with the CatalogType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogTypeOk() (*string, bool) { + if o == nil || o.CatalogType == nil { + return nil, false + } + return o.CatalogType, true +} + +// HasCatalogType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) HasCatalogType() bool { + if o != nil && o.CatalogType != nil { + return true + } + + return false +} + +// SetCatalogType gets a reference to the given string and assigns it to the CatalogType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogType(v string) { + o.CatalogType = &v +} + +// GetCatalogWarehouse returns the CatalogWarehouse field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogWarehouse() string { + if o == nil { + var ret string + return ret + } + + return o.CatalogWarehouse +} + +// GetCatalogWarehouseOk returns a tuple with the CatalogWarehouse field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetCatalogWarehouseOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CatalogWarehouse, true +} + +// SetCatalogWarehouse sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetCatalogWarehouse(v string) { + o.CatalogWarehouse = v +} + +// GetLakehouseType returns the LakehouseType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetLakehouseType() string { + if o == nil || o.LakehouseType == nil { + var ret string + return ret + } + return *o.LakehouseType +} + +// GetLakehouseTypeOk returns a tuple with the LakehouseType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) GetLakehouseTypeOk() (*string, bool) { + if o == nil || o.LakehouseType == nil { + return nil, false + } + return o.LakehouseType, true +} + +// HasLakehouseType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) HasLakehouseType() bool { + if o != nil && o.LakehouseType != nil { + return true + } + + return false +} + +// SetLakehouseType gets a reference to the given string and assigns it to the LakehouseType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) SetLakehouseType(v string) { + o.LakehouseType = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["catalogConnectionUrl"] = o.CatalogConnectionUrl + } + if true { + toSerialize["catalogCredentials"] = o.CatalogCredentials + } + if o.CatalogType != nil { + toSerialize["catalogType"] = o.CatalogType + } + if true { + toSerialize["catalogWarehouse"] = o.CatalogWarehouse + } + if o.LakehouseType != nil { + toSerialize["lakehouseType"] = o.LakehouseType + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go new file mode 100644 index 0000000..8aaecd3 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go @@ -0,0 +1,142 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow struct { + // Recurrence define the maintenance execution cycle, 0~6, to express Monday to Sunday + Recurrence string `json:"recurrence"` + Window ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window `json:"window"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow(recurrence string, window ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow{} + this.Recurrence = recurrence + this.Window = window + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindowWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindowWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow{} + return &this +} + +// GetRecurrence returns the Recurrence field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetRecurrence() string { + if o == nil { + var ret string + return ret + } + + return o.Recurrence +} + +// GetRecurrenceOk returns a tuple with the Recurrence field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetRecurrenceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Recurrence, true +} + +// SetRecurrence sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) SetRecurrence(v string) { + o.Recurrence = v +} + +// GetWindow returns the Window field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetWindow() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window + return ret + } + + return o.Window +} + +// GetWindowOk returns a tuple with the Window field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) GetWindowOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window, bool) { + if o == nil { + return nil, false + } + return &o.Window, true +} + +// SetWindow sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) SetWindow(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) { + o.Window = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["recurrence"] = o.Recurrence + } + if true { + toSerialize["window"] = o.Window + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go new file mode 100644 index 0000000..49b851e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go @@ -0,0 +1,304 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth struct { + // ClientCertificate is base64-encoded public certificate used by clients to authenticate to the cluster endpoint. + ClientCertificate *string `json:"clientCertificate,omitempty"` + // ClientKey is base64-encoded private key used by clients to authenticate to the cluster endpoint. + ClientKey *string `json:"clientKey,omitempty"` + // ClusterCaCertificate is base64-encoded public certificate that is the root of trust for the cluster. + ClusterCaCertificate *string `json:"clusterCaCertificate,omitempty"` + Exec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig `json:"exec,omitempty"` + // Password is the password to use for HTTP basic authentication to the master endpoint. + Password *string `json:"password,omitempty"` + // Username is the username to use for HTTP basic authentication to the master endpoint. + Username *string `json:"username,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuthWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuthWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth{} + return &this +} + +// GetClientCertificate returns the ClientCertificate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientCertificate() string { + if o == nil || o.ClientCertificate == nil { + var ret string + return ret + } + return *o.ClientCertificate +} + +// GetClientCertificateOk returns a tuple with the ClientCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientCertificateOk() (*string, bool) { + if o == nil || o.ClientCertificate == nil { + return nil, false + } + return o.ClientCertificate, true +} + +// HasClientCertificate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasClientCertificate() bool { + if o != nil && o.ClientCertificate != nil { + return true + } + + return false +} + +// SetClientCertificate gets a reference to the given string and assigns it to the ClientCertificate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetClientCertificate(v string) { + o.ClientCertificate = &v +} + +// GetClientKey returns the ClientKey field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientKey() string { + if o == nil || o.ClientKey == nil { + var ret string + return ret + } + return *o.ClientKey +} + +// GetClientKeyOk returns a tuple with the ClientKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClientKeyOk() (*string, bool) { + if o == nil || o.ClientKey == nil { + return nil, false + } + return o.ClientKey, true +} + +// HasClientKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasClientKey() bool { + if o != nil && o.ClientKey != nil { + return true + } + + return false +} + +// SetClientKey gets a reference to the given string and assigns it to the ClientKey field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetClientKey(v string) { + o.ClientKey = &v +} + +// GetClusterCaCertificate returns the ClusterCaCertificate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClusterCaCertificate() string { + if o == nil || o.ClusterCaCertificate == nil { + var ret string + return ret + } + return *o.ClusterCaCertificate +} + +// GetClusterCaCertificateOk returns a tuple with the ClusterCaCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetClusterCaCertificateOk() (*string, bool) { + if o == nil || o.ClusterCaCertificate == nil { + return nil, false + } + return o.ClusterCaCertificate, true +} + +// HasClusterCaCertificate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasClusterCaCertificate() bool { + if o != nil && o.ClusterCaCertificate != nil { + return true + } + + return false +} + +// SetClusterCaCertificate gets a reference to the given string and assigns it to the ClusterCaCertificate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetClusterCaCertificate(v string) { + o.ClusterCaCertificate = &v +} + +// GetExec returns the Exec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetExec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig { + if o == nil || o.Exec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig + return ret + } + return *o.Exec +} + +// GetExecOk returns a tuple with the Exec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetExecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig, bool) { + if o == nil || o.Exec == nil { + return nil, false + } + return o.Exec, true +} + +// HasExec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasExec() bool { + if o != nil && o.Exec != nil { + return true + } + + return false +} + +// SetExec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig and assigns it to the Exec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetExec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig) { + o.Exec = &v +} + +// GetPassword returns the Password field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetPassword() string { + if o == nil || o.Password == nil { + var ret string + return ret + } + return *o.Password +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetPasswordOk() (*string, bool) { + if o == nil || o.Password == nil { + return nil, false + } + return o.Password, true +} + +// HasPassword returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasPassword() bool { + if o != nil && o.Password != nil { + return true + } + + return false +} + +// SetPassword gets a reference to the given string and assigns it to the Password field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetPassword(v string) { + o.Password = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetUsername() string { + if o == nil || o.Username == nil { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) GetUsernameOk() (*string, bool) { + if o == nil || o.Username == nil { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) HasUsername() bool { + if o != nil && o.Username != nil { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) SetUsername(v string) { + o.Username = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ClientCertificate != nil { + toSerialize["clientCertificate"] = o.ClientCertificate + } + if o.ClientKey != nil { + toSerialize["clientKey"] = o.ClientKey + } + if o.ClusterCaCertificate != nil { + toSerialize["clusterCaCertificate"] = o.ClusterCaCertificate + } + if o.Exec != nil { + toSerialize["exec"] = o.Exec + } + if o.Password != nil { + toSerialize["password"] = o.Password + } + if o.Username != nil { + toSerialize["username"] = o.Username + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go new file mode 100644 index 0000000..b907a5c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network Network defines how to provision the network infrastructure CIDR and ID cannot be specified at the same time. When ID is specified, the existing VPC will be used. Otherwise, a new VPC with the specified or default CIDR will be created +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network struct { + // CIDR determines the CIDR of the VPC to create if specified + Cidr *string `json:"cidr,omitempty"` + // ID is the id or the name of an existing VPC when specified. It's vpc id in AWS, vpc network name in GCP and vnet name in Azure + Id *string `json:"id,omitempty"` + // SubnetCIDR determines the CIDR of the subnet to create if specified required for Azure + SubnetCIDR *string `json:"subnetCIDR,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1NetworkWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1NetworkWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network{} + return &this +} + +// GetCidr returns the Cidr field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetCidr() string { + if o == nil || o.Cidr == nil { + var ret string + return ret + } + return *o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetCidrOk() (*string, bool) { + if o == nil || o.Cidr == nil { + return nil, false + } + return o.Cidr, true +} + +// HasCidr returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) HasCidr() bool { + if o != nil && o.Cidr != nil { + return true + } + + return false +} + +// SetCidr gets a reference to the given string and assigns it to the Cidr field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) SetCidr(v string) { + o.Cidr = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) SetId(v string) { + o.Id = &v +} + +// GetSubnetCIDR returns the SubnetCIDR field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetSubnetCIDR() string { + if o == nil || o.SubnetCIDR == nil { + var ret string + return ret + } + return *o.SubnetCIDR +} + +// GetSubnetCIDROk returns a tuple with the SubnetCIDR field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) GetSubnetCIDROk() (*string, bool) { + if o == nil || o.SubnetCIDR == nil { + return nil, false + } + return o.SubnetCIDR, true +} + +// HasSubnetCIDR returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) HasSubnetCIDR() bool { + if o != nil && o.SubnetCIDR != nil { + return true + } + + return false +} + +// SetSubnetCIDR gets a reference to the given string and assigns it to the SubnetCIDR field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) SetSubnetCIDR(v string) { + o.SubnetCIDR = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Cidr != nil { + toSerialize["cidr"] = o.Cidr + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.SubnetCIDR != nil { + toSerialize["subnetCIDR"] = o.SubnetCIDR + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go new file mode 100644 index 0000000..f275399 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config OAuth2Config define oauth2 config of PulsarInstance +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config struct { + // TokenLifetimeSeconds access token lifetime (in seconds) for the API. Default value is 86,400 seconds (24 hours). Maximum value is 2,592,000 seconds (30 days) Document link: https://auth0.com/docs/secure/tokens/access-tokens/update-access-token-lifetime + TokenLifetimeSeconds *int32 `json:"tokenLifetimeSeconds,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2ConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2ConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config{} + return &this +} + +// GetTokenLifetimeSeconds returns the TokenLifetimeSeconds field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) GetTokenLifetimeSeconds() int32 { + if o == nil || o.TokenLifetimeSeconds == nil { + var ret int32 + return ret + } + return *o.TokenLifetimeSeconds +} + +// GetTokenLifetimeSecondsOk returns a tuple with the TokenLifetimeSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) GetTokenLifetimeSecondsOk() (*int32, bool) { + if o == nil || o.TokenLifetimeSeconds == nil { + return nil, false + } + return o.TokenLifetimeSeconds, true +} + +// HasTokenLifetimeSeconds returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) HasTokenLifetimeSeconds() bool { + if o != nil && o.TokenLifetimeSeconds != nil { + return true + } + + return false +} + +// SetTokenLifetimeSeconds gets a reference to the given int32 and assigns it to the TokenLifetimeSeconds field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) SetTokenLifetimeSeconds(v int32) { + o.TokenLifetimeSeconds = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.TokenLifetimeSeconds != nil { + toSerialize["tokenLifetimeSeconds"] = o.TokenLifetimeSeconds + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go new file mode 100644 index 0000000..c78adf7 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider OIDCProvider +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go new file mode 100644 index 0000000..abd1953 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go new file mode 100644 index 0000000..999bd75 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec OIDCProviderSpec defines the desired state of OIDCProvider +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec struct { + Description string `json:"description"` + DiscoveryUrl string `json:"discoveryUrl"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec(description string, discoveryUrl string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec{} + this.Description = description + this.DiscoveryUrl = discoveryUrl + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec{} + return &this +} + +// GetDescription returns the Description field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) SetDescription(v string) { + o.Description = v +} + +// GetDiscoveryUrl returns the DiscoveryUrl field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDiscoveryUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DiscoveryUrl +} + +// GetDiscoveryUrlOk returns a tuple with the DiscoveryUrl field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) GetDiscoveryUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DiscoveryUrl, true +} + +// SetDiscoveryUrl sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) SetDiscoveryUrl(v string) { + o.DiscoveryUrl = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["description"] = o.Description + } + if true { + toSerialize["discoveryUrl"] = o.DiscoveryUrl + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go new file mode 100644 index 0000000..102e6b4 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus OIDCProviderStatus defines the observed state of OIDCProvider +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go new file mode 100644 index 0000000..89eb23d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization Organization +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go new file mode 100644 index 0000000..b40988c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go new file mode 100644 index 0000000..89c2d1b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go @@ -0,0 +1,556 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec OrganizationSpec defines the desired state of Organization +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec struct { + AwsMarketplaceToken *string `json:"awsMarketplaceToken,omitempty"` + BillingAccount *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec `json:"billingAccount,omitempty"` + // Organiztion ID of this org's billing parent. Once set, this org will inherit parent org's subscription, paymentMetthod and have \"inherited\" as billing type + BillingParent *string `json:"billingParent,omitempty"` + // BillingType indicates the method of subscription that the organization uses. It is primarily consumed by the cloud-manager to be able to distinguish between invoiced subscriptions. + BillingType *string `json:"billingType,omitempty"` + // CloudFeature indicates features this org wants to enable/disable + CloudFeature *map[string]bool `json:"cloudFeature,omitempty"` + DefaultPoolRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef `json:"defaultPoolRef,omitempty"` + // Name to display to our users + DisplayName *string `json:"displayName,omitempty"` + Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` + Gcloud *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec `json:"gcloud,omitempty"` + // Metadata is user-visible (and possibly editable) metadata. + Metadata *map[string]string `json:"metadata,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe `json:"stripe,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger `json:"suger,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec{} + return &this +} + +// GetAwsMarketplaceToken returns the AwsMarketplaceToken field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetAwsMarketplaceToken() string { + if o == nil || o.AwsMarketplaceToken == nil { + var ret string + return ret + } + return *o.AwsMarketplaceToken +} + +// GetAwsMarketplaceTokenOk returns a tuple with the AwsMarketplaceToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetAwsMarketplaceTokenOk() (*string, bool) { + if o == nil || o.AwsMarketplaceToken == nil { + return nil, false + } + return o.AwsMarketplaceToken, true +} + +// HasAwsMarketplaceToken returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasAwsMarketplaceToken() bool { + if o != nil && o.AwsMarketplaceToken != nil { + return true + } + + return false +} + +// SetAwsMarketplaceToken gets a reference to the given string and assigns it to the AwsMarketplaceToken field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetAwsMarketplaceToken(v string) { + o.AwsMarketplaceToken = &v +} + +// GetBillingAccount returns the BillingAccount field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingAccount() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec { + if o == nil || o.BillingAccount == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec + return ret + } + return *o.BillingAccount +} + +// GetBillingAccountOk returns a tuple with the BillingAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingAccountOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec, bool) { + if o == nil || o.BillingAccount == nil { + return nil, false + } + return o.BillingAccount, true +} + +// HasBillingAccount returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasBillingAccount() bool { + if o != nil && o.BillingAccount != nil { + return true + } + + return false +} + +// SetBillingAccount gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec and assigns it to the BillingAccount field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetBillingAccount(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec) { + o.BillingAccount = &v +} + +// GetBillingParent returns the BillingParent field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingParent() string { + if o == nil || o.BillingParent == nil { + var ret string + return ret + } + return *o.BillingParent +} + +// GetBillingParentOk returns a tuple with the BillingParent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingParentOk() (*string, bool) { + if o == nil || o.BillingParent == nil { + return nil, false + } + return o.BillingParent, true +} + +// HasBillingParent returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasBillingParent() bool { + if o != nil && o.BillingParent != nil { + return true + } + + return false +} + +// SetBillingParent gets a reference to the given string and assigns it to the BillingParent field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetBillingParent(v string) { + o.BillingParent = &v +} + +// GetBillingType returns the BillingType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingType() string { + if o == nil || o.BillingType == nil { + var ret string + return ret + } + return *o.BillingType +} + +// GetBillingTypeOk returns a tuple with the BillingType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetBillingTypeOk() (*string, bool) { + if o == nil || o.BillingType == nil { + return nil, false + } + return o.BillingType, true +} + +// HasBillingType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasBillingType() bool { + if o != nil && o.BillingType != nil { + return true + } + + return false +} + +// SetBillingType gets a reference to the given string and assigns it to the BillingType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetBillingType(v string) { + o.BillingType = &v +} + +// GetCloudFeature returns the CloudFeature field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetCloudFeature() map[string]bool { + if o == nil || o.CloudFeature == nil { + var ret map[string]bool + return ret + } + return *o.CloudFeature +} + +// GetCloudFeatureOk returns a tuple with the CloudFeature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetCloudFeatureOk() (*map[string]bool, bool) { + if o == nil || o.CloudFeature == nil { + return nil, false + } + return o.CloudFeature, true +} + +// HasCloudFeature returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasCloudFeature() bool { + if o != nil && o.CloudFeature != nil { + return true + } + + return false +} + +// SetCloudFeature gets a reference to the given map[string]bool and assigns it to the CloudFeature field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetCloudFeature(v map[string]bool) { + o.CloudFeature = &v +} + +// GetDefaultPoolRef returns the DefaultPoolRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDefaultPoolRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef { + if o == nil || o.DefaultPoolRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef + return ret + } + return *o.DefaultPoolRef +} + +// GetDefaultPoolRefOk returns a tuple with the DefaultPoolRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDefaultPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef, bool) { + if o == nil || o.DefaultPoolRef == nil { + return nil, false + } + return o.DefaultPoolRef, true +} + +// HasDefaultPoolRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasDefaultPoolRef() bool { + if o != nil && o.DefaultPoolRef != nil { + return true + } + + return false +} + +// SetDefaultPoolRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef and assigns it to the DefaultPoolRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetDefaultPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) { + o.DefaultPoolRef = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDomains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain { + if o == nil || o.Domains == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain + return ret + } + return o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetDomainsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain, bool) { + if o == nil || o.Domains == nil { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasDomains() bool { + if o != nil && o.Domains != nil { + return true + } + + return false +} + +// SetDomains gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain and assigns it to the Domains field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetDomains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) { + o.Domains = v +} + +// GetGcloud returns the Gcloud field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetGcloud() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec { + if o == nil || o.Gcloud == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec + return ret + } + return *o.Gcloud +} + +// GetGcloudOk returns a tuple with the Gcloud field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetGcloudOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec, bool) { + if o == nil || o.Gcloud == nil { + return nil, false + } + return o.Gcloud, true +} + +// HasGcloud returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasGcloud() bool { + if o != nil && o.Gcloud != nil { + return true + } + + return false +} + +// SetGcloud gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec and assigns it to the Gcloud field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetGcloud(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec) { + o.Gcloud = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetMetadata() map[string]string { + if o == nil || o.Metadata == nil { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetMetadataOk() (*map[string]string, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetStripe() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe { + if o == nil || o.Stripe == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe + return ret + } + return *o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetStripeOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetStripe(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) { + o.Stripe = &v +} + +// GetSuger returns the Suger field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger { + if o == nil || o.Suger == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger + return ret + } + return *o.Suger +} + +// GetSugerOk returns a tuple with the Suger field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger, bool) { + if o == nil || o.Suger == nil { + return nil, false + } + return o.Suger, true +} + +// HasSuger returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasSuger() bool { + if o != nil && o.Suger != nil { + return true + } + + return false +} + +// SetSuger gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger and assigns it to the Suger field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) { + o.Suger = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AwsMarketplaceToken != nil { + toSerialize["awsMarketplaceToken"] = o.AwsMarketplaceToken + } + if o.BillingAccount != nil { + toSerialize["billingAccount"] = o.BillingAccount + } + if o.BillingParent != nil { + toSerialize["billingParent"] = o.BillingParent + } + if o.BillingType != nil { + toSerialize["billingType"] = o.BillingType + } + if o.CloudFeature != nil { + toSerialize["cloudFeature"] = o.CloudFeature + } + if o.DefaultPoolRef != nil { + toSerialize["defaultPoolRef"] = o.DefaultPoolRef + } + if o.DisplayName != nil { + toSerialize["displayName"] = o.DisplayName + } + if o.Domains != nil { + toSerialize["domains"] = o.Domains + } + if o.Gcloud != nil { + toSerialize["gcloud"] = o.Gcloud + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + if o.Suger != nil { + toSerialize["suger"] = o.Suger + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go new file mode 100644 index 0000000..64e4dde --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus OrganizationStatus defines the observed state of Organization +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus struct { + // reconciled parent of this organization. if spec.BillingParent is set but status.BillingParent is not set, then reconciler will create a parent child relationship if spec.BillingParent is not set but status.BillingParent is set, then reconciler will delete parent child relationship if spec.BillingParent is set but status.BillingParent is set and same, then reconciler will do nothing if spec.BillingParent is set but status.Billingparent is set and different, then reconciler will delete status.Billingparent relationship and create new spec.BillingParent relationship + BillingParent *string `json:"billingParent,omitempty"` + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // Indicates the active subscription for this organization. This information is available when the Subscribed condition is true. + SubscriptionName *string `json:"subscriptionName,omitempty"` + // returns support plan of current subscription. blank, implies either no support plan or legacy support + SupportPlan *string `json:"supportPlan,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus{} + return &this +} + +// GetBillingParent returns the BillingParent field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetBillingParent() string { + if o == nil || o.BillingParent == nil { + var ret string + return ret + } + return *o.BillingParent +} + +// GetBillingParentOk returns a tuple with the BillingParent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetBillingParentOk() (*string, bool) { + if o == nil || o.BillingParent == nil { + return nil, false + } + return o.BillingParent, true +} + +// HasBillingParent returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasBillingParent() bool { + if o != nil && o.BillingParent != nil { + return true + } + + return false +} + +// SetBillingParent gets a reference to the given string and assigns it to the BillingParent field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetBillingParent(v string) { + o.BillingParent = &v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetSubscriptionName returns the SubscriptionName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSubscriptionName() string { + if o == nil || o.SubscriptionName == nil { + var ret string + return ret + } + return *o.SubscriptionName +} + +// GetSubscriptionNameOk returns a tuple with the SubscriptionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSubscriptionNameOk() (*string, bool) { + if o == nil || o.SubscriptionName == nil { + return nil, false + } + return o.SubscriptionName, true +} + +// HasSubscriptionName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasSubscriptionName() bool { + if o != nil && o.SubscriptionName != nil { + return true + } + + return false +} + +// SetSubscriptionName gets a reference to the given string and assigns it to the SubscriptionName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetSubscriptionName(v string) { + o.SubscriptionName = &v +} + +// GetSupportPlan returns the SupportPlan field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSupportPlan() string { + if o == nil || o.SupportPlan == nil { + var ret string + return ret + } + return *o.SupportPlan +} + +// GetSupportPlanOk returns a tuple with the SupportPlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) GetSupportPlanOk() (*string, bool) { + if o == nil || o.SupportPlan == nil { + return nil, false + } + return o.SupportPlan, true +} + +// HasSupportPlan returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) HasSupportPlan() bool { + if o != nil && o.SupportPlan != nil { + return true + } + + return false +} + +// SetSupportPlan gets a reference to the given string and assigns it to the SupportPlan field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) SetSupportPlan(v string) { + o.SupportPlan = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BillingParent != nil { + toSerialize["billingParent"] = o.BillingParent + } + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.SubscriptionName != nil { + toSerialize["subscriptionName"] = o.SubscriptionName + } + if o.SupportPlan != nil { + toSerialize["supportPlan"] = o.SupportPlan + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go new file mode 100644 index 0000000..74eca9d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe struct { + // CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice + CollectionMethod *string `json:"collectionMethod,omitempty"` + // DaysUntilDue sets the due date for the invoice. Applicable when collection method is send_invoice. + DaysUntilDue *int64 `json:"daysUntilDue,omitempty"` + // KeepInDraft disables auto-advance of the invoice state. Applicable when collection method is send_invoice. + KeepInDraft *bool `json:"keepInDraft,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripeWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripeWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe{} + return &this +} + +// GetCollectionMethod returns the CollectionMethod field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetCollectionMethod() string { + if o == nil || o.CollectionMethod == nil { + var ret string + return ret + } + return *o.CollectionMethod +} + +// GetCollectionMethodOk returns a tuple with the CollectionMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetCollectionMethodOk() (*string, bool) { + if o == nil || o.CollectionMethod == nil { + return nil, false + } + return o.CollectionMethod, true +} + +// HasCollectionMethod returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) HasCollectionMethod() bool { + if o != nil && o.CollectionMethod != nil { + return true + } + + return false +} + +// SetCollectionMethod gets a reference to the given string and assigns it to the CollectionMethod field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) SetCollectionMethod(v string) { + o.CollectionMethod = &v +} + +// GetDaysUntilDue returns the DaysUntilDue field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetDaysUntilDue() int64 { + if o == nil || o.DaysUntilDue == nil { + var ret int64 + return ret + } + return *o.DaysUntilDue +} + +// GetDaysUntilDueOk returns a tuple with the DaysUntilDue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetDaysUntilDueOk() (*int64, bool) { + if o == nil || o.DaysUntilDue == nil { + return nil, false + } + return o.DaysUntilDue, true +} + +// HasDaysUntilDue returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) HasDaysUntilDue() bool { + if o != nil && o.DaysUntilDue != nil { + return true + } + + return false +} + +// SetDaysUntilDue gets a reference to the given int64 and assigns it to the DaysUntilDue field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) SetDaysUntilDue(v int64) { + o.DaysUntilDue = &v +} + +// GetKeepInDraft returns the KeepInDraft field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetKeepInDraft() bool { + if o == nil || o.KeepInDraft == nil { + var ret bool + return ret + } + return *o.KeepInDraft +} + +// GetKeepInDraftOk returns a tuple with the KeepInDraft field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) GetKeepInDraftOk() (*bool, bool) { + if o == nil || o.KeepInDraft == nil { + return nil, false + } + return o.KeepInDraft, true +} + +// HasKeepInDraft returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) HasKeepInDraft() bool { + if o != nil && o.KeepInDraft != nil { + return true + } + + return false +} + +// SetKeepInDraft gets a reference to the given bool and assigns it to the KeepInDraft field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) SetKeepInDraft(v bool) { + o.KeepInDraft = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CollectionMethod != nil { + toSerialize["collectionMethod"] = o.CollectionMethod + } + if o.DaysUntilDue != nil { + toSerialize["daysUntilDue"] = o.DaysUntilDue + } + if o.KeepInDraft != nil { + toSerialize["keepInDraft"] = o.KeepInDraft + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go new file mode 100644 index 0000000..bd4ad97 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger struct { + BuyerIDs []string `json:"buyerIDs"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger(buyerIDs []string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger{} + this.BuyerIDs = buyerIDs + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSugerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSugerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger{} + return &this +} + +// GetBuyerIDs returns the BuyerIDs field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) GetBuyerIDs() []string { + if o == nil { + var ret []string + return ret + } + + return o.BuyerIDs +} + +// GetBuyerIDsOk returns a tuple with the BuyerIDs field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) GetBuyerIDsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.BuyerIDs, true +} + +// SetBuyerIDs sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) SetBuyerIDs(v []string) { + o.BuyerIDs = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["buyerIDs"] = o.BuyerIDs + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go new file mode 100644 index 0000000..eca0f90 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool Pool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go new file mode 100644 index 0000000..acee007 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go new file mode 100644 index 0000000..0db2952 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember PoolMember +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go new file mode 100644 index 0000000..648daf5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec struct { + // ProxyUrl overrides the URL to K8S API. This is most typically done for SNI proxying. If ProxyUrl is set but TLSServerName is not, the *original* SNI value from the default endpoint will be used. If you also want to change the SNI header, you must also set TLSServerName. + ProxyUrl *string `json:"proxyUrl,omitempty"` + // TLSServerName is the SNI header name to set, overriding the default endpoint. This should include the hostname value, with no port. + TlsServerName *string `json:"tlsServerName,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec{} + return &this +} + +// GetProxyUrl returns the ProxyUrl field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetProxyUrl() string { + if o == nil || o.ProxyUrl == nil { + var ret string + return ret + } + return *o.ProxyUrl +} + +// GetProxyUrlOk returns a tuple with the ProxyUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetProxyUrlOk() (*string, bool) { + if o == nil || o.ProxyUrl == nil { + return nil, false + } + return o.ProxyUrl, true +} + +// HasProxyUrl returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) HasProxyUrl() bool { + if o != nil && o.ProxyUrl != nil { + return true + } + + return false +} + +// SetProxyUrl gets a reference to the given string and assigns it to the ProxyUrl field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) SetProxyUrl(v string) { + o.ProxyUrl = &v +} + +// GetTlsServerName returns the TlsServerName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetTlsServerName() string { + if o == nil || o.TlsServerName == nil { + var ret string + return ret + } + return *o.TlsServerName +} + +// GetTlsServerNameOk returns a tuple with the TlsServerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) GetTlsServerNameOk() (*string, bool) { + if o == nil || o.TlsServerName == nil { + return nil, false + } + return o.TlsServerName, true +} + +// HasTlsServerName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) HasTlsServerName() bool { + if o != nil && o.TlsServerName != nil { + return true + } + + return false +} + +// SetTlsServerName gets a reference to the given string and assigns it to the TlsServerName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) SetTlsServerName(v string) { + o.TlsServerName = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ProxyUrl != nil { + toSerialize["proxyUrl"] = o.ProxyUrl + } + if o.TlsServerName != nil { + toSerialize["tlsServerName"] = o.TlsServerName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go new file mode 100644 index 0000000..c8e86c9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector struct { + // One or more labels that indicate a specific set of pods on which a policy should be applied. The scope of label search is restricted to the configuration namespace in which the resource is present. + MatchLabels *map[string]string `json:"matchLabels,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelectorWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelectorWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector{} + return &this +} + +// GetMatchLabels returns the MatchLabels field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) GetMatchLabels() map[string]string { + if o == nil || o.MatchLabels == nil { + var ret map[string]string + return ret + } + return *o.MatchLabels +} + +// GetMatchLabelsOk returns a tuple with the MatchLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) GetMatchLabelsOk() (*map[string]string, bool) { + if o == nil || o.MatchLabels == nil { + return nil, false + } + return o.MatchLabels, true +} + +// HasMatchLabels returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) HasMatchLabels() bool { + if o != nil && o.MatchLabels != nil { + return true + } + + return false +} + +// SetMatchLabels gets a reference to the given map[string]string and assigns it to the MatchLabels field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) SetMatchLabels(v map[string]string) { + o.MatchLabels = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.MatchLabels != nil { + toSerialize["matchLabels"] = o.MatchLabels + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go new file mode 100644 index 0000000..7f358d2 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec struct { + Selector ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector `json:"selector"` + Tls ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls `json:"tls"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec(selector ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector, tls ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec{} + this.Selector = selector + this.Tls = tls + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec{} + return &this +} + +// GetSelector returns the Selector field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetSelector() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector + return ret + } + + return o.Selector +} + +// GetSelectorOk returns a tuple with the Selector field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetSelectorOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector, bool) { + if o == nil { + return nil, false + } + return &o.Selector, true +} + +// SetSelector sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) SetSelector(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector) { + o.Selector = v +} + +// GetTls returns the Tls field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetTls() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls + return ret + } + + return o.Tls +} + +// GetTlsOk returns a tuple with the Tls field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) GetTlsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls, bool) { + if o == nil { + return nil, false + } + return &o.Tls, true +} + +// SetTls sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) SetTls(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) { + o.Tls = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["selector"] = o.Selector + } + if true { + toSerialize["tls"] = o.Tls + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go new file mode 100644 index 0000000..bb909a1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go @@ -0,0 +1,113 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls struct { + // The TLS secret to use (in the namespace of the gateway workload pods). + CertSecretName string `json:"certSecretName"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls(certSecretName string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls{} + this.CertSecretName = certSecretName + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTlsWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTlsWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls{} + return &this +} + +// GetCertSecretName returns the CertSecretName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) GetCertSecretName() string { + if o == nil { + var ret string + return ret + } + + return o.CertSecretName +} + +// GetCertSecretNameOk returns a tuple with the CertSecretName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) GetCertSecretNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CertSecretName, true +} + +// SetCertSecretName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) SetCertSecretName(v string) { + o.CertSecretName = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["certSecretName"] = o.CertSecretName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go new file mode 100644 index 0000000..2d36852 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go @@ -0,0 +1,149 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec struct { + Gateway *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec `json:"gateway,omitempty"` + // Revision is the Istio revision tag. + Revision string `json:"revision"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec(revision string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec{} + this.Revision = revision + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec{} + return &this +} + +// GetGateway returns the Gateway field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetGateway() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec { + if o == nil || o.Gateway == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec + return ret + } + return *o.Gateway +} + +// GetGatewayOk returns a tuple with the Gateway field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetGatewayOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec, bool) { + if o == nil || o.Gateway == nil { + return nil, false + } + return o.Gateway, true +} + +// HasGateway returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) HasGateway() bool { + if o != nil && o.Gateway != nil { + return true + } + + return false +} + +// SetGateway gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec and assigns it to the Gateway field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) SetGateway(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec) { + o.Gateway = &v +} + +// GetRevision returns the Revision field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetRevision() string { + if o == nil { + var ret string + return ret + } + + return o.Revision +} + +// GetRevisionOk returns a tuple with the Revision field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) GetRevisionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Revision, true +} + +// SetRevision sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) SetRevision(v string) { + o.Revision = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Gateway != nil { + toSerialize["gateway"] = o.Gateway + } + if true { + toSerialize["revision"] = o.Revision + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go new file mode 100644 index 0000000..3d60ddc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go new file mode 100644 index 0000000..18173de --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go @@ -0,0 +1,202 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring struct { + // Project is the Google project containing UO components. + Project string `json:"project"` + // VMTenant identifies the VM tenant to use (accountID or accountID:projectID). + VmTenant string `json:"vmTenant"` + VmagentSecretRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference `json:"vmagentSecretRef"` + // VMinsertBackendServiceName identifies the backend service for vminsert. + VminsertBackendServiceName string `json:"vminsertBackendServiceName"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring(project string, vmTenant string, vmagentSecretRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference, vminsertBackendServiceName string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring{} + this.Project = project + this.VmTenant = vmTenant + this.VmagentSecretRef = vmagentSecretRef + this.VminsertBackendServiceName = vminsertBackendServiceName + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoringWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoringWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring{} + return &this +} + +// GetProject returns the Project field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetProject() string { + if o == nil { + var ret string + return ret + } + + return o.Project +} + +// GetProjectOk returns a tuple with the Project field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetProjectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Project, true +} + +// SetProject sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetProject(v string) { + o.Project = v +} + +// GetVmTenant returns the VmTenant field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmTenant() string { + if o == nil { + var ret string + return ret + } + + return o.VmTenant +} + +// GetVmTenantOk returns a tuple with the VmTenant field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmTenantOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VmTenant, true +} + +// SetVmTenant sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetVmTenant(v string) { + o.VmTenant = v +} + +// GetVmagentSecretRef returns the VmagentSecretRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmagentSecretRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference + return ret + } + + return o.VmagentSecretRef +} + +// GetVmagentSecretRefOk returns a tuple with the VmagentSecretRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVmagentSecretRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference, bool) { + if o == nil { + return nil, false + } + return &o.VmagentSecretRef, true +} + +// SetVmagentSecretRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetVmagentSecretRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) { + o.VmagentSecretRef = v +} + +// GetVminsertBackendServiceName returns the VminsertBackendServiceName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVminsertBackendServiceName() string { + if o == nil { + var ret string + return ret + } + + return o.VminsertBackendServiceName +} + +// GetVminsertBackendServiceNameOk returns a tuple with the VminsertBackendServiceName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) GetVminsertBackendServiceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.VminsertBackendServiceName, true +} + +// SetVminsertBackendServiceName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) SetVminsertBackendServiceName(v string) { + o.VminsertBackendServiceName = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["project"] = o.Project + } + if true { + toSerialize["vmTenant"] = o.VmTenant + } + if true { + toSerialize["vmagentSecretRef"] = o.VmagentSecretRef + } + if true { + toSerialize["vminsertBackendServiceName"] = o.VminsertBackendServiceName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go new file mode 100644 index 0000000..a69c2f2 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec struct { + Catalog ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog `json:"catalog"` + Channel ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel `json:"channel"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec(catalog ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog, channel ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec{} + this.Catalog = catalog + this.Channel = channel + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec{} + return &this +} + +// GetCatalog returns the Catalog field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetCatalog() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog + return ret + } + + return o.Catalog +} + +// GetCatalogOk returns a tuple with the Catalog field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetCatalogOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog, bool) { + if o == nil { + return nil, false + } + return &o.Catalog, true +} + +// SetCatalog sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) SetCatalog(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) { + o.Catalog = v +} + +// GetChannel returns the Channel field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetChannel() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel + return ret + } + + return o.Channel +} + +// GetChannelOk returns a tuple with the Channel field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) GetChannelOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel, bool) { + if o == nil { + return nil, false + } + return &o.Channel, true +} + +// SetChannel sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) SetChannel(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) { + o.Channel = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["catalog"] = o.Catalog + } + if true { + toSerialize["channel"] = o.Channel + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go new file mode 100644 index 0000000..df151fd --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go @@ -0,0 +1,142 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog struct { + Image string `json:"image"` + // Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json. + PollInterval string `json:"pollInterval"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog(image string, pollInterval string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog{} + this.Image = image + this.PollInterval = pollInterval + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalogWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalogWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog{} + return &this +} + +// GetImage returns the Image field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetImage() string { + if o == nil { + var ret string + return ret + } + + return o.Image +} + +// GetImageOk returns a tuple with the Image field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Image, true +} + +// SetImage sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) SetImage(v string) { + o.Image = v +} + +// GetPollInterval returns the PollInterval field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetPollInterval() string { + if o == nil { + var ret string + return ret + } + + return o.PollInterval +} + +// GetPollIntervalOk returns a tuple with the PollInterval field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) GetPollIntervalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PollInterval, true +} + +// SetPollInterval sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) SetPollInterval(v string) { + o.PollInterval = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["image"] = o.Image + } + if true { + toSerialize["pollInterval"] = o.PollInterval + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecCatalog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go new file mode 100644 index 0000000..1712e28 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel struct { + Name string `json:"name"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel(name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannelWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannelWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) SetName(v string) { + o.Name = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpecChannel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go new file mode 100644 index 0000000..613862d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference struct { + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference(name string, namespace string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference{} + this.Name = name + this.Namespace = namespace + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) SetNamespace(v string) { + o.Namespace = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go new file mode 100644 index 0000000..9b901e4 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go @@ -0,0 +1,609 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec PoolMemberSpec defines the desired state of PoolMember +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec struct { + Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec `json:"aws,omitempty"` + Azure *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec `json:"azure,omitempty"` + ConnectionOptions *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec `json:"connectionOptions,omitempty"` + Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` + FunctionMesh *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec `json:"functionMesh,omitempty"` + Gcloud *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec `json:"gcloud,omitempty"` + Generic *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec `json:"generic,omitempty"` + Istio *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec `json:"istio,omitempty"` + Monitoring *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring `json:"monitoring,omitempty"` + PoolName string `json:"poolName"` + Pulsar *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec `json:"pulsar,omitempty"` + SupportAccess *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec `json:"supportAccess,omitempty"` + Taints []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint `json:"taints,omitempty"` + TieredStorage *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec `json:"tieredStorage,omitempty"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec(poolName string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec{} + this.PoolName = poolName + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec{} + return &this +} + +// GetAws returns the Aws field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAws() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec { + if o == nil || o.Aws == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec + return ret + } + return *o.Aws +} + +// GetAwsOk returns a tuple with the Aws field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAwsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec, bool) { + if o == nil || o.Aws == nil { + return nil, false + } + return o.Aws, true +} + +// HasAws returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasAws() bool { + if o != nil && o.Aws != nil { + return true + } + + return false +} + +// SetAws gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec and assigns it to the Aws field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetAws(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec) { + o.Aws = &v +} + +// GetAzure returns the Azure field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAzure() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec { + if o == nil || o.Azure == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec + return ret + } + return *o.Azure +} + +// GetAzureOk returns a tuple with the Azure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetAzureOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec, bool) { + if o == nil || o.Azure == nil { + return nil, false + } + return o.Azure, true +} + +// HasAzure returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasAzure() bool { + if o != nil && o.Azure != nil { + return true + } + + return false +} + +// SetAzure gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec and assigns it to the Azure field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetAzure(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec) { + o.Azure = &v +} + +// GetConnectionOptions returns the ConnectionOptions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetConnectionOptions() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec { + if o == nil || o.ConnectionOptions == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec + return ret + } + return *o.ConnectionOptions +} + +// GetConnectionOptionsOk returns a tuple with the ConnectionOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetConnectionOptionsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec, bool) { + if o == nil || o.ConnectionOptions == nil { + return nil, false + } + return o.ConnectionOptions, true +} + +// HasConnectionOptions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasConnectionOptions() bool { + if o != nil && o.ConnectionOptions != nil { + return true + } + + return false +} + +// SetConnectionOptions gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec and assigns it to the ConnectionOptions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetConnectionOptions(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec) { + o.ConnectionOptions = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetDomains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain { + if o == nil || o.Domains == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain + return ret + } + return o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetDomainsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain, bool) { + if o == nil || o.Domains == nil { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasDomains() bool { + if o != nil && o.Domains != nil { + return true + } + + return false +} + +// SetDomains gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain and assigns it to the Domains field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetDomains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) { + o.Domains = v +} + +// GetFunctionMesh returns the FunctionMesh field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetFunctionMesh() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec { + if o == nil || o.FunctionMesh == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec + return ret + } + return *o.FunctionMesh +} + +// GetFunctionMeshOk returns a tuple with the FunctionMesh field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetFunctionMeshOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec, bool) { + if o == nil || o.FunctionMesh == nil { + return nil, false + } + return o.FunctionMesh, true +} + +// HasFunctionMesh returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasFunctionMesh() bool { + if o != nil && o.FunctionMesh != nil { + return true + } + + return false +} + +// SetFunctionMesh gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec and assigns it to the FunctionMesh field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetFunctionMesh(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) { + o.FunctionMesh = &v +} + +// GetGcloud returns the Gcloud field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGcloud() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec { + if o == nil || o.Gcloud == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec + return ret + } + return *o.Gcloud +} + +// GetGcloudOk returns a tuple with the Gcloud field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGcloudOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec, bool) { + if o == nil || o.Gcloud == nil { + return nil, false + } + return o.Gcloud, true +} + +// HasGcloud returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasGcloud() bool { + if o != nil && o.Gcloud != nil { + return true + } + + return false +} + +// SetGcloud gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec and assigns it to the Gcloud field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetGcloud(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec) { + o.Gcloud = &v +} + +// GetGeneric returns the Generic field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGeneric() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec { + if o == nil || o.Generic == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec + return ret + } + return *o.Generic +} + +// GetGenericOk returns a tuple with the Generic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetGenericOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec, bool) { + if o == nil || o.Generic == nil { + return nil, false + } + return o.Generic, true +} + +// HasGeneric returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasGeneric() bool { + if o != nil && o.Generic != nil { + return true + } + + return false +} + +// SetGeneric gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec and assigns it to the Generic field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetGeneric(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec) { + o.Generic = &v +} + +// GetIstio returns the Istio field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetIstio() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec { + if o == nil || o.Istio == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec + return ret + } + return *o.Istio +} + +// GetIstioOk returns a tuple with the Istio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetIstioOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec, bool) { + if o == nil || o.Istio == nil { + return nil, false + } + return o.Istio, true +} + +// HasIstio returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasIstio() bool { + if o != nil && o.Istio != nil { + return true + } + + return false +} + +// SetIstio gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec and assigns it to the Istio field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetIstio(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec) { + o.Istio = &v +} + +// GetMonitoring returns the Monitoring field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetMonitoring() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring { + if o == nil || o.Monitoring == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring + return ret + } + return *o.Monitoring +} + +// GetMonitoringOk returns a tuple with the Monitoring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetMonitoringOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring, bool) { + if o == nil || o.Monitoring == nil { + return nil, false + } + return o.Monitoring, true +} + +// HasMonitoring returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasMonitoring() bool { + if o != nil && o.Monitoring != nil { + return true + } + + return false +} + +// SetMonitoring gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring and assigns it to the Monitoring field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetMonitoring(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring) { + o.Monitoring = &v +} + +// GetPoolName returns the PoolName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPoolName() string { + if o == nil { + var ret string + return ret + } + + return o.PoolName +} + +// GetPoolNameOk returns a tuple with the PoolName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPoolNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PoolName, true +} + +// SetPoolName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetPoolName(v string) { + o.PoolName = v +} + +// GetPulsar returns the Pulsar field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPulsar() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec { + if o == nil || o.Pulsar == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec + return ret + } + return *o.Pulsar +} + +// GetPulsarOk returns a tuple with the Pulsar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetPulsarOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec, bool) { + if o == nil || o.Pulsar == nil { + return nil, false + } + return o.Pulsar, true +} + +// HasPulsar returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasPulsar() bool { + if o != nil && o.Pulsar != nil { + return true + } + + return false +} + +// SetPulsar gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec and assigns it to the Pulsar field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetPulsar(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec) { + o.Pulsar = &v +} + +// GetSupportAccess returns the SupportAccess field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetSupportAccess() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec { + if o == nil || o.SupportAccess == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec + return ret + } + return *o.SupportAccess +} + +// GetSupportAccessOk returns a tuple with the SupportAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetSupportAccessOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec, bool) { + if o == nil || o.SupportAccess == nil { + return nil, false + } + return o.SupportAccess, true +} + +// HasSupportAccess returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasSupportAccess() bool { + if o != nil && o.SupportAccess != nil { + return true + } + + return false +} + +// SetSupportAccess gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec and assigns it to the SupportAccess field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetSupportAccess(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) { + o.SupportAccess = &v +} + +// GetTaints returns the Taints field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTaints() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint { + if o == nil || o.Taints == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint + return ret + } + return o.Taints +} + +// GetTaintsOk returns a tuple with the Taints field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTaintsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint, bool) { + if o == nil || o.Taints == nil { + return nil, false + } + return o.Taints, true +} + +// HasTaints returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasTaints() bool { + if o != nil && o.Taints != nil { + return true + } + + return false +} + +// SetTaints gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint and assigns it to the Taints field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetTaints(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) { + o.Taints = v +} + +// GetTieredStorage returns the TieredStorage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTieredStorage() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec { + if o == nil || o.TieredStorage == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec + return ret + } + return *o.TieredStorage +} + +// GetTieredStorageOk returns a tuple with the TieredStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTieredStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec, bool) { + if o == nil || o.TieredStorage == nil { + return nil, false + } + return o.TieredStorage, true +} + +// HasTieredStorage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) HasTieredStorage() bool { + if o != nil && o.TieredStorage != nil { + return true + } + + return false +} + +// SetTieredStorage gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec and assigns it to the TieredStorage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetTieredStorage(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) { + o.TieredStorage = &v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Aws != nil { + toSerialize["aws"] = o.Aws + } + if o.Azure != nil { + toSerialize["azure"] = o.Azure + } + if o.ConnectionOptions != nil { + toSerialize["connectionOptions"] = o.ConnectionOptions + } + if o.Domains != nil { + toSerialize["domains"] = o.Domains + } + if o.FunctionMesh != nil { + toSerialize["functionMesh"] = o.FunctionMesh + } + if o.Gcloud != nil { + toSerialize["gcloud"] = o.Gcloud + } + if o.Generic != nil { + toSerialize["generic"] = o.Generic + } + if o.Istio != nil { + toSerialize["istio"] = o.Istio + } + if o.Monitoring != nil { + toSerialize["monitoring"] = o.Monitoring + } + if true { + toSerialize["poolName"] = o.PoolName + } + if o.Pulsar != nil { + toSerialize["pulsar"] = o.Pulsar + } + if o.SupportAccess != nil { + toSerialize["supportAccess"] = o.SupportAccess + } + if o.Taints != nil { + toSerialize["taints"] = o.Taints + } + if o.TieredStorage != nil { + toSerialize["tieredStorage"] = o.TieredStorage + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go new file mode 100644 index 0000000..bc35955 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go @@ -0,0 +1,252 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus PoolMemberStatus defines the observed state of PoolMember +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + DeploymentType string `json:"deploymentType"` + // InstalledCSVs shows the name and status of installed operator versions + InstalledCSVs []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV `json:"installedCSVs,omitempty"` + // ObservedGeneration is the most recent generation observed by the PoolMember controller. + ObservedGeneration int64 `json:"observedGeneration"` + ServerVersion *string `json:"serverVersion,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus(deploymentType string, observedGeneration int64) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus{} + this.DeploymentType = deploymentType + this.ObservedGeneration = observedGeneration + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetDeploymentType returns the DeploymentType field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetDeploymentType() string { + if o == nil { + var ret string + return ret + } + + return o.DeploymentType +} + +// GetDeploymentTypeOk returns a tuple with the DeploymentType field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetDeploymentTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeploymentType, true +} + +// SetDeploymentType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetDeploymentType(v string) { + o.DeploymentType = v +} + +// GetInstalledCSVs returns the InstalledCSVs field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetInstalledCSVs() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV { + if o == nil || o.InstalledCSVs == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV + return ret + } + return o.InstalledCSVs +} + +// GetInstalledCSVsOk returns a tuple with the InstalledCSVs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetInstalledCSVsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV, bool) { + if o == nil || o.InstalledCSVs == nil { + return nil, false + } + return o.InstalledCSVs, true +} + +// HasInstalledCSVs returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) HasInstalledCSVs() bool { + if o != nil && o.InstalledCSVs != nil { + return true + } + + return false +} + +// SetInstalledCSVs gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV and assigns it to the InstalledCSVs field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetInstalledCSVs(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV) { + o.InstalledCSVs = v +} + +// GetObservedGeneration returns the ObservedGeneration field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetObservedGeneration() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetObservedGenerationOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObservedGeneration, true +} + +// SetObservedGeneration sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetObservedGeneration(v int64) { + o.ObservedGeneration = v +} + +// GetServerVersion returns the ServerVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetServerVersion() string { + if o == nil || o.ServerVersion == nil { + var ret string + return ret + } + return *o.ServerVersion +} + +// GetServerVersionOk returns a tuple with the ServerVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) GetServerVersionOk() (*string, bool) { + if o == nil || o.ServerVersion == nil { + return nil, false + } + return o.ServerVersion, true +} + +// HasServerVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) HasServerVersion() bool { + if o != nil && o.ServerVersion != nil { + return true + } + + return false +} + +// SetServerVersion gets a reference to the given string and assigns it to the ServerVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) SetServerVersion(v string) { + o.ServerVersion = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if true { + toSerialize["deploymentType"] = o.DeploymentType + } + if o.InstalledCSVs != nil { + toSerialize["installedCSVs"] = o.InstalledCSVs + } + if true { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if o.ServerVersion != nil { + toSerialize["serverVersion"] = o.ServerVersion + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go new file mode 100644 index 0000000..4668a72 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go @@ -0,0 +1,119 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec PoolMemberTieredStorageSpec is used to configure tiered storage for a pool member. It only contains some common fields for all the pulsar cluster in this pool member. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec struct { + BucketName *string `json:"bucketName,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec{} + return &this +} + +// GetBucketName returns the BucketName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) GetBucketName() string { + if o == nil || o.BucketName == nil { + var ret string + return ret + } + return *o.BucketName +} + +// GetBucketNameOk returns a tuple with the BucketName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) GetBucketNameOk() (*string, bool) { + if o == nil || o.BucketName == nil { + return nil, false + } + return o.BucketName, true +} + +// HasBucketName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) HasBucketName() bool { + if o != nil && o.BucketName != nil { + return true + } + + return false +} + +// SetBucketName gets a reference to the given string and assigns it to the BucketName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) SetBucketName(v string) { + o.BucketName = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BucketName != nil { + toSerialize["bucketName"] = o.BucketName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go new file mode 100644 index 0000000..010a11a --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption PoolOption +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go new file mode 100644 index 0000000..8cc1d64 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go new file mode 100644 index 0000000..3771ec6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation struct { + DisplayName *string `json:"displayName,omitempty"` + Location string `json:"location"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation(location string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation{} + this.Location = location + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetLocation returns the Location field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) SetLocation(v string) { + o.Location = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DisplayName != nil { + toSerialize["displayName"] = o.DisplayName + } + if true { + toSerialize["location"] = o.Location + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go new file mode 100644 index 0000000..7bfb8b9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go @@ -0,0 +1,235 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec PoolOptionSpec defines a reference to a Pool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec struct { + CloudType string `json:"cloudType"` + DeploymentType string `json:"deploymentType"` + Features *map[string]bool `json:"features,omitempty"` + Locations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation `json:"locations"` + PoolRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef `json:"poolRef"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec(cloudType string, deploymentType string, locations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation, poolRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec{} + this.CloudType = cloudType + this.DeploymentType = deploymentType + this.Locations = locations + this.PoolRef = poolRef + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec{} + return &this +} + +// GetCloudType returns the CloudType field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetCloudType() string { + if o == nil { + var ret string + return ret + } + + return o.CloudType +} + +// GetCloudTypeOk returns a tuple with the CloudType field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetCloudTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CloudType, true +} + +// SetCloudType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetCloudType(v string) { + o.CloudType = v +} + +// GetDeploymentType returns the DeploymentType field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetDeploymentType() string { + if o == nil { + var ret string + return ret + } + + return o.DeploymentType +} + +// GetDeploymentTypeOk returns a tuple with the DeploymentType field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetDeploymentTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DeploymentType, true +} + +// SetDeploymentType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetDeploymentType(v string) { + o.DeploymentType = v +} + +// GetFeatures returns the Features field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetFeatures() map[string]bool { + if o == nil || o.Features == nil { + var ret map[string]bool + return ret + } + return *o.Features +} + +// GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetFeaturesOk() (*map[string]bool, bool) { + if o == nil || o.Features == nil { + return nil, false + } + return o.Features, true +} + +// HasFeatures returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) HasFeatures() bool { + if o != nil && o.Features != nil { + return true + } + + return false +} + +// SetFeatures gets a reference to the given map[string]bool and assigns it to the Features field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetFeatures(v map[string]bool) { + o.Features = &v +} + +// GetLocations returns the Locations field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetLocations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation + return ret + } + + return o.Locations +} + +// GetLocationsOk returns a tuple with the Locations field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetLocationsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation, bool) { + if o == nil { + return nil, false + } + return o.Locations, true +} + +// SetLocations sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetLocations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation) { + o.Locations = v +} + +// GetPoolRef returns the PoolRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetPoolRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef + return ret + } + + return o.PoolRef +} + +// GetPoolRefOk returns a tuple with the PoolRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) GetPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef, bool) { + if o == nil { + return nil, false + } + return &o.PoolRef, true +} + +// SetPoolRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) SetPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) { + o.PoolRef = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cloudType"] = o.CloudType + } + if true { + toSerialize["deploymentType"] = o.DeploymentType + } + if o.Features != nil { + toSerialize["features"] = o.Features + } + if true { + toSerialize["locations"] = o.Locations + } + if true { + toSerialize["poolRef"] = o.PoolRef + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go new file mode 100644 index 0000000..689d9dd --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus struct { + // Conditions is an array of current observed PoolOption conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go new file mode 100644 index 0000000..9087410 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef PoolRef is a reference to a pool with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef struct { + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef(name string, namespace string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef{} + this.Name = name + this.Namespace = namespace + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) SetNamespace(v string) { + o.Namespace = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go new file mode 100644 index 0000000..644f4af --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go @@ -0,0 +1,258 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec PoolSpec defines the desired state of Pool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec struct { + // CloudFeature indicates features this pool wants to enable/disable by default for all Pulsar clusters created on it + CloudFeature *map[string]bool `json:"cloudFeature,omitempty"` + // This feild is used by `cloud-manager` and `cloud-billing-reporter` to potentially charge different rates for our customers. It is imperative that we correctly set this field if a pool is a \"Pro\" tier or no tier. + DeploymentType *string `json:"deploymentType,omitempty"` + Gcloud map[string]interface{} `json:"gcloud,omitempty"` + Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig `json:"sharing,omitempty"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec(type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec{} + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec{} + return &this +} + +// GetCloudFeature returns the CloudFeature field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetCloudFeature() map[string]bool { + if o == nil || o.CloudFeature == nil { + var ret map[string]bool + return ret + } + return *o.CloudFeature +} + +// GetCloudFeatureOk returns a tuple with the CloudFeature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetCloudFeatureOk() (*map[string]bool, bool) { + if o == nil || o.CloudFeature == nil { + return nil, false + } + return o.CloudFeature, true +} + +// HasCloudFeature returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasCloudFeature() bool { + if o != nil && o.CloudFeature != nil { + return true + } + + return false +} + +// SetCloudFeature gets a reference to the given map[string]bool and assigns it to the CloudFeature field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetCloudFeature(v map[string]bool) { + o.CloudFeature = &v +} + +// GetDeploymentType returns the DeploymentType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetDeploymentType() string { + if o == nil || o.DeploymentType == nil { + var ret string + return ret + } + return *o.DeploymentType +} + +// GetDeploymentTypeOk returns a tuple with the DeploymentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetDeploymentTypeOk() (*string, bool) { + if o == nil || o.DeploymentType == nil { + return nil, false + } + return o.DeploymentType, true +} + +// HasDeploymentType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasDeploymentType() bool { + if o != nil && o.DeploymentType != nil { + return true + } + + return false +} + +// SetDeploymentType gets a reference to the given string and assigns it to the DeploymentType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetDeploymentType(v string) { + o.DeploymentType = &v +} + +// GetGcloud returns the Gcloud field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetGcloud() map[string]interface{} { + if o == nil || o.Gcloud == nil { + var ret map[string]interface{} + return ret + } + return o.Gcloud +} + +// GetGcloudOk returns a tuple with the Gcloud field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetGcloudOk() (map[string]interface{}, bool) { + if o == nil || o.Gcloud == nil { + return nil, false + } + return o.Gcloud, true +} + +// HasGcloud returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasGcloud() bool { + if o != nil && o.Gcloud != nil { + return true + } + + return false +} + +// SetGcloud gets a reference to the given map[string]interface{} and assigns it to the Gcloud field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetGcloud(v map[string]interface{}) { + o.Gcloud = v +} + +// GetSharing returns the Sharing field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetSharing() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig { + if o == nil || o.Sharing == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig + return ret + } + return *o.Sharing +} + +// GetSharingOk returns a tuple with the Sharing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetSharingOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig, bool) { + if o == nil || o.Sharing == nil { + return nil, false + } + return o.Sharing, true +} + +// HasSharing returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) HasSharing() bool { + if o != nil && o.Sharing != nil { + return true + } + + return false +} + +// SetSharing gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig and assigns it to the Sharing field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetSharing(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) { + o.Sharing = &v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CloudFeature != nil { + toSerialize["cloudFeature"] = o.CloudFeature + } + if o.DeploymentType != nil { + toSerialize["deploymentType"] = o.DeploymentType + } + if o.Gcloud != nil { + toSerialize["gcloud"] = o.Gcloud + } + if o.Sharing != nil { + toSerialize["sharing"] = o.Sharing + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go new file mode 100644 index 0000000..a1e057b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus PoolStatus defines the observed state of Pool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus struct { + // Conditions is an array of current observed pool conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go new file mode 100644 index 0000000..12a7061 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService struct { + // AllowedIds is the list of Ids that are allowed to connect to the private endpoint service, only can be configured when the access type is private, private endpoint service will be disabled if the whitelist is empty. + AllowedIds []string `json:"allowedIds,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService{} + return &this +} + +// GetAllowedIds returns the AllowedIds field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) GetAllowedIds() []string { + if o == nil || o.AllowedIds == nil { + var ret []string + return ret + } + return o.AllowedIds +} + +// GetAllowedIdsOk returns a tuple with the AllowedIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) GetAllowedIdsOk() ([]string, bool) { + if o == nil || o.AllowedIds == nil { + return nil, false + } + return o.AllowedIds, true +} + +// HasAllowedIds returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) HasAllowedIds() bool { + if o != nil && o.AllowedIds != nil { + return true + } + + return false +} + +// SetAllowedIds gets a reference to the given []string and assigns it to the AllowedIds field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) SetAllowedIds(v []string) { + o.AllowedIds = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AllowedIds != nil { + toSerialize["allowedIds"] = o.AllowedIds + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go new file mode 100644 index 0000000..f0c407f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId struct { + // Id is the identifier of private service It is endpoint service name in AWS, psc attachment id in GCP, private service alias in Azure + Id *string `json:"id,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceIdWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceIdWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) GetId() string { + if o == nil || o.Id == nil { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) GetIdOk() (*string, bool) { + if o == nil || o.Id == nil { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) HasId() bool { + if o != nil && o.Id != nil { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) SetId(v string) { + o.Id = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go new file mode 100644 index 0000000..edebc35 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig struct { + // Amqp controls whether to enable Amqp protocol in brokers + Amqp map[string]interface{} `json:"amqp,omitempty"` + // Kafka controls whether to enable Kafka protocol in brokers + Kafka map[string]interface{} `json:"kafka,omitempty"` + // Mqtt controls whether to enable mqtt protocol in brokers + Mqtt map[string]interface{} `json:"mqtt,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig{} + return &this +} + +// GetAmqp returns the Amqp field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetAmqp() map[string]interface{} { + if o == nil || o.Amqp == nil { + var ret map[string]interface{} + return ret + } + return o.Amqp +} + +// GetAmqpOk returns a tuple with the Amqp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetAmqpOk() (map[string]interface{}, bool) { + if o == nil || o.Amqp == nil { + return nil, false + } + return o.Amqp, true +} + +// HasAmqp returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) HasAmqp() bool { + if o != nil && o.Amqp != nil { + return true + } + + return false +} + +// SetAmqp gets a reference to the given map[string]interface{} and assigns it to the Amqp field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) SetAmqp(v map[string]interface{}) { + o.Amqp = v +} + +// GetKafka returns the Kafka field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetKafka() map[string]interface{} { + if o == nil || o.Kafka == nil { + var ret map[string]interface{} + return ret + } + return o.Kafka +} + +// GetKafkaOk returns a tuple with the Kafka field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetKafkaOk() (map[string]interface{}, bool) { + if o == nil || o.Kafka == nil { + return nil, false + } + return o.Kafka, true +} + +// HasKafka returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) HasKafka() bool { + if o != nil && o.Kafka != nil { + return true + } + + return false +} + +// SetKafka gets a reference to the given map[string]interface{} and assigns it to the Kafka field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) SetKafka(v map[string]interface{}) { + o.Kafka = v +} + +// GetMqtt returns the Mqtt field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetMqtt() map[string]interface{} { + if o == nil || o.Mqtt == nil { + var ret map[string]interface{} + return ret + } + return o.Mqtt +} + +// GetMqttOk returns a tuple with the Mqtt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) GetMqttOk() (map[string]interface{}, bool) { + if o == nil || o.Mqtt == nil { + return nil, false + } + return o.Mqtt, true +} + +// HasMqtt returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) HasMqtt() bool { + if o != nil && o.Mqtt != nil { + return true + } + + return false +} + +// SetMqtt gets a reference to the given map[string]interface{} and assigns it to the Mqtt field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) SetMqtt(v map[string]interface{}) { + o.Mqtt = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Amqp != nil { + toSerialize["amqp"] = o.Amqp + } + if o.Kafka != nil { + toSerialize["kafka"] = o.Kafka + } + if o.Mqtt != nil { + toSerialize["mqtt"] = o.Mqtt + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go new file mode 100644 index 0000000..92c72a6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster PulsarCluster +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go new file mode 100644 index 0000000..d0a8db6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus struct { + // ReadyReplicas is the number of ready servers in the cluster + ReadyReplicas *int32 `json:"readyReplicas,omitempty"` + // Replicas is the number of servers in the cluster + Replicas *int32 `json:"replicas,omitempty"` + // UpdatedReplicas is the number of servers that has been updated to the latest configuration + UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus{} + return &this +} + +// GetReadyReplicas returns the ReadyReplicas field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReadyReplicas() int32 { + if o == nil || o.ReadyReplicas == nil { + var ret int32 + return ret + } + return *o.ReadyReplicas +} + +// GetReadyReplicasOk returns a tuple with the ReadyReplicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReadyReplicasOk() (*int32, bool) { + if o == nil || o.ReadyReplicas == nil { + return nil, false + } + return o.ReadyReplicas, true +} + +// HasReadyReplicas returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) HasReadyReplicas() bool { + if o != nil && o.ReadyReplicas != nil { + return true + } + + return false +} + +// SetReadyReplicas gets a reference to the given int32 and assigns it to the ReadyReplicas field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) SetReadyReplicas(v int32) { + o.ReadyReplicas = &v +} + +// GetReplicas returns the Replicas field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReplicas() int32 { + if o == nil || o.Replicas == nil { + var ret int32 + return ret + } + return *o.Replicas +} + +// GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetReplicasOk() (*int32, bool) { + if o == nil || o.Replicas == nil { + return nil, false + } + return o.Replicas, true +} + +// HasReplicas returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) HasReplicas() bool { + if o != nil && o.Replicas != nil { + return true + } + + return false +} + +// SetReplicas gets a reference to the given int32 and assigns it to the Replicas field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) SetReplicas(v int32) { + o.Replicas = &v +} + +// GetUpdatedReplicas returns the UpdatedReplicas field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetUpdatedReplicas() int32 { + if o == nil || o.UpdatedReplicas == nil { + var ret int32 + return ret + } + return *o.UpdatedReplicas +} + +// GetUpdatedReplicasOk returns a tuple with the UpdatedReplicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) GetUpdatedReplicasOk() (*int32, bool) { + if o == nil || o.UpdatedReplicas == nil { + return nil, false + } + return o.UpdatedReplicas, true +} + +// HasUpdatedReplicas returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) HasUpdatedReplicas() bool { + if o != nil && o.UpdatedReplicas != nil { + return true + } + + return false +} + +// SetUpdatedReplicas gets a reference to the given int32 and assigns it to the UpdatedReplicas field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) SetUpdatedReplicas(v int32) { + o.UpdatedReplicas = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ReadyReplicas != nil { + toSerialize["readyReplicas"] = o.ReadyReplicas + } + if o.Replicas != nil { + toSerialize["replicas"] = o.Replicas + } + if o.UpdatedReplicas != nil { + toSerialize["updatedReplicas"] = o.UpdatedReplicas + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go new file mode 100644 index 0000000..8208e19 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go new file mode 100644 index 0000000..423de15 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go @@ -0,0 +1,567 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec PulsarClusterSpec defines the desired state of PulsarCluster +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec struct { + BookKeeperSetRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference `json:"bookKeeperSetRef,omitempty"` + Bookkeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper `json:"bookkeeper,omitempty"` + Broker ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker `json:"broker"` + Config *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config `json:"config,omitempty"` + // Name to display to our users + DisplayName *string `json:"displayName,omitempty"` + EndpointAccess []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess `json:"endpointAccess,omitempty"` + InstanceName string `json:"instanceName"` + Location string `json:"location"` + MaintenanceWindow *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow `json:"maintenanceWindow,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + ReleaseChannel *string `json:"releaseChannel,omitempty"` + ServiceEndpoints []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint `json:"serviceEndpoints,omitempty"` + Tolerations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration `json:"tolerations,omitempty"` + ZooKeeperSetRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference `json:"zooKeeperSetRef,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec(broker ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker, instanceName string, location string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec{} + this.Broker = broker + this.InstanceName = instanceName + this.Location = location + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec{} + return &this +} + +// GetBookKeeperSetRef returns the BookKeeperSetRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference { + if o == nil || o.BookKeeperSetRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference + return ret + } + return *o.BookKeeperSetRef +} + +// GetBookKeeperSetRefOk returns a tuple with the BookKeeperSetRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference, bool) { + if o == nil || o.BookKeeperSetRef == nil { + return nil, false + } + return o.BookKeeperSetRef, true +} + +// HasBookKeeperSetRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasBookKeeperSetRef() bool { + if o != nil && o.BookKeeperSetRef != nil { + return true + } + + return false +} + +// SetBookKeeperSetRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference and assigns it to the BookKeeperSetRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetBookKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference) { + o.BookKeeperSetRef = &v +} + +// GetBookkeeper returns the Bookkeeper field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookkeeper() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper { + if o == nil || o.Bookkeeper == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper + return ret + } + return *o.Bookkeeper +} + +// GetBookkeeperOk returns a tuple with the Bookkeeper field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBookkeeperOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper, bool) { + if o == nil || o.Bookkeeper == nil { + return nil, false + } + return o.Bookkeeper, true +} + +// HasBookkeeper returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasBookkeeper() bool { + if o != nil && o.Bookkeeper != nil { + return true + } + + return false +} + +// SetBookkeeper gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper and assigns it to the Bookkeeper field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetBookkeeper(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper) { + o.Bookkeeper = &v +} + +// GetBroker returns the Broker field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBroker() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker + return ret + } + + return o.Broker +} + +// GetBrokerOk returns a tuple with the Broker field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetBrokerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker, bool) { + if o == nil { + return nil, false + } + return &o.Broker, true +} + +// SetBroker sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetBroker(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) { + o.Broker = v +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetConfig() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config { + if o == nil || o.Config == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetConfigOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config, bool) { + if o == nil || o.Config == nil { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasConfig() bool { + if o != nil && o.Config != nil { + return true + } + + return false +} + +// SetConfig gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config and assigns it to the Config field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetConfig(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) { + o.Config = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEndpointAccess returns the EndpointAccess field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetEndpointAccess() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess { + if o == nil || o.EndpointAccess == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess + return ret + } + return o.EndpointAccess +} + +// GetEndpointAccessOk returns a tuple with the EndpointAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetEndpointAccessOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess, bool) { + if o == nil || o.EndpointAccess == nil { + return nil, false + } + return o.EndpointAccess, true +} + +// HasEndpointAccess returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasEndpointAccess() bool { + if o != nil && o.EndpointAccess != nil { + return true + } + + return false +} + +// SetEndpointAccess gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess and assigns it to the EndpointAccess field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetEndpointAccess(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess) { + o.EndpointAccess = v +} + +// GetInstanceName returns the InstanceName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetInstanceName() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceName +} + +// GetInstanceNameOk returns a tuple with the InstanceName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetInstanceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceName, true +} + +// SetInstanceName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetInstanceName(v string) { + o.InstanceName = v +} + +// GetLocation returns the Location field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetLocation(v string) { + o.Location = v +} + +// GetMaintenanceWindow returns the MaintenanceWindow field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetMaintenanceWindow() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow { + if o == nil || o.MaintenanceWindow == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow + return ret + } + return *o.MaintenanceWindow +} + +// GetMaintenanceWindowOk returns a tuple with the MaintenanceWindow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetMaintenanceWindowOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow, bool) { + if o == nil || o.MaintenanceWindow == nil { + return nil, false + } + return o.MaintenanceWindow, true +} + +// HasMaintenanceWindow returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasMaintenanceWindow() bool { + if o != nil && o.MaintenanceWindow != nil { + return true + } + + return false +} + +// SetMaintenanceWindow gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow and assigns it to the MaintenanceWindow field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetMaintenanceWindow(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow) { + o.MaintenanceWindow = &v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetReleaseChannel returns the ReleaseChannel field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetReleaseChannel() string { + if o == nil || o.ReleaseChannel == nil { + var ret string + return ret + } + return *o.ReleaseChannel +} + +// GetReleaseChannelOk returns a tuple with the ReleaseChannel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetReleaseChannelOk() (*string, bool) { + if o == nil || o.ReleaseChannel == nil { + return nil, false + } + return o.ReleaseChannel, true +} + +// HasReleaseChannel returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasReleaseChannel() bool { + if o != nil && o.ReleaseChannel != nil { + return true + } + + return false +} + +// SetReleaseChannel gets a reference to the given string and assigns it to the ReleaseChannel field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetReleaseChannel(v string) { + o.ReleaseChannel = &v +} + +// GetServiceEndpoints returns the ServiceEndpoints field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetServiceEndpoints() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint { + if o == nil || o.ServiceEndpoints == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint + return ret + } + return o.ServiceEndpoints +} + +// GetServiceEndpointsOk returns a tuple with the ServiceEndpoints field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetServiceEndpointsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint, bool) { + if o == nil || o.ServiceEndpoints == nil { + return nil, false + } + return o.ServiceEndpoints, true +} + +// HasServiceEndpoints returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasServiceEndpoints() bool { + if o != nil && o.ServiceEndpoints != nil { + return true + } + + return false +} + +// SetServiceEndpoints gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint and assigns it to the ServiceEndpoints field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetServiceEndpoints(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) { + o.ServiceEndpoints = v +} + +// GetTolerations returns the Tolerations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetTolerations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration { + if o == nil || o.Tolerations == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration + return ret + } + return o.Tolerations +} + +// GetTolerationsOk returns a tuple with the Tolerations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetTolerationsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration, bool) { + if o == nil || o.Tolerations == nil { + return nil, false + } + return o.Tolerations, true +} + +// HasTolerations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasTolerations() bool { + if o != nil && o.Tolerations != nil { + return true + } + + return false +} + +// SetTolerations gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration and assigns it to the Tolerations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetTolerations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) { + o.Tolerations = v +} + +// GetZooKeeperSetRef returns the ZooKeeperSetRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetZooKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference { + if o == nil || o.ZooKeeperSetRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference + return ret + } + return *o.ZooKeeperSetRef +} + +// GetZooKeeperSetRefOk returns a tuple with the ZooKeeperSetRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) GetZooKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference, bool) { + if o == nil || o.ZooKeeperSetRef == nil { + return nil, false + } + return o.ZooKeeperSetRef, true +} + +// HasZooKeeperSetRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) HasZooKeeperSetRef() bool { + if o != nil && o.ZooKeeperSetRef != nil { + return true + } + + return false +} + +// SetZooKeeperSetRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference and assigns it to the ZooKeeperSetRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) SetZooKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) { + o.ZooKeeperSetRef = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.BookKeeperSetRef != nil { + toSerialize["bookKeeperSetRef"] = o.BookKeeperSetRef + } + if o.Bookkeeper != nil { + toSerialize["bookkeeper"] = o.Bookkeeper + } + if true { + toSerialize["broker"] = o.Broker + } + if o.Config != nil { + toSerialize["config"] = o.Config + } + if o.DisplayName != nil { + toSerialize["displayName"] = o.DisplayName + } + if o.EndpointAccess != nil { + toSerialize["endpointAccess"] = o.EndpointAccess + } + if true { + toSerialize["instanceName"] = o.InstanceName + } + if true { + toSerialize["location"] = o.Location + } + if o.MaintenanceWindow != nil { + toSerialize["maintenanceWindow"] = o.MaintenanceWindow + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.ReleaseChannel != nil { + toSerialize["releaseChannel"] = o.ReleaseChannel + } + if o.ServiceEndpoints != nil { + toSerialize["serviceEndpoints"] = o.ServiceEndpoints + } + if o.Tolerations != nil { + toSerialize["tolerations"] = o.Tolerations + } + if o.ZooKeeperSetRef != nil { + toSerialize["zooKeeperSetRef"] = o.ZooKeeperSetRef + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go new file mode 100644 index 0000000..6684569 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go @@ -0,0 +1,374 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus PulsarClusterStatus defines the observed state of PulsarCluster +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus struct { + Bookkeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"bookkeeper,omitempty"` + Broker *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"broker,omitempty"` + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // Deployment type set via associated pool + DeploymentType *string `json:"deploymentType,omitempty"` + // Instance type, i.e. serverless or default + InstanceType *string `json:"instanceType,omitempty"` + Oxia *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"oxia,omitempty"` + RbacStatus *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus `json:"rbacStatus,omitempty"` + Zookeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"zookeeper,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus{} + return &this +} + +// GetBookkeeper returns the Bookkeeper field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBookkeeper() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + if o == nil || o.Bookkeeper == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus + return ret + } + return *o.Bookkeeper +} + +// GetBookkeeperOk returns a tuple with the Bookkeeper field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBookkeeperOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool) { + if o == nil || o.Bookkeeper == nil { + return nil, false + } + return o.Bookkeeper, true +} + +// HasBookkeeper returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasBookkeeper() bool { + if o != nil && o.Bookkeeper != nil { + return true + } + + return false +} + +// SetBookkeeper gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus and assigns it to the Bookkeeper field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetBookkeeper(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) { + o.Bookkeeper = &v +} + +// GetBroker returns the Broker field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBroker() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + if o == nil || o.Broker == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus + return ret + } + return *o.Broker +} + +// GetBrokerOk returns a tuple with the Broker field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetBrokerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool) { + if o == nil || o.Broker == nil { + return nil, false + } + return o.Broker, true +} + +// HasBroker returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasBroker() bool { + if o != nil && o.Broker != nil { + return true + } + + return false +} + +// SetBroker gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus and assigns it to the Broker field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetBroker(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) { + o.Broker = &v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetDeploymentType returns the DeploymentType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetDeploymentType() string { + if o == nil || o.DeploymentType == nil { + var ret string + return ret + } + return *o.DeploymentType +} + +// GetDeploymentTypeOk returns a tuple with the DeploymentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetDeploymentTypeOk() (*string, bool) { + if o == nil || o.DeploymentType == nil { + return nil, false + } + return o.DeploymentType, true +} + +// HasDeploymentType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasDeploymentType() bool { + if o != nil && o.DeploymentType != nil { + return true + } + + return false +} + +// SetDeploymentType gets a reference to the given string and assigns it to the DeploymentType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetDeploymentType(v string) { + o.DeploymentType = &v +} + +// GetInstanceType returns the InstanceType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetInstanceType() string { + if o == nil || o.InstanceType == nil { + var ret string + return ret + } + return *o.InstanceType +} + +// GetInstanceTypeOk returns a tuple with the InstanceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetInstanceTypeOk() (*string, bool) { + if o == nil || o.InstanceType == nil { + return nil, false + } + return o.InstanceType, true +} + +// HasInstanceType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasInstanceType() bool { + if o != nil && o.InstanceType != nil { + return true + } + + return false +} + +// SetInstanceType gets a reference to the given string and assigns it to the InstanceType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetInstanceType(v string) { + o.InstanceType = &v +} + +// GetOxia returns the Oxia field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetOxia() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + if o == nil || o.Oxia == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus + return ret + } + return *o.Oxia +} + +// GetOxiaOk returns a tuple with the Oxia field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetOxiaOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool) { + if o == nil || o.Oxia == nil { + return nil, false + } + return o.Oxia, true +} + +// HasOxia returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasOxia() bool { + if o != nil && o.Oxia != nil { + return true + } + + return false +} + +// SetOxia gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus and assigns it to the Oxia field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetOxia(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) { + o.Oxia = &v +} + +// GetRbacStatus returns the RbacStatus field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetRbacStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus { + if o == nil || o.RbacStatus == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus + return ret + } + return *o.RbacStatus +} + +// GetRbacStatusOk returns a tuple with the RbacStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetRbacStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus, bool) { + if o == nil || o.RbacStatus == nil { + return nil, false + } + return o.RbacStatus, true +} + +// HasRbacStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasRbacStatus() bool { + if o != nil && o.RbacStatus != nil { + return true + } + + return false +} + +// SetRbacStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus and assigns it to the RbacStatus field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetRbacStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) { + o.RbacStatus = &v +} + +// GetZookeeper returns the Zookeeper field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetZookeeper() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus { + if o == nil || o.Zookeeper == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus + return ret + } + return *o.Zookeeper +} + +// GetZookeeperOk returns a tuple with the Zookeeper field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) GetZookeeperOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus, bool) { + if o == nil || o.Zookeeper == nil { + return nil, false + } + return o.Zookeeper, true +} + +// HasZookeeper returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) HasZookeeper() bool { + if o != nil && o.Zookeeper != nil { + return true + } + + return false +} + +// SetZookeeper gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus and assigns it to the Zookeeper field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) SetZookeeper(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus) { + o.Zookeeper = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Bookkeeper != nil { + toSerialize["bookkeeper"] = o.Bookkeeper + } + if o.Broker != nil { + toSerialize["broker"] = o.Broker + } + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.DeploymentType != nil { + toSerialize["deploymentType"] = o.DeploymentType + } + if o.InstanceType != nil { + toSerialize["instanceType"] = o.InstanceType + } + if o.Oxia != nil { + toSerialize["oxia"] = o.Oxia + } + if o.RbacStatus != nil { + toSerialize["rbacStatus"] = o.RbacStatus + } + if o.Zookeeper != nil { + toSerialize["zookeeper"] = o.Zookeeper + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go new file mode 100644 index 0000000..44e8680 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway PulsarGateway comprises resources for exposing pulsar endpoint, including the Ingress Gateway in PoolMember and corresponding Private Endpoint Service in Cloud Provider. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go new file mode 100644 index 0000000..d26fcd3 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go new file mode 100644 index 0000000..68ed6a3 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec struct { + // Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public. + Access *string `json:"access,omitempty"` + // Domains is the list of domain suffix that the pulsar gateway will serve. This is automatically generated based on the PulsarGateway name and PoolMember domain. + Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + PrivateService *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService `json:"privateService,omitempty"` + // TopologyAware is the configuration of the topology aware feature of the pulsar gateway. + TopologyAware map[string]interface{} `json:"topologyAware,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec{} + return &this +} + +// GetAccess returns the Access field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetAccess() string { + if o == nil || o.Access == nil { + var ret string + return ret + } + return *o.Access +} + +// GetAccessOk returns a tuple with the Access field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetAccessOk() (*string, bool) { + if o == nil || o.Access == nil { + return nil, false + } + return o.Access, true +} + +// HasAccess returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasAccess() bool { + if o != nil && o.Access != nil { + return true + } + + return false +} + +// SetAccess gets a reference to the given string and assigns it to the Access field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetAccess(v string) { + o.Access = &v +} + +// GetDomains returns the Domains field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetDomains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain { + if o == nil || o.Domains == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain + return ret + } + return o.Domains +} + +// GetDomainsOk returns a tuple with the Domains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetDomainsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain, bool) { + if o == nil || o.Domains == nil { + return nil, false + } + return o.Domains, true +} + +// HasDomains returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasDomains() bool { + if o != nil && o.Domains != nil { + return true + } + + return false +} + +// SetDomains gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain and assigns it to the Domains field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetDomains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) { + o.Domains = v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetPrivateService returns the PrivateService field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPrivateService() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService { + if o == nil || o.PrivateService == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService + return ret + } + return *o.PrivateService +} + +// GetPrivateServiceOk returns a tuple with the PrivateService field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetPrivateServiceOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService, bool) { + if o == nil || o.PrivateService == nil { + return nil, false + } + return o.PrivateService, true +} + +// HasPrivateService returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasPrivateService() bool { + if o != nil && o.PrivateService != nil { + return true + } + + return false +} + +// SetPrivateService gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService and assigns it to the PrivateService field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetPrivateService(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService) { + o.PrivateService = &v +} + +// GetTopologyAware returns the TopologyAware field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetTopologyAware() map[string]interface{} { + if o == nil || o.TopologyAware == nil { + var ret map[string]interface{} + return ret + } + return o.TopologyAware +} + +// GetTopologyAwareOk returns a tuple with the TopologyAware field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) GetTopologyAwareOk() (map[string]interface{}, bool) { + if o == nil || o.TopologyAware == nil { + return nil, false + } + return o.TopologyAware, true +} + +// HasTopologyAware returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) HasTopologyAware() bool { + if o != nil && o.TopologyAware != nil { + return true + } + + return false +} + +// SetTopologyAware gets a reference to the given map[string]interface{} and assigns it to the TopologyAware field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) SetTopologyAware(v map[string]interface{}) { + o.TopologyAware = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Access != nil { + toSerialize["access"] = o.Access + } + if o.Domains != nil { + toSerialize["domains"] = o.Domains + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.PrivateService != nil { + toSerialize["privateService"] = o.PrivateService + } + if o.TopologyAware != nil { + toSerialize["topologyAware"] = o.TopologyAware + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go new file mode 100644 index 0000000..9b8eeca --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go @@ -0,0 +1,187 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // ObservedGeneration is the most recent generation observed by the pulsargateway controller. + ObservedGeneration int64 `json:"observedGeneration"` + // PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private. + PrivateServiceIds []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId `json:"privateServiceIds,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus(observedGeneration int64) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus{} + this.ObservedGeneration = observedGeneration + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetObservedGeneration returns the ObservedGeneration field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetObservedGeneration() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetObservedGenerationOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObservedGeneration, true +} + +// SetObservedGeneration sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) SetObservedGeneration(v int64) { + o.ObservedGeneration = v +} + +// GetPrivateServiceIds returns the PrivateServiceIds field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetPrivateServiceIds() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId { + if o == nil || o.PrivateServiceIds == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId + return ret + } + return o.PrivateServiceIds +} + +// GetPrivateServiceIdsOk returns a tuple with the PrivateServiceIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) GetPrivateServiceIdsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId, bool) { + if o == nil || o.PrivateServiceIds == nil { + return nil, false + } + return o.PrivateServiceIds, true +} + +// HasPrivateServiceIds returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) HasPrivateServiceIds() bool { + if o != nil && o.PrivateServiceIds != nil { + return true + } + + return false +} + +// SetPrivateServiceIds gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId and assigns it to the PrivateServiceIds field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) SetPrivateServiceIds(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateServiceId) { + o.PrivateServiceIds = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if true { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if o.PrivateServiceIds != nil { + toSerialize["privateServiceIds"] = o.PrivateServiceIds + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go new file mode 100644 index 0000000..a5158e6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance PulsarInstance +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go new file mode 100644 index 0000000..76b9053 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth PulsarInstanceAuth defines auth section of PulsarInstance +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth struct { + // ApiKey configuration + Apikey map[string]interface{} `json:"apikey,omitempty"` + Oauth2 *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config `json:"oauth2,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuthWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuthWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth{} + return &this +} + +// GetApikey returns the Apikey field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetApikey() map[string]interface{} { + if o == nil || o.Apikey == nil { + var ret map[string]interface{} + return ret + } + return o.Apikey +} + +// GetApikeyOk returns a tuple with the Apikey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetApikeyOk() (map[string]interface{}, bool) { + if o == nil || o.Apikey == nil { + return nil, false + } + return o.Apikey, true +} + +// HasApikey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) HasApikey() bool { + if o != nil && o.Apikey != nil { + return true + } + + return false +} + +// SetApikey gets a reference to the given map[string]interface{} and assigns it to the Apikey field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) SetApikey(v map[string]interface{}) { + o.Apikey = v +} + +// GetOauth2 returns the Oauth2 field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetOauth2() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config { + if o == nil || o.Oauth2 == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config + return ret + } + return *o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) GetOauth2Ok() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config, bool) { + if o == nil || o.Oauth2 == nil { + return nil, false + } + return o.Oauth2, true +} + +// HasOauth2 returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) HasOauth2() bool { + if o != nil && o.Oauth2 != nil { + return true + } + + return false +} + +// SetOauth2 gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config and assigns it to the Oauth2 field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) SetOauth2(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config) { + o.Oauth2 = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Apikey != nil { + toSerialize["apikey"] = o.Apikey + } + if o.Oauth2 != nil { + toSerialize["oauth2"] = o.Oauth2 + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go new file mode 100644 index 0000000..db0e375 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go new file mode 100644 index 0000000..13d6a5d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go @@ -0,0 +1,259 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec PulsarInstanceSpec defines the desired state of PulsarInstance +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec struct { + Auth *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth `json:"auth,omitempty"` + // AvailabilityMode decides whether pods of the same type in pulsar should be in one zone or multiple zones + AvailabilityMode string `json:"availabilityMode"` + // Plan is the subscription plan, will create a stripe subscription if not empty deprecated: 1.16 + Plan *string `json:"plan,omitempty"` + PoolRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef `json:"poolRef,omitempty"` + // Type defines the instance specialization type: - standard: a standard deployment of Pulsar, BookKeeper, and ZooKeeper. - dedicated: a dedicated deployment of classic engine or ursa engine. - serverless: a serverless deployment of Pulsar, shared BookKeeper, and shared oxia. - byoc: bring your own cloud. + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec(availabilityMode string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec{} + this.AvailabilityMode = availabilityMode + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec{} + return &this +} + +// GetAuth returns the Auth field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAuth() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth { + if o == nil || o.Auth == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth + return ret + } + return *o.Auth +} + +// GetAuthOk returns a tuple with the Auth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAuthOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth, bool) { + if o == nil || o.Auth == nil { + return nil, false + } + return o.Auth, true +} + +// HasAuth returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasAuth() bool { + if o != nil && o.Auth != nil { + return true + } + + return false +} + +// SetAuth gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth and assigns it to the Auth field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetAuth(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth) { + o.Auth = &v +} + +// GetAvailabilityMode returns the AvailabilityMode field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAvailabilityMode() string { + if o == nil { + var ret string + return ret + } + + return o.AvailabilityMode +} + +// GetAvailabilityModeOk returns a tuple with the AvailabilityMode field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetAvailabilityModeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AvailabilityMode, true +} + +// SetAvailabilityMode sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetAvailabilityMode(v string) { + o.AvailabilityMode = v +} + +// GetPlan returns the Plan field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPlan() string { + if o == nil || o.Plan == nil { + var ret string + return ret + } + return *o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPlanOk() (*string, bool) { + if o == nil || o.Plan == nil { + return nil, false + } + return o.Plan, true +} + +// HasPlan returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasPlan() bool { + if o != nil && o.Plan != nil { + return true + } + + return false +} + +// SetPlan gets a reference to the given string and assigns it to the Plan field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetPlan(v string) { + o.Plan = &v +} + +// GetPoolRef returns the PoolRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPoolRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef { + if o == nil || o.PoolRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef + return ret + } + return *o.PoolRef +} + +// GetPoolRefOk returns a tuple with the PoolRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef, bool) { + if o == nil || o.PoolRef == nil { + return nil, false + } + return o.PoolRef, true +} + +// HasPoolRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasPoolRef() bool { + if o != nil && o.PoolRef != nil { + return true + } + + return false +} + +// SetPoolRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef and assigns it to the PoolRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) { + o.PoolRef = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Auth != nil { + toSerialize["auth"] = o.Auth + } + if true { + toSerialize["availabilityMode"] = o.AvailabilityMode + } + if o.Plan != nil { + toSerialize["plan"] = o.Plan + } + if o.PoolRef != nil { + toSerialize["poolRef"] = o.PoolRef + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go new file mode 100644 index 0000000..cf7a99e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go @@ -0,0 +1,149 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus PulsarInstanceStatus defines the observed state of PulsarInstance +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus struct { + Auth ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth `json:"auth"` + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus(auth ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus{} + this.Auth = auth + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus{} + return &this +} + +// GetAuth returns the Auth field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetAuth() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth + return ret + } + + return o.Auth +} + +// GetAuthOk returns a tuple with the Auth field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetAuthOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth, bool) { + if o == nil { + return nil, false + } + return &o.Auth, true +} + +// SetAuth sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) SetAuth(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) { + o.Auth = v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["auth"] = o.Auth + } + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go new file mode 100644 index 0000000..93bcf9e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth struct { + Oauth2 ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 `json:"oauth2"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth(oauth2 ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth{} + this.Oauth2 = oauth2 + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth{} + return &this +} + +// GetOauth2 returns the Oauth2 field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetOauth2() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 + return ret + } + + return o.Oauth2 +} + +// GetOauth2Ok returns a tuple with the Oauth2 field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetOauth2Ok() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2, bool) { + if o == nil { + return nil, false + } + return &o.Oauth2, true +} + +// SetOauth2 sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) SetOauth2(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) { + o.Oauth2 = v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["oauth2"] = o.Oauth2 + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go new file mode 100644 index 0000000..6e9c0fd --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 struct { + Audience string `json:"audience"` + IssuerURL string `json:"issuerURL"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2(audience string, issuerURL string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2{} + this.Audience = audience + this.IssuerURL = issuerURL + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2WithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2WithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2{} + return &this +} + +// GetAudience returns the Audience field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetAudience() string { + if o == nil { + var ret string + return ret + } + + return o.Audience +} + +// GetAudienceOk returns a tuple with the Audience field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetAudienceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Audience, true +} + +// SetAudience sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) SetAudience(v string) { + o.Audience = v +} + +// GetIssuerURL returns the IssuerURL field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetIssuerURL() string { + if o == nil { + var ret string + return ret + } + + return o.IssuerURL +} + +// GetIssuerURLOk returns a tuple with the IssuerURL field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) GetIssuerURLOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.IssuerURL, true +} + +// SetIssuerURL sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) SetIssuerURL(v string) { + o.IssuerURL = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["audience"] = o.Audience + } + if true { + toSerialize["issuerURL"] = o.IssuerURL + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go new file mode 100644 index 0000000..4411126 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go @@ -0,0 +1,185 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint struct { + DnsName string `json:"dnsName"` + // Gateway is the name of the PulsarGateway to use for the endpoint, will be empty if endpointAccess is not configured. + Gateway *string `json:"gateway,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint(dnsName string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint{} + this.DnsName = dnsName + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpointWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpointWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint{} + return &this +} + +// GetDnsName returns the DnsName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetDnsName() string { + if o == nil { + var ret string + return ret + } + + return o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetDnsNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DnsName, true +} + +// SetDnsName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) SetDnsName(v string) { + o.DnsName = v +} + +// GetGateway returns the Gateway field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetGateway() string { + if o == nil || o.Gateway == nil { + var ret string + return ret + } + return *o.Gateway +} + +// GetGatewayOk returns a tuple with the Gateway field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetGatewayOk() (*string, bool) { + if o == nil || o.Gateway == nil { + return nil, false + } + return o.Gateway, true +} + +// HasGateway returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) HasGateway() bool { + if o != nil && o.Gateway != nil { + return true + } + + return false +} + +// SetGateway gets a reference to the given string and assigns it to the Gateway field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) SetGateway(v string) { + o.Gateway = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["dnsName"] = o.DnsName + } + if o.Gateway != nil { + toSerialize["gateway"] = o.Gateway + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go new file mode 100644 index 0000000..8abba83 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go @@ -0,0 +1,191 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus struct { + FailedClusterRoles []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole `json:"failedClusterRoles,omitempty"` + FailedRoleBindings []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding `json:"failedRoleBindings,omitempty"` + FailedRoles []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole `json:"failedRoles,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus{} + return &this +} + +// GetFailedClusterRoles returns the FailedClusterRoles field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedClusterRoles() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole { + if o == nil || o.FailedClusterRoles == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole + return ret + } + return o.FailedClusterRoles +} + +// GetFailedClusterRolesOk returns a tuple with the FailedClusterRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedClusterRolesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole, bool) { + if o == nil || o.FailedClusterRoles == nil { + return nil, false + } + return o.FailedClusterRoles, true +} + +// HasFailedClusterRoles returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) HasFailedClusterRoles() bool { + if o != nil && o.FailedClusterRoles != nil { + return true + } + + return false +} + +// SetFailedClusterRoles gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole and assigns it to the FailedClusterRoles field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) SetFailedClusterRoles(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole) { + o.FailedClusterRoles = v +} + +// GetFailedRoleBindings returns the FailedRoleBindings field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRoleBindings() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding { + if o == nil || o.FailedRoleBindings == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding + return ret + } + return o.FailedRoleBindings +} + +// GetFailedRoleBindingsOk returns a tuple with the FailedRoleBindings field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRoleBindingsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding, bool) { + if o == nil || o.FailedRoleBindings == nil { + return nil, false + } + return o.FailedRoleBindings, true +} + +// HasFailedRoleBindings returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) HasFailedRoleBindings() bool { + if o != nil && o.FailedRoleBindings != nil { + return true + } + + return false +} + +// SetFailedRoleBindings gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding and assigns it to the FailedRoleBindings field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) SetFailedRoleBindings(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding) { + o.FailedRoleBindings = v +} + +// GetFailedRoles returns the FailedRoles field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRoles() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole { + if o == nil || o.FailedRoles == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole + return ret + } + return o.FailedRoles +} + +// GetFailedRolesOk returns a tuple with the FailedRoles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) GetFailedRolesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole, bool) { + if o == nil || o.FailedRoles == nil { + return nil, false + } + return o.FailedRoles, true +} + +// HasFailedRoles returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) HasFailedRoles() bool { + if o != nil && o.FailedRoles != nil { + return true + } + + return false +} + +// SetFailedRoles gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole and assigns it to the FailedRoles field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) SetFailedRoles(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole) { + o.FailedRoles = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.FailedClusterRoles != nil { + toSerialize["failedClusterRoles"] = o.FailedClusterRoles + } + if o.FailedRoleBindings != nil { + toSerialize["failedRoleBindings"] = o.FailedRoleBindings + } + if o.FailedRoles != nil { + toSerialize["failedRoles"] = o.FailedRoles + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go new file mode 100644 index 0000000..9998bee --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo struct { + Region string `json:"region"` + Zones []string `json:"zones"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo(region string, zones []string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo{} + this.Region = region + this.Zones = zones + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfoWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfoWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo{} + return &this +} + +// GetRegion returns the Region field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) SetRegion(v string) { + o.Region = v +} + +// GetZones returns the Zones field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetZones() []string { + if o == nil { + var ret []string + return ret + } + + return o.Zones +} + +// GetZonesOk returns a tuple with the Zones field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) GetZonesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Zones, true +} + +// SetZones sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) SetZones(v []string) { + o.Zones = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["region"] = o.Region + } + if true { + toSerialize["zones"] = o.Zones + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go new file mode 100644 index 0000000..3b189a9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role Role +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go new file mode 100644 index 0000000..a775d3f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding RoleBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go new file mode 100644 index 0000000..76aefb5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go @@ -0,0 +1,191 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition RoleBindingCondition Deprecated +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition struct { + Operator *int32 `json:"operator,omitempty"` + Srn *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn `json:"srn,omitempty"` + Type *int32 `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition{} + return &this +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetOperator() int32 { + if o == nil || o.Operator == nil { + var ret int32 + return ret + } + return *o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetOperatorOk() (*int32, bool) { + if o == nil || o.Operator == nil { + return nil, false + } + return o.Operator, true +} + +// HasOperator returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) HasOperator() bool { + if o != nil && o.Operator != nil { + return true + } + + return false +} + +// SetOperator gets a reference to the given int32 and assigns it to the Operator field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) SetOperator(v int32) { + o.Operator = &v +} + +// GetSrn returns the Srn field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetSrn() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn { + if o == nil || o.Srn == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn + return ret + } + return *o.Srn +} + +// GetSrnOk returns a tuple with the Srn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetSrnOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn, bool) { + if o == nil || o.Srn == nil { + return nil, false + } + return o.Srn, true +} + +// HasSrn returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) HasSrn() bool { + if o != nil && o.Srn != nil { + return true + } + + return false +} + +// SetSrn gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn and assigns it to the Srn field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) SetSrn(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) { + o.Srn = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetType() int32 { + if o == nil || o.Type == nil { + var ret int32 + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) GetTypeOk() (*int32, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given int32 and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) SetType(v int32) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Operator != nil { + toSerialize["operator"] = o.Operator + } + if o.Srn != nil { + toSerialize["srn"] = o.Srn + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go new file mode 100644 index 0000000..b74fc95 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go new file mode 100644 index 0000000..174f2df --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go @@ -0,0 +1,213 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec RoleBindingSpec defines the desired state of RoleBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec struct { + Cel *string `json:"cel,omitempty"` + ConditionGroup *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup `json:"conditionGroup,omitempty"` + RoleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef `json:"roleRef"` + Subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject `json:"subjects"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec(roleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec{} + this.RoleRef = roleRef + this.Subjects = subjects + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec{} + return &this +} + +// GetCel returns the Cel field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetCel() string { + if o == nil || o.Cel == nil { + var ret string + return ret + } + return *o.Cel +} + +// GetCelOk returns a tuple with the Cel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetCelOk() (*string, bool) { + if o == nil || o.Cel == nil { + return nil, false + } + return o.Cel, true +} + +// HasCel returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) HasCel() bool { + if o != nil && o.Cel != nil { + return true + } + + return false +} + +// SetCel gets a reference to the given string and assigns it to the Cel field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetCel(v string) { + o.Cel = &v +} + +// GetConditionGroup returns the ConditionGroup field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetConditionGroup() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup { + if o == nil || o.ConditionGroup == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup + return ret + } + return *o.ConditionGroup +} + +// GetConditionGroupOk returns a tuple with the ConditionGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetConditionGroupOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup, bool) { + if o == nil || o.ConditionGroup == nil { + return nil, false + } + return o.ConditionGroup, true +} + +// HasConditionGroup returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) HasConditionGroup() bool { + if o != nil && o.ConditionGroup != nil { + return true + } + + return false +} + +// SetConditionGroup gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup and assigns it to the ConditionGroup field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetConditionGroup(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup) { + o.ConditionGroup = &v +} + +// GetRoleRef returns the RoleRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetRoleRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef + return ret + } + + return o.RoleRef +} + +// GetRoleRefOk returns a tuple with the RoleRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetRoleRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef, bool) { + if o == nil { + return nil, false + } + return &o.RoleRef, true +} + +// SetRoleRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetRoleRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) { + o.RoleRef = v +} + +// GetSubjects returns the Subjects field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetSubjects() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject + return ret + } + + return o.Subjects +} + +// GetSubjectsOk returns a tuple with the Subjects field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) GetSubjectsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject, bool) { + if o == nil { + return nil, false + } + return o.Subjects, true +} + +// SetSubjects sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) SetSubjects(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) { + o.Subjects = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Cel != nil { + toSerialize["cel"] = o.Cel + } + if o.ConditionGroup != nil { + toSerialize["conditionGroup"] = o.ConditionGroup + } + if true { + toSerialize["roleRef"] = o.RoleRef + } + if true { + toSerialize["subjects"] = o.Subjects + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go new file mode 100644 index 0000000..ca55781 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus RoleBindingStatus defines the observed state of RoleBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // FailedClusters is an array of clusters which failed to apply the ClusterRole resources. + FailedClusters []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster `json:"failedClusters,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetFailedClusters returns the FailedClusters field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetFailedClusters() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster { + if o == nil || o.FailedClusters == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster + return ret + } + return o.FailedClusters +} + +// GetFailedClustersOk returns a tuple with the FailedClusters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) GetFailedClustersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster, bool) { + if o == nil || o.FailedClusters == nil { + return nil, false + } + return o.FailedClusters, true +} + +// HasFailedClusters returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) HasFailedClusters() bool { + if o != nil && o.FailedClusters != nil { + return true + } + + return false +} + +// SetFailedClusters gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster and assigns it to the FailedClusters field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) SetFailedClusters(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) { + o.FailedClusters = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.FailedClusters != nil { + toSerialize["failedClusters"] = o.FailedClusters + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go new file mode 100644 index 0000000..044d7ac --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition struct { + Role *string `json:"role,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinitionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinitionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition{} + return &this +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetRole() string { + if o == nil || o.Role == nil { + var ret string + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetRoleOk() (*string, bool) { + if o == nil || o.Role == nil { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) HasRole() bool { + if o != nil && o.Role != nil { + return true + } + + return false +} + +// SetRole gets a reference to the given string and assigns it to the Role field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) SetRole(v string) { + o.Role = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Role != nil { + toSerialize["role"] = o.Role + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go new file mode 100644 index 0000000..654251a --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go new file mode 100644 index 0000000..fa0af4f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go @@ -0,0 +1,170 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef struct { + ApiGroup string `json:"apiGroup"` + Kind string `json:"kind"` + Name string `json:"name"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef(apiGroup string, kind string, name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef{} + this.ApiGroup = apiGroup + this.Kind = kind + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef{} + return &this +} + +// GetApiGroup returns the ApiGroup field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetApiGroup() string { + if o == nil { + var ret string + return ret + } + + return o.ApiGroup +} + +// GetApiGroupOk returns a tuple with the ApiGroup field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetApiGroupOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiGroup, true +} + +// SetApiGroup sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) SetApiGroup(v string) { + o.ApiGroup = v +} + +// GetKind returns the Kind field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) SetName(v string) { + o.Name = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["apiGroup"] = o.ApiGroup + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go new file mode 100644 index 0000000..c0b0232 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec RoleSpec defines the desired state of Role +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec struct { + // Permissions Designed for general permission format SERVICE.RESOURCE.VERB + Permissions []string `json:"permissions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec{} + return &this +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) GetPermissions() []string { + if o == nil || o.Permissions == nil { + var ret []string + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) GetPermissionsOk() ([]string, bool) { + if o == nil || o.Permissions == nil { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) HasPermissions() bool { + if o != nil && o.Permissions != nil { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []string and assigns it to the Permissions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) SetPermissions(v []string) { + o.Permissions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Permissions != nil { + toSerialize["permissions"] = o.Permissions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go new file mode 100644 index 0000000..720e653 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus RoleStatus defines the observed state of Role +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // FailedClusters is an array of clusters which failed to apply the ClusterRole resources. + FailedClusters []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster `json:"failedClusters,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetFailedClusters returns the FailedClusters field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetFailedClusters() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster { + if o == nil || o.FailedClusters == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster + return ret + } + return o.FailedClusters +} + +// GetFailedClustersOk returns a tuple with the FailedClusters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) GetFailedClustersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster, bool) { + if o == nil || o.FailedClusters == nil { + return nil, false + } + return o.FailedClusters, true +} + +// HasFailedClusters returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) HasFailedClusters() bool { + if o != nil && o.FailedClusters != nil { + return true + } + + return false +} + +// SetFailedClusters gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster and assigns it to the FailedClusters field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) SetFailedClusters(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCluster) { + o.FailedClusters = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.FailedClusters != nil { + toSerialize["failedClusters"] = o.FailedClusters + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go new file mode 100644 index 0000000..25c974f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go @@ -0,0 +1,432 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret Secret +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // the value should be base64 encoded + Data *map[string]string `json:"data,omitempty"` + InstanceName string `json:"instanceName"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Location string `json:"location"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + Spec map[string]interface{} `json:"spec,omitempty"` + Status map[string]interface{} `json:"status,omitempty"` + Tolerations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration `json:"tolerations,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret(instanceName string, location string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret{} + this.InstanceName = instanceName + this.Location = location + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetData() map[string]string { + if o == nil || o.Data == nil { + var ret map[string]string + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetDataOk() (*map[string]string, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]string and assigns it to the Data field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetData(v map[string]string) { + o.Data = &v +} + +// GetInstanceName returns the InstanceName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetInstanceName() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceName +} + +// GetInstanceNameOk returns a tuple with the InstanceName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetInstanceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceName, true +} + +// SetInstanceName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetInstanceName(v string) { + o.InstanceName = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetKind(v string) { + o.Kind = &v +} + +// GetLocation returns the Location field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetLocation() string { + if o == nil { + var ret string + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetLocationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetLocation(v string) { + o.Location = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetSpec() map[string]interface{} { + if o == nil || o.Spec == nil { + var ret map[string]interface{} + return ret + } + return o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetSpecOk() (map[string]interface{}, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given map[string]interface{} and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetSpec(v map[string]interface{}) { + o.Spec = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetStatus() map[string]interface{} { + if o == nil || o.Status == nil { + var ret map[string]interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetStatusOk() (map[string]interface{}, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given map[string]interface{} and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetStatus(v map[string]interface{}) { + o.Status = v +} + +// GetTolerations returns the Tolerations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetTolerations() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration { + if o == nil || o.Tolerations == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration + return ret + } + return o.Tolerations +} + +// GetTolerationsOk returns a tuple with the Tolerations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) GetTolerationsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration, bool) { + if o == nil || o.Tolerations == nil { + return nil, false + } + return o.Tolerations, true +} + +// HasTolerations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) HasTolerations() bool { + if o != nil && o.Tolerations != nil { + return true + } + + return false +} + +// SetTolerations gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration and assigns it to the Tolerations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) SetTolerations(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) { + o.Tolerations = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + if true { + toSerialize["instanceName"] = o.InstanceName + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["location"] = o.Location + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Tolerations != nil { + toSerialize["tolerations"] = o.Tolerations + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go new file mode 100644 index 0000000..7cfd052 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go new file mode 100644 index 0000000..882d79b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference struct { + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference(name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go new file mode 100644 index 0000000..4146a41 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration SelfRegistration +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec `json:"spec,omitempty"` + // SelfRegistrationStatus defines the observed state of SelfRegistration + Status map[string]interface{} `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetStatus() map[string]interface{} { + if o == nil || o.Status == nil { + var ret map[string]interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) GetStatusOk() (map[string]interface{}, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given map[string]interface{} and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) SetStatus(v map[string]interface{}) { + o.Status = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go new file mode 100644 index 0000000..55bd652 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws struct { + RegistrationToken string `json:"registrationToken"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws(registrationToken string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws{} + this.RegistrationToken = registrationToken + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAwsWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAwsWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws{} + return &this +} + +// GetRegistrationToken returns the RegistrationToken field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) GetRegistrationToken() string { + if o == nil { + var ret string + return ret + } + + return o.RegistrationToken +} + +// GetRegistrationTokenOk returns a tuple with the RegistrationToken field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) GetRegistrationTokenOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RegistrationToken, true +} + +// SetRegistrationToken sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) SetRegistrationToken(v string) { + o.RegistrationToken = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["registrationToken"] = o.RegistrationToken + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go new file mode 100644 index 0000000..e44b13e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go @@ -0,0 +1,285 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec SelfRegistrationSpec defines the desired state of SelfRegistration +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec struct { + Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws `json:"aws,omitempty"` + DisplayName string `json:"displayName"` + Metadata *map[string]string `json:"metadata,omitempty"` + Stripe map[string]interface{} `json:"stripe,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger `json:"suger,omitempty"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec(displayName string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec{} + this.DisplayName = displayName + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec{} + return &this +} + +// GetAws returns the Aws field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetAws() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws { + if o == nil || o.Aws == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws + return ret + } + return *o.Aws +} + +// GetAwsOk returns a tuple with the Aws field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetAwsOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws, bool) { + if o == nil || o.Aws == nil { + return nil, false + } + return o.Aws, true +} + +// HasAws returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasAws() bool { + if o != nil && o.Aws != nil { + return true + } + + return false +} + +// SetAws gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws and assigns it to the Aws field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetAws(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws) { + o.Aws = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetMetadata() map[string]string { + if o == nil || o.Metadata == nil { + var ret map[string]string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetMetadataOk() (*map[string]string, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetMetadata(v map[string]string) { + o.Metadata = &v +} + +// GetStripe returns the Stripe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetStripe() map[string]interface{} { + if o == nil || o.Stripe == nil { + var ret map[string]interface{} + return ret + } + return o.Stripe +} + +// GetStripeOk returns a tuple with the Stripe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetStripeOk() (map[string]interface{}, bool) { + if o == nil || o.Stripe == nil { + return nil, false + } + return o.Stripe, true +} + +// HasStripe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasStripe() bool { + if o != nil && o.Stripe != nil { + return true + } + + return false +} + +// SetStripe gets a reference to the given map[string]interface{} and assigns it to the Stripe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetStripe(v map[string]interface{}) { + o.Stripe = v +} + +// GetSuger returns the Suger field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetSuger() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger { + if o == nil || o.Suger == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger + return ret + } + return *o.Suger +} + +// GetSugerOk returns a tuple with the Suger field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetSugerOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger, bool) { + if o == nil || o.Suger == nil { + return nil, false + } + return o.Suger, true +} + +// HasSuger returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) HasSuger() bool { + if o != nil && o.Suger != nil { + return true + } + + return false +} + +// SetSuger gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger and assigns it to the Suger field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetSuger(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) { + o.Suger = &v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Aws != nil { + toSerialize["aws"] = o.Aws + } + if true { + toSerialize["displayName"] = o.DisplayName + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Stripe != nil { + toSerialize["stripe"] = o.Stripe + } + if o.Suger != nil { + toSerialize["suger"] = o.Suger + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go new file mode 100644 index 0000000..5b49410 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger struct { + EntitlementID string `json:"entitlementID"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger(entitlementID string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger{} + this.EntitlementID = entitlementID + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSugerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSugerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger{} + return &this +} + +// GetEntitlementID returns the EntitlementID field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) GetEntitlementID() string { + if o == nil { + var ret string + return ret + } + + return o.EntitlementID +} + +// GetEntitlementIDOk returns a tuple with the EntitlementID field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) GetEntitlementIDOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EntitlementID, true +} + +// SetEntitlementID sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) SetEntitlementID(v string) { + o.EntitlementID = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["entitlementID"] = o.EntitlementID + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go new file mode 100644 index 0000000..e1202fe --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go @@ -0,0 +1,266 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ServiceAccount +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + // ServiceAccountSpec defines the desired state of ServiceAccount + Spec map[string]interface{} `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetSpec() map[string]interface{} { + if o == nil || o.Spec == nil { + var ret map[string]interface{} + return ret + } + return o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetSpecOk() (map[string]interface{}, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given map[string]interface{} and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetSpec(v map[string]interface{}) { + o.Spec = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go new file mode 100644 index 0000000..1b68efd --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ServiceAccountBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go new file mode 100644 index 0000000..6ca130e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go new file mode 100644 index 0000000..80e898e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec ServiceAccountBindingSpec defines the desired state of ServiceAccountBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec struct { + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + // refers to the ServiceAccount under the same namespace as this binding object + ServiceAccountName *string `json:"serviceAccountName,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec{} + return &this +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetServiceAccountName returns the ServiceAccountName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetServiceAccountName() string { + if o == nil || o.ServiceAccountName == nil { + var ret string + return ret + } + return *o.ServiceAccountName +} + +// GetServiceAccountNameOk returns a tuple with the ServiceAccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) GetServiceAccountNameOk() (*string, bool) { + if o == nil || o.ServiceAccountName == nil { + return nil, false + } + return o.ServiceAccountName, true +} + +// HasServiceAccountName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) HasServiceAccountName() bool { + if o != nil && o.ServiceAccountName != nil { + return true + } + + return false +} + +// SetServiceAccountName gets a reference to the given string and assigns it to the ServiceAccountName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) SetServiceAccountName(v string) { + o.ServiceAccountName = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.ServiceAccountName != nil { + toSerialize["serviceAccountName"] = o.ServiceAccountName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go new file mode 100644 index 0000000..edeaeed --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus ServiceAccountBindingStatus defines the observed state of ServiceAccountBinding +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus struct { + // Conditions is an array of current observed service account binding conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go new file mode 100644 index 0000000..885d126 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go new file mode 100644 index 0000000..431d5d0 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus ServiceAccountStatus defines the observed state of ServiceAccount +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus struct { + // Conditions is an array of current observed service account conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // PrivateKeyData provides the private key data (in base-64 format) for authentication purposes + PrivateKeyData *string `json:"privateKeyData,omitempty"` + // PrivateKeyType indicates the type of private key information + PrivateKeyType *string `json:"privateKeyType,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetPrivateKeyData returns the PrivateKeyData field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyData() string { + if o == nil || o.PrivateKeyData == nil { + var ret string + return ret + } + return *o.PrivateKeyData +} + +// GetPrivateKeyDataOk returns a tuple with the PrivateKeyData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyDataOk() (*string, bool) { + if o == nil || o.PrivateKeyData == nil { + return nil, false + } + return o.PrivateKeyData, true +} + +// HasPrivateKeyData returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) HasPrivateKeyData() bool { + if o != nil && o.PrivateKeyData != nil { + return true + } + + return false +} + +// SetPrivateKeyData gets a reference to the given string and assigns it to the PrivateKeyData field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) SetPrivateKeyData(v string) { + o.PrivateKeyData = &v +} + +// GetPrivateKeyType returns the PrivateKeyType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyType() string { + if o == nil || o.PrivateKeyType == nil { + var ret string + return ret + } + return *o.PrivateKeyType +} + +// GetPrivateKeyTypeOk returns a tuple with the PrivateKeyType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) GetPrivateKeyTypeOk() (*string, bool) { + if o == nil || o.PrivateKeyType == nil { + return nil, false + } + return o.PrivateKeyType, true +} + +// HasPrivateKeyType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) HasPrivateKeyType() bool { + if o != nil && o.PrivateKeyType != nil { + return true + } + + return false +} + +// SetPrivateKeyType gets a reference to the given string and assigns it to the PrivateKeyType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) SetPrivateKeyType(v string) { + o.PrivateKeyType = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.PrivateKeyData != nil { + toSerialize["privateKeyData"] = o.PrivateKeyData + } + if o.PrivateKeyType != nil { + toSerialize["privateKeyType"] = o.PrivateKeyType + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go new file mode 100644 index 0000000..43f4a61 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig struct { + Namespaces []string `json:"namespaces"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig(namespaces []string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig{} + this.Namespaces = namespaces + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig{} + return &this +} + +// GetNamespaces returns the Namespaces field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) GetNamespaces() []string { + if o == nil { + var ret []string + return ret + } + + return o.Namespaces +} + +// GetNamespacesOk returns a tuple with the Namespaces field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) GetNamespacesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Namespaces, true +} + +// SetNamespaces sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) SetNamespaces(v []string) { + o.Namespaces = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["namespaces"] = o.Namespaces + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go new file mode 100644 index 0000000..aa7999d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go @@ -0,0 +1,443 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn Srn Deprecated +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn struct { + Cluster *string `json:"cluster,omitempty"` + Instance *string `json:"instance,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Organization *string `json:"organization,omitempty"` + Schema *string `json:"schema,omitempty"` + Subscription *string `json:"subscription,omitempty"` + Tenant *string `json:"tenant,omitempty"` + TopicDomain *string `json:"topicDomain,omitempty"` + TopicName *string `json:"topicName,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SrnWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SrnWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn{} + return &this +} + +// GetCluster returns the Cluster field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetCluster() string { + if o == nil || o.Cluster == nil { + var ret string + return ret + } + return *o.Cluster +} + +// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetClusterOk() (*string, bool) { + if o == nil || o.Cluster == nil { + return nil, false + } + return o.Cluster, true +} + +// HasCluster returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasCluster() bool { + if o != nil && o.Cluster != nil { + return true + } + + return false +} + +// SetCluster gets a reference to the given string and assigns it to the Cluster field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetCluster(v string) { + o.Cluster = &v +} + +// GetInstance returns the Instance field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetInstance() string { + if o == nil || o.Instance == nil { + var ret string + return ret + } + return *o.Instance +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetInstanceOk() (*string, bool) { + if o == nil || o.Instance == nil { + return nil, false + } + return o.Instance, true +} + +// HasInstance returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasInstance() bool { + if o != nil && o.Instance != nil { + return true + } + + return false +} + +// SetInstance gets a reference to the given string and assigns it to the Instance field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetInstance(v string) { + o.Instance = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetNamespace(v string) { + o.Namespace = &v +} + +// GetOrganization returns the Organization field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetOrganization() string { + if o == nil || o.Organization == nil { + var ret string + return ret + } + return *o.Organization +} + +// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetOrganizationOk() (*string, bool) { + if o == nil || o.Organization == nil { + return nil, false + } + return o.Organization, true +} + +// HasOrganization returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasOrganization() bool { + if o != nil && o.Organization != nil { + return true + } + + return false +} + +// SetOrganization gets a reference to the given string and assigns it to the Organization field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetOrganization(v string) { + o.Organization = &v +} + +// GetSchema returns the Schema field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSchema() string { + if o == nil || o.Schema == nil { + var ret string + return ret + } + return *o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSchemaOk() (*string, bool) { + if o == nil || o.Schema == nil { + return nil, false + } + return o.Schema, true +} + +// HasSchema returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasSchema() bool { + if o != nil && o.Schema != nil { + return true + } + + return false +} + +// SetSchema gets a reference to the given string and assigns it to the Schema field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetSchema(v string) { + o.Schema = &v +} + +// GetSubscription returns the Subscription field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSubscription() string { + if o == nil || o.Subscription == nil { + var ret string + return ret + } + return *o.Subscription +} + +// GetSubscriptionOk returns a tuple with the Subscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetSubscriptionOk() (*string, bool) { + if o == nil || o.Subscription == nil { + return nil, false + } + return o.Subscription, true +} + +// HasSubscription returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasSubscription() bool { + if o != nil && o.Subscription != nil { + return true + } + + return false +} + +// SetSubscription gets a reference to the given string and assigns it to the Subscription field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetSubscription(v string) { + o.Subscription = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTenant() string { + if o == nil || o.Tenant == nil { + var ret string + return ret + } + return *o.Tenant +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTenantOk() (*string, bool) { + if o == nil || o.Tenant == nil { + return nil, false + } + return o.Tenant, true +} + +// HasTenant returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasTenant() bool { + if o != nil && o.Tenant != nil { + return true + } + + return false +} + +// SetTenant gets a reference to the given string and assigns it to the Tenant field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetTenant(v string) { + o.Tenant = &v +} + +// GetTopicDomain returns the TopicDomain field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicDomain() string { + if o == nil || o.TopicDomain == nil { + var ret string + return ret + } + return *o.TopicDomain +} + +// GetTopicDomainOk returns a tuple with the TopicDomain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicDomainOk() (*string, bool) { + if o == nil || o.TopicDomain == nil { + return nil, false + } + return o.TopicDomain, true +} + +// HasTopicDomain returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasTopicDomain() bool { + if o != nil && o.TopicDomain != nil { + return true + } + + return false +} + +// SetTopicDomain gets a reference to the given string and assigns it to the TopicDomain field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetTopicDomain(v string) { + o.TopicDomain = &v +} + +// GetTopicName returns the TopicName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicName() string { + if o == nil || o.TopicName == nil { + var ret string + return ret + } + return *o.TopicName +} + +// GetTopicNameOk returns a tuple with the TopicName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetTopicNameOk() (*string, bool) { + if o == nil || o.TopicName == nil { + return nil, false + } + return o.TopicName, true +} + +// HasTopicName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasTopicName() bool { + if o != nil && o.TopicName != nil { + return true + } + + return false +} + +// SetTopicName gets a reference to the given string and assigns it to the TopicName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetTopicName(v string) { + o.TopicName = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) SetVersion(v string) { + o.Version = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Cluster != nil { + toSerialize["cluster"] = o.Cluster + } + if o.Instance != nil { + toSerialize["instance"] = o.Instance + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + if o.Organization != nil { + toSerialize["organization"] = o.Organization + } + if o.Schema != nil { + toSerialize["schema"] = o.Schema + } + if o.Subscription != nil { + toSerialize["subscription"] = o.Subscription + } + if o.Tenant != nil { + toSerialize["tenant"] = o.Tenant + } + if o.TopicDomain != nil { + toSerialize["topicDomain"] = o.TopicDomain + } + if o.TopicName != nil { + toSerialize["topicName"] = o.TopicName + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go new file mode 100644 index 0000000..5848126 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription StripeSubscription +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go new file mode 100644 index 0000000..9215eee --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go new file mode 100644 index 0000000..fdb92e1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go @@ -0,0 +1,187 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec StripeSubscriptionSpec defines the desired state of StripeSubscription +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec struct { + // CustomerId is the id of the customer + CustomerId string `json:"customerId"` + // Product is the name or id of the product + Product *string `json:"product,omitempty"` + // Quantities defines the quantity of certain prices in the subscription + Quantities *map[string]int64 `json:"quantities,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec(customerId string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec{} + this.CustomerId = customerId + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec{} + return &this +} + +// GetCustomerId returns the CustomerId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetCustomerId() string { + if o == nil { + var ret string + return ret + } + + return o.CustomerId +} + +// GetCustomerIdOk returns a tuple with the CustomerId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetCustomerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CustomerId, true +} + +// SetCustomerId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) SetCustomerId(v string) { + o.CustomerId = v +} + +// GetProduct returns the Product field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetProduct() string { + if o == nil || o.Product == nil { + var ret string + return ret + } + return *o.Product +} + +// GetProductOk returns a tuple with the Product field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetProductOk() (*string, bool) { + if o == nil || o.Product == nil { + return nil, false + } + return o.Product, true +} + +// HasProduct returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) HasProduct() bool { + if o != nil && o.Product != nil { + return true + } + + return false +} + +// SetProduct gets a reference to the given string and assigns it to the Product field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) SetProduct(v string) { + o.Product = &v +} + +// GetQuantities returns the Quantities field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetQuantities() map[string]int64 { + if o == nil || o.Quantities == nil { + var ret map[string]int64 + return ret + } + return *o.Quantities +} + +// GetQuantitiesOk returns a tuple with the Quantities field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) GetQuantitiesOk() (*map[string]int64, bool) { + if o == nil || o.Quantities == nil { + return nil, false + } + return o.Quantities, true +} + +// HasQuantities returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) HasQuantities() bool { + if o != nil && o.Quantities != nil { + return true + } + + return false +} + +// SetQuantities gets a reference to the given map[string]int64 and assigns it to the Quantities field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) SetQuantities(v map[string]int64) { + o.Quantities = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["customerId"] = o.CustomerId + } + if o.Product != nil { + toSerialize["product"] = o.Product + } + if o.Quantities != nil { + toSerialize["quantities"] = o.Quantities + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go new file mode 100644 index 0000000..6433017 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus StripeSubscriptionStatus defines the observed state of StripeSubscription +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + // The generation observed by the controller. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + // SubscriptionItems is a list of subscription items (used to report metrics) + SubscriptionItems []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem `json:"subscriptionItems,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +// GetObservedGeneration returns the ObservedGeneration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetObservedGeneration() int64 { + if o == nil || o.ObservedGeneration == nil { + var ret int64 + return ret + } + return *o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetObservedGenerationOk() (*int64, bool) { + if o == nil || o.ObservedGeneration == nil { + return nil, false + } + return o.ObservedGeneration, true +} + +// HasObservedGeneration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) HasObservedGeneration() bool { + if o != nil && o.ObservedGeneration != nil { + return true + } + + return false +} + +// SetObservedGeneration gets a reference to the given int64 and assigns it to the ObservedGeneration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) SetObservedGeneration(v int64) { + o.ObservedGeneration = &v +} + +// GetSubscriptionItems returns the SubscriptionItems field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetSubscriptionItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem { + if o == nil || o.SubscriptionItems == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem + return ret + } + return o.SubscriptionItems +} + +// GetSubscriptionItemsOk returns a tuple with the SubscriptionItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) GetSubscriptionItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem, bool) { + if o == nil || o.SubscriptionItems == nil { + return nil, false + } + return o.SubscriptionItems, true +} + +// HasSubscriptionItems returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) HasSubscriptionItems() bool { + if o != nil && o.SubscriptionItems != nil { + return true + } + + return false +} + +// SetSubscriptionItems gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem and assigns it to the SubscriptionItems field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) SetSubscriptionItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) { + o.SubscriptionItems = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.ObservedGeneration != nil { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if o.SubscriptionItems != nil { + toSerialize["subscriptionItems"] = o.SubscriptionItems + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go new file mode 100644 index 0000000..dc56706 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go @@ -0,0 +1,206 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject struct { + ApiGroup string `json:"apiGroup"` + Kind string `json:"kind"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject(apiGroup string, kind string, name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject{} + this.ApiGroup = apiGroup + this.Kind = kind + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubjectWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubjectWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject{} + return &this +} + +// GetApiGroup returns the ApiGroup field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetApiGroup() string { + if o == nil { + var ret string + return ret + } + + return o.ApiGroup +} + +// GetApiGroupOk returns a tuple with the ApiGroup field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetApiGroupOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiGroup, true +} + +// SetApiGroup sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetApiGroup(v string) { + o.ApiGroup = v +} + +// GetKind returns the Kind field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["apiGroup"] = o.ApiGroup + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go new file mode 100644 index 0000000..a6fe682 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go @@ -0,0 +1,199 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem struct { + NickName string `json:"nickName"` + PriceId string `json:"priceId"` + SubscriptionId string `json:"subscriptionId"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem(nickName string, priceId string, subscriptionId string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem{} + this.NickName = nickName + this.PriceId = priceId + this.SubscriptionId = subscriptionId + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItemWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItemWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem{} + return &this +} + +// GetNickName returns the NickName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetNickName() string { + if o == nil { + var ret string + return ret + } + + return o.NickName +} + +// GetNickNameOk returns a tuple with the NickName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetNickNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NickName, true +} + +// SetNickName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetNickName(v string) { + o.NickName = v +} + +// GetPriceId returns the PriceId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetPriceId() string { + if o == nil { + var ret string + return ret + } + + return o.PriceId +} + +// GetPriceIdOk returns a tuple with the PriceId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetPriceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PriceId, true +} + +// SetPriceId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetPriceId(v string) { + o.PriceId = v +} + +// GetSubscriptionId returns the SubscriptionId field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetSubscriptionId() string { + if o == nil { + var ret string + return ret + } + + return o.SubscriptionId +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetSubscriptionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SubscriptionId, true +} + +// SetSubscriptionId sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetSubscriptionId(v string) { + o.SubscriptionId = v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["nickName"] = o.NickName + } + if true { + toSerialize["priceId"] = o.PriceId + } + if true { + toSerialize["subscriptionId"] = o.SubscriptionId + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go new file mode 100644 index 0000000..a751972 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec struct { + // A role chain that is provided by name through the CLI to designate which access chain to take when accessing a poolmember. + Chains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain `json:"chains,omitempty"` + RoleChain []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition `json:"roleChain,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec{} + return &this +} + +// GetChains returns the Chains field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetChains() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain { + if o == nil || o.Chains == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain + return ret + } + return o.Chains +} + +// GetChainsOk returns a tuple with the Chains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetChainsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain, bool) { + if o == nil || o.Chains == nil { + return nil, false + } + return o.Chains, true +} + +// HasChains returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) HasChains() bool { + if o != nil && o.Chains != nil { + return true + } + + return false +} + +// SetChains gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain and assigns it to the Chains field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) SetChains(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) { + o.Chains = v +} + +// GetRoleChain returns the RoleChain field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetRoleChain() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition { + if o == nil || o.RoleChain == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition + return ret + } + return o.RoleChain +} + +// GetRoleChainOk returns a tuple with the RoleChain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) GetRoleChainOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition, bool) { + if o == nil || o.RoleChain == nil { + return nil, false + } + return o.RoleChain, true +} + +// HasRoleChain returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) HasRoleChain() bool { + if o != nil && o.RoleChain != nil { + return true + } + + return false +} + +// SetRoleChain gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition and assigns it to the RoleChain field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) SetRoleChain(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition) { + o.RoleChain = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Chains != nil { + toSerialize["chains"] = o.Chains + } + if o.RoleChain != nil { + toSerialize["roleChain"] = o.RoleChain + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go new file mode 100644 index 0000000..4dd3167 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go @@ -0,0 +1,218 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint Taint - The workload cluster this Taint is attached to has the \"effect\" on any workload that does not tolerate the Taint. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint struct { + // Required. The effect of the taint on workloads that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + Effect string `json:"effect"` + // Required. The taint key to be applied to a workload cluster. + Key string `json:"key"` + // TimeAdded represents the time at which the taint was added. + TimeAdded *time.Time `json:"timeAdded,omitempty"` + // Optional. The taint value corresponding to the taint key. + Value *string `json:"value,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint(effect string, key string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint{} + this.Effect = effect + this.Key = key + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TaintWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TaintWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint{} + return &this +} + +// GetEffect returns the Effect field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetEffect() string { + if o == nil { + var ret string + return ret + } + + return o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetEffectOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Effect, true +} + +// SetEffect sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetEffect(v string) { + o.Effect = v +} + +// GetKey returns the Key field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetKey(v string) { + o.Key = v +} + +// GetTimeAdded returns the TimeAdded field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetTimeAdded() time.Time { + if o == nil || o.TimeAdded == nil { + var ret time.Time + return ret + } + return *o.TimeAdded +} + +// GetTimeAddedOk returns a tuple with the TimeAdded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetTimeAddedOk() (*time.Time, bool) { + if o == nil || o.TimeAdded == nil { + return nil, false + } + return o.TimeAdded, true +} + +// HasTimeAdded returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) HasTimeAdded() bool { + if o != nil && o.TimeAdded != nil { + return true + } + + return false +} + +// SetTimeAdded gets a reference to the given time.Time and assigns it to the TimeAdded field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetTimeAdded(v time.Time) { + o.TimeAdded = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) SetValue(v string) { + o.Value = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["effect"] = o.Effect + } + if true { + toSerialize["key"] = o.Key + } + if o.TimeAdded != nil { + toSerialize["timeAdded"] = o.TimeAdded + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go new file mode 100644 index 0000000..80a516d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration The workload this Toleration is attached to tolerates any taint that matches the triple using the matching operator . +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration struct { + // Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and PreferNoSchedule. + Effect *string `json:"effect,omitempty"` + // Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + Key *string `json:"key,omitempty"` + // Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category. + Operator *string `json:"operator,omitempty"` + // Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + Value *string `json:"value,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TolerationWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1TolerationWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration{} + return &this +} + +// GetEffect returns the Effect field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetEffect() string { + if o == nil || o.Effect == nil { + var ret string + return ret + } + return *o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetEffectOk() (*string, bool) { + if o == nil || o.Effect == nil { + return nil, false + } + return o.Effect, true +} + +// HasEffect returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasEffect() bool { + if o != nil && o.Effect != nil { + return true + } + + return false +} + +// SetEffect gets a reference to the given string and assigns it to the Effect field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetEffect(v string) { + o.Effect = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetKey(v string) { + o.Key = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetOperator() string { + if o == nil || o.Operator == nil { + var ret string + return ret + } + return *o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetOperatorOk() (*string, bool) { + if o == nil || o.Operator == nil { + return nil, false + } + return o.Operator, true +} + +// HasOperator returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasOperator() bool { + if o != nil && o.Operator != nil { + return true + } + + return false +} + +// SetOperator gets a reference to the given string and assigns it to the Operator field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetOperator(v string) { + o.Operator = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) SetValue(v string) { + o.Value = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Effect != nil { + toSerialize["effect"] = o.Effect + } + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.Operator != nil { + toSerialize["operator"] = o.Operator + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go new file mode 100644 index 0000000..9751fde --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User User +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go new file mode 100644 index 0000000..c295e92 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go new file mode 100644 index 0000000..7ec7cd4 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName struct { + First string `json:"first"` + Last string `json:"last"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName(first string, last string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName{} + this.First = first + this.Last = last + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserNameWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserNameWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName{} + return &this +} + +// GetFirst returns the First field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetFirst() string { + if o == nil { + var ret string + return ret + } + + return o.First +} + +// GetFirstOk returns a tuple with the First field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetFirstOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.First, true +} + +// SetFirst sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) SetFirst(v string) { + o.First = v +} + +// GetLast returns the Last field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetLast() string { + if o == nil { + var ret string + return ret + } + + return o.Last +} + +// GetLastOk returns a tuple with the Last field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) GetLastOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Last, true +} + +// SetLast sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) SetLast(v string) { + o.Last = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["first"] = o.First + } + if true { + toSerialize["last"] = o.Last + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go new file mode 100644 index 0000000..f56652f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go @@ -0,0 +1,220 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec UserSpec defines the desired state of User +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec struct { + Email string `json:"email"` + Invitation *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation `json:"invitation,omitempty"` + Name *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec(email string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec{} + this.Email = email + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec{} + return &this +} + +// GetEmail returns the Email field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetEmail(v string) { + o.Email = v +} + +// GetInvitation returns the Invitation field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetInvitation() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation { + if o == nil || o.Invitation == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation + return ret + } + return *o.Invitation +} + +// GetInvitationOk returns a tuple with the Invitation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetInvitationOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation, bool) { + if o == nil || o.Invitation == nil { + return nil, false + } + return o.Invitation, true +} + +// HasInvitation returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) HasInvitation() bool { + if o != nil && o.Invitation != nil { + return true + } + + return false +} + +// SetInvitation gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation and assigns it to the Invitation field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetInvitation(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation) { + o.Invitation = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetName() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName { + if o == nil || o.Name == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetNameOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetName(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) SetType(v string) { + o.Type = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["email"] = o.Email + } + if o.Invitation != nil { + toSerialize["invitation"] = o.Invitation + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go new file mode 100644 index 0000000..5a400b2 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus UserStatus defines the observed state of User +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go new file mode 100644 index 0000000..1e422d6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go @@ -0,0 +1,143 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window struct { + // StartTime define the maintenance execution duration + Duration string `json:"duration"` + // StartTime define the maintenance execution start time + StartTime string `json:"startTime"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window(duration string, startTime string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window{} + this.Duration = duration + this.StartTime = startTime + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1WindowWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1WindowWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window{} + return &this +} + +// GetDuration returns the Duration field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetDuration() string { + if o == nil { + var ret string + return ret + } + + return o.Duration +} + +// GetDurationOk returns a tuple with the Duration field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetDurationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Duration, true +} + +// SetDuration sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) SetDuration(v string) { + o.Duration = v +} + +// GetStartTime returns the StartTime field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetStartTime() string { + if o == nil { + var ret string + return ret + } + + return o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) GetStartTimeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StartTime, true +} + +// SetStartTime sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) SetStartTime(v string) { + o.StartTime = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["duration"] = o.Duration + } + if true { + toSerialize["startTime"] = o.StartTime + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go new file mode 100644 index 0000000..e96656f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference struct { + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference(name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go new file mode 100644 index 0000000..5678bbf --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription AWSSubscription +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go new file mode 100644 index 0000000..a5db749 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go new file mode 100644 index 0000000..de9f198 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec AWSSubscriptionSpec defines the desired state of AWSSubscription +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec struct { + CustomerID *string `json:"customerID,omitempty"` + ProductCode *string `json:"productCode,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec{} + return &this +} + +// GetCustomerID returns the CustomerID field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetCustomerID() string { + if o == nil || o.CustomerID == nil { + var ret string + return ret + } + return *o.CustomerID +} + +// GetCustomerIDOk returns a tuple with the CustomerID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetCustomerIDOk() (*string, bool) { + if o == nil || o.CustomerID == nil { + return nil, false + } + return o.CustomerID, true +} + +// HasCustomerID returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) HasCustomerID() bool { + if o != nil && o.CustomerID != nil { + return true + } + + return false +} + +// SetCustomerID gets a reference to the given string and assigns it to the CustomerID field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) SetCustomerID(v string) { + o.CustomerID = &v +} + +// GetProductCode returns the ProductCode field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetProductCode() string { + if o == nil || o.ProductCode == nil { + var ret string + return ret + } + return *o.ProductCode +} + +// GetProductCodeOk returns a tuple with the ProductCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) GetProductCodeOk() (*string, bool) { + if o == nil || o.ProductCode == nil { + return nil, false + } + return o.ProductCode, true +} + +// HasProductCode returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) HasProductCode() bool { + if o != nil && o.ProductCode != nil { + return true + } + + return false +} + +// SetProductCode gets a reference to the given string and assigns it to the ProductCode field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) SetProductCode(v string) { + o.ProductCode = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CustomerID != nil { + toSerialize["customerID"] = o.CustomerID + } + if o.ProductCode != nil { + toSerialize["productCode"] = o.ProductCode + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go new file mode 100644 index 0000000..a46d2a8 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus AWSSubscriptionStatus defines the observed state of AWSSubscription +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go new file mode 100644 index 0000000..a97c7b8 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec struct { + // NodeType defines the request node specification type + NodeType *string `json:"nodeType,omitempty"` + // StorageSize defines the size of the ledger storage + StorageSize *string `json:"storageSize,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec{} + return &this +} + +// GetNodeType returns the NodeType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetNodeType() string { + if o == nil || o.NodeType == nil { + var ret string + return ret + } + return *o.NodeType +} + +// GetNodeTypeOk returns a tuple with the NodeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetNodeTypeOk() (*string, bool) { + if o == nil || o.NodeType == nil { + return nil, false + } + return o.NodeType, true +} + +// HasNodeType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) HasNodeType() bool { + if o != nil && o.NodeType != nil { + return true + } + + return false +} + +// SetNodeType gets a reference to the given string and assigns it to the NodeType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) SetNodeType(v string) { + o.NodeType = &v +} + +// GetStorageSize returns the StorageSize field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetStorageSize() string { + if o == nil || o.StorageSize == nil { + var ret string + return ret + } + return *o.StorageSize +} + +// GetStorageSizeOk returns a tuple with the StorageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) GetStorageSizeOk() (*string, bool) { + if o == nil || o.StorageSize == nil { + return nil, false + } + return o.StorageSize, true +} + +// HasStorageSize returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) HasStorageSize() bool { + if o != nil && o.StorageSize != nil { + return true + } + + return false +} + +// SetStorageSize gets a reference to the given string and assigns it to the StorageSize field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) SetStorageSize(v string) { + o.StorageSize = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.NodeType != nil { + toSerialize["nodeType"] = o.NodeType + } + if o.StorageSize != nil { + toSerialize["storageSize"] = o.StorageSize + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go new file mode 100644 index 0000000..dbfb185 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet BookKeeperSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go new file mode 100644 index 0000000..152b048 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go new file mode 100644 index 0000000..7280ddf --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption BookKeeperSetOption +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go new file mode 100644 index 0000000..2755eb8 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go new file mode 100644 index 0000000..329b995 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec BookKeeperSetOptionSpec defines a reference to a Pool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec struct { + BookKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference `json:"bookKeeperSetRef"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec(bookKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec{} + this.BookKeeperSetRef = bookKeeperSetRef + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec{} + return &this +} + +// GetBookKeeperSetRef returns the BookKeeperSetRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) GetBookKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference + return ret + } + + return o.BookKeeperSetRef +} + +// GetBookKeeperSetRefOk returns a tuple with the BookKeeperSetRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) GetBookKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference, bool) { + if o == nil { + return nil, false + } + return &o.BookKeeperSetRef, true +} + +// SetBookKeeperSetRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) SetBookKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) { + o.BookKeeperSetRef = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["bookKeeperSetRef"] = o.BookKeeperSetRef + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go new file mode 100644 index 0000000..85fb7d9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus struct { + // Conditions is an array of current observed BookKeeperSetOptionStatus conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go new file mode 100644 index 0000000..fbdefcc --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference struct { + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference(name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go new file mode 100644 index 0000000..c2fa3ca --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go @@ -0,0 +1,367 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec BookKeeperSetSpec defines the desired state of BookKeeperSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec struct { + // AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. + AvailabilityMode *string `json:"availabilityMode,omitempty"` + // Image name is the name of the image to deploy. + Image *string `json:"image,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` + // Replicas is the desired number of BookKeeper servers. If unspecified, defaults to 3. + Replicas *int32 `json:"replicas,omitempty"` + ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec `json:"resourceSpec,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource `json:"resources,omitempty"` + Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig `json:"sharing,omitempty"` + ZooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference `json:"zooKeeperSetRef"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec(zooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec{} + this.ZooKeeperSetRef = zooKeeperSetRef + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec{} + return &this +} + +// GetAvailabilityMode returns the AvailabilityMode field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetAvailabilityMode() string { + if o == nil || o.AvailabilityMode == nil { + var ret string + return ret + } + return *o.AvailabilityMode +} + +// GetAvailabilityModeOk returns a tuple with the AvailabilityMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetAvailabilityModeOk() (*string, bool) { + if o == nil || o.AvailabilityMode == nil { + return nil, false + } + return o.AvailabilityMode, true +} + +// HasAvailabilityMode returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasAvailabilityMode() bool { + if o != nil && o.AvailabilityMode != nil { + return true + } + + return false +} + +// SetAvailabilityMode gets a reference to the given string and assigns it to the AvailabilityMode field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetAvailabilityMode(v string) { + o.AvailabilityMode = &v +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetImage() string { + if o == nil || o.Image == nil { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetImageOk() (*string, bool) { + if o == nil || o.Image == nil { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasImage() bool { + if o != nil && o.Image != nil { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetImage(v string) { + o.Image = &v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetReplicas returns the Replicas field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetReplicas() int32 { + if o == nil || o.Replicas == nil { + var ret int32 + return ret + } + return *o.Replicas +} + +// GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetReplicasOk() (*int32, bool) { + if o == nil || o.Replicas == nil { + return nil, false + } + return o.Replicas, true +} + +// HasReplicas returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasReplicas() bool { + if o != nil && o.Replicas != nil { + return true + } + + return false +} + +// SetReplicas gets a reference to the given int32 and assigns it to the Replicas field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetReplicas(v int32) { + o.Replicas = &v +} + +// GetResourceSpec returns the ResourceSpec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec { + if o == nil || o.ResourceSpec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec + return ret + } + return *o.ResourceSpec +} + +// GetResourceSpecOk returns a tuple with the ResourceSpec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec, bool) { + if o == nil || o.ResourceSpec == nil { + return nil, false + } + return o.ResourceSpec, true +} + +// HasResourceSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasResourceSpec() bool { + if o != nil && o.ResourceSpec != nil { + return true + } + + return false +} + +// SetResourceSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec and assigns it to the ResourceSpec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec) { + o.ResourceSpec = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource { + if o == nil || o.Resources == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource and assigns it to the Resources field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) { + o.Resources = &v +} + +// GetSharing returns the Sharing field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetSharing() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig { + if o == nil || o.Sharing == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig + return ret + } + return *o.Sharing +} + +// GetSharingOk returns a tuple with the Sharing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetSharingOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig, bool) { + if o == nil || o.Sharing == nil { + return nil, false + } + return o.Sharing, true +} + +// HasSharing returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) HasSharing() bool { + if o != nil && o.Sharing != nil { + return true + } + + return false +} + +// SetSharing gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig and assigns it to the Sharing field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetSharing(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) { + o.Sharing = &v +} + +// GetZooKeeperSetRef returns the ZooKeeperSetRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetZooKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference + return ret + } + + return o.ZooKeeperSetRef +} + +// GetZooKeeperSetRefOk returns a tuple with the ZooKeeperSetRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) GetZooKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference, bool) { + if o == nil { + return nil, false + } + return &o.ZooKeeperSetRef, true +} + +// SetZooKeeperSetRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) SetZooKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) { + o.ZooKeeperSetRef = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityMode != nil { + toSerialize["availabilityMode"] = o.AvailabilityMode + } + if o.Image != nil { + toSerialize["image"] = o.Image + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.Replicas != nil { + toSerialize["replicas"] = o.Replicas + } + if o.ResourceSpec != nil { + toSerialize["resourceSpec"] = o.ResourceSpec + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + if o.Sharing != nil { + toSerialize["sharing"] = o.Sharing + } + if true { + toSerialize["zooKeeperSetRef"] = o.ZooKeeperSetRef + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go new file mode 100644 index 0000000..721b45b --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus BookKeeperSetStatus defines the observed state of BookKeeperSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition `json:"conditions,omitempty"` + // MetadataServiceUri exposes the URI used for loading corresponding metadata driver and resolving its metadata service location + MetadataServiceUri *string `json:"metadataServiceUri,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) { + o.Conditions = v +} + +// GetMetadataServiceUri returns the MetadataServiceUri field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetMetadataServiceUri() string { + if o == nil || o.MetadataServiceUri == nil { + var ret string + return ret + } + return *o.MetadataServiceUri +} + +// GetMetadataServiceUriOk returns a tuple with the MetadataServiceUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) GetMetadataServiceUriOk() (*string, bool) { + if o == nil || o.MetadataServiceUri == nil { + return nil, false + } + return o.MetadataServiceUri, true +} + +// HasMetadataServiceUri returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) HasMetadataServiceUri() bool { + if o != nil && o.MetadataServiceUri != nil { + return true + } + + return false +} + +// SetMetadataServiceUri gets a reference to the given string and assigns it to the MetadataServiceUri field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) SetMetadataServiceUri(v string) { + o.MetadataServiceUri = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.MetadataServiceUri != nil { + toSerialize["metadataServiceUri"] = o.MetadataServiceUri + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go new file mode 100644 index 0000000..66a297f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go @@ -0,0 +1,186 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource Represents resource spec for bookie nodes +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource struct { + DefaultNodeResource ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource `json:"DefaultNodeResource"` + // JournalDisk size. Set to zero equivalent to use default value + JournalDisk *string `json:"journalDisk,omitempty"` + // LedgerDisk size. Set to zero equivalent to use default value + LedgerDisk *string `json:"ledgerDisk,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource(defaultNodeResource ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource{} + this.DefaultNodeResource = defaultNodeResource + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource{} + return &this +} + +// GetDefaultNodeResource returns the DefaultNodeResource field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetDefaultNodeResource() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource + return ret + } + + return o.DefaultNodeResource +} + +// GetDefaultNodeResourceOk returns a tuple with the DefaultNodeResource field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetDefaultNodeResourceOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource, bool) { + if o == nil { + return nil, false + } + return &o.DefaultNodeResource, true +} + +// SetDefaultNodeResource sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) SetDefaultNodeResource(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) { + o.DefaultNodeResource = v +} + +// GetJournalDisk returns the JournalDisk field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetJournalDisk() string { + if o == nil || o.JournalDisk == nil { + var ret string + return ret + } + return *o.JournalDisk +} + +// GetJournalDiskOk returns a tuple with the JournalDisk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetJournalDiskOk() (*string, bool) { + if o == nil || o.JournalDisk == nil { + return nil, false + } + return o.JournalDisk, true +} + +// HasJournalDisk returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) HasJournalDisk() bool { + if o != nil && o.JournalDisk != nil { + return true + } + + return false +} + +// SetJournalDisk gets a reference to the given string and assigns it to the JournalDisk field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) SetJournalDisk(v string) { + o.JournalDisk = &v +} + +// GetLedgerDisk returns the LedgerDisk field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetLedgerDisk() string { + if o == nil || o.LedgerDisk == nil { + var ret string + return ret + } + return *o.LedgerDisk +} + +// GetLedgerDiskOk returns a tuple with the LedgerDisk field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) GetLedgerDiskOk() (*string, bool) { + if o == nil || o.LedgerDisk == nil { + return nil, false + } + return o.LedgerDisk, true +} + +// HasLedgerDisk returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) HasLedgerDisk() bool { + if o != nil && o.LedgerDisk != nil { + return true + } + + return false +} + +// SetLedgerDisk gets a reference to the given string and assigns it to the LedgerDisk field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) SetLedgerDisk(v string) { + o.LedgerDisk = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["DefaultNodeResource"] = o.DefaultNodeResource + } + if o.JournalDisk != nil { + toSerialize["journalDisk"] = o.JournalDisk + } + if o.LedgerDisk != nil { + toSerialize["ledgerDisk"] = o.LedgerDisk + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go new file mode 100644 index 0000000..127d5c4 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go @@ -0,0 +1,288 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition struct { + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition(status string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition{} + this.Status = status + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition{} + return &this +} + +// GetLastTransitionTime returns the LastTransitionTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetLastTransitionTime() time.Time { + if o == nil || o.LastTransitionTime == nil { + var ret time.Time + return ret + } + return *o.LastTransitionTime +} + +// GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetLastTransitionTimeOk() (*time.Time, bool) { + if o == nil || o.LastTransitionTime == nil { + return nil, false + } + return o.LastTransitionTime, true +} + +// HasLastTransitionTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasLastTransitionTime() bool { + if o != nil && o.LastTransitionTime != nil { + return true + } + + return false +} + +// SetLastTransitionTime gets a reference to the given time.Time and assigns it to the LastTransitionTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetLastTransitionTime(v time.Time) { + o.LastTransitionTime = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetMessage(v string) { + o.Message = &v +} + +// GetObservedGeneration returns the ObservedGeneration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetObservedGeneration() int64 { + if o == nil || o.ObservedGeneration == nil { + var ret int64 + return ret + } + return *o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetObservedGenerationOk() (*int64, bool) { + if o == nil || o.ObservedGeneration == nil { + return nil, false + } + return o.ObservedGeneration, true +} + +// HasObservedGeneration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasObservedGeneration() bool { + if o != nil && o.ObservedGeneration != nil { + return true + } + + return false +} + +// SetObservedGeneration gets a reference to the given int64 and assigns it to the ObservedGeneration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetObservedGeneration(v int64) { + o.ObservedGeneration = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetReason(v string) { + o.Reason = &v +} + +// GetStatus returns the Status field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetStatus(v string) { + o.Status = v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastTransitionTime != nil { + toSerialize["lastTransitionTime"] = o.LastTransitionTime + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.ObservedGeneration != nil { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go new file mode 100644 index 0000000..a2ca95c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go @@ -0,0 +1,217 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource Represents resource spec for nodes +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource struct { + // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + Cpu string `json:"cpu"` + // Percentage of direct memory from overall memory. Set to 0 to use default value. + DirectPercentage *int32 `json:"directPercentage,omitempty"` + // Percentage of heap memory from overall memory. Set to 0 to use default value. + HeapPercentage *int32 `json:"heapPercentage,omitempty"` + // Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + Memory string `json:"memory"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource(cpu string, memory string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource{} + this.Cpu = cpu + this.Memory = memory + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResourceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResourceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource{} + return &this +} + +// GetCpu returns the Cpu field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetCpu() string { + if o == nil { + var ret string + return ret + } + + return o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetCpuOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cpu, true +} + +// SetCpu sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetCpu(v string) { + o.Cpu = v +} + +// GetDirectPercentage returns the DirectPercentage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetDirectPercentage() int32 { + if o == nil || o.DirectPercentage == nil { + var ret int32 + return ret + } + return *o.DirectPercentage +} + +// GetDirectPercentageOk returns a tuple with the DirectPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetDirectPercentageOk() (*int32, bool) { + if o == nil || o.DirectPercentage == nil { + return nil, false + } + return o.DirectPercentage, true +} + +// HasDirectPercentage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) HasDirectPercentage() bool { + if o != nil && o.DirectPercentage != nil { + return true + } + + return false +} + +// SetDirectPercentage gets a reference to the given int32 and assigns it to the DirectPercentage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetDirectPercentage(v int32) { + o.DirectPercentage = &v +} + +// GetHeapPercentage returns the HeapPercentage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetHeapPercentage() int32 { + if o == nil || o.HeapPercentage == nil { + var ret int32 + return ret + } + return *o.HeapPercentage +} + +// GetHeapPercentageOk returns a tuple with the HeapPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetHeapPercentageOk() (*int32, bool) { + if o == nil || o.HeapPercentage == nil { + return nil, false + } + return o.HeapPercentage, true +} + +// HasHeapPercentage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) HasHeapPercentage() bool { + if o != nil && o.HeapPercentage != nil { + return true + } + + return false +} + +// SetHeapPercentage gets a reference to the given int32 and assigns it to the HeapPercentage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetHeapPercentage(v int32) { + o.HeapPercentage = &v +} + +// GetMemory returns the Memory field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetMemory() string { + if o == nil { + var ret string + return ret + } + + return o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) GetMemoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Memory, true +} + +// SetMemory sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) SetMemory(v string) { + o.Memory = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cpu"] = o.Cpu + } + if o.DirectPercentage != nil { + toSerialize["directPercentage"] = o.DirectPercentage + } + if o.HeapPercentage != nil { + toSerialize["heapPercentage"] = o.HeapPercentage + } + if true { + toSerialize["memory"] = o.Memory + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go new file mode 100644 index 0000000..0abd121 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet MonitorSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go new file mode 100644 index 0000000..1a18e02 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go new file mode 100644 index 0000000..c351be5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go @@ -0,0 +1,229 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec MonitorSetSpec defines the desired state of MonitorSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec struct { + // AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. + AvailabilityMode *string `json:"availabilityMode,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` + // Replicas is the desired number of monitoring servers. If unspecified, defaults to 1. + Replicas *int32 `json:"replicas,omitempty"` + Selector *V1LabelSelector `json:"selector,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec{} + return &this +} + +// GetAvailabilityMode returns the AvailabilityMode field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetAvailabilityMode() string { + if o == nil || o.AvailabilityMode == nil { + var ret string + return ret + } + return *o.AvailabilityMode +} + +// GetAvailabilityModeOk returns a tuple with the AvailabilityMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetAvailabilityModeOk() (*string, bool) { + if o == nil || o.AvailabilityMode == nil { + return nil, false + } + return o.AvailabilityMode, true +} + +// HasAvailabilityMode returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasAvailabilityMode() bool { + if o != nil && o.AvailabilityMode != nil { + return true + } + + return false +} + +// SetAvailabilityMode gets a reference to the given string and assigns it to the AvailabilityMode field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetAvailabilityMode(v string) { + o.AvailabilityMode = &v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetReplicas returns the Replicas field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetReplicas() int32 { + if o == nil || o.Replicas == nil { + var ret int32 + return ret + } + return *o.Replicas +} + +// GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetReplicasOk() (*int32, bool) { + if o == nil || o.Replicas == nil { + return nil, false + } + return o.Replicas, true +} + +// HasReplicas returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasReplicas() bool { + if o != nil && o.Replicas != nil { + return true + } + + return false +} + +// SetReplicas gets a reference to the given int32 and assigns it to the Replicas field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetReplicas(v int32) { + o.Replicas = &v +} + +// GetSelector returns the Selector field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetSelector() V1LabelSelector { + if o == nil || o.Selector == nil { + var ret V1LabelSelector + return ret + } + return *o.Selector +} + +// GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) GetSelectorOk() (*V1LabelSelector, bool) { + if o == nil || o.Selector == nil { + return nil, false + } + return o.Selector, true +} + +// HasSelector returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) HasSelector() bool { + if o != nil && o.Selector != nil { + return true + } + + return false +} + +// SetSelector gets a reference to the given V1LabelSelector and assigns it to the Selector field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) SetSelector(v V1LabelSelector) { + o.Selector = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityMode != nil { + toSerialize["availabilityMode"] = o.AvailabilityMode + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.Replicas != nil { + toSerialize["replicas"] = o.Replicas + } + if o.Selector != nil { + toSerialize["selector"] = o.Selector + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go new file mode 100644 index 0000000..423f22f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus MonitorSetStatus defines the observed state of MonitorSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go new file mode 100644 index 0000000..3c91b3c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference struct { + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference(name string, namespace string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference{} + this.Name = name + this.Namespace = namespace + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) SetNamespace(v string) { + o.Namespace = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go new file mode 100644 index 0000000..288bcd5 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig struct { + Namespaces []string `json:"namespaces"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig(namespaces []string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig{} + this.Namespaces = namespaces + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfigWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfigWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig{} + return &this +} + +// GetNamespaces returns the Namespaces field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) GetNamespaces() []string { + if o == nil { + var ret []string + return ret + } + + return o.Namespaces +} + +// GetNamespacesOk returns a tuple with the Namespaces field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) GetNamespacesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Namespaces, true +} + +// SetNamespaces sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) SetNamespaces(v []string) { + o.Namespaces = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["namespaces"] = o.Namespaces + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go new file mode 100644 index 0000000..6858c63 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec struct { + // NodeType defines the request node specification type + NodeType *string `json:"nodeType,omitempty"` + // StorageSize defines the size of the storage + StorageSize *string `json:"storageSize,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec{} + return &this +} + +// GetNodeType returns the NodeType field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetNodeType() string { + if o == nil || o.NodeType == nil { + var ret string + return ret + } + return *o.NodeType +} + +// GetNodeTypeOk returns a tuple with the NodeType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetNodeTypeOk() (*string, bool) { + if o == nil || o.NodeType == nil { + return nil, false + } + return o.NodeType, true +} + +// HasNodeType returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) HasNodeType() bool { + if o != nil && o.NodeType != nil { + return true + } + + return false +} + +// SetNodeType gets a reference to the given string and assigns it to the NodeType field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) SetNodeType(v string) { + o.NodeType = &v +} + +// GetStorageSize returns the StorageSize field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetStorageSize() string { + if o == nil || o.StorageSize == nil { + var ret string + return ret + } + return *o.StorageSize +} + +// GetStorageSizeOk returns a tuple with the StorageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) GetStorageSizeOk() (*string, bool) { + if o == nil || o.StorageSize == nil { + return nil, false + } + return o.StorageSize, true +} + +// HasStorageSize returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) HasStorageSize() bool { + if o != nil && o.StorageSize != nil { + return true + } + + return false +} + +// SetStorageSize gets a reference to the given string and assigns it to the StorageSize field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) SetStorageSize(v string) { + o.StorageSize = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.NodeType != nil { + toSerialize["nodeType"] = o.NodeType + } + if o.StorageSize != nil { + toSerialize["storageSize"] = o.StorageSize + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go new file mode 100644 index 0000000..03d0353 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ZooKeeperSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go new file mode 100644 index 0000000..e0bddb6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go new file mode 100644 index 0000000..9571298 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ZooKeeperSetOption +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go new file mode 100644 index 0000000..80c294a --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList(items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go new file mode 100644 index 0000000..7a120e3 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go @@ -0,0 +1,112 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec ZooKeeperSetOptionSpec defines a reference to a Pool +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec struct { + ZooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference `json:"zooKeeperSetRef"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec(zooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec{} + this.ZooKeeperSetRef = zooKeeperSetRef + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec{} + return &this +} + +// GetZooKeeperSetRef returns the ZooKeeperSetRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) GetZooKeeperSetRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference + return ret + } + + return o.ZooKeeperSetRef +} + +// GetZooKeeperSetRefOk returns a tuple with the ZooKeeperSetRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) GetZooKeeperSetRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference, bool) { + if o == nil { + return nil, false + } + return &o.ZooKeeperSetRef, true +} + +// SetZooKeeperSetRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) SetZooKeeperSetRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) { + o.ZooKeeperSetRef = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["zooKeeperSetRef"] = o.ZooKeeperSetRef + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go new file mode 100644 index 0000000..101158f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus struct { + // Conditions is an array of current observed ZooKeeperSetOptionStatus conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go new file mode 100644 index 0000000..c2d2a35 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference struct { + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference(name string) *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go new file mode 100644 index 0000000..98d0c50 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go @@ -0,0 +1,375 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec ZooKeeperSetSpec defines the desired state of ZooKeeperSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec struct { + // AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. + AvailabilityMode *string `json:"availabilityMode,omitempty"` + // Image name is the name of the image to deploy. + Image *string `json:"image,omitempty"` + // Image pull policy, one of Always, Never, IfNotPresent, default to Always. + ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` + // Replicas is the desired number of ZooKeeper servers. If unspecified, defaults to 1. + Replicas *int32 `json:"replicas,omitempty"` + ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec `json:"resourceSpec,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource `json:"resources,omitempty"` + Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig `json:"sharing,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec{} + return &this +} + +// GetAvailabilityMode returns the AvailabilityMode field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetAvailabilityMode() string { + if o == nil || o.AvailabilityMode == nil { + var ret string + return ret + } + return *o.AvailabilityMode +} + +// GetAvailabilityModeOk returns a tuple with the AvailabilityMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetAvailabilityModeOk() (*string, bool) { + if o == nil || o.AvailabilityMode == nil { + return nil, false + } + return o.AvailabilityMode, true +} + +// HasAvailabilityMode returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasAvailabilityMode() bool { + if o != nil && o.AvailabilityMode != nil { + return true + } + + return false +} + +// SetAvailabilityMode gets a reference to the given string and assigns it to the AvailabilityMode field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetAvailabilityMode(v string) { + o.AvailabilityMode = &v +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImage() string { + if o == nil || o.Image == nil { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImageOk() (*string, bool) { + if o == nil || o.Image == nil { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasImage() bool { + if o != nil && o.Image != nil { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetImage(v string) { + o.Image = &v +} + +// GetImagePullPolicy returns the ImagePullPolicy field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImagePullPolicy() string { + if o == nil || o.ImagePullPolicy == nil { + var ret string + return ret + } + return *o.ImagePullPolicy +} + +// GetImagePullPolicyOk returns a tuple with the ImagePullPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetImagePullPolicyOk() (*string, bool) { + if o == nil || o.ImagePullPolicy == nil { + return nil, false + } + return o.ImagePullPolicy, true +} + +// HasImagePullPolicy returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasImagePullPolicy() bool { + if o != nil && o.ImagePullPolicy != nil { + return true + } + + return false +} + +// SetImagePullPolicy gets a reference to the given string and assigns it to the ImagePullPolicy field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetImagePullPolicy(v string) { + o.ImagePullPolicy = &v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetReplicas returns the Replicas field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetReplicas() int32 { + if o == nil || o.Replicas == nil { + var ret int32 + return ret + } + return *o.Replicas +} + +// GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetReplicasOk() (*int32, bool) { + if o == nil || o.Replicas == nil { + return nil, false + } + return o.Replicas, true +} + +// HasReplicas returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasReplicas() bool { + if o != nil && o.Replicas != nil { + return true + } + + return false +} + +// SetReplicas gets a reference to the given int32 and assigns it to the Replicas field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetReplicas(v int32) { + o.Replicas = &v +} + +// GetResourceSpec returns the ResourceSpec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResourceSpec() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec { + if o == nil || o.ResourceSpec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec + return ret + } + return *o.ResourceSpec +} + +// GetResourceSpecOk returns a tuple with the ResourceSpec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResourceSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec, bool) { + if o == nil || o.ResourceSpec == nil { + return nil, false + } + return o.ResourceSpec, true +} + +// HasResourceSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasResourceSpec() bool { + if o != nil && o.ResourceSpec != nil { + return true + } + + return false +} + +// SetResourceSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec and assigns it to the ResourceSpec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetResourceSpec(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec) { + o.ResourceSpec = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResources() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource { + if o == nil || o.Resources == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource and assigns it to the Resources field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource) { + o.Resources = &v +} + +// GetSharing returns the Sharing field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetSharing() ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig { + if o == nil || o.Sharing == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig + return ret + } + return *o.Sharing +} + +// GetSharingOk returns a tuple with the Sharing field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) GetSharingOk() (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig, bool) { + if o == nil || o.Sharing == nil { + return nil, false + } + return o.Sharing, true +} + +// HasSharing returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) HasSharing() bool { + if o != nil && o.Sharing != nil { + return true + } + + return false +} + +// SetSharing gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig and assigns it to the Sharing field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) SetSharing(v ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig) { + o.Sharing = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailabilityMode != nil { + toSerialize["availabilityMode"] = o.AvailabilityMode + } + if o.Image != nil { + toSerialize["image"] = o.Image + } + if o.ImagePullPolicy != nil { + toSerialize["imagePullPolicy"] = o.ImagePullPolicy + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.Replicas != nil { + toSerialize["replicas"] = o.Replicas + } + if o.ResourceSpec != nil { + toSerialize["resourceSpec"] = o.ResourceSpec + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + if o.Sharing != nil { + toSerialize["sharing"] = o.Sharing + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go new file mode 100644 index 0000000..e1783f4 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus ZooKeeperSetStatus defines the observed state of ZooKeeperSet +type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus struct { + // ClusterConnectionString is a connection string for client connectivity within the cluster. + ClusterConnectionString *string `json:"clusterConnectionString,omitempty"` + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus{} + return &this +} + +// GetClusterConnectionString returns the ClusterConnectionString field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetClusterConnectionString() string { + if o == nil || o.ClusterConnectionString == nil { + var ret string + return ret + } + return *o.ClusterConnectionString +} + +// GetClusterConnectionStringOk returns a tuple with the ClusterConnectionString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetClusterConnectionStringOk() (*string, bool) { + if o == nil || o.ClusterConnectionString == nil { + return nil, false + } + return o.ClusterConnectionString, true +} + +// HasClusterConnectionString returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) HasClusterConnectionString() bool { + if o != nil && o.ClusterConnectionString != nil { + return true + } + + return false +} + +// SetClusterConnectionString gets a reference to the given string and assigns it to the ClusterConnectionString field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) SetClusterConnectionString(v string) { + o.ClusterConnectionString = &v +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ClusterConnectionString != nil { + toSerialize["clusterConnectionString"] = o.ClusterConnectionString + } + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus(val *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go new file mode 100644 index 0000000..767a765 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go @@ -0,0 +1,659 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact Artifact is the artifact configs to deploy. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact struct { + AdditionalDependencies []string `json:"additionalDependencies,omitempty"` + AdditionalPythonArchives []string `json:"additionalPythonArchives,omitempty"` + AdditionalPythonLibraries []string `json:"additionalPythonLibraries,omitempty"` + ArtifactKind *string `json:"artifactKind,omitempty"` + EntryClass *string `json:"entryClass,omitempty"` + EntryModule *string `json:"entryModule,omitempty"` + FlinkImageRegistry *string `json:"flinkImageRegistry,omitempty"` + FlinkImageRepository *string `json:"flinkImageRepository,omitempty"` + FlinkImageTag *string `json:"flinkImageTag,omitempty"` + FlinkVersion *string `json:"flinkVersion,omitempty"` + JarUri *string `json:"jarUri,omitempty"` + Kind *string `json:"kind,omitempty"` + MainArgs *string `json:"mainArgs,omitempty"` + PythonArtifactUri *string `json:"pythonArtifactUri,omitempty"` + SqlScript *string `json:"sqlScript,omitempty"` + Uri *string `json:"uri,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ArtifactWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ArtifactWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact{} + return &this +} + +// GetAdditionalDependencies returns the AdditionalDependencies field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalDependencies() []string { + if o == nil || o.AdditionalDependencies == nil { + var ret []string + return ret + } + return o.AdditionalDependencies +} + +// GetAdditionalDependenciesOk returns a tuple with the AdditionalDependencies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalDependenciesOk() ([]string, bool) { + if o == nil || o.AdditionalDependencies == nil { + return nil, false + } + return o.AdditionalDependencies, true +} + +// HasAdditionalDependencies returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasAdditionalDependencies() bool { + if o != nil && o.AdditionalDependencies != nil { + return true + } + + return false +} + +// SetAdditionalDependencies gets a reference to the given []string and assigns it to the AdditionalDependencies field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetAdditionalDependencies(v []string) { + o.AdditionalDependencies = v +} + +// GetAdditionalPythonArchives returns the AdditionalPythonArchives field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonArchives() []string { + if o == nil || o.AdditionalPythonArchives == nil { + var ret []string + return ret + } + return o.AdditionalPythonArchives +} + +// GetAdditionalPythonArchivesOk returns a tuple with the AdditionalPythonArchives field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonArchivesOk() ([]string, bool) { + if o == nil || o.AdditionalPythonArchives == nil { + return nil, false + } + return o.AdditionalPythonArchives, true +} + +// HasAdditionalPythonArchives returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasAdditionalPythonArchives() bool { + if o != nil && o.AdditionalPythonArchives != nil { + return true + } + + return false +} + +// SetAdditionalPythonArchives gets a reference to the given []string and assigns it to the AdditionalPythonArchives field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetAdditionalPythonArchives(v []string) { + o.AdditionalPythonArchives = v +} + +// GetAdditionalPythonLibraries returns the AdditionalPythonLibraries field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonLibraries() []string { + if o == nil || o.AdditionalPythonLibraries == nil { + var ret []string + return ret + } + return o.AdditionalPythonLibraries +} + +// GetAdditionalPythonLibrariesOk returns a tuple with the AdditionalPythonLibraries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetAdditionalPythonLibrariesOk() ([]string, bool) { + if o == nil || o.AdditionalPythonLibraries == nil { + return nil, false + } + return o.AdditionalPythonLibraries, true +} + +// HasAdditionalPythonLibraries returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasAdditionalPythonLibraries() bool { + if o != nil && o.AdditionalPythonLibraries != nil { + return true + } + + return false +} + +// SetAdditionalPythonLibraries gets a reference to the given []string and assigns it to the AdditionalPythonLibraries field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetAdditionalPythonLibraries(v []string) { + o.AdditionalPythonLibraries = v +} + +// GetArtifactKind returns the ArtifactKind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetArtifactKind() string { + if o == nil || o.ArtifactKind == nil { + var ret string + return ret + } + return *o.ArtifactKind +} + +// GetArtifactKindOk returns a tuple with the ArtifactKind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetArtifactKindOk() (*string, bool) { + if o == nil || o.ArtifactKind == nil { + return nil, false + } + return o.ArtifactKind, true +} + +// HasArtifactKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasArtifactKind() bool { + if o != nil && o.ArtifactKind != nil { + return true + } + + return false +} + +// SetArtifactKind gets a reference to the given string and assigns it to the ArtifactKind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetArtifactKind(v string) { + o.ArtifactKind = &v +} + +// GetEntryClass returns the EntryClass field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryClass() string { + if o == nil || o.EntryClass == nil { + var ret string + return ret + } + return *o.EntryClass +} + +// GetEntryClassOk returns a tuple with the EntryClass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryClassOk() (*string, bool) { + if o == nil || o.EntryClass == nil { + return nil, false + } + return o.EntryClass, true +} + +// HasEntryClass returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasEntryClass() bool { + if o != nil && o.EntryClass != nil { + return true + } + + return false +} + +// SetEntryClass gets a reference to the given string and assigns it to the EntryClass field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetEntryClass(v string) { + o.EntryClass = &v +} + +// GetEntryModule returns the EntryModule field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryModule() string { + if o == nil || o.EntryModule == nil { + var ret string + return ret + } + return *o.EntryModule +} + +// GetEntryModuleOk returns a tuple with the EntryModule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetEntryModuleOk() (*string, bool) { + if o == nil || o.EntryModule == nil { + return nil, false + } + return o.EntryModule, true +} + +// HasEntryModule returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasEntryModule() bool { + if o != nil && o.EntryModule != nil { + return true + } + + return false +} + +// SetEntryModule gets a reference to the given string and assigns it to the EntryModule field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetEntryModule(v string) { + o.EntryModule = &v +} + +// GetFlinkImageRegistry returns the FlinkImageRegistry field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRegistry() string { + if o == nil || o.FlinkImageRegistry == nil { + var ret string + return ret + } + return *o.FlinkImageRegistry +} + +// GetFlinkImageRegistryOk returns a tuple with the FlinkImageRegistry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRegistryOk() (*string, bool) { + if o == nil || o.FlinkImageRegistry == nil { + return nil, false + } + return o.FlinkImageRegistry, true +} + +// HasFlinkImageRegistry returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkImageRegistry() bool { + if o != nil && o.FlinkImageRegistry != nil { + return true + } + + return false +} + +// SetFlinkImageRegistry gets a reference to the given string and assigns it to the FlinkImageRegistry field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkImageRegistry(v string) { + o.FlinkImageRegistry = &v +} + +// GetFlinkImageRepository returns the FlinkImageRepository field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRepository() string { + if o == nil || o.FlinkImageRepository == nil { + var ret string + return ret + } + return *o.FlinkImageRepository +} + +// GetFlinkImageRepositoryOk returns a tuple with the FlinkImageRepository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageRepositoryOk() (*string, bool) { + if o == nil || o.FlinkImageRepository == nil { + return nil, false + } + return o.FlinkImageRepository, true +} + +// HasFlinkImageRepository returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkImageRepository() bool { + if o != nil && o.FlinkImageRepository != nil { + return true + } + + return false +} + +// SetFlinkImageRepository gets a reference to the given string and assigns it to the FlinkImageRepository field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkImageRepository(v string) { + o.FlinkImageRepository = &v +} + +// GetFlinkImageTag returns the FlinkImageTag field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageTag() string { + if o == nil || o.FlinkImageTag == nil { + var ret string + return ret + } + return *o.FlinkImageTag +} + +// GetFlinkImageTagOk returns a tuple with the FlinkImageTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkImageTagOk() (*string, bool) { + if o == nil || o.FlinkImageTag == nil { + return nil, false + } + return o.FlinkImageTag, true +} + +// HasFlinkImageTag returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkImageTag() bool { + if o != nil && o.FlinkImageTag != nil { + return true + } + + return false +} + +// SetFlinkImageTag gets a reference to the given string and assigns it to the FlinkImageTag field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkImageTag(v string) { + o.FlinkImageTag = &v +} + +// GetFlinkVersion returns the FlinkVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkVersion() string { + if o == nil || o.FlinkVersion == nil { + var ret string + return ret + } + return *o.FlinkVersion +} + +// GetFlinkVersionOk returns a tuple with the FlinkVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetFlinkVersionOk() (*string, bool) { + if o == nil || o.FlinkVersion == nil { + return nil, false + } + return o.FlinkVersion, true +} + +// HasFlinkVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasFlinkVersion() bool { + if o != nil && o.FlinkVersion != nil { + return true + } + + return false +} + +// SetFlinkVersion gets a reference to the given string and assigns it to the FlinkVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetFlinkVersion(v string) { + o.FlinkVersion = &v +} + +// GetJarUri returns the JarUri field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetJarUri() string { + if o == nil || o.JarUri == nil { + var ret string + return ret + } + return *o.JarUri +} + +// GetJarUriOk returns a tuple with the JarUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetJarUriOk() (*string, bool) { + if o == nil || o.JarUri == nil { + return nil, false + } + return o.JarUri, true +} + +// HasJarUri returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasJarUri() bool { + if o != nil && o.JarUri != nil { + return true + } + + return false +} + +// SetJarUri gets a reference to the given string and assigns it to the JarUri field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetJarUri(v string) { + o.JarUri = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetKind(v string) { + o.Kind = &v +} + +// GetMainArgs returns the MainArgs field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetMainArgs() string { + if o == nil || o.MainArgs == nil { + var ret string + return ret + } + return *o.MainArgs +} + +// GetMainArgsOk returns a tuple with the MainArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetMainArgsOk() (*string, bool) { + if o == nil || o.MainArgs == nil { + return nil, false + } + return o.MainArgs, true +} + +// HasMainArgs returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasMainArgs() bool { + if o != nil && o.MainArgs != nil { + return true + } + + return false +} + +// SetMainArgs gets a reference to the given string and assigns it to the MainArgs field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetMainArgs(v string) { + o.MainArgs = &v +} + +// GetPythonArtifactUri returns the PythonArtifactUri field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetPythonArtifactUri() string { + if o == nil || o.PythonArtifactUri == nil { + var ret string + return ret + } + return *o.PythonArtifactUri +} + +// GetPythonArtifactUriOk returns a tuple with the PythonArtifactUri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetPythonArtifactUriOk() (*string, bool) { + if o == nil || o.PythonArtifactUri == nil { + return nil, false + } + return o.PythonArtifactUri, true +} + +// HasPythonArtifactUri returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasPythonArtifactUri() bool { + if o != nil && o.PythonArtifactUri != nil { + return true + } + + return false +} + +// SetPythonArtifactUri gets a reference to the given string and assigns it to the PythonArtifactUri field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetPythonArtifactUri(v string) { + o.PythonArtifactUri = &v +} + +// GetSqlScript returns the SqlScript field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetSqlScript() string { + if o == nil || o.SqlScript == nil { + var ret string + return ret + } + return *o.SqlScript +} + +// GetSqlScriptOk returns a tuple with the SqlScript field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetSqlScriptOk() (*string, bool) { + if o == nil || o.SqlScript == nil { + return nil, false + } + return o.SqlScript, true +} + +// HasSqlScript returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasSqlScript() bool { + if o != nil && o.SqlScript != nil { + return true + } + + return false +} + +// SetSqlScript gets a reference to the given string and assigns it to the SqlScript field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetSqlScript(v string) { + o.SqlScript = &v +} + +// GetUri returns the Uri field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetUri() string { + if o == nil || o.Uri == nil { + var ret string + return ret + } + return *o.Uri +} + +// GetUriOk returns a tuple with the Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) GetUriOk() (*string, bool) { + if o == nil || o.Uri == nil { + return nil, false + } + return o.Uri, true +} + +// HasUri returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) HasUri() bool { + if o != nil && o.Uri != nil { + return true + } + + return false +} + +// SetUri gets a reference to the given string and assigns it to the Uri field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) SetUri(v string) { + o.Uri = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AdditionalDependencies != nil { + toSerialize["additionalDependencies"] = o.AdditionalDependencies + } + if o.AdditionalPythonArchives != nil { + toSerialize["additionalPythonArchives"] = o.AdditionalPythonArchives + } + if o.AdditionalPythonLibraries != nil { + toSerialize["additionalPythonLibraries"] = o.AdditionalPythonLibraries + } + if o.ArtifactKind != nil { + toSerialize["artifactKind"] = o.ArtifactKind + } + if o.EntryClass != nil { + toSerialize["entryClass"] = o.EntryClass + } + if o.EntryModule != nil { + toSerialize["entryModule"] = o.EntryModule + } + if o.FlinkImageRegistry != nil { + toSerialize["flinkImageRegistry"] = o.FlinkImageRegistry + } + if o.FlinkImageRepository != nil { + toSerialize["flinkImageRepository"] = o.FlinkImageRepository + } + if o.FlinkImageTag != nil { + toSerialize["flinkImageTag"] = o.FlinkImageTag + } + if o.FlinkVersion != nil { + toSerialize["flinkVersion"] = o.FlinkVersion + } + if o.JarUri != nil { + toSerialize["jarUri"] = o.JarUri + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.MainArgs != nil { + toSerialize["mainArgs"] = o.MainArgs + } + if o.PythonArtifactUri != nil { + toSerialize["pythonArtifactUri"] = o.PythonArtifactUri + } + if o.SqlScript != nil { + toSerialize["sqlScript"] = o.SqlScript + } + if o.Uri != nil { + toSerialize["uri"] = o.Uri + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go new file mode 100644 index 0000000..4b49f0e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go @@ -0,0 +1,288 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind. Conditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition struct { + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition(status string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition{} + this.Status = status + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition{} + return &this +} + +// GetLastTransitionTime returns the LastTransitionTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetLastTransitionTime() time.Time { + if o == nil || o.LastTransitionTime == nil { + var ret time.Time + return ret + } + return *o.LastTransitionTime +} + +// GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetLastTransitionTimeOk() (*time.Time, bool) { + if o == nil || o.LastTransitionTime == nil { + return nil, false + } + return o.LastTransitionTime, true +} + +// HasLastTransitionTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasLastTransitionTime() bool { + if o != nil && o.LastTransitionTime != nil { + return true + } + + return false +} + +// SetLastTransitionTime gets a reference to the given time.Time and assigns it to the LastTransitionTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetLastTransitionTime(v time.Time) { + o.LastTransitionTime = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetMessage(v string) { + o.Message = &v +} + +// GetObservedGeneration returns the ObservedGeneration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetObservedGeneration() int64 { + if o == nil || o.ObservedGeneration == nil { + var ret int64 + return ret + } + return *o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetObservedGenerationOk() (*int64, bool) { + if o == nil || o.ObservedGeneration == nil { + return nil, false + } + return o.ObservedGeneration, true +} + +// HasObservedGeneration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasObservedGeneration() bool { + if o != nil && o.ObservedGeneration != nil { + return true + } + + return false +} + +// SetObservedGeneration gets a reference to the given int64 and assigns it to the ObservedGeneration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetObservedGeneration(v int64) { + o.ObservedGeneration = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetReason(v string) { + o.Reason = &v +} + +// GetStatus returns the Status field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetStatus(v string) { + o.Status = v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastTransitionTime != nil { + toSerialize["lastTransitionTime"] = o.LastTransitionTime + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.ObservedGeneration != nil { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go new file mode 100644 index 0000000..fe8270e --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go @@ -0,0 +1,589 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container A single application container that you want to run within a pod. The Container API from the core group is not used directly to avoid unneeded fields and reduce the size of the CRD. New fields could be added as needed. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container struct { + // Arguments to the entrypoint. + Args []string `json:"args,omitempty"` + // Entrypoint array. Not executed within a shell. + Command []string `json:"command,omitempty"` + // List of environment variables to set in the container. + Env []V1EnvVar `json:"env,omitempty"` + // List of sources to populate environment variables in the container. + EnvFrom []V1EnvFromSource `json:"envFrom,omitempty"` + // Docker image name. + Image *string `json:"image,omitempty"` + // Image pull policy. Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` + LivenessProbe *V1Probe `json:"livenessProbe,omitempty"` + // Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). + Name string `json:"name"` + ReadinessProbe *V1Probe `json:"readinessProbe,omitempty"` + Resources *V1ResourceRequirements `json:"resources,omitempty"` + SecurityContext *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext `json:"securityContext,omitempty"` + StartupProbe *V1Probe `json:"startupProbe,omitempty"` + // Pod volumes to mount into the container's filesystem. + VolumeMounts []V1VolumeMount `json:"volumeMounts,omitempty"` + // Container's working directory. + WorkingDir *string `json:"workingDir,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container(name string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ContainerWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ContainerWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container{} + return &this +} + +// GetArgs returns the Args field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetArgs() []string { + if o == nil || o.Args == nil { + var ret []string + return ret + } + return o.Args +} + +// GetArgsOk returns a tuple with the Args field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetArgsOk() ([]string, bool) { + if o == nil || o.Args == nil { + return nil, false + } + return o.Args, true +} + +// HasArgs returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasArgs() bool { + if o != nil && o.Args != nil { + return true + } + + return false +} + +// SetArgs gets a reference to the given []string and assigns it to the Args field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetArgs(v []string) { + o.Args = v +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetCommand() []string { + if o == nil || o.Command == nil { + var ret []string + return ret + } + return o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetCommandOk() ([]string, bool) { + if o == nil || o.Command == nil { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasCommand() bool { + if o != nil && o.Command != nil { + return true + } + + return false +} + +// SetCommand gets a reference to the given []string and assigns it to the Command field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetCommand(v []string) { + o.Command = v +} + +// GetEnv returns the Env field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnv() []V1EnvVar { + if o == nil || o.Env == nil { + var ret []V1EnvVar + return ret + } + return o.Env +} + +// GetEnvOk returns a tuple with the Env field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnvOk() ([]V1EnvVar, bool) { + if o == nil || o.Env == nil { + return nil, false + } + return o.Env, true +} + +// HasEnv returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasEnv() bool { + if o != nil && o.Env != nil { + return true + } + + return false +} + +// SetEnv gets a reference to the given []V1EnvVar and assigns it to the Env field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetEnv(v []V1EnvVar) { + o.Env = v +} + +// GetEnvFrom returns the EnvFrom field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnvFrom() []V1EnvFromSource { + if o == nil || o.EnvFrom == nil { + var ret []V1EnvFromSource + return ret + } + return o.EnvFrom +} + +// GetEnvFromOk returns a tuple with the EnvFrom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetEnvFromOk() ([]V1EnvFromSource, bool) { + if o == nil || o.EnvFrom == nil { + return nil, false + } + return o.EnvFrom, true +} + +// HasEnvFrom returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasEnvFrom() bool { + if o != nil && o.EnvFrom != nil { + return true + } + + return false +} + +// SetEnvFrom gets a reference to the given []V1EnvFromSource and assigns it to the EnvFrom field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetEnvFrom(v []V1EnvFromSource) { + o.EnvFrom = v +} + +// GetImage returns the Image field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImage() string { + if o == nil || o.Image == nil { + var ret string + return ret + } + return *o.Image +} + +// GetImageOk returns a tuple with the Image field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImageOk() (*string, bool) { + if o == nil || o.Image == nil { + return nil, false + } + return o.Image, true +} + +// HasImage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasImage() bool { + if o != nil && o.Image != nil { + return true + } + + return false +} + +// SetImage gets a reference to the given string and assigns it to the Image field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetImage(v string) { + o.Image = &v +} + +// GetImagePullPolicy returns the ImagePullPolicy field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImagePullPolicy() string { + if o == nil || o.ImagePullPolicy == nil { + var ret string + return ret + } + return *o.ImagePullPolicy +} + +// GetImagePullPolicyOk returns a tuple with the ImagePullPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetImagePullPolicyOk() (*string, bool) { + if o == nil || o.ImagePullPolicy == nil { + return nil, false + } + return o.ImagePullPolicy, true +} + +// HasImagePullPolicy returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasImagePullPolicy() bool { + if o != nil && o.ImagePullPolicy != nil { + return true + } + + return false +} + +// SetImagePullPolicy gets a reference to the given string and assigns it to the ImagePullPolicy field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetImagePullPolicy(v string) { + o.ImagePullPolicy = &v +} + +// GetLivenessProbe returns the LivenessProbe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetLivenessProbe() V1Probe { + if o == nil || o.LivenessProbe == nil { + var ret V1Probe + return ret + } + return *o.LivenessProbe +} + +// GetLivenessProbeOk returns a tuple with the LivenessProbe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetLivenessProbeOk() (*V1Probe, bool) { + if o == nil || o.LivenessProbe == nil { + return nil, false + } + return o.LivenessProbe, true +} + +// HasLivenessProbe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasLivenessProbe() bool { + if o != nil && o.LivenessProbe != nil { + return true + } + + return false +} + +// SetLivenessProbe gets a reference to the given V1Probe and assigns it to the LivenessProbe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetLivenessProbe(v V1Probe) { + o.LivenessProbe = &v +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetName(v string) { + o.Name = v +} + +// GetReadinessProbe returns the ReadinessProbe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetReadinessProbe() V1Probe { + if o == nil || o.ReadinessProbe == nil { + var ret V1Probe + return ret + } + return *o.ReadinessProbe +} + +// GetReadinessProbeOk returns a tuple with the ReadinessProbe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetReadinessProbeOk() (*V1Probe, bool) { + if o == nil || o.ReadinessProbe == nil { + return nil, false + } + return o.ReadinessProbe, true +} + +// HasReadinessProbe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasReadinessProbe() bool { + if o != nil && o.ReadinessProbe != nil { + return true + } + + return false +} + +// SetReadinessProbe gets a reference to the given V1Probe and assigns it to the ReadinessProbe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetReadinessProbe(v V1Probe) { + o.ReadinessProbe = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetResources() V1ResourceRequirements { + if o == nil || o.Resources == nil { + var ret V1ResourceRequirements + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetResourcesOk() (*V1ResourceRequirements, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given V1ResourceRequirements and assigns it to the Resources field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetResources(v V1ResourceRequirements) { + o.Resources = &v +} + +// GetSecurityContext returns the SecurityContext field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetSecurityContext() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext { + if o == nil || o.SecurityContext == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext + return ret + } + return *o.SecurityContext +} + +// GetSecurityContextOk returns a tuple with the SecurityContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetSecurityContextOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext, bool) { + if o == nil || o.SecurityContext == nil { + return nil, false + } + return o.SecurityContext, true +} + +// HasSecurityContext returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasSecurityContext() bool { + if o != nil && o.SecurityContext != nil { + return true + } + + return false +} + +// SetSecurityContext gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext and assigns it to the SecurityContext field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetSecurityContext(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) { + o.SecurityContext = &v +} + +// GetStartupProbe returns the StartupProbe field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetStartupProbe() V1Probe { + if o == nil || o.StartupProbe == nil { + var ret V1Probe + return ret + } + return *o.StartupProbe +} + +// GetStartupProbeOk returns a tuple with the StartupProbe field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetStartupProbeOk() (*V1Probe, bool) { + if o == nil || o.StartupProbe == nil { + return nil, false + } + return o.StartupProbe, true +} + +// HasStartupProbe returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasStartupProbe() bool { + if o != nil && o.StartupProbe != nil { + return true + } + + return false +} + +// SetStartupProbe gets a reference to the given V1Probe and assigns it to the StartupProbe field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetStartupProbe(v V1Probe) { + o.StartupProbe = &v +} + +// GetVolumeMounts returns the VolumeMounts field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetVolumeMounts() []V1VolumeMount { + if o == nil || o.VolumeMounts == nil { + var ret []V1VolumeMount + return ret + } + return o.VolumeMounts +} + +// GetVolumeMountsOk returns a tuple with the VolumeMounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetVolumeMountsOk() ([]V1VolumeMount, bool) { + if o == nil || o.VolumeMounts == nil { + return nil, false + } + return o.VolumeMounts, true +} + +// HasVolumeMounts returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasVolumeMounts() bool { + if o != nil && o.VolumeMounts != nil { + return true + } + + return false +} + +// SetVolumeMounts gets a reference to the given []V1VolumeMount and assigns it to the VolumeMounts field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetVolumeMounts(v []V1VolumeMount) { + o.VolumeMounts = v +} + +// GetWorkingDir returns the WorkingDir field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetWorkingDir() string { + if o == nil || o.WorkingDir == nil { + var ret string + return ret + } + return *o.WorkingDir +} + +// GetWorkingDirOk returns a tuple with the WorkingDir field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) GetWorkingDirOk() (*string, bool) { + if o == nil || o.WorkingDir == nil { + return nil, false + } + return o.WorkingDir, true +} + +// HasWorkingDir returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) HasWorkingDir() bool { + if o != nil && o.WorkingDir != nil { + return true + } + + return false +} + +// SetWorkingDir gets a reference to the given string and assigns it to the WorkingDir field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) SetWorkingDir(v string) { + o.WorkingDir = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Args != nil { + toSerialize["args"] = o.Args + } + if o.Command != nil { + toSerialize["command"] = o.Command + } + if o.Env != nil { + toSerialize["env"] = o.Env + } + if o.EnvFrom != nil { + toSerialize["envFrom"] = o.EnvFrom + } + if o.Image != nil { + toSerialize["image"] = o.Image + } + if o.ImagePullPolicy != nil { + toSerialize["imagePullPolicy"] = o.ImagePullPolicy + } + if o.LivenessProbe != nil { + toSerialize["livenessProbe"] = o.LivenessProbe + } + if true { + toSerialize["name"] = o.Name + } + if o.ReadinessProbe != nil { + toSerialize["readinessProbe"] = o.ReadinessProbe + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + if o.SecurityContext != nil { + toSerialize["securityContext"] = o.SecurityContext + } + if o.StartupProbe != nil { + toSerialize["startupProbe"] = o.StartupProbe + } + if o.VolumeMounts != nil { + toSerialize["volumeMounts"] = o.VolumeMounts + } + if o.WorkingDir != nil { + toSerialize["workingDir"] = o.WorkingDir + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go new file mode 100644 index 0000000..df9c291 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage FlinkBlobStorage defines the configuration for the Flink blob storage. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage struct { + // Bucket is required if you want to use cloud storage. + Bucket *string `json:"bucket,omitempty"` + // Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket. + Path *string `json:"path,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorageWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorageWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage{} + return &this +} + +// GetBucket returns the Bucket field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetBucket() string { + if o == nil || o.Bucket == nil { + var ret string + return ret + } + return *o.Bucket +} + +// GetBucketOk returns a tuple with the Bucket field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetBucketOk() (*string, bool) { + if o == nil || o.Bucket == nil { + return nil, false + } + return o.Bucket, true +} + +// HasBucket returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) HasBucket() bool { + if o != nil && o.Bucket != nil { + return true + } + + return false +} + +// SetBucket gets a reference to the given string and assigns it to the Bucket field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) SetBucket(v string) { + o.Bucket = &v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetPath() string { + if o == nil || o.Path == nil { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) GetPathOk() (*string, bool) { + if o == nil || o.Path == nil { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) HasPath() bool { + if o != nil && o.Path != nil { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) SetPath(v string) { + o.Path = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Bucket != nil { + toSerialize["bucket"] = o.Bucket + } + if o.Path != nil { + toSerialize["path"] = o.Path + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go new file mode 100644 index 0000000..4298c35 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment FlinkDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go new file mode 100644 index 0000000..29c52f7 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList(items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go new file mode 100644 index 0000000..f8079e0 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go @@ -0,0 +1,331 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec FlinkDeploymentSpec defines the desired state of FlinkDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec struct { + Annotations *map[string]string `json:"annotations,omitempty"` + // CommunityDeploymentTemplate defines the desired state of CommunityDeployment + CommunityTemplate map[string]interface{} `json:"communityTemplate,omitempty"` + // DefaultPulsarCluster is the default pulsar cluster to use. If not provided, the controller will use the first pulsar cluster from the workspace. + DefaultPulsarCluster *string `json:"defaultPulsarCluster,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + Template *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate `json:"template,omitempty"` + // WorkspaceName is the reference to the workspace, and is required + WorkspaceName string `json:"workspaceName"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec(workspaceName string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec{} + this.WorkspaceName = workspaceName + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetCommunityTemplate returns the CommunityTemplate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetCommunityTemplate() map[string]interface{} { + if o == nil || o.CommunityTemplate == nil { + var ret map[string]interface{} + return ret + } + return o.CommunityTemplate +} + +// GetCommunityTemplateOk returns a tuple with the CommunityTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetCommunityTemplateOk() (map[string]interface{}, bool) { + if o == nil || o.CommunityTemplate == nil { + return nil, false + } + return o.CommunityTemplate, true +} + +// HasCommunityTemplate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasCommunityTemplate() bool { + if o != nil && o.CommunityTemplate != nil { + return true + } + + return false +} + +// SetCommunityTemplate gets a reference to the given map[string]interface{} and assigns it to the CommunityTemplate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetCommunityTemplate(v map[string]interface{}) { + o.CommunityTemplate = v +} + +// GetDefaultPulsarCluster returns the DefaultPulsarCluster field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetDefaultPulsarCluster() string { + if o == nil || o.DefaultPulsarCluster == nil { + var ret string + return ret + } + return *o.DefaultPulsarCluster +} + +// GetDefaultPulsarClusterOk returns a tuple with the DefaultPulsarCluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetDefaultPulsarClusterOk() (*string, bool) { + if o == nil || o.DefaultPulsarCluster == nil { + return nil, false + } + return o.DefaultPulsarCluster, true +} + +// HasDefaultPulsarCluster returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasDefaultPulsarCluster() bool { + if o != nil && o.DefaultPulsarCluster != nil { + return true + } + + return false +} + +// SetDefaultPulsarCluster gets a reference to the given string and assigns it to the DefaultPulsarCluster field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetDefaultPulsarCluster(v string) { + o.DefaultPulsarCluster = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetLabels() map[string]string { + if o == nil || o.Labels == nil { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetLabelsOk() (*map[string]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetPoolMemberRef returns the PoolMemberRef field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetPoolMemberRef() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference { + if o == nil || o.PoolMemberRef == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference + return ret + } + return *o.PoolMemberRef +} + +// GetPoolMemberRefOk returns a tuple with the PoolMemberRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetPoolMemberRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference, bool) { + if o == nil || o.PoolMemberRef == nil { + return nil, false + } + return o.PoolMemberRef, true +} + +// HasPoolMemberRef returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasPoolMemberRef() bool { + if o != nil && o.PoolMemberRef != nil { + return true + } + + return false +} + +// SetPoolMemberRef gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference and assigns it to the PoolMemberRef field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetPoolMemberRef(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) { + o.PoolMemberRef = &v +} + +// GetTemplate returns the Template field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate { + if o == nil || o.Template == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate + return ret + } + return *o.Template +} + +// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate, bool) { + if o == nil || o.Template == nil { + return nil, false + } + return o.Template, true +} + +// HasTemplate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) HasTemplate() bool { + if o != nil && o.Template != nil { + return true + } + + return false +} + +// SetTemplate gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate and assigns it to the Template field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) { + o.Template = &v +} + +// GetWorkspaceName returns the WorkspaceName field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetWorkspaceName() string { + if o == nil { + var ret string + return ret + } + + return o.WorkspaceName +} + +// GetWorkspaceNameOk returns a tuple with the WorkspaceName field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) GetWorkspaceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkspaceName, true +} + +// SetWorkspaceName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) SetWorkspaceName(v string) { + o.WorkspaceName = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if o.CommunityTemplate != nil { + toSerialize["communityTemplate"] = o.CommunityTemplate + } + if o.DefaultPulsarCluster != nil { + toSerialize["defaultPulsarCluster"] = o.DefaultPulsarCluster + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.PoolMemberRef != nil { + toSerialize["poolMemberRef"] = o.PoolMemberRef + } + if o.Template != nil { + toSerialize["template"] = o.Template + } + if true { + toSerialize["workspaceName"] = o.WorkspaceName + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go new file mode 100644 index 0000000..60082db --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go @@ -0,0 +1,193 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus FlinkDeploymentStatus defines the observed state of FlinkDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition `json:"conditions,omitempty"` + DeploymentStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus `json:"deploymentStatus,omitempty"` + // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) { + o.Conditions = v +} + +// GetDeploymentStatus returns the DeploymentStatus field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetDeploymentStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus { + if o == nil || o.DeploymentStatus == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus + return ret + } + return *o.DeploymentStatus +} + +// GetDeploymentStatusOk returns a tuple with the DeploymentStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetDeploymentStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus, bool) { + if o == nil || o.DeploymentStatus == nil { + return nil, false + } + return o.DeploymentStatus, true +} + +// HasDeploymentStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) HasDeploymentStatus() bool { + if o != nil && o.DeploymentStatus != nil { + return true + } + + return false +} + +// SetDeploymentStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus and assigns it to the DeploymentStatus field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) SetDeploymentStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) { + o.DeploymentStatus = &v +} + +// GetObservedGeneration returns the ObservedGeneration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetObservedGeneration() int64 { + if o == nil || o.ObservedGeneration == nil { + var ret int64 + return ret + } + return *o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) GetObservedGenerationOk() (*int64, bool) { + if o == nil || o.ObservedGeneration == nil { + return nil, false + } + return o.ObservedGeneration, true +} + +// HasObservedGeneration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) HasObservedGeneration() bool { + if o != nil && o.ObservedGeneration != nil { + return true + } + + return false +} + +// SetObservedGeneration gets a reference to the given int64 and assigns it to the ObservedGeneration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) SetObservedGeneration(v int64) { + o.ObservedGeneration = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.DeploymentStatus != nil { + toSerialize["deploymentStatus"] = o.DeploymentStatus + } + if o.ObservedGeneration != nil { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go new file mode 100644 index 0000000..b568abe --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go @@ -0,0 +1,191 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging Logging defines the logging configuration for the Flink deployment. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging struct { + Log4j2ConfigurationTemplate *string `json:"log4j2ConfigurationTemplate,omitempty"` + Log4jLoggers *map[string]string `json:"log4jLoggers,omitempty"` + LoggingProfile *string `json:"loggingProfile,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1LoggingWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1LoggingWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging{} + return &this +} + +// GetLog4j2ConfigurationTemplate returns the Log4j2ConfigurationTemplate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4j2ConfigurationTemplate() string { + if o == nil || o.Log4j2ConfigurationTemplate == nil { + var ret string + return ret + } + return *o.Log4j2ConfigurationTemplate +} + +// GetLog4j2ConfigurationTemplateOk returns a tuple with the Log4j2ConfigurationTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4j2ConfigurationTemplateOk() (*string, bool) { + if o == nil || o.Log4j2ConfigurationTemplate == nil { + return nil, false + } + return o.Log4j2ConfigurationTemplate, true +} + +// HasLog4j2ConfigurationTemplate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) HasLog4j2ConfigurationTemplate() bool { + if o != nil && o.Log4j2ConfigurationTemplate != nil { + return true + } + + return false +} + +// SetLog4j2ConfigurationTemplate gets a reference to the given string and assigns it to the Log4j2ConfigurationTemplate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) SetLog4j2ConfigurationTemplate(v string) { + o.Log4j2ConfigurationTemplate = &v +} + +// GetLog4jLoggers returns the Log4jLoggers field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4jLoggers() map[string]string { + if o == nil || o.Log4jLoggers == nil { + var ret map[string]string + return ret + } + return *o.Log4jLoggers +} + +// GetLog4jLoggersOk returns a tuple with the Log4jLoggers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLog4jLoggersOk() (*map[string]string, bool) { + if o == nil || o.Log4jLoggers == nil { + return nil, false + } + return o.Log4jLoggers, true +} + +// HasLog4jLoggers returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) HasLog4jLoggers() bool { + if o != nil && o.Log4jLoggers != nil { + return true + } + + return false +} + +// SetLog4jLoggers gets a reference to the given map[string]string and assigns it to the Log4jLoggers field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) SetLog4jLoggers(v map[string]string) { + o.Log4jLoggers = &v +} + +// GetLoggingProfile returns the LoggingProfile field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLoggingProfile() string { + if o == nil || o.LoggingProfile == nil { + var ret string + return ret + } + return *o.LoggingProfile +} + +// GetLoggingProfileOk returns a tuple with the LoggingProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) GetLoggingProfileOk() (*string, bool) { + if o == nil || o.LoggingProfile == nil { + return nil, false + } + return o.LoggingProfile, true +} + +// HasLoggingProfile returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) HasLoggingProfile() bool { + if o != nil && o.LoggingProfile != nil { + return true + } + + return false +} + +// SetLoggingProfile gets a reference to the given string and assigns it to the LoggingProfile field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) SetLoggingProfile(v string) { + o.LoggingProfile = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Log4j2ConfigurationTemplate != nil { + toSerialize["log4j2ConfigurationTemplate"] = o.Log4j2ConfigurationTemplate + } + if o.Log4jLoggers != nil { + toSerialize["log4jLoggers"] = o.Log4jLoggers + } + if o.LoggingProfile != nil { + toSerialize["loggingProfile"] = o.LoggingProfile + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go new file mode 100644 index 0000000..ba84401 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta struct { + // Annotations of the resource. + Annotations *map[string]string `json:"annotations,omitempty"` + // Labels of the resource. + Labels *map[string]string `json:"labels,omitempty"` + // Name of the resource within a namespace. It must be unique. + Name *string `json:"name,omitempty"` + // Namespace of the resource. + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMetaWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMetaWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetLabels() map[string]string { + if o == nil || o.Labels == nil { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetLabelsOk() (*map[string]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetName(v string) { + o.Name = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go new file mode 100644 index 0000000..e82f84c --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate PodTemplate defines the common pod configuration for Pods, including when used in StatefulSets. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate struct { + Metadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec `json:"spec,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) SetMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) { + o.Spec = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go new file mode 100644 index 0000000..7c3bfa6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go @@ -0,0 +1,443 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec struct { + Affinity *V1Affinity `json:"affinity,omitempty"` + Containers []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container `json:"containers,omitempty"` + ImagePullSecrets []V1LocalObjectReference `json:"imagePullSecrets,omitempty"` + InitContainers []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container `json:"initContainers,omitempty"` + NodeSelector *map[string]string `json:"nodeSelector,omitempty"` + SecurityContext *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext `json:"securityContext,omitempty"` + ServiceAccountName *string `json:"serviceAccountName,omitempty"` + ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` + Tolerations []V1Toleration `json:"tolerations,omitempty"` + Volumes []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume `json:"volumes,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec{} + return &this +} + +// GetAffinity returns the Affinity field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetAffinity() V1Affinity { + if o == nil || o.Affinity == nil { + var ret V1Affinity + return ret + } + return *o.Affinity +} + +// GetAffinityOk returns a tuple with the Affinity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetAffinityOk() (*V1Affinity, bool) { + if o == nil || o.Affinity == nil { + return nil, false + } + return o.Affinity, true +} + +// HasAffinity returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasAffinity() bool { + if o != nil && o.Affinity != nil { + return true + } + + return false +} + +// SetAffinity gets a reference to the given V1Affinity and assigns it to the Affinity field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetAffinity(v V1Affinity) { + o.Affinity = &v +} + +// GetContainers returns the Containers field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetContainers() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container { + if o == nil || o.Containers == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container + return ret + } + return o.Containers +} + +// GetContainersOk returns a tuple with the Containers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetContainersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container, bool) { + if o == nil || o.Containers == nil { + return nil, false + } + return o.Containers, true +} + +// HasContainers returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasContainers() bool { + if o != nil && o.Containers != nil { + return true + } + + return false +} + +// SetContainers gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container and assigns it to the Containers field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetContainers(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) { + o.Containers = v +} + +// GetImagePullSecrets returns the ImagePullSecrets field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetImagePullSecrets() []V1LocalObjectReference { + if o == nil || o.ImagePullSecrets == nil { + var ret []V1LocalObjectReference + return ret + } + return o.ImagePullSecrets +} + +// GetImagePullSecretsOk returns a tuple with the ImagePullSecrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetImagePullSecretsOk() ([]V1LocalObjectReference, bool) { + if o == nil || o.ImagePullSecrets == nil { + return nil, false + } + return o.ImagePullSecrets, true +} + +// HasImagePullSecrets returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasImagePullSecrets() bool { + if o != nil && o.ImagePullSecrets != nil { + return true + } + + return false +} + +// SetImagePullSecrets gets a reference to the given []V1LocalObjectReference and assigns it to the ImagePullSecrets field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetImagePullSecrets(v []V1LocalObjectReference) { + o.ImagePullSecrets = v +} + +// GetInitContainers returns the InitContainers field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetInitContainers() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container { + if o == nil || o.InitContainers == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container + return ret + } + return o.InitContainers +} + +// GetInitContainersOk returns a tuple with the InitContainers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetInitContainersOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container, bool) { + if o == nil || o.InitContainers == nil { + return nil, false + } + return o.InitContainers, true +} + +// HasInitContainers returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasInitContainers() bool { + if o != nil && o.InitContainers != nil { + return true + } + + return false +} + +// SetInitContainers gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container and assigns it to the InitContainers field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetInitContainers(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container) { + o.InitContainers = v +} + +// GetNodeSelector returns the NodeSelector field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetNodeSelector() map[string]string { + if o == nil || o.NodeSelector == nil { + var ret map[string]string + return ret + } + return *o.NodeSelector +} + +// GetNodeSelectorOk returns a tuple with the NodeSelector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetNodeSelectorOk() (*map[string]string, bool) { + if o == nil || o.NodeSelector == nil { + return nil, false + } + return o.NodeSelector, true +} + +// HasNodeSelector returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasNodeSelector() bool { + if o != nil && o.NodeSelector != nil { + return true + } + + return false +} + +// SetNodeSelector gets a reference to the given map[string]string and assigns it to the NodeSelector field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetNodeSelector(v map[string]string) { + o.NodeSelector = &v +} + +// GetSecurityContext returns the SecurityContext field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetSecurityContext() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext { + if o == nil || o.SecurityContext == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext + return ret + } + return *o.SecurityContext +} + +// GetSecurityContextOk returns a tuple with the SecurityContext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetSecurityContextOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext, bool) { + if o == nil || o.SecurityContext == nil { + return nil, false + } + return o.SecurityContext, true +} + +// HasSecurityContext returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasSecurityContext() bool { + if o != nil && o.SecurityContext != nil { + return true + } + + return false +} + +// SetSecurityContext gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext and assigns it to the SecurityContext field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetSecurityContext(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) { + o.SecurityContext = &v +} + +// GetServiceAccountName returns the ServiceAccountName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetServiceAccountName() string { + if o == nil || o.ServiceAccountName == nil { + var ret string + return ret + } + return *o.ServiceAccountName +} + +// GetServiceAccountNameOk returns a tuple with the ServiceAccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetServiceAccountNameOk() (*string, bool) { + if o == nil || o.ServiceAccountName == nil { + return nil, false + } + return o.ServiceAccountName, true +} + +// HasServiceAccountName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasServiceAccountName() bool { + if o != nil && o.ServiceAccountName != nil { + return true + } + + return false +} + +// SetServiceAccountName gets a reference to the given string and assigns it to the ServiceAccountName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetServiceAccountName(v string) { + o.ServiceAccountName = &v +} + +// GetShareProcessNamespace returns the ShareProcessNamespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetShareProcessNamespace() bool { + if o == nil || o.ShareProcessNamespace == nil { + var ret bool + return ret + } + return *o.ShareProcessNamespace +} + +// GetShareProcessNamespaceOk returns a tuple with the ShareProcessNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetShareProcessNamespaceOk() (*bool, bool) { + if o == nil || o.ShareProcessNamespace == nil { + return nil, false + } + return o.ShareProcessNamespace, true +} + +// HasShareProcessNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasShareProcessNamespace() bool { + if o != nil && o.ShareProcessNamespace != nil { + return true + } + + return false +} + +// SetShareProcessNamespace gets a reference to the given bool and assigns it to the ShareProcessNamespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetShareProcessNamespace(v bool) { + o.ShareProcessNamespace = &v +} + +// GetTolerations returns the Tolerations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetTolerations() []V1Toleration { + if o == nil || o.Tolerations == nil { + var ret []V1Toleration + return ret + } + return o.Tolerations +} + +// GetTolerationsOk returns a tuple with the Tolerations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetTolerationsOk() ([]V1Toleration, bool) { + if o == nil || o.Tolerations == nil { + return nil, false + } + return o.Tolerations, true +} + +// HasTolerations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasTolerations() bool { + if o != nil && o.Tolerations != nil { + return true + } + + return false +} + +// SetTolerations gets a reference to the given []V1Toleration and assigns it to the Tolerations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetTolerations(v []V1Toleration) { + o.Tolerations = v +} + +// GetVolumes returns the Volumes field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetVolumes() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume { + if o == nil || o.Volumes == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume + return ret + } + return o.Volumes +} + +// GetVolumesOk returns a tuple with the Volumes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) GetVolumesOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume, bool) { + if o == nil || o.Volumes == nil { + return nil, false + } + return o.Volumes, true +} + +// HasVolumes returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) HasVolumes() bool { + if o != nil && o.Volumes != nil { + return true + } + + return false +} + +// SetVolumes gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume and assigns it to the Volumes field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) SetVolumes(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) { + o.Volumes = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Affinity != nil { + toSerialize["affinity"] = o.Affinity + } + if o.Containers != nil { + toSerialize["containers"] = o.Containers + } + if o.ImagePullSecrets != nil { + toSerialize["imagePullSecrets"] = o.ImagePullSecrets + } + if o.InitContainers != nil { + toSerialize["initContainers"] = o.InitContainers + } + if o.NodeSelector != nil { + toSerialize["nodeSelector"] = o.NodeSelector + } + if o.SecurityContext != nil { + toSerialize["securityContext"] = o.SecurityContext + } + if o.ServiceAccountName != nil { + toSerialize["serviceAccountName"] = o.ServiceAccountName + } + if o.ShareProcessNamespace != nil { + toSerialize["shareProcessNamespace"] = o.ShareProcessNamespace + } + if o.Tolerations != nil { + toSerialize["tolerations"] = o.Tolerations + } + if o.Volumes != nil { + toSerialize["volumes"] = o.Volumes + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go new file mode 100644 index 0000000..48d4a1f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference struct { + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference(name string, namespace string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference{} + this.Name = name + this.Namespace = namespace + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReferenceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReferenceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) SetNamespace(v string) { + o.Namespace = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go new file mode 100644 index 0000000..f6abb61 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef PoolRef is a reference to a pool with a given name. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef struct { + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef(name string, namespace string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef{} + this.Name = name + this.Namespace = namespace + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRefWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRefWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef{} + return &this +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) SetName(v string) { + o.Name = v +} + +// GetNamespace returns the Namespace field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetNamespace() string { + if o == nil { + var ret string + return ret + } + + return o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) GetNamespaceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Namespace, true +} + +// SetNamespace sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) SetNamespace(v string) { + o.Namespace = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go new file mode 100644 index 0000000..6d6fe43 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go @@ -0,0 +1,143 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec ResourceSpec defines the resource requirements for a component. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec struct { + // CPU represents the minimum amount of CPU required. + Cpu string `json:"cpu"` + // Memory represents the minimum amount of memory required. + Memory string `json:"memory"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec(cpu string, memory string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec{} + this.Cpu = cpu + this.Memory = memory + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec{} + return &this +} + +// GetCpu returns the Cpu field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetCpu() string { + if o == nil { + var ret string + return ret + } + + return o.Cpu +} + +// GetCpuOk returns a tuple with the Cpu field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetCpuOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cpu, true +} + +// SetCpu sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) SetCpu(v string) { + o.Cpu = v +} + +// GetMemory returns the Memory field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetMemory() string { + if o == nil { + var ret string + return ret + } + + return o.Memory +} + +// GetMemoryOk returns a tuple with the Memory field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) GetMemoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Memory, true +} + +// SetMemory sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) SetMemory(v string) { + o.Memory = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cpu"] = o.Cpu + } + if true { + toSerialize["memory"] = o.Memory + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go new file mode 100644 index 0000000..e81706f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go @@ -0,0 +1,264 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext struct { + FsGroup *int64 `json:"fsGroup,omitempty"` + // ReadOnlyRootFilesystem specifies whether the container use a read-only filesystem. + ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` + RunAsGroup *int64 `json:"runAsGroup,omitempty"` + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + RunAsUser *int64 `json:"runAsUser,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContextWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContextWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext{} + return &this +} + +// GetFsGroup returns the FsGroup field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetFsGroup() int64 { + if o == nil || o.FsGroup == nil { + var ret int64 + return ret + } + return *o.FsGroup +} + +// GetFsGroupOk returns a tuple with the FsGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetFsGroupOk() (*int64, bool) { + if o == nil || o.FsGroup == nil { + return nil, false + } + return o.FsGroup, true +} + +// HasFsGroup returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasFsGroup() bool { + if o != nil && o.FsGroup != nil { + return true + } + + return false +} + +// SetFsGroup gets a reference to the given int64 and assigns it to the FsGroup field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetFsGroup(v int64) { + o.FsGroup = &v +} + +// GetReadOnlyRootFilesystem returns the ReadOnlyRootFilesystem field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetReadOnlyRootFilesystem() bool { + if o == nil || o.ReadOnlyRootFilesystem == nil { + var ret bool + return ret + } + return *o.ReadOnlyRootFilesystem +} + +// GetReadOnlyRootFilesystemOk returns a tuple with the ReadOnlyRootFilesystem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetReadOnlyRootFilesystemOk() (*bool, bool) { + if o == nil || o.ReadOnlyRootFilesystem == nil { + return nil, false + } + return o.ReadOnlyRootFilesystem, true +} + +// HasReadOnlyRootFilesystem returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasReadOnlyRootFilesystem() bool { + if o != nil && o.ReadOnlyRootFilesystem != nil { + return true + } + + return false +} + +// SetReadOnlyRootFilesystem gets a reference to the given bool and assigns it to the ReadOnlyRootFilesystem field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetReadOnlyRootFilesystem(v bool) { + o.ReadOnlyRootFilesystem = &v +} + +// GetRunAsGroup returns the RunAsGroup field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsGroup() int64 { + if o == nil || o.RunAsGroup == nil { + var ret int64 + return ret + } + return *o.RunAsGroup +} + +// GetRunAsGroupOk returns a tuple with the RunAsGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsGroupOk() (*int64, bool) { + if o == nil || o.RunAsGroup == nil { + return nil, false + } + return o.RunAsGroup, true +} + +// HasRunAsGroup returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasRunAsGroup() bool { + if o != nil && o.RunAsGroup != nil { + return true + } + + return false +} + +// SetRunAsGroup gets a reference to the given int64 and assigns it to the RunAsGroup field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetRunAsGroup(v int64) { + o.RunAsGroup = &v +} + +// GetRunAsNonRoot returns the RunAsNonRoot field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsNonRoot() bool { + if o == nil || o.RunAsNonRoot == nil { + var ret bool + return ret + } + return *o.RunAsNonRoot +} + +// GetRunAsNonRootOk returns a tuple with the RunAsNonRoot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsNonRootOk() (*bool, bool) { + if o == nil || o.RunAsNonRoot == nil { + return nil, false + } + return o.RunAsNonRoot, true +} + +// HasRunAsNonRoot returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasRunAsNonRoot() bool { + if o != nil && o.RunAsNonRoot != nil { + return true + } + + return false +} + +// SetRunAsNonRoot gets a reference to the given bool and assigns it to the RunAsNonRoot field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetRunAsNonRoot(v bool) { + o.RunAsNonRoot = &v +} + +// GetRunAsUser returns the RunAsUser field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsUser() int64 { + if o == nil || o.RunAsUser == nil { + var ret int64 + return ret + } + return *o.RunAsUser +} + +// GetRunAsUserOk returns a tuple with the RunAsUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) GetRunAsUserOk() (*int64, bool) { + if o == nil || o.RunAsUser == nil { + return nil, false + } + return o.RunAsUser, true +} + +// HasRunAsUser returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) HasRunAsUser() bool { + if o != nil && o.RunAsUser != nil { + return true + } + + return false +} + +// SetRunAsUser gets a reference to the given int64 and assigns it to the RunAsUser field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) SetRunAsUser(v int64) { + o.RunAsUser = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.FsGroup != nil { + toSerialize["fsGroup"] = o.FsGroup + } + if o.ReadOnlyRootFilesystem != nil { + toSerialize["readOnlyRootFilesystem"] = o.ReadOnlyRootFilesystem + } + if o.RunAsGroup != nil { + toSerialize["runAsGroup"] = o.RunAsGroup + } + if o.RunAsNonRoot != nil { + toSerialize["runAsNonRoot"] = o.RunAsNonRoot + } + if o.RunAsUser != nil { + toSerialize["runAsUser"] = o.RunAsUser + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go new file mode 100644 index 0000000..d60e194 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go @@ -0,0 +1,263 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata UserMetadata Specify the metadata for the resource we are deploying. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata struct { + Annotations *map[string]string `json:"annotations,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadataWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadataWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetDisplayName() string { + if o == nil || o.DisplayName == nil { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetDisplayNameOk() (*string, bool) { + if o == nil || o.DisplayName == nil { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasDisplayName() bool { + if o != nil && o.DisplayName != nil { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetLabels() map[string]string { + if o == nil || o.Labels == nil { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetLabelsOk() (*map[string]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetName(v string) { + o.Name = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) SetNamespace(v string) { + o.Namespace = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if o.DisplayName != nil { + toSerialize["displayName"] = o.DisplayName + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go new file mode 100644 index 0000000..73c047d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go @@ -0,0 +1,185 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume Volume represents a named volume in a pod that may be accessed by any container in the pod. The Volume API from the core group is not used directly to avoid unneeded fields defined in `VolumeSource` and reduce the size of the CRD. New fields in VolumeSource could be added as needed. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume struct { + ConfigMap *V1ConfigMapVolumeSource `json:"configMap,omitempty"` + // Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name string `json:"name"` + Secret *V1SecretVolumeSource `json:"secret,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume(name string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume{} + this.Name = name + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VolumeWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VolumeWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume{} + return &this +} + +// GetConfigMap returns the ConfigMap field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetConfigMap() V1ConfigMapVolumeSource { + if o == nil || o.ConfigMap == nil { + var ret V1ConfigMapVolumeSource + return ret + } + return *o.ConfigMap +} + +// GetConfigMapOk returns a tuple with the ConfigMap field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetConfigMapOk() (*V1ConfigMapVolumeSource, bool) { + if o == nil || o.ConfigMap == nil { + return nil, false + } + return o.ConfigMap, true +} + +// HasConfigMap returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) HasConfigMap() bool { + if o != nil && o.ConfigMap != nil { + return true + } + + return false +} + +// SetConfigMap gets a reference to the given V1ConfigMapVolumeSource and assigns it to the ConfigMap field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) SetConfigMap(v V1ConfigMapVolumeSource) { + o.ConfigMap = &v +} + +// GetName returns the Name field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) SetName(v string) { + o.Name = v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetSecret() V1SecretVolumeSource { + if o == nil || o.Secret == nil { + var ret V1SecretVolumeSource + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) GetSecretOk() (*V1SecretVolumeSource, bool) { + if o == nil || o.Secret == nil { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) HasSecret() bool { + if o != nil && o.Secret != nil { + return true + } + + return false +} + +// SetSecret gets a reference to the given V1SecretVolumeSource and assigns it to the Secret field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) SetSecret(v V1SecretVolumeSource) { + o.Secret = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ConfigMap != nil { + toSerialize["configMap"] = o.ConfigMap + } + if true { + toSerialize["name"] = o.Name + } + if o.Secret != nil { + toSerialize["secret"] = o.Secret + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go new file mode 100644 index 0000000..bb863da --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go @@ -0,0 +1,263 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus VvpCustomResourceStatus defines the observed state of VvpCustomResource +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus struct { + CustomResourceState *string `json:"customResourceState,omitempty"` + DeploymentId *string `json:"deploymentId,omitempty"` + DeploymentNamespace *string `json:"deploymentNamespace,omitempty"` + ObservedSpecState *string `json:"observedSpecState,omitempty"` + StatusState *string `json:"statusState,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus{} + return &this +} + +// GetCustomResourceState returns the CustomResourceState field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetCustomResourceState() string { + if o == nil || o.CustomResourceState == nil { + var ret string + return ret + } + return *o.CustomResourceState +} + +// GetCustomResourceStateOk returns a tuple with the CustomResourceState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetCustomResourceStateOk() (*string, bool) { + if o == nil || o.CustomResourceState == nil { + return nil, false + } + return o.CustomResourceState, true +} + +// HasCustomResourceState returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasCustomResourceState() bool { + if o != nil && o.CustomResourceState != nil { + return true + } + + return false +} + +// SetCustomResourceState gets a reference to the given string and assigns it to the CustomResourceState field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetCustomResourceState(v string) { + o.CustomResourceState = &v +} + +// GetDeploymentId returns the DeploymentId field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentId() string { + if o == nil || o.DeploymentId == nil { + var ret string + return ret + } + return *o.DeploymentId +} + +// GetDeploymentIdOk returns a tuple with the DeploymentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentIdOk() (*string, bool) { + if o == nil || o.DeploymentId == nil { + return nil, false + } + return o.DeploymentId, true +} + +// HasDeploymentId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasDeploymentId() bool { + if o != nil && o.DeploymentId != nil { + return true + } + + return false +} + +// SetDeploymentId gets a reference to the given string and assigns it to the DeploymentId field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetDeploymentId(v string) { + o.DeploymentId = &v +} + +// GetDeploymentNamespace returns the DeploymentNamespace field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentNamespace() string { + if o == nil || o.DeploymentNamespace == nil { + var ret string + return ret + } + return *o.DeploymentNamespace +} + +// GetDeploymentNamespaceOk returns a tuple with the DeploymentNamespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetDeploymentNamespaceOk() (*string, bool) { + if o == nil || o.DeploymentNamespace == nil { + return nil, false + } + return o.DeploymentNamespace, true +} + +// HasDeploymentNamespace returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasDeploymentNamespace() bool { + if o != nil && o.DeploymentNamespace != nil { + return true + } + + return false +} + +// SetDeploymentNamespace gets a reference to the given string and assigns it to the DeploymentNamespace field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetDeploymentNamespace(v string) { + o.DeploymentNamespace = &v +} + +// GetObservedSpecState returns the ObservedSpecState field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetObservedSpecState() string { + if o == nil || o.ObservedSpecState == nil { + var ret string + return ret + } + return *o.ObservedSpecState +} + +// GetObservedSpecStateOk returns a tuple with the ObservedSpecState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetObservedSpecStateOk() (*string, bool) { + if o == nil || o.ObservedSpecState == nil { + return nil, false + } + return o.ObservedSpecState, true +} + +// HasObservedSpecState returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasObservedSpecState() bool { + if o != nil && o.ObservedSpecState != nil { + return true + } + + return false +} + +// SetObservedSpecState gets a reference to the given string and assigns it to the ObservedSpecState field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetObservedSpecState(v string) { + o.ObservedSpecState = &v +} + +// GetStatusState returns the StatusState field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetStatusState() string { + if o == nil || o.StatusState == nil { + var ret string + return ret + } + return *o.StatusState +} + +// GetStatusStateOk returns a tuple with the StatusState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) GetStatusStateOk() (*string, bool) { + if o == nil || o.StatusState == nil { + return nil, false + } + return o.StatusState, true +} + +// HasStatusState returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) HasStatusState() bool { + if o != nil && o.StatusState != nil { + return true + } + + return false +} + +// SetStatusState gets a reference to the given string and assigns it to the StatusState field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) SetStatusState(v string) { + o.StatusState = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CustomResourceState != nil { + toSerialize["customResourceState"] = o.CustomResourceState + } + if o.DeploymentId != nil { + toSerialize["deploymentId"] = o.DeploymentId + } + if o.DeploymentNamespace != nil { + toSerialize["deploymentNamespace"] = o.DeploymentNamespace + } + if o.ObservedSpecState != nil { + toSerialize["observedSpecState"] = o.ObservedSpecState + } + if o.StatusState != nil { + toSerialize["statusState"] = o.StatusState + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go new file mode 100644 index 0000000..0213aa6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go @@ -0,0 +1,364 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails VvpDeploymentDetails +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails struct { + DeploymentTargetName *string `json:"deploymentTargetName,omitempty"` + JobFailureExpirationTime *string `json:"jobFailureExpirationTime,omitempty"` + MaxJobCreationAttempts *int32 `json:"maxJobCreationAttempts,omitempty"` + MaxSavepointCreationAttempts *int32 `json:"maxSavepointCreationAttempts,omitempty"` + RestoreStrategy *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy `json:"restoreStrategy,omitempty"` + SessionClusterName *string `json:"sessionClusterName,omitempty"` + State *string `json:"state,omitempty"` + Template ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate `json:"template"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails(template ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails{} + this.Template = template + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails{} + return &this +} + +// GetDeploymentTargetName returns the DeploymentTargetName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetDeploymentTargetName() string { + if o == nil || o.DeploymentTargetName == nil { + var ret string + return ret + } + return *o.DeploymentTargetName +} + +// GetDeploymentTargetNameOk returns a tuple with the DeploymentTargetName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetDeploymentTargetNameOk() (*string, bool) { + if o == nil || o.DeploymentTargetName == nil { + return nil, false + } + return o.DeploymentTargetName, true +} + +// HasDeploymentTargetName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasDeploymentTargetName() bool { + if o != nil && o.DeploymentTargetName != nil { + return true + } + + return false +} + +// SetDeploymentTargetName gets a reference to the given string and assigns it to the DeploymentTargetName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetDeploymentTargetName(v string) { + o.DeploymentTargetName = &v +} + +// GetJobFailureExpirationTime returns the JobFailureExpirationTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetJobFailureExpirationTime() string { + if o == nil || o.JobFailureExpirationTime == nil { + var ret string + return ret + } + return *o.JobFailureExpirationTime +} + +// GetJobFailureExpirationTimeOk returns a tuple with the JobFailureExpirationTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetJobFailureExpirationTimeOk() (*string, bool) { + if o == nil || o.JobFailureExpirationTime == nil { + return nil, false + } + return o.JobFailureExpirationTime, true +} + +// HasJobFailureExpirationTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasJobFailureExpirationTime() bool { + if o != nil && o.JobFailureExpirationTime != nil { + return true + } + + return false +} + +// SetJobFailureExpirationTime gets a reference to the given string and assigns it to the JobFailureExpirationTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetJobFailureExpirationTime(v string) { + o.JobFailureExpirationTime = &v +} + +// GetMaxJobCreationAttempts returns the MaxJobCreationAttempts field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxJobCreationAttempts() int32 { + if o == nil || o.MaxJobCreationAttempts == nil { + var ret int32 + return ret + } + return *o.MaxJobCreationAttempts +} + +// GetMaxJobCreationAttemptsOk returns a tuple with the MaxJobCreationAttempts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxJobCreationAttemptsOk() (*int32, bool) { + if o == nil || o.MaxJobCreationAttempts == nil { + return nil, false + } + return o.MaxJobCreationAttempts, true +} + +// HasMaxJobCreationAttempts returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasMaxJobCreationAttempts() bool { + if o != nil && o.MaxJobCreationAttempts != nil { + return true + } + + return false +} + +// SetMaxJobCreationAttempts gets a reference to the given int32 and assigns it to the MaxJobCreationAttempts field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetMaxJobCreationAttempts(v int32) { + o.MaxJobCreationAttempts = &v +} + +// GetMaxSavepointCreationAttempts returns the MaxSavepointCreationAttempts field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxSavepointCreationAttempts() int32 { + if o == nil || o.MaxSavepointCreationAttempts == nil { + var ret int32 + return ret + } + return *o.MaxSavepointCreationAttempts +} + +// GetMaxSavepointCreationAttemptsOk returns a tuple with the MaxSavepointCreationAttempts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetMaxSavepointCreationAttemptsOk() (*int32, bool) { + if o == nil || o.MaxSavepointCreationAttempts == nil { + return nil, false + } + return o.MaxSavepointCreationAttempts, true +} + +// HasMaxSavepointCreationAttempts returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasMaxSavepointCreationAttempts() bool { + if o != nil && o.MaxSavepointCreationAttempts != nil { + return true + } + + return false +} + +// SetMaxSavepointCreationAttempts gets a reference to the given int32 and assigns it to the MaxSavepointCreationAttempts field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetMaxSavepointCreationAttempts(v int32) { + o.MaxSavepointCreationAttempts = &v +} + +// GetRestoreStrategy returns the RestoreStrategy field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetRestoreStrategy() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy { + if o == nil || o.RestoreStrategy == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy + return ret + } + return *o.RestoreStrategy +} + +// GetRestoreStrategyOk returns a tuple with the RestoreStrategy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetRestoreStrategyOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy, bool) { + if o == nil || o.RestoreStrategy == nil { + return nil, false + } + return o.RestoreStrategy, true +} + +// HasRestoreStrategy returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasRestoreStrategy() bool { + if o != nil && o.RestoreStrategy != nil { + return true + } + + return false +} + +// SetRestoreStrategy gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy and assigns it to the RestoreStrategy field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetRestoreStrategy(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) { + o.RestoreStrategy = &v +} + +// GetSessionClusterName returns the SessionClusterName field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetSessionClusterName() string { + if o == nil || o.SessionClusterName == nil { + var ret string + return ret + } + return *o.SessionClusterName +} + +// GetSessionClusterNameOk returns a tuple with the SessionClusterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetSessionClusterNameOk() (*string, bool) { + if o == nil || o.SessionClusterName == nil { + return nil, false + } + return o.SessionClusterName, true +} + +// HasSessionClusterName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasSessionClusterName() bool { + if o != nil && o.SessionClusterName != nil { + return true + } + + return false +} + +// SetSessionClusterName gets a reference to the given string and assigns it to the SessionClusterName field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetSessionClusterName(v string) { + o.SessionClusterName = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetState() string { + if o == nil || o.State == nil { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetStateOk() (*string, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetState(v string) { + o.State = &v +} + +// GetTemplate returns the Template field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate + return ret + } + + return o.Template +} + +// GetTemplateOk returns a tuple with the Template field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) GetTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate, bool) { + if o == nil { + return nil, false + } + return &o.Template, true +} + +// SetTemplate sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) SetTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) { + o.Template = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DeploymentTargetName != nil { + toSerialize["deploymentTargetName"] = o.DeploymentTargetName + } + if o.JobFailureExpirationTime != nil { + toSerialize["jobFailureExpirationTime"] = o.JobFailureExpirationTime + } + if o.MaxJobCreationAttempts != nil { + toSerialize["maxJobCreationAttempts"] = o.MaxJobCreationAttempts + } + if o.MaxSavepointCreationAttempts != nil { + toSerialize["maxSavepointCreationAttempts"] = o.MaxSavepointCreationAttempts + } + if o.RestoreStrategy != nil { + toSerialize["restoreStrategy"] = o.RestoreStrategy + } + if o.SessionClusterName != nil { + toSerialize["sessionClusterName"] = o.SessionClusterName + } + if o.State != nil { + toSerialize["state"] = o.State + } + if true { + toSerialize["template"] = o.Template + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go new file mode 100644 index 0000000..1671967 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate struct { + Metadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata `json:"metadata,omitempty"` + Spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec `json:"spec"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate(spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate{} + this.Spec = spec + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate{} + return &this +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata { + if o == nil || o.Metadata == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) SetMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec + return ret + } + + return o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec, bool) { + if o == nil { + return nil, false + } + return &o.Spec, true +} + +// SetSpec sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) { + o.Spec = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if true { + toSerialize["spec"] = o.Spec + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go new file mode 100644 index 0000000..9716289 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go @@ -0,0 +1,119 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata struct { + Annotations *map[string]string `json:"annotations,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadataWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadataWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go new file mode 100644 index 0000000..78f9583 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go @@ -0,0 +1,364 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec VvpDeploymentDetailsTemplateSpec defines the desired state of VvpDeploymentDetails +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec struct { + Artifact ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact `json:"artifact"` + FlinkConfiguration *map[string]string `json:"flinkConfiguration,omitempty"` + Kubernetes *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec `json:"kubernetes,omitempty"` + LatestCheckpointFetchInterval *int32 `json:"latestCheckpointFetchInterval,omitempty"` + Logging *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging `json:"logging,omitempty"` + NumberOfTaskManagers *int32 `json:"numberOfTaskManagers,omitempty"` + Parallelism *int32 `json:"parallelism,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources `json:"resources,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec(artifact ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec{} + this.Artifact = artifact + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec{} + return &this +} + +// GetArtifact returns the Artifact field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetArtifact() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact + return ret + } + + return o.Artifact +} + +// GetArtifactOk returns a tuple with the Artifact field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetArtifactOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact, bool) { + if o == nil { + return nil, false + } + return &o.Artifact, true +} + +// SetArtifact sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetArtifact(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact) { + o.Artifact = v +} + +// GetFlinkConfiguration returns the FlinkConfiguration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetFlinkConfiguration() map[string]string { + if o == nil || o.FlinkConfiguration == nil { + var ret map[string]string + return ret + } + return *o.FlinkConfiguration +} + +// GetFlinkConfigurationOk returns a tuple with the FlinkConfiguration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetFlinkConfigurationOk() (*map[string]string, bool) { + if o == nil || o.FlinkConfiguration == nil { + return nil, false + } + return o.FlinkConfiguration, true +} + +// HasFlinkConfiguration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasFlinkConfiguration() bool { + if o != nil && o.FlinkConfiguration != nil { + return true + } + + return false +} + +// SetFlinkConfiguration gets a reference to the given map[string]string and assigns it to the FlinkConfiguration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetFlinkConfiguration(v map[string]string) { + o.FlinkConfiguration = &v +} + +// GetKubernetes returns the Kubernetes field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetKubernetes() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec { + if o == nil || o.Kubernetes == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec + return ret + } + return *o.Kubernetes +} + +// GetKubernetesOk returns a tuple with the Kubernetes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetKubernetesOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec, bool) { + if o == nil || o.Kubernetes == nil { + return nil, false + } + return o.Kubernetes, true +} + +// HasKubernetes returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasKubernetes() bool { + if o != nil && o.Kubernetes != nil { + return true + } + + return false +} + +// SetKubernetes gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec and assigns it to the Kubernetes field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetKubernetes(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) { + o.Kubernetes = &v +} + +// GetLatestCheckpointFetchInterval returns the LatestCheckpointFetchInterval field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLatestCheckpointFetchInterval() int32 { + if o == nil || o.LatestCheckpointFetchInterval == nil { + var ret int32 + return ret + } + return *o.LatestCheckpointFetchInterval +} + +// GetLatestCheckpointFetchIntervalOk returns a tuple with the LatestCheckpointFetchInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLatestCheckpointFetchIntervalOk() (*int32, bool) { + if o == nil || o.LatestCheckpointFetchInterval == nil { + return nil, false + } + return o.LatestCheckpointFetchInterval, true +} + +// HasLatestCheckpointFetchInterval returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasLatestCheckpointFetchInterval() bool { + if o != nil && o.LatestCheckpointFetchInterval != nil { + return true + } + + return false +} + +// SetLatestCheckpointFetchInterval gets a reference to the given int32 and assigns it to the LatestCheckpointFetchInterval field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetLatestCheckpointFetchInterval(v int32) { + o.LatestCheckpointFetchInterval = &v +} + +// GetLogging returns the Logging field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLogging() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging { + if o == nil || o.Logging == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging + return ret + } + return *o.Logging +} + +// GetLoggingOk returns a tuple with the Logging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetLoggingOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging, bool) { + if o == nil || o.Logging == nil { + return nil, false + } + return o.Logging, true +} + +// HasLogging returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasLogging() bool { + if o != nil && o.Logging != nil { + return true + } + + return false +} + +// SetLogging gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging and assigns it to the Logging field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetLogging(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging) { + o.Logging = &v +} + +// GetNumberOfTaskManagers returns the NumberOfTaskManagers field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetNumberOfTaskManagers() int32 { + if o == nil || o.NumberOfTaskManagers == nil { + var ret int32 + return ret + } + return *o.NumberOfTaskManagers +} + +// GetNumberOfTaskManagersOk returns a tuple with the NumberOfTaskManagers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetNumberOfTaskManagersOk() (*int32, bool) { + if o == nil || o.NumberOfTaskManagers == nil { + return nil, false + } + return o.NumberOfTaskManagers, true +} + +// HasNumberOfTaskManagers returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasNumberOfTaskManagers() bool { + if o != nil && o.NumberOfTaskManagers != nil { + return true + } + + return false +} + +// SetNumberOfTaskManagers gets a reference to the given int32 and assigns it to the NumberOfTaskManagers field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetNumberOfTaskManagers(v int32) { + o.NumberOfTaskManagers = &v +} + +// GetParallelism returns the Parallelism field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetParallelism() int32 { + if o == nil || o.Parallelism == nil { + var ret int32 + return ret + } + return *o.Parallelism +} + +// GetParallelismOk returns a tuple with the Parallelism field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetParallelismOk() (*int32, bool) { + if o == nil || o.Parallelism == nil { + return nil, false + } + return o.Parallelism, true +} + +// HasParallelism returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasParallelism() bool { + if o != nil && o.Parallelism != nil { + return true + } + + return false +} + +// SetParallelism gets a reference to the given int32 and assigns it to the Parallelism field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetParallelism(v int32) { + o.Parallelism = &v +} + +// GetResources returns the Resources field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetResources() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources { + if o == nil || o.Resources == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources + return ret + } + return *o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) GetResourcesOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources, bool) { + if o == nil || o.Resources == nil { + return nil, false + } + return o.Resources, true +} + +// HasResources returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) HasResources() bool { + if o != nil && o.Resources != nil { + return true + } + + return false +} + +// SetResources gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources and assigns it to the Resources field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) SetResources(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) { + o.Resources = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["artifact"] = o.Artifact + } + if o.FlinkConfiguration != nil { + toSerialize["flinkConfiguration"] = o.FlinkConfiguration + } + if o.Kubernetes != nil { + toSerialize["kubernetes"] = o.Kubernetes + } + if o.LatestCheckpointFetchInterval != nil { + toSerialize["latestCheckpointFetchInterval"] = o.LatestCheckpointFetchInterval + } + if o.Logging != nil { + toSerialize["logging"] = o.Logging + } + if o.NumberOfTaskManagers != nil { + toSerialize["numberOfTaskManagers"] = o.NumberOfTaskManagers + } + if o.Parallelism != nil { + toSerialize["parallelism"] = o.Parallelism + } + if o.Resources != nil { + toSerialize["resources"] = o.Resources + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go new file mode 100644 index 0000000..bbbe6c6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go @@ -0,0 +1,191 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec VvpDeploymentDetailsTemplateSpecKubernetesSpec defines the desired state of VvpDeploymentDetails +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec struct { + JobManagerPodTemplate *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate `json:"jobManagerPodTemplate,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + TaskManagerPodTemplate *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate `json:"taskManagerPodTemplate,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec{} + return &this +} + +// GetJobManagerPodTemplate returns the JobManagerPodTemplate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetJobManagerPodTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate { + if o == nil || o.JobManagerPodTemplate == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate + return ret + } + return *o.JobManagerPodTemplate +} + +// GetJobManagerPodTemplateOk returns a tuple with the JobManagerPodTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetJobManagerPodTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate, bool) { + if o == nil || o.JobManagerPodTemplate == nil { + return nil, false + } + return o.JobManagerPodTemplate, true +} + +// HasJobManagerPodTemplate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) HasJobManagerPodTemplate() bool { + if o != nil && o.JobManagerPodTemplate != nil { + return true + } + + return false +} + +// SetJobManagerPodTemplate gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate and assigns it to the JobManagerPodTemplate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) SetJobManagerPodTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) { + o.JobManagerPodTemplate = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetLabels() map[string]string { + if o == nil || o.Labels == nil { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetLabelsOk() (*map[string]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetTaskManagerPodTemplate returns the TaskManagerPodTemplate field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetTaskManagerPodTemplate() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate { + if o == nil || o.TaskManagerPodTemplate == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate + return ret + } + return *o.TaskManagerPodTemplate +} + +// GetTaskManagerPodTemplateOk returns a tuple with the TaskManagerPodTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) GetTaskManagerPodTemplateOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate, bool) { + if o == nil || o.TaskManagerPodTemplate == nil { + return nil, false + } + return o.TaskManagerPodTemplate, true +} + +// HasTaskManagerPodTemplate returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) HasTaskManagerPodTemplate() bool { + if o != nil && o.TaskManagerPodTemplate != nil { + return true + } + + return false +} + +// SetTaskManagerPodTemplate gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate and assigns it to the TaskManagerPodTemplate field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) SetTaskManagerPodTemplate(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate) { + o.TaskManagerPodTemplate = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.JobManagerPodTemplate != nil { + toSerialize["jobManagerPodTemplate"] = o.JobManagerPodTemplate + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.TaskManagerPodTemplate != nil { + toSerialize["taskManagerPodTemplate"] = o.TaskManagerPodTemplate + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go new file mode 100644 index 0000000..b471a32 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources VvpDeploymentKubernetesResources defines the Kubernetes resources for the VvpDeployment. +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources struct { + Jobmanager *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec `json:"jobmanager,omitempty"` + Taskmanager *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec `json:"taskmanager,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResourcesWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResourcesWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources{} + return &this +} + +// GetJobmanager returns the Jobmanager field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetJobmanager() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec { + if o == nil || o.Jobmanager == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec + return ret + } + return *o.Jobmanager +} + +// GetJobmanagerOk returns a tuple with the Jobmanager field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetJobmanagerOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec, bool) { + if o == nil || o.Jobmanager == nil { + return nil, false + } + return o.Jobmanager, true +} + +// HasJobmanager returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) HasJobmanager() bool { + if o != nil && o.Jobmanager != nil { + return true + } + + return false +} + +// SetJobmanager gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec and assigns it to the Jobmanager field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) SetJobmanager(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) { + o.Jobmanager = &v +} + +// GetTaskmanager returns the Taskmanager field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetTaskmanager() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec { + if o == nil || o.Taskmanager == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec + return ret + } + return *o.Taskmanager +} + +// GetTaskmanagerOk returns a tuple with the Taskmanager field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) GetTaskmanagerOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec, bool) { + if o == nil || o.Taskmanager == nil { + return nil, false + } + return o.Taskmanager, true +} + +// HasTaskmanager returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) HasTaskmanager() bool { + if o != nil && o.Taskmanager != nil { + return true + } + + return false +} + +// SetTaskmanager gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec and assigns it to the Taskmanager field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) SetTaskmanager(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec) { + o.Taskmanager = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Jobmanager != nil { + toSerialize["jobmanager"] = o.Jobmanager + } + if o.Taskmanager != nil { + toSerialize["taskmanager"] = o.Taskmanager + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go new file mode 100644 index 0000000..919bf86 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus VvpDeploymentRunningStatus defines the observed state of VvpDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus struct { + // Conditions is an array of current observed conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition `json:"conditions,omitempty"` + JobId *string `json:"jobId,omitempty"` + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + TransitionTime *time.Time `json:"transitionTime,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) { + o.Conditions = v +} + +// GetJobId returns the JobId field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetJobId() string { + if o == nil || o.JobId == nil { + var ret string + return ret + } + return *o.JobId +} + +// GetJobIdOk returns a tuple with the JobId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetJobIdOk() (*string, bool) { + if o == nil || o.JobId == nil { + return nil, false + } + return o.JobId, true +} + +// HasJobId returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) HasJobId() bool { + if o != nil && o.JobId != nil { + return true + } + + return false +} + +// SetJobId gets a reference to the given string and assigns it to the JobId field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) SetJobId(v string) { + o.JobId = &v +} + +// GetTransitionTime returns the TransitionTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetTransitionTime() time.Time { + if o == nil || o.TransitionTime == nil { + var ret time.Time + return ret + } + return *o.TransitionTime +} + +// GetTransitionTimeOk returns a tuple with the TransitionTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) GetTransitionTimeOk() (*time.Time, bool) { + if o == nil || o.TransitionTime == nil { + return nil, false + } + return o.TransitionTime, true +} + +// HasTransitionTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) HasTransitionTime() bool { + if o != nil && o.TransitionTime != nil { + return true + } + + return false +} + +// SetTransitionTime gets a reference to the given time.Time and assigns it to the TransitionTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) SetTransitionTime(v time.Time) { + o.TransitionTime = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + if o.JobId != nil { + toSerialize["jobId"] = o.JobId + } + if o.TransitionTime != nil { + toSerialize["transitionTime"] = o.TransitionTime + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go new file mode 100644 index 0000000..cb7fc7f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go @@ -0,0 +1,191 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus VvpDeploymentStatus defines the observed state of VvpDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus struct { + CustomResourceStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus `json:"customResourceStatus,omitempty"` + DeploymentStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus `json:"deploymentStatus,omitempty"` + DeploymentSystemMetadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata `json:"deploymentSystemMetadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus{} + return &this +} + +// GetCustomResourceStatus returns the CustomResourceStatus field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetCustomResourceStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus { + if o == nil || o.CustomResourceStatus == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus + return ret + } + return *o.CustomResourceStatus +} + +// GetCustomResourceStatusOk returns a tuple with the CustomResourceStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetCustomResourceStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus, bool) { + if o == nil || o.CustomResourceStatus == nil { + return nil, false + } + return o.CustomResourceStatus, true +} + +// HasCustomResourceStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) HasCustomResourceStatus() bool { + if o != nil && o.CustomResourceStatus != nil { + return true + } + + return false +} + +// SetCustomResourceStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus and assigns it to the CustomResourceStatus field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) SetCustomResourceStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus) { + o.CustomResourceStatus = &v +} + +// GetDeploymentStatus returns the DeploymentStatus field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus { + if o == nil || o.DeploymentStatus == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus + return ret + } + return *o.DeploymentStatus +} + +// GetDeploymentStatusOk returns a tuple with the DeploymentStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus, bool) { + if o == nil || o.DeploymentStatus == nil { + return nil, false + } + return o.DeploymentStatus, true +} + +// HasDeploymentStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) HasDeploymentStatus() bool { + if o != nil && o.DeploymentStatus != nil { + return true + } + + return false +} + +// SetDeploymentStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus and assigns it to the DeploymentStatus field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) SetDeploymentStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) { + o.DeploymentStatus = &v +} + +// GetDeploymentSystemMetadata returns the DeploymentSystemMetadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentSystemMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata { + if o == nil || o.DeploymentSystemMetadata == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata + return ret + } + return *o.DeploymentSystemMetadata +} + +// GetDeploymentSystemMetadataOk returns a tuple with the DeploymentSystemMetadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) GetDeploymentSystemMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata, bool) { + if o == nil || o.DeploymentSystemMetadata == nil { + return nil, false + } + return o.DeploymentSystemMetadata, true +} + +// HasDeploymentSystemMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) HasDeploymentSystemMetadata() bool { + if o != nil && o.DeploymentSystemMetadata != nil { + return true + } + + return false +} + +// SetDeploymentSystemMetadata gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata and assigns it to the DeploymentSystemMetadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) SetDeploymentSystemMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) { + o.DeploymentSystemMetadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.CustomResourceStatus != nil { + toSerialize["customResourceStatus"] = o.CustomResourceStatus + } + if o.DeploymentStatus != nil { + toSerialize["deploymentStatus"] = o.DeploymentStatus + } + if o.DeploymentSystemMetadata != nil { + toSerialize["deploymentSystemMetadata"] = o.DeploymentSystemMetadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go new file mode 100644 index 0000000..eed0304 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go @@ -0,0 +1,288 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition struct { + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition(status string, type_ string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition{} + this.Status = status + this.Type = type_ + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusConditionWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusConditionWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition{} + return &this +} + +// GetLastTransitionTime returns the LastTransitionTime field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetLastTransitionTime() time.Time { + if o == nil || o.LastTransitionTime == nil { + var ret time.Time + return ret + } + return *o.LastTransitionTime +} + +// GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetLastTransitionTimeOk() (*time.Time, bool) { + if o == nil || o.LastTransitionTime == nil { + return nil, false + } + return o.LastTransitionTime, true +} + +// HasLastTransitionTime returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasLastTransitionTime() bool { + if o != nil && o.LastTransitionTime != nil { + return true + } + + return false +} + +// SetLastTransitionTime gets a reference to the given time.Time and assigns it to the LastTransitionTime field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetLastTransitionTime(v time.Time) { + o.LastTransitionTime = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetMessage(v string) { + o.Message = &v +} + +// GetObservedGeneration returns the ObservedGeneration field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetObservedGeneration() int64 { + if o == nil || o.ObservedGeneration == nil { + var ret int64 + return ret + } + return *o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetObservedGenerationOk() (*int64, bool) { + if o == nil || o.ObservedGeneration == nil { + return nil, false + } + return o.ObservedGeneration, true +} + +// HasObservedGeneration returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasObservedGeneration() bool { + if o != nil && o.ObservedGeneration != nil { + return true + } + + return false +} + +// SetObservedGeneration gets a reference to the given int64 and assigns it to the ObservedGeneration field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetObservedGeneration(v int64) { + o.ObservedGeneration = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetReason(v string) { + o.Reason = &v +} + +// GetStatus returns the Status field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetStatus(v string) { + o.Status = v +} + +// GetType returns the Type field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) SetType(v string) { + o.Type = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastTransitionTime != nil { + toSerialize["lastTransitionTime"] = o.LastTransitionTime + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.ObservedGeneration != nil { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go new file mode 100644 index 0000000..4a05591 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus VvpDeploymentStatusDeploymentStatus defines the observed state of VvpDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus struct { + Running *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus `json:"running,omitempty"` + State *string `json:"state,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus{} + return &this +} + +// GetRunning returns the Running field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetRunning() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus { + if o == nil || o.Running == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus + return ret + } + return *o.Running +} + +// GetRunningOk returns a tuple with the Running field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetRunningOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus, bool) { + if o == nil || o.Running == nil { + return nil, false + } + return o.Running, true +} + +// HasRunning returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) HasRunning() bool { + if o != nil && o.Running != nil { + return true + } + + return false +} + +// SetRunning gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus and assigns it to the Running field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) SetRunning(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus) { + o.Running = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetState() string { + if o == nil || o.State == nil { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) GetStateOk() (*string, bool) { + if o == nil || o.State == nil { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) HasState() bool { + if o != nil && o.State != nil { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) SetState(v string) { + o.State = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Running != nil { + toSerialize["running"] = o.Running + } + if o.State != nil { + toSerialize["state"] = o.State + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go new file mode 100644 index 0000000..cf926a6 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go @@ -0,0 +1,302 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata VvpDeploymentSystemMetadata defines the observed state of VvpDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata struct { + Annotations *map[string]string `json:"annotations,omitempty"` + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + CreatedAt *time.Time `json:"createdAt,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. + ModifiedAt *time.Time `json:"modifiedAt,omitempty"` + Name *string `json:"name,omitempty"` + ResourceVersion *int32 `json:"resourceVersion,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadataWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadataWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt == nil { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetLabels() map[string]string { + if o == nil || o.Labels == nil { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetLabelsOk() (*map[string]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetModifiedAt() time.Time { + if o == nil || o.ModifiedAt == nil { + var ret time.Time + return ret + } + return *o.ModifiedAt +} + +// GetModifiedAtOk returns a tuple with the ModifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetModifiedAtOk() (*time.Time, bool) { + if o == nil || o.ModifiedAt == nil { + return nil, false + } + return o.ModifiedAt, true +} + +// HasModifiedAt returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasModifiedAt() bool { + if o != nil && o.ModifiedAt != nil { + return true + } + + return false +} + +// SetModifiedAt gets a reference to the given time.Time and assigns it to the ModifiedAt field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetModifiedAt(v time.Time) { + o.ModifiedAt = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetName(v string) { + o.Name = &v +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetResourceVersion() int32 { + if o == nil || o.ResourceVersion == nil { + var ret int32 + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) GetResourceVersionOk() (*int32, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given int32 and assigns it to the ResourceVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) SetResourceVersion(v int32) { + o.ResourceVersion = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if o.CreatedAt != nil { + toSerialize["createdAt"] = o.CreatedAt + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.ModifiedAt != nil { + toSerialize["modifiedAt"] = o.ModifiedAt + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.ResourceVersion != nil { + toSerialize["resourceVersion"] = o.ResourceVersion + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go new file mode 100644 index 0000000..94194c9 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go @@ -0,0 +1,148 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate VvpDeploymentTemplate defines the desired state of VvpDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate struct { + Deployment ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec `json:"deployment"` + SyncingMode *string `json:"syncingMode,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate(deployment ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate{} + this.Deployment = deployment + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate{} + return &this +} + +// GetDeployment returns the Deployment field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetDeployment() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec + return ret + } + + return o.Deployment +} + +// GetDeploymentOk returns a tuple with the Deployment field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetDeploymentOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec, bool) { + if o == nil { + return nil, false + } + return &o.Deployment, true +} + +// SetDeployment sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) SetDeployment(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) { + o.Deployment = v +} + +// GetSyncingMode returns the SyncingMode field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetSyncingMode() string { + if o == nil || o.SyncingMode == nil { + var ret string + return ret + } + return *o.SyncingMode +} + +// GetSyncingModeOk returns a tuple with the SyncingMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) GetSyncingModeOk() (*string, bool) { + if o == nil || o.SyncingMode == nil { + return nil, false + } + return o.SyncingMode, true +} + +// HasSyncingMode returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) HasSyncingMode() bool { + if o != nil && o.SyncingMode != nil { + return true + } + + return false +} + +// SetSyncingMode gets a reference to the given string and assigns it to the SyncingMode field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) SetSyncingMode(v string) { + o.SyncingMode = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["deployment"] = o.Deployment + } + if o.SyncingMode != nil { + toSerialize["syncingMode"] = o.SyncingMode + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go new file mode 100644 index 0000000..afb57f2 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go @@ -0,0 +1,141 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec VvpDeploymentTemplateSpec defines the desired state of VvpDeployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec struct { + Spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails `json:"spec"` + UserMetadata ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata `json:"userMetadata"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec(spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails, userMetadata ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec{} + this.Spec = spec + this.UserMetadata = userMetadata + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec{} + return &this +} + +// GetSpec returns the Spec field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails + return ret + } + + return o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails, bool) { + if o == nil { + return nil, false + } + return &o.Spec, true +} + +// SetSpec sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails) { + o.Spec = v +} + +// GetUserMetadata returns the UserMetadata field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetUserMetadata() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata + return ret + } + + return o.UserMetadata +} + +// GetUserMetadataOk returns a tuple with the UserMetadata field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) GetUserMetadataOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata, bool) { + if o == nil { + return nil, false + } + return &o.UserMetadata, true +} + +// SetUserMetadata sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) SetUserMetadata(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata) { + o.UserMetadata = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["spec"] = o.Spec + } + if true { + toSerialize["userMetadata"] = o.UserMetadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go new file mode 100644 index 0000000..6a19502 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go @@ -0,0 +1,155 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy VvpRestoreStrategy defines the restore strategy of the deployment +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy struct { + AllowNonRestoredState *bool `json:"allowNonRestoredState,omitempty"` + Kind *string `json:"kind,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategyWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategyWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy{} + return &this +} + +// GetAllowNonRestoredState returns the AllowNonRestoredState field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetAllowNonRestoredState() bool { + if o == nil || o.AllowNonRestoredState == nil { + var ret bool + return ret + } + return *o.AllowNonRestoredState +} + +// GetAllowNonRestoredStateOk returns a tuple with the AllowNonRestoredState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetAllowNonRestoredStateOk() (*bool, bool) { + if o == nil || o.AllowNonRestoredState == nil { + return nil, false + } + return o.AllowNonRestoredState, true +} + +// HasAllowNonRestoredState returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) HasAllowNonRestoredState() bool { + if o != nil && o.AllowNonRestoredState != nil { + return true + } + + return false +} + +// SetAllowNonRestoredState gets a reference to the given bool and assigns it to the AllowNonRestoredState field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) SetAllowNonRestoredState(v bool) { + o.AllowNonRestoredState = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) SetKind(v string) { + o.Kind = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AllowNonRestoredState != nil { + toSerialize["allowNonRestoredState"] = o.AllowNonRestoredState + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go new file mode 100644 index 0000000..542ff7f --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go @@ -0,0 +1,265 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace Workspace +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus `json:"status,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetMetadata() V1ObjectMeta { + if o == nil || o.Metadata == nil { + var ret V1ObjectMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetMetadataOk() (*V1ObjectMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ObjectMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetMetadata(v V1ObjectMeta) { + o.Metadata = &v +} + +// GetSpec returns the Spec field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetSpec() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec { + if o == nil || o.Spec == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec + return ret + } + return *o.Spec +} + +// GetSpecOk returns a tuple with the Spec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetSpecOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec, bool) { + if o == nil || o.Spec == nil { + return nil, false + } + return o.Spec, true +} + +// HasSpec returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasSpec() bool { + if o != nil && o.Spec != nil { + return true + } + + return false +} + +// SetSpec gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec and assigns it to the Spec field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetSpec(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) { + o.Spec = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetStatus() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus { + if o == nil || o.Status == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) GetStatusOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus and assigns it to the Status field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) SetStatus(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) { + o.Status = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Spec != nil { + toSerialize["spec"] = o.Spec + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go new file mode 100644 index 0000000..3d350d1 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace `json:"items"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList(items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList{} + this.Items = items + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceListWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceListWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetItems returns the Items field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetItems() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace { + if o == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetItemsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetItems(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace) { + o.Items = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetKind(v string) { + o.Kind = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["items"] = o.Items + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go new file mode 100644 index 0000000..fb3cf63 --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go @@ -0,0 +1,215 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec WorkspaceSpec defines the desired state of Workspace +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec struct { + FlinkBlobStorage *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage `json:"flinkBlobStorage,omitempty"` + PoolRef ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef `json:"poolRef"` + // PulsarClusterNames is the list of Pulsar clusters that the workspace will have access to. + PulsarClusterNames []string `json:"pulsarClusterNames"` + // UseExternalAccess is the flag to indicate whether the workspace will use external access. + UseExternalAccess *bool `json:"useExternalAccess,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec(poolRef ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef, pulsarClusterNames []string) *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec{} + this.PoolRef = poolRef + this.PulsarClusterNames = pulsarClusterNames + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpecWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpecWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec{} + return &this +} + +// GetFlinkBlobStorage returns the FlinkBlobStorage field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetFlinkBlobStorage() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage { + if o == nil || o.FlinkBlobStorage == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage + return ret + } + return *o.FlinkBlobStorage +} + +// GetFlinkBlobStorageOk returns a tuple with the FlinkBlobStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetFlinkBlobStorageOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage, bool) { + if o == nil || o.FlinkBlobStorage == nil { + return nil, false + } + return o.FlinkBlobStorage, true +} + +// HasFlinkBlobStorage returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) HasFlinkBlobStorage() bool { + if o != nil && o.FlinkBlobStorage != nil { + return true + } + + return false +} + +// SetFlinkBlobStorage gets a reference to the given ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage and assigns it to the FlinkBlobStorage field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetFlinkBlobStorage(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage) { + o.FlinkBlobStorage = &v +} + +// GetPoolRef returns the PoolRef field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPoolRef() ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef { + if o == nil { + var ret ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef + return ret + } + + return o.PoolRef +} + +// GetPoolRefOk returns a tuple with the PoolRef field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPoolRefOk() (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef, bool) { + if o == nil { + return nil, false + } + return &o.PoolRef, true +} + +// SetPoolRef sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetPoolRef(v ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef) { + o.PoolRef = v +} + +// GetPulsarClusterNames returns the PulsarClusterNames field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPulsarClusterNames() []string { + if o == nil { + var ret []string + return ret + } + + return o.PulsarClusterNames +} + +// GetPulsarClusterNamesOk returns a tuple with the PulsarClusterNames field value +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetPulsarClusterNamesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.PulsarClusterNames, true +} + +// SetPulsarClusterNames sets field value +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetPulsarClusterNames(v []string) { + o.PulsarClusterNames = v +} + +// GetUseExternalAccess returns the UseExternalAccess field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetUseExternalAccess() bool { + if o == nil || o.UseExternalAccess == nil { + var ret bool + return ret + } + return *o.UseExternalAccess +} + +// GetUseExternalAccessOk returns a tuple with the UseExternalAccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) GetUseExternalAccessOk() (*bool, bool) { + if o == nil || o.UseExternalAccess == nil { + return nil, false + } + return o.UseExternalAccess, true +} + +// HasUseExternalAccess returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) HasUseExternalAccess() bool { + if o != nil && o.UseExternalAccess != nil { + return true + } + + return false +} + +// SetUseExternalAccess gets a reference to the given bool and assigns it to the UseExternalAccess field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) SetUseExternalAccess(v bool) { + o.UseExternalAccess = &v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.FlinkBlobStorage != nil { + toSerialize["flinkBlobStorage"] = o.FlinkBlobStorage + } + if true { + toSerialize["poolRef"] = o.PoolRef + } + if true { + toSerialize["pulsarClusterNames"] = o.PulsarClusterNames + } + if o.UseExternalAccess != nil { + toSerialize["useExternalAccess"] = o.UseExternalAccess + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go new file mode 100644 index 0000000..c9b049d --- /dev/null +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus WorkspaceStatus defines the observed state of Workspace +type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus struct { + // Conditions is an array of current observed pool conditions. + Conditions []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition `json:"conditions,omitempty"` +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus{} + return &this +} + +// NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatusWithDefaults instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatusWithDefaults() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus { + this := ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus{} + return &this +} + +// GetConditions returns the Conditions field value if set, zero value otherwise. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) GetConditions() []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition { + if o == nil || o.Conditions == nil { + var ret []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition + return ret + } + return o.Conditions +} + +// GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) GetConditionsOk() ([]ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition, bool) { + if o == nil || o.Conditions == nil { + return nil, false + } + return o.Conditions, true +} + +// HasConditions returns a boolean if a field has been set. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) HasConditions() bool { + if o != nil && o.Conditions != nil { + return true + } + + return false +} + +// SetConditions gets a reference to the given []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition and assigns it to the Conditions field. +func (o *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) SetConditions(v []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition) { + o.Conditions = v +} + +func (o ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Conditions != nil { + toSerialize["conditions"] = o.Conditions + } + return json.Marshal(toSerialize) +} + +type NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus struct { + value *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus + isSet bool +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) Get() *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus { + return v.value +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) Set(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus(val *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus { + return &NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus{value: val, isSet: true} +} + +func (v NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_affinity.go b/sdk/sdk-apiserver/model_v1_affinity.go new file mode 100644 index 0000000..4a8d244 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_affinity.go @@ -0,0 +1,191 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1Affinity Affinity is a group of affinity scheduling rules. +type V1Affinity struct { + NodeAffinity *V1NodeAffinity `json:"nodeAffinity,omitempty"` + PodAffinity *V1PodAffinity `json:"podAffinity,omitempty"` + PodAntiAffinity *V1PodAntiAffinity `json:"podAntiAffinity,omitempty"` +} + +// NewV1Affinity instantiates a new V1Affinity object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1Affinity() *V1Affinity { + this := V1Affinity{} + return &this +} + +// NewV1AffinityWithDefaults instantiates a new V1Affinity object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1AffinityWithDefaults() *V1Affinity { + this := V1Affinity{} + return &this +} + +// GetNodeAffinity returns the NodeAffinity field value if set, zero value otherwise. +func (o *V1Affinity) GetNodeAffinity() V1NodeAffinity { + if o == nil || o.NodeAffinity == nil { + var ret V1NodeAffinity + return ret + } + return *o.NodeAffinity +} + +// GetNodeAffinityOk returns a tuple with the NodeAffinity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Affinity) GetNodeAffinityOk() (*V1NodeAffinity, bool) { + if o == nil || o.NodeAffinity == nil { + return nil, false + } + return o.NodeAffinity, true +} + +// HasNodeAffinity returns a boolean if a field has been set. +func (o *V1Affinity) HasNodeAffinity() bool { + if o != nil && o.NodeAffinity != nil { + return true + } + + return false +} + +// SetNodeAffinity gets a reference to the given V1NodeAffinity and assigns it to the NodeAffinity field. +func (o *V1Affinity) SetNodeAffinity(v V1NodeAffinity) { + o.NodeAffinity = &v +} + +// GetPodAffinity returns the PodAffinity field value if set, zero value otherwise. +func (o *V1Affinity) GetPodAffinity() V1PodAffinity { + if o == nil || o.PodAffinity == nil { + var ret V1PodAffinity + return ret + } + return *o.PodAffinity +} + +// GetPodAffinityOk returns a tuple with the PodAffinity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Affinity) GetPodAffinityOk() (*V1PodAffinity, bool) { + if o == nil || o.PodAffinity == nil { + return nil, false + } + return o.PodAffinity, true +} + +// HasPodAffinity returns a boolean if a field has been set. +func (o *V1Affinity) HasPodAffinity() bool { + if o != nil && o.PodAffinity != nil { + return true + } + + return false +} + +// SetPodAffinity gets a reference to the given V1PodAffinity and assigns it to the PodAffinity field. +func (o *V1Affinity) SetPodAffinity(v V1PodAffinity) { + o.PodAffinity = &v +} + +// GetPodAntiAffinity returns the PodAntiAffinity field value if set, zero value otherwise. +func (o *V1Affinity) GetPodAntiAffinity() V1PodAntiAffinity { + if o == nil || o.PodAntiAffinity == nil { + var ret V1PodAntiAffinity + return ret + } + return *o.PodAntiAffinity +} + +// GetPodAntiAffinityOk returns a tuple with the PodAntiAffinity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Affinity) GetPodAntiAffinityOk() (*V1PodAntiAffinity, bool) { + if o == nil || o.PodAntiAffinity == nil { + return nil, false + } + return o.PodAntiAffinity, true +} + +// HasPodAntiAffinity returns a boolean if a field has been set. +func (o *V1Affinity) HasPodAntiAffinity() bool { + if o != nil && o.PodAntiAffinity != nil { + return true + } + + return false +} + +// SetPodAntiAffinity gets a reference to the given V1PodAntiAffinity and assigns it to the PodAntiAffinity field. +func (o *V1Affinity) SetPodAntiAffinity(v V1PodAntiAffinity) { + o.PodAntiAffinity = &v +} + +func (o V1Affinity) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.NodeAffinity != nil { + toSerialize["nodeAffinity"] = o.NodeAffinity + } + if o.PodAffinity != nil { + toSerialize["podAffinity"] = o.PodAffinity + } + if o.PodAntiAffinity != nil { + toSerialize["podAntiAffinity"] = o.PodAntiAffinity + } + return json.Marshal(toSerialize) +} + +type NullableV1Affinity struct { + value *V1Affinity + isSet bool +} + +func (v NullableV1Affinity) Get() *V1Affinity { + return v.value +} + +func (v *NullableV1Affinity) Set(val *V1Affinity) { + v.value = val + v.isSet = true +} + +func (v NullableV1Affinity) IsSet() bool { + return v.isSet +} + +func (v *NullableV1Affinity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1Affinity(val *V1Affinity) *NullableV1Affinity { + return &NullableV1Affinity{value: val, isSet: true} +} + +func (v NullableV1Affinity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1Affinity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_api_group.go b/sdk/sdk-apiserver/model_v1_api_group.go new file mode 100644 index 0000000..c8db7bf --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_api_group.go @@ -0,0 +1,290 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1APIGroup APIGroup contains the name, the supported versions, and the preferred version of a group. +type V1APIGroup struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + // name is the name of the group. + Name string `json:"name"` + PreferredVersion *V1GroupVersionForDiscovery `json:"preferredVersion,omitempty"` + // a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + ServerAddressByClientCIDRs []V1ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs,omitempty"` + // versions are the versions supported in this group. + Versions []V1GroupVersionForDiscovery `json:"versions"` +} + +// NewV1APIGroup instantiates a new V1APIGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1APIGroup(name string, versions []V1GroupVersionForDiscovery) *V1APIGroup { + this := V1APIGroup{} + this.Name = name + this.Versions = versions + return &this +} + +// NewV1APIGroupWithDefaults instantiates a new V1APIGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1APIGroupWithDefaults() *V1APIGroup { + this := V1APIGroup{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *V1APIGroup) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIGroup) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *V1APIGroup) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *V1APIGroup) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *V1APIGroup) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIGroup) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *V1APIGroup) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *V1APIGroup) SetKind(v string) { + o.Kind = &v +} + +// GetName returns the Name field value +func (o *V1APIGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V1APIGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V1APIGroup) SetName(v string) { + o.Name = v +} + +// GetPreferredVersion returns the PreferredVersion field value if set, zero value otherwise. +func (o *V1APIGroup) GetPreferredVersion() V1GroupVersionForDiscovery { + if o == nil || o.PreferredVersion == nil { + var ret V1GroupVersionForDiscovery + return ret + } + return *o.PreferredVersion +} + +// GetPreferredVersionOk returns a tuple with the PreferredVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIGroup) GetPreferredVersionOk() (*V1GroupVersionForDiscovery, bool) { + if o == nil || o.PreferredVersion == nil { + return nil, false + } + return o.PreferredVersion, true +} + +// HasPreferredVersion returns a boolean if a field has been set. +func (o *V1APIGroup) HasPreferredVersion() bool { + if o != nil && o.PreferredVersion != nil { + return true + } + + return false +} + +// SetPreferredVersion gets a reference to the given V1GroupVersionForDiscovery and assigns it to the PreferredVersion field. +func (o *V1APIGroup) SetPreferredVersion(v V1GroupVersionForDiscovery) { + o.PreferredVersion = &v +} + +// GetServerAddressByClientCIDRs returns the ServerAddressByClientCIDRs field value if set, zero value otherwise. +func (o *V1APIGroup) GetServerAddressByClientCIDRs() []V1ServerAddressByClientCIDR { + if o == nil || o.ServerAddressByClientCIDRs == nil { + var ret []V1ServerAddressByClientCIDR + return ret + } + return o.ServerAddressByClientCIDRs +} + +// GetServerAddressByClientCIDRsOk returns a tuple with the ServerAddressByClientCIDRs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIGroup) GetServerAddressByClientCIDRsOk() ([]V1ServerAddressByClientCIDR, bool) { + if o == nil || o.ServerAddressByClientCIDRs == nil { + return nil, false + } + return o.ServerAddressByClientCIDRs, true +} + +// HasServerAddressByClientCIDRs returns a boolean if a field has been set. +func (o *V1APIGroup) HasServerAddressByClientCIDRs() bool { + if o != nil && o.ServerAddressByClientCIDRs != nil { + return true + } + + return false +} + +// SetServerAddressByClientCIDRs gets a reference to the given []V1ServerAddressByClientCIDR and assigns it to the ServerAddressByClientCIDRs field. +func (o *V1APIGroup) SetServerAddressByClientCIDRs(v []V1ServerAddressByClientCIDR) { + o.ServerAddressByClientCIDRs = v +} + +// GetVersions returns the Versions field value +func (o *V1APIGroup) GetVersions() []V1GroupVersionForDiscovery { + if o == nil { + var ret []V1GroupVersionForDiscovery + return ret + } + + return o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value +// and a boolean to check if the value has been set. +func (o *V1APIGroup) GetVersionsOk() ([]V1GroupVersionForDiscovery, bool) { + if o == nil { + return nil, false + } + return o.Versions, true +} + +// SetVersions sets field value +func (o *V1APIGroup) SetVersions(v []V1GroupVersionForDiscovery) { + o.Versions = v +} + +func (o V1APIGroup) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if o.PreferredVersion != nil { + toSerialize["preferredVersion"] = o.PreferredVersion + } + if o.ServerAddressByClientCIDRs != nil { + toSerialize["serverAddressByClientCIDRs"] = o.ServerAddressByClientCIDRs + } + if true { + toSerialize["versions"] = o.Versions + } + return json.Marshal(toSerialize) +} + +type NullableV1APIGroup struct { + value *V1APIGroup + isSet bool +} + +func (v NullableV1APIGroup) Get() *V1APIGroup { + return v.value +} + +func (v *NullableV1APIGroup) Set(val *V1APIGroup) { + v.value = val + v.isSet = true +} + +func (v NullableV1APIGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableV1APIGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1APIGroup(val *V1APIGroup) *NullableV1APIGroup { + return &NullableV1APIGroup{value: val, isSet: true} +} + +func (v NullableV1APIGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1APIGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_api_group_list.go b/sdk/sdk-apiserver/model_v1_api_group_list.go new file mode 100644 index 0000000..93b0dd5 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_api_group_list.go @@ -0,0 +1,187 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1APIGroupList APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. +type V1APIGroupList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // groups is a list of APIGroup. + Groups []V1APIGroup `json:"groups"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` +} + +// NewV1APIGroupList instantiates a new V1APIGroupList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1APIGroupList(groups []V1APIGroup) *V1APIGroupList { + this := V1APIGroupList{} + this.Groups = groups + return &this +} + +// NewV1APIGroupListWithDefaults instantiates a new V1APIGroupList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1APIGroupListWithDefaults() *V1APIGroupList { + this := V1APIGroupList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *V1APIGroupList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIGroupList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *V1APIGroupList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *V1APIGroupList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetGroups returns the Groups field value +func (o *V1APIGroupList) GetGroups() []V1APIGroup { + if o == nil { + var ret []V1APIGroup + return ret + } + + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value +// and a boolean to check if the value has been set. +func (o *V1APIGroupList) GetGroupsOk() ([]V1APIGroup, bool) { + if o == nil { + return nil, false + } + return o.Groups, true +} + +// SetGroups sets field value +func (o *V1APIGroupList) SetGroups(v []V1APIGroup) { + o.Groups = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *V1APIGroupList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIGroupList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *V1APIGroupList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *V1APIGroupList) SetKind(v string) { + o.Kind = &v +} + +func (o V1APIGroupList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["groups"] = o.Groups + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + return json.Marshal(toSerialize) +} + +type NullableV1APIGroupList struct { + value *V1APIGroupList + isSet bool +} + +func (v NullableV1APIGroupList) Get() *V1APIGroupList { + return v.value +} + +func (v *NullableV1APIGroupList) Set(val *V1APIGroupList) { + v.value = val + v.isSet = true +} + +func (v NullableV1APIGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullableV1APIGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1APIGroupList(val *V1APIGroupList) *NullableV1APIGroupList { + return &NullableV1APIGroupList{value: val, isSet: true} +} + +func (v NullableV1APIGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1APIGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_api_resource.go b/sdk/sdk-apiserver/model_v1_api_resource.go new file mode 100644 index 0000000..57968aa --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_api_resource.go @@ -0,0 +1,418 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1APIResource APIResource specifies the name of a resource and whether it is namespaced. +type V1APIResource struct { + // categories is a list of the grouped resources this resource belongs to (e.g. 'all') + Categories []string `json:"categories,omitempty"` + // group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". + Group *string `json:"group,omitempty"` + // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + Kind string `json:"kind"` + // name is the plural name of the resource. + Name string `json:"name"` + // namespaced indicates if a resource is namespaced or not. + Namespaced bool `json:"namespaced"` + // shortNames is a list of suggested short names of the resource. + ShortNames []string `json:"shortNames,omitempty"` + // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface. + SingularName string `json:"singularName"` + // The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. + StorageVersionHash *string `json:"storageVersionHash,omitempty"` + // verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy) + Verbs []string `json:"verbs"` + // version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". + Version *string `json:"version,omitempty"` +} + +// NewV1APIResource instantiates a new V1APIResource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1APIResource(kind string, name string, namespaced bool, singularName string, verbs []string) *V1APIResource { + this := V1APIResource{} + this.Kind = kind + this.Name = name + this.Namespaced = namespaced + this.SingularName = singularName + this.Verbs = verbs + return &this +} + +// NewV1APIResourceWithDefaults instantiates a new V1APIResource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1APIResourceWithDefaults() *V1APIResource { + this := V1APIResource{} + return &this +} + +// GetCategories returns the Categories field value if set, zero value otherwise. +func (o *V1APIResource) GetCategories() []string { + if o == nil || o.Categories == nil { + var ret []string + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetCategoriesOk() ([]string, bool) { + if o == nil || o.Categories == nil { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *V1APIResource) HasCategories() bool { + if o != nil && o.Categories != nil { + return true + } + + return false +} + +// SetCategories gets a reference to the given []string and assigns it to the Categories field. +func (o *V1APIResource) SetCategories(v []string) { + o.Categories = v +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *V1APIResource) GetGroup() string { + if o == nil || o.Group == nil { + var ret string + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetGroupOk() (*string, bool) { + if o == nil || o.Group == nil { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *V1APIResource) HasGroup() bool { + if o != nil && o.Group != nil { + return true + } + + return false +} + +// SetGroup gets a reference to the given string and assigns it to the Group field. +func (o *V1APIResource) SetGroup(v string) { + o.Group = &v +} + +// GetKind returns the Kind field value +func (o *V1APIResource) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *V1APIResource) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *V1APIResource) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V1APIResource) SetName(v string) { + o.Name = v +} + +// GetNamespaced returns the Namespaced field value +func (o *V1APIResource) GetNamespaced() bool { + if o == nil { + var ret bool + return ret + } + + return o.Namespaced +} + +// GetNamespacedOk returns a tuple with the Namespaced field value +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetNamespacedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Namespaced, true +} + +// SetNamespaced sets field value +func (o *V1APIResource) SetNamespaced(v bool) { + o.Namespaced = v +} + +// GetShortNames returns the ShortNames field value if set, zero value otherwise. +func (o *V1APIResource) GetShortNames() []string { + if o == nil || o.ShortNames == nil { + var ret []string + return ret + } + return o.ShortNames +} + +// GetShortNamesOk returns a tuple with the ShortNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetShortNamesOk() ([]string, bool) { + if o == nil || o.ShortNames == nil { + return nil, false + } + return o.ShortNames, true +} + +// HasShortNames returns a boolean if a field has been set. +func (o *V1APIResource) HasShortNames() bool { + if o != nil && o.ShortNames != nil { + return true + } + + return false +} + +// SetShortNames gets a reference to the given []string and assigns it to the ShortNames field. +func (o *V1APIResource) SetShortNames(v []string) { + o.ShortNames = v +} + +// GetSingularName returns the SingularName field value +func (o *V1APIResource) GetSingularName() string { + if o == nil { + var ret string + return ret + } + + return o.SingularName +} + +// GetSingularNameOk returns a tuple with the SingularName field value +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetSingularNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SingularName, true +} + +// SetSingularName sets field value +func (o *V1APIResource) SetSingularName(v string) { + o.SingularName = v +} + +// GetStorageVersionHash returns the StorageVersionHash field value if set, zero value otherwise. +func (o *V1APIResource) GetStorageVersionHash() string { + if o == nil || o.StorageVersionHash == nil { + var ret string + return ret + } + return *o.StorageVersionHash +} + +// GetStorageVersionHashOk returns a tuple with the StorageVersionHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetStorageVersionHashOk() (*string, bool) { + if o == nil || o.StorageVersionHash == nil { + return nil, false + } + return o.StorageVersionHash, true +} + +// HasStorageVersionHash returns a boolean if a field has been set. +func (o *V1APIResource) HasStorageVersionHash() bool { + if o != nil && o.StorageVersionHash != nil { + return true + } + + return false +} + +// SetStorageVersionHash gets a reference to the given string and assigns it to the StorageVersionHash field. +func (o *V1APIResource) SetStorageVersionHash(v string) { + o.StorageVersionHash = &v +} + +// GetVerbs returns the Verbs field value +func (o *V1APIResource) GetVerbs() []string { + if o == nil { + var ret []string + return ret + } + + return o.Verbs +} + +// GetVerbsOk returns a tuple with the Verbs field value +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetVerbsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Verbs, true +} + +// SetVerbs sets field value +func (o *V1APIResource) SetVerbs(v []string) { + o.Verbs = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *V1APIResource) GetVersion() string { + if o == nil || o.Version == nil { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIResource) GetVersionOk() (*string, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *V1APIResource) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *V1APIResource) SetVersion(v string) { + o.Version = &v +} + +func (o V1APIResource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Categories != nil { + toSerialize["categories"] = o.Categories + } + if o.Group != nil { + toSerialize["group"] = o.Group + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["namespaced"] = o.Namespaced + } + if o.ShortNames != nil { + toSerialize["shortNames"] = o.ShortNames + } + if true { + toSerialize["singularName"] = o.SingularName + } + if o.StorageVersionHash != nil { + toSerialize["storageVersionHash"] = o.StorageVersionHash + } + if true { + toSerialize["verbs"] = o.Verbs + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableV1APIResource struct { + value *V1APIResource + isSet bool +} + +func (v NullableV1APIResource) Get() *V1APIResource { + return v.value +} + +func (v *NullableV1APIResource) Set(val *V1APIResource) { + v.value = val + v.isSet = true +} + +func (v NullableV1APIResource) IsSet() bool { + return v.isSet +} + +func (v *NullableV1APIResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1APIResource(val *V1APIResource) *NullableV1APIResource { + return &NullableV1APIResource{value: val, isSet: true} +} + +func (v NullableV1APIResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1APIResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_api_resource_list.go b/sdk/sdk-apiserver/model_v1_api_resource_list.go new file mode 100644 index 0000000..df8d840 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_api_resource_list.go @@ -0,0 +1,217 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1APIResourceList APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. +type V1APIResourceList struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // groupVersion is the group and version this APIResourceList is for. + GroupVersion string `json:"groupVersion"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + // resources contains the name of the resources and if they are namespaced. + Resources []V1APIResource `json:"resources"` +} + +// NewV1APIResourceList instantiates a new V1APIResourceList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1APIResourceList(groupVersion string, resources []V1APIResource) *V1APIResourceList { + this := V1APIResourceList{} + this.GroupVersion = groupVersion + this.Resources = resources + return &this +} + +// NewV1APIResourceListWithDefaults instantiates a new V1APIResourceList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1APIResourceListWithDefaults() *V1APIResourceList { + this := V1APIResourceList{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *V1APIResourceList) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIResourceList) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *V1APIResourceList) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *V1APIResourceList) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetGroupVersion returns the GroupVersion field value +func (o *V1APIResourceList) GetGroupVersion() string { + if o == nil { + var ret string + return ret + } + + return o.GroupVersion +} + +// GetGroupVersionOk returns a tuple with the GroupVersion field value +// and a boolean to check if the value has been set. +func (o *V1APIResourceList) GetGroupVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupVersion, true +} + +// SetGroupVersion sets field value +func (o *V1APIResourceList) SetGroupVersion(v string) { + o.GroupVersion = v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *V1APIResourceList) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1APIResourceList) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *V1APIResourceList) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *V1APIResourceList) SetKind(v string) { + o.Kind = &v +} + +// GetResources returns the Resources field value +func (o *V1APIResourceList) GetResources() []V1APIResource { + if o == nil { + var ret []V1APIResource + return ret + } + + return o.Resources +} + +// GetResourcesOk returns a tuple with the Resources field value +// and a boolean to check if the value has been set. +func (o *V1APIResourceList) GetResourcesOk() ([]V1APIResource, bool) { + if o == nil { + return nil, false + } + return o.Resources, true +} + +// SetResources sets field value +func (o *V1APIResourceList) SetResources(v []V1APIResource) { + o.Resources = v +} + +func (o V1APIResourceList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["groupVersion"] = o.GroupVersion + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["resources"] = o.Resources + } + return json.Marshal(toSerialize) +} + +type NullableV1APIResourceList struct { + value *V1APIResourceList + isSet bool +} + +func (v NullableV1APIResourceList) Get() *V1APIResourceList { + return v.value +} + +func (v *NullableV1APIResourceList) Set(val *V1APIResourceList) { + v.value = val + v.isSet = true +} + +func (v NullableV1APIResourceList) IsSet() bool { + return v.isSet +} + +func (v *NullableV1APIResourceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1APIResourceList(val *V1APIResourceList) *NullableV1APIResourceList { + return &NullableV1APIResourceList{value: val, isSet: true} +} + +func (v NullableV1APIResourceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1APIResourceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_condition.go b/sdk/sdk-apiserver/model_v1_condition.go new file mode 100644 index 0000000..754d9bc --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_condition.go @@ -0,0 +1,271 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// V1Condition Condition contains details for one aspect of the current state of this API Resource. +type V1Condition struct { + // lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + LastTransitionTime time.Time `json:"lastTransitionTime"` + // message is a human readable message indicating details about the transition. This may be an empty string. + Message string `json:"message"` + // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + // reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + Reason string `json:"reason"` + // status of the condition, one of True, False, Unknown. + Status string `json:"status"` + // type of condition in CamelCase or in foo.example.com/CamelCase. + Type string `json:"type"` +} + +// NewV1Condition instantiates a new V1Condition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1Condition(lastTransitionTime time.Time, message string, reason string, status string, type_ string) *V1Condition { + this := V1Condition{} + this.LastTransitionTime = lastTransitionTime + this.Message = message + this.Reason = reason + this.Status = status + this.Type = type_ + return &this +} + +// NewV1ConditionWithDefaults instantiates a new V1Condition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ConditionWithDefaults() *V1Condition { + this := V1Condition{} + return &this +} + +// GetLastTransitionTime returns the LastTransitionTime field value +func (o *V1Condition) GetLastTransitionTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.LastTransitionTime +} + +// GetLastTransitionTimeOk returns a tuple with the LastTransitionTime field value +// and a boolean to check if the value has been set. +func (o *V1Condition) GetLastTransitionTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.LastTransitionTime, true +} + +// SetLastTransitionTime sets field value +func (o *V1Condition) SetLastTransitionTime(v time.Time) { + o.LastTransitionTime = v +} + +// GetMessage returns the Message field value +func (o *V1Condition) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *V1Condition) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *V1Condition) SetMessage(v string) { + o.Message = v +} + +// GetObservedGeneration returns the ObservedGeneration field value if set, zero value otherwise. +func (o *V1Condition) GetObservedGeneration() int64 { + if o == nil || o.ObservedGeneration == nil { + var ret int64 + return ret + } + return *o.ObservedGeneration +} + +// GetObservedGenerationOk returns a tuple with the ObservedGeneration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Condition) GetObservedGenerationOk() (*int64, bool) { + if o == nil || o.ObservedGeneration == nil { + return nil, false + } + return o.ObservedGeneration, true +} + +// HasObservedGeneration returns a boolean if a field has been set. +func (o *V1Condition) HasObservedGeneration() bool { + if o != nil && o.ObservedGeneration != nil { + return true + } + + return false +} + +// SetObservedGeneration gets a reference to the given int64 and assigns it to the ObservedGeneration field. +func (o *V1Condition) SetObservedGeneration(v int64) { + o.ObservedGeneration = &v +} + +// GetReason returns the Reason field value +func (o *V1Condition) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *V1Condition) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *V1Condition) SetReason(v string) { + o.Reason = v +} + +// GetStatus returns the Status field value +func (o *V1Condition) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *V1Condition) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *V1Condition) SetStatus(v string) { + o.Status = v +} + +// GetType returns the Type field value +func (o *V1Condition) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *V1Condition) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *V1Condition) SetType(v string) { + o.Type = v +} + +func (o V1Condition) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["lastTransitionTime"] = o.LastTransitionTime + } + if true { + toSerialize["message"] = o.Message + } + if o.ObservedGeneration != nil { + toSerialize["observedGeneration"] = o.ObservedGeneration + } + if true { + toSerialize["reason"] = o.Reason + } + if true { + toSerialize["status"] = o.Status + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableV1Condition struct { + value *V1Condition + isSet bool +} + +func (v NullableV1Condition) Get() *V1Condition { + return v.value +} + +func (v *NullableV1Condition) Set(val *V1Condition) { + v.value = val + v.isSet = true +} + +func (v NullableV1Condition) IsSet() bool { + return v.isSet +} + +func (v *NullableV1Condition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1Condition(val *V1Condition) *NullableV1Condition { + return &NullableV1Condition{value: val, isSet: true} +} + +func (v NullableV1Condition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1Condition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_config_map_env_source.go b/sdk/sdk-apiserver/model_v1_config_map_env_source.go new file mode 100644 index 0000000..2a6ddb5 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_config_map_env_source.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ConfigMapEnvSource ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. +type V1ConfigMapEnvSource struct { + // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name *string `json:"name,omitempty"` + // Specify whether the ConfigMap must be defined + Optional *bool `json:"optional,omitempty"` +} + +// NewV1ConfigMapEnvSource instantiates a new V1ConfigMapEnvSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ConfigMapEnvSource() *V1ConfigMapEnvSource { + this := V1ConfigMapEnvSource{} + return &this +} + +// NewV1ConfigMapEnvSourceWithDefaults instantiates a new V1ConfigMapEnvSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ConfigMapEnvSourceWithDefaults() *V1ConfigMapEnvSource { + this := V1ConfigMapEnvSource{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1ConfigMapEnvSource) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapEnvSource) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1ConfigMapEnvSource) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1ConfigMapEnvSource) SetName(v string) { + o.Name = &v +} + +// GetOptional returns the Optional field value if set, zero value otherwise. +func (o *V1ConfigMapEnvSource) GetOptional() bool { + if o == nil || o.Optional == nil { + var ret bool + return ret + } + return *o.Optional +} + +// GetOptionalOk returns a tuple with the Optional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapEnvSource) GetOptionalOk() (*bool, bool) { + if o == nil || o.Optional == nil { + return nil, false + } + return o.Optional, true +} + +// HasOptional returns a boolean if a field has been set. +func (o *V1ConfigMapEnvSource) HasOptional() bool { + if o != nil && o.Optional != nil { + return true + } + + return false +} + +// SetOptional gets a reference to the given bool and assigns it to the Optional field. +func (o *V1ConfigMapEnvSource) SetOptional(v bool) { + o.Optional = &v +} + +func (o V1ConfigMapEnvSource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Optional != nil { + toSerialize["optional"] = o.Optional + } + return json.Marshal(toSerialize) +} + +type NullableV1ConfigMapEnvSource struct { + value *V1ConfigMapEnvSource + isSet bool +} + +func (v NullableV1ConfigMapEnvSource) Get() *V1ConfigMapEnvSource { + return v.value +} + +func (v *NullableV1ConfigMapEnvSource) Set(val *V1ConfigMapEnvSource) { + v.value = val + v.isSet = true +} + +func (v NullableV1ConfigMapEnvSource) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ConfigMapEnvSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ConfigMapEnvSource(val *V1ConfigMapEnvSource) *NullableV1ConfigMapEnvSource { + return &NullableV1ConfigMapEnvSource{value: val, isSet: true} +} + +func (v NullableV1ConfigMapEnvSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ConfigMapEnvSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_config_map_key_selector.go b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go new file mode 100644 index 0000000..946db92 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go @@ -0,0 +1,187 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ConfigMapKeySelector Selects a key from a ConfigMap. +type V1ConfigMapKeySelector struct { + // The key to select. + Key string `json:"key"` + // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name *string `json:"name,omitempty"` + // Specify whether the ConfigMap or its key must be defined + Optional *bool `json:"optional,omitempty"` +} + +// NewV1ConfigMapKeySelector instantiates a new V1ConfigMapKeySelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ConfigMapKeySelector(key string) *V1ConfigMapKeySelector { + this := V1ConfigMapKeySelector{} + this.Key = key + return &this +} + +// NewV1ConfigMapKeySelectorWithDefaults instantiates a new V1ConfigMapKeySelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ConfigMapKeySelectorWithDefaults() *V1ConfigMapKeySelector { + this := V1ConfigMapKeySelector{} + return &this +} + +// GetKey returns the Key field value +func (o *V1ConfigMapKeySelector) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *V1ConfigMapKeySelector) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *V1ConfigMapKeySelector) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1ConfigMapKeySelector) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapKeySelector) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1ConfigMapKeySelector) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1ConfigMapKeySelector) SetName(v string) { + o.Name = &v +} + +// GetOptional returns the Optional field value if set, zero value otherwise. +func (o *V1ConfigMapKeySelector) GetOptional() bool { + if o == nil || o.Optional == nil { + var ret bool + return ret + } + return *o.Optional +} + +// GetOptionalOk returns a tuple with the Optional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapKeySelector) GetOptionalOk() (*bool, bool) { + if o == nil || o.Optional == nil { + return nil, false + } + return o.Optional, true +} + +// HasOptional returns a boolean if a field has been set. +func (o *V1ConfigMapKeySelector) HasOptional() bool { + if o != nil && o.Optional != nil { + return true + } + + return false +} + +// SetOptional gets a reference to the given bool and assigns it to the Optional field. +func (o *V1ConfigMapKeySelector) SetOptional(v bool) { + o.Optional = &v +} + +func (o V1ConfigMapKeySelector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Optional != nil { + toSerialize["optional"] = o.Optional + } + return json.Marshal(toSerialize) +} + +type NullableV1ConfigMapKeySelector struct { + value *V1ConfigMapKeySelector + isSet bool +} + +func (v NullableV1ConfigMapKeySelector) Get() *V1ConfigMapKeySelector { + return v.value +} + +func (v *NullableV1ConfigMapKeySelector) Set(val *V1ConfigMapKeySelector) { + v.value = val + v.isSet = true +} + +func (v NullableV1ConfigMapKeySelector) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ConfigMapKeySelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ConfigMapKeySelector(val *V1ConfigMapKeySelector) *NullableV1ConfigMapKeySelector { + return &NullableV1ConfigMapKeySelector{value: val, isSet: true} +} + +func (v NullableV1ConfigMapKeySelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ConfigMapKeySelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_config_map_volume_source.go b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go new file mode 100644 index 0000000..b42c4e0 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ConfigMapVolumeSource Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. +type V1ConfigMapVolumeSource struct { + // defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty"` + // items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + Items []V1KeyToPath `json:"items,omitempty"` + // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name *string `json:"name,omitempty"` + // optional specify whether the ConfigMap or its keys must be defined + Optional *bool `json:"optional,omitempty"` +} + +// NewV1ConfigMapVolumeSource instantiates a new V1ConfigMapVolumeSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ConfigMapVolumeSource() *V1ConfigMapVolumeSource { + this := V1ConfigMapVolumeSource{} + return &this +} + +// NewV1ConfigMapVolumeSourceWithDefaults instantiates a new V1ConfigMapVolumeSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ConfigMapVolumeSourceWithDefaults() *V1ConfigMapVolumeSource { + this := V1ConfigMapVolumeSource{} + return &this +} + +// GetDefaultMode returns the DefaultMode field value if set, zero value otherwise. +func (o *V1ConfigMapVolumeSource) GetDefaultMode() int32 { + if o == nil || o.DefaultMode == nil { + var ret int32 + return ret + } + return *o.DefaultMode +} + +// GetDefaultModeOk returns a tuple with the DefaultMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapVolumeSource) GetDefaultModeOk() (*int32, bool) { + if o == nil || o.DefaultMode == nil { + return nil, false + } + return o.DefaultMode, true +} + +// HasDefaultMode returns a boolean if a field has been set. +func (o *V1ConfigMapVolumeSource) HasDefaultMode() bool { + if o != nil && o.DefaultMode != nil { + return true + } + + return false +} + +// SetDefaultMode gets a reference to the given int32 and assigns it to the DefaultMode field. +func (o *V1ConfigMapVolumeSource) SetDefaultMode(v int32) { + o.DefaultMode = &v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *V1ConfigMapVolumeSource) GetItems() []V1KeyToPath { + if o == nil || o.Items == nil { + var ret []V1KeyToPath + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapVolumeSource) GetItemsOk() ([]V1KeyToPath, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *V1ConfigMapVolumeSource) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []V1KeyToPath and assigns it to the Items field. +func (o *V1ConfigMapVolumeSource) SetItems(v []V1KeyToPath) { + o.Items = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1ConfigMapVolumeSource) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapVolumeSource) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1ConfigMapVolumeSource) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1ConfigMapVolumeSource) SetName(v string) { + o.Name = &v +} + +// GetOptional returns the Optional field value if set, zero value otherwise. +func (o *V1ConfigMapVolumeSource) GetOptional() bool { + if o == nil || o.Optional == nil { + var ret bool + return ret + } + return *o.Optional +} + +// GetOptionalOk returns a tuple with the Optional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ConfigMapVolumeSource) GetOptionalOk() (*bool, bool) { + if o == nil || o.Optional == nil { + return nil, false + } + return o.Optional, true +} + +// HasOptional returns a boolean if a field has been set. +func (o *V1ConfigMapVolumeSource) HasOptional() bool { + if o != nil && o.Optional != nil { + return true + } + + return false +} + +// SetOptional gets a reference to the given bool and assigns it to the Optional field. +func (o *V1ConfigMapVolumeSource) SetOptional(v bool) { + o.Optional = &v +} + +func (o V1ConfigMapVolumeSource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DefaultMode != nil { + toSerialize["defaultMode"] = o.DefaultMode + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Optional != nil { + toSerialize["optional"] = o.Optional + } + return json.Marshal(toSerialize) +} + +type NullableV1ConfigMapVolumeSource struct { + value *V1ConfigMapVolumeSource + isSet bool +} + +func (v NullableV1ConfigMapVolumeSource) Get() *V1ConfigMapVolumeSource { + return v.value +} + +func (v *NullableV1ConfigMapVolumeSource) Set(val *V1ConfigMapVolumeSource) { + v.value = val + v.isSet = true +} + +func (v NullableV1ConfigMapVolumeSource) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ConfigMapVolumeSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ConfigMapVolumeSource(val *V1ConfigMapVolumeSource) *NullableV1ConfigMapVolumeSource { + return &NullableV1ConfigMapVolumeSource{value: val, isSet: true} +} + +func (v NullableV1ConfigMapVolumeSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ConfigMapVolumeSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_delete_options.go b/sdk/sdk-apiserver/model_v1_delete_options.go new file mode 100644 index 0000000..5732c77 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_delete_options.go @@ -0,0 +1,341 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1DeleteOptions DeleteOptions may be provided when deleting an API object. +type V1DeleteOptions struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + DryRun []string `json:"dryRun,omitempty"` + // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + GracePeriodSeconds *int64 `json:"gracePeriodSeconds,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + OrphanDependents *bool `json:"orphanDependents,omitempty"` + Preconditions *V1Preconditions `json:"preconditions,omitempty"` + // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + PropagationPolicy *string `json:"propagationPolicy,omitempty"` +} + +// NewV1DeleteOptions instantiates a new V1DeleteOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1DeleteOptions() *V1DeleteOptions { + this := V1DeleteOptions{} + return &this +} + +// NewV1DeleteOptionsWithDefaults instantiates a new V1DeleteOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1DeleteOptionsWithDefaults() *V1DeleteOptions { + this := V1DeleteOptions{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *V1DeleteOptions) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1DeleteOptions) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *V1DeleteOptions) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *V1DeleteOptions) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetDryRun returns the DryRun field value if set, zero value otherwise. +func (o *V1DeleteOptions) GetDryRun() []string { + if o == nil || o.DryRun == nil { + var ret []string + return ret + } + return o.DryRun +} + +// GetDryRunOk returns a tuple with the DryRun field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1DeleteOptions) GetDryRunOk() ([]string, bool) { + if o == nil || o.DryRun == nil { + return nil, false + } + return o.DryRun, true +} + +// HasDryRun returns a boolean if a field has been set. +func (o *V1DeleteOptions) HasDryRun() bool { + if o != nil && o.DryRun != nil { + return true + } + + return false +} + +// SetDryRun gets a reference to the given []string and assigns it to the DryRun field. +func (o *V1DeleteOptions) SetDryRun(v []string) { + o.DryRun = v +} + +// GetGracePeriodSeconds returns the GracePeriodSeconds field value if set, zero value otherwise. +func (o *V1DeleteOptions) GetGracePeriodSeconds() int64 { + if o == nil || o.GracePeriodSeconds == nil { + var ret int64 + return ret + } + return *o.GracePeriodSeconds +} + +// GetGracePeriodSecondsOk returns a tuple with the GracePeriodSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1DeleteOptions) GetGracePeriodSecondsOk() (*int64, bool) { + if o == nil || o.GracePeriodSeconds == nil { + return nil, false + } + return o.GracePeriodSeconds, true +} + +// HasGracePeriodSeconds returns a boolean if a field has been set. +func (o *V1DeleteOptions) HasGracePeriodSeconds() bool { + if o != nil && o.GracePeriodSeconds != nil { + return true + } + + return false +} + +// SetGracePeriodSeconds gets a reference to the given int64 and assigns it to the GracePeriodSeconds field. +func (o *V1DeleteOptions) SetGracePeriodSeconds(v int64) { + o.GracePeriodSeconds = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *V1DeleteOptions) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1DeleteOptions) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *V1DeleteOptions) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *V1DeleteOptions) SetKind(v string) { + o.Kind = &v +} + +// GetOrphanDependents returns the OrphanDependents field value if set, zero value otherwise. +func (o *V1DeleteOptions) GetOrphanDependents() bool { + if o == nil || o.OrphanDependents == nil { + var ret bool + return ret + } + return *o.OrphanDependents +} + +// GetOrphanDependentsOk returns a tuple with the OrphanDependents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1DeleteOptions) GetOrphanDependentsOk() (*bool, bool) { + if o == nil || o.OrphanDependents == nil { + return nil, false + } + return o.OrphanDependents, true +} + +// HasOrphanDependents returns a boolean if a field has been set. +func (o *V1DeleteOptions) HasOrphanDependents() bool { + if o != nil && o.OrphanDependents != nil { + return true + } + + return false +} + +// SetOrphanDependents gets a reference to the given bool and assigns it to the OrphanDependents field. +func (o *V1DeleteOptions) SetOrphanDependents(v bool) { + o.OrphanDependents = &v +} + +// GetPreconditions returns the Preconditions field value if set, zero value otherwise. +func (o *V1DeleteOptions) GetPreconditions() V1Preconditions { + if o == nil || o.Preconditions == nil { + var ret V1Preconditions + return ret + } + return *o.Preconditions +} + +// GetPreconditionsOk returns a tuple with the Preconditions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1DeleteOptions) GetPreconditionsOk() (*V1Preconditions, bool) { + if o == nil || o.Preconditions == nil { + return nil, false + } + return o.Preconditions, true +} + +// HasPreconditions returns a boolean if a field has been set. +func (o *V1DeleteOptions) HasPreconditions() bool { + if o != nil && o.Preconditions != nil { + return true + } + + return false +} + +// SetPreconditions gets a reference to the given V1Preconditions and assigns it to the Preconditions field. +func (o *V1DeleteOptions) SetPreconditions(v V1Preconditions) { + o.Preconditions = &v +} + +// GetPropagationPolicy returns the PropagationPolicy field value if set, zero value otherwise. +func (o *V1DeleteOptions) GetPropagationPolicy() string { + if o == nil || o.PropagationPolicy == nil { + var ret string + return ret + } + return *o.PropagationPolicy +} + +// GetPropagationPolicyOk returns a tuple with the PropagationPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1DeleteOptions) GetPropagationPolicyOk() (*string, bool) { + if o == nil || o.PropagationPolicy == nil { + return nil, false + } + return o.PropagationPolicy, true +} + +// HasPropagationPolicy returns a boolean if a field has been set. +func (o *V1DeleteOptions) HasPropagationPolicy() bool { + if o != nil && o.PropagationPolicy != nil { + return true + } + + return false +} + +// SetPropagationPolicy gets a reference to the given string and assigns it to the PropagationPolicy field. +func (o *V1DeleteOptions) SetPropagationPolicy(v string) { + o.PropagationPolicy = &v +} + +func (o V1DeleteOptions) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.DryRun != nil { + toSerialize["dryRun"] = o.DryRun + } + if o.GracePeriodSeconds != nil { + toSerialize["gracePeriodSeconds"] = o.GracePeriodSeconds + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.OrphanDependents != nil { + toSerialize["orphanDependents"] = o.OrphanDependents + } + if o.Preconditions != nil { + toSerialize["preconditions"] = o.Preconditions + } + if o.PropagationPolicy != nil { + toSerialize["propagationPolicy"] = o.PropagationPolicy + } + return json.Marshal(toSerialize) +} + +type NullableV1DeleteOptions struct { + value *V1DeleteOptions + isSet bool +} + +func (v NullableV1DeleteOptions) Get() *V1DeleteOptions { + return v.value +} + +func (v *NullableV1DeleteOptions) Set(val *V1DeleteOptions) { + v.value = val + v.isSet = true +} + +func (v NullableV1DeleteOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableV1DeleteOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1DeleteOptions(val *V1DeleteOptions) *NullableV1DeleteOptions { + return &NullableV1DeleteOptions{value: val, isSet: true} +} + +func (v NullableV1DeleteOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1DeleteOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_env_from_source.go b/sdk/sdk-apiserver/model_v1_env_from_source.go new file mode 100644 index 0000000..2077a3f --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_env_from_source.go @@ -0,0 +1,192 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1EnvFromSource EnvFromSource represents the source of a set of ConfigMaps +type V1EnvFromSource struct { + ConfigMapRef *V1ConfigMapEnvSource `json:"configMapRef,omitempty"` + // An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + Prefix *string `json:"prefix,omitempty"` + SecretRef *V1SecretEnvSource `json:"secretRef,omitempty"` +} + +// NewV1EnvFromSource instantiates a new V1EnvFromSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1EnvFromSource() *V1EnvFromSource { + this := V1EnvFromSource{} + return &this +} + +// NewV1EnvFromSourceWithDefaults instantiates a new V1EnvFromSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1EnvFromSourceWithDefaults() *V1EnvFromSource { + this := V1EnvFromSource{} + return &this +} + +// GetConfigMapRef returns the ConfigMapRef field value if set, zero value otherwise. +func (o *V1EnvFromSource) GetConfigMapRef() V1ConfigMapEnvSource { + if o == nil || o.ConfigMapRef == nil { + var ret V1ConfigMapEnvSource + return ret + } + return *o.ConfigMapRef +} + +// GetConfigMapRefOk returns a tuple with the ConfigMapRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvFromSource) GetConfigMapRefOk() (*V1ConfigMapEnvSource, bool) { + if o == nil || o.ConfigMapRef == nil { + return nil, false + } + return o.ConfigMapRef, true +} + +// HasConfigMapRef returns a boolean if a field has been set. +func (o *V1EnvFromSource) HasConfigMapRef() bool { + if o != nil && o.ConfigMapRef != nil { + return true + } + + return false +} + +// SetConfigMapRef gets a reference to the given V1ConfigMapEnvSource and assigns it to the ConfigMapRef field. +func (o *V1EnvFromSource) SetConfigMapRef(v V1ConfigMapEnvSource) { + o.ConfigMapRef = &v +} + +// GetPrefix returns the Prefix field value if set, zero value otherwise. +func (o *V1EnvFromSource) GetPrefix() string { + if o == nil || o.Prefix == nil { + var ret string + return ret + } + return *o.Prefix +} + +// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvFromSource) GetPrefixOk() (*string, bool) { + if o == nil || o.Prefix == nil { + return nil, false + } + return o.Prefix, true +} + +// HasPrefix returns a boolean if a field has been set. +func (o *V1EnvFromSource) HasPrefix() bool { + if o != nil && o.Prefix != nil { + return true + } + + return false +} + +// SetPrefix gets a reference to the given string and assigns it to the Prefix field. +func (o *V1EnvFromSource) SetPrefix(v string) { + o.Prefix = &v +} + +// GetSecretRef returns the SecretRef field value if set, zero value otherwise. +func (o *V1EnvFromSource) GetSecretRef() V1SecretEnvSource { + if o == nil || o.SecretRef == nil { + var ret V1SecretEnvSource + return ret + } + return *o.SecretRef +} + +// GetSecretRefOk returns a tuple with the SecretRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvFromSource) GetSecretRefOk() (*V1SecretEnvSource, bool) { + if o == nil || o.SecretRef == nil { + return nil, false + } + return o.SecretRef, true +} + +// HasSecretRef returns a boolean if a field has been set. +func (o *V1EnvFromSource) HasSecretRef() bool { + if o != nil && o.SecretRef != nil { + return true + } + + return false +} + +// SetSecretRef gets a reference to the given V1SecretEnvSource and assigns it to the SecretRef field. +func (o *V1EnvFromSource) SetSecretRef(v V1SecretEnvSource) { + o.SecretRef = &v +} + +func (o V1EnvFromSource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ConfigMapRef != nil { + toSerialize["configMapRef"] = o.ConfigMapRef + } + if o.Prefix != nil { + toSerialize["prefix"] = o.Prefix + } + if o.SecretRef != nil { + toSerialize["secretRef"] = o.SecretRef + } + return json.Marshal(toSerialize) +} + +type NullableV1EnvFromSource struct { + value *V1EnvFromSource + isSet bool +} + +func (v NullableV1EnvFromSource) Get() *V1EnvFromSource { + return v.value +} + +func (v *NullableV1EnvFromSource) Set(val *V1EnvFromSource) { + v.value = val + v.isSet = true +} + +func (v NullableV1EnvFromSource) IsSet() bool { + return v.isSet +} + +func (v *NullableV1EnvFromSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1EnvFromSource(val *V1EnvFromSource) *NullableV1EnvFromSource { + return &NullableV1EnvFromSource{value: val, isSet: true} +} + +func (v NullableV1EnvFromSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1EnvFromSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_env_var.go b/sdk/sdk-apiserver/model_v1_env_var.go new file mode 100644 index 0000000..2e6470b --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_env_var.go @@ -0,0 +1,186 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1EnvVar EnvVar represents an environment variable present in a Container. +type V1EnvVar struct { + // Name of the environment variable. Must be a C_IDENTIFIER. + Name string `json:"name"` + // Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + Value *string `json:"value,omitempty"` + ValueFrom *V1EnvVarSource `json:"valueFrom,omitempty"` +} + +// NewV1EnvVar instantiates a new V1EnvVar object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1EnvVar(name string) *V1EnvVar { + this := V1EnvVar{} + this.Name = name + return &this +} + +// NewV1EnvVarWithDefaults instantiates a new V1EnvVar object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1EnvVarWithDefaults() *V1EnvVar { + this := V1EnvVar{} + return &this +} + +// GetName returns the Name field value +func (o *V1EnvVar) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V1EnvVar) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V1EnvVar) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V1EnvVar) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvVar) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *V1EnvVar) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *V1EnvVar) SetValue(v string) { + o.Value = &v +} + +// GetValueFrom returns the ValueFrom field value if set, zero value otherwise. +func (o *V1EnvVar) GetValueFrom() V1EnvVarSource { + if o == nil || o.ValueFrom == nil { + var ret V1EnvVarSource + return ret + } + return *o.ValueFrom +} + +// GetValueFromOk returns a tuple with the ValueFrom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvVar) GetValueFromOk() (*V1EnvVarSource, bool) { + if o == nil || o.ValueFrom == nil { + return nil, false + } + return o.ValueFrom, true +} + +// HasValueFrom returns a boolean if a field has been set. +func (o *V1EnvVar) HasValueFrom() bool { + if o != nil && o.ValueFrom != nil { + return true + } + + return false +} + +// SetValueFrom gets a reference to the given V1EnvVarSource and assigns it to the ValueFrom field. +func (o *V1EnvVar) SetValueFrom(v V1EnvVarSource) { + o.ValueFrom = &v +} + +func (o V1EnvVar) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + if o.ValueFrom != nil { + toSerialize["valueFrom"] = o.ValueFrom + } + return json.Marshal(toSerialize) +} + +type NullableV1EnvVar struct { + value *V1EnvVar + isSet bool +} + +func (v NullableV1EnvVar) Get() *V1EnvVar { + return v.value +} + +func (v *NullableV1EnvVar) Set(val *V1EnvVar) { + v.value = val + v.isSet = true +} + +func (v NullableV1EnvVar) IsSet() bool { + return v.isSet +} + +func (v *NullableV1EnvVar) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1EnvVar(val *V1EnvVar) *NullableV1EnvVar { + return &NullableV1EnvVar{value: val, isSet: true} +} + +func (v NullableV1EnvVar) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1EnvVar) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_env_var_source.go b/sdk/sdk-apiserver/model_v1_env_var_source.go new file mode 100644 index 0000000..cdd7a95 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_env_var_source.go @@ -0,0 +1,227 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1EnvVarSource EnvVarSource represents a source for the value of an EnvVar. +type V1EnvVarSource struct { + ConfigMapKeyRef *V1ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` + FieldRef *V1ObjectFieldSelector `json:"fieldRef,omitempty"` + ResourceFieldRef *V1ResourceFieldSelector `json:"resourceFieldRef,omitempty"` + SecretKeyRef *V1SecretKeySelector `json:"secretKeyRef,omitempty"` +} + +// NewV1EnvVarSource instantiates a new V1EnvVarSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1EnvVarSource() *V1EnvVarSource { + this := V1EnvVarSource{} + return &this +} + +// NewV1EnvVarSourceWithDefaults instantiates a new V1EnvVarSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1EnvVarSourceWithDefaults() *V1EnvVarSource { + this := V1EnvVarSource{} + return &this +} + +// GetConfigMapKeyRef returns the ConfigMapKeyRef field value if set, zero value otherwise. +func (o *V1EnvVarSource) GetConfigMapKeyRef() V1ConfigMapKeySelector { + if o == nil || o.ConfigMapKeyRef == nil { + var ret V1ConfigMapKeySelector + return ret + } + return *o.ConfigMapKeyRef +} + +// GetConfigMapKeyRefOk returns a tuple with the ConfigMapKeyRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvVarSource) GetConfigMapKeyRefOk() (*V1ConfigMapKeySelector, bool) { + if o == nil || o.ConfigMapKeyRef == nil { + return nil, false + } + return o.ConfigMapKeyRef, true +} + +// HasConfigMapKeyRef returns a boolean if a field has been set. +func (o *V1EnvVarSource) HasConfigMapKeyRef() bool { + if o != nil && o.ConfigMapKeyRef != nil { + return true + } + + return false +} + +// SetConfigMapKeyRef gets a reference to the given V1ConfigMapKeySelector and assigns it to the ConfigMapKeyRef field. +func (o *V1EnvVarSource) SetConfigMapKeyRef(v V1ConfigMapKeySelector) { + o.ConfigMapKeyRef = &v +} + +// GetFieldRef returns the FieldRef field value if set, zero value otherwise. +func (o *V1EnvVarSource) GetFieldRef() V1ObjectFieldSelector { + if o == nil || o.FieldRef == nil { + var ret V1ObjectFieldSelector + return ret + } + return *o.FieldRef +} + +// GetFieldRefOk returns a tuple with the FieldRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvVarSource) GetFieldRefOk() (*V1ObjectFieldSelector, bool) { + if o == nil || o.FieldRef == nil { + return nil, false + } + return o.FieldRef, true +} + +// HasFieldRef returns a boolean if a field has been set. +func (o *V1EnvVarSource) HasFieldRef() bool { + if o != nil && o.FieldRef != nil { + return true + } + + return false +} + +// SetFieldRef gets a reference to the given V1ObjectFieldSelector and assigns it to the FieldRef field. +func (o *V1EnvVarSource) SetFieldRef(v V1ObjectFieldSelector) { + o.FieldRef = &v +} + +// GetResourceFieldRef returns the ResourceFieldRef field value if set, zero value otherwise. +func (o *V1EnvVarSource) GetResourceFieldRef() V1ResourceFieldSelector { + if o == nil || o.ResourceFieldRef == nil { + var ret V1ResourceFieldSelector + return ret + } + return *o.ResourceFieldRef +} + +// GetResourceFieldRefOk returns a tuple with the ResourceFieldRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvVarSource) GetResourceFieldRefOk() (*V1ResourceFieldSelector, bool) { + if o == nil || o.ResourceFieldRef == nil { + return nil, false + } + return o.ResourceFieldRef, true +} + +// HasResourceFieldRef returns a boolean if a field has been set. +func (o *V1EnvVarSource) HasResourceFieldRef() bool { + if o != nil && o.ResourceFieldRef != nil { + return true + } + + return false +} + +// SetResourceFieldRef gets a reference to the given V1ResourceFieldSelector and assigns it to the ResourceFieldRef field. +func (o *V1EnvVarSource) SetResourceFieldRef(v V1ResourceFieldSelector) { + o.ResourceFieldRef = &v +} + +// GetSecretKeyRef returns the SecretKeyRef field value if set, zero value otherwise. +func (o *V1EnvVarSource) GetSecretKeyRef() V1SecretKeySelector { + if o == nil || o.SecretKeyRef == nil { + var ret V1SecretKeySelector + return ret + } + return *o.SecretKeyRef +} + +// GetSecretKeyRefOk returns a tuple with the SecretKeyRef field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1EnvVarSource) GetSecretKeyRefOk() (*V1SecretKeySelector, bool) { + if o == nil || o.SecretKeyRef == nil { + return nil, false + } + return o.SecretKeyRef, true +} + +// HasSecretKeyRef returns a boolean if a field has been set. +func (o *V1EnvVarSource) HasSecretKeyRef() bool { + if o != nil && o.SecretKeyRef != nil { + return true + } + + return false +} + +// SetSecretKeyRef gets a reference to the given V1SecretKeySelector and assigns it to the SecretKeyRef field. +func (o *V1EnvVarSource) SetSecretKeyRef(v V1SecretKeySelector) { + o.SecretKeyRef = &v +} + +func (o V1EnvVarSource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ConfigMapKeyRef != nil { + toSerialize["configMapKeyRef"] = o.ConfigMapKeyRef + } + if o.FieldRef != nil { + toSerialize["fieldRef"] = o.FieldRef + } + if o.ResourceFieldRef != nil { + toSerialize["resourceFieldRef"] = o.ResourceFieldRef + } + if o.SecretKeyRef != nil { + toSerialize["secretKeyRef"] = o.SecretKeyRef + } + return json.Marshal(toSerialize) +} + +type NullableV1EnvVarSource struct { + value *V1EnvVarSource + isSet bool +} + +func (v NullableV1EnvVarSource) Get() *V1EnvVarSource { + return v.value +} + +func (v *NullableV1EnvVarSource) Set(val *V1EnvVarSource) { + v.value = val + v.isSet = true +} + +func (v NullableV1EnvVarSource) IsSet() bool { + return v.isSet +} + +func (v *NullableV1EnvVarSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1EnvVarSource(val *V1EnvVarSource) *NullableV1EnvVarSource { + return &NullableV1EnvVarSource{value: val, isSet: true} +} + +func (v NullableV1EnvVarSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1EnvVarSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_exec_action.go b/sdk/sdk-apiserver/model_v1_exec_action.go new file mode 100644 index 0000000..cff276a --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_exec_action.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ExecAction ExecAction describes a \"run in container\" action. +type V1ExecAction struct { + // Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + Command []string `json:"command,omitempty"` +} + +// NewV1ExecAction instantiates a new V1ExecAction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ExecAction() *V1ExecAction { + this := V1ExecAction{} + return &this +} + +// NewV1ExecActionWithDefaults instantiates a new V1ExecAction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ExecActionWithDefaults() *V1ExecAction { + this := V1ExecAction{} + return &this +} + +// GetCommand returns the Command field value if set, zero value otherwise. +func (o *V1ExecAction) GetCommand() []string { + if o == nil || o.Command == nil { + var ret []string + return ret + } + return o.Command +} + +// GetCommandOk returns a tuple with the Command field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ExecAction) GetCommandOk() ([]string, bool) { + if o == nil || o.Command == nil { + return nil, false + } + return o.Command, true +} + +// HasCommand returns a boolean if a field has been set. +func (o *V1ExecAction) HasCommand() bool { + if o != nil && o.Command != nil { + return true + } + + return false +} + +// SetCommand gets a reference to the given []string and assigns it to the Command field. +func (o *V1ExecAction) SetCommand(v []string) { + o.Command = v +} + +func (o V1ExecAction) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Command != nil { + toSerialize["command"] = o.Command + } + return json.Marshal(toSerialize) +} + +type NullableV1ExecAction struct { + value *V1ExecAction + isSet bool +} + +func (v NullableV1ExecAction) Get() *V1ExecAction { + return v.value +} + +func (v *NullableV1ExecAction) Set(val *V1ExecAction) { + v.value = val + v.isSet = true +} + +func (v NullableV1ExecAction) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ExecAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ExecAction(val *V1ExecAction) *NullableV1ExecAction { + return &NullableV1ExecAction{value: val, isSet: true} +} + +func (v NullableV1ExecAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ExecAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go new file mode 100644 index 0000000..8ef3f04 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go @@ -0,0 +1,143 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1GroupVersionForDiscovery GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. +type V1GroupVersionForDiscovery struct { + // groupVersion specifies the API group and version in the form \"group/version\" + GroupVersion string `json:"groupVersion"` + // version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion. + Version string `json:"version"` +} + +// NewV1GroupVersionForDiscovery instantiates a new V1GroupVersionForDiscovery object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1GroupVersionForDiscovery(groupVersion string, version string) *V1GroupVersionForDiscovery { + this := V1GroupVersionForDiscovery{} + this.GroupVersion = groupVersion + this.Version = version + return &this +} + +// NewV1GroupVersionForDiscoveryWithDefaults instantiates a new V1GroupVersionForDiscovery object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1GroupVersionForDiscoveryWithDefaults() *V1GroupVersionForDiscovery { + this := V1GroupVersionForDiscovery{} + return &this +} + +// GetGroupVersion returns the GroupVersion field value +func (o *V1GroupVersionForDiscovery) GetGroupVersion() string { + if o == nil { + var ret string + return ret + } + + return o.GroupVersion +} + +// GetGroupVersionOk returns a tuple with the GroupVersion field value +// and a boolean to check if the value has been set. +func (o *V1GroupVersionForDiscovery) GetGroupVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupVersion, true +} + +// SetGroupVersion sets field value +func (o *V1GroupVersionForDiscovery) SetGroupVersion(v string) { + o.GroupVersion = v +} + +// GetVersion returns the Version field value +func (o *V1GroupVersionForDiscovery) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *V1GroupVersionForDiscovery) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *V1GroupVersionForDiscovery) SetVersion(v string) { + o.Version = v +} + +func (o V1GroupVersionForDiscovery) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["groupVersion"] = o.GroupVersion + } + if true { + toSerialize["version"] = o.Version + } + return json.Marshal(toSerialize) +} + +type NullableV1GroupVersionForDiscovery struct { + value *V1GroupVersionForDiscovery + isSet bool +} + +func (v NullableV1GroupVersionForDiscovery) Get() *V1GroupVersionForDiscovery { + return v.value +} + +func (v *NullableV1GroupVersionForDiscovery) Set(val *V1GroupVersionForDiscovery) { + v.value = val + v.isSet = true +} + +func (v NullableV1GroupVersionForDiscovery) IsSet() bool { + return v.isSet +} + +func (v *NullableV1GroupVersionForDiscovery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1GroupVersionForDiscovery(val *V1GroupVersionForDiscovery) *NullableV1GroupVersionForDiscovery { + return &NullableV1GroupVersionForDiscovery{value: val, isSet: true} +} + +func (v NullableV1GroupVersionForDiscovery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1GroupVersionForDiscovery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_grpc_action.go b/sdk/sdk-apiserver/model_v1_grpc_action.go new file mode 100644 index 0000000..6bc09cd --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_grpc_action.go @@ -0,0 +1,150 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1GRPCAction struct for V1GRPCAction +type V1GRPCAction struct { + // Port number of the gRPC service. Number must be in the range 1 to 65535. + Port int32 `json:"port"` + // Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. + Service *string `json:"service,omitempty"` +} + +// NewV1GRPCAction instantiates a new V1GRPCAction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1GRPCAction(port int32) *V1GRPCAction { + this := V1GRPCAction{} + this.Port = port + return &this +} + +// NewV1GRPCActionWithDefaults instantiates a new V1GRPCAction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1GRPCActionWithDefaults() *V1GRPCAction { + this := V1GRPCAction{} + return &this +} + +// GetPort returns the Port field value +func (o *V1GRPCAction) GetPort() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Port +} + +// GetPortOk returns a tuple with the Port field value +// and a boolean to check if the value has been set. +func (o *V1GRPCAction) GetPortOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Port, true +} + +// SetPort sets field value +func (o *V1GRPCAction) SetPort(v int32) { + o.Port = v +} + +// GetService returns the Service field value if set, zero value otherwise. +func (o *V1GRPCAction) GetService() string { + if o == nil || o.Service == nil { + var ret string + return ret + } + return *o.Service +} + +// GetServiceOk returns a tuple with the Service field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1GRPCAction) GetServiceOk() (*string, bool) { + if o == nil || o.Service == nil { + return nil, false + } + return o.Service, true +} + +// HasService returns a boolean if a field has been set. +func (o *V1GRPCAction) HasService() bool { + if o != nil && o.Service != nil { + return true + } + + return false +} + +// SetService gets a reference to the given string and assigns it to the Service field. +func (o *V1GRPCAction) SetService(v string) { + o.Service = &v +} + +func (o V1GRPCAction) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["port"] = o.Port + } + if o.Service != nil { + toSerialize["service"] = o.Service + } + return json.Marshal(toSerialize) +} + +type NullableV1GRPCAction struct { + value *V1GRPCAction + isSet bool +} + +func (v NullableV1GRPCAction) Get() *V1GRPCAction { + return v.value +} + +func (v *NullableV1GRPCAction) Set(val *V1GRPCAction) { + v.value = val + v.isSet = true +} + +func (v NullableV1GRPCAction) IsSet() bool { + return v.isSet +} + +func (v *NullableV1GRPCAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1GRPCAction(val *V1GRPCAction) *NullableV1GRPCAction { + return &NullableV1GRPCAction{value: val, isSet: true} +} + +func (v NullableV1GRPCAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1GRPCAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_http_get_action.go b/sdk/sdk-apiserver/model_v1_http_get_action.go new file mode 100644 index 0000000..8d35f3a --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_http_get_action.go @@ -0,0 +1,261 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1HTTPGetAction HTTPGetAction describes an action based on HTTP Get requests. +type V1HTTPGetAction struct { + // Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. + Host *string `json:"host,omitempty"` + // Custom headers to set in the request. HTTP allows repeated headers. + HttpHeaders []V1HTTPHeader `json:"httpHeaders,omitempty"` + // Path to access on the HTTP server. + Path *string `json:"path,omitempty"` + // Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + Port map[string]interface{} `json:"port"` + // Scheme to use for connecting to the host. Defaults to HTTP. Possible enum values: - `\"HTTP\"` means that the scheme used will be http:// - `\"HTTPS\"` means that the scheme used will be https:// + Scheme *string `json:"scheme,omitempty"` +} + +// NewV1HTTPGetAction instantiates a new V1HTTPGetAction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1HTTPGetAction(port map[string]interface{}) *V1HTTPGetAction { + this := V1HTTPGetAction{} + this.Port = port + return &this +} + +// NewV1HTTPGetActionWithDefaults instantiates a new V1HTTPGetAction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1HTTPGetActionWithDefaults() *V1HTTPGetAction { + this := V1HTTPGetAction{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *V1HTTPGetAction) GetHost() string { + if o == nil || o.Host == nil { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1HTTPGetAction) GetHostOk() (*string, bool) { + if o == nil || o.Host == nil { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *V1HTTPGetAction) HasHost() bool { + if o != nil && o.Host != nil { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *V1HTTPGetAction) SetHost(v string) { + o.Host = &v +} + +// GetHttpHeaders returns the HttpHeaders field value if set, zero value otherwise. +func (o *V1HTTPGetAction) GetHttpHeaders() []V1HTTPHeader { + if o == nil || o.HttpHeaders == nil { + var ret []V1HTTPHeader + return ret + } + return o.HttpHeaders +} + +// GetHttpHeadersOk returns a tuple with the HttpHeaders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1HTTPGetAction) GetHttpHeadersOk() ([]V1HTTPHeader, bool) { + if o == nil || o.HttpHeaders == nil { + return nil, false + } + return o.HttpHeaders, true +} + +// HasHttpHeaders returns a boolean if a field has been set. +func (o *V1HTTPGetAction) HasHttpHeaders() bool { + if o != nil && o.HttpHeaders != nil { + return true + } + + return false +} + +// SetHttpHeaders gets a reference to the given []V1HTTPHeader and assigns it to the HttpHeaders field. +func (o *V1HTTPGetAction) SetHttpHeaders(v []V1HTTPHeader) { + o.HttpHeaders = v +} + +// GetPath returns the Path field value if set, zero value otherwise. +func (o *V1HTTPGetAction) GetPath() string { + if o == nil || o.Path == nil { + var ret string + return ret + } + return *o.Path +} + +// GetPathOk returns a tuple with the Path field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1HTTPGetAction) GetPathOk() (*string, bool) { + if o == nil || o.Path == nil { + return nil, false + } + return o.Path, true +} + +// HasPath returns a boolean if a field has been set. +func (o *V1HTTPGetAction) HasPath() bool { + if o != nil && o.Path != nil { + return true + } + + return false +} + +// SetPath gets a reference to the given string and assigns it to the Path field. +func (o *V1HTTPGetAction) SetPath(v string) { + o.Path = &v +} + +// GetPort returns the Port field value +func (o *V1HTTPGetAction) GetPort() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Port +} + +// GetPortOk returns a tuple with the Port field value +// and a boolean to check if the value has been set. +func (o *V1HTTPGetAction) GetPortOk() (map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Port, true +} + +// SetPort sets field value +func (o *V1HTTPGetAction) SetPort(v map[string]interface{}) { + o.Port = v +} + +// GetScheme returns the Scheme field value if set, zero value otherwise. +func (o *V1HTTPGetAction) GetScheme() string { + if o == nil || o.Scheme == nil { + var ret string + return ret + } + return *o.Scheme +} + +// GetSchemeOk returns a tuple with the Scheme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1HTTPGetAction) GetSchemeOk() (*string, bool) { + if o == nil || o.Scheme == nil { + return nil, false + } + return o.Scheme, true +} + +// HasScheme returns a boolean if a field has been set. +func (o *V1HTTPGetAction) HasScheme() bool { + if o != nil && o.Scheme != nil { + return true + } + + return false +} + +// SetScheme gets a reference to the given string and assigns it to the Scheme field. +func (o *V1HTTPGetAction) SetScheme(v string) { + o.Scheme = &v +} + +func (o V1HTTPGetAction) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Host != nil { + toSerialize["host"] = o.Host + } + if o.HttpHeaders != nil { + toSerialize["httpHeaders"] = o.HttpHeaders + } + if o.Path != nil { + toSerialize["path"] = o.Path + } + if true { + toSerialize["port"] = o.Port + } + if o.Scheme != nil { + toSerialize["scheme"] = o.Scheme + } + return json.Marshal(toSerialize) +} + +type NullableV1HTTPGetAction struct { + value *V1HTTPGetAction + isSet bool +} + +func (v NullableV1HTTPGetAction) Get() *V1HTTPGetAction { + return v.value +} + +func (v *NullableV1HTTPGetAction) Set(val *V1HTTPGetAction) { + v.value = val + v.isSet = true +} + +func (v NullableV1HTTPGetAction) IsSet() bool { + return v.isSet +} + +func (v *NullableV1HTTPGetAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1HTTPGetAction(val *V1HTTPGetAction) *NullableV1HTTPGetAction { + return &NullableV1HTTPGetAction{value: val, isSet: true} +} + +func (v NullableV1HTTPGetAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1HTTPGetAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_http_header.go b/sdk/sdk-apiserver/model_v1_http_header.go new file mode 100644 index 0000000..2065039 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_http_header.go @@ -0,0 +1,143 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1HTTPHeader HTTPHeader describes a custom header to be used in HTTP probes +type V1HTTPHeader struct { + // The header field name + Name string `json:"name"` + // The header field value + Value string `json:"value"` +} + +// NewV1HTTPHeader instantiates a new V1HTTPHeader object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1HTTPHeader(name string, value string) *V1HTTPHeader { + this := V1HTTPHeader{} + this.Name = name + this.Value = value + return &this +} + +// NewV1HTTPHeaderWithDefaults instantiates a new V1HTTPHeader object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1HTTPHeaderWithDefaults() *V1HTTPHeader { + this := V1HTTPHeader{} + return &this +} + +// GetName returns the Name field value +func (o *V1HTTPHeader) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V1HTTPHeader) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V1HTTPHeader) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value +func (o *V1HTTPHeader) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *V1HTTPHeader) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *V1HTTPHeader) SetValue(v string) { + o.Value = v +} + +func (o V1HTTPHeader) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableV1HTTPHeader struct { + value *V1HTTPHeader + isSet bool +} + +func (v NullableV1HTTPHeader) Get() *V1HTTPHeader { + return v.value +} + +func (v *NullableV1HTTPHeader) Set(val *V1HTTPHeader) { + v.value = val + v.isSet = true +} + +func (v NullableV1HTTPHeader) IsSet() bool { + return v.isSet +} + +func (v *NullableV1HTTPHeader) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1HTTPHeader(val *V1HTTPHeader) *NullableV1HTTPHeader { + return &NullableV1HTTPHeader{value: val, isSet: true} +} + +func (v NullableV1HTTPHeader) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1HTTPHeader) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_key_to_path.go b/sdk/sdk-apiserver/model_v1_key_to_path.go new file mode 100644 index 0000000..c7bdc1b --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_key_to_path.go @@ -0,0 +1,180 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1KeyToPath Maps a string key to a path within a volume. +type V1KeyToPath struct { + // key is the key to project. + Key string `json:"key"` + // mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + Mode *int32 `json:"mode,omitempty"` + // path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. + Path string `json:"path"` +} + +// NewV1KeyToPath instantiates a new V1KeyToPath object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1KeyToPath(key string, path string) *V1KeyToPath { + this := V1KeyToPath{} + this.Key = key + this.Path = path + return &this +} + +// NewV1KeyToPathWithDefaults instantiates a new V1KeyToPath object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1KeyToPathWithDefaults() *V1KeyToPath { + this := V1KeyToPath{} + return &this +} + +// GetKey returns the Key field value +func (o *V1KeyToPath) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *V1KeyToPath) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *V1KeyToPath) SetKey(v string) { + o.Key = v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *V1KeyToPath) GetMode() int32 { + if o == nil || o.Mode == nil { + var ret int32 + return ret + } + return *o.Mode +} + +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1KeyToPath) GetModeOk() (*int32, bool) { + if o == nil || o.Mode == nil { + return nil, false + } + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *V1KeyToPath) HasMode() bool { + if o != nil && o.Mode != nil { + return true + } + + return false +} + +// SetMode gets a reference to the given int32 and assigns it to the Mode field. +func (o *V1KeyToPath) SetMode(v int32) { + o.Mode = &v +} + +// GetPath returns the Path field value +func (o *V1KeyToPath) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *V1KeyToPath) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *V1KeyToPath) SetPath(v string) { + o.Path = v +} + +func (o V1KeyToPath) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } + if o.Mode != nil { + toSerialize["mode"] = o.Mode + } + if true { + toSerialize["path"] = o.Path + } + return json.Marshal(toSerialize) +} + +type NullableV1KeyToPath struct { + value *V1KeyToPath + isSet bool +} + +func (v NullableV1KeyToPath) Get() *V1KeyToPath { + return v.value +} + +func (v *NullableV1KeyToPath) Set(val *V1KeyToPath) { + v.value = val + v.isSet = true +} + +func (v NullableV1KeyToPath) IsSet() bool { + return v.isSet +} + +func (v *NullableV1KeyToPath) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1KeyToPath(val *V1KeyToPath) *NullableV1KeyToPath { + return &NullableV1KeyToPath{value: val, isSet: true} +} + +func (v NullableV1KeyToPath) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1KeyToPath) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_label_selector.go b/sdk/sdk-apiserver/model_v1_label_selector.go new file mode 100644 index 0000000..9ff7ddf --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_label_selector.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1LabelSelector A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +type V1LabelSelector struct { + // matchExpressions is a list of label selector requirements. The requirements are ANDed. + MatchExpressions []V1LabelSelectorRequirement `json:"matchExpressions,omitempty"` + // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + MatchLabels *map[string]string `json:"matchLabels,omitempty"` +} + +// NewV1LabelSelector instantiates a new V1LabelSelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1LabelSelector() *V1LabelSelector { + this := V1LabelSelector{} + return &this +} + +// NewV1LabelSelectorWithDefaults instantiates a new V1LabelSelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1LabelSelectorWithDefaults() *V1LabelSelector { + this := V1LabelSelector{} + return &this +} + +// GetMatchExpressions returns the MatchExpressions field value if set, zero value otherwise. +func (o *V1LabelSelector) GetMatchExpressions() []V1LabelSelectorRequirement { + if o == nil || o.MatchExpressions == nil { + var ret []V1LabelSelectorRequirement + return ret + } + return o.MatchExpressions +} + +// GetMatchExpressionsOk returns a tuple with the MatchExpressions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1LabelSelector) GetMatchExpressionsOk() ([]V1LabelSelectorRequirement, bool) { + if o == nil || o.MatchExpressions == nil { + return nil, false + } + return o.MatchExpressions, true +} + +// HasMatchExpressions returns a boolean if a field has been set. +func (o *V1LabelSelector) HasMatchExpressions() bool { + if o != nil && o.MatchExpressions != nil { + return true + } + + return false +} + +// SetMatchExpressions gets a reference to the given []V1LabelSelectorRequirement and assigns it to the MatchExpressions field. +func (o *V1LabelSelector) SetMatchExpressions(v []V1LabelSelectorRequirement) { + o.MatchExpressions = v +} + +// GetMatchLabels returns the MatchLabels field value if set, zero value otherwise. +func (o *V1LabelSelector) GetMatchLabels() map[string]string { + if o == nil || o.MatchLabels == nil { + var ret map[string]string + return ret + } + return *o.MatchLabels +} + +// GetMatchLabelsOk returns a tuple with the MatchLabels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1LabelSelector) GetMatchLabelsOk() (*map[string]string, bool) { + if o == nil || o.MatchLabels == nil { + return nil, false + } + return o.MatchLabels, true +} + +// HasMatchLabels returns a boolean if a field has been set. +func (o *V1LabelSelector) HasMatchLabels() bool { + if o != nil && o.MatchLabels != nil { + return true + } + + return false +} + +// SetMatchLabels gets a reference to the given map[string]string and assigns it to the MatchLabels field. +func (o *V1LabelSelector) SetMatchLabels(v map[string]string) { + o.MatchLabels = &v +} + +func (o V1LabelSelector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.MatchExpressions != nil { + toSerialize["matchExpressions"] = o.MatchExpressions + } + if o.MatchLabels != nil { + toSerialize["matchLabels"] = o.MatchLabels + } + return json.Marshal(toSerialize) +} + +type NullableV1LabelSelector struct { + value *V1LabelSelector + isSet bool +} + +func (v NullableV1LabelSelector) Get() *V1LabelSelector { + return v.value +} + +func (v *NullableV1LabelSelector) Set(val *V1LabelSelector) { + v.value = val + v.isSet = true +} + +func (v NullableV1LabelSelector) IsSet() bool { + return v.isSet +} + +func (v *NullableV1LabelSelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1LabelSelector(val *V1LabelSelector) *NullableV1LabelSelector { + return &NullableV1LabelSelector{value: val, isSet: true} +} + +func (v NullableV1LabelSelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1LabelSelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_label_selector_requirement.go b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go new file mode 100644 index 0000000..def3338 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go @@ -0,0 +1,180 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1LabelSelectorRequirement A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. +type V1LabelSelectorRequirement struct { + // key is the label key that the selector applies to. + Key string `json:"key"` + // operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + Operator string `json:"operator"` + // values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + Values []string `json:"values,omitempty"` +} + +// NewV1LabelSelectorRequirement instantiates a new V1LabelSelectorRequirement object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1LabelSelectorRequirement(key string, operator string) *V1LabelSelectorRequirement { + this := V1LabelSelectorRequirement{} + this.Key = key + this.Operator = operator + return &this +} + +// NewV1LabelSelectorRequirementWithDefaults instantiates a new V1LabelSelectorRequirement object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1LabelSelectorRequirementWithDefaults() *V1LabelSelectorRequirement { + this := V1LabelSelectorRequirement{} + return &this +} + +// GetKey returns the Key field value +func (o *V1LabelSelectorRequirement) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *V1LabelSelectorRequirement) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *V1LabelSelectorRequirement) SetKey(v string) { + o.Key = v +} + +// GetOperator returns the Operator field value +func (o *V1LabelSelectorRequirement) GetOperator() string { + if o == nil { + var ret string + return ret + } + + return o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value +// and a boolean to check if the value has been set. +func (o *V1LabelSelectorRequirement) GetOperatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Operator, true +} + +// SetOperator sets field value +func (o *V1LabelSelectorRequirement) SetOperator(v string) { + o.Operator = v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *V1LabelSelectorRequirement) GetValues() []string { + if o == nil || o.Values == nil { + var ret []string + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1LabelSelectorRequirement) GetValuesOk() ([]string, bool) { + if o == nil || o.Values == nil { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *V1LabelSelectorRequirement) HasValues() bool { + if o != nil && o.Values != nil { + return true + } + + return false +} + +// SetValues gets a reference to the given []string and assigns it to the Values field. +func (o *V1LabelSelectorRequirement) SetValues(v []string) { + o.Values = v +} + +func (o V1LabelSelectorRequirement) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } + if true { + toSerialize["operator"] = o.Operator + } + if o.Values != nil { + toSerialize["values"] = o.Values + } + return json.Marshal(toSerialize) +} + +type NullableV1LabelSelectorRequirement struct { + value *V1LabelSelectorRequirement + isSet bool +} + +func (v NullableV1LabelSelectorRequirement) Get() *V1LabelSelectorRequirement { + return v.value +} + +func (v *NullableV1LabelSelectorRequirement) Set(val *V1LabelSelectorRequirement) { + v.value = val + v.isSet = true +} + +func (v NullableV1LabelSelectorRequirement) IsSet() bool { + return v.isSet +} + +func (v *NullableV1LabelSelectorRequirement) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1LabelSelectorRequirement(val *V1LabelSelectorRequirement) *NullableV1LabelSelectorRequirement { + return &NullableV1LabelSelectorRequirement{value: val, isSet: true} +} + +func (v NullableV1LabelSelectorRequirement) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1LabelSelectorRequirement) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_list_meta.go b/sdk/sdk-apiserver/model_v1_list_meta.go new file mode 100644 index 0000000..048a3cc --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_list_meta.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ListMeta ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. +type V1ListMeta struct { + // continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. + Continue *string `json:"continue,omitempty"` + // remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. + RemainingItemCount *int64 `json:"remainingItemCount,omitempty"` + // String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + ResourceVersion *string `json:"resourceVersion,omitempty"` + // Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + SelfLink *string `json:"selfLink,omitempty"` +} + +// NewV1ListMeta instantiates a new V1ListMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ListMeta() *V1ListMeta { + this := V1ListMeta{} + return &this +} + +// NewV1ListMetaWithDefaults instantiates a new V1ListMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ListMetaWithDefaults() *V1ListMeta { + this := V1ListMeta{} + return &this +} + +// GetContinue returns the Continue field value if set, zero value otherwise. +func (o *V1ListMeta) GetContinue() string { + if o == nil || o.Continue == nil { + var ret string + return ret + } + return *o.Continue +} + +// GetContinueOk returns a tuple with the Continue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ListMeta) GetContinueOk() (*string, bool) { + if o == nil || o.Continue == nil { + return nil, false + } + return o.Continue, true +} + +// HasContinue returns a boolean if a field has been set. +func (o *V1ListMeta) HasContinue() bool { + if o != nil && o.Continue != nil { + return true + } + + return false +} + +// SetContinue gets a reference to the given string and assigns it to the Continue field. +func (o *V1ListMeta) SetContinue(v string) { + o.Continue = &v +} + +// GetRemainingItemCount returns the RemainingItemCount field value if set, zero value otherwise. +func (o *V1ListMeta) GetRemainingItemCount() int64 { + if o == nil || o.RemainingItemCount == nil { + var ret int64 + return ret + } + return *o.RemainingItemCount +} + +// GetRemainingItemCountOk returns a tuple with the RemainingItemCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ListMeta) GetRemainingItemCountOk() (*int64, bool) { + if o == nil || o.RemainingItemCount == nil { + return nil, false + } + return o.RemainingItemCount, true +} + +// HasRemainingItemCount returns a boolean if a field has been set. +func (o *V1ListMeta) HasRemainingItemCount() bool { + if o != nil && o.RemainingItemCount != nil { + return true + } + + return false +} + +// SetRemainingItemCount gets a reference to the given int64 and assigns it to the RemainingItemCount field. +func (o *V1ListMeta) SetRemainingItemCount(v int64) { + o.RemainingItemCount = &v +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *V1ListMeta) GetResourceVersion() string { + if o == nil || o.ResourceVersion == nil { + var ret string + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ListMeta) GetResourceVersionOk() (*string, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *V1ListMeta) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given string and assigns it to the ResourceVersion field. +func (o *V1ListMeta) SetResourceVersion(v string) { + o.ResourceVersion = &v +} + +// GetSelfLink returns the SelfLink field value if set, zero value otherwise. +func (o *V1ListMeta) GetSelfLink() string { + if o == nil || o.SelfLink == nil { + var ret string + return ret + } + return *o.SelfLink +} + +// GetSelfLinkOk returns a tuple with the SelfLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ListMeta) GetSelfLinkOk() (*string, bool) { + if o == nil || o.SelfLink == nil { + return nil, false + } + return o.SelfLink, true +} + +// HasSelfLink returns a boolean if a field has been set. +func (o *V1ListMeta) HasSelfLink() bool { + if o != nil && o.SelfLink != nil { + return true + } + + return false +} + +// SetSelfLink gets a reference to the given string and assigns it to the SelfLink field. +func (o *V1ListMeta) SetSelfLink(v string) { + o.SelfLink = &v +} + +func (o V1ListMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Continue != nil { + toSerialize["continue"] = o.Continue + } + if o.RemainingItemCount != nil { + toSerialize["remainingItemCount"] = o.RemainingItemCount + } + if o.ResourceVersion != nil { + toSerialize["resourceVersion"] = o.ResourceVersion + } + if o.SelfLink != nil { + toSerialize["selfLink"] = o.SelfLink + } + return json.Marshal(toSerialize) +} + +type NullableV1ListMeta struct { + value *V1ListMeta + isSet bool +} + +func (v NullableV1ListMeta) Get() *V1ListMeta { + return v.value +} + +func (v *NullableV1ListMeta) Set(val *V1ListMeta) { + v.value = val + v.isSet = true +} + +func (v NullableV1ListMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ListMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ListMeta(val *V1ListMeta) *NullableV1ListMeta { + return &NullableV1ListMeta{value: val, isSet: true} +} + +func (v NullableV1ListMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ListMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_local_object_reference.go b/sdk/sdk-apiserver/model_v1_local_object_reference.go new file mode 100644 index 0000000..d640717 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_local_object_reference.go @@ -0,0 +1,120 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1LocalObjectReference LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. +type V1LocalObjectReference struct { + // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name *string `json:"name,omitempty"` +} + +// NewV1LocalObjectReference instantiates a new V1LocalObjectReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1LocalObjectReference() *V1LocalObjectReference { + this := V1LocalObjectReference{} + return &this +} + +// NewV1LocalObjectReferenceWithDefaults instantiates a new V1LocalObjectReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1LocalObjectReferenceWithDefaults() *V1LocalObjectReference { + this := V1LocalObjectReference{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1LocalObjectReference) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1LocalObjectReference) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1LocalObjectReference) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1LocalObjectReference) SetName(v string) { + o.Name = &v +} + +func (o V1LocalObjectReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + return json.Marshal(toSerialize) +} + +type NullableV1LocalObjectReference struct { + value *V1LocalObjectReference + isSet bool +} + +func (v NullableV1LocalObjectReference) Get() *V1LocalObjectReference { + return v.value +} + +func (v *NullableV1LocalObjectReference) Set(val *V1LocalObjectReference) { + v.value = val + v.isSet = true +} + +func (v NullableV1LocalObjectReference) IsSet() bool { + return v.isSet +} + +func (v *NullableV1LocalObjectReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1LocalObjectReference(val *V1LocalObjectReference) *NullableV1LocalObjectReference { + return &NullableV1LocalObjectReference{value: val, isSet: true} +} + +func (v NullableV1LocalObjectReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1LocalObjectReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_managed_fields_entry.go b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go new file mode 100644 index 0000000..f8c3279 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go @@ -0,0 +1,343 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// V1ManagedFieldsEntry ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. +type V1ManagedFieldsEntry struct { + // APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. + ApiVersion *string `json:"apiVersion,omitempty"` + // FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" + FieldsType *string `json:"fieldsType,omitempty"` + // FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. + FieldsV1 map[string]interface{} `json:"fieldsV1,omitempty"` + // Manager is an identifier of the workflow managing these fields. + Manager *string `json:"manager,omitempty"` + // Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. + Operation *string `json:"operation,omitempty"` + // Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. + Subresource *string `json:"subresource,omitempty"` + // Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. + Time *time.Time `json:"time,omitempty"` +} + +// NewV1ManagedFieldsEntry instantiates a new V1ManagedFieldsEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ManagedFieldsEntry() *V1ManagedFieldsEntry { + this := V1ManagedFieldsEntry{} + return &this +} + +// NewV1ManagedFieldsEntryWithDefaults instantiates a new V1ManagedFieldsEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ManagedFieldsEntryWithDefaults() *V1ManagedFieldsEntry { + this := V1ManagedFieldsEntry{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *V1ManagedFieldsEntry) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ManagedFieldsEntry) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *V1ManagedFieldsEntry) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *V1ManagedFieldsEntry) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetFieldsType returns the FieldsType field value if set, zero value otherwise. +func (o *V1ManagedFieldsEntry) GetFieldsType() string { + if o == nil || o.FieldsType == nil { + var ret string + return ret + } + return *o.FieldsType +} + +// GetFieldsTypeOk returns a tuple with the FieldsType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ManagedFieldsEntry) GetFieldsTypeOk() (*string, bool) { + if o == nil || o.FieldsType == nil { + return nil, false + } + return o.FieldsType, true +} + +// HasFieldsType returns a boolean if a field has been set. +func (o *V1ManagedFieldsEntry) HasFieldsType() bool { + if o != nil && o.FieldsType != nil { + return true + } + + return false +} + +// SetFieldsType gets a reference to the given string and assigns it to the FieldsType field. +func (o *V1ManagedFieldsEntry) SetFieldsType(v string) { + o.FieldsType = &v +} + +// GetFieldsV1 returns the FieldsV1 field value if set, zero value otherwise. +func (o *V1ManagedFieldsEntry) GetFieldsV1() map[string]interface{} { + if o == nil || o.FieldsV1 == nil { + var ret map[string]interface{} + return ret + } + return o.FieldsV1 +} + +// GetFieldsV1Ok returns a tuple with the FieldsV1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ManagedFieldsEntry) GetFieldsV1Ok() (map[string]interface{}, bool) { + if o == nil || o.FieldsV1 == nil { + return nil, false + } + return o.FieldsV1, true +} + +// HasFieldsV1 returns a boolean if a field has been set. +func (o *V1ManagedFieldsEntry) HasFieldsV1() bool { + if o != nil && o.FieldsV1 != nil { + return true + } + + return false +} + +// SetFieldsV1 gets a reference to the given map[string]interface{} and assigns it to the FieldsV1 field. +func (o *V1ManagedFieldsEntry) SetFieldsV1(v map[string]interface{}) { + o.FieldsV1 = v +} + +// GetManager returns the Manager field value if set, zero value otherwise. +func (o *V1ManagedFieldsEntry) GetManager() string { + if o == nil || o.Manager == nil { + var ret string + return ret + } + return *o.Manager +} + +// GetManagerOk returns a tuple with the Manager field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ManagedFieldsEntry) GetManagerOk() (*string, bool) { + if o == nil || o.Manager == nil { + return nil, false + } + return o.Manager, true +} + +// HasManager returns a boolean if a field has been set. +func (o *V1ManagedFieldsEntry) HasManager() bool { + if o != nil && o.Manager != nil { + return true + } + + return false +} + +// SetManager gets a reference to the given string and assigns it to the Manager field. +func (o *V1ManagedFieldsEntry) SetManager(v string) { + o.Manager = &v +} + +// GetOperation returns the Operation field value if set, zero value otherwise. +func (o *V1ManagedFieldsEntry) GetOperation() string { + if o == nil || o.Operation == nil { + var ret string + return ret + } + return *o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ManagedFieldsEntry) GetOperationOk() (*string, bool) { + if o == nil || o.Operation == nil { + return nil, false + } + return o.Operation, true +} + +// HasOperation returns a boolean if a field has been set. +func (o *V1ManagedFieldsEntry) HasOperation() bool { + if o != nil && o.Operation != nil { + return true + } + + return false +} + +// SetOperation gets a reference to the given string and assigns it to the Operation field. +func (o *V1ManagedFieldsEntry) SetOperation(v string) { + o.Operation = &v +} + +// GetSubresource returns the Subresource field value if set, zero value otherwise. +func (o *V1ManagedFieldsEntry) GetSubresource() string { + if o == nil || o.Subresource == nil { + var ret string + return ret + } + return *o.Subresource +} + +// GetSubresourceOk returns a tuple with the Subresource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ManagedFieldsEntry) GetSubresourceOk() (*string, bool) { + if o == nil || o.Subresource == nil { + return nil, false + } + return o.Subresource, true +} + +// HasSubresource returns a boolean if a field has been set. +func (o *V1ManagedFieldsEntry) HasSubresource() bool { + if o != nil && o.Subresource != nil { + return true + } + + return false +} + +// SetSubresource gets a reference to the given string and assigns it to the Subresource field. +func (o *V1ManagedFieldsEntry) SetSubresource(v string) { + o.Subresource = &v +} + +// GetTime returns the Time field value if set, zero value otherwise. +func (o *V1ManagedFieldsEntry) GetTime() time.Time { + if o == nil || o.Time == nil { + var ret time.Time + return ret + } + return *o.Time +} + +// GetTimeOk returns a tuple with the Time field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ManagedFieldsEntry) GetTimeOk() (*time.Time, bool) { + if o == nil || o.Time == nil { + return nil, false + } + return o.Time, true +} + +// HasTime returns a boolean if a field has been set. +func (o *V1ManagedFieldsEntry) HasTime() bool { + if o != nil && o.Time != nil { + return true + } + + return false +} + +// SetTime gets a reference to the given time.Time and assigns it to the Time field. +func (o *V1ManagedFieldsEntry) SetTime(v time.Time) { + o.Time = &v +} + +func (o V1ManagedFieldsEntry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.FieldsType != nil { + toSerialize["fieldsType"] = o.FieldsType + } + if o.FieldsV1 != nil { + toSerialize["fieldsV1"] = o.FieldsV1 + } + if o.Manager != nil { + toSerialize["manager"] = o.Manager + } + if o.Operation != nil { + toSerialize["operation"] = o.Operation + } + if o.Subresource != nil { + toSerialize["subresource"] = o.Subresource + } + if o.Time != nil { + toSerialize["time"] = o.Time + } + return json.Marshal(toSerialize) +} + +type NullableV1ManagedFieldsEntry struct { + value *V1ManagedFieldsEntry + isSet bool +} + +func (v NullableV1ManagedFieldsEntry) Get() *V1ManagedFieldsEntry { + return v.value +} + +func (v *NullableV1ManagedFieldsEntry) Set(val *V1ManagedFieldsEntry) { + v.value = val + v.isSet = true +} + +func (v NullableV1ManagedFieldsEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ManagedFieldsEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ManagedFieldsEntry(val *V1ManagedFieldsEntry) *NullableV1ManagedFieldsEntry { + return &NullableV1ManagedFieldsEntry{value: val, isSet: true} +} + +func (v NullableV1ManagedFieldsEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ManagedFieldsEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_node_affinity.go b/sdk/sdk-apiserver/model_v1_node_affinity.go new file mode 100644 index 0000000..6a4d498 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_node_affinity.go @@ -0,0 +1,156 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1NodeAffinity Node affinity is a group of node affinity scheduling rules. +type V1NodeAffinity struct { + // The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []V1PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` + RequiredDuringSchedulingIgnoredDuringExecution *V1NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// NewV1NodeAffinity instantiates a new V1NodeAffinity object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1NodeAffinity() *V1NodeAffinity { + this := V1NodeAffinity{} + return &this +} + +// NewV1NodeAffinityWithDefaults instantiates a new V1NodeAffinity object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1NodeAffinityWithDefaults() *V1NodeAffinity { + this := V1NodeAffinity{} + return &this +} + +// GetPreferredDuringSchedulingIgnoredDuringExecution returns the PreferredDuringSchedulingIgnoredDuringExecution field value if set, zero value otherwise. +func (o *V1NodeAffinity) GetPreferredDuringSchedulingIgnoredDuringExecution() []V1PreferredSchedulingTerm { + if o == nil || o.PreferredDuringSchedulingIgnoredDuringExecution == nil { + var ret []V1PreferredSchedulingTerm + return ret + } + return o.PreferredDuringSchedulingIgnoredDuringExecution +} + +// GetPreferredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the PreferredDuringSchedulingIgnoredDuringExecution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1NodeAffinity) GetPreferredDuringSchedulingIgnoredDuringExecutionOk() ([]V1PreferredSchedulingTerm, bool) { + if o == nil || o.PreferredDuringSchedulingIgnoredDuringExecution == nil { + return nil, false + } + return o.PreferredDuringSchedulingIgnoredDuringExecution, true +} + +// HasPreferredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. +func (o *V1NodeAffinity) HasPreferredDuringSchedulingIgnoredDuringExecution() bool { + if o != nil && o.PreferredDuringSchedulingIgnoredDuringExecution != nil { + return true + } + + return false +} + +// SetPreferredDuringSchedulingIgnoredDuringExecution gets a reference to the given []V1PreferredSchedulingTerm and assigns it to the PreferredDuringSchedulingIgnoredDuringExecution field. +func (o *V1NodeAffinity) SetPreferredDuringSchedulingIgnoredDuringExecution(v []V1PreferredSchedulingTerm) { + o.PreferredDuringSchedulingIgnoredDuringExecution = v +} + +// GetRequiredDuringSchedulingIgnoredDuringExecution returns the RequiredDuringSchedulingIgnoredDuringExecution field value if set, zero value otherwise. +func (o *V1NodeAffinity) GetRequiredDuringSchedulingIgnoredDuringExecution() V1NodeSelector { + if o == nil || o.RequiredDuringSchedulingIgnoredDuringExecution == nil { + var ret V1NodeSelector + return ret + } + return *o.RequiredDuringSchedulingIgnoredDuringExecution +} + +// GetRequiredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the RequiredDuringSchedulingIgnoredDuringExecution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1NodeAffinity) GetRequiredDuringSchedulingIgnoredDuringExecutionOk() (*V1NodeSelector, bool) { + if o == nil || o.RequiredDuringSchedulingIgnoredDuringExecution == nil { + return nil, false + } + return o.RequiredDuringSchedulingIgnoredDuringExecution, true +} + +// HasRequiredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. +func (o *V1NodeAffinity) HasRequiredDuringSchedulingIgnoredDuringExecution() bool { + if o != nil && o.RequiredDuringSchedulingIgnoredDuringExecution != nil { + return true + } + + return false +} + +// SetRequiredDuringSchedulingIgnoredDuringExecution gets a reference to the given V1NodeSelector and assigns it to the RequiredDuringSchedulingIgnoredDuringExecution field. +func (o *V1NodeAffinity) SetRequiredDuringSchedulingIgnoredDuringExecution(v V1NodeSelector) { + o.RequiredDuringSchedulingIgnoredDuringExecution = &v +} + +func (o V1NodeAffinity) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PreferredDuringSchedulingIgnoredDuringExecution != nil { + toSerialize["preferredDuringSchedulingIgnoredDuringExecution"] = o.PreferredDuringSchedulingIgnoredDuringExecution + } + if o.RequiredDuringSchedulingIgnoredDuringExecution != nil { + toSerialize["requiredDuringSchedulingIgnoredDuringExecution"] = o.RequiredDuringSchedulingIgnoredDuringExecution + } + return json.Marshal(toSerialize) +} + +type NullableV1NodeAffinity struct { + value *V1NodeAffinity + isSet bool +} + +func (v NullableV1NodeAffinity) Get() *V1NodeAffinity { + return v.value +} + +func (v *NullableV1NodeAffinity) Set(val *V1NodeAffinity) { + v.value = val + v.isSet = true +} + +func (v NullableV1NodeAffinity) IsSet() bool { + return v.isSet +} + +func (v *NullableV1NodeAffinity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1NodeAffinity(val *V1NodeAffinity) *NullableV1NodeAffinity { + return &NullableV1NodeAffinity{value: val, isSet: true} +} + +func (v NullableV1NodeAffinity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1NodeAffinity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_node_selector.go b/sdk/sdk-apiserver/model_v1_node_selector.go new file mode 100644 index 0000000..0d328fe --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_node_selector.go @@ -0,0 +1,113 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1NodeSelector A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. +type V1NodeSelector struct { + // Required. A list of node selector terms. The terms are ORed. + NodeSelectorTerms []V1NodeSelectorTerm `json:"nodeSelectorTerms"` +} + +// NewV1NodeSelector instantiates a new V1NodeSelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1NodeSelector(nodeSelectorTerms []V1NodeSelectorTerm) *V1NodeSelector { + this := V1NodeSelector{} + this.NodeSelectorTerms = nodeSelectorTerms + return &this +} + +// NewV1NodeSelectorWithDefaults instantiates a new V1NodeSelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1NodeSelectorWithDefaults() *V1NodeSelector { + this := V1NodeSelector{} + return &this +} + +// GetNodeSelectorTerms returns the NodeSelectorTerms field value +func (o *V1NodeSelector) GetNodeSelectorTerms() []V1NodeSelectorTerm { + if o == nil { + var ret []V1NodeSelectorTerm + return ret + } + + return o.NodeSelectorTerms +} + +// GetNodeSelectorTermsOk returns a tuple with the NodeSelectorTerms field value +// and a boolean to check if the value has been set. +func (o *V1NodeSelector) GetNodeSelectorTermsOk() ([]V1NodeSelectorTerm, bool) { + if o == nil { + return nil, false + } + return o.NodeSelectorTerms, true +} + +// SetNodeSelectorTerms sets field value +func (o *V1NodeSelector) SetNodeSelectorTerms(v []V1NodeSelectorTerm) { + o.NodeSelectorTerms = v +} + +func (o V1NodeSelector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["nodeSelectorTerms"] = o.NodeSelectorTerms + } + return json.Marshal(toSerialize) +} + +type NullableV1NodeSelector struct { + value *V1NodeSelector + isSet bool +} + +func (v NullableV1NodeSelector) Get() *V1NodeSelector { + return v.value +} + +func (v *NullableV1NodeSelector) Set(val *V1NodeSelector) { + v.value = val + v.isSet = true +} + +func (v NullableV1NodeSelector) IsSet() bool { + return v.isSet +} + +func (v *NullableV1NodeSelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1NodeSelector(val *V1NodeSelector) *NullableV1NodeSelector { + return &NullableV1NodeSelector{value: val, isSet: true} +} + +func (v NullableV1NodeSelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1NodeSelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_node_selector_requirement.go b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go new file mode 100644 index 0000000..66ab072 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go @@ -0,0 +1,180 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1NodeSelectorRequirement A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. +type V1NodeSelectorRequirement struct { + // The label key that the selector applies to. + Key string `json:"key"` + // Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. Possible enum values: - `\"DoesNotExist\"` - `\"Exists\"` - `\"Gt\"` - `\"In\"` - `\"Lt\"` - `\"NotIn\"` + Operator string `json:"operator"` + // An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + Values []string `json:"values,omitempty"` +} + +// NewV1NodeSelectorRequirement instantiates a new V1NodeSelectorRequirement object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1NodeSelectorRequirement(key string, operator string) *V1NodeSelectorRequirement { + this := V1NodeSelectorRequirement{} + this.Key = key + this.Operator = operator + return &this +} + +// NewV1NodeSelectorRequirementWithDefaults instantiates a new V1NodeSelectorRequirement object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1NodeSelectorRequirementWithDefaults() *V1NodeSelectorRequirement { + this := V1NodeSelectorRequirement{} + return &this +} + +// GetKey returns the Key field value +func (o *V1NodeSelectorRequirement) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *V1NodeSelectorRequirement) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *V1NodeSelectorRequirement) SetKey(v string) { + o.Key = v +} + +// GetOperator returns the Operator field value +func (o *V1NodeSelectorRequirement) GetOperator() string { + if o == nil { + var ret string + return ret + } + + return o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value +// and a boolean to check if the value has been set. +func (o *V1NodeSelectorRequirement) GetOperatorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Operator, true +} + +// SetOperator sets field value +func (o *V1NodeSelectorRequirement) SetOperator(v string) { + o.Operator = v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *V1NodeSelectorRequirement) GetValues() []string { + if o == nil || o.Values == nil { + var ret []string + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1NodeSelectorRequirement) GetValuesOk() ([]string, bool) { + if o == nil || o.Values == nil { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *V1NodeSelectorRequirement) HasValues() bool { + if o != nil && o.Values != nil { + return true + } + + return false +} + +// SetValues gets a reference to the given []string and assigns it to the Values field. +func (o *V1NodeSelectorRequirement) SetValues(v []string) { + o.Values = v +} + +func (o V1NodeSelectorRequirement) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } + if true { + toSerialize["operator"] = o.Operator + } + if o.Values != nil { + toSerialize["values"] = o.Values + } + return json.Marshal(toSerialize) +} + +type NullableV1NodeSelectorRequirement struct { + value *V1NodeSelectorRequirement + isSet bool +} + +func (v NullableV1NodeSelectorRequirement) Get() *V1NodeSelectorRequirement { + return v.value +} + +func (v *NullableV1NodeSelectorRequirement) Set(val *V1NodeSelectorRequirement) { + v.value = val + v.isSet = true +} + +func (v NullableV1NodeSelectorRequirement) IsSet() bool { + return v.isSet +} + +func (v *NullableV1NodeSelectorRequirement) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1NodeSelectorRequirement(val *V1NodeSelectorRequirement) *NullableV1NodeSelectorRequirement { + return &NullableV1NodeSelectorRequirement{value: val, isSet: true} +} + +func (v NullableV1NodeSelectorRequirement) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1NodeSelectorRequirement) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_node_selector_term.go b/sdk/sdk-apiserver/model_v1_node_selector_term.go new file mode 100644 index 0000000..5cc084e --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_node_selector_term.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1NodeSelectorTerm A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. +type V1NodeSelectorTerm struct { + // A list of node selector requirements by node's labels. + MatchExpressions []V1NodeSelectorRequirement `json:"matchExpressions,omitempty"` + // A list of node selector requirements by node's fields. + MatchFields []V1NodeSelectorRequirement `json:"matchFields,omitempty"` +} + +// NewV1NodeSelectorTerm instantiates a new V1NodeSelectorTerm object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1NodeSelectorTerm() *V1NodeSelectorTerm { + this := V1NodeSelectorTerm{} + return &this +} + +// NewV1NodeSelectorTermWithDefaults instantiates a new V1NodeSelectorTerm object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1NodeSelectorTermWithDefaults() *V1NodeSelectorTerm { + this := V1NodeSelectorTerm{} + return &this +} + +// GetMatchExpressions returns the MatchExpressions field value if set, zero value otherwise. +func (o *V1NodeSelectorTerm) GetMatchExpressions() []V1NodeSelectorRequirement { + if o == nil || o.MatchExpressions == nil { + var ret []V1NodeSelectorRequirement + return ret + } + return o.MatchExpressions +} + +// GetMatchExpressionsOk returns a tuple with the MatchExpressions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1NodeSelectorTerm) GetMatchExpressionsOk() ([]V1NodeSelectorRequirement, bool) { + if o == nil || o.MatchExpressions == nil { + return nil, false + } + return o.MatchExpressions, true +} + +// HasMatchExpressions returns a boolean if a field has been set. +func (o *V1NodeSelectorTerm) HasMatchExpressions() bool { + if o != nil && o.MatchExpressions != nil { + return true + } + + return false +} + +// SetMatchExpressions gets a reference to the given []V1NodeSelectorRequirement and assigns it to the MatchExpressions field. +func (o *V1NodeSelectorTerm) SetMatchExpressions(v []V1NodeSelectorRequirement) { + o.MatchExpressions = v +} + +// GetMatchFields returns the MatchFields field value if set, zero value otherwise. +func (o *V1NodeSelectorTerm) GetMatchFields() []V1NodeSelectorRequirement { + if o == nil || o.MatchFields == nil { + var ret []V1NodeSelectorRequirement + return ret + } + return o.MatchFields +} + +// GetMatchFieldsOk returns a tuple with the MatchFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1NodeSelectorTerm) GetMatchFieldsOk() ([]V1NodeSelectorRequirement, bool) { + if o == nil || o.MatchFields == nil { + return nil, false + } + return o.MatchFields, true +} + +// HasMatchFields returns a boolean if a field has been set. +func (o *V1NodeSelectorTerm) HasMatchFields() bool { + if o != nil && o.MatchFields != nil { + return true + } + + return false +} + +// SetMatchFields gets a reference to the given []V1NodeSelectorRequirement and assigns it to the MatchFields field. +func (o *V1NodeSelectorTerm) SetMatchFields(v []V1NodeSelectorRequirement) { + o.MatchFields = v +} + +func (o V1NodeSelectorTerm) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.MatchExpressions != nil { + toSerialize["matchExpressions"] = o.MatchExpressions + } + if o.MatchFields != nil { + toSerialize["matchFields"] = o.MatchFields + } + return json.Marshal(toSerialize) +} + +type NullableV1NodeSelectorTerm struct { + value *V1NodeSelectorTerm + isSet bool +} + +func (v NullableV1NodeSelectorTerm) Get() *V1NodeSelectorTerm { + return v.value +} + +func (v *NullableV1NodeSelectorTerm) Set(val *V1NodeSelectorTerm) { + v.value = val + v.isSet = true +} + +func (v NullableV1NodeSelectorTerm) IsSet() bool { + return v.isSet +} + +func (v *NullableV1NodeSelectorTerm) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1NodeSelectorTerm(val *V1NodeSelectorTerm) *NullableV1NodeSelectorTerm { + return &NullableV1NodeSelectorTerm{value: val, isSet: true} +} + +func (v NullableV1NodeSelectorTerm) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1NodeSelectorTerm) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_object_field_selector.go b/sdk/sdk-apiserver/model_v1_object_field_selector.go new file mode 100644 index 0000000..b1b6f34 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_object_field_selector.go @@ -0,0 +1,150 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ObjectFieldSelector ObjectFieldSelector selects an APIVersioned field of an object. +type V1ObjectFieldSelector struct { + // Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + ApiVersion *string `json:"apiVersion,omitempty"` + // Path of the field to select in the specified API version. + FieldPath string `json:"fieldPath"` +} + +// NewV1ObjectFieldSelector instantiates a new V1ObjectFieldSelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ObjectFieldSelector(fieldPath string) *V1ObjectFieldSelector { + this := V1ObjectFieldSelector{} + this.FieldPath = fieldPath + return &this +} + +// NewV1ObjectFieldSelectorWithDefaults instantiates a new V1ObjectFieldSelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ObjectFieldSelectorWithDefaults() *V1ObjectFieldSelector { + this := V1ObjectFieldSelector{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *V1ObjectFieldSelector) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectFieldSelector) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *V1ObjectFieldSelector) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *V1ObjectFieldSelector) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetFieldPath returns the FieldPath field value +func (o *V1ObjectFieldSelector) GetFieldPath() string { + if o == nil { + var ret string + return ret + } + + return o.FieldPath +} + +// GetFieldPathOk returns a tuple with the FieldPath field value +// and a boolean to check if the value has been set. +func (o *V1ObjectFieldSelector) GetFieldPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FieldPath, true +} + +// SetFieldPath sets field value +func (o *V1ObjectFieldSelector) SetFieldPath(v string) { + o.FieldPath = v +} + +func (o V1ObjectFieldSelector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if true { + toSerialize["fieldPath"] = o.FieldPath + } + return json.Marshal(toSerialize) +} + +type NullableV1ObjectFieldSelector struct { + value *V1ObjectFieldSelector + isSet bool +} + +func (v NullableV1ObjectFieldSelector) Get() *V1ObjectFieldSelector { + return v.value +} + +func (v *NullableV1ObjectFieldSelector) Set(val *V1ObjectFieldSelector) { + v.value = val + v.isSet = true +} + +func (v NullableV1ObjectFieldSelector) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ObjectFieldSelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ObjectFieldSelector(val *V1ObjectFieldSelector) *NullableV1ObjectFieldSelector { + return &NullableV1ObjectFieldSelector{value: val, isSet: true} +} + +func (v NullableV1ObjectFieldSelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ObjectFieldSelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_object_meta.go b/sdk/sdk-apiserver/model_v1_object_meta.go new file mode 100644 index 0000000..ec7873b --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_object_meta.go @@ -0,0 +1,676 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// V1ObjectMeta ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. +type V1ObjectMeta struct { + // Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + Annotations *map[string]string `json:"annotations,omitempty"` + // Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. The name in the go struct is changed to help clients detect accidental use. + ClusterName *string `json:"clusterName,omitempty"` + // CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"` + // Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. + DeletionGracePeriodSeconds *int64 `json:"deletionGracePeriodSeconds,omitempty"` + // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + DeletionTimestamp *time.Time `json:"deletionTimestamp,omitempty"` + // Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. + Finalizers []string `json:"finalizers,omitempty"` + // GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + GenerateName *string `json:"generateName,omitempty"` + // A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. + Generation *int64 `json:"generation,omitempty"` + // Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + Labels *map[string]string `json:"labels,omitempty"` + // ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. + ManagedFields []V1ManagedFieldsEntry `json:"managedFields,omitempty"` + // Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Name *string `json:"name,omitempty"` + // Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + Namespace *string `json:"namespace,omitempty"` + // List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. + OwnerReferences []V1OwnerReference `json:"ownerReferences,omitempty"` + // An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + ResourceVersion *string `json:"resourceVersion,omitempty"` + // Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. + SelfLink *string `json:"selfLink,omitempty"` + // UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + Uid *string `json:"uid,omitempty"` +} + +// NewV1ObjectMeta instantiates a new V1ObjectMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ObjectMeta() *V1ObjectMeta { + this := V1ObjectMeta{} + return &this +} + +// NewV1ObjectMetaWithDefaults instantiates a new V1ObjectMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ObjectMetaWithDefaults() *V1ObjectMeta { + this := V1ObjectMeta{} + return &this +} + +// GetAnnotations returns the Annotations field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetAnnotations() map[string]string { + if o == nil || o.Annotations == nil { + var ret map[string]string + return ret + } + return *o.Annotations +} + +// GetAnnotationsOk returns a tuple with the Annotations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetAnnotationsOk() (*map[string]string, bool) { + if o == nil || o.Annotations == nil { + return nil, false + } + return o.Annotations, true +} + +// HasAnnotations returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasAnnotations() bool { + if o != nil && o.Annotations != nil { + return true + } + + return false +} + +// SetAnnotations gets a reference to the given map[string]string and assigns it to the Annotations field. +func (o *V1ObjectMeta) SetAnnotations(v map[string]string) { + o.Annotations = &v +} + +// GetClusterName returns the ClusterName field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetClusterName() string { + if o == nil || o.ClusterName == nil { + var ret string + return ret + } + return *o.ClusterName +} + +// GetClusterNameOk returns a tuple with the ClusterName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetClusterNameOk() (*string, bool) { + if o == nil || o.ClusterName == nil { + return nil, false + } + return o.ClusterName, true +} + +// HasClusterName returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasClusterName() bool { + if o != nil && o.ClusterName != nil { + return true + } + + return false +} + +// SetClusterName gets a reference to the given string and assigns it to the ClusterName field. +func (o *V1ObjectMeta) SetClusterName(v string) { + o.ClusterName = &v +} + +// GetCreationTimestamp returns the CreationTimestamp field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetCreationTimestamp() time.Time { + if o == nil || o.CreationTimestamp == nil { + var ret time.Time + return ret + } + return *o.CreationTimestamp +} + +// GetCreationTimestampOk returns a tuple with the CreationTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetCreationTimestampOk() (*time.Time, bool) { + if o == nil || o.CreationTimestamp == nil { + return nil, false + } + return o.CreationTimestamp, true +} + +// HasCreationTimestamp returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasCreationTimestamp() bool { + if o != nil && o.CreationTimestamp != nil { + return true + } + + return false +} + +// SetCreationTimestamp gets a reference to the given time.Time and assigns it to the CreationTimestamp field. +func (o *V1ObjectMeta) SetCreationTimestamp(v time.Time) { + o.CreationTimestamp = &v +} + +// GetDeletionGracePeriodSeconds returns the DeletionGracePeriodSeconds field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetDeletionGracePeriodSeconds() int64 { + if o == nil || o.DeletionGracePeriodSeconds == nil { + var ret int64 + return ret + } + return *o.DeletionGracePeriodSeconds +} + +// GetDeletionGracePeriodSecondsOk returns a tuple with the DeletionGracePeriodSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetDeletionGracePeriodSecondsOk() (*int64, bool) { + if o == nil || o.DeletionGracePeriodSeconds == nil { + return nil, false + } + return o.DeletionGracePeriodSeconds, true +} + +// HasDeletionGracePeriodSeconds returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasDeletionGracePeriodSeconds() bool { + if o != nil && o.DeletionGracePeriodSeconds != nil { + return true + } + + return false +} + +// SetDeletionGracePeriodSeconds gets a reference to the given int64 and assigns it to the DeletionGracePeriodSeconds field. +func (o *V1ObjectMeta) SetDeletionGracePeriodSeconds(v int64) { + o.DeletionGracePeriodSeconds = &v +} + +// GetDeletionTimestamp returns the DeletionTimestamp field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetDeletionTimestamp() time.Time { + if o == nil || o.DeletionTimestamp == nil { + var ret time.Time + return ret + } + return *o.DeletionTimestamp +} + +// GetDeletionTimestampOk returns a tuple with the DeletionTimestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetDeletionTimestampOk() (*time.Time, bool) { + if o == nil || o.DeletionTimestamp == nil { + return nil, false + } + return o.DeletionTimestamp, true +} + +// HasDeletionTimestamp returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasDeletionTimestamp() bool { + if o != nil && o.DeletionTimestamp != nil { + return true + } + + return false +} + +// SetDeletionTimestamp gets a reference to the given time.Time and assigns it to the DeletionTimestamp field. +func (o *V1ObjectMeta) SetDeletionTimestamp(v time.Time) { + o.DeletionTimestamp = &v +} + +// GetFinalizers returns the Finalizers field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetFinalizers() []string { + if o == nil || o.Finalizers == nil { + var ret []string + return ret + } + return o.Finalizers +} + +// GetFinalizersOk returns a tuple with the Finalizers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetFinalizersOk() ([]string, bool) { + if o == nil || o.Finalizers == nil { + return nil, false + } + return o.Finalizers, true +} + +// HasFinalizers returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasFinalizers() bool { + if o != nil && o.Finalizers != nil { + return true + } + + return false +} + +// SetFinalizers gets a reference to the given []string and assigns it to the Finalizers field. +func (o *V1ObjectMeta) SetFinalizers(v []string) { + o.Finalizers = v +} + +// GetGenerateName returns the GenerateName field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetGenerateName() string { + if o == nil || o.GenerateName == nil { + var ret string + return ret + } + return *o.GenerateName +} + +// GetGenerateNameOk returns a tuple with the GenerateName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetGenerateNameOk() (*string, bool) { + if o == nil || o.GenerateName == nil { + return nil, false + } + return o.GenerateName, true +} + +// HasGenerateName returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasGenerateName() bool { + if o != nil && o.GenerateName != nil { + return true + } + + return false +} + +// SetGenerateName gets a reference to the given string and assigns it to the GenerateName field. +func (o *V1ObjectMeta) SetGenerateName(v string) { + o.GenerateName = &v +} + +// GetGeneration returns the Generation field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetGeneration() int64 { + if o == nil || o.Generation == nil { + var ret int64 + return ret + } + return *o.Generation +} + +// GetGenerationOk returns a tuple with the Generation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetGenerationOk() (*int64, bool) { + if o == nil || o.Generation == nil { + return nil, false + } + return o.Generation, true +} + +// HasGeneration returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasGeneration() bool { + if o != nil && o.Generation != nil { + return true + } + + return false +} + +// SetGeneration gets a reference to the given int64 and assigns it to the Generation field. +func (o *V1ObjectMeta) SetGeneration(v int64) { + o.Generation = &v +} + +// GetLabels returns the Labels field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetLabels() map[string]string { + if o == nil || o.Labels == nil { + var ret map[string]string + return ret + } + return *o.Labels +} + +// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetLabelsOk() (*map[string]string, bool) { + if o == nil || o.Labels == nil { + return nil, false + } + return o.Labels, true +} + +// HasLabels returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasLabels() bool { + if o != nil && o.Labels != nil { + return true + } + + return false +} + +// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. +func (o *V1ObjectMeta) SetLabels(v map[string]string) { + o.Labels = &v +} + +// GetManagedFields returns the ManagedFields field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetManagedFields() []V1ManagedFieldsEntry { + if o == nil || o.ManagedFields == nil { + var ret []V1ManagedFieldsEntry + return ret + } + return o.ManagedFields +} + +// GetManagedFieldsOk returns a tuple with the ManagedFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetManagedFieldsOk() ([]V1ManagedFieldsEntry, bool) { + if o == nil || o.ManagedFields == nil { + return nil, false + } + return o.ManagedFields, true +} + +// HasManagedFields returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasManagedFields() bool { + if o != nil && o.ManagedFields != nil { + return true + } + + return false +} + +// SetManagedFields gets a reference to the given []V1ManagedFieldsEntry and assigns it to the ManagedFields field. +func (o *V1ObjectMeta) SetManagedFields(v []V1ManagedFieldsEntry) { + o.ManagedFields = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1ObjectMeta) SetName(v string) { + o.Name = &v +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetNamespace() string { + if o == nil || o.Namespace == nil { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetNamespaceOk() (*string, bool) { + if o == nil || o.Namespace == nil { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasNamespace() bool { + if o != nil && o.Namespace != nil { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *V1ObjectMeta) SetNamespace(v string) { + o.Namespace = &v +} + +// GetOwnerReferences returns the OwnerReferences field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetOwnerReferences() []V1OwnerReference { + if o == nil || o.OwnerReferences == nil { + var ret []V1OwnerReference + return ret + } + return o.OwnerReferences +} + +// GetOwnerReferencesOk returns a tuple with the OwnerReferences field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetOwnerReferencesOk() ([]V1OwnerReference, bool) { + if o == nil || o.OwnerReferences == nil { + return nil, false + } + return o.OwnerReferences, true +} + +// HasOwnerReferences returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasOwnerReferences() bool { + if o != nil && o.OwnerReferences != nil { + return true + } + + return false +} + +// SetOwnerReferences gets a reference to the given []V1OwnerReference and assigns it to the OwnerReferences field. +func (o *V1ObjectMeta) SetOwnerReferences(v []V1OwnerReference) { + o.OwnerReferences = v +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetResourceVersion() string { + if o == nil || o.ResourceVersion == nil { + var ret string + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetResourceVersionOk() (*string, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given string and assigns it to the ResourceVersion field. +func (o *V1ObjectMeta) SetResourceVersion(v string) { + o.ResourceVersion = &v +} + +// GetSelfLink returns the SelfLink field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetSelfLink() string { + if o == nil || o.SelfLink == nil { + var ret string + return ret + } + return *o.SelfLink +} + +// GetSelfLinkOk returns a tuple with the SelfLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetSelfLinkOk() (*string, bool) { + if o == nil || o.SelfLink == nil { + return nil, false + } + return o.SelfLink, true +} + +// HasSelfLink returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasSelfLink() bool { + if o != nil && o.SelfLink != nil { + return true + } + + return false +} + +// SetSelfLink gets a reference to the given string and assigns it to the SelfLink field. +func (o *V1ObjectMeta) SetSelfLink(v string) { + o.SelfLink = &v +} + +// GetUid returns the Uid field value if set, zero value otherwise. +func (o *V1ObjectMeta) GetUid() string { + if o == nil || o.Uid == nil { + var ret string + return ret + } + return *o.Uid +} + +// GetUidOk returns a tuple with the Uid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ObjectMeta) GetUidOk() (*string, bool) { + if o == nil || o.Uid == nil { + return nil, false + } + return o.Uid, true +} + +// HasUid returns a boolean if a field has been set. +func (o *V1ObjectMeta) HasUid() bool { + if o != nil && o.Uid != nil { + return true + } + + return false +} + +// SetUid gets a reference to the given string and assigns it to the Uid field. +func (o *V1ObjectMeta) SetUid(v string) { + o.Uid = &v +} + +func (o V1ObjectMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Annotations != nil { + toSerialize["annotations"] = o.Annotations + } + if o.ClusterName != nil { + toSerialize["clusterName"] = o.ClusterName + } + if o.CreationTimestamp != nil { + toSerialize["creationTimestamp"] = o.CreationTimestamp + } + if o.DeletionGracePeriodSeconds != nil { + toSerialize["deletionGracePeriodSeconds"] = o.DeletionGracePeriodSeconds + } + if o.DeletionTimestamp != nil { + toSerialize["deletionTimestamp"] = o.DeletionTimestamp + } + if o.Finalizers != nil { + toSerialize["finalizers"] = o.Finalizers + } + if o.GenerateName != nil { + toSerialize["generateName"] = o.GenerateName + } + if o.Generation != nil { + toSerialize["generation"] = o.Generation + } + if o.Labels != nil { + toSerialize["labels"] = o.Labels + } + if o.ManagedFields != nil { + toSerialize["managedFields"] = o.ManagedFields + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Namespace != nil { + toSerialize["namespace"] = o.Namespace + } + if o.OwnerReferences != nil { + toSerialize["ownerReferences"] = o.OwnerReferences + } + if o.ResourceVersion != nil { + toSerialize["resourceVersion"] = o.ResourceVersion + } + if o.SelfLink != nil { + toSerialize["selfLink"] = o.SelfLink + } + if o.Uid != nil { + toSerialize["uid"] = o.Uid + } + return json.Marshal(toSerialize) +} + +type NullableV1ObjectMeta struct { + value *V1ObjectMeta + isSet bool +} + +func (v NullableV1ObjectMeta) Get() *V1ObjectMeta { + return v.value +} + +func (v *NullableV1ObjectMeta) Set(val *V1ObjectMeta) { + v.value = val + v.isSet = true +} + +func (v NullableV1ObjectMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ObjectMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ObjectMeta(val *V1ObjectMeta) *NullableV1ObjectMeta { + return &NullableV1ObjectMeta{value: val, isSet: true} +} + +func (v NullableV1ObjectMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ObjectMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_owner_reference.go b/sdk/sdk-apiserver/model_v1_owner_reference.go new file mode 100644 index 0000000..2972031 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_owner_reference.go @@ -0,0 +1,277 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1OwnerReference OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. +type V1OwnerReference struct { + // API version of the referent. + ApiVersion string `json:"apiVersion"` + // If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. + BlockOwnerDeletion *bool `json:"blockOwnerDeletion,omitempty"` + // If true, this reference points to the managing controller. + Controller *bool `json:"controller,omitempty"` + // Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind string `json:"kind"` + // Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Name string `json:"name"` + // UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + Uid string `json:"uid"` +} + +// NewV1OwnerReference instantiates a new V1OwnerReference object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1OwnerReference(apiVersion string, kind string, name string, uid string) *V1OwnerReference { + this := V1OwnerReference{} + this.ApiVersion = apiVersion + this.Kind = kind + this.Name = name + this.Uid = uid + return &this +} + +// NewV1OwnerReferenceWithDefaults instantiates a new V1OwnerReference object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1OwnerReferenceWithDefaults() *V1OwnerReference { + this := V1OwnerReference{} + return &this +} + +// GetApiVersion returns the ApiVersion field value +func (o *V1OwnerReference) GetApiVersion() string { + if o == nil { + var ret string + return ret + } + + return o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value +// and a boolean to check if the value has been set. +func (o *V1OwnerReference) GetApiVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApiVersion, true +} + +// SetApiVersion sets field value +func (o *V1OwnerReference) SetApiVersion(v string) { + o.ApiVersion = v +} + +// GetBlockOwnerDeletion returns the BlockOwnerDeletion field value if set, zero value otherwise. +func (o *V1OwnerReference) GetBlockOwnerDeletion() bool { + if o == nil || o.BlockOwnerDeletion == nil { + var ret bool + return ret + } + return *o.BlockOwnerDeletion +} + +// GetBlockOwnerDeletionOk returns a tuple with the BlockOwnerDeletion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1OwnerReference) GetBlockOwnerDeletionOk() (*bool, bool) { + if o == nil || o.BlockOwnerDeletion == nil { + return nil, false + } + return o.BlockOwnerDeletion, true +} + +// HasBlockOwnerDeletion returns a boolean if a field has been set. +func (o *V1OwnerReference) HasBlockOwnerDeletion() bool { + if o != nil && o.BlockOwnerDeletion != nil { + return true + } + + return false +} + +// SetBlockOwnerDeletion gets a reference to the given bool and assigns it to the BlockOwnerDeletion field. +func (o *V1OwnerReference) SetBlockOwnerDeletion(v bool) { + o.BlockOwnerDeletion = &v +} + +// GetController returns the Controller field value if set, zero value otherwise. +func (o *V1OwnerReference) GetController() bool { + if o == nil || o.Controller == nil { + var ret bool + return ret + } + return *o.Controller +} + +// GetControllerOk returns a tuple with the Controller field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1OwnerReference) GetControllerOk() (*bool, bool) { + if o == nil || o.Controller == nil { + return nil, false + } + return o.Controller, true +} + +// HasController returns a boolean if a field has been set. +func (o *V1OwnerReference) HasController() bool { + if o != nil && o.Controller != nil { + return true + } + + return false +} + +// SetController gets a reference to the given bool and assigns it to the Controller field. +func (o *V1OwnerReference) SetController(v bool) { + o.Controller = &v +} + +// GetKind returns the Kind field value +func (o *V1OwnerReference) GetKind() string { + if o == nil { + var ret string + return ret + } + + return o.Kind +} + +// GetKindOk returns a tuple with the Kind field value +// and a boolean to check if the value has been set. +func (o *V1OwnerReference) GetKindOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Kind, true +} + +// SetKind sets field value +func (o *V1OwnerReference) SetKind(v string) { + o.Kind = v +} + +// GetName returns the Name field value +func (o *V1OwnerReference) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V1OwnerReference) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V1OwnerReference) SetName(v string) { + o.Name = v +} + +// GetUid returns the Uid field value +func (o *V1OwnerReference) GetUid() string { + if o == nil { + var ret string + return ret + } + + return o.Uid +} + +// GetUidOk returns a tuple with the Uid field value +// and a boolean to check if the value has been set. +func (o *V1OwnerReference) GetUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uid, true +} + +// SetUid sets field value +func (o *V1OwnerReference) SetUid(v string) { + o.Uid = v +} + +func (o V1OwnerReference) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.BlockOwnerDeletion != nil { + toSerialize["blockOwnerDeletion"] = o.BlockOwnerDeletion + } + if o.Controller != nil { + toSerialize["controller"] = o.Controller + } + if true { + toSerialize["kind"] = o.Kind + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["uid"] = o.Uid + } + return json.Marshal(toSerialize) +} + +type NullableV1OwnerReference struct { + value *V1OwnerReference + isSet bool +} + +func (v NullableV1OwnerReference) Get() *V1OwnerReference { + return v.value +} + +func (v *NullableV1OwnerReference) Set(val *V1OwnerReference) { + v.value = val + v.isSet = true +} + +func (v NullableV1OwnerReference) IsSet() bool { + return v.isSet +} + +func (v *NullableV1OwnerReference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1OwnerReference(val *V1OwnerReference) *NullableV1OwnerReference { + return &NullableV1OwnerReference{value: val, isSet: true} +} + +func (v NullableV1OwnerReference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1OwnerReference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity.go b/sdk/sdk-apiserver/model_v1_pod_affinity.go new file mode 100644 index 0000000..fdd36a0 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_pod_affinity.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1PodAffinity Pod affinity is a group of inter pod affinity scheduling rules. +type V1PodAffinity struct { + // The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []V1WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` + // If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + RequiredDuringSchedulingIgnoredDuringExecution []V1PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// NewV1PodAffinity instantiates a new V1PodAffinity object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1PodAffinity() *V1PodAffinity { + this := V1PodAffinity{} + return &this +} + +// NewV1PodAffinityWithDefaults instantiates a new V1PodAffinity object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1PodAffinityWithDefaults() *V1PodAffinity { + this := V1PodAffinity{} + return &this +} + +// GetPreferredDuringSchedulingIgnoredDuringExecution returns the PreferredDuringSchedulingIgnoredDuringExecution field value if set, zero value otherwise. +func (o *V1PodAffinity) GetPreferredDuringSchedulingIgnoredDuringExecution() []V1WeightedPodAffinityTerm { + if o == nil || o.PreferredDuringSchedulingIgnoredDuringExecution == nil { + var ret []V1WeightedPodAffinityTerm + return ret + } + return o.PreferredDuringSchedulingIgnoredDuringExecution +} + +// GetPreferredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the PreferredDuringSchedulingIgnoredDuringExecution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1PodAffinity) GetPreferredDuringSchedulingIgnoredDuringExecutionOk() ([]V1WeightedPodAffinityTerm, bool) { + if o == nil || o.PreferredDuringSchedulingIgnoredDuringExecution == nil { + return nil, false + } + return o.PreferredDuringSchedulingIgnoredDuringExecution, true +} + +// HasPreferredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. +func (o *V1PodAffinity) HasPreferredDuringSchedulingIgnoredDuringExecution() bool { + if o != nil && o.PreferredDuringSchedulingIgnoredDuringExecution != nil { + return true + } + + return false +} + +// SetPreferredDuringSchedulingIgnoredDuringExecution gets a reference to the given []V1WeightedPodAffinityTerm and assigns it to the PreferredDuringSchedulingIgnoredDuringExecution field. +func (o *V1PodAffinity) SetPreferredDuringSchedulingIgnoredDuringExecution(v []V1WeightedPodAffinityTerm) { + o.PreferredDuringSchedulingIgnoredDuringExecution = v +} + +// GetRequiredDuringSchedulingIgnoredDuringExecution returns the RequiredDuringSchedulingIgnoredDuringExecution field value if set, zero value otherwise. +func (o *V1PodAffinity) GetRequiredDuringSchedulingIgnoredDuringExecution() []V1PodAffinityTerm { + if o == nil || o.RequiredDuringSchedulingIgnoredDuringExecution == nil { + var ret []V1PodAffinityTerm + return ret + } + return o.RequiredDuringSchedulingIgnoredDuringExecution +} + +// GetRequiredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the RequiredDuringSchedulingIgnoredDuringExecution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1PodAffinity) GetRequiredDuringSchedulingIgnoredDuringExecutionOk() ([]V1PodAffinityTerm, bool) { + if o == nil || o.RequiredDuringSchedulingIgnoredDuringExecution == nil { + return nil, false + } + return o.RequiredDuringSchedulingIgnoredDuringExecution, true +} + +// HasRequiredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. +func (o *V1PodAffinity) HasRequiredDuringSchedulingIgnoredDuringExecution() bool { + if o != nil && o.RequiredDuringSchedulingIgnoredDuringExecution != nil { + return true + } + + return false +} + +// SetRequiredDuringSchedulingIgnoredDuringExecution gets a reference to the given []V1PodAffinityTerm and assigns it to the RequiredDuringSchedulingIgnoredDuringExecution field. +func (o *V1PodAffinity) SetRequiredDuringSchedulingIgnoredDuringExecution(v []V1PodAffinityTerm) { + o.RequiredDuringSchedulingIgnoredDuringExecution = v +} + +func (o V1PodAffinity) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PreferredDuringSchedulingIgnoredDuringExecution != nil { + toSerialize["preferredDuringSchedulingIgnoredDuringExecution"] = o.PreferredDuringSchedulingIgnoredDuringExecution + } + if o.RequiredDuringSchedulingIgnoredDuringExecution != nil { + toSerialize["requiredDuringSchedulingIgnoredDuringExecution"] = o.RequiredDuringSchedulingIgnoredDuringExecution + } + return json.Marshal(toSerialize) +} + +type NullableV1PodAffinity struct { + value *V1PodAffinity + isSet bool +} + +func (v NullableV1PodAffinity) Get() *V1PodAffinity { + return v.value +} + +func (v *NullableV1PodAffinity) Set(val *V1PodAffinity) { + v.value = val + v.isSet = true +} + +func (v NullableV1PodAffinity) IsSet() bool { + return v.isSet +} + +func (v *NullableV1PodAffinity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1PodAffinity(val *V1PodAffinity) *NullableV1PodAffinity { + return &NullableV1PodAffinity{value: val, isSet: true} +} + +func (v NullableV1PodAffinity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1PodAffinity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go new file mode 100644 index 0000000..b3ac7a7 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go @@ -0,0 +1,222 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1PodAffinityTerm Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running +type V1PodAffinityTerm struct { + LabelSelector *V1LabelSelector `json:"labelSelector,omitempty"` + NamespaceSelector *V1LabelSelector `json:"namespaceSelector,omitempty"` + // namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". + Namespaces []string `json:"namespaces,omitempty"` + // This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + TopologyKey string `json:"topologyKey"` +} + +// NewV1PodAffinityTerm instantiates a new V1PodAffinityTerm object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1PodAffinityTerm(topologyKey string) *V1PodAffinityTerm { + this := V1PodAffinityTerm{} + this.TopologyKey = topologyKey + return &this +} + +// NewV1PodAffinityTermWithDefaults instantiates a new V1PodAffinityTerm object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1PodAffinityTermWithDefaults() *V1PodAffinityTerm { + this := V1PodAffinityTerm{} + return &this +} + +// GetLabelSelector returns the LabelSelector field value if set, zero value otherwise. +func (o *V1PodAffinityTerm) GetLabelSelector() V1LabelSelector { + if o == nil || o.LabelSelector == nil { + var ret V1LabelSelector + return ret + } + return *o.LabelSelector +} + +// GetLabelSelectorOk returns a tuple with the LabelSelector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1PodAffinityTerm) GetLabelSelectorOk() (*V1LabelSelector, bool) { + if o == nil || o.LabelSelector == nil { + return nil, false + } + return o.LabelSelector, true +} + +// HasLabelSelector returns a boolean if a field has been set. +func (o *V1PodAffinityTerm) HasLabelSelector() bool { + if o != nil && o.LabelSelector != nil { + return true + } + + return false +} + +// SetLabelSelector gets a reference to the given V1LabelSelector and assigns it to the LabelSelector field. +func (o *V1PodAffinityTerm) SetLabelSelector(v V1LabelSelector) { + o.LabelSelector = &v +} + +// GetNamespaceSelector returns the NamespaceSelector field value if set, zero value otherwise. +func (o *V1PodAffinityTerm) GetNamespaceSelector() V1LabelSelector { + if o == nil || o.NamespaceSelector == nil { + var ret V1LabelSelector + return ret + } + return *o.NamespaceSelector +} + +// GetNamespaceSelectorOk returns a tuple with the NamespaceSelector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1PodAffinityTerm) GetNamespaceSelectorOk() (*V1LabelSelector, bool) { + if o == nil || o.NamespaceSelector == nil { + return nil, false + } + return o.NamespaceSelector, true +} + +// HasNamespaceSelector returns a boolean if a field has been set. +func (o *V1PodAffinityTerm) HasNamespaceSelector() bool { + if o != nil && o.NamespaceSelector != nil { + return true + } + + return false +} + +// SetNamespaceSelector gets a reference to the given V1LabelSelector and assigns it to the NamespaceSelector field. +func (o *V1PodAffinityTerm) SetNamespaceSelector(v V1LabelSelector) { + o.NamespaceSelector = &v +} + +// GetNamespaces returns the Namespaces field value if set, zero value otherwise. +func (o *V1PodAffinityTerm) GetNamespaces() []string { + if o == nil || o.Namespaces == nil { + var ret []string + return ret + } + return o.Namespaces +} + +// GetNamespacesOk returns a tuple with the Namespaces field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1PodAffinityTerm) GetNamespacesOk() ([]string, bool) { + if o == nil || o.Namespaces == nil { + return nil, false + } + return o.Namespaces, true +} + +// HasNamespaces returns a boolean if a field has been set. +func (o *V1PodAffinityTerm) HasNamespaces() bool { + if o != nil && o.Namespaces != nil { + return true + } + + return false +} + +// SetNamespaces gets a reference to the given []string and assigns it to the Namespaces field. +func (o *V1PodAffinityTerm) SetNamespaces(v []string) { + o.Namespaces = v +} + +// GetTopologyKey returns the TopologyKey field value +func (o *V1PodAffinityTerm) GetTopologyKey() string { + if o == nil { + var ret string + return ret + } + + return o.TopologyKey +} + +// GetTopologyKeyOk returns a tuple with the TopologyKey field value +// and a boolean to check if the value has been set. +func (o *V1PodAffinityTerm) GetTopologyKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TopologyKey, true +} + +// SetTopologyKey sets field value +func (o *V1PodAffinityTerm) SetTopologyKey(v string) { + o.TopologyKey = v +} + +func (o V1PodAffinityTerm) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LabelSelector != nil { + toSerialize["labelSelector"] = o.LabelSelector + } + if o.NamespaceSelector != nil { + toSerialize["namespaceSelector"] = o.NamespaceSelector + } + if o.Namespaces != nil { + toSerialize["namespaces"] = o.Namespaces + } + if true { + toSerialize["topologyKey"] = o.TopologyKey + } + return json.Marshal(toSerialize) +} + +type NullableV1PodAffinityTerm struct { + value *V1PodAffinityTerm + isSet bool +} + +func (v NullableV1PodAffinityTerm) Get() *V1PodAffinityTerm { + return v.value +} + +func (v *NullableV1PodAffinityTerm) Set(val *V1PodAffinityTerm) { + v.value = val + v.isSet = true +} + +func (v NullableV1PodAffinityTerm) IsSet() bool { + return v.isSet +} + +func (v *NullableV1PodAffinityTerm) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1PodAffinityTerm(val *V1PodAffinityTerm) *NullableV1PodAffinityTerm { + return &NullableV1PodAffinityTerm{value: val, isSet: true} +} + +func (v NullableV1PodAffinityTerm) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1PodAffinityTerm) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go new file mode 100644 index 0000000..1f788cd --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1PodAntiAffinity Pod anti affinity is a group of inter pod anti affinity scheduling rules. +type V1PodAntiAffinity struct { + // The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + PreferredDuringSchedulingIgnoredDuringExecution []V1WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` + // If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + RequiredDuringSchedulingIgnoredDuringExecution []V1PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` +} + +// NewV1PodAntiAffinity instantiates a new V1PodAntiAffinity object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1PodAntiAffinity() *V1PodAntiAffinity { + this := V1PodAntiAffinity{} + return &this +} + +// NewV1PodAntiAffinityWithDefaults instantiates a new V1PodAntiAffinity object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1PodAntiAffinityWithDefaults() *V1PodAntiAffinity { + this := V1PodAntiAffinity{} + return &this +} + +// GetPreferredDuringSchedulingIgnoredDuringExecution returns the PreferredDuringSchedulingIgnoredDuringExecution field value if set, zero value otherwise. +func (o *V1PodAntiAffinity) GetPreferredDuringSchedulingIgnoredDuringExecution() []V1WeightedPodAffinityTerm { + if o == nil || o.PreferredDuringSchedulingIgnoredDuringExecution == nil { + var ret []V1WeightedPodAffinityTerm + return ret + } + return o.PreferredDuringSchedulingIgnoredDuringExecution +} + +// GetPreferredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the PreferredDuringSchedulingIgnoredDuringExecution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1PodAntiAffinity) GetPreferredDuringSchedulingIgnoredDuringExecutionOk() ([]V1WeightedPodAffinityTerm, bool) { + if o == nil || o.PreferredDuringSchedulingIgnoredDuringExecution == nil { + return nil, false + } + return o.PreferredDuringSchedulingIgnoredDuringExecution, true +} + +// HasPreferredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. +func (o *V1PodAntiAffinity) HasPreferredDuringSchedulingIgnoredDuringExecution() bool { + if o != nil && o.PreferredDuringSchedulingIgnoredDuringExecution != nil { + return true + } + + return false +} + +// SetPreferredDuringSchedulingIgnoredDuringExecution gets a reference to the given []V1WeightedPodAffinityTerm and assigns it to the PreferredDuringSchedulingIgnoredDuringExecution field. +func (o *V1PodAntiAffinity) SetPreferredDuringSchedulingIgnoredDuringExecution(v []V1WeightedPodAffinityTerm) { + o.PreferredDuringSchedulingIgnoredDuringExecution = v +} + +// GetRequiredDuringSchedulingIgnoredDuringExecution returns the RequiredDuringSchedulingIgnoredDuringExecution field value if set, zero value otherwise. +func (o *V1PodAntiAffinity) GetRequiredDuringSchedulingIgnoredDuringExecution() []V1PodAffinityTerm { + if o == nil || o.RequiredDuringSchedulingIgnoredDuringExecution == nil { + var ret []V1PodAffinityTerm + return ret + } + return o.RequiredDuringSchedulingIgnoredDuringExecution +} + +// GetRequiredDuringSchedulingIgnoredDuringExecutionOk returns a tuple with the RequiredDuringSchedulingIgnoredDuringExecution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1PodAntiAffinity) GetRequiredDuringSchedulingIgnoredDuringExecutionOk() ([]V1PodAffinityTerm, bool) { + if o == nil || o.RequiredDuringSchedulingIgnoredDuringExecution == nil { + return nil, false + } + return o.RequiredDuringSchedulingIgnoredDuringExecution, true +} + +// HasRequiredDuringSchedulingIgnoredDuringExecution returns a boolean if a field has been set. +func (o *V1PodAntiAffinity) HasRequiredDuringSchedulingIgnoredDuringExecution() bool { + if o != nil && o.RequiredDuringSchedulingIgnoredDuringExecution != nil { + return true + } + + return false +} + +// SetRequiredDuringSchedulingIgnoredDuringExecution gets a reference to the given []V1PodAffinityTerm and assigns it to the RequiredDuringSchedulingIgnoredDuringExecution field. +func (o *V1PodAntiAffinity) SetRequiredDuringSchedulingIgnoredDuringExecution(v []V1PodAffinityTerm) { + o.RequiredDuringSchedulingIgnoredDuringExecution = v +} + +func (o V1PodAntiAffinity) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PreferredDuringSchedulingIgnoredDuringExecution != nil { + toSerialize["preferredDuringSchedulingIgnoredDuringExecution"] = o.PreferredDuringSchedulingIgnoredDuringExecution + } + if o.RequiredDuringSchedulingIgnoredDuringExecution != nil { + toSerialize["requiredDuringSchedulingIgnoredDuringExecution"] = o.RequiredDuringSchedulingIgnoredDuringExecution + } + return json.Marshal(toSerialize) +} + +type NullableV1PodAntiAffinity struct { + value *V1PodAntiAffinity + isSet bool +} + +func (v NullableV1PodAntiAffinity) Get() *V1PodAntiAffinity { + return v.value +} + +func (v *NullableV1PodAntiAffinity) Set(val *V1PodAntiAffinity) { + v.value = val + v.isSet = true +} + +func (v NullableV1PodAntiAffinity) IsSet() bool { + return v.isSet +} + +func (v *NullableV1PodAntiAffinity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1PodAntiAffinity(val *V1PodAntiAffinity) *NullableV1PodAntiAffinity { + return &NullableV1PodAntiAffinity{value: val, isSet: true} +} + +func (v NullableV1PodAntiAffinity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1PodAntiAffinity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_preconditions.go b/sdk/sdk-apiserver/model_v1_preconditions.go new file mode 100644 index 0000000..0b890e3 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_preconditions.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1Preconditions Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. +type V1Preconditions struct { + // Specifies the target ResourceVersion + ResourceVersion *string `json:"resourceVersion,omitempty"` + // Specifies the target UID. + Uid *string `json:"uid,omitempty"` +} + +// NewV1Preconditions instantiates a new V1Preconditions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1Preconditions() *V1Preconditions { + this := V1Preconditions{} + return &this +} + +// NewV1PreconditionsWithDefaults instantiates a new V1Preconditions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1PreconditionsWithDefaults() *V1Preconditions { + this := V1Preconditions{} + return &this +} + +// GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise. +func (o *V1Preconditions) GetResourceVersion() string { + if o == nil || o.ResourceVersion == nil { + var ret string + return ret + } + return *o.ResourceVersion +} + +// GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Preconditions) GetResourceVersionOk() (*string, bool) { + if o == nil || o.ResourceVersion == nil { + return nil, false + } + return o.ResourceVersion, true +} + +// HasResourceVersion returns a boolean if a field has been set. +func (o *V1Preconditions) HasResourceVersion() bool { + if o != nil && o.ResourceVersion != nil { + return true + } + + return false +} + +// SetResourceVersion gets a reference to the given string and assigns it to the ResourceVersion field. +func (o *V1Preconditions) SetResourceVersion(v string) { + o.ResourceVersion = &v +} + +// GetUid returns the Uid field value if set, zero value otherwise. +func (o *V1Preconditions) GetUid() string { + if o == nil || o.Uid == nil { + var ret string + return ret + } + return *o.Uid +} + +// GetUidOk returns a tuple with the Uid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Preconditions) GetUidOk() (*string, bool) { + if o == nil || o.Uid == nil { + return nil, false + } + return o.Uid, true +} + +// HasUid returns a boolean if a field has been set. +func (o *V1Preconditions) HasUid() bool { + if o != nil && o.Uid != nil { + return true + } + + return false +} + +// SetUid gets a reference to the given string and assigns it to the Uid field. +func (o *V1Preconditions) SetUid(v string) { + o.Uid = &v +} + +func (o V1Preconditions) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ResourceVersion != nil { + toSerialize["resourceVersion"] = o.ResourceVersion + } + if o.Uid != nil { + toSerialize["uid"] = o.Uid + } + return json.Marshal(toSerialize) +} + +type NullableV1Preconditions struct { + value *V1Preconditions + isSet bool +} + +func (v NullableV1Preconditions) Get() *V1Preconditions { + return v.value +} + +func (v *NullableV1Preconditions) Set(val *V1Preconditions) { + v.value = val + v.isSet = true +} + +func (v NullableV1Preconditions) IsSet() bool { + return v.isSet +} + +func (v *NullableV1Preconditions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1Preconditions(val *V1Preconditions) *NullableV1Preconditions { + return &NullableV1Preconditions{value: val, isSet: true} +} + +func (v NullableV1Preconditions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1Preconditions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go new file mode 100644 index 0000000..5f33725 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go @@ -0,0 +1,142 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1PreferredSchedulingTerm An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). +type V1PreferredSchedulingTerm struct { + Preference V1NodeSelectorTerm `json:"preference"` + // Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + Weight int32 `json:"weight"` +} + +// NewV1PreferredSchedulingTerm instantiates a new V1PreferredSchedulingTerm object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1PreferredSchedulingTerm(preference V1NodeSelectorTerm, weight int32) *V1PreferredSchedulingTerm { + this := V1PreferredSchedulingTerm{} + this.Preference = preference + this.Weight = weight + return &this +} + +// NewV1PreferredSchedulingTermWithDefaults instantiates a new V1PreferredSchedulingTerm object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1PreferredSchedulingTermWithDefaults() *V1PreferredSchedulingTerm { + this := V1PreferredSchedulingTerm{} + return &this +} + +// GetPreference returns the Preference field value +func (o *V1PreferredSchedulingTerm) GetPreference() V1NodeSelectorTerm { + if o == nil { + var ret V1NodeSelectorTerm + return ret + } + + return o.Preference +} + +// GetPreferenceOk returns a tuple with the Preference field value +// and a boolean to check if the value has been set. +func (o *V1PreferredSchedulingTerm) GetPreferenceOk() (*V1NodeSelectorTerm, bool) { + if o == nil { + return nil, false + } + return &o.Preference, true +} + +// SetPreference sets field value +func (o *V1PreferredSchedulingTerm) SetPreference(v V1NodeSelectorTerm) { + o.Preference = v +} + +// GetWeight returns the Weight field value +func (o *V1PreferredSchedulingTerm) GetWeight() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value +// and a boolean to check if the value has been set. +func (o *V1PreferredSchedulingTerm) GetWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Weight, true +} + +// SetWeight sets field value +func (o *V1PreferredSchedulingTerm) SetWeight(v int32) { + o.Weight = v +} + +func (o V1PreferredSchedulingTerm) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["preference"] = o.Preference + } + if true { + toSerialize["weight"] = o.Weight + } + return json.Marshal(toSerialize) +} + +type NullableV1PreferredSchedulingTerm struct { + value *V1PreferredSchedulingTerm + isSet bool +} + +func (v NullableV1PreferredSchedulingTerm) Get() *V1PreferredSchedulingTerm { + return v.value +} + +func (v *NullableV1PreferredSchedulingTerm) Set(val *V1PreferredSchedulingTerm) { + v.value = val + v.isSet = true +} + +func (v NullableV1PreferredSchedulingTerm) IsSet() bool { + return v.isSet +} + +func (v *NullableV1PreferredSchedulingTerm) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1PreferredSchedulingTerm(val *V1PreferredSchedulingTerm) *NullableV1PreferredSchedulingTerm { + return &NullableV1PreferredSchedulingTerm{value: val, isSet: true} +} + +func (v NullableV1PreferredSchedulingTerm) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1PreferredSchedulingTerm) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_probe.go b/sdk/sdk-apiserver/model_v1_probe.go new file mode 100644 index 0000000..d9d2e4e --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_probe.go @@ -0,0 +1,449 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1Probe Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. +type V1Probe struct { + Exec *V1ExecAction `json:"exec,omitempty"` + // Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. + FailureThreshold *int32 `json:"failureThreshold,omitempty"` + Grpc *V1GRPCAction `json:"grpc,omitempty"` + HttpGet *V1HTTPGetAction `json:"httpGet,omitempty"` + // Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` + // How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. + PeriodSeconds *int32 `json:"periodSeconds,omitempty"` + // Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. + SuccessThreshold *int32 `json:"successThreshold,omitempty"` + TcpSocket *V1TCPSocketAction `json:"tcpSocket,omitempty"` + // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. + TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` + // Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"` +} + +// NewV1Probe instantiates a new V1Probe object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1Probe() *V1Probe { + this := V1Probe{} + return &this +} + +// NewV1ProbeWithDefaults instantiates a new V1Probe object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ProbeWithDefaults() *V1Probe { + this := V1Probe{} + return &this +} + +// GetExec returns the Exec field value if set, zero value otherwise. +func (o *V1Probe) GetExec() V1ExecAction { + if o == nil || o.Exec == nil { + var ret V1ExecAction + return ret + } + return *o.Exec +} + +// GetExecOk returns a tuple with the Exec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetExecOk() (*V1ExecAction, bool) { + if o == nil || o.Exec == nil { + return nil, false + } + return o.Exec, true +} + +// HasExec returns a boolean if a field has been set. +func (o *V1Probe) HasExec() bool { + if o != nil && o.Exec != nil { + return true + } + + return false +} + +// SetExec gets a reference to the given V1ExecAction and assigns it to the Exec field. +func (o *V1Probe) SetExec(v V1ExecAction) { + o.Exec = &v +} + +// GetFailureThreshold returns the FailureThreshold field value if set, zero value otherwise. +func (o *V1Probe) GetFailureThreshold() int32 { + if o == nil || o.FailureThreshold == nil { + var ret int32 + return ret + } + return *o.FailureThreshold +} + +// GetFailureThresholdOk returns a tuple with the FailureThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetFailureThresholdOk() (*int32, bool) { + if o == nil || o.FailureThreshold == nil { + return nil, false + } + return o.FailureThreshold, true +} + +// HasFailureThreshold returns a boolean if a field has been set. +func (o *V1Probe) HasFailureThreshold() bool { + if o != nil && o.FailureThreshold != nil { + return true + } + + return false +} + +// SetFailureThreshold gets a reference to the given int32 and assigns it to the FailureThreshold field. +func (o *V1Probe) SetFailureThreshold(v int32) { + o.FailureThreshold = &v +} + +// GetGrpc returns the Grpc field value if set, zero value otherwise. +func (o *V1Probe) GetGrpc() V1GRPCAction { + if o == nil || o.Grpc == nil { + var ret V1GRPCAction + return ret + } + return *o.Grpc +} + +// GetGrpcOk returns a tuple with the Grpc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetGrpcOk() (*V1GRPCAction, bool) { + if o == nil || o.Grpc == nil { + return nil, false + } + return o.Grpc, true +} + +// HasGrpc returns a boolean if a field has been set. +func (o *V1Probe) HasGrpc() bool { + if o != nil && o.Grpc != nil { + return true + } + + return false +} + +// SetGrpc gets a reference to the given V1GRPCAction and assigns it to the Grpc field. +func (o *V1Probe) SetGrpc(v V1GRPCAction) { + o.Grpc = &v +} + +// GetHttpGet returns the HttpGet field value if set, zero value otherwise. +func (o *V1Probe) GetHttpGet() V1HTTPGetAction { + if o == nil || o.HttpGet == nil { + var ret V1HTTPGetAction + return ret + } + return *o.HttpGet +} + +// GetHttpGetOk returns a tuple with the HttpGet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetHttpGetOk() (*V1HTTPGetAction, bool) { + if o == nil || o.HttpGet == nil { + return nil, false + } + return o.HttpGet, true +} + +// HasHttpGet returns a boolean if a field has been set. +func (o *V1Probe) HasHttpGet() bool { + if o != nil && o.HttpGet != nil { + return true + } + + return false +} + +// SetHttpGet gets a reference to the given V1HTTPGetAction and assigns it to the HttpGet field. +func (o *V1Probe) SetHttpGet(v V1HTTPGetAction) { + o.HttpGet = &v +} + +// GetInitialDelaySeconds returns the InitialDelaySeconds field value if set, zero value otherwise. +func (o *V1Probe) GetInitialDelaySeconds() int32 { + if o == nil || o.InitialDelaySeconds == nil { + var ret int32 + return ret + } + return *o.InitialDelaySeconds +} + +// GetInitialDelaySecondsOk returns a tuple with the InitialDelaySeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetInitialDelaySecondsOk() (*int32, bool) { + if o == nil || o.InitialDelaySeconds == nil { + return nil, false + } + return o.InitialDelaySeconds, true +} + +// HasInitialDelaySeconds returns a boolean if a field has been set. +func (o *V1Probe) HasInitialDelaySeconds() bool { + if o != nil && o.InitialDelaySeconds != nil { + return true + } + + return false +} + +// SetInitialDelaySeconds gets a reference to the given int32 and assigns it to the InitialDelaySeconds field. +func (o *V1Probe) SetInitialDelaySeconds(v int32) { + o.InitialDelaySeconds = &v +} + +// GetPeriodSeconds returns the PeriodSeconds field value if set, zero value otherwise. +func (o *V1Probe) GetPeriodSeconds() int32 { + if o == nil || o.PeriodSeconds == nil { + var ret int32 + return ret + } + return *o.PeriodSeconds +} + +// GetPeriodSecondsOk returns a tuple with the PeriodSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetPeriodSecondsOk() (*int32, bool) { + if o == nil || o.PeriodSeconds == nil { + return nil, false + } + return o.PeriodSeconds, true +} + +// HasPeriodSeconds returns a boolean if a field has been set. +func (o *V1Probe) HasPeriodSeconds() bool { + if o != nil && o.PeriodSeconds != nil { + return true + } + + return false +} + +// SetPeriodSeconds gets a reference to the given int32 and assigns it to the PeriodSeconds field. +func (o *V1Probe) SetPeriodSeconds(v int32) { + o.PeriodSeconds = &v +} + +// GetSuccessThreshold returns the SuccessThreshold field value if set, zero value otherwise. +func (o *V1Probe) GetSuccessThreshold() int32 { + if o == nil || o.SuccessThreshold == nil { + var ret int32 + return ret + } + return *o.SuccessThreshold +} + +// GetSuccessThresholdOk returns a tuple with the SuccessThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetSuccessThresholdOk() (*int32, bool) { + if o == nil || o.SuccessThreshold == nil { + return nil, false + } + return o.SuccessThreshold, true +} + +// HasSuccessThreshold returns a boolean if a field has been set. +func (o *V1Probe) HasSuccessThreshold() bool { + if o != nil && o.SuccessThreshold != nil { + return true + } + + return false +} + +// SetSuccessThreshold gets a reference to the given int32 and assigns it to the SuccessThreshold field. +func (o *V1Probe) SetSuccessThreshold(v int32) { + o.SuccessThreshold = &v +} + +// GetTcpSocket returns the TcpSocket field value if set, zero value otherwise. +func (o *V1Probe) GetTcpSocket() V1TCPSocketAction { + if o == nil || o.TcpSocket == nil { + var ret V1TCPSocketAction + return ret + } + return *o.TcpSocket +} + +// GetTcpSocketOk returns a tuple with the TcpSocket field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetTcpSocketOk() (*V1TCPSocketAction, bool) { + if o == nil || o.TcpSocket == nil { + return nil, false + } + return o.TcpSocket, true +} + +// HasTcpSocket returns a boolean if a field has been set. +func (o *V1Probe) HasTcpSocket() bool { + if o != nil && o.TcpSocket != nil { + return true + } + + return false +} + +// SetTcpSocket gets a reference to the given V1TCPSocketAction and assigns it to the TcpSocket field. +func (o *V1Probe) SetTcpSocket(v V1TCPSocketAction) { + o.TcpSocket = &v +} + +// GetTerminationGracePeriodSeconds returns the TerminationGracePeriodSeconds field value if set, zero value otherwise. +func (o *V1Probe) GetTerminationGracePeriodSeconds() int64 { + if o == nil || o.TerminationGracePeriodSeconds == nil { + var ret int64 + return ret + } + return *o.TerminationGracePeriodSeconds +} + +// GetTerminationGracePeriodSecondsOk returns a tuple with the TerminationGracePeriodSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetTerminationGracePeriodSecondsOk() (*int64, bool) { + if o == nil || o.TerminationGracePeriodSeconds == nil { + return nil, false + } + return o.TerminationGracePeriodSeconds, true +} + +// HasTerminationGracePeriodSeconds returns a boolean if a field has been set. +func (o *V1Probe) HasTerminationGracePeriodSeconds() bool { + if o != nil && o.TerminationGracePeriodSeconds != nil { + return true + } + + return false +} + +// SetTerminationGracePeriodSeconds gets a reference to the given int64 and assigns it to the TerminationGracePeriodSeconds field. +func (o *V1Probe) SetTerminationGracePeriodSeconds(v int64) { + o.TerminationGracePeriodSeconds = &v +} + +// GetTimeoutSeconds returns the TimeoutSeconds field value if set, zero value otherwise. +func (o *V1Probe) GetTimeoutSeconds() int32 { + if o == nil || o.TimeoutSeconds == nil { + var ret int32 + return ret + } + return *o.TimeoutSeconds +} + +// GetTimeoutSecondsOk returns a tuple with the TimeoutSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Probe) GetTimeoutSecondsOk() (*int32, bool) { + if o == nil || o.TimeoutSeconds == nil { + return nil, false + } + return o.TimeoutSeconds, true +} + +// HasTimeoutSeconds returns a boolean if a field has been set. +func (o *V1Probe) HasTimeoutSeconds() bool { + if o != nil && o.TimeoutSeconds != nil { + return true + } + + return false +} + +// SetTimeoutSeconds gets a reference to the given int32 and assigns it to the TimeoutSeconds field. +func (o *V1Probe) SetTimeoutSeconds(v int32) { + o.TimeoutSeconds = &v +} + +func (o V1Probe) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Exec != nil { + toSerialize["exec"] = o.Exec + } + if o.FailureThreshold != nil { + toSerialize["failureThreshold"] = o.FailureThreshold + } + if o.Grpc != nil { + toSerialize["grpc"] = o.Grpc + } + if o.HttpGet != nil { + toSerialize["httpGet"] = o.HttpGet + } + if o.InitialDelaySeconds != nil { + toSerialize["initialDelaySeconds"] = o.InitialDelaySeconds + } + if o.PeriodSeconds != nil { + toSerialize["periodSeconds"] = o.PeriodSeconds + } + if o.SuccessThreshold != nil { + toSerialize["successThreshold"] = o.SuccessThreshold + } + if o.TcpSocket != nil { + toSerialize["tcpSocket"] = o.TcpSocket + } + if o.TerminationGracePeriodSeconds != nil { + toSerialize["terminationGracePeriodSeconds"] = o.TerminationGracePeriodSeconds + } + if o.TimeoutSeconds != nil { + toSerialize["timeoutSeconds"] = o.TimeoutSeconds + } + return json.Marshal(toSerialize) +} + +type NullableV1Probe struct { + value *V1Probe + isSet bool +} + +func (v NullableV1Probe) Get() *V1Probe { + return v.value +} + +func (v *NullableV1Probe) Set(val *V1Probe) { + v.value = val + v.isSet = true +} + +func (v NullableV1Probe) IsSet() bool { + return v.isSet +} + +func (v *NullableV1Probe) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1Probe(val *V1Probe) *NullableV1Probe { + return &NullableV1Probe{value: val, isSet: true} +} + +func (v NullableV1Probe) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1Probe) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_resource_field_selector.go b/sdk/sdk-apiserver/model_v1_resource_field_selector.go new file mode 100644 index 0000000..76c4195 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_resource_field_selector.go @@ -0,0 +1,187 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ResourceFieldSelector ResourceFieldSelector represents container resources (cpu, memory) and their output format +type V1ResourceFieldSelector struct { + // Container name: required for volumes, optional for env vars + ContainerName *string `json:"containerName,omitempty"` + // Specifies the output format of the exposed resources, defaults to \"1\" + Divisor *string `json:"divisor,omitempty"` + // Required: resource to select + Resource string `json:"resource"` +} + +// NewV1ResourceFieldSelector instantiates a new V1ResourceFieldSelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ResourceFieldSelector(resource string) *V1ResourceFieldSelector { + this := V1ResourceFieldSelector{} + this.Resource = resource + return &this +} + +// NewV1ResourceFieldSelectorWithDefaults instantiates a new V1ResourceFieldSelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ResourceFieldSelectorWithDefaults() *V1ResourceFieldSelector { + this := V1ResourceFieldSelector{} + return &this +} + +// GetContainerName returns the ContainerName field value if set, zero value otherwise. +func (o *V1ResourceFieldSelector) GetContainerName() string { + if o == nil || o.ContainerName == nil { + var ret string + return ret + } + return *o.ContainerName +} + +// GetContainerNameOk returns a tuple with the ContainerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ResourceFieldSelector) GetContainerNameOk() (*string, bool) { + if o == nil || o.ContainerName == nil { + return nil, false + } + return o.ContainerName, true +} + +// HasContainerName returns a boolean if a field has been set. +func (o *V1ResourceFieldSelector) HasContainerName() bool { + if o != nil && o.ContainerName != nil { + return true + } + + return false +} + +// SetContainerName gets a reference to the given string and assigns it to the ContainerName field. +func (o *V1ResourceFieldSelector) SetContainerName(v string) { + o.ContainerName = &v +} + +// GetDivisor returns the Divisor field value if set, zero value otherwise. +func (o *V1ResourceFieldSelector) GetDivisor() string { + if o == nil || o.Divisor == nil { + var ret string + return ret + } + return *o.Divisor +} + +// GetDivisorOk returns a tuple with the Divisor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ResourceFieldSelector) GetDivisorOk() (*string, bool) { + if o == nil || o.Divisor == nil { + return nil, false + } + return o.Divisor, true +} + +// HasDivisor returns a boolean if a field has been set. +func (o *V1ResourceFieldSelector) HasDivisor() bool { + if o != nil && o.Divisor != nil { + return true + } + + return false +} + +// SetDivisor gets a reference to the given string and assigns it to the Divisor field. +func (o *V1ResourceFieldSelector) SetDivisor(v string) { + o.Divisor = &v +} + +// GetResource returns the Resource field value +func (o *V1ResourceFieldSelector) GetResource() string { + if o == nil { + var ret string + return ret + } + + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value +// and a boolean to check if the value has been set. +func (o *V1ResourceFieldSelector) GetResourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Resource, true +} + +// SetResource sets field value +func (o *V1ResourceFieldSelector) SetResource(v string) { + o.Resource = v +} + +func (o V1ResourceFieldSelector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ContainerName != nil { + toSerialize["containerName"] = o.ContainerName + } + if o.Divisor != nil { + toSerialize["divisor"] = o.Divisor + } + if true { + toSerialize["resource"] = o.Resource + } + return json.Marshal(toSerialize) +} + +type NullableV1ResourceFieldSelector struct { + value *V1ResourceFieldSelector + isSet bool +} + +func (v NullableV1ResourceFieldSelector) Get() *V1ResourceFieldSelector { + return v.value +} + +func (v *NullableV1ResourceFieldSelector) Set(val *V1ResourceFieldSelector) { + v.value = val + v.isSet = true +} + +func (v NullableV1ResourceFieldSelector) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ResourceFieldSelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ResourceFieldSelector(val *V1ResourceFieldSelector) *NullableV1ResourceFieldSelector { + return &NullableV1ResourceFieldSelector{value: val, isSet: true} +} + +func (v NullableV1ResourceFieldSelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ResourceFieldSelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_resource_requirements.go b/sdk/sdk-apiserver/model_v1_resource_requirements.go new file mode 100644 index 0000000..48a8e1b --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_resource_requirements.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ResourceRequirements ResourceRequirements describes the compute resource requirements. +type V1ResourceRequirements struct { + // Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + Limits *map[string]string `json:"limits,omitempty"` + // Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + Requests *map[string]string `json:"requests,omitempty"` +} + +// NewV1ResourceRequirements instantiates a new V1ResourceRequirements object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ResourceRequirements() *V1ResourceRequirements { + this := V1ResourceRequirements{} + return &this +} + +// NewV1ResourceRequirementsWithDefaults instantiates a new V1ResourceRequirements object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ResourceRequirementsWithDefaults() *V1ResourceRequirements { + this := V1ResourceRequirements{} + return &this +} + +// GetLimits returns the Limits field value if set, zero value otherwise. +func (o *V1ResourceRequirements) GetLimits() map[string]string { + if o == nil || o.Limits == nil { + var ret map[string]string + return ret + } + return *o.Limits +} + +// GetLimitsOk returns a tuple with the Limits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ResourceRequirements) GetLimitsOk() (*map[string]string, bool) { + if o == nil || o.Limits == nil { + return nil, false + } + return o.Limits, true +} + +// HasLimits returns a boolean if a field has been set. +func (o *V1ResourceRequirements) HasLimits() bool { + if o != nil && o.Limits != nil { + return true + } + + return false +} + +// SetLimits gets a reference to the given map[string]string and assigns it to the Limits field. +func (o *V1ResourceRequirements) SetLimits(v map[string]string) { + o.Limits = &v +} + +// GetRequests returns the Requests field value if set, zero value otherwise. +func (o *V1ResourceRequirements) GetRequests() map[string]string { + if o == nil || o.Requests == nil { + var ret map[string]string + return ret + } + return *o.Requests +} + +// GetRequestsOk returns a tuple with the Requests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1ResourceRequirements) GetRequestsOk() (*map[string]string, bool) { + if o == nil || o.Requests == nil { + return nil, false + } + return o.Requests, true +} + +// HasRequests returns a boolean if a field has been set. +func (o *V1ResourceRequirements) HasRequests() bool { + if o != nil && o.Requests != nil { + return true + } + + return false +} + +// SetRequests gets a reference to the given map[string]string and assigns it to the Requests field. +func (o *V1ResourceRequirements) SetRequests(v map[string]string) { + o.Requests = &v +} + +func (o V1ResourceRequirements) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Limits != nil { + toSerialize["limits"] = o.Limits + } + if o.Requests != nil { + toSerialize["requests"] = o.Requests + } + return json.Marshal(toSerialize) +} + +type NullableV1ResourceRequirements struct { + value *V1ResourceRequirements + isSet bool +} + +func (v NullableV1ResourceRequirements) Get() *V1ResourceRequirements { + return v.value +} + +func (v *NullableV1ResourceRequirements) Set(val *V1ResourceRequirements) { + v.value = val + v.isSet = true +} + +func (v NullableV1ResourceRequirements) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ResourceRequirements) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ResourceRequirements(val *V1ResourceRequirements) *NullableV1ResourceRequirements { + return &NullableV1ResourceRequirements{value: val, isSet: true} +} + +func (v NullableV1ResourceRequirements) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ResourceRequirements) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_secret_env_source.go b/sdk/sdk-apiserver/model_v1_secret_env_source.go new file mode 100644 index 0000000..cc633ac --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_secret_env_source.go @@ -0,0 +1,157 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1SecretEnvSource SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. +type V1SecretEnvSource struct { + // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name *string `json:"name,omitempty"` + // Specify whether the Secret must be defined + Optional *bool `json:"optional,omitempty"` +} + +// NewV1SecretEnvSource instantiates a new V1SecretEnvSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1SecretEnvSource() *V1SecretEnvSource { + this := V1SecretEnvSource{} + return &this +} + +// NewV1SecretEnvSourceWithDefaults instantiates a new V1SecretEnvSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1SecretEnvSourceWithDefaults() *V1SecretEnvSource { + this := V1SecretEnvSource{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1SecretEnvSource) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretEnvSource) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1SecretEnvSource) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1SecretEnvSource) SetName(v string) { + o.Name = &v +} + +// GetOptional returns the Optional field value if set, zero value otherwise. +func (o *V1SecretEnvSource) GetOptional() bool { + if o == nil || o.Optional == nil { + var ret bool + return ret + } + return *o.Optional +} + +// GetOptionalOk returns a tuple with the Optional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretEnvSource) GetOptionalOk() (*bool, bool) { + if o == nil || o.Optional == nil { + return nil, false + } + return o.Optional, true +} + +// HasOptional returns a boolean if a field has been set. +func (o *V1SecretEnvSource) HasOptional() bool { + if o != nil && o.Optional != nil { + return true + } + + return false +} + +// SetOptional gets a reference to the given bool and assigns it to the Optional field. +func (o *V1SecretEnvSource) SetOptional(v bool) { + o.Optional = &v +} + +func (o V1SecretEnvSource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Optional != nil { + toSerialize["optional"] = o.Optional + } + return json.Marshal(toSerialize) +} + +type NullableV1SecretEnvSource struct { + value *V1SecretEnvSource + isSet bool +} + +func (v NullableV1SecretEnvSource) Get() *V1SecretEnvSource { + return v.value +} + +func (v *NullableV1SecretEnvSource) Set(val *V1SecretEnvSource) { + v.value = val + v.isSet = true +} + +func (v NullableV1SecretEnvSource) IsSet() bool { + return v.isSet +} + +func (v *NullableV1SecretEnvSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1SecretEnvSource(val *V1SecretEnvSource) *NullableV1SecretEnvSource { + return &NullableV1SecretEnvSource{value: val, isSet: true} +} + +func (v NullableV1SecretEnvSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1SecretEnvSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_secret_key_selector.go b/sdk/sdk-apiserver/model_v1_secret_key_selector.go new file mode 100644 index 0000000..02ca103 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_secret_key_selector.go @@ -0,0 +1,187 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1SecretKeySelector SecretKeySelector selects a key of a Secret. +type V1SecretKeySelector struct { + // The key of the secret to select from. Must be a valid secret key. + Key string `json:"key"` + // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Name *string `json:"name,omitempty"` + // Specify whether the Secret or its key must be defined + Optional *bool `json:"optional,omitempty"` +} + +// NewV1SecretKeySelector instantiates a new V1SecretKeySelector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1SecretKeySelector(key string) *V1SecretKeySelector { + this := V1SecretKeySelector{} + this.Key = key + return &this +} + +// NewV1SecretKeySelectorWithDefaults instantiates a new V1SecretKeySelector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1SecretKeySelectorWithDefaults() *V1SecretKeySelector { + this := V1SecretKeySelector{} + return &this +} + +// GetKey returns the Key field value +func (o *V1SecretKeySelector) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *V1SecretKeySelector) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *V1SecretKeySelector) SetKey(v string) { + o.Key = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1SecretKeySelector) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretKeySelector) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1SecretKeySelector) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1SecretKeySelector) SetName(v string) { + o.Name = &v +} + +// GetOptional returns the Optional field value if set, zero value otherwise. +func (o *V1SecretKeySelector) GetOptional() bool { + if o == nil || o.Optional == nil { + var ret bool + return ret + } + return *o.Optional +} + +// GetOptionalOk returns a tuple with the Optional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretKeySelector) GetOptionalOk() (*bool, bool) { + if o == nil || o.Optional == nil { + return nil, false + } + return o.Optional, true +} + +// HasOptional returns a boolean if a field has been set. +func (o *V1SecretKeySelector) HasOptional() bool { + if o != nil && o.Optional != nil { + return true + } + + return false +} + +// SetOptional gets a reference to the given bool and assigns it to the Optional field. +func (o *V1SecretKeySelector) SetOptional(v bool) { + o.Optional = &v +} + +func (o V1SecretKeySelector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["key"] = o.Key + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Optional != nil { + toSerialize["optional"] = o.Optional + } + return json.Marshal(toSerialize) +} + +type NullableV1SecretKeySelector struct { + value *V1SecretKeySelector + isSet bool +} + +func (v NullableV1SecretKeySelector) Get() *V1SecretKeySelector { + return v.value +} + +func (v *NullableV1SecretKeySelector) Set(val *V1SecretKeySelector) { + v.value = val + v.isSet = true +} + +func (v NullableV1SecretKeySelector) IsSet() bool { + return v.isSet +} + +func (v *NullableV1SecretKeySelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1SecretKeySelector(val *V1SecretKeySelector) *NullableV1SecretKeySelector { + return &NullableV1SecretKeySelector{value: val, isSet: true} +} + +func (v NullableV1SecretKeySelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1SecretKeySelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_secret_volume_source.go b/sdk/sdk-apiserver/model_v1_secret_volume_source.go new file mode 100644 index 0000000..e69c093 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_secret_volume_source.go @@ -0,0 +1,231 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1SecretVolumeSource Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. +type V1SecretVolumeSource struct { + // defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty"` + // items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. + Items []V1KeyToPath `json:"items,omitempty"` + // optional field specify whether the Secret or its keys must be defined + Optional *bool `json:"optional,omitempty"` + // secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + SecretName *string `json:"secretName,omitempty"` +} + +// NewV1SecretVolumeSource instantiates a new V1SecretVolumeSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1SecretVolumeSource() *V1SecretVolumeSource { + this := V1SecretVolumeSource{} + return &this +} + +// NewV1SecretVolumeSourceWithDefaults instantiates a new V1SecretVolumeSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1SecretVolumeSourceWithDefaults() *V1SecretVolumeSource { + this := V1SecretVolumeSource{} + return &this +} + +// GetDefaultMode returns the DefaultMode field value if set, zero value otherwise. +func (o *V1SecretVolumeSource) GetDefaultMode() int32 { + if o == nil || o.DefaultMode == nil { + var ret int32 + return ret + } + return *o.DefaultMode +} + +// GetDefaultModeOk returns a tuple with the DefaultMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretVolumeSource) GetDefaultModeOk() (*int32, bool) { + if o == nil || o.DefaultMode == nil { + return nil, false + } + return o.DefaultMode, true +} + +// HasDefaultMode returns a boolean if a field has been set. +func (o *V1SecretVolumeSource) HasDefaultMode() bool { + if o != nil && o.DefaultMode != nil { + return true + } + + return false +} + +// SetDefaultMode gets a reference to the given int32 and assigns it to the DefaultMode field. +func (o *V1SecretVolumeSource) SetDefaultMode(v int32) { + o.DefaultMode = &v +} + +// GetItems returns the Items field value if set, zero value otherwise. +func (o *V1SecretVolumeSource) GetItems() []V1KeyToPath { + if o == nil || o.Items == nil { + var ret []V1KeyToPath + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretVolumeSource) GetItemsOk() ([]V1KeyToPath, bool) { + if o == nil || o.Items == nil { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *V1SecretVolumeSource) HasItems() bool { + if o != nil && o.Items != nil { + return true + } + + return false +} + +// SetItems gets a reference to the given []V1KeyToPath and assigns it to the Items field. +func (o *V1SecretVolumeSource) SetItems(v []V1KeyToPath) { + o.Items = v +} + +// GetOptional returns the Optional field value if set, zero value otherwise. +func (o *V1SecretVolumeSource) GetOptional() bool { + if o == nil || o.Optional == nil { + var ret bool + return ret + } + return *o.Optional +} + +// GetOptionalOk returns a tuple with the Optional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretVolumeSource) GetOptionalOk() (*bool, bool) { + if o == nil || o.Optional == nil { + return nil, false + } + return o.Optional, true +} + +// HasOptional returns a boolean if a field has been set. +func (o *V1SecretVolumeSource) HasOptional() bool { + if o != nil && o.Optional != nil { + return true + } + + return false +} + +// SetOptional gets a reference to the given bool and assigns it to the Optional field. +func (o *V1SecretVolumeSource) SetOptional(v bool) { + o.Optional = &v +} + +// GetSecretName returns the SecretName field value if set, zero value otherwise. +func (o *V1SecretVolumeSource) GetSecretName() string { + if o == nil || o.SecretName == nil { + var ret string + return ret + } + return *o.SecretName +} + +// GetSecretNameOk returns a tuple with the SecretName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1SecretVolumeSource) GetSecretNameOk() (*string, bool) { + if o == nil || o.SecretName == nil { + return nil, false + } + return o.SecretName, true +} + +// HasSecretName returns a boolean if a field has been set. +func (o *V1SecretVolumeSource) HasSecretName() bool { + if o != nil && o.SecretName != nil { + return true + } + + return false +} + +// SetSecretName gets a reference to the given string and assigns it to the SecretName field. +func (o *V1SecretVolumeSource) SetSecretName(v string) { + o.SecretName = &v +} + +func (o V1SecretVolumeSource) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.DefaultMode != nil { + toSerialize["defaultMode"] = o.DefaultMode + } + if o.Items != nil { + toSerialize["items"] = o.Items + } + if o.Optional != nil { + toSerialize["optional"] = o.Optional + } + if o.SecretName != nil { + toSerialize["secretName"] = o.SecretName + } + return json.Marshal(toSerialize) +} + +type NullableV1SecretVolumeSource struct { + value *V1SecretVolumeSource + isSet bool +} + +func (v NullableV1SecretVolumeSource) Get() *V1SecretVolumeSource { + return v.value +} + +func (v *NullableV1SecretVolumeSource) Set(val *V1SecretVolumeSource) { + v.value = val + v.isSet = true +} + +func (v NullableV1SecretVolumeSource) IsSet() bool { + return v.isSet +} + +func (v *NullableV1SecretVolumeSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1SecretVolumeSource(val *V1SecretVolumeSource) *NullableV1SecretVolumeSource { + return &NullableV1SecretVolumeSource{value: val, isSet: true} +} + +func (v NullableV1SecretVolumeSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1SecretVolumeSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go new file mode 100644 index 0000000..8f0698b --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go @@ -0,0 +1,143 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1ServerAddressByClientCIDR ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. +type V1ServerAddressByClientCIDR struct { + // The CIDR with which clients can match their IP to figure out the server address that they should use. + ClientCIDR string `json:"clientCIDR"` + // Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port. + ServerAddress string `json:"serverAddress"` +} + +// NewV1ServerAddressByClientCIDR instantiates a new V1ServerAddressByClientCIDR object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1ServerAddressByClientCIDR(clientCIDR string, serverAddress string) *V1ServerAddressByClientCIDR { + this := V1ServerAddressByClientCIDR{} + this.ClientCIDR = clientCIDR + this.ServerAddress = serverAddress + return &this +} + +// NewV1ServerAddressByClientCIDRWithDefaults instantiates a new V1ServerAddressByClientCIDR object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1ServerAddressByClientCIDRWithDefaults() *V1ServerAddressByClientCIDR { + this := V1ServerAddressByClientCIDR{} + return &this +} + +// GetClientCIDR returns the ClientCIDR field value +func (o *V1ServerAddressByClientCIDR) GetClientCIDR() string { + if o == nil { + var ret string + return ret + } + + return o.ClientCIDR +} + +// GetClientCIDROk returns a tuple with the ClientCIDR field value +// and a boolean to check if the value has been set. +func (o *V1ServerAddressByClientCIDR) GetClientCIDROk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClientCIDR, true +} + +// SetClientCIDR sets field value +func (o *V1ServerAddressByClientCIDR) SetClientCIDR(v string) { + o.ClientCIDR = v +} + +// GetServerAddress returns the ServerAddress field value +func (o *V1ServerAddressByClientCIDR) GetServerAddress() string { + if o == nil { + var ret string + return ret + } + + return o.ServerAddress +} + +// GetServerAddressOk returns a tuple with the ServerAddress field value +// and a boolean to check if the value has been set. +func (o *V1ServerAddressByClientCIDR) GetServerAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServerAddress, true +} + +// SetServerAddress sets field value +func (o *V1ServerAddressByClientCIDR) SetServerAddress(v string) { + o.ServerAddress = v +} + +func (o V1ServerAddressByClientCIDR) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["clientCIDR"] = o.ClientCIDR + } + if true { + toSerialize["serverAddress"] = o.ServerAddress + } + return json.Marshal(toSerialize) +} + +type NullableV1ServerAddressByClientCIDR struct { + value *V1ServerAddressByClientCIDR + isSet bool +} + +func (v NullableV1ServerAddressByClientCIDR) Get() *V1ServerAddressByClientCIDR { + return v.value +} + +func (v *NullableV1ServerAddressByClientCIDR) Set(val *V1ServerAddressByClientCIDR) { + v.value = val + v.isSet = true +} + +func (v NullableV1ServerAddressByClientCIDR) IsSet() bool { + return v.isSet +} + +func (v *NullableV1ServerAddressByClientCIDR) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1ServerAddressByClientCIDR(val *V1ServerAddressByClientCIDR) *NullableV1ServerAddressByClientCIDR { + return &NullableV1ServerAddressByClientCIDR{value: val, isSet: true} +} + +func (v NullableV1ServerAddressByClientCIDR) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1ServerAddressByClientCIDR) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_status.go b/sdk/sdk-apiserver/model_v1_status.go new file mode 100644 index 0000000..0b4e9bf --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_status.go @@ -0,0 +1,377 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1Status Status is a return value for calls that don't return other objects. +type V1Status struct { + // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + ApiVersion *string `json:"apiVersion,omitempty"` + // Suggested HTTP return code for this status, 0 if not set. + Code *int32 `json:"code,omitempty"` + Details *V1StatusDetails `json:"details,omitempty"` + // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + // A human-readable description of the status of this operation. + Message *string `json:"message,omitempty"` + Metadata *V1ListMeta `json:"metadata,omitempty"` + // A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. + Reason *string `json:"reason,omitempty"` + // Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + Status *string `json:"status,omitempty"` +} + +// NewV1Status instantiates a new V1Status object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1Status() *V1Status { + this := V1Status{} + return &this +} + +// NewV1StatusWithDefaults instantiates a new V1Status object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1StatusWithDefaults() *V1Status { + this := V1Status{} + return &this +} + +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise. +func (o *V1Status) GetApiVersion() string { + if o == nil || o.ApiVersion == nil { + var ret string + return ret + } + return *o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetApiVersionOk() (*string, bool) { + if o == nil || o.ApiVersion == nil { + return nil, false + } + return o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *V1Status) HasApiVersion() bool { + if o != nil && o.ApiVersion != nil { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field. +func (o *V1Status) SetApiVersion(v string) { + o.ApiVersion = &v +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *V1Status) GetCode() int32 { + if o == nil || o.Code == nil { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetCodeOk() (*int32, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *V1Status) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *V1Status) SetCode(v int32) { + o.Code = &v +} + +// GetDetails returns the Details field value if set, zero value otherwise. +func (o *V1Status) GetDetails() V1StatusDetails { + if o == nil || o.Details == nil { + var ret V1StatusDetails + return ret + } + return *o.Details +} + +// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetDetailsOk() (*V1StatusDetails, bool) { + if o == nil || o.Details == nil { + return nil, false + } + return o.Details, true +} + +// HasDetails returns a boolean if a field has been set. +func (o *V1Status) HasDetails() bool { + if o != nil && o.Details != nil { + return true + } + + return false +} + +// SetDetails gets a reference to the given V1StatusDetails and assigns it to the Details field. +func (o *V1Status) SetDetails(v V1StatusDetails) { + o.Details = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *V1Status) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *V1Status) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *V1Status) SetKind(v string) { + o.Kind = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *V1Status) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *V1Status) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *V1Status) SetMessage(v string) { + o.Message = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *V1Status) GetMetadata() V1ListMeta { + if o == nil || o.Metadata == nil { + var ret V1ListMeta + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetMetadataOk() (*V1ListMeta, bool) { + if o == nil || o.Metadata == nil { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *V1Status) HasMetadata() bool { + if o != nil && o.Metadata != nil { + return true + } + + return false +} + +// SetMetadata gets a reference to the given V1ListMeta and assigns it to the Metadata field. +func (o *V1Status) SetMetadata(v V1ListMeta) { + o.Metadata = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *V1Status) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *V1Status) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *V1Status) SetReason(v string) { + o.Reason = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V1Status) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Status) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V1Status) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V1Status) SetStatus(v string) { + o.Status = &v +} + +func (o V1Status) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ApiVersion != nil { + toSerialize["apiVersion"] = o.ApiVersion + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.Details != nil { + toSerialize["details"] = o.Details + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + return json.Marshal(toSerialize) +} + +type NullableV1Status struct { + value *V1Status + isSet bool +} + +func (v NullableV1Status) Get() *V1Status { + return v.value +} + +func (v *NullableV1Status) Set(val *V1Status) { + v.value = val + v.isSet = true +} + +func (v NullableV1Status) IsSet() bool { + return v.isSet +} + +func (v *NullableV1Status) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1Status(val *V1Status) *NullableV1Status { + return &NullableV1Status{value: val, isSet: true} +} + +func (v NullableV1Status) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1Status) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_status_cause.go b/sdk/sdk-apiserver/model_v1_status_cause.go new file mode 100644 index 0000000..e016cd2 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_status_cause.go @@ -0,0 +1,194 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1StatusCause StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. +type V1StatusCause struct { + // The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" + Field *string `json:"field,omitempty"` + // A human-readable description of the cause of the error. This field may be presented as-is to a reader. + Message *string `json:"message,omitempty"` + // A machine-readable description of the cause of the error. If this value is empty there is no information available. + Reason *string `json:"reason,omitempty"` +} + +// NewV1StatusCause instantiates a new V1StatusCause object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1StatusCause() *V1StatusCause { + this := V1StatusCause{} + return &this +} + +// NewV1StatusCauseWithDefaults instantiates a new V1StatusCause object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1StatusCauseWithDefaults() *V1StatusCause { + this := V1StatusCause{} + return &this +} + +// GetField returns the Field field value if set, zero value otherwise. +func (o *V1StatusCause) GetField() string { + if o == nil || o.Field == nil { + var ret string + return ret + } + return *o.Field +} + +// GetFieldOk returns a tuple with the Field field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusCause) GetFieldOk() (*string, bool) { + if o == nil || o.Field == nil { + return nil, false + } + return o.Field, true +} + +// HasField returns a boolean if a field has been set. +func (o *V1StatusCause) HasField() bool { + if o != nil && o.Field != nil { + return true + } + + return false +} + +// SetField gets a reference to the given string and assigns it to the Field field. +func (o *V1StatusCause) SetField(v string) { + o.Field = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *V1StatusCause) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusCause) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *V1StatusCause) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *V1StatusCause) SetMessage(v string) { + o.Message = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *V1StatusCause) GetReason() string { + if o == nil || o.Reason == nil { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusCause) GetReasonOk() (*string, bool) { + if o == nil || o.Reason == nil { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *V1StatusCause) HasReason() bool { + if o != nil && o.Reason != nil { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *V1StatusCause) SetReason(v string) { + o.Reason = &v +} + +func (o V1StatusCause) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Field != nil { + toSerialize["field"] = o.Field + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.Reason != nil { + toSerialize["reason"] = o.Reason + } + return json.Marshal(toSerialize) +} + +type NullableV1StatusCause struct { + value *V1StatusCause + isSet bool +} + +func (v NullableV1StatusCause) Get() *V1StatusCause { + return v.value +} + +func (v *NullableV1StatusCause) Set(val *V1StatusCause) { + v.value = val + v.isSet = true +} + +func (v NullableV1StatusCause) IsSet() bool { + return v.isSet +} + +func (v *NullableV1StatusCause) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1StatusCause(val *V1StatusCause) *NullableV1StatusCause { + return &NullableV1StatusCause{value: val, isSet: true} +} + +func (v NullableV1StatusCause) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1StatusCause) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_status_details.go b/sdk/sdk-apiserver/model_v1_status_details.go new file mode 100644 index 0000000..39f901b --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_status_details.go @@ -0,0 +1,305 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1StatusDetails StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. +type V1StatusDetails struct { + // The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. + Causes []V1StatusCause `json:"causes,omitempty"` + // The group attribute of the resource associated with the status StatusReason. + Group *string `json:"group,omitempty"` + // The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + Kind *string `json:"kind,omitempty"` + // The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). + Name *string `json:"name,omitempty"` + // If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. + RetryAfterSeconds *int32 `json:"retryAfterSeconds,omitempty"` + // UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + Uid *string `json:"uid,omitempty"` +} + +// NewV1StatusDetails instantiates a new V1StatusDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1StatusDetails() *V1StatusDetails { + this := V1StatusDetails{} + return &this +} + +// NewV1StatusDetailsWithDefaults instantiates a new V1StatusDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1StatusDetailsWithDefaults() *V1StatusDetails { + this := V1StatusDetails{} + return &this +} + +// GetCauses returns the Causes field value if set, zero value otherwise. +func (o *V1StatusDetails) GetCauses() []V1StatusCause { + if o == nil || o.Causes == nil { + var ret []V1StatusCause + return ret + } + return o.Causes +} + +// GetCausesOk returns a tuple with the Causes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusDetails) GetCausesOk() ([]V1StatusCause, bool) { + if o == nil || o.Causes == nil { + return nil, false + } + return o.Causes, true +} + +// HasCauses returns a boolean if a field has been set. +func (o *V1StatusDetails) HasCauses() bool { + if o != nil && o.Causes != nil { + return true + } + + return false +} + +// SetCauses gets a reference to the given []V1StatusCause and assigns it to the Causes field. +func (o *V1StatusDetails) SetCauses(v []V1StatusCause) { + o.Causes = v +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *V1StatusDetails) GetGroup() string { + if o == nil || o.Group == nil { + var ret string + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusDetails) GetGroupOk() (*string, bool) { + if o == nil || o.Group == nil { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *V1StatusDetails) HasGroup() bool { + if o != nil && o.Group != nil { + return true + } + + return false +} + +// SetGroup gets a reference to the given string and assigns it to the Group field. +func (o *V1StatusDetails) SetGroup(v string) { + o.Group = &v +} + +// GetKind returns the Kind field value if set, zero value otherwise. +func (o *V1StatusDetails) GetKind() string { + if o == nil || o.Kind == nil { + var ret string + return ret + } + return *o.Kind +} + +// GetKindOk returns a tuple with the Kind field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusDetails) GetKindOk() (*string, bool) { + if o == nil || o.Kind == nil { + return nil, false + } + return o.Kind, true +} + +// HasKind returns a boolean if a field has been set. +func (o *V1StatusDetails) HasKind() bool { + if o != nil && o.Kind != nil { + return true + } + + return false +} + +// SetKind gets a reference to the given string and assigns it to the Kind field. +func (o *V1StatusDetails) SetKind(v string) { + o.Kind = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V1StatusDetails) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusDetails) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *V1StatusDetails) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *V1StatusDetails) SetName(v string) { + o.Name = &v +} + +// GetRetryAfterSeconds returns the RetryAfterSeconds field value if set, zero value otherwise. +func (o *V1StatusDetails) GetRetryAfterSeconds() int32 { + if o == nil || o.RetryAfterSeconds == nil { + var ret int32 + return ret + } + return *o.RetryAfterSeconds +} + +// GetRetryAfterSecondsOk returns a tuple with the RetryAfterSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusDetails) GetRetryAfterSecondsOk() (*int32, bool) { + if o == nil || o.RetryAfterSeconds == nil { + return nil, false + } + return o.RetryAfterSeconds, true +} + +// HasRetryAfterSeconds returns a boolean if a field has been set. +func (o *V1StatusDetails) HasRetryAfterSeconds() bool { + if o != nil && o.RetryAfterSeconds != nil { + return true + } + + return false +} + +// SetRetryAfterSeconds gets a reference to the given int32 and assigns it to the RetryAfterSeconds field. +func (o *V1StatusDetails) SetRetryAfterSeconds(v int32) { + o.RetryAfterSeconds = &v +} + +// GetUid returns the Uid field value if set, zero value otherwise. +func (o *V1StatusDetails) GetUid() string { + if o == nil || o.Uid == nil { + var ret string + return ret + } + return *o.Uid +} + +// GetUidOk returns a tuple with the Uid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1StatusDetails) GetUidOk() (*string, bool) { + if o == nil || o.Uid == nil { + return nil, false + } + return o.Uid, true +} + +// HasUid returns a boolean if a field has been set. +func (o *V1StatusDetails) HasUid() bool { + if o != nil && o.Uid != nil { + return true + } + + return false +} + +// SetUid gets a reference to the given string and assigns it to the Uid field. +func (o *V1StatusDetails) SetUid(v string) { + o.Uid = &v +} + +func (o V1StatusDetails) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Causes != nil { + toSerialize["causes"] = o.Causes + } + if o.Group != nil { + toSerialize["group"] = o.Group + } + if o.Kind != nil { + toSerialize["kind"] = o.Kind + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.RetryAfterSeconds != nil { + toSerialize["retryAfterSeconds"] = o.RetryAfterSeconds + } + if o.Uid != nil { + toSerialize["uid"] = o.Uid + } + return json.Marshal(toSerialize) +} + +type NullableV1StatusDetails struct { + value *V1StatusDetails + isSet bool +} + +func (v NullableV1StatusDetails) Get() *V1StatusDetails { + return v.value +} + +func (v *NullableV1StatusDetails) Set(val *V1StatusDetails) { + v.value = val + v.isSet = true +} + +func (v NullableV1StatusDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableV1StatusDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1StatusDetails(val *V1StatusDetails) *NullableV1StatusDetails { + return &NullableV1StatusDetails{value: val, isSet: true} +} + +func (v NullableV1StatusDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1StatusDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_tcp_socket_action.go b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go new file mode 100644 index 0000000..0bdf688 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go @@ -0,0 +1,150 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1TCPSocketAction TCPSocketAction describes an action based on opening a socket +type V1TCPSocketAction struct { + // Optional: Host name to connect to, defaults to the pod IP. + Host *string `json:"host,omitempty"` + // Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + Port map[string]interface{} `json:"port"` +} + +// NewV1TCPSocketAction instantiates a new V1TCPSocketAction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1TCPSocketAction(port map[string]interface{}) *V1TCPSocketAction { + this := V1TCPSocketAction{} + this.Port = port + return &this +} + +// NewV1TCPSocketActionWithDefaults instantiates a new V1TCPSocketAction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1TCPSocketActionWithDefaults() *V1TCPSocketAction { + this := V1TCPSocketAction{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *V1TCPSocketAction) GetHost() string { + if o == nil || o.Host == nil { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1TCPSocketAction) GetHostOk() (*string, bool) { + if o == nil || o.Host == nil { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *V1TCPSocketAction) HasHost() bool { + if o != nil && o.Host != nil { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *V1TCPSocketAction) SetHost(v string) { + o.Host = &v +} + +// GetPort returns the Port field value +func (o *V1TCPSocketAction) GetPort() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Port +} + +// GetPortOk returns a tuple with the Port field value +// and a boolean to check if the value has been set. +func (o *V1TCPSocketAction) GetPortOk() (map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Port, true +} + +// SetPort sets field value +func (o *V1TCPSocketAction) SetPort(v map[string]interface{}) { + o.Port = v +} + +func (o V1TCPSocketAction) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Host != nil { + toSerialize["host"] = o.Host + } + if true { + toSerialize["port"] = o.Port + } + return json.Marshal(toSerialize) +} + +type NullableV1TCPSocketAction struct { + value *V1TCPSocketAction + isSet bool +} + +func (v NullableV1TCPSocketAction) Get() *V1TCPSocketAction { + return v.value +} + +func (v *NullableV1TCPSocketAction) Set(val *V1TCPSocketAction) { + v.value = val + v.isSet = true +} + +func (v NullableV1TCPSocketAction) IsSet() bool { + return v.isSet +} + +func (v *NullableV1TCPSocketAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1TCPSocketAction(val *V1TCPSocketAction) *NullableV1TCPSocketAction { + return &NullableV1TCPSocketAction{value: val, isSet: true} +} + +func (v NullableV1TCPSocketAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1TCPSocketAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_toleration.go b/sdk/sdk-apiserver/model_v1_toleration.go new file mode 100644 index 0000000..a32e947 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_toleration.go @@ -0,0 +1,268 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1Toleration The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . +type V1Toleration struct { + // Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. Possible enum values: - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. + Effect *string `json:"effect,omitempty"` + // Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. + Key *string `json:"key,omitempty"` + // Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Possible enum values: - `\"Equal\"` - `\"Exists\"` + Operator *string `json:"operator,omitempty"` + // TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. + TolerationSeconds *int64 `json:"tolerationSeconds,omitempty"` + // Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. + Value *string `json:"value,omitempty"` +} + +// NewV1Toleration instantiates a new V1Toleration object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1Toleration() *V1Toleration { + this := V1Toleration{} + return &this +} + +// NewV1TolerationWithDefaults instantiates a new V1Toleration object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1TolerationWithDefaults() *V1Toleration { + this := V1Toleration{} + return &this +} + +// GetEffect returns the Effect field value if set, zero value otherwise. +func (o *V1Toleration) GetEffect() string { + if o == nil || o.Effect == nil { + var ret string + return ret + } + return *o.Effect +} + +// GetEffectOk returns a tuple with the Effect field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Toleration) GetEffectOk() (*string, bool) { + if o == nil || o.Effect == nil { + return nil, false + } + return o.Effect, true +} + +// HasEffect returns a boolean if a field has been set. +func (o *V1Toleration) HasEffect() bool { + if o != nil && o.Effect != nil { + return true + } + + return false +} + +// SetEffect gets a reference to the given string and assigns it to the Effect field. +func (o *V1Toleration) SetEffect(v string) { + o.Effect = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *V1Toleration) GetKey() string { + if o == nil || o.Key == nil { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Toleration) GetKeyOk() (*string, bool) { + if o == nil || o.Key == nil { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *V1Toleration) HasKey() bool { + if o != nil && o.Key != nil { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *V1Toleration) SetKey(v string) { + o.Key = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *V1Toleration) GetOperator() string { + if o == nil || o.Operator == nil { + var ret string + return ret + } + return *o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Toleration) GetOperatorOk() (*string, bool) { + if o == nil || o.Operator == nil { + return nil, false + } + return o.Operator, true +} + +// HasOperator returns a boolean if a field has been set. +func (o *V1Toleration) HasOperator() bool { + if o != nil && o.Operator != nil { + return true + } + + return false +} + +// SetOperator gets a reference to the given string and assigns it to the Operator field. +func (o *V1Toleration) SetOperator(v string) { + o.Operator = &v +} + +// GetTolerationSeconds returns the TolerationSeconds field value if set, zero value otherwise. +func (o *V1Toleration) GetTolerationSeconds() int64 { + if o == nil || o.TolerationSeconds == nil { + var ret int64 + return ret + } + return *o.TolerationSeconds +} + +// GetTolerationSecondsOk returns a tuple with the TolerationSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Toleration) GetTolerationSecondsOk() (*int64, bool) { + if o == nil || o.TolerationSeconds == nil { + return nil, false + } + return o.TolerationSeconds, true +} + +// HasTolerationSeconds returns a boolean if a field has been set. +func (o *V1Toleration) HasTolerationSeconds() bool { + if o != nil && o.TolerationSeconds != nil { + return true + } + + return false +} + +// SetTolerationSeconds gets a reference to the given int64 and assigns it to the TolerationSeconds field. +func (o *V1Toleration) SetTolerationSeconds(v int64) { + o.TolerationSeconds = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V1Toleration) GetValue() string { + if o == nil || o.Value == nil { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1Toleration) GetValueOk() (*string, bool) { + if o == nil || o.Value == nil { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *V1Toleration) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *V1Toleration) SetValue(v string) { + o.Value = &v +} + +func (o V1Toleration) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Effect != nil { + toSerialize["effect"] = o.Effect + } + if o.Key != nil { + toSerialize["key"] = o.Key + } + if o.Operator != nil { + toSerialize["operator"] = o.Operator + } + if o.TolerationSeconds != nil { + toSerialize["tolerationSeconds"] = o.TolerationSeconds + } + if o.Value != nil { + toSerialize["value"] = o.Value + } + return json.Marshal(toSerialize) +} + +type NullableV1Toleration struct { + value *V1Toleration + isSet bool +} + +func (v NullableV1Toleration) Get() *V1Toleration { + return v.value +} + +func (v *NullableV1Toleration) Set(val *V1Toleration) { + v.value = val + v.isSet = true +} + +func (v NullableV1Toleration) IsSet() bool { + return v.isSet +} + +func (v *NullableV1Toleration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1Toleration(val *V1Toleration) *NullableV1Toleration { + return &NullableV1Toleration{value: val, isSet: true} +} + +func (v NullableV1Toleration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1Toleration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_volume_mount.go b/sdk/sdk-apiserver/model_v1_volume_mount.go new file mode 100644 index 0000000..1c535f4 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_volume_mount.go @@ -0,0 +1,291 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1VolumeMount VolumeMount describes a mounting of a Volume within a container. +type V1VolumeMount struct { + // Path within the container at which the volume should be mounted. Must not contain ':'. + MountPath string `json:"mountPath"` + // mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. + MountPropagation *string `json:"mountPropagation,omitempty"` + // This must match the Name of a Volume. + Name string `json:"name"` + // Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. + ReadOnly *bool `json:"readOnly,omitempty"` + // Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). + SubPath *string `json:"subPath,omitempty"` + // Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. + SubPathExpr *string `json:"subPathExpr,omitempty"` +} + +// NewV1VolumeMount instantiates a new V1VolumeMount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1VolumeMount(mountPath string, name string) *V1VolumeMount { + this := V1VolumeMount{} + this.MountPath = mountPath + this.Name = name + return &this +} + +// NewV1VolumeMountWithDefaults instantiates a new V1VolumeMount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1VolumeMountWithDefaults() *V1VolumeMount { + this := V1VolumeMount{} + return &this +} + +// GetMountPath returns the MountPath field value +func (o *V1VolumeMount) GetMountPath() string { + if o == nil { + var ret string + return ret + } + + return o.MountPath +} + +// GetMountPathOk returns a tuple with the MountPath field value +// and a boolean to check if the value has been set. +func (o *V1VolumeMount) GetMountPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.MountPath, true +} + +// SetMountPath sets field value +func (o *V1VolumeMount) SetMountPath(v string) { + o.MountPath = v +} + +// GetMountPropagation returns the MountPropagation field value if set, zero value otherwise. +func (o *V1VolumeMount) GetMountPropagation() string { + if o == nil || o.MountPropagation == nil { + var ret string + return ret + } + return *o.MountPropagation +} + +// GetMountPropagationOk returns a tuple with the MountPropagation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1VolumeMount) GetMountPropagationOk() (*string, bool) { + if o == nil || o.MountPropagation == nil { + return nil, false + } + return o.MountPropagation, true +} + +// HasMountPropagation returns a boolean if a field has been set. +func (o *V1VolumeMount) HasMountPropagation() bool { + if o != nil && o.MountPropagation != nil { + return true + } + + return false +} + +// SetMountPropagation gets a reference to the given string and assigns it to the MountPropagation field. +func (o *V1VolumeMount) SetMountPropagation(v string) { + o.MountPropagation = &v +} + +// GetName returns the Name field value +func (o *V1VolumeMount) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *V1VolumeMount) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V1VolumeMount) SetName(v string) { + o.Name = v +} + +// GetReadOnly returns the ReadOnly field value if set, zero value otherwise. +func (o *V1VolumeMount) GetReadOnly() bool { + if o == nil || o.ReadOnly == nil { + var ret bool + return ret + } + return *o.ReadOnly +} + +// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1VolumeMount) GetReadOnlyOk() (*bool, bool) { + if o == nil || o.ReadOnly == nil { + return nil, false + } + return o.ReadOnly, true +} + +// HasReadOnly returns a boolean if a field has been set. +func (o *V1VolumeMount) HasReadOnly() bool { + if o != nil && o.ReadOnly != nil { + return true + } + + return false +} + +// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field. +func (o *V1VolumeMount) SetReadOnly(v bool) { + o.ReadOnly = &v +} + +// GetSubPath returns the SubPath field value if set, zero value otherwise. +func (o *V1VolumeMount) GetSubPath() string { + if o == nil || o.SubPath == nil { + var ret string + return ret + } + return *o.SubPath +} + +// GetSubPathOk returns a tuple with the SubPath field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1VolumeMount) GetSubPathOk() (*string, bool) { + if o == nil || o.SubPath == nil { + return nil, false + } + return o.SubPath, true +} + +// HasSubPath returns a boolean if a field has been set. +func (o *V1VolumeMount) HasSubPath() bool { + if o != nil && o.SubPath != nil { + return true + } + + return false +} + +// SetSubPath gets a reference to the given string and assigns it to the SubPath field. +func (o *V1VolumeMount) SetSubPath(v string) { + o.SubPath = &v +} + +// GetSubPathExpr returns the SubPathExpr field value if set, zero value otherwise. +func (o *V1VolumeMount) GetSubPathExpr() string { + if o == nil || o.SubPathExpr == nil { + var ret string + return ret + } + return *o.SubPathExpr +} + +// GetSubPathExprOk returns a tuple with the SubPathExpr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V1VolumeMount) GetSubPathExprOk() (*string, bool) { + if o == nil || o.SubPathExpr == nil { + return nil, false + } + return o.SubPathExpr, true +} + +// HasSubPathExpr returns a boolean if a field has been set. +func (o *V1VolumeMount) HasSubPathExpr() bool { + if o != nil && o.SubPathExpr != nil { + return true + } + + return false +} + +// SetSubPathExpr gets a reference to the given string and assigns it to the SubPathExpr field. +func (o *V1VolumeMount) SetSubPathExpr(v string) { + o.SubPathExpr = &v +} + +func (o V1VolumeMount) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["mountPath"] = o.MountPath + } + if o.MountPropagation != nil { + toSerialize["mountPropagation"] = o.MountPropagation + } + if true { + toSerialize["name"] = o.Name + } + if o.ReadOnly != nil { + toSerialize["readOnly"] = o.ReadOnly + } + if o.SubPath != nil { + toSerialize["subPath"] = o.SubPath + } + if o.SubPathExpr != nil { + toSerialize["subPathExpr"] = o.SubPathExpr + } + return json.Marshal(toSerialize) +} + +type NullableV1VolumeMount struct { + value *V1VolumeMount + isSet bool +} + +func (v NullableV1VolumeMount) Get() *V1VolumeMount { + return v.value +} + +func (v *NullableV1VolumeMount) Set(val *V1VolumeMount) { + v.value = val + v.isSet = true +} + +func (v NullableV1VolumeMount) IsSet() bool { + return v.isSet +} + +func (v *NullableV1VolumeMount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1VolumeMount(val *V1VolumeMount) *NullableV1VolumeMount { + return &NullableV1VolumeMount{value: val, isSet: true} +} + +func (v NullableV1VolumeMount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1VolumeMount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_watch_event.go b/sdk/sdk-apiserver/model_v1_watch_event.go new file mode 100644 index 0000000..67602d9 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_watch_event.go @@ -0,0 +1,142 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1WatchEvent Event represents a single event to a watched resource. +type V1WatchEvent struct { + // Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. + Object map[string]interface{} `json:"object"` + Type string `json:"type"` +} + +// NewV1WatchEvent instantiates a new V1WatchEvent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1WatchEvent(object map[string]interface{}, type_ string) *V1WatchEvent { + this := V1WatchEvent{} + this.Object = object + this.Type = type_ + return &this +} + +// NewV1WatchEventWithDefaults instantiates a new V1WatchEvent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1WatchEventWithDefaults() *V1WatchEvent { + this := V1WatchEvent{} + return &this +} + +// GetObject returns the Object field value +func (o *V1WatchEvent) GetObject() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +func (o *V1WatchEvent) GetObjectOk() (map[string]interface{}, bool) { + if o == nil { + return nil, false + } + return o.Object, true +} + +// SetObject sets field value +func (o *V1WatchEvent) SetObject(v map[string]interface{}) { + o.Object = v +} + +// GetType returns the Type field value +func (o *V1WatchEvent) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *V1WatchEvent) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *V1WatchEvent) SetType(v string) { + o.Type = v +} + +func (o V1WatchEvent) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["object"] = o.Object + } + if true { + toSerialize["type"] = o.Type + } + return json.Marshal(toSerialize) +} + +type NullableV1WatchEvent struct { + value *V1WatchEvent + isSet bool +} + +func (v NullableV1WatchEvent) Get() *V1WatchEvent { + return v.value +} + +func (v *NullableV1WatchEvent) Set(val *V1WatchEvent) { + v.value = val + v.isSet = true +} + +func (v NullableV1WatchEvent) IsSet() bool { + return v.isSet +} + +func (v *NullableV1WatchEvent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1WatchEvent(val *V1WatchEvent) *NullableV1WatchEvent { + return &NullableV1WatchEvent{value: val, isSet: true} +} + +func (v NullableV1WatchEvent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1WatchEvent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go new file mode 100644 index 0000000..b56c6a8 --- /dev/null +++ b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go @@ -0,0 +1,142 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// V1WeightedPodAffinityTerm The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) +type V1WeightedPodAffinityTerm struct { + PodAffinityTerm V1PodAffinityTerm `json:"podAffinityTerm"` + // weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + Weight int32 `json:"weight"` +} + +// NewV1WeightedPodAffinityTerm instantiates a new V1WeightedPodAffinityTerm object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1WeightedPodAffinityTerm(podAffinityTerm V1PodAffinityTerm, weight int32) *V1WeightedPodAffinityTerm { + this := V1WeightedPodAffinityTerm{} + this.PodAffinityTerm = podAffinityTerm + this.Weight = weight + return &this +} + +// NewV1WeightedPodAffinityTermWithDefaults instantiates a new V1WeightedPodAffinityTerm object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1WeightedPodAffinityTermWithDefaults() *V1WeightedPodAffinityTerm { + this := V1WeightedPodAffinityTerm{} + return &this +} + +// GetPodAffinityTerm returns the PodAffinityTerm field value +func (o *V1WeightedPodAffinityTerm) GetPodAffinityTerm() V1PodAffinityTerm { + if o == nil { + var ret V1PodAffinityTerm + return ret + } + + return o.PodAffinityTerm +} + +// GetPodAffinityTermOk returns a tuple with the PodAffinityTerm field value +// and a boolean to check if the value has been set. +func (o *V1WeightedPodAffinityTerm) GetPodAffinityTermOk() (*V1PodAffinityTerm, bool) { + if o == nil { + return nil, false + } + return &o.PodAffinityTerm, true +} + +// SetPodAffinityTerm sets field value +func (o *V1WeightedPodAffinityTerm) SetPodAffinityTerm(v V1PodAffinityTerm) { + o.PodAffinityTerm = v +} + +// GetWeight returns the Weight field value +func (o *V1WeightedPodAffinityTerm) GetWeight() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value +// and a boolean to check if the value has been set. +func (o *V1WeightedPodAffinityTerm) GetWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Weight, true +} + +// SetWeight sets field value +func (o *V1WeightedPodAffinityTerm) SetWeight(v int32) { + o.Weight = v +} + +func (o V1WeightedPodAffinityTerm) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["podAffinityTerm"] = o.PodAffinityTerm + } + if true { + toSerialize["weight"] = o.Weight + } + return json.Marshal(toSerialize) +} + +type NullableV1WeightedPodAffinityTerm struct { + value *V1WeightedPodAffinityTerm + isSet bool +} + +func (v NullableV1WeightedPodAffinityTerm) Get() *V1WeightedPodAffinityTerm { + return v.value +} + +func (v *NullableV1WeightedPodAffinityTerm) Set(val *V1WeightedPodAffinityTerm) { + v.value = val + v.isSet = true +} + +func (v NullableV1WeightedPodAffinityTerm) IsSet() bool { + return v.isSet +} + +func (v *NullableV1WeightedPodAffinityTerm) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1WeightedPodAffinityTerm(val *V1WeightedPodAffinityTerm) *NullableV1WeightedPodAffinityTerm { + return &NullableV1WeightedPodAffinityTerm{value: val, isSet: true} +} + +func (v NullableV1WeightedPodAffinityTerm) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1WeightedPodAffinityTerm) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/model_version_info.go b/sdk/sdk-apiserver/model_version_info.go new file mode 100644 index 0000000..a093896 --- /dev/null +++ b/sdk/sdk-apiserver/model_version_info.go @@ -0,0 +1,344 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" +) + +// VersionInfo Info contains versioning information. how we'll want to distribute that information. +type VersionInfo struct { + BuildDate string `json:"buildDate"` + Compiler string `json:"compiler"` + GitCommit string `json:"gitCommit"` + GitTreeState string `json:"gitTreeState"` + GitVersion string `json:"gitVersion"` + GoVersion string `json:"goVersion"` + Major string `json:"major"` + Minor string `json:"minor"` + Platform string `json:"platform"` +} + +// NewVersionInfo instantiates a new VersionInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVersionInfo(buildDate string, compiler string, gitCommit string, gitTreeState string, gitVersion string, goVersion string, major string, minor string, platform string) *VersionInfo { + this := VersionInfo{} + this.BuildDate = buildDate + this.Compiler = compiler + this.GitCommit = gitCommit + this.GitTreeState = gitTreeState + this.GitVersion = gitVersion + this.GoVersion = goVersion + this.Major = major + this.Minor = minor + this.Platform = platform + return &this +} + +// NewVersionInfoWithDefaults instantiates a new VersionInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVersionInfoWithDefaults() *VersionInfo { + this := VersionInfo{} + return &this +} + +// GetBuildDate returns the BuildDate field value +func (o *VersionInfo) GetBuildDate() string { + if o == nil { + var ret string + return ret + } + + return o.BuildDate +} + +// GetBuildDateOk returns a tuple with the BuildDate field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetBuildDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BuildDate, true +} + +// SetBuildDate sets field value +func (o *VersionInfo) SetBuildDate(v string) { + o.BuildDate = v +} + +// GetCompiler returns the Compiler field value +func (o *VersionInfo) GetCompiler() string { + if o == nil { + var ret string + return ret + } + + return o.Compiler +} + +// GetCompilerOk returns a tuple with the Compiler field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetCompilerOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Compiler, true +} + +// SetCompiler sets field value +func (o *VersionInfo) SetCompiler(v string) { + o.Compiler = v +} + +// GetGitCommit returns the GitCommit field value +func (o *VersionInfo) GetGitCommit() string { + if o == nil { + var ret string + return ret + } + + return o.GitCommit +} + +// GetGitCommitOk returns a tuple with the GitCommit field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetGitCommitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GitCommit, true +} + +// SetGitCommit sets field value +func (o *VersionInfo) SetGitCommit(v string) { + o.GitCommit = v +} + +// GetGitTreeState returns the GitTreeState field value +func (o *VersionInfo) GetGitTreeState() string { + if o == nil { + var ret string + return ret + } + + return o.GitTreeState +} + +// GetGitTreeStateOk returns a tuple with the GitTreeState field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetGitTreeStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GitTreeState, true +} + +// SetGitTreeState sets field value +func (o *VersionInfo) SetGitTreeState(v string) { + o.GitTreeState = v +} + +// GetGitVersion returns the GitVersion field value +func (o *VersionInfo) GetGitVersion() string { + if o == nil { + var ret string + return ret + } + + return o.GitVersion +} + +// GetGitVersionOk returns a tuple with the GitVersion field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetGitVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GitVersion, true +} + +// SetGitVersion sets field value +func (o *VersionInfo) SetGitVersion(v string) { + o.GitVersion = v +} + +// GetGoVersion returns the GoVersion field value +func (o *VersionInfo) GetGoVersion() string { + if o == nil { + var ret string + return ret + } + + return o.GoVersion +} + +// GetGoVersionOk returns a tuple with the GoVersion field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetGoVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GoVersion, true +} + +// SetGoVersion sets field value +func (o *VersionInfo) SetGoVersion(v string) { + o.GoVersion = v +} + +// GetMajor returns the Major field value +func (o *VersionInfo) GetMajor() string { + if o == nil { + var ret string + return ret + } + + return o.Major +} + +// GetMajorOk returns a tuple with the Major field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetMajorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Major, true +} + +// SetMajor sets field value +func (o *VersionInfo) SetMajor(v string) { + o.Major = v +} + +// GetMinor returns the Minor field value +func (o *VersionInfo) GetMinor() string { + if o == nil { + var ret string + return ret + } + + return o.Minor +} + +// GetMinorOk returns a tuple with the Minor field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetMinorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Minor, true +} + +// SetMinor sets field value +func (o *VersionInfo) SetMinor(v string) { + o.Minor = v +} + +// GetPlatform returns the Platform field value +func (o *VersionInfo) GetPlatform() string { + if o == nil { + var ret string + return ret + } + + return o.Platform +} + +// GetPlatformOk returns a tuple with the Platform field value +// and a boolean to check if the value has been set. +func (o *VersionInfo) GetPlatformOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Platform, true +} + +// SetPlatform sets field value +func (o *VersionInfo) SetPlatform(v string) { + o.Platform = v +} + +func (o VersionInfo) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["buildDate"] = o.BuildDate + } + if true { + toSerialize["compiler"] = o.Compiler + } + if true { + toSerialize["gitCommit"] = o.GitCommit + } + if true { + toSerialize["gitTreeState"] = o.GitTreeState + } + if true { + toSerialize["gitVersion"] = o.GitVersion + } + if true { + toSerialize["goVersion"] = o.GoVersion + } + if true { + toSerialize["major"] = o.Major + } + if true { + toSerialize["minor"] = o.Minor + } + if true { + toSerialize["platform"] = o.Platform + } + return json.Marshal(toSerialize) +} + +type NullableVersionInfo struct { + value *VersionInfo + isSet bool +} + +func (v NullableVersionInfo) Get() *VersionInfo { + return v.value +} + +func (v *NullableVersionInfo) Set(val *VersionInfo) { + v.value = val + v.isSet = true +} + +func (v NullableVersionInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionInfo(val *VersionInfo) *NullableVersionInfo { + return &NullableVersionInfo{value: val, isSet: true} +} + +func (v NullableVersionInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-apiserver/response.go b/sdk/sdk-apiserver/response.go new file mode 100644 index 0000000..63f3348 --- /dev/null +++ b/sdk/sdk-apiserver/response.go @@ -0,0 +1,51 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/sdk/sdk-apiserver/settings b/sdk/sdk-apiserver/settings new file mode 100644 index 0000000..2273808 --- /dev/null +++ b/sdk/sdk-apiserver/settings @@ -0,0 +1,19 @@ +# kubernetes-client/gen commit to use for code generation. +export GEN_COMMIT=d71ff1efd + +# GitHub username/organization to clone kubernetes repo from. +export USERNAME=kubernetes + +# Kubernetes branch/tag to get the OpenAPI spec from. +export KUBERNETES_BRANCH="v1.18.0" + +# client version for packaging and releasing. It can +# be different than SPEC_VERSION. +export CLIENT_VERSION="0.0.1" + +# Name of the release package +export PACKAGE_NAME="sncloud" + +export OPENAPI_GENERATOR_COMMIT=v6.2.0 + +export OPENAPI_SKIP_FETCH_SPEC=true diff --git a/sdk/sdk-apiserver/swagger.json b/sdk/sdk-apiserver/swagger.json new file mode 100644 index 0000000..dd179f1 --- /dev/null +++ b/sdk/sdk-apiserver/swagger.json @@ -0,0 +1,67654 @@ +{ + "swagger": "2.0", + "info": { + "title": "Api", + "version": "v0" + }, + "paths": { + "/apis/": { + "get": { + "description": "get available API versions", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "apis" + ], + "operationId": "getAPIVersions", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroupList" + } + } + } + } + }, + "/apis/authorization.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo" + ], + "operationId": "getAuthorizationStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + } + } + } + }, + "/apis/authorization.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "getAuthorizationStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + } + } + } + }, + "/apis/authorization.streamnative.io/v1alpha1/iamaccounts": { + "get": { + "description": "list or watch objects of kind IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "listAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts": { + "get": { + "description": "list or watch objects of kind IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "listAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "post": { + "description": "create an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "deleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}": { + "get": { + "description": "read the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "readAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "put": { + "description": "replace the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "replaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "deleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified IamAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "patchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status": { + "get": { + "description": "read status of the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "readAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "put": { + "description": "replace status of the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "replaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "deleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified IamAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "patchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectrbacreviews": { + "post": { + "description": "create a SelfSubjectRbacReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SelfSubjectRbacReview" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectrulesreviews": { + "post": { + "description": "create a SelfSubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SelfSubjectRulesReview" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectuserreviews": { + "post": { + "description": "create a SelfSubjectUserReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SelfSubjectUserReview" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/subjectrolereviews": { + "post": { + "description": "create a SubjectRoleReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SubjectRoleReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SubjectRoleReview" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/subjectrulesreviews": { + "post": { + "description": "create a SubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SubjectRulesReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SubjectRulesReview" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/iamaccounts": { + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts": { + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}": { + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind IamAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "watchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo" + ], + "operationId": "getBillingStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + } + } + } + }, + "/apis/billing.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "getBillingStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + } + } + } + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/customerportalrequests": { + "post": { + "description": "create a CustomerPortalRequest", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "CustomerPortalRequest" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents": { + "get": { + "description": "list or watch objects of kind PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "post": { + "description": "create a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}": { + "get": { + "description": "read the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "put": { + "description": "replace the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PaymentIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status": { + "get": { + "description": "read status of the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "put": { + "description": "replace status of the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PaymentIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers": { + "get": { + "description": "list or watch objects of kind PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "post": { + "description": "create a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}": { + "get": { + "description": "read the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "put": { + "description": "replace the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PrivateOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status": { + "get": { + "description": "read status of the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "put": { + "description": "replace status of the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PrivateOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products": { + "get": { + "description": "list or watch objects of kind Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "post": { + "description": "create a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}": { + "get": { + "description": "read the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedProduct", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "put": { + "description": "replace the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified Product", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status": { + "get": { + "description": "read status of the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "put": { + "description": "replace status of the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified Product", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents": { + "get": { + "description": "list or watch objects of kind SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "post": { + "description": "create a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}": { + "get": { + "description": "read the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "put": { + "description": "replace the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified SetupIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status": { + "get": { + "description": "read status of the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "put": { + "description": "replace status of the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified SetupIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents": { + "get": { + "description": "list or watch objects of kind SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "post": { + "description": "create a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}": { + "get": { + "description": "read the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "put": { + "description": "replace the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified SubscriptionIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status": { + "get": { + "description": "read status of the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "put": { + "description": "replace status of the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified SubscriptionIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions": { + "get": { + "description": "list or watch objects of kind Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "post": { + "description": "create a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}": { + "get": { + "description": "read the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "put": { + "description": "replace the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified Subscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status": { + "get": { + "description": "read status of the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "put": { + "description": "replace status of the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified Subscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/paymentintents": { + "get": { + "description": "list or watch objects of kind PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/privateoffers": { + "get": { + "description": "list or watch objects of kind PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/products": { + "get": { + "description": "list or watch objects of kind Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1ProductForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/publicoffers": { + "get": { + "description": "list or watch objects of kind PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "post": { + "description": "create a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionPublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}": { + "get": { + "description": "read the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1PublicOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "put": { + "description": "replace the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PublicOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status": { + "get": { + "description": "read status of the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1PublicOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "put": { + "description": "replace status of the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PublicOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/setupintents": { + "get": { + "description": "list or watch objects of kind SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/subscriptionintents": { + "get": { + "description": "list or watch objects of kind SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/subscriptions": { + "get": { + "description": "list or watch objects of kind Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/sugerentitlementreviews": { + "post": { + "description": "create a SugerEntitlementReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1SugerEntitlementReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SugerEntitlementReview" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/testclocks": { + "get": { + "description": "list or watch objects of kind TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "post": { + "description": "create a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionTestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}": { + "get": { + "description": "read the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1TestClock", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "put": { + "description": "replace the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified TestClock", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status": { + "get": { + "description": "read status of the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1TestClockStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "put": { + "description": "replace status of the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified TestClock", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents": { + "get": { + "description": "watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}": { + "get": { + "description": "watch changes to an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers": { + "get": { + "description": "watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}": { + "get": { + "description": "watch changes to an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products": { + "get": { + "description": "watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedProductList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}": { + "get": { + "description": "watch changes to an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedProduct", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents": { + "get": { + "description": "watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}": { + "get": { + "description": "watch changes to an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents": { + "get": { + "description": "watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}": { + "get": { + "description": "watch changes to an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions": { + "get": { + "description": "watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}": { + "get": { + "description": "watch changes to an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/paymentintents": { + "get": { + "description": "watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/privateoffers": { + "get": { + "description": "watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/products": { + "get": { + "description": "watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers": { + "get": { + "description": "watch individual changes to a list of PublicOffer. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PublicOfferList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}": { + "get": { + "description": "watch changes to an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PublicOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PublicOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/setupintents": { + "get": { + "description": "watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/subscriptionintents": { + "get": { + "description": "watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/subscriptions": { + "get": { + "description": "watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks": { + "get": { + "description": "watch individual changes to a list of TestClock. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1TestClockList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}": { + "get": { + "description": "watch changes to an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1TestClock", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1TestClockStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo" + ], + "operationId": "getCloudStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + } + } + } + }, + "/apis/cloud.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "getCloudStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + } + } + } + }, + "/apis/cloud.streamnative.io/v1alpha1/apikeys": { + "get": { + "description": "list or watch objects of kind APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/cloudconnections": { + "get": { + "description": "list or watch objects of kind CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/cloudenvironments": { + "get": { + "description": "list or watch objects of kind CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings": { + "get": { + "description": "list or watch objects of kind ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "post": { + "description": "create a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}": { + "get": { + "description": "read the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "put": { + "description": "replace the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified ClusterRoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status": { + "get": { + "description": "read status of the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "put": { + "description": "replace status of the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified ClusterRoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterroles": { + "get": { + "description": "list or watch objects of kind ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "post": { + "description": "create a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}": { + "get": { + "description": "read the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "put": { + "description": "replace the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified ClusterRole", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status": { + "get": { + "description": "read status of the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "put": { + "description": "replace status of the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified ClusterRole", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/identitypools": { + "get": { + "description": "list or watch objects of kind IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys": { + "get": { + "description": "list or watch objects of kind APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "post": { + "description": "create an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}": { + "get": { + "description": "read the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "put": { + "description": "replace the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified APIKey", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status": { + "get": { + "description": "read status of the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "put": { + "description": "replace status of the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified APIKey", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections": { + "get": { + "description": "list or watch objects of kind CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "post": { + "description": "create a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}": { + "get": { + "description": "read the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "put": { + "description": "replace the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified CloudConnection", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status": { + "get": { + "description": "read status of the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "put": { + "description": "replace status of the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified CloudConnection", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments": { + "get": { + "description": "list or watch objects of kind CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "post": { + "description": "create a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}": { + "get": { + "description": "read the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "put": { + "description": "replace the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified CloudEnvironment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status": { + "get": { + "description": "read status of the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "put": { + "description": "replace status of the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified CloudEnvironment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools": { + "get": { + "description": "list or watch objects of kind IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "post": { + "description": "create an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}": { + "get": { + "description": "read the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "put": { + "description": "replace the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified IdentityPool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status": { + "get": { + "description": "read status of the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "put": { + "description": "replace status of the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified IdentityPool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders": { + "get": { + "description": "list or watch objects of kind OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "post": { + "description": "create an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}": { + "get": { + "description": "read the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "put": { + "description": "replace the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified OIDCProvider", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status": { + "get": { + "description": "read status of the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "put": { + "description": "replace status of the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified OIDCProvider", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers": { + "get": { + "description": "list or watch objects of kind PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "post": { + "description": "create a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}": { + "get": { + "description": "read the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "put": { + "description": "replace the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PoolMember", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status": { + "get": { + "description": "read status of the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "put": { + "description": "replace status of the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PoolMember", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions": { + "get": { + "description": "list or watch objects of kind PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "post": { + "description": "create a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}": { + "get": { + "description": "read the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "put": { + "description": "replace the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PoolOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status": { + "get": { + "description": "read status of the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "put": { + "description": "replace status of the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PoolOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools": { + "get": { + "description": "list or watch objects of kind Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "post": { + "description": "create a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}": { + "get": { + "description": "read the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "put": { + "description": "replace the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified Pool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status": { + "get": { + "description": "read status of the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "put": { + "description": "replace status of the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified Pool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters": { + "get": { + "description": "list or watch objects of kind PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "post": { + "description": "create a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}": { + "get": { + "description": "read the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "put": { + "description": "replace the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PulsarCluster", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status": { + "get": { + "description": "read status of the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "put": { + "description": "replace status of the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PulsarCluster", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways": { + "get": { + "description": "list or watch objects of kind PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "post": { + "description": "create a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}": { + "get": { + "description": "read the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "put": { + "description": "replace the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PulsarGateway", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status": { + "get": { + "description": "read status of the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "put": { + "description": "replace status of the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PulsarGateway", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances": { + "get": { + "description": "list or watch objects of kind PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "post": { + "description": "create a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}": { + "get": { + "description": "read the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "put": { + "description": "replace the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified PulsarInstance", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status": { + "get": { + "description": "read status of the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "put": { + "description": "replace status of the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified PulsarInstance", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings": { + "get": { + "description": "list or watch objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "post": { + "description": "create a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}": { + "get": { + "description": "read the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "put": { + "description": "replace the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified RoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status": { + "get": { + "description": "read status of the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "put": { + "description": "replace status of the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified RoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles": { + "get": { + "description": "list or watch objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "post": { + "description": "create a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}": { + "get": { + "description": "read the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "put": { + "description": "replace the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified Role", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status": { + "get": { + "description": "read status of the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "put": { + "description": "replace status of the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified Role", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets": { + "get": { + "description": "list or watch objects of kind Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "post": { + "description": "create a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}": { + "get": { + "description": "read the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedSecret", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "put": { + "description": "replace the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified Secret", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status": { + "get": { + "description": "read status of the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "put": { + "description": "replace status of the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified Secret", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings": { + "get": { + "description": "list or watch objects of kind ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "post": { + "description": "create a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}": { + "get": { + "description": "read the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "put": { + "description": "replace the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified ServiceAccountBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status": { + "get": { + "description": "read status of the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "put": { + "description": "replace status of the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified ServiceAccountBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts": { + "get": { + "description": "list or watch objects of kind ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "post": { + "description": "create a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}": { + "get": { + "description": "read the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "put": { + "description": "replace the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified ServiceAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status": { + "get": { + "description": "read status of the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "put": { + "description": "replace status of the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified ServiceAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions": { + "get": { + "description": "list or watch objects of kind StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "post": { + "description": "create a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}": { + "get": { + "description": "read the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "put": { + "description": "replace the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified StripeSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status": { + "get": { + "description": "read status of the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "put": { + "description": "replace status of the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified StripeSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users": { + "get": { + "description": "list or watch objects of kind User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "post": { + "description": "create an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}": { + "get": { + "description": "read the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedUser", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "put": { + "description": "replace the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified User", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status": { + "get": { + "description": "read status of the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "put": { + "description": "replace status of the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified User", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/oidcproviders": { + "get": { + "description": "list or watch objects of kind OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/organizations": { + "get": { + "description": "list or watch objects of kind Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "post": { + "description": "create an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionOrganization", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}": { + "get": { + "description": "read the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1Organization", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "put": { + "description": "replace the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified Organization", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status": { + "get": { + "description": "read status of the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1OrganizationStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "put": { + "description": "replace status of the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified Organization", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/poolmembers": { + "get": { + "description": "list or watch objects of kind PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pooloptions": { + "get": { + "description": "list or watch objects of kind PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pools": { + "get": { + "description": "list or watch objects of kind Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PoolForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pulsarclusters": { + "get": { + "description": "list or watch objects of kind PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pulsargateways": { + "get": { + "description": "list or watch objects of kind PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pulsarinstances": { + "get": { + "description": "list or watch objects of kind PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/rolebindings": { + "get": { + "description": "list or watch objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/roles": { + "get": { + "description": "list or watch objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1RoleForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/secrets": { + "get": { + "description": "list or watch objects of kind Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1SecretForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/selfregistrations": { + "post": { + "description": "create a SelfRegistration", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1SelfRegistration", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "SelfRegistration" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/serviceaccountbindings": { + "get": { + "description": "list or watch objects of kind ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/serviceaccounts": { + "get": { + "description": "list or watch objects of kind ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/stripesubscriptions": { + "get": { + "description": "list or watch objects of kind StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/users": { + "get": { + "description": "list or watch objects of kind User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1UserForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/apikeys": { + "get": { + "description": "watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/cloudconnections": { + "get": { + "description": "watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/cloudenvironments": { + "get": { + "description": "watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings": { + "get": { + "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleBindingList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}": { + "get": { + "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles": { + "get": { + "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}": { + "get": { + "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/identitypools": { + "get": { + "description": "watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys": { + "get": { + "description": "watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}": { + "get": { + "description": "watch changes to an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections": { + "get": { + "description": "watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}": { + "get": { + "description": "watch changes to an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments": { + "get": { + "description": "watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}": { + "get": { + "description": "watch changes to an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools": { + "get": { + "description": "watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}": { + "get": { + "description": "watch changes to an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders": { + "get": { + "description": "watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}": { + "get": { + "description": "watch changes to an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers": { + "get": { + "description": "watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}": { + "get": { + "description": "watch changes to an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions": { + "get": { + "description": "watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}": { + "get": { + "description": "watch changes to an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools": { + "get": { + "description": "watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}": { + "get": { + "description": "watch changes to an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters": { + "get": { + "description": "watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}": { + "get": { + "description": "watch changes to an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways": { + "get": { + "description": "watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}": { + "get": { + "description": "watch changes to an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances": { + "get": { + "description": "watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}": { + "get": { + "description": "watch changes to an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { + "get": { + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { + "get": { + "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles": { + "get": { + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { + "get": { + "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets": { + "get": { + "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedSecretList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}": { + "get": { + "description": "watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedSecret", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings": { + "get": { + "description": "watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}": { + "get": { + "description": "watch changes to an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts": { + "get": { + "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}": { + "get": { + "description": "watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions": { + "get": { + "description": "watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}": { + "get": { + "description": "watch changes to an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users": { + "get": { + "description": "watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedUserList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}": { + "get": { + "description": "watch changes to an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedUser", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/oidcproviders": { + "get": { + "description": "watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations": { + "get": { + "description": "watch individual changes to a list of Organization. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1OrganizationList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}": { + "get": { + "description": "watch changes to an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1Organization", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1OrganizationStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/poolmembers": { + "get": { + "description": "watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pooloptions": { + "get": { + "description": "watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pools": { + "get": { + "description": "watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsarclusters": { + "get": { + "description": "watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsargateways": { + "get": { + "description": "watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsarinstances": { + "get": { + "description": "watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/rolebindings": { + "get": { + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/roles": { + "get": { + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/secrets": { + "get": { + "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/serviceaccountbindings": { + "get": { + "description": "watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/serviceaccounts": { + "get": { + "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/stripesubscriptions": { + "get": { + "description": "watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/users": { + "get": { + "description": "watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1UserListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "getCloudStreamnativeIoV1alpha2APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + } + } + } + }, + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions": { + "get": { + "description": "list or watch objects of kind AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "post": { + "description": "create an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}": { + "get": { + "description": "read the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2AWSSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "put": { + "description": "replace the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified AWSSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status": { + "get": { + "description": "read status of the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "put": { + "description": "replace status of the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified AWSSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/bookkeepersetoptions": { + "get": { + "description": "list or watch objects of kind BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/bookkeepersets": { + "get": { + "description": "list or watch objects of kind BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/monitorsets": { + "get": { + "description": "list or watch objects of kind MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions": { + "get": { + "description": "list or watch objects of kind BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "post": { + "description": "create a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}": { + "get": { + "description": "read the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "put": { + "description": "replace the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified BookKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status": { + "get": { + "description": "read status of the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "put": { + "description": "replace status of the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified BookKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets": { + "get": { + "description": "list or watch objects of kind BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "post": { + "description": "create a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}": { + "get": { + "description": "read the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "put": { + "description": "replace the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified BookKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status": { + "get": { + "description": "read status of the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "put": { + "description": "replace status of the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified BookKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets": { + "get": { + "description": "list or watch objects of kind MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "post": { + "description": "create a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}": { + "get": { + "description": "read the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "put": { + "description": "replace the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified MonitorSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status": { + "get": { + "description": "read status of the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "put": { + "description": "replace status of the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified MonitorSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions": { + "get": { + "description": "list or watch objects of kind ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "post": { + "description": "create a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}": { + "get": { + "description": "read the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "put": { + "description": "replace the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified ZooKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status": { + "get": { + "description": "read status of the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "put": { + "description": "replace status of the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified ZooKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets": { + "get": { + "description": "list or watch objects of kind ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "post": { + "description": "create a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}": { + "get": { + "description": "read the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "put": { + "description": "replace the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified ZooKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status": { + "get": { + "description": "read status of the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "put": { + "description": "replace status of the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified ZooKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions": { + "get": { + "description": "watch individual changes to a list of AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2AWSSubscriptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}": { + "get": { + "description": "watch changes to an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2AWSSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersetoptions": { + "get": { + "description": "watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersets": { + "get": { + "description": "watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/monitorsets": { + "get": { + "description": "watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions": { + "get": { + "description": "watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}": { + "get": { + "description": "watch changes to an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets": { + "get": { + "description": "watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}": { + "get": { + "description": "watch changes to an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets": { + "get": { + "description": "watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}": { + "get": { + "description": "watch changes to an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}": { + "get": { + "description": "watch changes to an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}": { + "get": { + "description": "watch changes to an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/zookeepersetoptions": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/zookeepersets": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/zookeepersetoptions": { + "get": { + "description": "list or watch objects of kind ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/zookeepersets": { + "get": { + "description": "list or watch objects of kind ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo" + ], + "operationId": "getComputeStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + } + } + } + }, + "/apis/compute.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "getComputeStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + } + } + } + }, + "/apis/compute.streamnative.io/v1alpha1/flinkdeployments": { + "get": { + "description": "list or watch objects of kind FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments": { + "get": { + "description": "list or watch objects of kind FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "post": { + "description": "create a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}": { + "get": { + "description": "read the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "put": { + "description": "replace the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified FlinkDeployment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status": { + "get": { + "description": "read status of the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "put": { + "description": "replace status of the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified FlinkDeployment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces": { + "get": { + "description": "list or watch objects of kind Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "post": { + "description": "create a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete collection of Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}": { + "get": { + "description": "read the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "put": { + "description": "replace the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update the specified Workspace", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status": { + "get": { + "description": "read status of the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "put": { + "description": "replace status of the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "post": { + "description": "create status of a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "description": "delete status of a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified Workspace", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + }, + "x-codegen-request-body-name": "body" + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/flinkdeployments": { + "get": { + "description": "watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments": { + "get": { + "description": "watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}": { + "get": { + "description": "watch changes to an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces": { + "get": { + "description": "watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}": { + "get": { + "description": "watch changes to an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/workspaces": { + "get": { + "description": "watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/workspaces": { + "get": { + "description": "list or watch objects of kind Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/version/": { + "get": { + "description": "get the code version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "version" + ], + "operationId": "getCodeVersion", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/version.Info" + } + } + } + } + }, + "/apis/{group}/{version}": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "The custom resource's group name", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The custom resource's version", + "type": "string" + } + ], + "get": { + "operationId": "getCustomObjectsAPIResources", + "description": "get available resources", + "tags": [ + "custom_objects" + ], + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/{group}/{version}/{plural}#\u200e": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "name": "group", + "in": "path", + "required": true, + "description": "The custom resource's group name", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The custom resource's version", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "The custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + } + ], + "get": { + "operationId": "listCustomObjectForAllNamespaces", + "description": "list or watch namespace scoped custom objects", + "tags": [ + "custom_objects" + ], + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/json;stream=watch" + ], + "schemes": [ + "https" + ], + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "name": "watch", + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/apis/{group}/{version}/{plural}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "name": "group", + "in": "path", + "required": true, + "description": "The custom resource's group name", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The custom resource's version", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "The custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + } + ], + "get": { + "operationId": "listClusterCustomObject", + "description": "list or watch cluster scoped custom objects", + "tags": [ + "custom_objects" + ], + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/json;stream=watch" + ], + "schemes": [ + "https" + ], + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "name": "watch", + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "operationId": "createClusterCustomObject", + "description": "Creates a cluster scoped Custom object", + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "description": "The JSON schema of the Resource to create.", + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "operationId": "deleteCollectionClusterCustomObject", + "description": "Delete collection of cluster scoped custom objects", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "name": "gracePeriodSeconds", + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query" + }, + { + "name": "orphanDependents", + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query" + }, + { + "name": "propagationPolicy", + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "in": "query" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/{group}/{version}/namespaces/{namespace}/{plural}": { + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "name": "group", + "in": "path", + "required": true, + "description": "The custom resource's group name", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The custom resource's version", + "type": "string" + }, + { + "name": "namespace", + "in": "path", + "required": true, + "description": "The custom resource's namespace", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "The custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + } + ], + "get": { + "operationId": "listNamespacedCustomObject", + "description": "list or watch namespace scoped custom objects", + "tags": [ + "custom_objects" + ], + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/json;stream=watch" + ], + "schemes": [ + "https" + ], + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "name": "resourceVersion", + "in": "query" + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "name": "watch", + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "post": { + "operationId": "createNamespacedCustomObject", + "description": "Creates a namespace scoped Custom object", + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "description": "The JSON schema of the Resource to create.", + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "delete": { + "operationId": "deleteCollectionNamespacedCustomObject", + "description": "Delete collection of namespace scoped custom objects", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "name": "gracePeriodSeconds", + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query" + }, + { + "name": "orphanDependents", + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query" + }, + { + "name": "propagationPolicy", + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "in": "query" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/{group}/{version}/{plural}/{name}": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "the custom resource's group", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "the custom resource's version", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "the custom object's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "description": "the custom object's name", + "type": "string" + } + ], + "get": { + "operationId": "getClusterCustomObject", + "description": "Returns a cluster scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "responses": { + "200": { + "description": "A single Resource", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "operationId": "deleteClusterCustomObject", + "description": "Deletes the specified cluster scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "name": "gracePeriodSeconds", + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query" + }, + { + "name": "orphanDependents", + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query" + }, + { + "name": "propagationPolicy", + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "in": "query" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "operationId": "patchClusterCustomObject", + "description": "patch the specified cluster scoped custom object", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "description": "The JSON schema of the Resource to patch.", + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "operationId": "replaceClusterCustomObject", + "description": "replace the specified cluster scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "description": "The JSON schema of the Resource to replace.", + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/{group}/{version}/{plural}/{name}/status": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "the custom resource's group", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "the custom resource's version", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "the custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "description": "the custom object's name", + "type": "string" + } + ], + "get": { + "description": "read status of the specified cluster scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "getClusterCustomObjectStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace status of the cluster scoped specified custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "replaceClusterCustomObjectStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "201": { + "description": "Created", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified cluster scoped custom object", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "patchClusterCustomObjectStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "The JSON schema of the Resource to patch.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/{group}/{version}/{plural}/{name}/scale": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "the custom resource's group", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "the custom resource's version", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "the custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "description": "the custom object's name", + "type": "string" + } + ], + "get": { + "description": "read scale of the specified custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "getClusterCustomObjectScale", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace scale of the specified cluster scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "replaceClusterCustomObjectScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "201": { + "description": "Created", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update scale of the specified cluster scoped custom object", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "patchClusterCustomObjectScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "The JSON schema of the Resource to patch.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "the custom resource's group", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "the custom resource's version", + "type": "string" + }, + { + "name": "namespace", + "in": "path", + "required": true, + "description": "The custom resource's namespace", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "the custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "description": "the custom object's name", + "type": "string" + } + ], + "get": { + "operationId": "getNamespacedCustomObject", + "description": "Returns a namespace scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "responses": { + "200": { + "description": "A single Resource", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "delete": { + "operationId": "deleteNamespacedCustomObject", + "description": "Deletes the specified namespace scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "name": "gracePeriodSeconds", + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query" + }, + { + "name": "orphanDependents", + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query" + }, + { + "name": "propagationPolicy", + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.", + "in": "query" + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "operationId": "patchNamespacedCustomObject", + "description": "patch the specified namespace scoped custom object", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "description": "The JSON schema of the Resource to patch.", + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "operationId": "replaceNamespacedCustomObject", + "description": "replace the specified namespace scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "description": "The JSON schema of the Resource to replace.", + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "the custom resource's group", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "the custom resource's version", + "type": "string" + }, + { + "name": "namespace", + "in": "path", + "required": true, + "description": "The custom resource's namespace", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "the custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "description": "the custom object's name", + "type": "string" + } + ], + "get": { + "description": "read status of the specified namespace scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "getNamespacedCustomObjectStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace status of the specified namespace scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "replaceNamespacedCustomObjectStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "201": { + "description": "Created", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update status of the specified namespace scoped custom object", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "patchNamespacedCustomObjectStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "The JSON schema of the Resource to patch.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "the custom resource's group", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "the custom resource's version", + "type": "string" + }, + { + "name": "namespace", + "in": "path", + "required": true, + "description": "The custom resource's namespace", + "type": "string" + }, + { + "name": "plural", + "in": "path", + "required": true, + "description": "the custom resource's plural name. For TPRs this would be lowercase plural kind.", + "type": "string" + }, + { + "name": "name", + "in": "path", + "required": true, + "description": "the custom object's name", + "type": "string" + } + ], + "get": { + "description": "read scale of the specified namespace scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "getNamespacedCustomObjectScale", + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + } + }, + "put": { + "description": "replace scale of the specified namespace scoped custom object", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "replaceNamespacedCustomObjectScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "201": { + "description": "Created", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + }, + "patch": { + "description": "partially update scale of the specified namespace scoped custom object", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "custom_objects" + ], + "operationId": "patchNamespacedCustomObjectScale", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "description": "The JSON schema of the Resource to patch.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional)", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "x-codegen-request-body-name": "body" + } + } + }, + "definitions": { + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage": { + "type": "object", + "properties": { + "bucket": { + "description": "Bucket is required if you want to use cloud storage.", + "type": "string" + }, + "path": { + "description": "Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount": { + "description": "IamAccount", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "IamAccount", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "IamAccountList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountSpec": { + "description": "IamAccountSpec defines the desired state of IamAccount", + "type": "object", + "properties": { + "additionalCloudStorage": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage" + } + }, + "cloudStorage": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage" + }, + "disableIamRoleCreation": { + "type": "boolean" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.PoolMemberReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountStatus": { + "description": "IamAccountStatus defines the observed state of IamAccount", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Organization": { + "type": "object", + "required": [ + "displayName" + ], + "properties": { + "displayName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule": { + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "type": "object", + "required": [ + "verbs" + ], + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.RoleRef": { + "type": "object", + "required": [ + "kind", + "name", + "apiGroup" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview": { + "description": "SelfSubjectRbacReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SelfSubjectRbacReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewSpec": { + "description": "SelfSubjectRbacReviewSpec defines the desired state of SelfSubjectRulesReview", + "type": "object", + "properties": { + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewStatus": { + "description": "SelfSubjectRbacReviewStatus defines the observed state of SelfSubjectRulesReview", + "type": "object", + "properties": { + "userPrivileges": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview": { + "description": "SelfSubjectRulesReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SelfSubjectRulesReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec defines the desired state of SelfSubjectRulesReview", + "type": "object", + "properties": { + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewStatus": { + "description": "SelfSubjectRulesReviewStatus defines the observed state of SelfSubjectRulesReview", + "type": "object", + "required": [ + "resourceRules", + "incomplete" + ], + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": "string" + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview": { + "description": "SelfSubjectUserReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "SelfSubjectUserReviewSpec defines the desired state of SelfSubjectUserReview", + "type": "object" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SelfSubjectUserReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewStatus": { + "description": "SelfSubjectUserReviewStatus defines the observed state of SelfSubjectUserReview", + "type": "object", + "required": [ + "users" + ], + "properties": { + "users": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.UserRef" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview": { + "description": "SubjectRoleReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec holds information about the request being evaluated.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates the set of roles associated with a user or service account.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SubjectRoleReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewSpec": { + "type": "object", + "properties": { + "user": { + "description": "User is the user you're testing for.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewStatus": { + "type": "object", + "required": [ + "roles" + ], + "properties": { + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.RoleRef" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview": { + "description": "SubjectRulesReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "Spec holds information about the request being evaluated.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates the set of roles associated with a user or service account.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SubjectRulesReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewSpec": { + "type": "object", + "properties": { + "namespace": { + "type": "string" + }, + "user": { + "description": "User is the user you're testing for.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewStatus": { + "type": "object", + "required": [ + "resourceRules", + "incomplete" + ], + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": "string" + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.UserRef": { + "type": "object", + "required": [ + "kind", + "name", + "namespace", + "apiGroup", + "organization" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "organization": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Organization" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest": { + "description": "CustomerPortalRequest is a request for a Customer Portal session.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "CustomerPortalRequest", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestSpec": { + "description": "CustomerPortalRequestSpec represents the details of the request.", + "type": "object", + "properties": { + "returnURL": { + "description": "The default URL to redirect customers to when they click on the portal\u2019s link to return to your website.", + "type": "string" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestStatus": { + "description": "CustomerPortalRequestStatus defines the observed state of CustomerPortalRequest", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestStatus" + }, + "url": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem": { + "description": "OfferItem defines an offered product at a particular price.", + "type": "object", + "properties": { + "key": { + "description": "Key is the item key within the offer and subscription.", + "type": "string" + }, + "metadata": { + "description": "Metadata is an unstructured key value map stored with an item.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "price": { + "description": "Price is used to specify a custom price for a given product.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPrice" + }, + "priceRef": { + "description": "PriceRef is a reference to a price associated with a product. When changing an item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PriceReference" + }, + "quantity": { + "description": "Quantity for this item.", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPrice": { + "description": "OfferItemPrice is used to specify a custom price for a given product.", + "type": "object", + "properties": { + "currency": { + "description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.", + "type": "string" + }, + "product": { + "description": "Product is the Product object reference.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference" + }, + "recurring": { + "description": "The recurring components of a price such as `interval` and `interval_count`.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPriceRecurring" + }, + "tiers": { + "description": "Tiers are Stripes billing tiers like", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier" + }, + "x-kubernetes-list-type": "atomic" + }, + "tiersMode": { + "description": "TiersMode is the stripe tier mode", + "type": "string" + }, + "unitAmount": { + "description": "A quantity (or 0 for a free price) representing how much to charge.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPriceRecurring": { + "description": "OfferItemPriceRecurring specifies the recurring components of a price such as `interval` and `interval_count`.", + "type": "object", + "properties": { + "aggregateUsage": { + "type": "string" + }, + "interval": { + "description": "Specifies billing frequency. Either `day`, `week`, `month` or `year`.", + "type": "string" + }, + "intervalCount": { + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks).", + "type": "integer", + "format": "int64" + }, + "usageType": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferReference": { + "description": "OfferReference references an offer object.", + "type": "object", + "required": [ + "kind", + "name" + ], + "properties": { + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent": { + "description": "PaymentIntent is the Schema for the paymentintents API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PaymentIntent", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PaymentIntentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentSpec": { + "description": "PaymentIntentSpec defines the desired state of PaymentIntent", + "type": "object", + "properties": { + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePaymentIntent" + }, + "subscriptionName": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentStatus": { + "description": "PaymentIntentStatus defines the observed state of PaymentIntent", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PriceReference": { + "description": "PriceReference references a price within a Product object.", + "type": "object", + "properties": { + "key": { + "description": "Key is the price key within the product specification.", + "type": "string" + }, + "product": { + "description": "Product is the Product object reference.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer": { + "description": "PrivateOffer", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferSpec" + }, + "status": { + "description": "PrivateOfferStatus defines the observed state of PrivateOffer", + "type": "object" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PrivateOffer", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PrivateOfferList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferSpec": { + "description": "PrivateOfferSpec defines the desired state of PrivateOffer", + "type": "object", + "properties": { + "anchorDate": { + "description": "AnchorDate is a timestamp representing the first billing cycle end date. This will be used to anchor future billing periods to that date. For example, setting the anchor date for a subscription starting on Apr 1 to be Apr 12 will send the invoice for the subscription out on Apr 12 and the 12th of every following month for a monthly subscription. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "description": { + "type": "string" + }, + "duration": { + "description": "Duration indicates how long the subscription for this offer should last. The value must greater than 0", + "type": "string" + }, + "endDate": { + "description": "EndDate is a timestamp representing the planned end date of the subscription. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "once": { + "description": "One-time items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "recurring": { + "description": "Recurring items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "startDate": { + "description": "StartDate is a timestamp representing the planned start date of the subscription. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "stripe": { + "type": "object" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product": { + "description": "Product is the Schema for the products API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "Product", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "ProductList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductPrice": { + "description": "ProductPrice specifies a price for a product.", + "type": "object", + "properties": { + "key": { + "description": "Key is the price key.", + "type": "string" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceSpec" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference": { + "description": "ProductReference references a Product object.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductSpec": { + "description": "ProductSpec defines the desired state of Product", + "type": "object", + "properties": { + "description": { + "description": "Description is a product description", + "type": "string" + }, + "name": { + "description": "Name is the product name.", + "type": "string" + }, + "prices": { + "description": "Prices associated with the product.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductPrice" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeProductSpec" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProductSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatus": { + "description": "ProductStatus defines the observed state of Product", + "type": "object", + "properties": { + "prices": { + "description": "The prices as stored in Stripe.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatusPrice" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "stripeID": { + "description": "The unique identifier for the Stripe product.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatusPrice": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "stripeID": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer": { + "description": "PublicOffer is the Schema for the publicoffers API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferSpec" + }, + "status": { + "description": "PublicOfferStatus defines the observed state of PublicOffer", + "type": "object" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PublicOffer", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PublicOfferList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferSpec": { + "description": "PublicOfferSpec defines the desired state of PublicOffer", + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "once": { + "description": "One-time items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "recurring": { + "description": "Recurring items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "stripe": { + "type": "object" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent": { + "description": "SetupIntent is the Schema for the setupintents API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SetupIntent", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SetupIntentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentReference": { + "description": "SetupIntentReference represents a SetupIntent Reference.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentSpec": { + "description": "SetupIntentSpec defines the desired state of SetupIntent", + "type": "object", + "properties": { + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSetupIntent" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentStatus": { + "description": "SetupIntentStatus defines the observed state of SetupIntent", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conidtions", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestSpec": { + "type": "object", + "properties": { + "configuration": { + "description": "Configuration is the ID of the portal configuration to use.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestStatus": { + "type": "object", + "properties": { + "id": { + "description": "ID is the Stripe portal ID.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePaymentIntent": { + "type": "object", + "properties": { + "clientSecret": { + "type": "string" + }, + "id": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceRecurrence": { + "description": "StripePriceRecurrence defines how a price's billing recurs", + "type": "object", + "properties": { + "aggregateUsage": { + "type": "string" + }, + "interval": { + "description": "Interval is how often the price recurs", + "type": "string" + }, + "intervalCount": { + "description": "The number of intervals. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks).", + "type": "integer", + "format": "int64" + }, + "usageType": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceSpec": { + "type": "object", + "properties": { + "active": { + "description": "Active indicates the price is active on the product", + "type": "boolean" + }, + "currency": { + "description": "Currency is the required three-letter ISO currency code The codes below were generated from https://stripe.com/docs/currencies", + "type": "string" + }, + "name": { + "description": "Name to be displayed in the Stripe dashboard, hidden from customers", + "type": "string" + }, + "recurring": { + "description": "Recurring defines the price's recurrence. The type of \"one_time\" is assumed if nil, otherwise type is \"recurring\"", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceRecurrence" + }, + "tiers": { + "description": "Tiers are Stripes billing tiers like", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier" + }, + "x-kubernetes-list-type": "atomic" + }, + "tiersMode": { + "description": "TiersMode is the stripe tier mode", + "type": "string" + }, + "unitAmount": { + "description": "UnitAmount in dollars. If present, billing_scheme is assumed to be per_unit", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeProductSpec": { + "type": "object", + "properties": { + "defaultPriceKey": { + "description": "DefaultPriceKey sets the default price for the product.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSetupIntent": { + "description": "StripeSetupIntent holds Stripe information about a SetupIntent", + "type": "object", + "properties": { + "clientSecret": { + "description": "The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.", + "type": "string" + }, + "id": { + "description": "The unique identifier for the SetupIntent.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSubscriptionSpec": { + "type": "object", + "properties": { + "collectionMethod": { + "description": "CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice", + "type": "string" + }, + "daysUntilDue": { + "description": "DaysUntilDue is applicable when collection method is send_invoice", + "type": "integer", + "format": "int64" + }, + "id": { + "description": "ID is the stripe subscription ID.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription": { + "description": "Subscription is the Schema for the subscriptions API This object represents the goal of having a subscription. Creators: self-registration controller, suger webhook Readers: org admins", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "Subscription", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent": { + "description": "SubscriptionIntent is the Schema for the subscriptionintents API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SubscriptionIntent", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SubscriptionIntentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentSpec": { + "description": "SubscriptionIntentSpec defines the desired state of SubscriptionIntent", + "type": "object", + "properties": { + "offerRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferReference" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionIntentSpec" + }, + "type": { + "description": "The type of the subscription intent. Validate values: stripe, suger Default to stripe.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentStatus": { + "description": "SubscriptionIntentStatus defines the observed state of SubscriptionIntent", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "paymentIntentName": { + "type": "string" + }, + "setupIntentName": { + "type": "string" + }, + "subscriptionName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem": { + "description": "SubscriptionItem defines a product within a subscription.", + "type": "object", + "properties": { + "key": { + "description": "Key is the item key within the subscription.", + "type": "string" + }, + "metadata": { + "description": "Metadata is an unstructured key value map stored with an item.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "product": { + "description": "Product is the Product object reference.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference" + }, + "quantity": { + "description": "Quantity for this item.", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SubscriptionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionReference": { + "description": "SubscriptionReference references a Subscription object.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionSpec": { + "description": "SubscriptionSpec defines the desired state of Subscription", + "type": "object", + "properties": { + "anchorDate": { + "description": "AnchorDate is a timestamp representing the first billing cycle end date. It is represented by seconds from the epoch on the Stripe side.", + "type": "string", + "format": "date-time" + }, + "cloudType": { + "description": "CloudType will validate resources like the consumption unit product are restricted to the correct cloud provider", + "type": "string" + }, + "description": { + "type": "string" + }, + "endDate": { + "description": "EndDate is a timestamp representing the date when the subscription will be ended. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "endingBalanceCents": { + "description": "Ending balance for a subscription, this value is asynchrnously updated by billing-reporter and directly pulled from stripe's invoice object [1]. Negative at this value means that there are outstanding discount credits left for the customer. Nil implies that billing reporter hasn't run since creation and yet to set the value. [1] https://docs.stripe.com/api/invoices/object#invoice_object-ending_balance", + "type": "integer", + "format": "int64" + }, + "once": { + "description": "One-time items.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "parentSubscription": { + "description": "Reference to the parent subscription", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionReference" + }, + "recurring": { + "description": "Recurring items.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "startDate": { + "description": "StartDate is a timestamp representing the start date of the subscription. It is represented in RFC3339 form and is in UTC.", + "type": "string", + "format": "date-time" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSubscriptionSpec" + }, + "suger": { + "description": "Suger defines the metadata for subscriptions from suger", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionSpec" + }, + "type": { + "description": "The type of the subscription. Validate values: stripe, suger Default to stripe.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatus": { + "description": "SubscriptionStatus defines the observed state of Subscription", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "items": { + "description": "the status of the subscription is designed to support billing agents, so it provides product and subscription items.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatusSubscriptionItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "pendingSetupIntent": { + "description": "PendingSetupIntent expresses the intention to establish a payment method for future payments. A subscription a usually still active in this case.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatusSubscriptionItem": { + "type": "object", + "properties": { + "key": { + "description": "Key is the item key within the subscription.", + "type": "string" + }, + "product": { + "description": "Product is the Product object reference as a qualified name.", + "type": "string" + }, + "stripeID": { + "description": "The unique identifier for the Stripe subscription item.", + "type": "string" + }, + "sugerID": { + "description": "The unique identifier for the Suger entitlement item.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview": { + "description": "SugerEntitlementReview is a request to find the organization with entitlement ID.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SugerEntitlementReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewSpec": { + "type": "object", + "properties": { + "entitlementID": { + "description": "EntitlementID is the ID of the entitlement", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewStatus": { + "type": "object", + "properties": { + "buyerID": { + "description": "BuyerID is the ID of buyer associated with organization The first one will be returned when there are more than one are found.", + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "organization": { + "description": "Organization is the name of the organization matching the entitlement ID The first one will be returned when there are more than one are found.", + "type": "string" + }, + "partner": { + "description": "Partner is the partner associated with organization", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProduct": { + "type": "object", + "required": [ + "dimensionKey" + ], + "properties": { + "dimensionKey": { + "description": "DimensionKey is the metering dimension of the Suger product.", + "type": "string" + }, + "productID": { + "description": "ProductID is the suger product id.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProductSpec": { + "type": "object", + "properties": { + "dimensionKey": { + "description": "DimensionKey is the metering dimension of the Suger product. Deprecated: use Products", + "type": "string" + }, + "productID": { + "description": "ProductID is the suger product id. Deprecated: use Products", + "type": "string" + }, + "products": { + "description": "Products is the list of suger products.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProduct" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionIntentSpec": { + "type": "object", + "properties": { + "entitlementID": { + "description": "EntitlementID is the suger entitlement ID. An entitlement is a contract that one buyer has purchased your product in the marketplace.", + "type": "string" + }, + "partner": { + "description": "The partner code of the entitlement.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionSpec": { + "type": "object", + "required": [ + "entitlementID" + ], + "properties": { + "buyerID": { + "description": "BuyerID is the Suger internal ID of the buyer of the entitlement", + "type": "string" + }, + "entitlementID": { + "description": "ID is the Suger entitlement ID. Entitlement is the contract that one buyer has purchased your product in the marketplace.", + "type": "string" + }, + "partner": { + "description": "Partner is the partner of the entitlement", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock": { + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "TestClock", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "TestClockList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockSpec": { + "type": "object", + "required": [ + "frozenTime" + ], + "properties": { + "frozenTime": { + "description": "The current time of the clock.", + "type": "string", + "format": "date-time" + }, + "name": { + "description": "The clock display name.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "stripeID": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier": { + "type": "object", + "properties": { + "flatAmount": { + "description": "FlatAmount is the flat billing amount for an entire tier, regardless of the number of units in the tier, in dollars.", + "type": "string" + }, + "unitAmount": { + "description": "UnitAmount is the per-unit billing amount for each individual unit for which this tier applies, in dollars.", + "type": "string" + }, + "upTo": { + "description": "UpTo specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey": { + "description": "APIKey", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeySpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "APIKey", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "APIKeyList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeySpec": { + "description": "APIKeySpec defines the desired state of APIKey", + "type": "object", + "properties": { + "description": { + "description": "Description is a user defined description of the key", + "type": "string" + }, + "encryptionKey": { + "description": "EncryptionKey is a public key to encrypt the API Key token. Please provide an RSA key with modulus length of at least 2048 bits. See: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey#rsa_key_pair_generation See: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey#subjectpublickeyinfo_export", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptionKey" + }, + "expirationTime": { + "description": "Expiration is a duration (as a golang duration string) that defines how long this API key is valid for. This can only be set on initial creation and not updated later", + "type": "string", + "format": "date-time" + }, + "instanceName": { + "description": "InstanceName is the name of the instance this API key is for", + "type": "string" + }, + "revoke": { + "description": "Revoke is a boolean that defines if the token of this API key should be revoked.", + "type": "boolean" + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the service account this API key is for", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyStatus": { + "description": "APIKeyStatus defines the observed state of ServiceAccount", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed service account conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "encryptedToken": { + "description": "Token is the encrypted security token issued for the key.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptedToken" + }, + "expiresAt": { + "description": "ExpiresAt is a timestamp of when the key expires", + "type": "string", + "format": "date-time" + }, + "issuedAt": { + "description": "IssuedAt is a timestamp of when the key was issued, stored as an epoch in seconds", + "type": "string", + "format": "date-time" + }, + "keyId": { + "description": "KeyId is a generated field that is a uid for the token", + "type": "string" + }, + "revokedAt": { + "description": "ExpiresAt is a timestamp of when the key was revoked, it triggers revocation action", + "type": "string", + "format": "date-time" + }, + "token": { + "description": "Token is the plaintext security token issued for the key.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AWSCloudConnection": { + "type": "object", + "required": [ + "accountId" + ], + "properties": { + "accountId": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AuditLog": { + "type": "object", + "required": [ + "categories" + ], + "properties": { + "categories": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "set" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy": { + "description": "AutoScalingPolicy defines the min/max replicas for component is autoscaling enabled.", + "type": "object", + "required": [ + "maxReplicas" + ], + "properties": { + "maxReplicas": { + "type": "integer", + "format": "int32" + }, + "minReplicas": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AwsPoolMemberSpec": { + "type": "object", + "required": [ + "region", + "clusterName" + ], + "properties": { + "accessKeyID": { + "description": "AWS Access key ID", + "type": "string" + }, + "adminRoleARN": { + "description": "AdminRoleARN is the admin role to assume (or empty to use the manager's identity).", + "type": "string" + }, + "clusterName": { + "description": "ClusterName is the EKS cluster name.", + "type": "string" + }, + "permissionBoundaryARN": { + "description": "PermissionBoundaryARN refers to the permission boundary to assign to IAM roles.", + "type": "string" + }, + "region": { + "description": "Region is the AWS region of the cluster.", + "type": "string" + }, + "secretAccessKey": { + "description": "AWS Secret Access Key", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzureConnection": { + "type": "object", + "required": [ + "subscriptionId", + "tenantId", + "clientId", + "supportClientId" + ], + "properties": { + "clientId": { + "type": "string" + }, + "subscriptionId": { + "type": "string" + }, + "supportClientId": { + "type": "string" + }, + "tenantId": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzurePoolMemberSpec": { + "type": "object", + "required": [ + "clusterName", + "resourceGroup", + "subscriptionID", + "location", + "clientID", + "tenantID" + ], + "properties": { + "clientID": { + "description": "ClientID is the Azure client ID of which the GSA can impersonate.", + "type": "string" + }, + "clusterName": { + "description": "ClusterName is the AKS cluster name.", + "type": "string" + }, + "location": { + "description": "Location is the Azure location of the cluster.", + "type": "string" + }, + "resourceGroup": { + "description": "ResourceGroup is the Azure resource group of the cluster.", + "type": "string" + }, + "subscriptionID": { + "description": "SubscriptionID is the Azure subscription ID of the cluster.", + "type": "string" + }, + "tenantID": { + "description": "TenantID is the Azure tenant ID of the client.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BillingAccountSpec": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeper": { + "type": "object", + "required": [ + "replicas" + ], + "properties": { + "autoScalingPolicy": { + "description": "AutoScalingPolicy configure autoscaling for bookkeeper", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "replicas": { + "description": "Replicas is the expected size of the bookkeeper cluster.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperNodeResourceSpec" + }, + "resources": { + "description": "CPU and memory resources", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookkeeperNodeResource" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperNodeResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type, take lower precedence over Resources", + "type": "string" + }, + "storageSize": { + "description": "StorageSize defines the size of the storage", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperSetReference": { + "description": "BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookkeeperNodeResource": { + "description": "Represents resource spec for bookie nodes", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "directPercentage": { + "description": "Percentage of direct memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "heapPercentage": { + "description": "Percentage of heap memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "journalDisk": { + "description": "JournalDisk size. Set to zero equivalent to use default value", + "type": "string" + }, + "ledgerDisk": { + "description": "LedgerDisk size. Set to zero equivalent to use default value", + "type": "string" + }, + "memory": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Broker": { + "type": "object", + "required": [ + "replicas" + ], + "properties": { + "autoScalingPolicy": { + "description": "AutoScalingPolicy configure autoscaling for broker", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "replicas": { + "description": "Replicas is the expected size of the broker cluster.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster Deprecated: use `Resources` instead", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BrokerNodeResourceSpec" + }, + "resources": { + "description": "Represents broker resource spec.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DefaultNodeResource" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BrokerNodeResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type, take lower precedence over Resources", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Chain": { + "description": "Chain specifies a named chain for a role definition array.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "roleChain": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection": { + "description": "CloudConnection represents a connection to the customer's cloud environment Currently, this object *only* is used to serve as an inventory of customer connections and make sure that they remain valid. In the future, we might consider this object to be used by other objects, but existing APIs already take care of that\n\nOther internal options are defined in the CloudConnectionBackendConfig type which is the \"companion\" CRD to this user facing API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudConnection", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudConnectionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionSpec": { + "description": "CloudConnectionSpec defines the desired state of CloudConnection", + "type": "object", + "required": [ + "type" + ], + "properties": { + "aws": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AWSCloudConnection" + }, + "azure": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzureConnection" + }, + "gcp": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCPCloudConnection" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionStatus": { + "description": "CloudConnectionStatus defines the observed state of CloudConnection", + "type": "object", + "properties": { + "availableLocations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RegionInfo" + }, + "x-kubernetes-list-map-keys": [ + "region" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "region", + "x-kubernetes-patch-strategy": "merge" + }, + "awsPolicyVersion": { + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment": { + "description": "CloudEnvironment represents the infrastructure environment for running pulsar clusters, consisting of Kubernetes cluster and set of applications", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudEnvironment", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudEnvironmentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentSpec": { + "description": "CloudEnvironmentSpec defines the desired state of CloudEnvironment", + "type": "object", + "properties": { + "cloudConnectionName": { + "description": "CloudConnectionName references to the CloudConnection object", + "type": "string" + }, + "defaultGateway": { + "description": "DefaultGateway is the default endpoint type to access pulsar clusters on this CloudEnvironment Users can declare new PulsarGateway for different endpoint type If not specified, public pulsar cluster endpoint will be used", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Gateway" + }, + "dns": { + "description": "DNS defines the DNS domain and how should the DNS zone be managed. The DNS zone will be managed by SN by default", + "x-kubernetes-map-type": "atomic", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DNS" + }, + "network": { + "description": "Network defines how to provision the network infrastructure A dedicated VPC with predefined CIDRs will be provisioned by default.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Network" + }, + "region": { + "description": "Region defines in which region will resources be deployed", + "type": "string" + }, + "zone": { + "description": "Zone defines in which availability zone will resources be deployed If specified, the cloud environment will be zonal. Default to unspecified and regional cloud environment", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentStatus": { + "description": "CloudEnvironmentStatus defines the observed state of CloudEnvironment", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions contains details for the current state of underlying resource", + "type": "array", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "defaultGateway": { + "description": "DefaultGateway tell the status of the default pulsar gateway", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GatewayStatus" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole": { + "description": "ClusterRole", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRole", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding": { + "description": "ClusterRoleBinding", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRoleBinding", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRoleBindingList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingSpec": { + "description": "ClusterRoleBindingSpec defines the desired state of ClusterRoleBinding", + "type": "object", + "required": [ + "subjects", + "roleRef" + ], + "properties": { + "roleRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef" + }, + "subjects": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingStatus": { + "description": "ClusterRoleBindingStatus defines the observed state of ClusterRoleBinding", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRoleList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleSpec": { + "description": "ClusterRoleSpec defines the desired state of ClusterRole", + "type": "object", + "properties": { + "permissions": { + "description": "Permissions Designed for general permission format\n SERVICE.RESOURCE.VERB", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleStatus": { + "description": "ClusterRoleStatus defines the observed state of ClusterRole", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failedClusters": { + "description": "FailedClusters is an array of clusters which failed to apply the ClusterRole resources.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup": { + "description": "ConditionGroup Deprecated", + "type": "object", + "required": [ + "conditions" + ], + "properties": { + "conditionGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup" + } + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingCondition" + } + }, + "relation": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Config": { + "type": "object", + "properties": { + "auditLog": { + "description": "AuditLog controls the custom config of audit log.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AuditLog" + }, + "custom": { + "description": "Custom accepts custom configurations.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "functionEnabled": { + "description": "FunctionEnabled controls whether function is enabled.", + "type": "boolean" + }, + "lakehouseStorage": { + "description": "LakehouseStorage controls the lakehouse storage config.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.LakehouseStorageConfig" + }, + "protocols": { + "description": "Protocols controls the protocols enabled in brokers.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ProtocolsConfig" + }, + "transactionEnabled": { + "description": "TransactionEnabled controls whether transaction is enabled.", + "type": "boolean" + }, + "websocketEnabled": { + "description": "WebsocketEnabled controls whether websocket is enabled.", + "type": "boolean" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DNS": { + "description": "DNS defines the DNS domain and how should the DNS zone be managed. ID and Name must be specified at the same time", + "type": "object", + "properties": { + "id": { + "description": "ID is the identifier of a DNS Zone. It can be AWS zone id, GCP zone name, and Azure zone id If ID is specified, an existing zone will be used. Otherwise, a new DNS zone will be created and managed by SN.", + "type": "string" + }, + "name": { + "description": "Name is the dns domain name. It can be AWS zone name, GCP dns name and Azure zone name.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DefaultNodeResource": { + "description": "Represents resource spec for nodes", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "directPercentage": { + "description": "Percentage of direct memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "heapPercentage": { + "description": "Percentage of heap memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "memory": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "tls": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DomainTLS" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DomainTLS": { + "type": "object", + "properties": { + "certificateName": { + "description": "CertificateName specifies the certificate object name to use.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptedToken": { + "description": "EncryptedToken is token that is encrypted using an encryption key.", + "type": "object", + "properties": { + "jwe": { + "description": "JWE is the token as a JSON Web Encryption (JWE) message. For RSA public keys, the key encryption algorithm is RSA-OAEP, and the content encryption algorithm is AES GCM.", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptionKey": { + "description": "EncryptionKey specifies a public key for encryption purposes. Either a PEM or JWK must be specified.", + "type": "object", + "properties": { + "jwk": { + "description": "JWK is a JWK-encoded public key.", + "type": "string" + }, + "pem": { + "description": "PEM is a PEM-encoded public key in PKIX, ASN.1 DER form (\"spki\" format).", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EndpointAccess": { + "type": "object", + "properties": { + "gateway": { + "description": "Gateway is the name of the PulsarGateway to use for the endpoint. The default gateway of the pool member will be used if not specified.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecConfig": { + "description": "ExecConfig specifies a command to provide client credentials. The command is exec'd and outputs structured stdout holding credentials.\n\nSee the client.authentiction.k8s.io API group for specifications of the exact input and output format", + "type": "object", + "required": [ + "command" + ], + "properties": { + "apiVersion": { + "description": "Preferred input version of the ExecInfo. The returned ExecCredentials MUST use the same encoding version as the input.", + "type": "string" + }, + "args": { + "description": "Arguments to pass to the command when executing it.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Command to execute.", + "type": "string" + }, + "env": { + "description": "Env defines additional environment variables to expose to the process. These are unioned with the host's environment, as well as variables client-go uses to pass argument to the plugin.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecEnvVar" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecEnvVar": { + "description": "ExecEnvVar is used for setting environment variables when executing an exec-based credential plugin.", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster": { + "type": "object", + "required": [ + "name", + "namespace", + "reason" + ], + "properties": { + "name": { + "description": "Name is the Cluster's name", + "type": "string" + }, + "namespace": { + "description": "Namespace is the Cluster's namespace", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedClusterRole": { + "type": "object", + "required": [ + "name", + "reason" + ], + "properties": { + "name": { + "description": "Name is the ClusterRole's name", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRole": { + "type": "object", + "required": [ + "name", + "namespace", + "reason" + ], + "properties": { + "name": { + "description": "Name is the Role's name", + "type": "string" + }, + "namespace": { + "description": "Namespace is the Role's namespace", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRoleBinding": { + "type": "object", + "required": [ + "name", + "namespace", + "reason" + ], + "properties": { + "name": { + "description": "Name is the RoleBinding's name", + "type": "string" + }, + "namespace": { + "description": "Namespace is the RoleBinding's namespace", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCPCloudConnection": { + "type": "object", + "required": [ + "projectId" + ], + "properties": { + "projectId": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudOrganizationSpec": { + "type": "object", + "required": [ + "project" + ], + "properties": { + "project": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolMemberSpec": { + "type": "object", + "required": [ + "location" + ], + "properties": { + "adminServiceAccount": { + "description": "AdminServiceAccount is the service account to be impersonated, or leave it empty to call the API without impersonation.", + "type": "string" + }, + "clusterName": { + "description": "ClusterName is the GKE cluster name.", + "type": "string" + }, + "initialNodeCount": { + "description": "Deprecated", + "type": "integer", + "format": "int32" + }, + "location": { + "type": "string" + }, + "machineType": { + "description": "Deprecated", + "type": "string" + }, + "maxNodeCount": { + "description": "Deprecated", + "type": "integer", + "format": "int32" + }, + "project": { + "description": "Project is the Google project containing the GKE cluster.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Gateway": { + "description": "Gateway defines the access of pulsar cluster endpoint", + "type": "object", + "properties": { + "access": { + "description": "Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public.", + "type": "string" + }, + "privateService": { + "description": "PrivateService is the configuration of the private endpoint service, only can be configured when the access type is private.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GatewayStatus": { + "type": "object", + "properties": { + "privateServiceIds": { + "description": "PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GenericPoolMemberSpec": { + "type": "object", + "required": [ + "location" + ], + "properties": { + "endpoint": { + "description": "Endpoint is *either* a full URL, or a hostname/port to point to the master", + "type": "string" + }, + "location": { + "description": "Location is the location of the cluster.", + "type": "string" + }, + "masterAuth": { + "description": "MasterAuth is the authentication information for accessing the master endpoint.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MasterAuth" + }, + "tlsServerName": { + "description": "TLSServerName is the SNI header name to set, overridding the default. This is just the hostname and no port", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool": { + "description": "IdentityPool", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "IdentityPool", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "IdentityPoolList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolSpec": { + "description": "IdentityPoolSpec defines the desired state of IdentityPool", + "type": "object", + "required": [ + "description", + "providerName", + "expression", + "authType" + ], + "properties": { + "authType": { + "type": "string" + }, + "description": { + "type": "string" + }, + "expression": { + "type": "string" + }, + "providerName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolStatus": { + "description": "IdentityPoolStatus defines the desired state of IdentityPool", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.InstalledCSV": { + "type": "object", + "required": [ + "name", + "phase" + ], + "properties": { + "name": { + "type": "string" + }, + "phase": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Invitation": { + "type": "object", + "required": [ + "expiration", + "decision" + ], + "properties": { + "decision": { + "description": "Decision indicates the user's response to the invitation", + "type": "string" + }, + "expiration": { + "description": "Expiration indicates when the invitation expires", + "type": "string", + "format": "date-time" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.LakehouseStorageConfig": { + "type": "object", + "required": [ + "catalogCredentials", + "catalogConnectionUrl", + "catalogWarehouse" + ], + "properties": { + "catalogConnectionUrl": { + "type": "string" + }, + "catalogCredentials": { + "description": "todo: maybe we need to support mount secrets as the catalog credentials?", + "type": "string" + }, + "catalogType": { + "type": "string" + }, + "catalogWarehouse": { + "type": "string" + }, + "lakehouseType": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MaintenanceWindow": { + "type": "object", + "required": [ + "window", + "recurrence" + ], + "properties": { + "recurrence": { + "description": "Recurrence define the maintenance execution cycle, 0~6, to express Monday to Sunday", + "type": "string" + }, + "window": { + "description": "Window define the maintenance execution window", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Window" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MasterAuth": { + "type": "object", + "properties": { + "clientCertificate": { + "description": "ClientCertificate is base64-encoded public certificate used by clients to authenticate to the cluster endpoint.", + "type": "string" + }, + "clientKey": { + "description": "ClientKey is base64-encoded private key used by clients to authenticate to the cluster endpoint.", + "type": "string" + }, + "clusterCaCertificate": { + "description": "ClusterCaCertificate is base64-encoded public certificate that is the root of trust for the cluster.", + "type": "string" + }, + "exec": { + "description": "Exec specifies a custom exec-based authentication plugin for the kubernetes cluster.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecConfig" + }, + "password": { + "description": "Password is the password to use for HTTP basic authentication to the master endpoint.", + "type": "string" + }, + "username": { + "description": "Username is the username to use for HTTP basic authentication to the master endpoint.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Network": { + "description": "Network defines how to provision the network infrastructure CIDR and ID cannot be specified at the same time. When ID is specified, the existing VPC will be used. Otherwise, a new VPC with the specified or default CIDR will be created", + "type": "object", + "properties": { + "cidr": { + "description": "CIDR determines the CIDR of the VPC to create if specified", + "type": "string" + }, + "id": { + "description": "ID is the id or the name of an existing VPC when specified. It's vpc id in AWS, vpc network name in GCP and vnet name in Azure", + "type": "string" + }, + "subnetCIDR": { + "description": "SubnetCIDR determines the CIDR of the subnet to create if specified required for Azure", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OAuth2Config": { + "description": "OAuth2Config define oauth2 config of PulsarInstance", + "type": "object", + "properties": { + "tokenLifetimeSeconds": { + "description": "TokenLifetimeSeconds access token lifetime (in seconds) for the API. Default value is 86,400 seconds (24 hours). Maximum value is 2,592,000 seconds (30 days) Document link: https://auth0.com/docs/secure/tokens/access-tokens/update-access-token-lifetime", + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider": { + "description": "OIDCProvider", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "OIDCProvider", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "OIDCProviderList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderSpec": { + "description": "OIDCProviderSpec defines the desired state of OIDCProvider", + "type": "object", + "required": [ + "description", + "discoveryUrl" + ], + "properties": { + "description": { + "type": "string" + }, + "discoveryUrl": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderStatus": { + "description": "OIDCProviderStatus defines the observed state of OIDCProvider", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization": { + "description": "Organization", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Organization", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "OrganizationList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSpec": { + "description": "OrganizationSpec defines the desired state of Organization", + "type": "object", + "properties": { + "awsMarketplaceToken": { + "type": "string" + }, + "billingAccount": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BillingAccountSpec" + }, + "billingParent": { + "description": "Organiztion ID of this org's billing parent. Once set, this org will inherit parent org's subscription, paymentMetthod and have \"inherited\" as billing type", + "type": "string" + }, + "billingType": { + "description": "BillingType indicates the method of subscription that the organization uses. It is primarily consumed by the cloud-manager to be able to distinguish between invoiced subscriptions.", + "type": "string" + }, + "cloudFeature": { + "description": "CloudFeature indicates features this org wants to enable/disable", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "defaultPoolRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef" + }, + "displayName": { + "description": "Name to display to our users", + "type": "string" + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain" + }, + "x-kubernetes-list-type": "atomic" + }, + "gcloud": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudOrganizationSpec" + }, + "metadata": { + "description": "Metadata is user-visible (and possibly editable) metadata.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "stripe": { + "description": "Stripe holds information about the collection method for a stripe subscription, also storing \"days until due\" when set to send invoices.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStripe" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSuger" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStatus": { + "description": "OrganizationStatus defines the observed state of Organization", + "type": "object", + "properties": { + "billingParent": { + "description": "reconciled parent of this organization. if spec.BillingParent is set but status.BillingParent is not set, then reconciler will create a parent child relationship if spec.BillingParent is not set but status.BillingParent is set, then reconciler will delete parent child relationship if spec.BillingParent is set but status.BillingParent is set and same, then reconciler will do nothing if spec.BillingParent is set but status.Billingparent is set and different, then reconciler will delete status.Billingparent relationship and create new spec.BillingParent relationship", + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "subscriptionName": { + "description": "Indicates the active subscription for this organization. This information is available when the Subscribed condition is true.", + "type": "string" + }, + "supportPlan": { + "description": "returns support plan of current subscription. blank, implies either no support plan or legacy support", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStripe": { + "type": "object", + "properties": { + "collectionMethod": { + "description": "CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice", + "type": "string" + }, + "daysUntilDue": { + "description": "DaysUntilDue sets the due date for the invoice. Applicable when collection method is send_invoice.", + "type": "integer", + "format": "int64" + }, + "keepInDraft": { + "description": "KeepInDraft disables auto-advance of the invoice state. Applicable when collection method is send_invoice.", + "type": "boolean" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSuger": { + "type": "object", + "required": [ + "buyerIDs" + ], + "properties": { + "buyerIDs": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "set" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool": { + "description": "Pool", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Pool", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember": { + "description": "PoolMember", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolMember", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberConnectionOptionsSpec": { + "type": "object", + "properties": { + "proxyUrl": { + "description": "ProxyUrl overrides the URL to K8S API. This is most typically done for SNI proxying. If ProxyUrl is set but TLSServerName is not, the *original* SNI value from the default endpoint will be used. If you also want to change the SNI header, you must also set TLSServerName.", + "type": "string" + }, + "tlsServerName": { + "description": "TLSServerName is the SNI header name to set, overriding the default endpoint. This should include the hostname value, with no port.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySelector": { + "type": "object", + "properties": { + "matchLabels": { + "description": "One or more labels that indicate a specific set of pods on which a policy should be applied. The scope of label search is restricted to the configuration namespace in which the resource is present.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySpec": { + "type": "object", + "required": [ + "selector", + "tls" + ], + "properties": { + "selector": { + "description": "Selector for the gateway workload pods to apply to.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySelector" + }, + "tls": { + "description": "The TLS configuration for the gateway.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewayTls" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewayTls": { + "type": "object", + "required": [ + "certSecretName" + ], + "properties": { + "certSecretName": { + "description": "The TLS secret to use (in the namespace of the gateway workload pods).", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioSpec": { + "type": "object", + "required": [ + "revision" + ], + "properties": { + "gateway": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySpec" + }, + "revision": { + "description": "Revision is the Istio revision tag.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolMemberList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberMonitoring": { + "type": "object", + "required": [ + "project", + "vminsertBackendServiceName", + "vmagentSecretRef", + "vmTenant" + ], + "properties": { + "project": { + "description": "Project is the Google project containing UO components.", + "type": "string" + }, + "vmTenant": { + "description": "VMTenant identifies the VM tenant to use (accountID or accountID:projectID).", + "type": "string" + }, + "vmagentSecretRef": { + "description": "VMagentSecretRef identifies the Kubernetes secret to store agent credentials into.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretReference" + }, + "vminsertBackendServiceName": { + "description": "VMinsertBackendServiceName identifies the backend service for vminsert.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec": { + "type": "object", + "required": [ + "catalog", + "channel" + ], + "properties": { + "catalog": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecCatalog" + }, + "channel": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecChannel" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecCatalog": { + "type": "object", + "required": [ + "image", + "pollInterval" + ], + "properties": { + "image": { + "type": "string" + }, + "pollInterval": { + "description": "Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecChannel": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberSpec": { + "description": "PoolMemberSpec defines the desired state of PoolMember", + "type": "object", + "required": [ + "type", + "poolName" + ], + "properties": { + "aws": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AwsPoolMemberSpec" + }, + "azure": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzurePoolMemberSpec" + }, + "connectionOptions": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberConnectionOptionsSpec" + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain" + }, + "x-kubernetes-list-type": "atomic" + }, + "functionMesh": { + "description": "Deprecated", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec" + }, + "gcloud": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolMemberSpec" + }, + "generic": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GenericPoolMemberSpec" + }, + "istio": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioSpec" + }, + "monitoring": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberMonitoring" + }, + "poolName": { + "type": "string" + }, + "pulsar": { + "description": "Deprecated", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec" + }, + "supportAccess": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SupportAccessOptionsSpec" + }, + "taints": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Taint" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "tieredStorage": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberTieredStorageSpec" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberStatus": { + "description": "PoolMemberStatus defines the observed state of PoolMember", + "type": "object", + "required": [ + "observedGeneration", + "deploymentType" + ], + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "deploymentType": { + "type": "string" + }, + "installedCSVs": { + "description": "InstalledCSVs shows the name and status of installed operator versions", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.InstalledCSV" + }, + "x-kubernetes-list-type": "atomic" + }, + "observedGeneration": { + "description": "ObservedGeneration is the most recent generation observed by the PoolMember controller.", + "type": "integer", + "format": "int64" + }, + "serverVersion": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberTieredStorageSpec": { + "description": "PoolMemberTieredStorageSpec is used to configure tiered storage for a pool member. It only contains some common fields for all the pulsar cluster in this pool member.", + "type": "object", + "properties": { + "bucketName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption": { + "description": "PoolOption", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolOption", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolOptionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionLocation": { + "type": "object", + "required": [ + "location" + ], + "properties": { + "displayName": { + "type": "string" + }, + "location": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionSpec": { + "description": "PoolOptionSpec defines a reference to a Pool", + "type": "object", + "required": [ + "cloudType", + "poolRef", + "locations", + "deploymentType" + ], + "properties": { + "cloudType": { + "type": "string" + }, + "deploymentType": { + "type": "string" + }, + "features": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "locations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionLocation" + }, + "x-kubernetes-list-type": "atomic" + }, + "poolRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed PoolOption conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef": { + "description": "PoolRef is a reference to a pool with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolSpec": { + "description": "PoolSpec defines the desired state of Pool", + "type": "object", + "required": [ + "type" + ], + "properties": { + "cloudFeature": { + "description": "CloudFeature indicates features this pool wants to enable/disable by default for all Pulsar clusters created on it", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "deploymentType": { + "description": "This feild is used by `cloud-manager` and `cloud-billing-reporter` to potentially charge different rates for our customers. It is imperative that we correctly set this field if a pool is a \"Pro\" tier or no tier.", + "type": "string" + }, + "gcloud": { + "type": "object" + }, + "sharing": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SharingConfig" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolStatus": { + "description": "PoolStatus defines the observed state of Pool", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed pool conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService": { + "type": "object", + "properties": { + "allowedIds": { + "description": "AllowedIds is the list of Ids that are allowed to connect to the private endpoint service, only can be configured when the access type is private, private endpoint service will be disabled if the whitelist is empty.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId": { + "type": "object", + "properties": { + "id": { + "description": "Id is the identifier of private service It is endpoint service name in AWS, psc attachment id in GCP, private service alias in Azure", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ProtocolsConfig": { + "type": "object", + "properties": { + "amqp": { + "description": "Amqp controls whether to enable Amqp protocol in brokers", + "type": "object" + }, + "kafka": { + "description": "Kafka controls whether to enable Kafka protocol in brokers", + "type": "object" + }, + "mqtt": { + "description": "Mqtt controls whether to enable mqtt protocol in brokers", + "type": "object" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster": { + "description": "PulsarCluster", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarCluster", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus": { + "type": "object", + "properties": { + "readyReplicas": { + "description": "ReadyReplicas is the number of ready servers in the cluster", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Replicas is the number of servers in the cluster", + "type": "integer", + "format": "int32" + }, + "updatedReplicas": { + "description": "UpdatedReplicas is the number of servers that has been updated to the latest configuration", + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarClusterList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterSpec": { + "description": "PulsarClusterSpec defines the desired state of PulsarCluster", + "type": "object", + "required": [ + "instanceName", + "location", + "broker" + ], + "properties": { + "bookKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperSetReference" + }, + "bookkeeper": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeper" + }, + "broker": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Broker" + }, + "config": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Config" + }, + "displayName": { + "description": "Name to display to our users", + "type": "string" + }, + "endpointAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EndpointAccess" + }, + "x-kubernetes-list-map-keys": [ + "gateway" + ], + "x-kubernetes-list-type": "map" + }, + "instanceName": { + "type": "string" + }, + "location": { + "type": "string" + }, + "maintenanceWindow": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MaintenanceWindow" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "releaseChannel": { + "type": "string" + }, + "serviceEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarServiceEndpoint" + }, + "x-kubernetes-list-type": "atomic" + }, + "tolerations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration" + }, + "x-kubernetes-list-type": "atomic" + }, + "zooKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ZooKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterStatus": { + "description": "PulsarClusterStatus defines the observed state of PulsarCluster", + "type": "object", + "properties": { + "bookkeeper": { + "description": "Bookkeeper is the status of bookkeeper component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + }, + "broker": { + "description": "Broker is the status of broker component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "deploymentType": { + "description": "Deployment type set via associated pool", + "type": "string" + }, + "instanceType": { + "description": "Instance type, i.e. serverless or default", + "type": "string" + }, + "oxia": { + "description": "Oxia is the status of oxia component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + }, + "rbacStatus": { + "description": "RBACStatus record ClusterRole/Role/RoleBinding which failed to apply to the Cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RBACStatus" + }, + "zookeeper": { + "description": "Zookeeper is the status of zookeeper component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway": { + "description": "PulsarGateway comprises resources for exposing pulsar endpoint, including the Ingress Gateway in PoolMember and corresponding Private Endpoint Service in Cloud Provider.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewaySpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarGateway", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarGatewayList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewaySpec": { + "type": "object", + "properties": { + "access": { + "description": "Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public.", + "type": "string" + }, + "domains": { + "description": "Domains is the list of domain suffix that the pulsar gateway will serve. This is automatically generated based on the PulsarGateway name and PoolMember domain.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain" + }, + "x-kubernetes-list-type": "atomic" + }, + "poolMemberRef": { + "description": "PoolMemberRef is the reference to the PoolMember that the PulsarGateway will be deployed.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "privateService": { + "description": "PrivateService is the configuration of the private endpoint service, only can be configured when the access type is private.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService" + }, + "topologyAware": { + "description": "TopologyAware is the configuration of the topology aware feature of the pulsar gateway.", + "type": "object" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayStatus": { + "type": "object", + "required": [ + "observedGeneration" + ], + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "ObservedGeneration is the most recent generation observed by the pulsargateway controller.", + "type": "integer", + "format": "int64" + }, + "privateServiceIds": { + "description": "PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance": { + "description": "PulsarInstance", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarInstance", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceAuth": { + "description": "PulsarInstanceAuth defines auth section of PulsarInstance", + "type": "object", + "properties": { + "apikey": { + "description": "ApiKey configuration", + "type": "object" + }, + "oauth2": { + "description": "OAuth2 configuration", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OAuth2Config" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarInstanceList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceSpec": { + "description": "PulsarInstanceSpec defines the desired state of PulsarInstance", + "type": "object", + "required": [ + "availabilityMode" + ], + "properties": { + "auth": { + "description": "Auth defines the auth section of the PulsarInstance", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceAuth" + }, + "availabilityMode": { + "description": "AvailabilityMode decides whether pods of the same type in pulsar should be in one zone or multiple zones", + "type": "string" + }, + "plan": { + "description": "Plan is the subscription plan, will create a stripe subscription if not empty deprecated: 1.16", + "type": "string" + }, + "poolRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef" + }, + "type": { + "description": "Type defines the instance specialization type: - standard: a standard deployment of Pulsar, BookKeeper, and ZooKeeper. - dedicated: a dedicated deployment of classic engine or ursa engine. - serverless: a serverless deployment of Pulsar, shared BookKeeper, and shared oxia. - byoc: bring your own cloud.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatus": { + "description": "PulsarInstanceStatus defines the observed state of PulsarInstance", + "type": "object", + "required": [ + "auth" + ], + "properties": { + "auth": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuth" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuth": { + "type": "object", + "required": [ + "type", + "oauth2" + ], + "properties": { + "oauth2": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuthOAuth2" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuthOAuth2": { + "type": "object", + "required": [ + "issuerURL", + "audience" + ], + "properties": { + "audience": { + "type": "string" + }, + "issuerURL": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarServiceEndpoint": { + "type": "object", + "required": [ + "dnsName" + ], + "properties": { + "dnsName": { + "type": "string" + }, + "gateway": { + "description": "Gateway is the name of the PulsarGateway to use for the endpoint, will be empty if endpointAccess is not configured.", + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RBACStatus": { + "type": "object", + "properties": { + "failedClusterRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedClusterRole" + }, + "x-kubernetes-list-type": "atomic" + }, + "failedRoleBindings": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRoleBinding" + }, + "x-kubernetes-list-type": "atomic" + }, + "failedRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRole" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RegionInfo": { + "type": "object", + "required": [ + "region", + "zones" + ], + "properties": { + "region": { + "type": "string" + }, + "zones": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role": { + "description": "Role", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Role", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding": { + "description": "RoleBinding", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "RoleBinding", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingCondition": { + "description": "RoleBindingCondition Deprecated", + "type": "object", + "properties": { + "operator": { + "type": "integer", + "format": "int32" + }, + "srn": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Srn" + }, + "type": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "RoleBindingList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingSpec": { + "description": "RoleBindingSpec defines the desired state of RoleBinding", + "type": "object", + "required": [ + "subjects", + "roleRef" + ], + "properties": { + "cel": { + "type": "string" + }, + "conditionGroup": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup" + }, + "roleRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef" + }, + "subjects": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingStatus": { + "description": "RoleBindingStatus defines the observed state of RoleBinding", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failedClusters": { + "description": "FailedClusters is an array of clusters which failed to apply the ClusterRole resources.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition": { + "type": "object", + "properties": { + "role": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "RoleList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef": { + "type": "object", + "required": [ + "kind", + "name", + "apiGroup" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleSpec": { + "description": "RoleSpec defines the desired state of Role", + "type": "object", + "properties": { + "permissions": { + "description": "Permissions Designed for general permission format\n SERVICE.RESOURCE.VERB", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleStatus": { + "description": "RoleStatus defines the observed state of Role", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failedClusters": { + "description": "FailedClusters is an array of clusters which failed to apply the ClusterRole resources.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret": { + "description": "Secret", + "type": "object", + "required": [ + "instanceName", + "location" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "data": { + "description": "the value should be base64 encoded", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "instanceName": { + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "location": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "poolMemberRef": { + "description": "PoolMemberRef is the pool member to deploy the secret. admission controller will infer this information automatically", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "spec": { + "type": "object" + }, + "status": { + "type": "object" + }, + "tolerations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration" + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Secret", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "SecretList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretReference": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration": { + "description": "SelfRegistration", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSpec" + }, + "status": { + "description": "SelfRegistrationStatus defines the observed state of SelfRegistration", + "type": "object" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "SelfRegistration", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationAws": { + "type": "object", + "required": [ + "registrationToken" + ], + "properties": { + "registrationToken": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSpec": { + "description": "SelfRegistrationSpec defines the desired state of SelfRegistration", + "type": "object", + "required": [ + "displayName", + "type" + ], + "properties": { + "aws": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationAws" + }, + "displayName": { + "type": "string" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "stripe": { + "type": "object" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSuger" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSuger": { + "type": "object", + "required": [ + "entitlementID" + ], + "properties": { + "entitlementID": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount": { + "description": "ServiceAccount", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "description": "ServiceAccountSpec defines the desired state of ServiceAccount", + "type": "object" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccount", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding": { + "description": "ServiceAccountBinding", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccountBinding", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccountBindingList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingSpec": { + "description": "ServiceAccountBindingSpec defines the desired state of ServiceAccountBinding", + "type": "object", + "properties": { + "poolMemberRef": { + "description": "refers to a PoolMember in the current namespace or other namespaces", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "serviceAccountName": { + "description": "refers to the ServiceAccount under the same namespace as this binding object", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingStatus": { + "description": "ServiceAccountBindingStatus defines the observed state of ServiceAccountBinding", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed service account binding conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccountList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountStatus": { + "description": "ServiceAccountStatus defines the observed state of ServiceAccount", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed service account conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "privateKeyData": { + "description": "PrivateKeyData provides the private key data (in base-64 format) for authentication purposes", + "type": "string" + }, + "privateKeyType": { + "description": "PrivateKeyType indicates the type of private key information", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SharingConfig": { + "type": "object", + "required": [ + "namespaces" + ], + "properties": { + "namespaces": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Srn": { + "description": "Srn Deprecated", + "type": "object", + "properties": { + "cluster": { + "type": "string" + }, + "instance": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "subscription": { + "type": "string" + }, + "tenant": { + "type": "string" + }, + "topicDomain": { + "type": "string" + }, + "topicName": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription": { + "description": "StripeSubscription", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "StripeSubscription", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "StripeSubscriptionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionSpec": { + "description": "StripeSubscriptionSpec defines the desired state of StripeSubscription", + "type": "object", + "required": [ + "customerId" + ], + "properties": { + "customerId": { + "description": "CustomerId is the id of the customer", + "type": "string" + }, + "product": { + "description": "Product is the name or id of the product", + "type": "string" + }, + "quantities": { + "description": "Quantities defines the quantity of certain prices in the subscription", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionStatus": { + "description": "StripeSubscriptionStatus defines the observed state of StripeSubscription", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "type": "integer", + "format": "int64" + }, + "subscriptionItems": { + "description": "SubscriptionItems is a list of subscription items (used to report metrics)", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SubscriptionItem" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject": { + "type": "object", + "required": [ + "kind", + "name", + "apiGroup" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SubscriptionItem": { + "type": "object", + "required": [ + "subscriptionId", + "priceId", + "nickName", + "type" + ], + "properties": { + "nickName": { + "type": "string" + }, + "priceId": { + "type": "string" + }, + "subscriptionId": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SupportAccessOptionsSpec": { + "type": "object", + "properties": { + "chains": { + "description": "A role chain that is provided by name through the CLI to designate which access chain to take when accessing a poolmember.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Chain" + }, + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "roleChain": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Taint": { + "description": "Taint - The workload cluster this Taint is attached to has the \"effect\" on any workload that does not tolerate the Taint.", + "type": "object", + "required": [ + "key", + "effect" + ], + "properties": { + "effect": { + "description": "Required. The effect of the taint on workloads that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Required. The taint key to be applied to a workload cluster.", + "type": "string" + }, + "timeAdded": { + "description": "TimeAdded represents the time at which the taint was added.", + "type": "string", + "format": "date-time" + }, + "value": { + "description": "Optional. The taint value corresponding to the taint key.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration": { + "description": "The workload this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and PreferNoSchedule.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category.", + "type": "string" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User": { + "description": "User", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "User", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "UserList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserName": { + "type": "object", + "required": [ + "first", + "last" + ], + "properties": { + "first": { + "type": "string" + }, + "last": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserSpec": { + "description": "UserSpec defines the desired state of User", + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "invitation": { + "description": "Deprecated: Invitation is deprecated and no longer used.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Invitation" + }, + "name": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserName" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserStatus": { + "description": "UserStatus defines the observed state of User", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Window": { + "type": "object", + "required": [ + "startTime", + "duration" + ], + "properties": { + "duration": { + "description": "StartTime define the maintenance execution duration", + "type": "string" + }, + "startTime": { + "description": "StartTime define the maintenance execution start time", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ZooKeeperSetReference": { + "description": "ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription": { + "description": "AWSSubscription", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "AWSSubscription", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "AWSSubscriptionList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionSpec": { + "description": "AWSSubscriptionSpec defines the desired state of AWSSubscription", + "type": "object", + "properties": { + "customerID": { + "type": "string" + }, + "productCode": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionStatus": { + "description": "AWSSubscriptionStatus defines the observed state of AWSSubscription", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type", + "type": "string" + }, + "storageSize": { + "description": "StorageSize defines the size of the ledger storage", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet": { + "description": "BookKeeperSet", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSet", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSetList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption": { + "description": "BookKeeperSetOption", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSetOption", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSetOptionList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionSpec": { + "description": "BookKeeperSetOptionSpec defines a reference to a Pool", + "type": "object", + "required": [ + "bookKeeperSetRef" + ], + "properties": { + "bookKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed BookKeeperSetOptionStatus conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetReference": { + "description": "BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetSpec": { + "description": "BookKeeperSetSpec defines the desired state of BookKeeperSet", + "type": "object", + "required": [ + "zooKeeperSetRef" + ], + "properties": { + "availabilityMode": { + "description": "AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal.", + "type": "string" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference" + }, + "replicas": { + "description": "Replicas is the desired number of BookKeeper servers. If unspecified, defaults to 3.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperResourceSpec" + }, + "resources": { + "description": "CPU and memory resources", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookkeeperNodeResource" + }, + "sharing": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig" + }, + "zooKeeperSetRef": { + "description": "ZooKeeperSet to use as a coordination service.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetStatus": { + "description": "BookKeeperSetStatus defines the observed state of BookKeeperSet", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "metadataServiceUri": { + "description": "MetadataServiceUri exposes the URI used for loading corresponding metadata driver and resolving its metadata service location", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookkeeperNodeResource": { + "description": "Represents resource spec for bookie nodes", + "type": "object", + "required": [ + "DefaultNodeResource" + ], + "properties": { + "DefaultNodeResource": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource" + }, + "journalDisk": { + "description": "JournalDisk size. Set to zero equivalent to use default value", + "type": "string" + }, + "ledgerDisk": { + "description": "LedgerDisk size. Set to zero equivalent to use default value", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource": { + "description": "Represents resource spec for nodes", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "directPercentage": { + "description": "Percentage of direct memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "heapPercentage": { + "description": "Percentage of heap memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "memory": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet": { + "description": "MonitorSet", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "MonitorSet", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "MonitorSetList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetSpec": { + "description": "MonitorSetSpec defines the desired state of MonitorSet", + "type": "object", + "properties": { + "availabilityMode": { + "description": "AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal.", + "type": "string" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference" + }, + "replicas": { + "description": "Replicas is the desired number of monitoring servers. If unspecified, defaults to 1.", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Selector selects the resources to be monitored. By default, selects all monitor-able resources in the namespace.", + "$ref": "#/definitions/v1.LabelSelector" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetStatus": { + "description": "MonitorSetStatus defines the observed state of MonitorSet", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig": { + "type": "object", + "required": [ + "namespaces" + ], + "properties": { + "namespaces": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type", + "type": "string" + }, + "storageSize": { + "description": "StorageSize defines the size of the storage", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet": { + "description": "ZooKeeperSet", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSet", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSetList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption": { + "description": "ZooKeeperSetOption", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSetOption", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSetOptionList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionSpec": { + "description": "ZooKeeperSetOptionSpec defines a reference to a Pool", + "type": "object", + "required": [ + "zooKeeperSetRef" + ], + "properties": { + "zooKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed ZooKeeperSetOptionStatus conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference": { + "description": "ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetSpec": { + "description": "ZooKeeperSetSpec defines the desired state of ZooKeeperSet", + "type": "object", + "properties": { + "availabilityMode": { + "description": "AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal.", + "type": "string" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy, one of Always, Never, IfNotPresent, default to Always.", + "type": "string" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference" + }, + "replicas": { + "description": "Replicas is the desired number of ZooKeeper servers. If unspecified, defaults to 1.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperResourceSpec" + }, + "resources": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource" + }, + "sharing": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetStatus": { + "description": "ZooKeeperSetStatus defines the observed state of ZooKeeperSet", + "type": "object", + "properties": { + "clusterConnectionString": { + "description": "ClusterConnectionString is a connection string for client connectivity within the cluster.", + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Artifact": { + "description": "Artifact is the artifact configs to deploy.", + "type": "object", + "properties": { + "additionalDependencies": { + "type": "array", + "items": { + "type": "string" + } + }, + "additionalPythonArchives": { + "type": "array", + "items": { + "type": "string" + } + }, + "additionalPythonLibraries": { + "type": "array", + "items": { + "type": "string" + } + }, + "artifactKind": { + "type": "string" + }, + "entryClass": { + "type": "string" + }, + "entryModule": { + "type": "string" + }, + "flinkImageRegistry": { + "type": "string" + }, + "flinkImageRepository": { + "type": "string" + }, + "flinkImageTag": { + "type": "string" + }, + "flinkVersion": { + "type": "string" + }, + "jarUri": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "mainArgs": { + "type": "string" + }, + "pythonArtifactUri": { + "type": "string" + }, + "sqlScript": { + "type": "string" + }, + "uri": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container": { + "description": "A single application container that you want to run within a pod. The Container API from the core group is not used directly to avoid unneeded fields and reduce the size of the CRD. New fields could be added as needed.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "args": { + "description": "Arguments to the entrypoint.", + "type": "array", + "items": { + "type": "string" + } + }, + "command": { + "description": "Entrypoint array. Not executed within a shell.", + "type": "array", + "items": { + "type": "string" + } + }, + "env": { + "description": "List of environment variables to set in the container.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvVar" + }, + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.EnvFromSource" + } + }, + "image": { + "description": "Docker image name.", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy.\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "livenessProbe": { + "description": "Periodic probe of container liveness.", + "$ref": "#/definitions/v1.Probe" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL).", + "type": "string" + }, + "readinessProbe": { + "description": "Periodic probe of container service readiness. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "$ref": "#/definitions/v1.Probe" + }, + "resources": { + "description": "Compute Resources required by this container.", + "$ref": "#/definitions/v1.ResourceRequirements" + }, + "securityContext": { + "description": "SecurityContext holds pod-level security attributes and common container settings.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext" + }, + "startupProbe": { + "description": "StartupProbe indicates that the Pod has successfully initialized.", + "$ref": "#/definitions/v1.Probe" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.VolumeMount" + }, + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkBlobStorage": { + "description": "FlinkBlobStorage defines the configuration for the Flink blob storage.", + "type": "object", + "properties": { + "bucket": { + "description": "Bucket is required if you want to use cloud storage.", + "type": "string" + }, + "path": { + "description": "Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment": { + "description": "FlinkDeployment", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "FlinkDeployment", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "FlinkDeploymentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentSpec": { + "description": "FlinkDeploymentSpec defines the desired state of FlinkDeployment", + "type": "object", + "required": [ + "workspaceName" + ], + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "communityTemplate": { + "description": "CommunityDeploymentTemplate defines the desired state of CommunityDeployment", + "type": "object" + }, + "defaultPulsarCluster": { + "description": "DefaultPulsarCluster is the default pulsar cluster to use. If not provided, the controller will use the first pulsar cluster from the workspace.", + "type": "string" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "poolMemberRef": { + "description": "PoolMemberRef is the pool member to deploy the cluster. admission controller will infer this information automatically if not provided, the controller will use PoolMember from the workspace", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolMemberReference" + }, + "template": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplate" + }, + "workspaceName": { + "description": "WorkspaceName is the reference to the workspace, and is required", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentStatus": { + "description": "FlinkDeploymentStatus defines the observed state of FlinkDeployment", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "deploymentStatus": { + "description": "DeploymentStatus is the status of the vvp deployment.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatus" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Logging": { + "description": "Logging defines the logging configuration for the Flink deployment.", + "type": "object", + "properties": { + "log4j2ConfigurationTemplate": { + "type": "string" + }, + "log4jLoggers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "loggingProfile": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ObjectMeta": { + "type": "object", + "properties": { + "annotations": { + "description": "Annotations of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name of the resource within a namespace. It must be unique.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the resource.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate": { + "description": "PodTemplate defines the common pod configuration for Pods, including when used in StatefulSets.", + "type": "object", + "properties": { + "metadata": { + "description": "Metadata of the pod.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ObjectMeta" + }, + "spec": { + "description": "Spec of the pod.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplateSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplateSpec": { + "type": "object", + "properties": { + "affinity": { + "$ref": "#/definitions/v1.Affinity" + }, + "containers": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container" + } + }, + "imagePullSecrets": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.LocalObjectReference" + } + }, + "initContainers": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container" + } + }, + "nodeSelector": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "securityContext": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext" + }, + "serviceAccountName": { + "type": "string" + }, + "shareProcessNamespace": { + "type": "boolean" + }, + "tolerations": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.Toleration" + } + }, + "volumes": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Volume" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolRef": { + "description": "PoolRef is a reference to a pool with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec": { + "description": "ResourceSpec defines the resource requirements for a component.", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "description": "CPU represents the minimum amount of CPU required.", + "type": "string" + }, + "memory": { + "description": "Memory represents the minimum amount of memory required.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext": { + "type": "object", + "properties": { + "fsGroup": { + "type": "integer", + "format": "int64" + }, + "readOnlyRootFilesystem": { + "description": "ReadOnlyRootFilesystem specifies whether the container use a read-only filesystem.", + "type": "boolean" + }, + "runAsGroup": { + "type": "integer", + "format": "int64" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer", + "format": "int64" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.UserMetadata": { + "description": "UserMetadata Specify the metadata for the resource we are deploying.", + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "displayName": { + "type": "string" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod. The Volume API from the core group is not used directly to avoid unneeded fields defined in `VolumeSource` and reduce the size of the CRD. New fields in VolumeSource could be added as needed.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "configMap": { + "description": "ConfigMap represents a configMap that should populate this volume", + "$ref": "#/definitions/v1.ConfigMapVolumeSource" + }, + "name": { + "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "secret": { + "description": "Secret represents a secret that should populate this volume.", + "$ref": "#/definitions/v1.SecretVolumeSource" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpCustomResourceStatus": { + "description": "VvpCustomResourceStatus defines the observed state of VvpCustomResource", + "type": "object", + "properties": { + "customResourceState": { + "type": "string" + }, + "deploymentId": { + "type": "string" + }, + "deploymentNamespace": { + "type": "string" + }, + "observedSpecState": { + "type": "string" + }, + "statusState": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetails": { + "description": "VvpDeploymentDetails", + "type": "object", + "required": [ + "template" + ], + "properties": { + "deploymentTargetName": { + "type": "string" + }, + "jobFailureExpirationTime": { + "type": "string" + }, + "maxJobCreationAttempts": { + "type": "integer", + "format": "int32" + }, + "maxSavepointCreationAttempts": { + "type": "integer", + "format": "int32" + }, + "restoreStrategy": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpRestoreStrategy" + }, + "sessionClusterName": { + "type": "string" + }, + "state": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplate" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplate": { + "description": "VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateMetadata" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateMetadata": { + "description": "VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails", + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpec": { + "description": "VvpDeploymentDetailsTemplateSpec defines the desired state of VvpDeploymentDetails", + "type": "object", + "required": [ + "artifact" + ], + "properties": { + "artifact": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Artifact" + }, + "flinkConfiguration": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "kubernetes": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpecKubernetesSpec" + }, + "latestCheckpointFetchInterval": { + "type": "integer", + "format": "int32" + }, + "logging": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Logging" + }, + "numberOfTaskManagers": { + "type": "integer", + "format": "int32" + }, + "parallelism": { + "type": "integer", + "format": "int32" + }, + "resources": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentKubernetesResources" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpecKubernetesSpec": { + "description": "VvpDeploymentDetailsTemplateSpecKubernetesSpec defines the desired state of VvpDeploymentDetails", + "type": "object", + "properties": { + "jobManagerPodTemplate": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "taskManagerPodTemplate": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentKubernetesResources": { + "description": "VvpDeploymentKubernetesResources defines the Kubernetes resources for the VvpDeployment.", + "type": "object", + "properties": { + "jobmanager": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec" + }, + "taskmanager": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentRunningStatus": { + "description": "VvpDeploymentRunningStatus defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusCondition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "jobId": { + "type": "string" + }, + "transitionTime": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatus": { + "description": "VvpDeploymentStatus defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "customResourceStatus": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpCustomResourceStatus" + }, + "deploymentStatus": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusDeploymentStatus" + }, + "deploymentSystemMetadata": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentSystemMetadata" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusCondition": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusDeploymentStatus": { + "description": "VvpDeploymentStatusDeploymentStatus defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "running": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentRunningStatus" + }, + "state": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentSystemMetadata": { + "description": "VvpDeploymentSystemMetadata defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "createdAt": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "modifiedAt": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + }, + "resourceVersion": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplate": { + "description": "VvpDeploymentTemplate defines the desired state of VvpDeployment", + "type": "object", + "required": [ + "deployment" + ], + "properties": { + "deployment": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplateSpec" + }, + "syncingMode": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplateSpec": { + "description": "VvpDeploymentTemplateSpec defines the desired state of VvpDeployment", + "type": "object", + "required": [ + "userMetadata", + "spec" + ], + "properties": { + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetails" + }, + "userMetadata": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.UserMetadata" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpRestoreStrategy": { + "description": "VvpRestoreStrategy defines the restore strategy of the deployment", + "type": "object", + "properties": { + "allowNonRestoredState": { + "type": "boolean" + }, + "kind": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace": { + "description": "Workspace", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "Workspace", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "WorkspaceList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceSpec": { + "description": "WorkspaceSpec defines the desired state of Workspace", + "type": "object", + "required": [ + "pulsarClusterNames", + "poolRef" + ], + "properties": { + "flinkBlobStorage": { + "description": "FlinkBlobStorage is the configuration for the Flink blob storage.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkBlobStorage" + }, + "poolRef": { + "description": "PoolRef is the reference to the pool that the workspace will be access to.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolRef" + }, + "pulsarClusterNames": { + "description": "PulsarClusterNames is the list of Pulsar clusters that the workspace will have access to.", + "type": "array", + "items": { + "type": "string" + } + }, + "useExternalAccess": { + "description": "UseExternalAccess is the flag to indicate whether the workspace will use external access.", + "type": "boolean" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceStatus": { + "description": "WorkspaceStatus defines the observed state of Workspace", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed pool conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "type": "object", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "$ref": "#/definitions/v1.NodeAffinity" + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/v1.PodAffinity" + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/v1.PodAntiAffinity" + } + } + }, + "v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" + } + } + }, + "v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "type": "object", + "properties": { + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + } + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + } + }, + "v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "type": "object", + "properties": { + "configMapRef": { + "description": "The ConfigMap to select from", + "$ref": "#/definitions/v1.ConfigMapEnvSource" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": "string" + }, + "secretRef": { + "description": "The Secret to select from", + "$ref": "#/definitions/v1.SecretEnvSource" + } + } + }, + "v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": "string" + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": "string" + }, + "valueFrom": { + "description": "Source for the environment variable's value. Cannot be used if value is not empty.", + "$ref": "#/definitions/v1.EnvVarSource" + } + } + }, + "v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "type": "object", + "properties": { + "configMapKeyRef": { + "description": "Selects a key of a ConfigMap.", + "$ref": "#/definitions/v1.ConfigMapKeySelector" + }, + "fieldRef": { + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", + "$ref": "#/definitions/v1.ObjectFieldSelector" + }, + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", + "$ref": "#/definitions/v1.ResourceFieldSelector" + }, + "secretKeyRef": { + "description": "Selects a key of a secret in the pod's namespace", + "$ref": "#/definitions/v1.SecretKeySelector" + } + } + }, + "v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", + "type": "object", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1.GRPCAction": { + "type": "object", + "required": [ + "port" + ], + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "type": "integer", + "format": "int32" + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": "string" + } + } + }, + "v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.HTTPHeader" + } + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "object", + "format": "int-or-string" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.\n\nPossible enum values:\n - `\"HTTP\"` means that the scheme used will be http://\n - `\"HTTPS\"` means that the scheme used will be https://", + "type": "string", + "enum": [ + "HTTP", + "HTTPS" + ] + } + } + }, + "v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + } + }, + "v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", + "type": "object", + "required": [ + "key", + "path" + ], + "properties": { + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + } + }, + "v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PreferredSchedulingTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", + "$ref": "#/definitions/v1.NodeSelector" + } + } + }, + "v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "type": "object", + "required": [ + "nodeSelectorTerms" + ], + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NodeSelectorTerm" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"In\"`\n - `\"Lt\"`\n - `\"NotIn\"`", + "type": "string", + "enum": [ + "DoesNotExist", + "Exists", + "Gt", + "In", + "Lt", + "NotIn" + ] + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NodeSelectorRequirement" + } + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.NodeSelectorRequirement" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "type": "object", + "required": [ + "fieldPath" + ], + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.WeightedPodAffinityTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PodAffinityTerm" + } + } + } + }, + "v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.", + "$ref": "#/definitions/v1.LabelSelector" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces.", + "$ref": "#/definitions/v1.LabelSelector" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + } + }, + "v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.WeightedPodAffinityTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.PodAffinityTerm" + } + } + } + }, + "v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "weight", + "preference" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "$ref": "#/definitions/v1.NodeSelectorTerm" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "type": "object", + "properties": { + "exec": { + "description": "Exec specifies the action to take.", + "$ref": "#/definitions/v1.ExecAction" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "grpc": { + "description": "GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate.", + "$ref": "#/definitions/v1.GRPCAction" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "$ref": "#/definitions/v1.HTTPGetAction" + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port.", + "$ref": "#/definitions/v1.TCPSocketAction" + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", + "type": "integer", + "format": "int64" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "type": "integer", + "format": "int32" + } + } + }, + "v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "type": "object", + "required": [ + "resource" + ], + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "description": "Specifies the output format of the exposed resources, defaults to \"1\"", + "type": "string" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "type": "object", + "properties": { + "limits": { + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object", + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + } + }, + "requests": { + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object", + "additionalProperties": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + } + } + } + }, + "v1.SecretEnvSource": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": "boolean" + } + } + }, + "v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "type": "object", + "properties": { + "defaultMode": { + "description": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.KeyToPath" + } + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": "string" + } + } + }, + "v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "type": "object", + "format": "int-or-string" + } + } + }, + "v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", + "type": "string", + "enum": [ + "NoExecute", + "NoSchedule", + "PreferNoSchedule" + ] + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`", + "type": "string", + "enum": [ + "Equal", + "Exists" + ] + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + }, + "v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", + "type": "object", + "required": [ + "name", + "mountPath" + ], + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.", + "type": "string" + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": "string" + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": "string" + } + } + }, + "v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "weight", + "podAffinityTerm" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "$ref": "#/definitions/v1.PodAffinityTerm" + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "type": "object", + "required": [ + "name", + "versions" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the group.", + "type": "string" + }, + "preferredVersion": { + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", + "$ref": "#/definitions/v1.GroupVersionForDiscovery" + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ServerAddressByClientCIDR" + } + }, + "versions": { + "description": "versions are the versions supported in this group.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.GroupVersionForDiscovery" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ] + }, + "v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "type": "object", + "required": [ + "groups" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groups": { + "description": "groups is a list of APIGroup.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ] + }, + "v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "type": "object", + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "type": "array", + "items": { + "type": "string" + } + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": "string" + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" + }, + "name": { + "description": "name is the plural name of the resource.", + "type": "string" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": "string" + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": "string" + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": "string" + } + } + }, + "v1.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "type": "object", + "required": [ + "groupVersion", + "resources" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.APIResource" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" + } + ] + }, + "v1.Condition": { + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "type": "object", + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "type": "string", + "format": "date-time" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": "string" + } + } + }, + "v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string" + } + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": "boolean" + }, + "preconditions": { + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", + "$ref": "#/definitions/v1.Preconditions" + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authorization.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "billing.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha2" + }, + { + "group": "compute.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + } + ] + }, + "v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "type": "object", + "required": [ + "groupVersion", + "version" + ], + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": "string" + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": "string" + } + } + }, + "v1.LabelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.LabelSelectorRequirement" + } + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "type": "object", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": "string" + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "type": "integer", + "format": "int64" + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + } + } + }, + "v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": "string" + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": "string" + }, + "fieldsV1": { + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", + "type": "object" + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": "string" + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": "string" + }, + "time": { + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", + "type": "string", + "format": "date-time" + } + } + }, + "v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "clusterName": { + "description": "Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25.\n\nThe name in the go struct is changed to help clients detect accidental use.", + "type": "string" + }, + "creationTimestamp": { + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "type": "string", + "format": "date-time" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "type": "integer", + "format": "int64" + }, + "deletionTimestamp": { + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "type": "string", + "format": "date-time" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "type": "integer", + "format": "int64" + }, + "labels": { + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.ManagedFieldsEntry" + } + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.OwnerReference" + }, + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + } + }, + "v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "type": "object", + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "type": "object", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": "string" + }, + "uid": { + "description": "Specifies the target UID.", + "type": "string" + } + } + }, + "v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "type": "object", + "required": [ + "clientCIDR", + "serverAddress" + ], + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": "string" + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" + } + } + }, + "v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "type": "integer", + "format": "int32" + }, + "details": { + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "$ref": "#/definitions/v1.StatusDetails" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "$ref": "#/definitions/v1.ListMeta" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": "string" + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } + ] + }, + "v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "type": "object", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" + } + } + }, + "v1.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "type": "object", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "type": "array", + "items": { + "$ref": "#/definitions/v1.StatusCause" + } + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": "string" + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "type": "integer", + "format": "int32" + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + } + }, + "v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "type": "object", + "required": [ + "type", + "object" + ], + "properties": { + "object": { + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", + "type": "object" + }, + "type": { + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authorization.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "billing.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha2" + }, + { + "group": "compute.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + } + ] + }, + "version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", + "type": "object", + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "properties": { + "buildDate": { + "type": "string" + }, + "compiler": { + "type": "string" + }, + "gitCommit": { + "type": "string" + }, + "gitTreeState": { + "type": "string" + }, + "gitVersion": { + "type": "string" + }, + "goVersion": { + "type": "string" + }, + "major": { + "type": "string" + }, + "minor": { + "type": "string" + }, + "platform": { + "type": "string" + } + } + } + } +} \ No newline at end of file diff --git a/sdk/sdk-apiserver/swagger.json.unprocessed b/sdk/sdk-apiserver/swagger.json.unprocessed new file mode 100644 index 0000000..26a6b32 --- /dev/null +++ b/sdk/sdk-apiserver/swagger.json.unprocessed @@ -0,0 +1,65358 @@ +{ + "swagger": "2.0", + "info": { + "title": "Api", + "version": "v0" + }, + "paths": { + "/apis/": { + "get": { + "description": "get available API versions", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "apis" + ], + "operationId": "getAPIVersions", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList" + } + } + } + } + }, + "/apis/authorization.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo" + ], + "operationId": "getAuthorizationStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + } + } + } + }, + "/apis/authorization.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "getAuthorizationStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + } + } + } + }, + "/apis/authorization.streamnative.io/v1alpha1/iamaccounts": { + "get": { + "description": "list or watch objects of kind IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "listAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts": { + "get": { + "description": "list or watch objects of kind IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "listAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "post": { + "description": "create an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "delete": { + "description": "delete collection of IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "deleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}": { + "get": { + "description": "read the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "readAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "put": { + "description": "replace the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "replaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "delete": { + "description": "delete an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "deleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "patch": { + "description": "partially update the specified IamAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "patchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/namespaces/{namespace}/iamaccounts/{name}/status": { + "get": { + "description": "read status of the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "readAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "put": { + "description": "replace status of the specified IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "replaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "post": { + "description": "create status of an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "delete": { + "description": "delete status of an IamAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "deleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "patch": { + "description": "partially update status of the specified IamAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "patchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectrbacreviews": { + "post": { + "description": "create a SelfSubjectRbacReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SelfSubjectRbacReview" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectrulesreviews": { + "post": { + "description": "create a SelfSubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SelfSubjectRulesReview" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/selfsubjectuserreviews": { + "post": { + "description": "create a SelfSubjectUserReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SelfSubjectUserReview" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/subjectrolereviews": { + "post": { + "description": "create a SubjectRoleReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SubjectRoleReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SubjectRoleReview" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/subjectrulesreviews": { + "post": { + "description": "create a SubjectRulesReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "createAuthorizationStreamnativeIoV1alpha1SubjectRulesReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "SubjectRulesReview" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/iamaccounts": { + "get": { + "description": "watch individual changes to a list of IamAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "watchAuthorizationStreamnativeIoV1alpha1IamAccountListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts": { + "get": { + "description": "watch individual changes to a list of IamAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "watchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}": { + "get": { + "description": "watch changes to an object of kind IamAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "watchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/authorization.streamnative.io/v1alpha1/watch/namespaces/{namespace}/iamaccounts/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind IamAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "authorizationStreamnativeIo_v1alpha1" + ], + "operationId": "watchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "authorization.streamnative.io", + "version": "v1alpha1", + "kind": "IamAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IamAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo" + ], + "operationId": "getBillingStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + } + } + } + }, + "/apis/billing.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "getBillingStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + } + } + } + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/customerportalrequests": { + "post": { + "description": "create a CustomerPortalRequest", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "CustomerPortalRequest" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents": { + "get": { + "description": "list or watch objects of kind PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "post": { + "description": "create a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "delete": { + "description": "delete collection of PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}": { + "get": { + "description": "read the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "put": { + "description": "replace the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "delete": { + "description": "delete a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "patch": { + "description": "partially update the specified PaymentIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/paymentintents/{name}/status": { + "get": { + "description": "read status of the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "put": { + "description": "replace status of the specified PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "post": { + "description": "create status of a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "delete": { + "description": "delete status of a PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "patch": { + "description": "partially update status of the specified PaymentIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers": { + "get": { + "description": "list or watch objects of kind PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "post": { + "description": "create a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "delete": { + "description": "delete collection of PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}": { + "get": { + "description": "read the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "put": { + "description": "replace the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "delete": { + "description": "delete a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "patch": { + "description": "partially update the specified PrivateOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/privateoffers/{name}/status": { + "get": { + "description": "read status of the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "put": { + "description": "replace status of the specified PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "post": { + "description": "create status of a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "delete": { + "description": "delete status of a PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "patch": { + "description": "partially update status of the specified PrivateOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products": { + "get": { + "description": "list or watch objects of kind Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "post": { + "description": "create a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "delete": { + "description": "delete collection of Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}": { + "get": { + "description": "read the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedProduct", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "put": { + "description": "replace the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "delete": { + "description": "delete a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "patch": { + "description": "partially update the specified Product", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedProduct", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/products/{name}/status": { + "get": { + "description": "read status of the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "put": { + "description": "replace status of the specified Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "post": { + "description": "create status of a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "delete": { + "description": "delete status of a Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "patch": { + "description": "partially update status of the specified Product", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents": { + "get": { + "description": "list or watch objects of kind SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "post": { + "description": "create a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "delete": { + "description": "delete collection of SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}": { + "get": { + "description": "read the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "put": { + "description": "replace the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "delete": { + "description": "delete a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "patch": { + "description": "partially update the specified SetupIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/setupintents/{name}/status": { + "get": { + "description": "read status of the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "put": { + "description": "replace status of the specified SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "post": { + "description": "create status of a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "delete": { + "description": "delete status of a SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "patch": { + "description": "partially update status of the specified SetupIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents": { + "get": { + "description": "list or watch objects of kind SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "post": { + "description": "create a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "delete": { + "description": "delete collection of SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}": { + "get": { + "description": "read the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "put": { + "description": "replace the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "delete": { + "description": "delete a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "patch": { + "description": "partially update the specified SubscriptionIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptionintents/{name}/status": { + "get": { + "description": "read status of the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "put": { + "description": "replace status of the specified SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "post": { + "description": "create status of a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "delete": { + "description": "delete status of a SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "patch": { + "description": "partially update status of the specified SubscriptionIntent", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions": { + "get": { + "description": "list or watch objects of kind Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "post": { + "description": "create a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "delete": { + "description": "delete collection of Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}": { + "get": { + "description": "read the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "put": { + "description": "replace the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "delete": { + "description": "delete a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "patch": { + "description": "partially update the specified Subscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/namespaces/{namespace}/subscriptions/{name}/status": { + "get": { + "description": "read status of the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "put": { + "description": "replace status of the specified Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "post": { + "description": "create status of a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "delete": { + "description": "delete status of a Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "patch": { + "description": "partially update status of the specified Subscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/paymentintents": { + "get": { + "description": "list or watch objects of kind PaymentIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/privateoffers": { + "get": { + "description": "list or watch objects of kind PrivateOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/products": { + "get": { + "description": "list or watch objects of kind Product", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1ProductForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/publicoffers": { + "get": { + "description": "list or watch objects of kind PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "post": { + "description": "create a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "delete": { + "description": "delete collection of PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionPublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}": { + "get": { + "description": "read the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1PublicOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "put": { + "description": "replace the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "delete": { + "description": "delete a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "patch": { + "description": "partially update the specified PublicOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1PublicOffer", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/publicoffers/{name}/status": { + "get": { + "description": "read status of the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1PublicOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "put": { + "description": "replace status of the specified PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "post": { + "description": "create status of a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "delete": { + "description": "delete status of a PublicOffer", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "patch": { + "description": "partially update status of the specified PublicOffer", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1PublicOfferStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/setupintents": { + "get": { + "description": "list or watch objects of kind SetupIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/subscriptionintents": { + "get": { + "description": "list or watch objects of kind SubscriptionIntent", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/subscriptions": { + "get": { + "description": "list or watch objects of kind Subscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/sugerentitlementreviews": { + "post": { + "description": "create a SugerEntitlementReview", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1SugerEntitlementReview", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SugerEntitlementReview" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/testclocks": { + "get": { + "description": "list or watch objects of kind TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "listBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "post": { + "description": "create a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "delete": { + "description": "delete collection of TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1CollectionTestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}": { + "get": { + "description": "read the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1TestClock", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "put": { + "description": "replace the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "delete": { + "description": "delete a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "patch": { + "description": "partially update the specified TestClock", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1TestClock", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/testclocks/{name}/status": { + "get": { + "description": "read status of the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "readBillingStreamnativeIoV1alpha1TestClockStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "put": { + "description": "replace status of the specified TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "replaceBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "post": { + "description": "create status of a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "createBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "delete": { + "description": "delete status of a TestClock", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "deleteBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "patch": { + "description": "partially update status of the specified TestClock", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "patchBillingStreamnativeIoV1alpha1TestClockStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents": { + "get": { + "description": "watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}": { + "get": { + "description": "watch changes to an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/paymentintents/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PaymentIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers": { + "get": { + "description": "watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}": { + "get": { + "description": "watch changes to an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/privateoffers/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PrivateOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products": { + "get": { + "description": "watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedProductList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}": { + "get": { + "description": "watch changes to an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedProduct", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/products/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedProductStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Product", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents": { + "get": { + "description": "watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}": { + "get": { + "description": "watch changes to an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSetupIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/setupintents/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SetupIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents": { + "get": { + "description": "watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}": { + "get": { + "description": "watch changes to an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptionintents/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the SubscriptionIntent", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions": { + "get": { + "description": "watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}": { + "get": { + "description": "watch changes to an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/namespaces/{namespace}/subscriptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Subscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/paymentintents": { + "get": { + "description": "watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PaymentIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/privateoffers": { + "get": { + "description": "watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PrivateOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/products": { + "get": { + "description": "watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Product" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers": { + "get": { + "description": "watch individual changes to a list of PublicOffer. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PublicOfferList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}": { + "get": { + "description": "watch changes to an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PublicOffer", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/publicoffers/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1PublicOfferStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "PublicOffer" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PublicOffer", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/setupintents": { + "get": { + "description": "watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SetupIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/subscriptionintents": { + "get": { + "description": "watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "SubscriptionIntent" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/subscriptions": { + "get": { + "description": "watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "Subscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks": { + "get": { + "description": "watch individual changes to a list of TestClock. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1TestClockList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}": { + "get": { + "description": "watch changes to an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1TestClock", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/billing.streamnative.io/v1alpha1/watch/testclocks/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "billingStreamnativeIo_v1alpha1" + ], + "operationId": "watchBillingStreamnativeIoV1alpha1TestClockStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "billing.streamnative.io", + "version": "v1alpha1", + "kind": "TestClock" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the TestClock", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo" + ], + "operationId": "getCloudStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + } + } + } + }, + "/apis/cloud.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "getCloudStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + } + } + } + }, + "/apis/cloud.streamnative.io/v1alpha1/apikeys": { + "get": { + "description": "list or watch objects of kind APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/cloudconnections": { + "get": { + "description": "list or watch objects of kind CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/cloudenvironments": { + "get": { + "description": "list or watch objects of kind CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings": { + "get": { + "description": "list or watch objects of kind ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "post": { + "description": "create a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "delete": { + "description": "delete collection of ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}": { + "get": { + "description": "read the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "put": { + "description": "replace the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "delete": { + "description": "delete a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "patch": { + "description": "partially update the specified ClusterRoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterrolebindings/{name}/status": { + "get": { + "description": "read status of the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "put": { + "description": "replace status of the specified ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "post": { + "description": "create status of a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "delete": { + "description": "delete status of a ClusterRoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "patch": { + "description": "partially update status of the specified ClusterRoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterroles": { + "get": { + "description": "list or watch objects of kind ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "post": { + "description": "create a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "delete": { + "description": "delete collection of ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}": { + "get": { + "description": "read the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "put": { + "description": "replace the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "delete": { + "description": "delete a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "patch": { + "description": "partially update the specified ClusterRole", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/clusterroles/{name}/status": { + "get": { + "description": "read status of the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "put": { + "description": "replace status of the specified ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "post": { + "description": "create status of a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "delete": { + "description": "delete status of a ClusterRole", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "patch": { + "description": "partially update status of the specified ClusterRole", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/identitypools": { + "get": { + "description": "list or watch objects of kind IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys": { + "get": { + "description": "list or watch objects of kind APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "post": { + "description": "create an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "delete": { + "description": "delete collection of APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}": { + "get": { + "description": "read the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "put": { + "description": "replace the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "delete": { + "description": "delete an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "patch": { + "description": "partially update the specified APIKey", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/apikeys/{name}/status": { + "get": { + "description": "read status of the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "put": { + "description": "replace status of the specified APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "post": { + "description": "create status of an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "delete": { + "description": "delete status of an APIKey", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "patch": { + "description": "partially update status of the specified APIKey", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections": { + "get": { + "description": "list or watch objects of kind CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "post": { + "description": "create a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "delete": { + "description": "delete collection of CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}": { + "get": { + "description": "read the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "put": { + "description": "replace the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "delete": { + "description": "delete a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "patch": { + "description": "partially update the specified CloudConnection", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudconnections/{name}/status": { + "get": { + "description": "read status of the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "put": { + "description": "replace status of the specified CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "post": { + "description": "create status of a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "delete": { + "description": "delete status of a CloudConnection", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "patch": { + "description": "partially update status of the specified CloudConnection", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments": { + "get": { + "description": "list or watch objects of kind CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "post": { + "description": "create a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "delete": { + "description": "delete collection of CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}": { + "get": { + "description": "read the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "put": { + "description": "replace the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "delete": { + "description": "delete a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "patch": { + "description": "partially update the specified CloudEnvironment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/cloudenvironments/{name}/status": { + "get": { + "description": "read status of the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "put": { + "description": "replace status of the specified CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "post": { + "description": "create status of a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "delete": { + "description": "delete status of a CloudEnvironment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "patch": { + "description": "partially update status of the specified CloudEnvironment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools": { + "get": { + "description": "list or watch objects of kind IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "post": { + "description": "create an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "delete": { + "description": "delete collection of IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}": { + "get": { + "description": "read the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "put": { + "description": "replace the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "delete": { + "description": "delete an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "patch": { + "description": "partially update the specified IdentityPool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/identitypools/{name}/status": { + "get": { + "description": "read status of the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "put": { + "description": "replace status of the specified IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "post": { + "description": "create status of an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "delete": { + "description": "delete status of an IdentityPool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "patch": { + "description": "partially update status of the specified IdentityPool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders": { + "get": { + "description": "list or watch objects of kind OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "post": { + "description": "create an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "delete": { + "description": "delete collection of OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}": { + "get": { + "description": "read the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "put": { + "description": "replace the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "delete": { + "description": "delete an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "patch": { + "description": "partially update the specified OIDCProvider", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/oidcproviders/{name}/status": { + "get": { + "description": "read status of the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "put": { + "description": "replace status of the specified OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "post": { + "description": "create status of an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "delete": { + "description": "delete status of an OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "patch": { + "description": "partially update status of the specified OIDCProvider", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers": { + "get": { + "description": "list or watch objects of kind PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "post": { + "description": "create a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "delete": { + "description": "delete collection of PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}": { + "get": { + "description": "read the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "put": { + "description": "replace the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "delete": { + "description": "delete a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "patch": { + "description": "partially update the specified PoolMember", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/poolmembers/{name}/status": { + "get": { + "description": "read status of the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "put": { + "description": "replace status of the specified PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "post": { + "description": "create status of a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "delete": { + "description": "delete status of a PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "patch": { + "description": "partially update status of the specified PoolMember", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions": { + "get": { + "description": "list or watch objects of kind PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "post": { + "description": "create a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "delete": { + "description": "delete collection of PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}": { + "get": { + "description": "read the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "put": { + "description": "replace the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "delete": { + "description": "delete a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "patch": { + "description": "partially update the specified PoolOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pooloptions/{name}/status": { + "get": { + "description": "read status of the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "put": { + "description": "replace status of the specified PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "post": { + "description": "create status of a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "delete": { + "description": "delete status of a PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "patch": { + "description": "partially update status of the specified PoolOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools": { + "get": { + "description": "list or watch objects of kind Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "post": { + "description": "create a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "delete": { + "description": "delete collection of Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}": { + "get": { + "description": "read the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "put": { + "description": "replace the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "delete": { + "description": "delete a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "patch": { + "description": "partially update the specified Pool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPool", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pools/{name}/status": { + "get": { + "description": "read status of the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "put": { + "description": "replace status of the specified Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "post": { + "description": "create status of a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "delete": { + "description": "delete status of a Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "patch": { + "description": "partially update status of the specified Pool", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters": { + "get": { + "description": "list or watch objects of kind PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "post": { + "description": "create a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "delete": { + "description": "delete collection of PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}": { + "get": { + "description": "read the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "put": { + "description": "replace the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "delete": { + "description": "delete a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "patch": { + "description": "partially update the specified PulsarCluster", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarclusters/{name}/status": { + "get": { + "description": "read status of the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "put": { + "description": "replace status of the specified PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "post": { + "description": "create status of a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "delete": { + "description": "delete status of a PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "patch": { + "description": "partially update status of the specified PulsarCluster", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways": { + "get": { + "description": "list or watch objects of kind PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "post": { + "description": "create a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "delete": { + "description": "delete collection of PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}": { + "get": { + "description": "read the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "put": { + "description": "replace the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "delete": { + "description": "delete a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "patch": { + "description": "partially update the specified PulsarGateway", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsargateways/{name}/status": { + "get": { + "description": "read status of the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "put": { + "description": "replace status of the specified PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "post": { + "description": "create status of a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "delete": { + "description": "delete status of a PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "patch": { + "description": "partially update status of the specified PulsarGateway", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances": { + "get": { + "description": "list or watch objects of kind PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "post": { + "description": "create a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "delete": { + "description": "delete collection of PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}": { + "get": { + "description": "read the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "put": { + "description": "replace the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "delete": { + "description": "delete a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "patch": { + "description": "partially update the specified PulsarInstance", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/pulsarinstances/{name}/status": { + "get": { + "description": "read status of the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "put": { + "description": "replace status of the specified PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "post": { + "description": "create status of a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "delete": { + "description": "delete status of a PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "patch": { + "description": "partially update status of the specified PulsarInstance", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings": { + "get": { + "description": "list or watch objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "post": { + "description": "create a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "delete": { + "description": "delete collection of RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}": { + "get": { + "description": "read the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "put": { + "description": "replace the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "delete": { + "description": "delete a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "patch": { + "description": "partially update the specified RoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}/status": { + "get": { + "description": "read status of the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "put": { + "description": "replace status of the specified RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "post": { + "description": "create status of a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "delete": { + "description": "delete status of a RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "patch": { + "description": "partially update status of the specified RoleBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles": { + "get": { + "description": "list or watch objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "post": { + "description": "create a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "delete": { + "description": "delete collection of Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}": { + "get": { + "description": "read the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "put": { + "description": "replace the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "delete": { + "description": "delete a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "patch": { + "description": "partially update the specified Role", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRole", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/roles/{name}/status": { + "get": { + "description": "read status of the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "put": { + "description": "replace status of the specified Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "post": { + "description": "create status of a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "delete": { + "description": "delete status of a Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "patch": { + "description": "partially update status of the specified Role", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets": { + "get": { + "description": "list or watch objects of kind Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "post": { + "description": "create a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "delete": { + "description": "delete collection of Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}": { + "get": { + "description": "read the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedSecret", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "put": { + "description": "replace the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "delete": { + "description": "delete a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "patch": { + "description": "partially update the specified Secret", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedSecret", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/secrets/{name}/status": { + "get": { + "description": "read status of the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "put": { + "description": "replace status of the specified Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "post": { + "description": "create status of a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "delete": { + "description": "delete status of a Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "patch": { + "description": "partially update status of the specified Secret", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings": { + "get": { + "description": "list or watch objects of kind ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "post": { + "description": "create a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "delete": { + "description": "delete collection of ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}": { + "get": { + "description": "read the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "put": { + "description": "replace the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "delete": { + "description": "delete a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "patch": { + "description": "partially update the specified ServiceAccountBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccountbindings/{name}/status": { + "get": { + "description": "read status of the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "put": { + "description": "replace status of the specified ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "post": { + "description": "create status of a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "delete": { + "description": "delete status of a ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "patch": { + "description": "partially update status of the specified ServiceAccountBinding", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts": { + "get": { + "description": "list or watch objects of kind ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "post": { + "description": "create a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "delete": { + "description": "delete collection of ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}": { + "get": { + "description": "read the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "put": { + "description": "replace the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "delete": { + "description": "delete a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "patch": { + "description": "partially update the specified ServiceAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/serviceaccounts/{name}/status": { + "get": { + "description": "read status of the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "put": { + "description": "replace status of the specified ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "post": { + "description": "create status of a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "delete": { + "description": "delete status of a ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "patch": { + "description": "partially update status of the specified ServiceAccount", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions": { + "get": { + "description": "list or watch objects of kind StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "post": { + "description": "create a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "delete": { + "description": "delete collection of StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}": { + "get": { + "description": "read the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "put": { + "description": "replace the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "delete": { + "description": "delete a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "patch": { + "description": "partially update the specified StripeSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/stripesubscriptions/{name}/status": { + "get": { + "description": "read status of the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "put": { + "description": "replace status of the specified StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "post": { + "description": "create status of a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "delete": { + "description": "delete status of a StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "patch": { + "description": "partially update status of the specified StripeSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users": { + "get": { + "description": "list or watch objects of kind User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "post": { + "description": "create an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "delete": { + "description": "delete collection of User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}": { + "get": { + "description": "read the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedUser", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "put": { + "description": "replace the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "delete": { + "description": "delete an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "patch": { + "description": "partially update the specified User", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedUser", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/namespaces/{namespace}/users/{name}/status": { + "get": { + "description": "read status of the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "put": { + "description": "replace status of the specified User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "post": { + "description": "create status of an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "delete": { + "description": "delete status of an User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "patch": { + "description": "partially update status of the specified User", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/oidcproviders": { + "get": { + "description": "list or watch objects of kind OIDCProvider", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/organizations": { + "get": { + "description": "list or watch objects of kind Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "post": { + "description": "create an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "delete": { + "description": "delete collection of Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1CollectionOrganization", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}": { + "get": { + "description": "read the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1Organization", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "put": { + "description": "replace the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "delete": { + "description": "delete an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "patch": { + "description": "partially update the specified Organization", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1Organization", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/organizations/{name}/status": { + "get": { + "description": "read status of the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "readCloudStreamnativeIoV1alpha1OrganizationStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "put": { + "description": "replace status of the specified Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "post": { + "description": "create status of an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "delete": { + "description": "delete status of an Organization", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "patch": { + "description": "partially update status of the specified Organization", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "patchCloudStreamnativeIoV1alpha1OrganizationStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/poolmembers": { + "get": { + "description": "list or watch objects of kind PoolMember", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pooloptions": { + "get": { + "description": "list or watch objects of kind PoolOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pools": { + "get": { + "description": "list or watch objects of kind Pool", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PoolForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pulsarclusters": { + "get": { + "description": "list or watch objects of kind PulsarCluster", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pulsargateways": { + "get": { + "description": "list or watch objects of kind PulsarGateway", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/pulsarinstances": { + "get": { + "description": "list or watch objects of kind PulsarInstance", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/rolebindings": { + "get": { + "description": "list or watch objects of kind RoleBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/roles": { + "get": { + "description": "list or watch objects of kind Role", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1RoleForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/secrets": { + "get": { + "description": "list or watch objects of kind Secret", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1SecretForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/selfregistrations": { + "post": { + "description": "create a SelfRegistration", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "createCloudStreamnativeIoV1alpha1SelfRegistration", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "SelfRegistration" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/serviceaccountbindings": { + "get": { + "description": "list or watch objects of kind ServiceAccountBinding", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/serviceaccounts": { + "get": { + "description": "list or watch objects of kind ServiceAccount", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/stripesubscriptions": { + "get": { + "description": "list or watch objects of kind StripeSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/users": { + "get": { + "description": "list or watch objects of kind User", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "listCloudStreamnativeIoV1alpha1UserForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/apikeys": { + "get": { + "description": "watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/cloudconnections": { + "get": { + "description": "watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/cloudenvironments": { + "get": { + "description": "watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings": { + "get": { + "description": "watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleBindingList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}": { + "get": { + "description": "watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterrolebindings/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles": { + "get": { + "description": "watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}": { + "get": { + "description": "watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/clusterroles/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ClusterRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ClusterRole" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ClusterRole", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/identitypools": { + "get": { + "description": "watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys": { + "get": { + "description": "watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}": { + "get": { + "description": "watch changes to an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedAPIKey", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/apikeys/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "APIKey" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the APIKey", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections": { + "get": { + "description": "watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}": { + "get": { + "description": "watch changes to an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudConnection", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudconnections/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudConnection" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudConnection", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments": { + "get": { + "description": "watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}": { + "get": { + "description": "watch changes to an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/cloudenvironments/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "CloudEnvironment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the CloudEnvironment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools": { + "get": { + "description": "watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}": { + "get": { + "description": "watch changes to an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedIdentityPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/identitypools/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "IdentityPool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the IdentityPool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders": { + "get": { + "description": "watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}": { + "get": { + "description": "watch changes to an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/oidcproviders/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the OIDCProvider", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers": { + "get": { + "description": "watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}": { + "get": { + "description": "watch changes to an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolMember", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/poolmembers/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolMember", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions": { + "get": { + "description": "watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}": { + "get": { + "description": "watch changes to an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pooloptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PoolOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools": { + "get": { + "description": "watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}": { + "get": { + "description": "watch changes to an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPool", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pools/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPoolStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Pool", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters": { + "get": { + "description": "watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}": { + "get": { + "description": "watch changes to an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarclusters/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarCluster", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways": { + "get": { + "description": "watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}": { + "get": { + "description": "watch changes to an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsargateways/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarGateway", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances": { + "get": { + "description": "watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}": { + "get": { + "description": "watch changes to an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/pulsarinstances/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the PulsarInstance", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { + "get": { + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { + "get": { + "description": "watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the RoleBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles": { + "get": { + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { + "get": { + "description": "watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRole", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedRoleStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Role", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets": { + "get": { + "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedSecretList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}": { + "get": { + "description": "watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedSecret", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/secrets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedSecretStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Secret", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings": { + "get": { + "description": "watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}": { + "get": { + "description": "watch changes to an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccountbindings/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccountBinding", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts": { + "get": { + "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}": { + "get": { + "description": "watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccount", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/serviceaccounts/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ServiceAccount", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions": { + "get": { + "description": "watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}": { + "get": { + "description": "watch changes to an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/stripesubscriptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the StripeSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users": { + "get": { + "description": "watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedUserList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}": { + "get": { + "description": "watch changes to an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedUser", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/namespaces/{namespace}/users/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1NamespacedUserStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the User", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/oidcproviders": { + "get": { + "description": "watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "OIDCProvider" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations": { + "get": { + "description": "watch individual changes to a list of Organization. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1OrganizationList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}": { + "get": { + "description": "watch changes to an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1Organization", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/organizations/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1OrganizationStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Organization" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Organization", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/poolmembers": { + "get": { + "description": "watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolMember" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pooloptions": { + "get": { + "description": "watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PoolOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pools": { + "get": { + "description": "watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Pool" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsarclusters": { + "get": { + "description": "watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarCluster" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsargateways": { + "get": { + "description": "watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarGateway" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/pulsarinstances": { + "get": { + "description": "watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "PulsarInstance" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/rolebindings": { + "get": { + "description": "watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "RoleBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/roles": { + "get": { + "description": "watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Role" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/secrets": { + "get": { + "description": "watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "Secret" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/serviceaccountbindings": { + "get": { + "description": "watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccountBinding" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/serviceaccounts": { + "get": { + "description": "watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "ServiceAccount" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/stripesubscriptions": { + "get": { + "description": "watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "StripeSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha1/watch/users": { + "get": { + "description": "watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha1" + ], + "operationId": "watchCloudStreamnativeIoV1alpha1UserListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha1", + "kind": "User" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "getCloudStreamnativeIoV1alpha2APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + } + } + } + }, + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions": { + "get": { + "description": "list or watch objects of kind AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "post": { + "description": "create an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "delete": { + "description": "delete collection of AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}": { + "get": { + "description": "read the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2AWSSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "put": { + "description": "replace the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "delete": { + "description": "delete an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "patch": { + "description": "partially update the specified AWSSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2AWSSubscription", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/awssubscriptions/{name}/status": { + "get": { + "description": "read status of the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "put": { + "description": "replace status of the specified AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "post": { + "description": "create status of an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "delete": { + "description": "delete status of an AWSSubscription", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "patch": { + "description": "partially update status of the specified AWSSubscription", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/bookkeepersetoptions": { + "get": { + "description": "list or watch objects of kind BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/bookkeepersets": { + "get": { + "description": "list or watch objects of kind BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/monitorsets": { + "get": { + "description": "list or watch objects of kind MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions": { + "get": { + "description": "list or watch objects of kind BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "post": { + "description": "create a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "delete": { + "description": "delete collection of BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}": { + "get": { + "description": "read the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "put": { + "description": "replace the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "delete": { + "description": "delete a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "patch": { + "description": "partially update the specified BookKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersetoptions/{name}/status": { + "get": { + "description": "read status of the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "put": { + "description": "replace status of the specified BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "post": { + "description": "create status of a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "delete": { + "description": "delete status of a BookKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "patch": { + "description": "partially update status of the specified BookKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets": { + "get": { + "description": "list or watch objects of kind BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "post": { + "description": "create a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "delete": { + "description": "delete collection of BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}": { + "get": { + "description": "read the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "put": { + "description": "replace the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "delete": { + "description": "delete a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "patch": { + "description": "partially update the specified BookKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/bookkeepersets/{name}/status": { + "get": { + "description": "read status of the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "put": { + "description": "replace status of the specified BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "post": { + "description": "create status of a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "delete": { + "description": "delete status of a BookKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "patch": { + "description": "partially update status of the specified BookKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets": { + "get": { + "description": "list or watch objects of kind MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "post": { + "description": "create a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "delete": { + "description": "delete collection of MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}": { + "get": { + "description": "read the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "put": { + "description": "replace the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "delete": { + "description": "delete a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "patch": { + "description": "partially update the specified MonitorSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/monitorsets/{name}/status": { + "get": { + "description": "read status of the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "put": { + "description": "replace status of the specified MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "post": { + "description": "create status of a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "delete": { + "description": "delete status of a MonitorSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "patch": { + "description": "partially update status of the specified MonitorSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions": { + "get": { + "description": "list or watch objects of kind ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "post": { + "description": "create a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "delete": { + "description": "delete collection of ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}": { + "get": { + "description": "read the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "put": { + "description": "replace the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "delete": { + "description": "delete a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "patch": { + "description": "partially update the specified ZooKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersetoptions/{name}/status": { + "get": { + "description": "read status of the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "put": { + "description": "replace status of the specified ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "post": { + "description": "create status of a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "delete": { + "description": "delete status of a ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "patch": { + "description": "partially update status of the specified ZooKeeperSetOption", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets": { + "get": { + "description": "list or watch objects of kind ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "post": { + "description": "create a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "delete": { + "description": "delete collection of ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}": { + "get": { + "description": "read the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "put": { + "description": "replace the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "delete": { + "description": "delete a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "patch": { + "description": "partially update the specified ZooKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/namespaces/{namespace}/zookeepersets/{name}/status": { + "get": { + "description": "read status of the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "readCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "put": { + "description": "replace status of the specified ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "replaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "post": { + "description": "create status of a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "createCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "delete": { + "description": "delete status of a ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "deleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "patch": { + "description": "partially update status of the specified ZooKeeperSet", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "patchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions": { + "get": { + "description": "watch individual changes to a list of AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2AWSSubscriptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}": { + "get": { + "description": "watch changes to an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2AWSSubscription", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/awssubscriptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "AWSSubscription" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the AWSSubscription", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersetoptions": { + "get": { + "description": "watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/bookkeepersets": { + "get": { + "description": "watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/monitorsets": { + "get": { + "description": "watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions": { + "get": { + "description": "watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}": { + "get": { + "description": "watch changes to an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersetoptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets": { + "get": { + "description": "watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}": { + "get": { + "description": "watch changes to an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/bookkeepersets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "BookKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the BookKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets": { + "get": { + "description": "watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}": { + "get": { + "description": "watch changes to an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedMonitorSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/monitorsets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "MonitorSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the MonitorSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}": { + "get": { + "description": "watch changes to an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersetoptions/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSetOption", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}": { + "get": { + "description": "watch changes to an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/namespaces/{namespace}/zookeepersets/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the ZooKeeperSet", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/zookeepersetoptions": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/watch/zookeepersets": { + "get": { + "description": "watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "watchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/zookeepersetoptions": { + "get": { + "description": "list or watch objects of kind ZooKeeperSetOption", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSetOption" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/cloud.streamnative.io/v1alpha2/zookeepersets": { + "get": { + "description": "list or watch objects of kind ZooKeeperSet", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "cloudStreamnativeIo_v1alpha2" + ], + "operationId": "listCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "cloud.streamnative.io", + "version": "v1alpha2", + "kind": "ZooKeeperSet" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/": { + "get": { + "description": "get information of a group", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo" + ], + "operationId": "getComputeStreamnativeIoAPIGroup", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + } + } + } + }, + "/apis/compute.streamnative.io/v1alpha1/": { + "get": { + "description": "get available resources", + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "getComputeStreamnativeIoV1alpha1APIResources", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + } + } + } + }, + "/apis/compute.streamnative.io/v1alpha1/flinkdeployments": { + "get": { + "description": "list or watch objects of kind FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments": { + "get": { + "description": "list or watch objects of kind FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "post": { + "description": "create a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "delete": { + "description": "delete collection of FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}": { + "get": { + "description": "read the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "put": { + "description": "replace the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "delete": { + "description": "delete a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "patch": { + "description": "partially update the specified FlinkDeployment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/flinkdeployments/{name}/status": { + "get": { + "description": "read status of the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "put": { + "description": "replace status of the specified FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "post": { + "description": "create status of a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "delete": { + "description": "delete status of a FlinkDeployment", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "patch": { + "description": "partially update status of the specified FlinkDeployment", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces": { + "get": { + "description": "list or watch objects of kind Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "post": { + "description": "create a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "delete": { + "description": "delete collection of Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}": { + "get": { + "description": "read the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "put": { + "description": "replace the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "delete": { + "description": "delete a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "patch": { + "description": "partially update the specified Workspace", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/namespaces/{namespace}/workspaces/{name}/status": { + "get": { + "description": "read status of the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "readComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "put": { + "description": "replace status of the specified Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "replaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "post": { + "description": "create status of a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "createComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "name": "fieldManager", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "delete": { + "description": "delete status of a Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "deleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "name": "gracePeriodSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "name": "orphanDependents", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "name": "propagationPolicy", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + } + }, + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "patch": { + "description": "partially update status of the specified Workspace", + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "patchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "uniqueItems": true, + "type": "string", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "name": "force", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + } + }, + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/flinkdeployments": { + "get": { + "description": "watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments": { + "get": { + "description": "watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}": { + "get": { + "description": "watch changes to an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/flinkdeployments/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "FlinkDeployment" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the FlinkDeployment", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces": { + "get": { + "description": "watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}": { + "get": { + "description": "watch changes to an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedWorkspace", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/namespaces/{namespace}/workspaces/{name}/status": { + "get": { + "description": "watch changes to status of an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "name of the Workspace", + "name": "name", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "object name and auth scope, such as for teams and projects", + "name": "namespace", + "in": "path", + "required": true + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/watch/workspaces": { + "get": { + "description": "watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead.", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "watchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + } + }, + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/apis/compute.streamnative.io/v1alpha1/workspaces": { + "get": { + "description": "list or watch objects of kind Workspace", + "consumes": [ + "*/*" + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "schemes": [ + "https" + ], + "tags": [ + "computeStreamnativeIo_v1alpha1" + ], + "operationId": "listComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList" + } + } + }, + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "compute.streamnative.io", + "version": "v1alpha1", + "kind": "Workspace" + } + }, + "parameters": [ + { + "uniqueItems": true, + "type": "boolean", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "name": "allowWatchBookmarks", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "name": "continue", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "name": "fieldSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "name": "labelSelector", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "name": "limit", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "If 'true', then the output is pretty printed.", + "name": "pretty", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersion", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "name": "resourceVersionMatch", + "in": "query" + }, + { + "uniqueItems": true, + "type": "integer", + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "name": "timeoutSeconds", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "name": "watch", + "in": "query" + } + ] + }, + "/version/": { + "get": { + "description": "get the code version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "tags": [ + "version" + ], + "operationId": "getCodeVersion", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.version.Info" + } + } + } + } + } + }, + "definitions": { + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage": { + "type": "object", + "properties": { + "bucket": { + "description": "Bucket is required if you want to use cloud storage.", + "type": "string" + }, + "path": { + "description": "Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount": { + "description": "IamAccount", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "IamAccount", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccount" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "IamAccountList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountSpec": { + "description": "IamAccountSpec defines the desired state of IamAccount", + "type": "object", + "properties": { + "additionalCloudStorage": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage" + } + }, + "cloudStorage": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.CloudStorage" + }, + "disableIamRoleCreation": { + "type": "boolean" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.PoolMemberReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.IamAccountStatus": { + "description": "IamAccountStatus defines the observed state of IamAccount", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Organization": { + "type": "object", + "required": [ + "displayName" + ], + "properties": { + "displayName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule": { + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "type": "object", + "required": [ + "verbs" + ], + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.RoleRef": { + "type": "object", + "required": [ + "kind", + "name", + "apiGroup" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReview": { + "description": "SelfSubjectRbacReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SelfSubjectRbacReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewSpec": { + "description": "SelfSubjectRbacReviewSpec defines the desired state of SelfSubjectRulesReview", + "type": "object", + "properties": { + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRbacReviewStatus": { + "description": "SelfSubjectRbacReviewStatus defines the observed state of SelfSubjectRulesReview", + "type": "object", + "properties": { + "userPrivileges": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReview": { + "description": "SelfSubjectRulesReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SelfSubjectRulesReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec defines the desired state of SelfSubjectRulesReview", + "type": "object", + "properties": { + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectRulesReviewStatus": { + "description": "SelfSubjectRulesReviewStatus defines the observed state of SelfSubjectRulesReview", + "type": "object", + "required": [ + "resourceRules", + "incomplete" + ], + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": "string" + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReview": { + "description": "SelfSubjectUserReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SelfSubjectUserReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewSpec": { + "description": "SelfSubjectUserReviewSpec defines the desired state of SelfSubjectUserReview", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SelfSubjectUserReviewStatus": { + "description": "SelfSubjectUserReviewStatus defines the observed state of SelfSubjectUserReview", + "type": "object", + "required": [ + "users" + ], + "properties": { + "users": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.UserRef" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReview": { + "description": "SubjectRoleReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Spec holds information about the request being evaluated.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates the set of roles associated with a user or service account.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SubjectRoleReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewSpec": { + "type": "object", + "properties": { + "user": { + "description": "User is the user you're testing for.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRoleReviewStatus": { + "type": "object", + "required": [ + "roles" + ], + "properties": { + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.RoleRef" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReview": { + "description": "SubjectRulesReview", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "description": "Spec holds information about the request being evaluated.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewSpec" + }, + "status": { + "description": "Status is filled in by the server and indicates the set of roles associated with a user or service account.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.streamnative.io", + "kind": "SubjectRulesReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewSpec": { + "type": "object", + "properties": { + "namespace": { + "type": "string" + }, + "user": { + "description": "User is the user you're testing for.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.SubjectRulesReviewStatus": { + "type": "object", + "required": [ + "resourceRules", + "incomplete" + ], + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": "string" + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.ResourceRule" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.UserRef": { + "type": "object", + "required": [ + "kind", + "name", + "namespace", + "apiGroup", + "organization" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "organization": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.authorization.v1alpha1.Organization" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequest": { + "description": "CustomerPortalRequest is a request for a Customer Portal session.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "CustomerPortalRequest", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestSpec": { + "description": "CustomerPortalRequestSpec represents the details of the request.", + "type": "object", + "properties": { + "returnURL": { + "description": "The default URL to redirect customers to when they click on the portal\u2019s link to return to your website.", + "type": "string" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.CustomerPortalRequestStatus": { + "description": "CustomerPortalRequestStatus defines the observed state of CustomerPortalRequest", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestStatus" + }, + "url": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem": { + "description": "OfferItem defines an offered product at a particular price.", + "type": "object", + "properties": { + "key": { + "description": "Key is the item key within the offer and subscription.", + "type": "string" + }, + "metadata": { + "description": "Metadata is an unstructured key value map stored with an item.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "price": { + "description": "Price is used to specify a custom price for a given product.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPrice" + }, + "priceRef": { + "description": "PriceRef is a reference to a price associated with a product. When changing an item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PriceReference" + }, + "quantity": { + "description": "Quantity for this item.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPrice": { + "description": "OfferItemPrice is used to specify a custom price for a given product.", + "type": "object", + "properties": { + "currency": { + "description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.", + "type": "string" + }, + "product": { + "description": "Product is the Product object reference.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference" + }, + "recurring": { + "description": "The recurring components of a price such as `interval` and `interval_count`.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPriceRecurring" + }, + "tiers": { + "description": "Tiers are Stripes billing tiers like", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier" + }, + "x-kubernetes-list-type": "atomic" + }, + "tiersMode": { + "description": "TiersMode is the stripe tier mode", + "type": "string" + }, + "unitAmount": { + "description": "A quantity (or 0 for a free price) representing how much to charge.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItemPriceRecurring": { + "description": "OfferItemPriceRecurring specifies the recurring components of a price such as `interval` and `interval_count`.", + "type": "object", + "properties": { + "aggregateUsage": { + "type": "string" + }, + "interval": { + "description": "Specifies billing frequency. Either `day`, `week`, `month` or `year`.", + "type": "string" + }, + "intervalCount": { + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks).", + "type": "integer", + "format": "int64" + }, + "usageType": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferReference": { + "description": "OfferReference references an offer object.", + "type": "object", + "required": [ + "kind", + "name" + ], + "properties": { + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent": { + "description": "PaymentIntent is the Schema for the paymentintents API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PaymentIntent", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntent" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PaymentIntentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentSpec": { + "description": "PaymentIntentSpec defines the desired state of PaymentIntent", + "type": "object", + "properties": { + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePaymentIntent" + }, + "subscriptionName": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PaymentIntentStatus": { + "description": "PaymentIntentStatus defines the observed state of PaymentIntent", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PriceReference": { + "description": "PriceReference references a price within a Product object.", + "type": "object", + "properties": { + "key": { + "description": "Key is the price key within the product specification.", + "type": "string" + }, + "product": { + "description": "Product is the Product object reference.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer": { + "description": "PrivateOffer", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PrivateOffer", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOffer" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PrivateOfferList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferSpec": { + "description": "PrivateOfferSpec defines the desired state of PrivateOffer", + "type": "object", + "properties": { + "anchorDate": { + "description": "AnchorDate is a timestamp representing the first billing cycle end date. This will be used to anchor future billing periods to that date. For example, setting the anchor date for a subscription starting on Apr 1 to be Apr 12 will send the invoice for the subscription out on Apr 12 and the 12th of every following month for a monthly subscription. It is represented in RFC3339 form and is in UTC.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "description": { + "type": "string" + }, + "duration": { + "description": "Duration indicates how long the subscription for this offer should last. The value must greater than 0", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Duration" + }, + "endDate": { + "description": "EndDate is a timestamp representing the planned end date of the subscription. It is represented in RFC3339 form and is in UTC.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "once": { + "description": "One-time items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "recurring": { + "description": "Recurring items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "startDate": { + "description": "StartDate is a timestamp representing the planned start date of the subscription. It is represented in RFC3339 form and is in UTC.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePrivateOfferSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PrivateOfferStatus": { + "description": "PrivateOfferStatus defines the observed state of PrivateOffer", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product": { + "description": "Product is the Schema for the products API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "Product", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Product" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "ProductList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductPrice": { + "description": "ProductPrice specifies a price for a product.", + "type": "object", + "properties": { + "key": { + "description": "Key is the price key.", + "type": "string" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceSpec" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference": { + "description": "ProductReference references a Product object.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductSpec": { + "description": "ProductSpec defines the desired state of Product", + "type": "object", + "properties": { + "description": { + "description": "Description is a product description", + "type": "string" + }, + "name": { + "description": "Name is the product name.", + "type": "string" + }, + "prices": { + "description": "Prices associated with the product.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductPrice" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeProductSpec" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProductSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatus": { + "description": "ProductStatus defines the observed state of Product", + "type": "object", + "properties": { + "prices": { + "description": "The prices as stored in Stripe.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatusPrice" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "stripeID": { + "description": "The unique identifier for the Stripe product.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductStatusPrice": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "stripeID": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer": { + "description": "PublicOffer is the Schema for the publicoffers API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PublicOffer", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOffer" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "PublicOfferList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferSpec": { + "description": "PublicOfferSpec defines the desired state of PublicOffer", + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "once": { + "description": "One-time items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "recurring": { + "description": "Recurring items, each with an attached price.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePublicOfferSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.PublicOfferStatus": { + "description": "PublicOfferStatus defines the observed state of PublicOffer", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent": { + "description": "SetupIntent is the Schema for the setupintents API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SetupIntent", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntent" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SetupIntentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentReference": { + "description": "SetupIntentReference represents a SetupIntent Reference.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentSpec": { + "description": "SetupIntentSpec defines the desired state of SetupIntent", + "type": "object", + "properties": { + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSetupIntent" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentStatus": { + "description": "SetupIntentStatus defines the observed state of SetupIntent", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conidtions", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestSpec": { + "type": "object", + "properties": { + "configuration": { + "description": "Configuration is the ID of the portal configuration to use.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeCustomerPortalRequestStatus": { + "type": "object", + "properties": { + "id": { + "description": "ID is the Stripe portal ID.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePaymentIntent": { + "type": "object", + "properties": { + "clientSecret": { + "type": "string" + }, + "id": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceRecurrence": { + "description": "StripePriceRecurrence defines how a price's billing recurs", + "type": "object", + "properties": { + "aggregateUsage": { + "type": "string" + }, + "interval": { + "description": "Interval is how often the price recurs", + "type": "string" + }, + "intervalCount": { + "description": "The number of intervals. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks).", + "type": "integer", + "format": "int64" + }, + "usageType": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceSpec": { + "type": "object", + "properties": { + "active": { + "description": "Active indicates the price is active on the product", + "type": "boolean" + }, + "currency": { + "description": "Currency is the required three-letter ISO currency code The codes below were generated from https://stripe.com/docs/currencies", + "type": "string" + }, + "name": { + "description": "Name to be displayed in the Stripe dashboard, hidden from customers", + "type": "string" + }, + "recurring": { + "description": "Recurring defines the price's recurrence. The type of \"one_time\" is assumed if nil, otherwise type is \"recurring\"", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePriceRecurrence" + }, + "tiers": { + "description": "Tiers are Stripes billing tiers like", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier" + }, + "x-kubernetes-list-type": "atomic" + }, + "tiersMode": { + "description": "TiersMode is the stripe tier mode", + "type": "string" + }, + "unitAmount": { + "description": "UnitAmount in dollars. If present, billing_scheme is assumed to be per_unit", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePrivateOfferSpec": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeProductSpec": { + "type": "object", + "properties": { + "defaultPriceKey": { + "description": "DefaultPriceKey sets the default price for the product.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripePublicOfferSpec": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSetupIntent": { + "description": "StripeSetupIntent holds Stripe information about a SetupIntent", + "type": "object", + "properties": { + "clientSecret": { + "description": "The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.", + "type": "string" + }, + "id": { + "description": "The unique identifier for the SetupIntent.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSubscriptionSpec": { + "type": "object", + "properties": { + "collectionMethod": { + "description": "CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice", + "type": "string" + }, + "daysUntilDue": { + "description": "DaysUntilDue is applicable when collection method is send_invoice", + "type": "integer", + "format": "int64" + }, + "id": { + "description": "ID is the stripe subscription ID.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription": { + "description": "Subscription is the Schema for the subscriptions API This object represents the goal of having a subscription. Creators: self-registration controller, suger webhook Readers: org admins", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "Subscription", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent": { + "description": "SubscriptionIntent is the Schema for the subscriptionintents API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SubscriptionIntent", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntent" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SubscriptionIntentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentSpec": { + "description": "SubscriptionIntentSpec defines the desired state of SubscriptionIntent", + "type": "object", + "properties": { + "offerRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.OfferReference" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionIntentSpec" + }, + "type": { + "description": "The type of the subscription intent. Validate values: stripe, suger Default to stripe.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionIntentStatus": { + "description": "SubscriptionIntentStatus defines the observed state of SubscriptionIntent", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "paymentIntentName": { + "type": "string" + }, + "setupIntentName": { + "type": "string" + }, + "subscriptionName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem": { + "description": "SubscriptionItem defines a product within a subscription.", + "type": "object", + "properties": { + "key": { + "description": "Key is the item key within the subscription.", + "type": "string" + }, + "metadata": { + "description": "Metadata is an unstructured key value map stored with an item.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "product": { + "description": "Product is the Product object reference.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.ProductReference" + }, + "quantity": { + "description": "Quantity for this item.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Subscription" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SubscriptionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionReference": { + "description": "SubscriptionReference references a Subscription object.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionSpec": { + "description": "SubscriptionSpec defines the desired state of Subscription", + "type": "object", + "properties": { + "anchorDate": { + "description": "AnchorDate is a timestamp representing the first billing cycle end date. It is represented by seconds from the epoch on the Stripe side.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "cloudType": { + "description": "CloudType will validate resources like the consumption unit product are restricted to the correct cloud provider", + "type": "string" + }, + "description": { + "type": "string" + }, + "endDate": { + "description": "EndDate is a timestamp representing the date when the subscription will be ended. It is represented in RFC3339 form and is in UTC.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "endingBalanceCents": { + "description": "Ending balance for a subscription, this value is asynchrnously updated by billing-reporter and directly pulled from stripe's invoice object [1]. Negative at this value means that there are outstanding discount credits left for the customer. Nil implies that billing reporter hasn't run since creation and yet to set the value. [1] https://docs.stripe.com/api/invoices/object#invoice_object-ending_balance", + "type": "integer", + "format": "int64" + }, + "once": { + "description": "One-time items.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "parentSubscription": { + "description": "Reference to the parent subscription", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionReference" + }, + "recurring": { + "description": "Recurring items.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "startDate": { + "description": "StartDate is a timestamp representing the start date of the subscription. It is represented in RFC3339 form and is in UTC.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.StripeSubscriptionSpec" + }, + "suger": { + "description": "Suger defines the metadata for subscriptions from suger", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionSpec" + }, + "type": { + "description": "The type of the subscription. Validate values: stripe, suger Default to stripe.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatus": { + "description": "SubscriptionStatus defines the observed state of Subscription", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "items": { + "description": "the status of the subscription is designed to support billing agents, so it provides product and subscription items.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatusSubscriptionItem" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "pendingSetupIntent": { + "description": "PendingSetupIntent expresses the intention to establish a payment method for future payments. A subscription a usually still active in this case.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SetupIntentReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SubscriptionStatusSubscriptionItem": { + "type": "object", + "properties": { + "key": { + "description": "Key is the item key within the subscription.", + "type": "string" + }, + "product": { + "description": "Product is the Product object reference as a qualified name.", + "type": "string" + }, + "stripeID": { + "description": "The unique identifier for the Stripe subscription item.", + "type": "string" + }, + "sugerID": { + "description": "The unique identifier for the Suger entitlement item.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReview": { + "description": "SugerEntitlementReview is a request to find the organization with entitlement ID.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "SugerEntitlementReview", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewSpec": { + "type": "object", + "properties": { + "entitlementID": { + "description": "EntitlementID is the ID of the entitlement", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerEntitlementReviewStatus": { + "type": "object", + "properties": { + "buyerID": { + "description": "BuyerID is the ID of buyer associated with organization The first one will be returned when there are more than one are found.", + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "organization": { + "description": "Organization is the name of the organization matching the entitlement ID The first one will be returned when there are more than one are found.", + "type": "string" + }, + "partner": { + "description": "Partner is the partner associated with organization", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProduct": { + "type": "object", + "required": [ + "dimensionKey" + ], + "properties": { + "dimensionKey": { + "description": "DimensionKey is the metering dimension of the Suger product.", + "type": "string" + }, + "productID": { + "description": "ProductID is the suger product id.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProductSpec": { + "type": "object", + "properties": { + "dimensionKey": { + "description": "DimensionKey is the metering dimension of the Suger product. Deprecated: use Products", + "type": "string" + }, + "productID": { + "description": "ProductID is the suger product id. Deprecated: use Products", + "type": "string" + }, + "products": { + "description": "Products is the list of suger products.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerProduct" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionIntentSpec": { + "type": "object", + "properties": { + "entitlementID": { + "description": "EntitlementID is the suger entitlement ID. An entitlement is a contract that one buyer has purchased your product in the marketplace.", + "type": "string" + }, + "partner": { + "description": "The partner code of the entitlement.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.SugerSubscriptionSpec": { + "type": "object", + "required": [ + "entitlementID" + ], + "properties": { + "buyerID": { + "description": "BuyerID is the Suger internal ID of the buyer of the entitlement", + "type": "string" + }, + "entitlementID": { + "description": "ID is the Suger entitlement ID. Entitlement is the contract that one buyer has purchased your product in the marketplace.", + "type": "string" + }, + "partner": { + "description": "Partner is the partner of the entitlement", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock": { + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "TestClock", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClock" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "billing.streamnative.io", + "kind": "TestClockList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockSpec": { + "type": "object", + "required": [ + "frozenTime" + ], + "properties": { + "frozenTime": { + "description": "The current time of the clock.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "name": { + "description": "The clock display name.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.TestClockStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "stripeID": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.billing.v1alpha1.Tier": { + "type": "object", + "properties": { + "flatAmount": { + "description": "FlatAmount is the flat billing amount for an entire tier, regardless of the number of units in the tier, in dollars.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "unitAmount": { + "description": "UnitAmount is the per-unit billing amount for each individual unit for which this tier applies, in dollars.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "upTo": { + "description": "UpTo specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use `inf` to define a fallback tier.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey": { + "description": "APIKey", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeySpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "APIKey", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKey" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "APIKeyList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeySpec": { + "description": "APIKeySpec defines the desired state of APIKey", + "type": "object", + "properties": { + "description": { + "description": "Description is a user defined description of the key", + "type": "string" + }, + "encryptionKey": { + "description": "EncryptionKey is a public key to encrypt the API Key token. Please provide an RSA key with modulus length of at least 2048 bits. See: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey#rsa_key_pair_generation See: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey#subjectpublickeyinfo_export", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptionKey" + }, + "expirationTime": { + "description": "Expiration is a duration (as a golang duration string) that defines how long this API key is valid for. This can only be set on initial creation and not updated later", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "instanceName": { + "description": "InstanceName is the name of the instance this API key is for", + "type": "string" + }, + "revoke": { + "description": "Revoke is a boolean that defines if the token of this API key should be revoked.", + "type": "boolean" + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the service account this API key is for", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.APIKeyStatus": { + "description": "APIKeyStatus defines the observed state of ServiceAccount", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed service account conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "encryptedToken": { + "description": "Token is the encrypted security token issued for the key.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptedToken" + }, + "expiresAt": { + "description": "ExpiresAt is a timestamp of when the key expires", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "issuedAt": { + "description": "IssuedAt is a timestamp of when the key was issued, stored as an epoch in seconds", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "keyId": { + "description": "KeyId is a generated field that is a uid for the token", + "type": "string" + }, + "revokedAt": { + "description": "ExpiresAt is a timestamp of when the key was revoked, it triggers revocation action", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "token": { + "description": "Token is the plaintext security token issued for the key.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AWSCloudConnection": { + "type": "object", + "required": [ + "accountId" + ], + "properties": { + "accountId": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AmqpConfig": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ApiKeyConfig": { + "description": "ApiKeyConfig defines apikey config of PulsarInstance", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AuditLog": { + "type": "object", + "required": [ + "categories" + ], + "properties": { + "categories": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "set" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy": { + "description": "AutoScalingPolicy defines the min/max replicas for component is autoscaling enabled.", + "type": "object", + "required": [ + "maxReplicas" + ], + "properties": { + "maxReplicas": { + "type": "integer", + "format": "int32" + }, + "minReplicas": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AwsPoolMemberSpec": { + "type": "object", + "required": [ + "region", + "clusterName" + ], + "properties": { + "accessKeyID": { + "description": "AWS Access key ID", + "type": "string" + }, + "adminRoleARN": { + "description": "AdminRoleARN is the admin role to assume (or empty to use the manager's identity).", + "type": "string" + }, + "clusterName": { + "description": "ClusterName is the EKS cluster name.", + "type": "string" + }, + "permissionBoundaryARN": { + "description": "PermissionBoundaryARN refers to the permission boundary to assign to IAM roles.", + "type": "string" + }, + "region": { + "description": "Region is the AWS region of the cluster.", + "type": "string" + }, + "secretAccessKey": { + "description": "AWS Secret Access Key", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzureConnection": { + "type": "object", + "required": [ + "subscriptionId", + "tenantId", + "clientId", + "supportClientId" + ], + "properties": { + "clientId": { + "type": "string" + }, + "subscriptionId": { + "type": "string" + }, + "supportClientId": { + "type": "string" + }, + "tenantId": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzurePoolMemberSpec": { + "type": "object", + "required": [ + "clusterName", + "resourceGroup", + "subscriptionID", + "location", + "clientID", + "tenantID" + ], + "properties": { + "clientID": { + "description": "ClientID is the Azure client ID of which the GSA can impersonate.", + "type": "string" + }, + "clusterName": { + "description": "ClusterName is the AKS cluster name.", + "type": "string" + }, + "location": { + "description": "Location is the Azure location of the cluster.", + "type": "string" + }, + "resourceGroup": { + "description": "ResourceGroup is the Azure resource group of the cluster.", + "type": "string" + }, + "subscriptionID": { + "description": "SubscriptionID is the Azure subscription ID of the cluster.", + "type": "string" + }, + "tenantID": { + "description": "TenantID is the Azure tenant ID of the client.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BillingAccountSpec": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeper": { + "type": "object", + "required": [ + "replicas" + ], + "properties": { + "autoScalingPolicy": { + "description": "AutoScalingPolicy configure autoscaling for bookkeeper", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "replicas": { + "description": "Replicas is the expected size of the bookkeeper cluster.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperNodeResourceSpec" + }, + "resources": { + "description": "CPU and memory resources", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookkeeperNodeResource" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperNodeResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type, take lower precedence over Resources", + "type": "string" + }, + "storageSize": { + "description": "StorageSize defines the size of the storage", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperSetReference": { + "description": "BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookkeeperNodeResource": { + "description": "Represents resource spec for bookie nodes", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "directPercentage": { + "description": "Percentage of direct memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "heapPercentage": { + "description": "Percentage of heap memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "journalDisk": { + "description": "JournalDisk size. Set to zero equivalent to use default value", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "ledgerDisk": { + "description": "LedgerDisk size. Set to zero equivalent to use default value", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "memory": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Broker": { + "type": "object", + "required": [ + "replicas" + ], + "properties": { + "autoScalingPolicy": { + "description": "AutoScalingPolicy configure autoscaling for broker", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AutoScalingPolicy" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "replicas": { + "description": "Replicas is the expected size of the broker cluster.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster Deprecated: use `Resources` instead", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BrokerNodeResourceSpec" + }, + "resources": { + "description": "Represents broker resource spec.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DefaultNodeResource" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BrokerNodeResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type, take lower precedence over Resources", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Chain": { + "description": "Chain specifies a named chain for a role definition array.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "roleChain": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection": { + "description": "CloudConnection represents a connection to the customer's cloud environment Currently, this object *only* is used to serve as an inventory of customer connections and make sure that they remain valid. In the future, we might consider this object to be used by other objects, but existing APIs already take care of that\n\nOther internal options are defined in the CloudConnectionBackendConfig type which is the \"companion\" CRD to this user facing API", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudConnection", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnection" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudConnectionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionSpec": { + "description": "CloudConnectionSpec defines the desired state of CloudConnection", + "type": "object", + "required": [ + "type" + ], + "properties": { + "aws": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AWSCloudConnection" + }, + "azure": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzureConnection" + }, + "gcp": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCPCloudConnection" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudConnectionStatus": { + "description": "CloudConnectionStatus defines the observed state of CloudConnection", + "type": "object", + "properties": { + "availableLocations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RegionInfo" + }, + "x-kubernetes-list-map-keys": [ + "region" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "region", + "x-kubernetes-patch-strategy": "merge" + }, + "awsPolicyVersion": { + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment": { + "description": "CloudEnvironment represents the infrastructure environment for running pulsar clusters, consisting of Kubernetes cluster and set of applications", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudEnvironment", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironment" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "CloudEnvironmentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentSpec": { + "description": "CloudEnvironmentSpec defines the desired state of CloudEnvironment", + "type": "object", + "properties": { + "cloudConnectionName": { + "description": "CloudConnectionName references to the CloudConnection object", + "type": "string" + }, + "defaultGateway": { + "description": "DefaultGateway is the default endpoint type to access pulsar clusters on this CloudEnvironment Users can declare new PulsarGateway for different endpoint type If not specified, public pulsar cluster endpoint will be used", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Gateway" + }, + "dns": { + "description": "DNS defines the DNS domain and how should the DNS zone be managed. The DNS zone will be managed by SN by default", + "x-kubernetes-map-type": "atomic", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DNS" + }, + "network": { + "description": "Network defines how to provision the network infrastructure A dedicated VPC with predefined CIDRs will be provisioned by default.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Network" + }, + "region": { + "description": "Region defines in which region will resources be deployed", + "type": "string" + }, + "zone": { + "description": "Zone defines in which availability zone will resources be deployed If specified, the cloud environment will be zonal. Default to unspecified and regional cloud environment", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.CloudEnvironmentStatus": { + "description": "CloudEnvironmentStatus defines the observed state of CloudEnvironment", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions contains details for the current state of underlying resource", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "defaultGateway": { + "description": "DefaultGateway tell the status of the default pulsar gateway", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GatewayStatus" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole": { + "description": "ClusterRole", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRole", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding": { + "description": "ClusterRoleBinding", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRoleBinding", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRoleBindingList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingSpec": { + "description": "ClusterRoleBindingSpec defines the desired state of ClusterRoleBinding", + "type": "object", + "required": [ + "subjects", + "roleRef" + ], + "properties": { + "roleRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef" + }, + "subjects": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleBindingStatus": { + "description": "ClusterRoleBindingStatus defines the observed state of ClusterRoleBinding", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRole" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ClusterRoleList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleSpec": { + "description": "ClusterRoleSpec defines the desired state of ClusterRole", + "type": "object", + "properties": { + "permissions": { + "description": "Permissions Designed for general permission format\n SERVICE.RESOURCE.VERB", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ClusterRoleStatus": { + "description": "ClusterRoleStatus defines the observed state of ClusterRole", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failedClusters": { + "description": "FailedClusters is an array of clusters which failed to apply the ClusterRole resources.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup": { + "description": "ConditionGroup Deprecated", + "type": "object", + "required": [ + "conditions" + ], + "properties": { + "conditionGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup" + } + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingCondition" + } + }, + "relation": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Config": { + "type": "object", + "properties": { + "auditLog": { + "description": "AuditLog controls the custom config of audit log.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AuditLog" + }, + "custom": { + "description": "Custom accepts custom configurations.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "functionEnabled": { + "description": "FunctionEnabled controls whether function is enabled.", + "type": "boolean" + }, + "lakehouseStorage": { + "description": "LakehouseStorage controls the lakehouse storage config.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.LakehouseStorageConfig" + }, + "protocols": { + "description": "Protocols controls the protocols enabled in brokers.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ProtocolsConfig" + }, + "transactionEnabled": { + "description": "TransactionEnabled controls whether transaction is enabled.", + "type": "boolean" + }, + "websocketEnabled": { + "description": "WebsocketEnabled controls whether websocket is enabled.", + "type": "boolean" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DNS": { + "description": "DNS defines the DNS domain and how should the DNS zone be managed. ID and Name must be specified at the same time", + "type": "object", + "properties": { + "id": { + "description": "ID is the identifier of a DNS Zone. It can be AWS zone id, GCP zone name, and Azure zone id If ID is specified, an existing zone will be used. Otherwise, a new DNS zone will be created and managed by SN.", + "type": "string" + }, + "name": { + "description": "Name is the dns domain name. It can be AWS zone name, GCP dns name and Azure zone name.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DefaultNodeResource": { + "description": "Represents resource spec for nodes", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "directPercentage": { + "description": "Percentage of direct memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "heapPercentage": { + "description": "Percentage of heap memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "memory": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "tls": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DomainTLS" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.DomainTLS": { + "type": "object", + "properties": { + "certificateName": { + "description": "CertificateName specifies the certificate object name to use.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptedToken": { + "description": "EncryptedToken is token that is encrypted using an encryption key.", + "type": "object", + "properties": { + "jwe": { + "description": "JWE is the token as a JSON Web Encryption (JWE) message. For RSA public keys, the key encryption algorithm is RSA-OAEP, and the content encryption algorithm is AES GCM.", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EncryptionKey": { + "description": "EncryptionKey specifies a public key for encryption purposes. Either a PEM or JWK must be specified.", + "type": "object", + "properties": { + "jwk": { + "description": "JWK is a JWK-encoded public key.", + "type": "string" + }, + "pem": { + "description": "PEM is a PEM-encoded public key in PKIX, ASN.1 DER form (\"spki\" format).", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EndpointAccess": { + "type": "object", + "properties": { + "gateway": { + "description": "Gateway is the name of the PulsarGateway to use for the endpoint. The default gateway of the pool member will be used if not specified.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecConfig": { + "description": "ExecConfig specifies a command to provide client credentials. The command is exec'd and outputs structured stdout holding credentials.\n\nSee the client.authentiction.k8s.io API group for specifications of the exact input and output format", + "type": "object", + "required": [ + "command" + ], + "properties": { + "apiVersion": { + "description": "Preferred input version of the ExecInfo. The returned ExecCredentials MUST use the same encoding version as the input.", + "type": "string" + }, + "args": { + "description": "Arguments to pass to the command when executing it.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Command to execute.", + "type": "string" + }, + "env": { + "description": "Env defines additional environment variables to expose to the process. These are unioned with the host's environment, as well as variables client-go uses to pass argument to the plugin.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecEnvVar" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecEnvVar": { + "description": "ExecEnvVar is used for setting environment variables when executing an exec-based credential plugin.", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster": { + "type": "object", + "required": [ + "name", + "namespace", + "reason" + ], + "properties": { + "name": { + "description": "Name is the Cluster's name", + "type": "string" + }, + "namespace": { + "description": "Namespace is the Cluster's namespace", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedClusterRole": { + "type": "object", + "required": [ + "name", + "reason" + ], + "properties": { + "name": { + "description": "Name is the ClusterRole's name", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRole": { + "type": "object", + "required": [ + "name", + "namespace", + "reason" + ], + "properties": { + "name": { + "description": "Name is the Role's name", + "type": "string" + }, + "namespace": { + "description": "Namespace is the Role's namespace", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRoleBinding": { + "type": "object", + "required": [ + "name", + "namespace", + "reason" + ], + "properties": { + "name": { + "description": "Name is the RoleBinding's name", + "type": "string" + }, + "namespace": { + "description": "Namespace is the RoleBinding's namespace", + "type": "string" + }, + "reason": { + "description": "Reason is the failed reason", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCPCloudConnection": { + "type": "object", + "required": [ + "projectId" + ], + "properties": { + "projectId": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudOrganizationSpec": { + "type": "object", + "required": [ + "project" + ], + "properties": { + "project": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolMemberSpec": { + "type": "object", + "required": [ + "location" + ], + "properties": { + "adminServiceAccount": { + "description": "AdminServiceAccount is the service account to be impersonated, or leave it empty to call the API without impersonation.", + "type": "string" + }, + "clusterName": { + "description": "ClusterName is the GKE cluster name.", + "type": "string" + }, + "initialNodeCount": { + "description": "Deprecated", + "type": "integer", + "format": "int32" + }, + "location": { + "type": "string" + }, + "machineType": { + "description": "Deprecated", + "type": "string" + }, + "maxNodeCount": { + "description": "Deprecated", + "type": "integer", + "format": "int32" + }, + "project": { + "description": "Project is the Google project containing the GKE cluster.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolSpec": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Gateway": { + "description": "Gateway defines the access of pulsar cluster endpoint", + "type": "object", + "properties": { + "access": { + "description": "Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public.", + "type": "string" + }, + "privateService": { + "description": "PrivateService is the configuration of the private endpoint service, only can be configured when the access type is private.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GatewayStatus": { + "type": "object", + "properties": { + "privateServiceIds": { + "description": "PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GenericPoolMemberSpec": { + "type": "object", + "required": [ + "location" + ], + "properties": { + "endpoint": { + "description": "Endpoint is *either* a full URL, or a hostname/port to point to the master", + "type": "string" + }, + "location": { + "description": "Location is the location of the cluster.", + "type": "string" + }, + "masterAuth": { + "description": "MasterAuth is the authentication information for accessing the master endpoint.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MasterAuth" + }, + "tlsServerName": { + "description": "TLSServerName is the SNI header name to set, overridding the default. This is just the hostname and no port", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool": { + "description": "IdentityPool", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "IdentityPool", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPool" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "IdentityPoolList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolSpec": { + "description": "IdentityPoolSpec defines the desired state of IdentityPool", + "type": "object", + "required": [ + "description", + "providerName", + "expression", + "authType" + ], + "properties": { + "authType": { + "type": "string" + }, + "description": { + "type": "string" + }, + "expression": { + "type": "string" + }, + "providerName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.IdentityPoolStatus": { + "description": "IdentityPoolStatus defines the desired state of IdentityPool", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.InstalledCSV": { + "type": "object", + "required": [ + "name", + "phase" + ], + "properties": { + "name": { + "type": "string" + }, + "phase": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Invitation": { + "type": "object", + "required": [ + "expiration", + "decision" + ], + "properties": { + "decision": { + "description": "Decision indicates the user's response to the invitation", + "type": "string" + }, + "expiration": { + "description": "Expiration indicates when the invitation expires", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.KafkaConfig": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.LakehouseStorageConfig": { + "type": "object", + "required": [ + "catalogCredentials", + "catalogConnectionUrl", + "catalogWarehouse" + ], + "properties": { + "catalogConnectionUrl": { + "type": "string" + }, + "catalogCredentials": { + "description": "todo: maybe we need to support mount secrets as the catalog credentials?", + "type": "string" + }, + "catalogType": { + "type": "string" + }, + "catalogWarehouse": { + "type": "string" + }, + "lakehouseType": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MaintenanceWindow": { + "type": "object", + "required": [ + "window", + "recurrence" + ], + "properties": { + "recurrence": { + "description": "Recurrence define the maintenance execution cycle, 0~6, to express Monday to Sunday", + "type": "string" + }, + "window": { + "description": "Window define the maintenance execution window", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Window" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MasterAuth": { + "type": "object", + "properties": { + "clientCertificate": { + "description": "ClientCertificate is base64-encoded public certificate used by clients to authenticate to the cluster endpoint.", + "type": "string" + }, + "clientKey": { + "description": "ClientKey is base64-encoded private key used by clients to authenticate to the cluster endpoint.", + "type": "string" + }, + "clusterCaCertificate": { + "description": "ClusterCaCertificate is base64-encoded public certificate that is the root of trust for the cluster.", + "type": "string" + }, + "exec": { + "description": "Exec specifies a custom exec-based authentication plugin for the kubernetes cluster.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ExecConfig" + }, + "password": { + "description": "Password is the password to use for HTTP basic authentication to the master endpoint.", + "type": "string" + }, + "username": { + "description": "Username is the username to use for HTTP basic authentication to the master endpoint.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MqttConfig": { + "description": "MqttConfig defines the mqtt protocol config", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Network": { + "description": "Network defines how to provision the network infrastructure CIDR and ID cannot be specified at the same time. When ID is specified, the existing VPC will be used. Otherwise, a new VPC with the specified or default CIDR will be created", + "type": "object", + "properties": { + "cidr": { + "description": "CIDR determines the CIDR of the VPC to create if specified", + "type": "string" + }, + "id": { + "description": "ID is the id or the name of an existing VPC when specified. It's vpc id in AWS, vpc network name in GCP and vnet name in Azure", + "type": "string" + }, + "subnetCIDR": { + "description": "SubnetCIDR determines the CIDR of the subnet to create if specified required for Azure", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OAuth2Config": { + "description": "OAuth2Config define oauth2 config of PulsarInstance", + "type": "object", + "properties": { + "tokenLifetimeSeconds": { + "description": "TokenLifetimeSeconds access token lifetime (in seconds) for the API. Default value is 86,400 seconds (24 hours). Maximum value is 2,592,000 seconds (30 days) Document link: https://auth0.com/docs/secure/tokens/access-tokens/update-access-token-lifetime", + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider": { + "description": "OIDCProvider", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "OIDCProvider", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProvider" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "OIDCProviderList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderSpec": { + "description": "OIDCProviderSpec defines the desired state of OIDCProvider", + "type": "object", + "required": [ + "description", + "discoveryUrl" + ], + "properties": { + "description": { + "type": "string" + }, + "discoveryUrl": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OIDCProviderStatus": { + "description": "OIDCProviderStatus defines the observed state of OIDCProvider", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization": { + "description": "Organization", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Organization", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Organization" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "OrganizationList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSpec": { + "description": "OrganizationSpec defines the desired state of Organization", + "type": "object", + "properties": { + "awsMarketplaceToken": { + "type": "string" + }, + "billingAccount": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BillingAccountSpec" + }, + "billingParent": { + "description": "Organiztion ID of this org's billing parent. Once set, this org will inherit parent org's subscription, paymentMetthod and have \"inherited\" as billing type", + "type": "string" + }, + "billingType": { + "description": "BillingType indicates the method of subscription that the organization uses. It is primarily consumed by the cloud-manager to be able to distinguish between invoiced subscriptions.", + "type": "string" + }, + "cloudFeature": { + "description": "CloudFeature indicates features this org wants to enable/disable", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "defaultPoolRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef" + }, + "displayName": { + "description": "Name to display to our users", + "type": "string" + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain" + }, + "x-kubernetes-list-type": "atomic" + }, + "gcloud": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudOrganizationSpec" + }, + "metadata": { + "description": "Metadata is user-visible (and possibly editable) metadata.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "stripe": { + "description": "Stripe holds information about the collection method for a stripe subscription, also storing \"days until due\" when set to send invoices.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStripe" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSuger" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStatus": { + "description": "OrganizationStatus defines the observed state of Organization", + "type": "object", + "properties": { + "billingParent": { + "description": "reconciled parent of this organization. if spec.BillingParent is set but status.BillingParent is not set, then reconciler will create a parent child relationship if spec.BillingParent is not set but status.BillingParent is set, then reconciler will delete parent child relationship if spec.BillingParent is set but status.BillingParent is set and same, then reconciler will do nothing if spec.BillingParent is set but status.Billingparent is set and different, then reconciler will delete status.Billingparent relationship and create new spec.BillingParent relationship", + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "subscriptionName": { + "description": "Indicates the active subscription for this organization. This information is available when the Subscribed condition is true.", + "type": "string" + }, + "supportPlan": { + "description": "returns support plan of current subscription. blank, implies either no support plan or legacy support", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationStripe": { + "type": "object", + "properties": { + "collectionMethod": { + "description": "CollectionMethod is how payment on a subscription is to be collected, either charge_automatically or send_invoice", + "type": "string" + }, + "daysUntilDue": { + "description": "DaysUntilDue sets the due date for the invoice. Applicable when collection method is send_invoice.", + "type": "integer", + "format": "int64" + }, + "keepInDraft": { + "description": "KeepInDraft disables auto-advance of the invoice state. Applicable when collection method is send_invoice.", + "type": "boolean" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OrganizationSuger": { + "type": "object", + "required": [ + "buyerIDs" + ], + "properties": { + "buyerIDs": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "set" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool": { + "description": "Pool", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Pool", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Pool" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember": { + "description": "PoolMember", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolMember", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberConnectionOptionsSpec": { + "type": "object", + "properties": { + "proxyUrl": { + "description": "ProxyUrl overrides the URL to K8S API. This is most typically done for SNI proxying. If ProxyUrl is set but TLSServerName is not, the *original* SNI value from the default endpoint will be used. If you also want to change the SNI header, you must also set TLSServerName.", + "type": "string" + }, + "tlsServerName": { + "description": "TLSServerName is the SNI header name to set, overriding the default endpoint. This should include the hostname value, with no port.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySelector": { + "type": "object", + "properties": { + "matchLabels": { + "description": "One or more labels that indicate a specific set of pods on which a policy should be applied. The scope of label search is restricted to the configuration namespace in which the resource is present.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySpec": { + "type": "object", + "required": [ + "selector", + "tls" + ], + "properties": { + "selector": { + "description": "Selector for the gateway workload pods to apply to.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySelector" + }, + "tls": { + "description": "The TLS configuration for the gateway.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewayTls" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewayTls": { + "type": "object", + "required": [ + "certSecretName" + ], + "properties": { + "certSecretName": { + "description": "The TLS secret to use (in the namespace of the gateway workload pods).", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioSpec": { + "type": "object", + "required": [ + "revision" + ], + "properties": { + "gateway": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioGatewaySpec" + }, + "revision": { + "description": "Revision is the Istio revision tag.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMember" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolMemberList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberMonitoring": { + "type": "object", + "required": [ + "project", + "vminsertBackendServiceName", + "vmagentSecretRef", + "vmTenant" + ], + "properties": { + "project": { + "description": "Project is the Google project containing UO components.", + "type": "string" + }, + "vmTenant": { + "description": "VMTenant identifies the VM tenant to use (accountID or accountID:projectID).", + "type": "string" + }, + "vmagentSecretRef": { + "description": "VMagentSecretRef identifies the Kubernetes secret to store agent credentials into.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretReference" + }, + "vminsertBackendServiceName": { + "description": "VMinsertBackendServiceName identifies the backend service for vminsert.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec": { + "type": "object", + "required": [ + "catalog", + "channel" + ], + "properties": { + "catalog": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecCatalog" + }, + "channel": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecChannel" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecCatalog": { + "type": "object", + "required": [ + "image", + "pollInterval" + ], + "properties": { + "image": { + "type": "string" + }, + "pollInterval": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Duration" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpecChannel": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberSpec": { + "description": "PoolMemberSpec defines the desired state of PoolMember", + "type": "object", + "required": [ + "type", + "poolName" + ], + "properties": { + "aws": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AwsPoolMemberSpec" + }, + "azure": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AzurePoolMemberSpec" + }, + "connectionOptions": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberConnectionOptionsSpec" + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain" + }, + "x-kubernetes-list-type": "atomic" + }, + "functionMesh": { + "description": "Deprecated", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec" + }, + "gcloud": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolMemberSpec" + }, + "generic": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GenericPoolMemberSpec" + }, + "istio": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberIstioSpec" + }, + "monitoring": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberMonitoring" + }, + "poolName": { + "type": "string" + }, + "pulsar": { + "description": "Deprecated", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberPulsarSpec" + }, + "supportAccess": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SupportAccessOptionsSpec" + }, + "taints": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Taint" + }, + "x-kubernetes-list-map-keys": [ + "key" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "tieredStorage": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberTieredStorageSpec" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberStatus": { + "description": "PoolMemberStatus defines the observed state of PoolMember", + "type": "object", + "required": [ + "observedGeneration", + "deploymentType" + ], + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "deploymentType": { + "type": "string" + }, + "installedCSVs": { + "description": "InstalledCSVs shows the name and status of installed operator versions", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.InstalledCSV" + }, + "x-kubernetes-list-type": "atomic" + }, + "observedGeneration": { + "description": "ObservedGeneration is the most recent generation observed by the PoolMember controller.", + "type": "integer", + "format": "int64" + }, + "serverVersion": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberTieredStorageSpec": { + "description": "PoolMemberTieredStorageSpec is used to configure tiered storage for a pool member. It only contains some common fields for all the pulsar cluster in this pool member.", + "type": "object", + "properties": { + "bucketName": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption": { + "description": "PoolOption", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolOption", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOption" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PoolOptionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionLocation": { + "type": "object", + "required": [ + "location" + ], + "properties": { + "displayName": { + "type": "string" + }, + "location": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionSpec": { + "description": "PoolOptionSpec defines a reference to a Pool", + "type": "object", + "required": [ + "cloudType", + "poolRef", + "locations", + "deploymentType" + ], + "properties": { + "cloudType": { + "type": "string" + }, + "deploymentType": { + "type": "string" + }, + "features": { + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "locations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionLocation" + }, + "x-kubernetes-list-type": "atomic" + }, + "poolRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolOptionStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed PoolOption conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef": { + "description": "PoolRef is a reference to a pool with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolSpec": { + "description": "PoolSpec defines the desired state of Pool", + "type": "object", + "required": [ + "type" + ], + "properties": { + "cloudFeature": { + "description": "CloudFeature indicates features this pool wants to enable/disable by default for all Pulsar clusters created on it", + "type": "object", + "additionalProperties": { + "type": "boolean" + } + }, + "deploymentType": { + "description": "This feild is used by `cloud-manager` and `cloud-billing-reporter` to potentially charge different rates for our customers. It is imperative that we correctly set this field if a pool is a \"Pro\" tier or no tier.", + "type": "string" + }, + "gcloud": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.GCloudPoolSpec" + }, + "sharing": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SharingConfig" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolStatus": { + "description": "PoolStatus defines the observed state of Pool", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed pool conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService": { + "type": "object", + "properties": { + "allowedIds": { + "description": "AllowedIds is the list of Ids that are allowed to connect to the private endpoint service, only can be configured when the access type is private, private endpoint service will be disabled if the whitelist is empty.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId": { + "type": "object", + "properties": { + "id": { + "description": "Id is the identifier of private service It is endpoint service name in AWS, psc attachment id in GCP, private service alias in Azure", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ProtocolsConfig": { + "type": "object", + "properties": { + "amqp": { + "description": "Amqp controls whether to enable Amqp protocol in brokers", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.AmqpConfig" + }, + "kafka": { + "description": "Kafka controls whether to enable Kafka protocol in brokers", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.KafkaConfig" + }, + "mqtt": { + "description": "Mqtt controls whether to enable mqtt protocol in brokers", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MqttConfig" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster": { + "description": "PulsarCluster", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarCluster", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus": { + "type": "object", + "properties": { + "readyReplicas": { + "description": "ReadyReplicas is the number of ready servers in the cluster", + "type": "integer", + "format": "int32" + }, + "replicas": { + "description": "Replicas is the number of servers in the cluster", + "type": "integer", + "format": "int32" + }, + "updatedReplicas": { + "description": "UpdatedReplicas is the number of servers that has been updated to the latest configuration", + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarCluster" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarClusterList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterSpec": { + "description": "PulsarClusterSpec defines the desired state of PulsarCluster", + "type": "object", + "required": [ + "instanceName", + "location", + "broker" + ], + "properties": { + "bookKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeperSetReference" + }, + "bookkeeper": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.BookKeeper" + }, + "broker": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Broker" + }, + "config": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Config" + }, + "displayName": { + "description": "Name to display to our users", + "type": "string" + }, + "endpointAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.EndpointAccess" + }, + "x-kubernetes-list-map-keys": [ + "gateway" + ], + "x-kubernetes-list-type": "map" + }, + "instanceName": { + "type": "string" + }, + "location": { + "type": "string" + }, + "maintenanceWindow": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.MaintenanceWindow" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "releaseChannel": { + "type": "string" + }, + "serviceEndpoints": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarServiceEndpoint" + }, + "x-kubernetes-list-type": "atomic" + }, + "tolerations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration" + }, + "x-kubernetes-list-type": "atomic" + }, + "zooKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ZooKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterStatus": { + "description": "PulsarClusterStatus defines the observed state of PulsarCluster", + "type": "object", + "properties": { + "bookkeeper": { + "description": "Bookkeeper is the status of bookkeeper component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + }, + "broker": { + "description": "Broker is the status of broker component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "deploymentType": { + "description": "Deployment type set via associated pool", + "type": "string" + }, + "instanceType": { + "description": "Instance type, i.e. serverless or default", + "type": "string" + }, + "oxia": { + "description": "Oxia is the status of oxia component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + }, + "rbacStatus": { + "description": "RBACStatus record ClusterRole/Role/RoleBinding which failed to apply to the Cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RBACStatus" + }, + "zookeeper": { + "description": "Zookeeper is the status of zookeeper component in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarClusterComponentStatus" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway": { + "description": "PulsarGateway comprises resources for exposing pulsar endpoint, including the Ingress Gateway in PoolMember and corresponding Private Endpoint Service in Cloud Provider.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewaySpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarGateway", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGateway" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarGatewayList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewaySpec": { + "type": "object", + "properties": { + "access": { + "description": "Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public.", + "type": "string" + }, + "domains": { + "description": "Domains is the list of domain suffix that the pulsar gateway will serve. This is automatically generated based on the PulsarGateway name and PoolMember domain.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Domain" + }, + "x-kubernetes-list-type": "atomic" + }, + "poolMemberRef": { + "description": "PoolMemberRef is the reference to the PoolMember that the PulsarGateway will be deployed.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "privateService": { + "description": "PrivateService is the configuration of the private endpoint service, only can be configured when the access type is private.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateService" + }, + "topologyAware": { + "description": "TopologyAware is the configuration of the topology aware feature of the pulsar gateway.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.TopologyAware" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarGatewayStatus": { + "type": "object", + "required": [ + "observedGeneration" + ], + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "ObservedGeneration is the most recent generation observed by the pulsargateway controller.", + "type": "integer", + "format": "int64" + }, + "privateServiceIds": { + "description": "PrivateServiceIds are the id of the private endpoint services, only exposed when the access type is private.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PrivateServiceId" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance": { + "description": "PulsarInstance", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarInstance", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceAuth": { + "description": "PulsarInstanceAuth defines auth section of PulsarInstance", + "type": "object", + "properties": { + "apikey": { + "description": "ApiKey configuration", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ApiKeyConfig" + }, + "oauth2": { + "description": "OAuth2 configuration", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.OAuth2Config" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstance" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "PulsarInstanceList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceSpec": { + "description": "PulsarInstanceSpec defines the desired state of PulsarInstance", + "type": "object", + "required": [ + "availabilityMode" + ], + "properties": { + "auth": { + "description": "Auth defines the auth section of the PulsarInstance", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceAuth" + }, + "availabilityMode": { + "description": "AvailabilityMode decides whether pods of the same type in pulsar should be in one zone or multiple zones", + "type": "string" + }, + "plan": { + "description": "Plan is the subscription plan, will create a stripe subscription if not empty deprecated: 1.16", + "type": "string" + }, + "poolRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolRef" + }, + "type": { + "description": "Type defines the instance specialization type: - standard: a standard deployment of Pulsar, BookKeeper, and ZooKeeper. - dedicated: a dedicated deployment of classic engine or ursa engine. - serverless: a serverless deployment of Pulsar, shared BookKeeper, and shared oxia. - byoc: bring your own cloud.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatus": { + "description": "PulsarInstanceStatus defines the observed state of PulsarInstance", + "type": "object", + "required": [ + "auth" + ], + "properties": { + "auth": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuth" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuth": { + "type": "object", + "required": [ + "type", + "oauth2" + ], + "properties": { + "oauth2": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuthOAuth2" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarInstanceStatusAuthOAuth2": { + "type": "object", + "required": [ + "issuerURL", + "audience" + ], + "properties": { + "audience": { + "type": "string" + }, + "issuerURL": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PulsarServiceEndpoint": { + "type": "object", + "required": [ + "dnsName" + ], + "properties": { + "dnsName": { + "type": "string" + }, + "gateway": { + "description": "Gateway is the name of the PulsarGateway to use for the endpoint, will be empty if endpointAccess is not configured.", + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RBACStatus": { + "type": "object", + "properties": { + "failedClusterRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedClusterRole" + }, + "x-kubernetes-list-type": "atomic" + }, + "failedRoleBindings": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRoleBinding" + }, + "x-kubernetes-list-type": "atomic" + }, + "failedRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedRole" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RegionInfo": { + "type": "object", + "required": [ + "region", + "zones" + ], + "properties": { + "region": { + "type": "string" + }, + "zones": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role": { + "description": "Role", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Role", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding": { + "description": "RoleBinding", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "RoleBinding", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingCondition": { + "description": "RoleBindingCondition Deprecated", + "type": "object", + "properties": { + "operator": { + "type": "integer", + "format": "int32" + }, + "srn": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Srn" + }, + "type": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "RoleBindingList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingSpec": { + "description": "RoleBindingSpec defines the desired state of RoleBinding", + "type": "object", + "required": [ + "subjects", + "roleRef" + ], + "properties": { + "cel": { + "type": "string" + }, + "conditionGroup": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ConditionGroup" + }, + "roleRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef" + }, + "subjects": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleBindingStatus": { + "description": "RoleBindingStatus defines the observed state of RoleBinding", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failedClusters": { + "description": "FailedClusters is an array of clusters which failed to apply the ClusterRole resources.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition": { + "type": "object", + "properties": { + "role": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Role" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "RoleList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleRef": { + "type": "object", + "required": [ + "kind", + "name", + "apiGroup" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleSpec": { + "description": "RoleSpec defines the desired state of Role", + "type": "object", + "properties": { + "permissions": { + "description": "Permissions Designed for general permission format\n SERVICE.RESOURCE.VERB", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleStatus": { + "description": "RoleStatus defines the observed state of Role", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failedClusters": { + "description": "FailedClusters is an array of clusters which failed to apply the ClusterRole resources.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.FailedCluster" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret": { + "description": "Secret", + "type": "object", + "required": [ + "instanceName", + "location" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "data": { + "description": "the value should be base64 encoded", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "instanceName": { + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "location": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "poolMemberRef": { + "description": "PoolMemberRef is the pool member to deploy the secret. admission controller will infer this information automatically", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretStatus" + }, + "tolerations": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration" + }, + "x-kubernetes-list-type": "atomic" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "Secret", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Secret" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "SecretList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretReference": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretSpec": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SecretStatus": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistration": { + "description": "SelfRegistration", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "SelfRegistration", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationAws": { + "type": "object", + "required": [ + "registrationToken" + ], + "properties": { + "registrationToken": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSpec": { + "description": "SelfRegistrationSpec defines the desired state of SelfRegistration", + "type": "object", + "required": [ + "displayName", + "type" + ], + "properties": { + "aws": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationAws" + }, + "displayName": { + "type": "string" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "stripe": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationStripe" + }, + "suger": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSuger" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationStatus": { + "description": "SelfRegistrationStatus defines the observed state of SelfRegistration", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationStripe": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SelfRegistrationSuger": { + "type": "object", + "required": [ + "entitlementID" + ], + "properties": { + "entitlementID": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount": { + "description": "ServiceAccount", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccount", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding": { + "description": "ServiceAccountBinding", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccountBinding", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBinding" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccountBindingList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingSpec": { + "description": "ServiceAccountBindingSpec defines the desired state of ServiceAccountBinding", + "type": "object", + "properties": { + "poolMemberRef": { + "description": "refers to a PoolMember in the current namespace or other namespaces", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.PoolMemberReference" + }, + "serviceAccountName": { + "description": "refers to the ServiceAccount under the same namespace as this binding object", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountBindingStatus": { + "description": "ServiceAccountBindingStatus defines the observed state of ServiceAccountBinding", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed service account binding conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccount" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ServiceAccountList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountSpec": { + "description": "ServiceAccountSpec defines the desired state of ServiceAccount", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ServiceAccountStatus": { + "description": "ServiceAccountStatus defines the observed state of ServiceAccount", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed service account conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "privateKeyData": { + "description": "PrivateKeyData provides the private key data (in base-64 format) for authentication purposes", + "type": "string" + }, + "privateKeyType": { + "description": "PrivateKeyType indicates the type of private key information", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SharingConfig": { + "type": "object", + "required": [ + "namespaces" + ], + "properties": { + "namespaces": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Srn": { + "description": "Srn Deprecated", + "type": "object", + "properties": { + "cluster": { + "type": "string" + }, + "instance": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "subscription": { + "type": "string" + }, + "tenant": { + "type": "string" + }, + "topicDomain": { + "type": "string" + }, + "topicName": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription": { + "description": "StripeSubscription", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "StripeSubscription", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscription" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "StripeSubscriptionList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionSpec": { + "description": "StripeSubscriptionSpec defines the desired state of StripeSubscription", + "type": "object", + "required": [ + "customerId" + ], + "properties": { + "customerId": { + "description": "CustomerId is the id of the customer", + "type": "string" + }, + "product": { + "description": "Product is the name or id of the product", + "type": "string" + }, + "quantities": { + "description": "Quantities defines the quantity of certain prices in the subscription", + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.StripeSubscriptionStatus": { + "description": "StripeSubscriptionStatus defines the observed state of StripeSubscription", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "type": "integer", + "format": "int64" + }, + "subscriptionItems": { + "description": "SubscriptionItems is a list of subscription items (used to report metrics)", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SubscriptionItem" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Subject": { + "type": "object", + "required": [ + "kind", + "name", + "apiGroup" + ], + "properties": { + "apiGroup": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SubscriptionItem": { + "type": "object", + "required": [ + "subscriptionId", + "priceId", + "nickName", + "type" + ], + "properties": { + "nickName": { + "type": "string" + }, + "priceId": { + "type": "string" + }, + "subscriptionId": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.SupportAccessOptionsSpec": { + "type": "object", + "properties": { + "chains": { + "description": "A role chain that is provided by name through the CLI to designate which access chain to take when accessing a poolmember.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Chain" + }, + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "roleChain": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.RoleDefinition" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Taint": { + "description": "Taint - The workload cluster this Taint is attached to has the \"effect\" on any workload that does not tolerate the Taint.", + "type": "object", + "required": [ + "key", + "effect" + ], + "properties": { + "effect": { + "description": "Required. The effect of the taint on workloads that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Required. The taint key to be applied to a workload cluster.", + "type": "string" + }, + "timeAdded": { + "description": "TimeAdded represents the time at which the taint was added.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "value": { + "description": "Optional. The taint value corresponding to the taint key.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Toleration": { + "description": "The workload this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and PreferNoSchedule.", + "type": "string" + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a workload can tolerate all taints of a particular category.", + "type": "string" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.TopologyAware": { + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User": { + "description": "User", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "User", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.User" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "UserList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserName": { + "type": "object", + "required": [ + "first", + "last" + ], + "properties": { + "first": { + "type": "string" + }, + "last": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserSpec": { + "description": "UserSpec defines the desired state of User", + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "invitation": { + "description": "Deprecated: Invitation is deprecated and no longer used.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Invitation" + }, + "name": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserName" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.UserStatus": { + "description": "UserStatus defines the observed state of User", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.Window": { + "type": "object", + "required": [ + "startTime", + "duration" + ], + "properties": { + "duration": { + "description": "StartTime define the maintenance execution duration", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Duration" + }, + "startTime": { + "description": "StartTime define the maintenance execution start time", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha1.ZooKeeperSetReference": { + "description": "ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription": { + "description": "AWSSubscription", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "AWSSubscription", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscription" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "AWSSubscriptionList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionSpec": { + "description": "AWSSubscriptionSpec defines the desired state of AWSSubscription", + "type": "object", + "properties": { + "customerID": { + "type": "string" + }, + "productCode": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.AWSSubscriptionStatus": { + "description": "AWSSubscriptionStatus defines the observed state of AWSSubscription", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type", + "type": "string" + }, + "storageSize": { + "description": "StorageSize defines the size of the ledger storage", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet": { + "description": "BookKeeperSet", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSet", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSet" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSetList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption": { + "description": "BookKeeperSetOption", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSetOption", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOption" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "BookKeeperSetOptionList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionSpec": { + "description": "BookKeeperSetOptionSpec defines a reference to a Pool", + "type": "object", + "required": [ + "bookKeeperSetRef" + ], + "properties": { + "bookKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetOptionStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed BookKeeperSetOptionStatus conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetReference": { + "description": "BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetSpec": { + "description": "BookKeeperSetSpec defines the desired state of BookKeeperSet", + "type": "object", + "required": [ + "zooKeeperSetRef" + ], + "properties": { + "availabilityMode": { + "description": "AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal.", + "type": "string" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference" + }, + "replicas": { + "description": "Replicas is the desired number of BookKeeper servers. If unspecified, defaults to 3.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperResourceSpec" + }, + "resources": { + "description": "CPU and memory resources", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookkeeperNodeResource" + }, + "sharing": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig" + }, + "zooKeeperSetRef": { + "description": "ZooKeeperSet to use as a coordination service.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookKeeperSetStatus": { + "description": "BookKeeperSetStatus defines the observed state of BookKeeperSet", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "metadataServiceUri": { + "description": "MetadataServiceUri exposes the URI used for loading corresponding metadata driver and resolving its metadata service location", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.BookkeeperNodeResource": { + "description": "Represents resource spec for bookie nodes", + "type": "object", + "required": [ + "DefaultNodeResource" + ], + "properties": { + "DefaultNodeResource": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource" + }, + "journalDisk": { + "description": "JournalDisk size. Set to zero equivalent to use default value", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "ledgerDisk": { + "description": "LedgerDisk size. Set to zero equivalent to use default value", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource": { + "description": "Represents resource spec for nodes", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "directPercentage": { + "description": "Percentage of direct memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "heapPercentage": { + "description": "Percentage of heap memory from overall memory. Set to 0 to use default value.", + "type": "integer", + "format": "int32" + }, + "memory": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet": { + "description": "MonitorSet", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "MonitorSet", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSet" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "MonitorSetList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetSpec": { + "description": "MonitorSetSpec defines the desired state of MonitorSet", + "type": "object", + "properties": { + "availabilityMode": { + "description": "AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal.", + "type": "string" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference" + }, + "replicas": { + "description": "Replicas is the desired number of monitoring servers. If unspecified, defaults to 1.", + "type": "integer", + "format": "int32" + }, + "selector": { + "description": "Selector selects the resources to be monitored. By default, selects all monitor-able resources in the namespace.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.MonitorSetStatus": { + "description": "MonitorSetStatus defines the observed state of MonitorSet", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig": { + "type": "object", + "required": [ + "namespaces" + ], + "properties": { + "namespaces": { + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-list-type": "atomic" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperResourceSpec": { + "type": "object", + "properties": { + "nodeType": { + "description": "NodeType defines the request node specification type", + "type": "string" + }, + "storageSize": { + "description": "StorageSize defines the size of the storage", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet": { + "description": "ZooKeeperSet", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSet", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSet" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSetList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption": { + "description": "ZooKeeperSetOption", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSetOption", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOption" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "cloud.streamnative.io", + "kind": "ZooKeeperSetOptionList", + "version": "v1alpha2" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionSpec": { + "description": "ZooKeeperSetOptionSpec defines a reference to a Pool", + "type": "object", + "required": [ + "zooKeeperSetRef" + ], + "properties": { + "zooKeeperSetRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetOptionStatus": { + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed ZooKeeperSetOptionStatus conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetReference": { + "description": "ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetSpec": { + "description": "ZooKeeperSetSpec defines the desired state of ZooKeeperSet", + "type": "object", + "properties": { + "availabilityMode": { + "description": "AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal.", + "type": "string" + }, + "image": { + "description": "Image name is the name of the image to deploy.", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy, one of Always, Never, IfNotPresent, default to Always.", + "type": "string" + }, + "poolMemberRef": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.PoolMemberReference" + }, + "replicas": { + "description": "Replicas is the desired number of ZooKeeper servers. If unspecified, defaults to 1.", + "type": "integer", + "format": "int32" + }, + "resourceSpec": { + "description": "ResourceSpec defines the requested resource of each node in the cluster", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperResourceSpec" + }, + "resources": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.DefaultNodeResource" + }, + "sharing": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.SharingConfig" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.ZooKeeperSetStatus": { + "description": "ZooKeeperSetStatus defines the observed state of ZooKeeperSet", + "type": "object", + "properties": { + "clusterConnectionString": { + "description": "ClusterConnectionString is a connection string for client connectivity within the cluster.", + "type": "string" + }, + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.cloud.v1alpha2.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Artifact": { + "description": "Artifact is the artifact configs to deploy.", + "type": "object", + "properties": { + "additionalDependencies": { + "type": "array", + "items": { + "type": "string" + } + }, + "additionalPythonArchives": { + "type": "array", + "items": { + "type": "string" + } + }, + "additionalPythonLibraries": { + "type": "array", + "items": { + "type": "string" + } + }, + "artifactKind": { + "type": "string" + }, + "entryClass": { + "type": "string" + }, + "entryModule": { + "type": "string" + }, + "flinkImageRegistry": { + "type": "string" + }, + "flinkImageRepository": { + "type": "string" + }, + "flinkImageTag": { + "type": "string" + }, + "flinkVersion": { + "type": "string" + }, + "jarUri": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "mainArgs": { + "type": "string" + }, + "pythonArtifactUri": { + "type": "string" + }, + "sqlScript": { + "type": "string" + }, + "uri": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.CommunityDeploymentTemplate": { + "description": "CommunityDeploymentTemplate defines the desired state of CommunityDeployment", + "type": "object" + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition": { + "description": "Condition represents an observation of an object's state. Conditions are an extension mechanism intended to be used when the details of an observation are not a priori known or would not apply to all instances of a given Kind.\n\nConditions should be added to explicitly convey properties that users and components care about rather than requiring those properties to be inferred from other observations. Once defined, the meaning of a Condition can not be changed arbitrarily - it becomes part of the API, and has the same backwards- and forwards-compatibility concerns of any other part of the API.", + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container": { + "description": "A single application container that you want to run within a pod. The Container API from the core group is not used directly to avoid unneeded fields and reduce the size of the CRD. New fields could be added as needed.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "args": { + "description": "Arguments to the entrypoint.", + "type": "array", + "items": { + "type": "string" + } + }, + "command": { + "description": "Entrypoint array. Not executed within a shell.", + "type": "array", + "items": { + "type": "string" + } + }, + "env": { + "description": "List of environment variables to set in the container.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVar" + }, + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.EnvFromSource" + } + }, + "image": { + "description": "Docker image name.", + "type": "string" + }, + "imagePullPolicy": { + "description": "Image pull policy.\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "livenessProbe": { + "description": "Periodic probe of container liveness.", + "$ref": "#/definitions/io.k8s.api.core.v1.Probe" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL).", + "type": "string" + }, + "readinessProbe": { + "description": "Periodic probe of container service readiness. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "$ref": "#/definitions/io.k8s.api.core.v1.Probe" + }, + "resources": { + "description": "Compute Resources required by this container.", + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements" + }, + "securityContext": { + "description": "SecurityContext holds pod-level security attributes and common container settings.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext" + }, + "startupProbe": { + "description": "StartupProbe indicates that the Pod has successfully initialized.", + "$ref": "#/definitions/io.k8s.api.core.v1.Probe" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.VolumeMount" + }, + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkBlobStorage": { + "description": "FlinkBlobStorage defines the configuration for the Flink blob storage.", + "type": "object", + "properties": { + "bucket": { + "description": "Bucket is required if you want to use cloud storage.", + "type": "string" + }, + "path": { + "description": "Path is the sub path in the bucket. Leave it empty if you want to use the whole bucket.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment": { + "description": "FlinkDeployment", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "FlinkDeployment", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeployment" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "FlinkDeploymentList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentSpec": { + "description": "FlinkDeploymentSpec defines the desired state of FlinkDeployment", + "type": "object", + "required": [ + "workspaceName" + ], + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "communityTemplate": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.CommunityDeploymentTemplate" + }, + "defaultPulsarCluster": { + "description": "DefaultPulsarCluster is the default pulsar cluster to use. If not provided, the controller will use the first pulsar cluster from the workspace.", + "type": "string" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "poolMemberRef": { + "description": "PoolMemberRef is the pool member to deploy the cluster. admission controller will infer this information automatically if not provided, the controller will use PoolMember from the workspace", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolMemberReference" + }, + "template": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplate" + }, + "workspaceName": { + "description": "WorkspaceName is the reference to the workspace, and is required", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkDeploymentStatus": { + "description": "FlinkDeploymentStatus defines the observed state of FlinkDeployment", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "deploymentStatus": { + "description": "DeploymentStatus is the status of the vvp deployment.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatus" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Logging": { + "description": "Logging defines the logging configuration for the Flink deployment.", + "type": "object", + "properties": { + "log4j2ConfigurationTemplate": { + "type": "string" + }, + "log4jLoggers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "loggingProfile": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ObjectMeta": { + "type": "object", + "properties": { + "annotations": { + "description": "Annotations of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "labels": { + "description": "Labels of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "description": "Name of the resource within a namespace. It must be unique.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the resource.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate": { + "description": "PodTemplate defines the common pod configuration for Pods, including when used in StatefulSets.", + "type": "object", + "properties": { + "metadata": { + "description": "Metadata of the pod.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ObjectMeta" + }, + "spec": { + "description": "Spec of the pod.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplateSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplateSpec": { + "type": "object", + "properties": { + "affinity": { + "$ref": "#/definitions/io.k8s.api.core.v1.Affinity" + }, + "containers": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container" + } + }, + "imagePullSecrets": { + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.LocalObjectReference" + } + }, + "initContainers": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Container" + } + }, + "nodeSelector": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "securityContext": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext" + }, + "serviceAccountName": { + "type": "string" + }, + "shareProcessNamespace": { + "type": "boolean" + }, + "tolerations": { + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.Toleration" + } + }, + "volumes": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Volume" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolMemberReference": { + "description": "PoolMemberReference is a reference to a pool member with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolRef": { + "description": "PoolRef is a reference to a pool with a given name.", + "type": "object", + "required": [ + "namespace", + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec": { + "description": "ResourceSpec defines the resource requirements for a component.", + "type": "object", + "required": [ + "cpu", + "memory" + ], + "properties": { + "cpu": { + "description": "CPU represents the minimum amount of CPU required.", + "type": "string" + }, + "memory": { + "description": "Memory represents the minimum amount of memory required.", + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.SecurityContext": { + "type": "object", + "properties": { + "fsGroup": { + "type": "integer", + "format": "int64" + }, + "readOnlyRootFilesystem": { + "description": "ReadOnlyRootFilesystem specifies whether the container use a read-only filesystem.", + "type": "boolean" + }, + "runAsGroup": { + "type": "integer", + "format": "int64" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "type": "integer", + "format": "int64" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.UserMetadata": { + "description": "UserMetadata Specify the metadata for the resource we are deploying.", + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "displayName": { + "type": "string" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod. The Volume API from the core group is not used directly to avoid unneeded fields defined in `VolumeSource` and reduce the size of the CRD. New fields in VolumeSource could be added as needed.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "configMap": { + "description": "ConfigMap represents a configMap that should populate this volume", + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapVolumeSource" + }, + "name": { + "description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "secret": { + "description": "Secret represents a secret that should populate this volume.", + "$ref": "#/definitions/io.k8s.api.core.v1.SecretVolumeSource" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpCustomResourceStatus": { + "description": "VvpCustomResourceStatus defines the observed state of VvpCustomResource", + "type": "object", + "properties": { + "customResourceState": { + "type": "string" + }, + "deploymentId": { + "type": "string" + }, + "deploymentNamespace": { + "type": "string" + }, + "observedSpecState": { + "type": "string" + }, + "statusState": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetails": { + "description": "VvpDeploymentDetails", + "type": "object", + "required": [ + "template" + ], + "properties": { + "deploymentTargetName": { + "type": "string" + }, + "jobFailureExpirationTime": { + "type": "string" + }, + "maxJobCreationAttempts": { + "type": "integer", + "format": "int32" + }, + "maxSavepointCreationAttempts": { + "type": "integer", + "format": "int32" + }, + "restoreStrategy": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpRestoreStrategy" + }, + "sessionClusterName": { + "type": "string" + }, + "state": { + "type": "string" + }, + "template": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplate" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplate": { + "description": "VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails", + "type": "object", + "required": [ + "spec" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateMetadata" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateMetadata": { + "description": "VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails", + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpec": { + "description": "VvpDeploymentDetailsTemplateSpec defines the desired state of VvpDeploymentDetails", + "type": "object", + "required": [ + "artifact" + ], + "properties": { + "artifact": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Artifact" + }, + "flinkConfiguration": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "kubernetes": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpecKubernetesSpec" + }, + "latestCheckpointFetchInterval": { + "type": "integer", + "format": "int32" + }, + "logging": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Logging" + }, + "numberOfTaskManagers": { + "type": "integer", + "format": "int32" + }, + "parallelism": { + "type": "integer", + "format": "int32" + }, + "resources": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentKubernetesResources" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetailsTemplateSpecKubernetesSpec": { + "description": "VvpDeploymentDetailsTemplateSpecKubernetesSpec defines the desired state of VvpDeploymentDetails", + "type": "object", + "properties": { + "jobManagerPodTemplate": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "taskManagerPodTemplate": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PodTemplate" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentKubernetesResources": { + "description": "VvpDeploymentKubernetesResources defines the Kubernetes resources for the VvpDeployment.", + "type": "object", + "properties": { + "jobmanager": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec" + }, + "taskmanager": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.ResourceSpec" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentRunningStatus": { + "description": "VvpDeploymentRunningStatus defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusCondition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "jobId": { + "type": "string" + }, + "transitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatus": { + "description": "VvpDeploymentStatus defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "customResourceStatus": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpCustomResourceStatus" + }, + "deploymentStatus": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusDeploymentStatus" + }, + "deploymentSystemMetadata": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentSystemMetadata" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusCondition": { + "type": "object", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentStatusDeploymentStatus": { + "description": "VvpDeploymentStatusDeploymentStatus defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "running": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentRunningStatus" + }, + "state": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentSystemMetadata": { + "description": "VvpDeploymentSystemMetadata defines the observed state of VvpDeployment", + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "createdAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "modifiedAt": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "name": { + "type": "string" + }, + "resourceVersion": { + "type": "integer", + "format": "int32" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplate": { + "description": "VvpDeploymentTemplate defines the desired state of VvpDeployment", + "type": "object", + "required": [ + "deployment" + ], + "properties": { + "deployment": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplateSpec" + }, + "syncingMode": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentTemplateSpec": { + "description": "VvpDeploymentTemplateSpec defines the desired state of VvpDeployment", + "type": "object", + "required": [ + "userMetadata", + "spec" + ], + "properties": { + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpDeploymentDetails" + }, + "userMetadata": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.UserMetadata" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.VvpRestoreStrategy": { + "description": "VvpRestoreStrategy defines the restore strategy of the deployment", + "type": "object", + "properties": { + "allowNonRestoredState": { + "type": "boolean" + }, + "kind": { + "type": "string" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace": { + "description": "Workspace", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceSpec" + }, + "status": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceStatus" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "Workspace", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceList": { + "type": "object", + "required": [ + "items" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Workspace" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "compute.streamnative.io", + "kind": "WorkspaceList", + "version": "v1alpha1" + } + ] + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceSpec": { + "description": "WorkspaceSpec defines the desired state of Workspace", + "type": "object", + "required": [ + "pulsarClusterNames", + "poolRef" + ], + "properties": { + "flinkBlobStorage": { + "description": "FlinkBlobStorage is the configuration for the Flink blob storage.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.FlinkBlobStorage" + }, + "poolRef": { + "description": "PoolRef is the reference to the pool that the workspace will be access to.", + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.PoolRef" + }, + "pulsarClusterNames": { + "description": "PulsarClusterNames is the list of Pulsar clusters that the workspace will have access to.", + "type": "array", + "items": { + "type": "string" + } + }, + "useExternalAccess": { + "description": "UseExternalAccess is the flag to indicate whether the workspace will use external access.", + "type": "boolean" + } + } + }, + "com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.WorkspaceStatus": { + "description": "WorkspaceStatus defines the observed state of Workspace", + "type": "object", + "properties": { + "conditions": { + "description": "Conditions is an array of current observed pool conditions.", + "type": "array", + "items": { + "$ref": "#/definitions/com.github.streamnative.cloud-api-server.pkg.apis.compute.v1alpha1.Condition" + }, + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + } + }, + "io.k8s.api.core.v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "type": "object", + "properties": { + "nodeAffinity": { + "description": "Describes node affinity scheduling rules for the pod.", + "$ref": "#/definitions/io.k8s.api.core.v1.NodeAffinity" + }, + "podAffinity": { + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinity" + }, + "podAntiAffinity": { + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", + "$ref": "#/definitions/io.k8s.api.core.v1.PodAntiAffinity" + } + } + }, + "io.k8s.api.core.v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": "boolean" + } + } + }, + "io.k8s.api.core.v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": "boolean" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "type": "object", + "properties": { + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + } + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": "boolean" + } + } + }, + "io.k8s.api.core.v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "type": "object", + "properties": { + "configMapRef": { + "description": "The ConfigMap to select from", + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": "string" + }, + "secretRef": { + "description": "The Secret to select from", + "$ref": "#/definitions/io.k8s.api.core.v1.SecretEnvSource" + } + } + }, + "io.k8s.api.core.v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": "string" + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": "string" + }, + "valueFrom": { + "description": "Source for the environment variable's value. Cannot be used if value is not empty.", + "$ref": "#/definitions/io.k8s.api.core.v1.EnvVarSource" + } + } + }, + "io.k8s.api.core.v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "type": "object", + "properties": { + "configMapKeyRef": { + "description": "Selects a key of a ConfigMap.", + "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapKeySelector" + }, + "fieldRef": { + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", + "$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector" + }, + "resourceFieldRef": { + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.", + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceFieldSelector" + }, + "secretKeyRef": { + "description": "Selects a key of a secret in the pod's namespace", + "$ref": "#/definitions/io.k8s.api.core.v1.SecretKeySelector" + } + } + }, + "io.k8s.api.core.v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", + "type": "object", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "io.k8s.api.core.v1.GRPCAction": { + "type": "object", + "required": [ + "port" + ], + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "type": "integer", + "format": "int32" + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": "string" + } + } + }, + "io.k8s.api.core.v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" + } + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.\n\nPossible enum values:\n - `\"HTTP\"` means that the scheme used will be http://\n - `\"HTTPS\"` means that the scheme used will be https://", + "type": "string", + "enum": [ + "HTTP", + "HTTPS" + ] + } + } + }, + "io.k8s.api.core.v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "description": "The header field name", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + } + }, + "io.k8s.api.core.v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", + "type": "object", + "required": [ + "key", + "path" + ], + "properties": { + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + } + }, + "io.k8s.api.core.v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PreferredSchedulingTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.", + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector" + } + } + }, + "io.k8s.api.core.v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "type": "object", + "required": [ + "nodeSelectorTerms" + ], + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"In\"`\n - `\"Lt\"`\n - `\"NotIn\"`", + "type": "string", + "enum": [ + "DoesNotExist", + "Exists", + "Gt", + "In", + "Lt", + "NotIn" + ] + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "io.k8s.api.core.v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" + } + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorRequirement" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "type": "object", + "required": [ + "fieldPath" + ], + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": "string" + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" + } + } + } + }, + "io.k8s.api.core.v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "description": "A label query over a set of resources, in this case pods.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "namespaceSelector": { + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + } + }, + "io.k8s.api.core.v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "type": "object", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.WeightedPodAffinityTerm" + } + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" + } + } + } + }, + "io.k8s.api.core.v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "type": "object", + "required": [ + "weight", + "preference" + ], + "properties": { + "preference": { + "description": "A node selector term, associated with the corresponding weight.", + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelectorTerm" + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "io.k8s.api.core.v1.Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "type": "object", + "properties": { + "exec": { + "description": "Exec specifies the action to take.", + "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction" + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "grpc": { + "description": "GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate.", + "$ref": "#/definitions/io.k8s.api.core.v1.GRPCAction" + }, + "httpGet": { + "description": "HTTPGet specifies the http request to perform.", + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction" + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "type": "integer", + "format": "int32" + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "type": "integer", + "format": "int32" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port.", + "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction" + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", + "type": "integer", + "format": "int64" + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "type": "integer", + "format": "int32" + } + } + }, + "io.k8s.api.core.v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "type": "object", + "required": [ + "resource" + ], + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": "string" + }, + "divisor": { + "description": "Specifies the output format of the exposed resources, defaults to \"1\"", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "type": "object", + "properties": { + "limits": { + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + }, + "requests": { + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" + } + } + } + }, + "io.k8s.api.core.v1.SecretEnvSource": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "type": "object", + "properties": { + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": "boolean" + } + } + }, + "io.k8s.api.core.v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": "boolean" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "type": "object", + "properties": { + "defaultMode": { + "description": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "type": "integer", + "format": "int32" + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.KeyToPath" + } + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": "boolean" + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": "string" + } + } + }, + "io.k8s.api.core.v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", + "type": "object", + "required": [ + "port" + ], + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": "string" + }, + "port": { + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" + } + } + }, + "io.k8s.api.core.v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "type": "object", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", + "type": "string", + "enum": [ + "NoExecute", + "NoSchedule", + "PreferNoSchedule" + ] + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": "string" + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`", + "type": "string", + "enum": [ + "Equal", + "Exists" + ] + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "type": "integer", + "format": "int64" + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": "string" + } + } + }, + "io.k8s.api.core.v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", + "type": "object", + "required": [ + "name", + "mountPath" + ], + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.", + "type": "string" + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": "boolean" + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": "string" + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": "string" + } + } + }, + "io.k8s.api.core.v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "type": "object", + "required": [ + "weight", + "podAffinityTerm" + ], + "properties": { + "podAffinityTerm": { + "description": "Required. A pod affinity term, associated with the corresponding weight.", + "$ref": "#/definitions/io.k8s.api.core.v1.PodAffinityTerm" + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "type": "integer", + "format": "int32" + } + } + }, + "io.k8s.apimachinery.pkg.api.resource.Quantity": { + "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + "type": "string" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "type": "object", + "required": [ + "name", + "versions" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the group.", + "type": "string" + }, + "preferredVersion": { + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + } + }, + "versions": { + "description": "versions are the versions supported in this group.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "type": "object", + "required": [ + "groups" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groups": { + "description": "groups is a list of APIGroup.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "type": "object", + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "type": "array", + "items": { + "type": "string" + } + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": "string" + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" + }, + "name": { + "description": "name is the plural name of the resource.", + "type": "string" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": "string" + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": "string" + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "type": "object", + "required": [ + "groupVersion", + "resources" + ], + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + } + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Condition": { + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "type": "object", + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "type": "integer", + "format": "int64" + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "type": "array", + "items": { + "type": "string" + } + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "type": "integer", + "format": "int64" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": "boolean" + }, + "preconditions": { + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions" + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authorization.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "billing.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha2" + }, + { + "group": "compute.streamnative.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Duration": { + "description": "Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.", + "type": "string" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "type": "object", + "required": [ + "groupVersion", + "version" + ], + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": "string" + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "type": "object", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + } + }, + "matchLabels": { + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string", + "x-kubernetes-patch-merge-key": "key", + "x-kubernetes-patch-strategy": "merge" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "type": "object", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": "string" + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "type": "integer", + "format": "int64" + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": "string" + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": "string" + }, + "fieldsV1": { + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1" + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": "string" + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": "string" + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": "string" + }, + "time": { + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "type": "object", + "properties": { + "annotations": { + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "clusterName": { + "description": "Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25.\n\nThe name in the go struct is changed to help clients detect accidental use.", + "type": "string" + }, + "creationTimestamp": { + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "type": "integer", + "format": "int64" + }, + "deletionTimestamp": { + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "type": "array", + "items": { + "type": "string" + }, + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": "string" + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "type": "integer", + "format": "int64" + }, + "labels": { + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + } + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces", + "type": "string" + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": "string" + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": "string" + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "type": "object", + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": "boolean" + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": "boolean" + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + }, + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Patch": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "type": "object", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": "string" + }, + "uid": { + "description": "Specifies the target UID.", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "type": "object", + "required": [ + "clientCIDR", + "serverAddress" + ], + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": "string" + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", + "type": "object", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "type": "integer", + "format": "int32" + }, + "details": { + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": "string" + }, + "metadata": { + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": "string" + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "type": "object", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": "string" + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": "string" + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "type": "object", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + } + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": "string" + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": "string" + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "type": "integer", + "format": "int32" + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" + } + } + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "type": "string", + "format": "date-time" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "type": "object", + "required": [ + "type", + "object" + ], + "properties": { + "object": { + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension" + }, + "type": { + "type": "string" + } + }, + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authorization.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "billing.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "cloud.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha2" + }, + { + "group": "compute.streamnative.io", + "kind": "WatchEvent", + "version": "v1alpha1" + } + ] + }, + "io.k8s.apimachinery.pkg.runtime.RawExtension": { + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.Object `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// External package: type MyAPIObject struct {\n\truntime.TypeMeta `json:\",inline\"`\n\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n} type PluginA struct {\n\tAOption string `json:\"aOption\"`\n}\n\n// On the wire, the JSON will look something like this: {\n\t\"kind\":\"MyAPIObject\",\n\t\"apiVersion\":\"v1\",\n\t\"myPlugin\": {\n\t\t\"kind\":\"PluginA\",\n\t\t\"aOption\":\"foo\",\n\t},\n}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "type": "object" + }, + "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { + "description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + "type": "string", + "format": "int-or-string" + }, + "io.k8s.apimachinery.pkg.version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", + "type": "object", + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "properties": { + "buildDate": { + "type": "string" + }, + "compiler": { + "type": "string" + }, + "gitCommit": { + "type": "string" + }, + "gitTreeState": { + "type": "string" + }, + "gitVersion": { + "type": "string" + }, + "goVersion": { + "type": "string" + }, + "major": { + "type": "string" + }, + "minor": { + "type": "string" + }, + "platform": { + "type": "string" + } + } + } + } +} \ No newline at end of file diff --git a/sdk/sdk-apiserver/utils.go b/sdk/sdk-apiserver/utils.go new file mode 100644 index 0000000..064352a --- /dev/null +++ b/sdk/sdk-apiserver/utils.go @@ -0,0 +1,332 @@ +// +// Copyright © 2023-2024 StreamNative Inc. +// + +/* +Api + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: v0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sncloud + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/sdk/sdk-kafkaconnect/HOW_TO_BUILD.md b/sdk/sdk-kafkaconnect/HOW_TO_BUILD.md new file mode 100644 index 0000000..5c733be --- /dev/null +++ b/sdk/sdk-kafkaconnect/HOW_TO_BUILD.md @@ -0,0 +1,10 @@ +1. Update the `kafka-connect-admin.json` from https://github.com/streamnative/function-mesh-worker-service/blob/master/openapi/kafka-connect-admin.json +2. Using following command in `pkg/kafkaconnect` to generate the client sdk + +``` +openapi-generator-cli generate \ + -i kafka-connect-admin.json \ + -g go \ + -o ./ \ + --additional-properties=packageName=kafkaconnect,isGoSubmodule=true --git-repo-id cloud-cli/pkg --git-user-id streamnative +``` \ No newline at end of file diff --git a/sdk/sdk-kafkaconnect/README.md b/sdk/sdk-kafkaconnect/README.md new file mode 100644 index 0000000..c29da8b --- /dev/null +++ b/sdk/sdk-kafkaconnect/README.md @@ -0,0 +1,168 @@ +# Go API client for kafkaconnect + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.0.1 +- Package version: 1.0.0 +- Generator version: 7.12.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import kafkaconnect "github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `kafkaconnect.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), kafkaconnect.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `kafkaconnect.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), kafkaconnect.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `kafkaconnect.ContextOperationServerIndices` and `kafkaconnect.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), kafkaconnect.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), kafkaconnect.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultAPI* | [**AlterConnectorOffsets**](docs/DefaultAPI.md#alterconnectoroffsets) | **Patch** /connectors/{connector}/offsets | +*DefaultAPI* | [**CreateConnector**](docs/DefaultAPI.md#createconnector) | **Post** /connectors | +*DefaultAPI* | [**DestroyConnector**](docs/DefaultAPI.md#destroyconnector) | **Delete** /connectors/{connector} | +*DefaultAPI* | [**GetConnector**](docs/DefaultAPI.md#getconnector) | **Get** /connectors/{connector} | +*DefaultAPI* | [**GetConnectorActiveTopics**](docs/DefaultAPI.md#getconnectoractivetopics) | **Get** /connectors/{connector}/topics | +*DefaultAPI* | [**GetConnectorConfig**](docs/DefaultAPI.md#getconnectorconfig) | **Get** /connectors/{connector}/config | +*DefaultAPI* | [**GetConnectorConfigDef**](docs/DefaultAPI.md#getconnectorconfigdef) | **Get** /connector-plugins/{pluginName}/config | Get the configuration definition for the specified pluginName +*DefaultAPI* | [**GetConnectorStatus**](docs/DefaultAPI.md#getconnectorstatus) | **Get** /connectors/{connector}/status | +*DefaultAPI* | [**GetOffsets**](docs/DefaultAPI.md#getoffsets) | **Get** /connectors/{connector}/offsets | +*DefaultAPI* | [**GetTaskConfigs**](docs/DefaultAPI.md#gettaskconfigs) | **Get** /connectors/{connector}/tasks | +*DefaultAPI* | [**GetTaskStatus**](docs/DefaultAPI.md#gettaskstatus) | **Get** /connectors/{connector}/tasks/{task}/status | +*DefaultAPI* | [**GetTasksConfig**](docs/DefaultAPI.md#gettasksconfig) | **Get** /connectors/{connector}/tasks-config | +*DefaultAPI* | [**HealthCheck**](docs/DefaultAPI.md#healthcheck) | **Get** /health | Health check endpoint to verify worker readiness and liveness +*DefaultAPI* | [**ListConnectorPlugins**](docs/DefaultAPI.md#listconnectorplugins) | **Get** /connector-plugins | List all connector plugins installed +*DefaultAPI* | [**ListConnectorPluginsCatalog**](docs/DefaultAPI.md#listconnectorpluginscatalog) | **Get** /connector-plugins/catalog | List all connector catalog +*DefaultAPI* | [**ListConnectors**](docs/DefaultAPI.md#listconnectors) | **Get** /connectors | +*DefaultAPI* | [**PauseConnector**](docs/DefaultAPI.md#pauseconnector) | **Put** /connectors/{connector}/pause | +*DefaultAPI* | [**PutConnectorConfig**](docs/DefaultAPI.md#putconnectorconfig) | **Put** /connectors/{connector}/config | +*DefaultAPI* | [**ResetConnectorActiveTopics**](docs/DefaultAPI.md#resetconnectoractivetopics) | **Put** /connectors/{connector}/topics/reset | +*DefaultAPI* | [**ResetConnectorOffsets**](docs/DefaultAPI.md#resetconnectoroffsets) | **Delete** /connectors/{connector}/offsets | +*DefaultAPI* | [**RestartConnector**](docs/DefaultAPI.md#restartconnector) | **Post** /connectors/{connector}/restart | +*DefaultAPI* | [**RestartTask**](docs/DefaultAPI.md#restarttask) | **Post** /connectors/{connector}/tasks/{task}/restart | +*DefaultAPI* | [**ResumeConnector**](docs/DefaultAPI.md#resumeconnector) | **Put** /connectors/{connector}/resume | +*DefaultAPI* | [**ServerInfo**](docs/DefaultAPI.md#serverinfo) | **Get** / | +*DefaultAPI* | [**StopConnector**](docs/DefaultAPI.md#stopconnector) | **Put** /connectors/{connector}/stop | +*DefaultAPI* | [**ValidateConfigs**](docs/DefaultAPI.md#validateconfigs) | **Put** /connector-plugins/{pluginName}/config/validate | Validate the provided configuration against the configuration definition for the specified pluginName + + +## Documentation For Models + + - [ConfigFieldDefinition](docs/ConfigFieldDefinition.md) + - [ConfigInfo](docs/ConfigInfo.md) + - [ConfigInfos](docs/ConfigInfos.md) + - [ConfigKeyInfo](docs/ConfigKeyInfo.md) + - [ConfigValueInfo](docs/ConfigValueInfo.md) + - [ConnectorInfo](docs/ConnectorInfo.md) + - [ConnectorState](docs/ConnectorState.md) + - [ConnectorStateInfo](docs/ConnectorStateInfo.md) + - [ConnectorTaskId](docs/ConnectorTaskId.md) + - [CreateConnectorRequest](docs/CreateConnectorRequest.md) + - [FunctionMeshConnectorDefinition](docs/FunctionMeshConnectorDefinition.md) + - [PluginInfo](docs/PluginInfo.md) + - [SNConnectorOffset](docs/SNConnectorOffset.md) + - [SNConnectorOffsets](docs/SNConnectorOffsets.md) + - [ServerInfo](docs/ServerInfo.md) + - [TaskInfo](docs/TaskInfo.md) + - [TaskState](docs/TaskState.md) + + +## Documentation For Authorization + + +Authentication schemes defined for the API: +### basicAuth + +- **Type**: HTTP basic authentication + +Example + +```go +auth := context.WithValue(context.Background(), kafkaconnect.ContextBasicAuth, kafkaconnect.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/sdk/sdk-kafkaconnect/api_default.go b/sdk/sdk-kafkaconnect/api_default.go new file mode 100644 index 0000000..1a5b0cb --- /dev/null +++ b/sdk/sdk-kafkaconnect/api_default.go @@ -0,0 +1,2720 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiAlterConnectorOffsetsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + forward *bool + sNConnectorOffsets *SNConnectorOffsets +} + +func (r ApiAlterConnectorOffsetsRequest) Forward(forward bool) ApiAlterConnectorOffsetsRequest { + r.forward = &forward + return r +} + +func (r ApiAlterConnectorOffsetsRequest) SNConnectorOffsets(sNConnectorOffsets SNConnectorOffsets) ApiAlterConnectorOffsetsRequest { + r.sNConnectorOffsets = &sNConnectorOffsets + return r +} + +func (r ApiAlterConnectorOffsetsRequest) Execute() (*http.Response, error) { + return r.ApiService.AlterConnectorOffsetsExecute(r) +} + +/* +AlterConnectorOffsets Method for AlterConnectorOffsets + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiAlterConnectorOffsetsRequest +*/ +func (a *DefaultAPIService) AlterConnectorOffsets(ctx context.Context, connector string) ApiAlterConnectorOffsetsRequest { + return ApiAlterConnectorOffsetsRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) AlterConnectorOffsetsExecute(r ApiAlterConnectorOffsetsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AlterConnectorOffsets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/offsets" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sNConnectorOffsets + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCreateConnectorRequest struct { + ctx context.Context + ApiService *DefaultAPIService + forward *bool + createConnectorRequest *CreateConnectorRequest +} + +func (r ApiCreateConnectorRequest) Forward(forward bool) ApiCreateConnectorRequest { + r.forward = &forward + return r +} + +func (r ApiCreateConnectorRequest) CreateConnectorRequest(createConnectorRequest CreateConnectorRequest) ApiCreateConnectorRequest { + r.createConnectorRequest = &createConnectorRequest + return r +} + +func (r ApiCreateConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateConnectorExecute(r) +} + +/* +CreateConnector Method for CreateConnector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateConnectorRequest +*/ +func (a *DefaultAPIService) CreateConnector(ctx context.Context) ApiCreateConnectorRequest { + return ApiCreateConnectorRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) CreateConnectorExecute(r ApiCreateConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createConnectorRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDestroyConnectorRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + forward *bool +} + +func (r ApiDestroyConnectorRequest) Forward(forward bool) ApiDestroyConnectorRequest { + r.forward = &forward + return r +} + +func (r ApiDestroyConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.DestroyConnectorExecute(r) +} + +/* +DestroyConnector Method for DestroyConnector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiDestroyConnectorRequest +*/ +func (a *DefaultAPIService) DestroyConnector(ctx context.Context, connector string) ApiDestroyConnectorRequest { + return ApiDestroyConnectorRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) DestroyConnectorExecute(r ApiDestroyConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DestroyConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetConnectorRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiGetConnectorRequest) Execute() (*ConnectorInfo, *http.Response, error) { + return r.ApiService.GetConnectorExecute(r) +} + +/* +GetConnector Method for GetConnector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorRequest +*/ +func (a *DefaultAPIService) GetConnector(ctx context.Context, connector string) ApiGetConnectorRequest { + return ApiGetConnectorRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +// @return ConnectorInfo +func (a *DefaultAPIService) GetConnectorExecute(r ApiGetConnectorRequest) (*ConnectorInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectorInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnector") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v ConnectorInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorActiveTopicsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiGetConnectorActiveTopicsRequest) Execute() (*http.Response, error) { + return r.ApiService.GetConnectorActiveTopicsExecute(r) +} + +/* +GetConnectorActiveTopics Method for GetConnectorActiveTopics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorActiveTopicsRequest +*/ +func (a *DefaultAPIService) GetConnectorActiveTopics(ctx context.Context, connector string) ApiGetConnectorActiveTopicsRequest { + return ApiGetConnectorActiveTopicsRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) GetConnectorActiveTopicsExecute(r ApiGetConnectorActiveTopicsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorActiveTopics") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/topics" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetConnectorConfigRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiGetConnectorConfigRequest) Execute() (map[string]string, *http.Response, error) { + return r.ApiService.GetConnectorConfigExecute(r) +} + +/* +GetConnectorConfig Method for GetConnectorConfig + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorConfigRequest +*/ +func (a *DefaultAPIService) GetConnectorConfig(ctx context.Context, connector string) ApiGetConnectorConfigRequest { + return ApiGetConnectorConfigRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +// @return map[string]string +func (a *DefaultAPIService) GetConnectorConfigExecute(r ApiGetConnectorConfigRequest) (map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorConfig") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/config" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v map[string]string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorConfigDefRequest struct { + ctx context.Context + ApiService *DefaultAPIService + pluginName string +} + +func (r ApiGetConnectorConfigDefRequest) Execute() ([]ConfigKeyInfo, *http.Response, error) { + return r.ApiService.GetConnectorConfigDefExecute(r) +} + +/* +GetConnectorConfigDef Get the configuration definition for the specified pluginName + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param pluginName + @return ApiGetConnectorConfigDefRequest +*/ +func (a *DefaultAPIService) GetConnectorConfigDef(ctx context.Context, pluginName string) ApiGetConnectorConfigDefRequest { + return ApiGetConnectorConfigDefRequest{ + ApiService: a, + ctx: ctx, + pluginName: pluginName, + } +} + +// Execute executes the request +// @return []ConfigKeyInfo +func (a *DefaultAPIService) GetConnectorConfigDefExecute(r ApiGetConnectorConfigDefRequest) ([]ConfigKeyInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConfigKeyInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorConfigDef") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connector-plugins/{pluginName}/config" + localVarPath = strings.Replace(localVarPath, "{"+"pluginName"+"}", url.PathEscape(parameterValueToString(r.pluginName, "pluginName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v []ConfigKeyInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetConnectorStatusRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiGetConnectorStatusRequest) Execute() (*ConnectorStateInfo, *http.Response, error) { + return r.ApiService.GetConnectorStatusExecute(r) +} + +/* +GetConnectorStatus Method for GetConnectorStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorStatusRequest +*/ +func (a *DefaultAPIService) GetConnectorStatus(ctx context.Context, connector string) ApiGetConnectorStatusRequest { + return ApiGetConnectorStatusRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +// @return ConnectorStateInfo +func (a *DefaultAPIService) GetConnectorStatusExecute(r ApiGetConnectorStatusRequest) (*ConnectorStateInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectorStateInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/status" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v ConnectorStateInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetOffsetsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiGetOffsetsRequest) Execute() (*SNConnectorOffsets, *http.Response, error) { + return r.ApiService.GetOffsetsExecute(r) +} + +/* +GetOffsets Method for GetOffsets + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetOffsetsRequest +*/ +func (a *DefaultAPIService) GetOffsets(ctx context.Context, connector string) ApiGetOffsetsRequest { + return ApiGetOffsetsRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +// @return SNConnectorOffsets +func (a *DefaultAPIService) GetOffsetsExecute(r ApiGetOffsetsRequest) (*SNConnectorOffsets, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SNConnectorOffsets + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetOffsets") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/offsets" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v SNConnectorOffsets + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTaskConfigsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiGetTaskConfigsRequest) Execute() ([]TaskInfo, *http.Response, error) { + return r.ApiService.GetTaskConfigsExecute(r) +} + +/* +GetTaskConfigs Method for GetTaskConfigs + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetTaskConfigsRequest +*/ +func (a *DefaultAPIService) GetTaskConfigs(ctx context.Context, connector string) ApiGetTaskConfigsRequest { + return ApiGetTaskConfigsRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +// @return []TaskInfo +func (a *DefaultAPIService) GetTaskConfigsExecute(r ApiGetTaskConfigsRequest) ([]TaskInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TaskInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTaskConfigs") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/tasks" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v []TaskInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTaskStatusRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + task int32 +} + +func (r ApiGetTaskStatusRequest) Execute() (*TaskState, *http.Response, error) { + return r.ApiService.GetTaskStatusExecute(r) +} + +/* +GetTaskStatus Method for GetTaskStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @param task + @return ApiGetTaskStatusRequest +*/ +func (a *DefaultAPIService) GetTaskStatus(ctx context.Context, connector string, task int32) ApiGetTaskStatusRequest { + return ApiGetTaskStatusRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + task: task, + } +} + +// Execute executes the request +// @return TaskState +func (a *DefaultAPIService) GetTaskStatusExecute(r ApiGetTaskStatusRequest) (*TaskState, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TaskState + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTaskStatus") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/tasks/{task}/status" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task"+"}", url.PathEscape(parameterValueToString(r.task, "task")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v TaskState + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetTasksConfigRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiGetTasksConfigRequest) Execute() (*map[string]map[string]string, *http.Response, error) { + return r.ApiService.GetTasksConfigExecute(r) +} + +/* +GetTasksConfig Method for GetTasksConfig + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetTasksConfigRequest + +Deprecated +*/ +func (a *DefaultAPIService) GetTasksConfig(ctx context.Context, connector string) ApiGetTasksConfigRequest { + return ApiGetTasksConfigRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +// @return map[string]map[string]string +// Deprecated +func (a *DefaultAPIService) GetTasksConfigExecute(r ApiGetTasksConfigRequest) (*map[string]map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *map[string]map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTasksConfig") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/tasks-config" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v map[string]map[string]string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiHealthCheckRequest struct { + ctx context.Context + ApiService *DefaultAPIService +} + +func (r ApiHealthCheckRequest) Execute() (*http.Response, error) { + return r.ApiService.HealthCheckExecute(r) +} + +/* +HealthCheck Health check endpoint to verify worker readiness and liveness + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHealthCheckRequest +*/ +func (a *DefaultAPIService) HealthCheck(ctx context.Context) ApiHealthCheckRequest { + return ApiHealthCheckRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) HealthCheckExecute(r ApiHealthCheckRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.HealthCheck") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/health" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiListConnectorPluginsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connectorsOnly *bool +} + +// Whether to list only connectors instead of all plugins +func (r ApiListConnectorPluginsRequest) ConnectorsOnly(connectorsOnly bool) ApiListConnectorPluginsRequest { + r.connectorsOnly = &connectorsOnly + return r +} + +func (r ApiListConnectorPluginsRequest) Execute() ([]PluginInfo, *http.Response, error) { + return r.ApiService.ListConnectorPluginsExecute(r) +} + +/* +ListConnectorPlugins List all connector plugins installed + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListConnectorPluginsRequest +*/ +func (a *DefaultAPIService) ListConnectorPlugins(ctx context.Context) ApiListConnectorPluginsRequest { + return ApiListConnectorPluginsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []PluginInfo +func (a *DefaultAPIService) ListConnectorPluginsExecute(r ApiListConnectorPluginsRequest) ([]PluginInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PluginInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListConnectorPlugins") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connector-plugins" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.connectorsOnly != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "connectorsOnly", r.connectorsOnly, "form", "") + } else { + var defaultValue bool = true + r.connectorsOnly = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v []PluginInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListConnectorPluginsCatalogRequest struct { + ctx context.Context + ApiService *DefaultAPIService +} + +func (r ApiListConnectorPluginsCatalogRequest) Execute() ([]FunctionMeshConnectorDefinition, *http.Response, error) { + return r.ApiService.ListConnectorPluginsCatalogExecute(r) +} + +/* +ListConnectorPluginsCatalog List all connector catalog + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListConnectorPluginsCatalogRequest +*/ +func (a *DefaultAPIService) ListConnectorPluginsCatalog(ctx context.Context) ApiListConnectorPluginsCatalogRequest { + return ApiListConnectorPluginsCatalogRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []FunctionMeshConnectorDefinition +func (a *DefaultAPIService) ListConnectorPluginsCatalogExecute(r ApiListConnectorPluginsCatalogRequest) ([]FunctionMeshConnectorDefinition, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FunctionMeshConnectorDefinition + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListConnectorPluginsCatalog") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connector-plugins/catalog" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v []FunctionMeshConnectorDefinition + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListConnectorsRequest struct { + ctx context.Context + ApiService *DefaultAPIService +} + +func (r ApiListConnectorsRequest) Execute() (*http.Response, error) { + return r.ApiService.ListConnectorsExecute(r) +} + +/* +ListConnectors Method for ListConnectors + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListConnectorsRequest +*/ +func (a *DefaultAPIService) ListConnectors(ctx context.Context) ApiListConnectorsRequest { + return ApiListConnectorsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ListConnectorsExecute(r ApiListConnectorsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListConnectors") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPauseConnectorRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiPauseConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.PauseConnectorExecute(r) +} + +/* +PauseConnector Method for PauseConnector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiPauseConnectorRequest +*/ +func (a *DefaultAPIService) PauseConnector(ctx context.Context, connector string) ApiPauseConnectorRequest { + return ApiPauseConnectorRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) PauseConnectorExecute(r ApiPauseConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PauseConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/pause" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPutConnectorConfigRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + forward *bool + requestBody *map[string]string +} + +func (r ApiPutConnectorConfigRequest) Forward(forward bool) ApiPutConnectorConfigRequest { + r.forward = &forward + return r +} + +func (r ApiPutConnectorConfigRequest) RequestBody(requestBody map[string]string) ApiPutConnectorConfigRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiPutConnectorConfigRequest) Execute() (*http.Response, error) { + return r.ApiService.PutConnectorConfigExecute(r) +} + +/* +PutConnectorConfig Method for PutConnectorConfig + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiPutConnectorConfigRequest +*/ +func (a *DefaultAPIService) PutConnectorConfig(ctx context.Context, connector string) ApiPutConnectorConfigRequest { + return ApiPutConnectorConfigRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) PutConnectorConfigExecute(r ApiPutConnectorConfigRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PutConnectorConfig") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/config" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiResetConnectorActiveTopicsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiResetConnectorActiveTopicsRequest) Execute() (*http.Response, error) { + return r.ApiService.ResetConnectorActiveTopicsExecute(r) +} + +/* +ResetConnectorActiveTopics Method for ResetConnectorActiveTopics + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiResetConnectorActiveTopicsRequest +*/ +func (a *DefaultAPIService) ResetConnectorActiveTopics(ctx context.Context, connector string) ApiResetConnectorActiveTopicsRequest { + return ApiResetConnectorActiveTopicsRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ResetConnectorActiveTopicsExecute(r ApiResetConnectorActiveTopicsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ResetConnectorActiveTopics") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/topics/reset" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiResetConnectorOffsetsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + forward *bool +} + +func (r ApiResetConnectorOffsetsRequest) Forward(forward bool) ApiResetConnectorOffsetsRequest { + r.forward = &forward + return r +} + +func (r ApiResetConnectorOffsetsRequest) Execute() (*http.Response, error) { + return r.ApiService.ResetConnectorOffsetsExecute(r) +} + +/* +ResetConnectorOffsets Method for ResetConnectorOffsets + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiResetConnectorOffsetsRequest +*/ +func (a *DefaultAPIService) ResetConnectorOffsets(ctx context.Context, connector string) ApiResetConnectorOffsetsRequest { + return ApiResetConnectorOffsetsRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ResetConnectorOffsetsExecute(r ApiResetConnectorOffsetsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ResetConnectorOffsets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/offsets" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRestartConnectorRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + includeTasks *bool + onlyFailed *bool + forward *bool +} + +func (r ApiRestartConnectorRequest) IncludeTasks(includeTasks bool) ApiRestartConnectorRequest { + r.includeTasks = &includeTasks + return r +} + +func (r ApiRestartConnectorRequest) OnlyFailed(onlyFailed bool) ApiRestartConnectorRequest { + r.onlyFailed = &onlyFailed + return r +} + +func (r ApiRestartConnectorRequest) Forward(forward bool) ApiRestartConnectorRequest { + r.forward = &forward + return r +} + +func (r ApiRestartConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.RestartConnectorExecute(r) +} + +/* +RestartConnector Method for RestartConnector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiRestartConnectorRequest +*/ +func (a *DefaultAPIService) RestartConnector(ctx context.Context, connector string) ApiRestartConnectorRequest { + return ApiRestartConnectorRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) RestartConnectorExecute(r ApiRestartConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RestartConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/restart" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.includeTasks != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "includeTasks", r.includeTasks, "form", "") + } else { + var defaultValue bool = false + r.includeTasks = &defaultValue + } + if r.onlyFailed != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "onlyFailed", r.onlyFailed, "form", "") + } else { + var defaultValue bool = false + r.onlyFailed = &defaultValue + } + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiRestartTaskRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + task int32 + forward *bool +} + +func (r ApiRestartTaskRequest) Forward(forward bool) ApiRestartTaskRequest { + r.forward = &forward + return r +} + +func (r ApiRestartTaskRequest) Execute() (*http.Response, error) { + return r.ApiService.RestartTaskExecute(r) +} + +/* +RestartTask Method for RestartTask + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @param task + @return ApiRestartTaskRequest +*/ +func (a *DefaultAPIService) RestartTask(ctx context.Context, connector string, task int32) ApiRestartTaskRequest { + return ApiRestartTaskRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + task: task, + } +} + +// Execute executes the request +func (a *DefaultAPIService) RestartTaskExecute(r ApiRestartTaskRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RestartTask") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/tasks/{task}/restart" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task"+"}", url.PathEscape(parameterValueToString(r.task, "task")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiResumeConnectorRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string +} + +func (r ApiResumeConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.ResumeConnectorExecute(r) +} + +/* +ResumeConnector Method for ResumeConnector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiResumeConnectorRequest +*/ +func (a *DefaultAPIService) ResumeConnector(ctx context.Context, connector string) ApiResumeConnectorRequest { + return ApiResumeConnectorRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) ResumeConnectorExecute(r ApiResumeConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ResumeConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/resume" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiServerInfoRequest struct { + ctx context.Context + ApiService *DefaultAPIService +} + +func (r ApiServerInfoRequest) Execute() (*ServerInfo, *http.Response, error) { + return r.ApiService.ServerInfoExecute(r) +} + +/* +ServerInfo Method for ServerInfo + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerInfoRequest +*/ +func (a *DefaultAPIService) ServerInfo(ctx context.Context) ApiServerInfoRequest { + return ApiServerInfoRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ServerInfo +func (a *DefaultAPIService) ServerInfoExecute(r ApiServerInfoRequest) (*ServerInfo, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServerInfo + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ServerInfo") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v ServerInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiStopConnectorRequest struct { + ctx context.Context + ApiService *DefaultAPIService + connector string + forward *bool +} + +func (r ApiStopConnectorRequest) Forward(forward bool) ApiStopConnectorRequest { + r.forward = &forward + return r +} + +func (r ApiStopConnectorRequest) Execute() (*http.Response, error) { + return r.ApiService.StopConnectorExecute(r) +} + +/* +StopConnector Method for StopConnector + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiStopConnectorRequest +*/ +func (a *DefaultAPIService) StopConnector(ctx context.Context, connector string) ApiStopConnectorRequest { + return ApiStopConnectorRequest{ + ApiService: a, + ctx: ctx, + connector: connector, + } +} + +// Execute executes the request +func (a *DefaultAPIService) StopConnectorExecute(r ApiStopConnectorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.StopConnector") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connectors/{connector}/stop" + localVarPath = strings.Replace(localVarPath, "{"+"connector"+"}", url.PathEscape(parameterValueToString(r.connector, "connector")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.forward != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "forward", r.forward, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiValidateConfigsRequest struct { + ctx context.Context + ApiService *DefaultAPIService + pluginName string + requestBody *map[string]string +} + +func (r ApiValidateConfigsRequest) RequestBody(requestBody map[string]string) ApiValidateConfigsRequest { + r.requestBody = &requestBody + return r +} + +func (r ApiValidateConfigsRequest) Execute() (*ConfigInfos, *http.Response, error) { + return r.ApiService.ValidateConfigsExecute(r) +} + +/* +ValidateConfigs Validate the provided configuration against the configuration definition for the specified pluginName + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param pluginName + @return ApiValidateConfigsRequest +*/ +func (a *DefaultAPIService) ValidateConfigs(ctx context.Context, pluginName string) ApiValidateConfigsRequest { + return ApiValidateConfigsRequest{ + ApiService: a, + ctx: ctx, + pluginName: pluginName, + } +} + +// Execute executes the request +// @return ConfigInfos +func (a *DefaultAPIService) ValidateConfigsExecute(r ApiValidateConfigsRequest) (*ConfigInfos, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigInfos + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ValidateConfigs") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/connector-plugins/{pluginName}/config/validate" + localVarPath = strings.Replace(localVarPath, "{"+"pluginName"+"}", url.PathEscape(parameterValueToString(r.pluginName, "pluginName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + var v ConfigInfos + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/sdk/sdk-kafkaconnect/client.go b/sdk/sdk-kafkaconnect/client.go new file mode 100644 index 0000000..25793c5 --- /dev/null +++ b/sdk/sdk-kafkaconnect/client.go @@ -0,0 +1,661 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Kafka Connect With Pulsar API API v0.0.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI *DefaultAPIService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "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 + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/sdk/sdk-kafkaconnect/configuration.go b/sdk/sdk-kafkaconnect/configuration.go new file mode 100644 index 0000000..11727ea --- /dev/null +++ b/sdk/sdk-kafkaconnect/configuration.go @@ -0,0 +1,218 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/sdk/sdk-kafkaconnect/git_push.sh b/sdk/sdk-kafkaconnect/git_push.sh new file mode 100644 index 0000000..584e255 --- /dev/null +++ b/sdk/sdk-kafkaconnect/git_push.sh @@ -0,0 +1,57 @@ +#!/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" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="streamnative" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="cloud-cli/pkg" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/sdk/sdk-kafkaconnect/go.mod b/sdk/sdk-kafkaconnect/go.mod new file mode 100644 index 0000000..07ed6aa --- /dev/null +++ b/sdk/sdk-kafkaconnect/go.mod @@ -0,0 +1,3 @@ +module github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect + +go 1.18 diff --git a/sdk/sdk-kafkaconnect/go.sum b/sdk/sdk-kafkaconnect/go.sum new file mode 100644 index 0000000..e69de29 diff --git a/sdk/sdk-kafkaconnect/kafka-connect-admin.json b/sdk/sdk-kafkaconnect/kafka-connect-admin.json new file mode 100644 index 0000000..24f1793 --- /dev/null +++ b/sdk/sdk-kafkaconnect/kafka-connect-admin.json @@ -0,0 +1,1181 @@ +{ + "openapi" : "3.0.1", + "info" : { + "title" : "Kafka Connect With Pulsar API", + "version" : "0.0.1" + }, + "paths" : { + "/" : { + "get" : { + "operationId" : "serverInfo", + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ServerInfo" + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connector-plugins" : { + "get" : { + "summary" : "List all connector plugins installed", + "operationId" : "listConnectorPlugins", + "parameters" : [ { + "name" : "connectorsOnly", + "in" : "query", + "description" : "Whether to list only connectors instead of all plugins", + "schema" : { + "type" : "boolean", + "default" : true + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/PluginInfo" + } + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connector-plugins/catalog" : { + "get" : { + "summary" : "List all connector catalog", + "operationId" : "listConnectorPluginsCatalog", + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/FunctionMeshConnectorDefinition" + } + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connector-plugins/{pluginName}/config" : { + "get" : { + "summary" : "Get the configuration definition for the specified pluginName", + "operationId" : "getConnectorConfigDef", + "parameters" : [ { + "name" : "pluginName", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ConfigKeyInfo" + } + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connector-plugins/{pluginName}/config/validate" : { + "put" : { + "summary" : "Validate the provided configuration against the configuration definition for the specified pluginName", + "operationId" : "validateConfigs", + "parameters" : [ { + "name" : "pluginName", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } + } + }, + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConfigInfos" + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors" : { + "get" : { + "operationId" : "listConnectors", + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + }, + "post" : { + "operationId" : "createConnector", + "parameters" : [ { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateConnectorRequest" + } + } + } + }, + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}" : { + "get" : { + "operationId" : "getConnector", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConnectorInfo" + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + }, + "delete" : { + "operationId" : "destroyConnector", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/config" : { + "get" : { + "operationId" : "getConnectorConfig", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + }, + "put" : { + "operationId" : "putConnectorConfig", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } + } + }, + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/offsets" : { + "get" : { + "operationId" : "getOffsets", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SNConnectorOffsets" + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + }, + "delete" : { + "operationId" : "resetConnectorOffsets", + "parameters" : [ { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + }, + "patch" : { + "operationId" : "alterConnectorOffsets", + "parameters" : [ { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + }, { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SNConnectorOffsets" + } + } + } + }, + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/pause" : { + "put" : { + "operationId" : "pauseConnector", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/restart" : { + "post" : { + "operationId" : "restartConnector", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "includeTasks", + "in" : "query", + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "onlyFailed", + "in" : "query", + "schema" : { + "type" : "boolean", + "default" : false + } + }, { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/resume" : { + "put" : { + "operationId" : "resumeConnector", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/status" : { + "get" : { + "operationId" : "getConnectorStatus", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ConnectorStateInfo" + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/stop" : { + "put" : { + "operationId" : "stopConnector", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/tasks" : { + "get" : { + "operationId" : "getTaskConfigs", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/TaskInfo" + } + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/tasks-config" : { + "get" : { + "operationId" : "getTasksConfig", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "type" : "object", + "additionalProperties" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } + } + } + } + }, + "deprecated" : true, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/tasks/{task}/restart" : { + "post" : { + "operationId" : "restartTask", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "task", + "in" : "path", + "required" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "forward", + "in" : "query", + "schema" : { + "type" : "boolean" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/tasks/{task}/status" : { + "get" : { + "operationId" : "getTaskStatus", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "task", + "in" : "path", + "required" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TaskState" + } + } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/topics" : { + "get" : { + "operationId" : "getConnectorActiveTopics", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/connectors/{connector}/topics/reset" : { + "put" : { + "operationId" : "resetConnectorActiveTopics", + "parameters" : [ { + "name" : "connector", + "in" : "path", + "required" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + }, + "/health" : { + "get" : { + "summary" : "Health check endpoint to verify worker readiness and liveness", + "operationId" : "healthCheck", + "responses" : { + "default" : { + "description" : "default response", + "content" : { + "application/json" : { } + } + } + }, + "security" : [ { + "basicAuth" : [ ] + } ] + } + } + }, + "components" : { + "schemas" : { + "ConfigFieldDefinition" : { + "type" : "object", + "properties" : { + "attributes" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "fieldName" : { + "type" : "string" + }, + "typeName" : { + "type" : "string" + } + } + }, + "ConfigInfo" : { + "type" : "object", + "properties" : { + "definition" : { + "$ref" : "#/components/schemas/ConfigKeyInfo" + }, + "value" : { + "$ref" : "#/components/schemas/ConfigValueInfo" + } + } + }, + "ConfigInfos" : { + "type" : "object", + "properties" : { + "configs" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ConfigInfo" + } + }, + "error_count" : { + "type" : "integer", + "format" : "int32" + }, + "groups" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "name" : { + "type" : "string" + } + } + }, + "ConfigKeyInfo" : { + "type" : "object", + "properties" : { + "default_value" : { + "type" : "string" + }, + "dependents" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "display_name" : { + "type" : "string" + }, + "documentation" : { + "type" : "string" + }, + "group" : { + "type" : "string" + }, + "importance" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "order" : { + "type" : "integer", + "format" : "int32" + }, + "order_in_group" : { + "type" : "integer", + "format" : "int32", + "writeOnly" : true + }, + "required" : { + "type" : "boolean" + }, + "type" : { + "type" : "string" + }, + "width" : { + "type" : "string" + } + } + }, + "ConfigValueInfo" : { + "type" : "object", + "properties" : { + "errors" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "name" : { + "type" : "string" + }, + "recommended_values" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "value" : { + "type" : "string" + }, + "visible" : { + "type" : "boolean" + } + } + }, + "ConnectorInfo" : { + "type" : "object", + "properties" : { + "config" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "name" : { + "type" : "string" + }, + "tasks" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ConnectorTaskId" + } + }, + "type" : { + "type" : "string", + "enum" : [ "source", "sink", "unknown" ] + } + } + }, + "ConnectorState" : { + "type" : "object", + "properties" : { + "msg" : { + "type" : "string", + "writeOnly" : true + }, + "state" : { + "type" : "string" + }, + "trace" : { + "type" : "string" + }, + "worker_id" : { + "type" : "string" + } + } + }, + "ConnectorStateInfo" : { + "type" : "object", + "properties" : { + "connector" : { + "$ref" : "#/components/schemas/ConnectorState" + }, + "name" : { + "type" : "string" + }, + "tasks" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/TaskState" + } + }, + "type" : { + "type" : "string", + "enum" : [ "source", "sink", "unknown" ] + } + } + }, + "ConnectorTaskId" : { + "type" : "object", + "properties" : { + "connector" : { + "type" : "string" + }, + "task" : { + "type" : "integer", + "format" : "int32" + } + } + }, + "CreateConnectorRequest" : { + "type" : "object", + "properties" : { + "config" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "initial_state" : { + "type" : "string", + "enum" : [ "RUNNING", "PAUSED", "STOPPED" ] + }, + "name" : { + "type" : "string" + } + } + }, + "FunctionMeshConnectorDefinition" : { + "type" : "object", + "properties" : { + "defaultSchemaType" : { + "type" : "string" + }, + "defaultSerdeClassName" : { + "type" : "string" + }, + "description" : { + "type" : "string" + }, + "iconLink" : { + "type" : "string" + }, + "id" : { + "type" : "string" + }, + "imageRegistry" : { + "type" : "string" + }, + "imageRepository" : { + "type" : "string" + }, + "imageTag" : { + "type" : "string" + }, + "jar" : { + "type" : "string" + }, + "jarFullName" : { + "type" : "string" + }, + "name" : { + "type" : "string" + }, + "sinkClass" : { + "type" : "string" + }, + "sinkConfigClass" : { + "type" : "string" + }, + "sinkConfigFieldDefinitions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ConfigFieldDefinition" + } + }, + "sinkDocLink" : { + "type" : "string" + }, + "sinkTypeClassName" : { + "type" : "string" + }, + "sourceClass" : { + "type" : "string" + }, + "sourceConfigClass" : { + "type" : "string" + }, + "sourceConfigFieldDefinitions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/ConfigFieldDefinition" + } + }, + "sourceDocLink" : { + "type" : "string" + }, + "sourceTypeClassName" : { + "type" : "string" + }, + "typeClassName" : { + "type" : "string" + }, + "version" : { + "type" : "string" + } + } + }, + "PluginInfo" : { + "type" : "object", + "properties" : { + "class" : { + "type" : "string" + }, + "type" : { + "type" : "string" + }, + "version" : { + "type" : "string" + } + } + }, + "SNConnectorOffset" : { + "type" : "object", + "properties" : { + "offset" : { + "type" : "object", + "additionalProperties" : { + "type" : "integer", + "format" : "int32" + } + }, + "partition" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } + }, + "SNConnectorOffsets" : { + "type" : "object", + "properties" : { + "offsets" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/SNConnectorOffset" + } + } + } + }, + "ServerInfo" : { + "type" : "object", + "properties" : { + "commit" : { + "type" : "string" + }, + "kafka_cluster_id" : { + "type" : "string" + }, + "version" : { + "type" : "string" + } + } + }, + "TaskInfo" : { + "type" : "object", + "properties" : { + "config" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "id" : { + "$ref" : "#/components/schemas/ConnectorTaskId" + } + } + }, + "TaskState" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "integer", + "format" : "int32" + }, + "msg" : { + "type" : "string", + "writeOnly" : true + }, + "state" : { + "type" : "string" + }, + "trace" : { + "type" : "string" + }, + "worker_id" : { + "type" : "string" + } + } + } + }, + "securitySchemes" : { + "basicAuth" : { + "type" : "http", + "scheme" : "basic" + } + } + } +} \ No newline at end of file diff --git a/sdk/sdk-kafkaconnect/model_config_field_definition.go b/sdk/sdk-kafkaconnect/model_config_field_definition.go new file mode 100644 index 0000000..7483bb1 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_config_field_definition.go @@ -0,0 +1,198 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConfigFieldDefinition type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigFieldDefinition{} + +// ConfigFieldDefinition struct for ConfigFieldDefinition +type ConfigFieldDefinition struct { + Attributes *map[string]string `json:"attributes,omitempty"` + FieldName *string `json:"fieldName,omitempty"` + TypeName *string `json:"typeName,omitempty"` +} + +// NewConfigFieldDefinition instantiates a new ConfigFieldDefinition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigFieldDefinition() *ConfigFieldDefinition { + this := ConfigFieldDefinition{} + return &this +} + +// NewConfigFieldDefinitionWithDefaults instantiates a new ConfigFieldDefinition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigFieldDefinitionWithDefaults() *ConfigFieldDefinition { + this := ConfigFieldDefinition{} + return &this +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *ConfigFieldDefinition) GetAttributes() map[string]string { + if o == nil || IsNil(o.Attributes) { + var ret map[string]string + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigFieldDefinition) GetAttributesOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *ConfigFieldDefinition) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given map[string]string and assigns it to the Attributes field. +func (o *ConfigFieldDefinition) SetAttributes(v map[string]string) { + o.Attributes = &v +} + +// GetFieldName returns the FieldName field value if set, zero value otherwise. +func (o *ConfigFieldDefinition) GetFieldName() string { + if o == nil || IsNil(o.FieldName) { + var ret string + return ret + } + return *o.FieldName +} + +// GetFieldNameOk returns a tuple with the FieldName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigFieldDefinition) GetFieldNameOk() (*string, bool) { + if o == nil || IsNil(o.FieldName) { + return nil, false + } + return o.FieldName, true +} + +// HasFieldName returns a boolean if a field has been set. +func (o *ConfigFieldDefinition) HasFieldName() bool { + if o != nil && !IsNil(o.FieldName) { + return true + } + + return false +} + +// SetFieldName gets a reference to the given string and assigns it to the FieldName field. +func (o *ConfigFieldDefinition) SetFieldName(v string) { + o.FieldName = &v +} + +// GetTypeName returns the TypeName field value if set, zero value otherwise. +func (o *ConfigFieldDefinition) GetTypeName() string { + if o == nil || IsNil(o.TypeName) { + var ret string + return ret + } + return *o.TypeName +} + +// GetTypeNameOk returns a tuple with the TypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigFieldDefinition) GetTypeNameOk() (*string, bool) { + if o == nil || IsNil(o.TypeName) { + return nil, false + } + return o.TypeName, true +} + +// HasTypeName returns a boolean if a field has been set. +func (o *ConfigFieldDefinition) HasTypeName() bool { + if o != nil && !IsNil(o.TypeName) { + return true + } + + return false +} + +// SetTypeName gets a reference to the given string and assigns it to the TypeName field. +func (o *ConfigFieldDefinition) SetTypeName(v string) { + o.TypeName = &v +} + +func (o ConfigFieldDefinition) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigFieldDefinition) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.FieldName) { + toSerialize["fieldName"] = o.FieldName + } + if !IsNil(o.TypeName) { + toSerialize["typeName"] = o.TypeName + } + return toSerialize, nil +} + +type NullableConfigFieldDefinition struct { + value *ConfigFieldDefinition + isSet bool +} + +func (v NullableConfigFieldDefinition) Get() *ConfigFieldDefinition { + return v.value +} + +func (v *NullableConfigFieldDefinition) Set(val *ConfigFieldDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableConfigFieldDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigFieldDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigFieldDefinition(val *ConfigFieldDefinition) *NullableConfigFieldDefinition { + return &NullableConfigFieldDefinition{value: val, isSet: true} +} + +func (v NullableConfigFieldDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigFieldDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_config_info.go b/sdk/sdk-kafkaconnect/model_config_info.go new file mode 100644 index 0000000..4b7062c --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_config_info.go @@ -0,0 +1,162 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConfigInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigInfo{} + +// ConfigInfo struct for ConfigInfo +type ConfigInfo struct { + Definition *ConfigKeyInfo `json:"definition,omitempty"` + Value *ConfigValueInfo `json:"value,omitempty"` +} + +// NewConfigInfo instantiates a new ConfigInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigInfo() *ConfigInfo { + this := ConfigInfo{} + return &this +} + +// NewConfigInfoWithDefaults instantiates a new ConfigInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigInfoWithDefaults() *ConfigInfo { + this := ConfigInfo{} + return &this +} + +// GetDefinition returns the Definition field value if set, zero value otherwise. +func (o *ConfigInfo) GetDefinition() ConfigKeyInfo { + if o == nil || IsNil(o.Definition) { + var ret ConfigKeyInfo + return ret + } + return *o.Definition +} + +// GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigInfo) GetDefinitionOk() (*ConfigKeyInfo, bool) { + if o == nil || IsNil(o.Definition) { + return nil, false + } + return o.Definition, true +} + +// HasDefinition returns a boolean if a field has been set. +func (o *ConfigInfo) HasDefinition() bool { + if o != nil && !IsNil(o.Definition) { + return true + } + + return false +} + +// SetDefinition gets a reference to the given ConfigKeyInfo and assigns it to the Definition field. +func (o *ConfigInfo) SetDefinition(v ConfigKeyInfo) { + o.Definition = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ConfigInfo) GetValue() ConfigValueInfo { + if o == nil || IsNil(o.Value) { + var ret ConfigValueInfo + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigInfo) GetValueOk() (*ConfigValueInfo, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ConfigInfo) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ConfigValueInfo and assigns it to the Value field. +func (o *ConfigInfo) SetValue(v ConfigValueInfo) { + o.Value = &v +} + +func (o ConfigInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Definition) { + toSerialize["definition"] = o.Definition + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableConfigInfo struct { + value *ConfigInfo + isSet bool +} + +func (v NullableConfigInfo) Get() *ConfigInfo { + return v.value +} + +func (v *NullableConfigInfo) Set(val *ConfigInfo) { + v.value = val + v.isSet = true +} + +func (v NullableConfigInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigInfo(val *ConfigInfo) *NullableConfigInfo { + return &NullableConfigInfo{value: val, isSet: true} +} + +func (v NullableConfigInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_config_infos.go b/sdk/sdk-kafkaconnect/model_config_infos.go new file mode 100644 index 0000000..7d04c87 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_config_infos.go @@ -0,0 +1,234 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConfigInfos type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigInfos{} + +// ConfigInfos struct for ConfigInfos +type ConfigInfos struct { + Configs []ConfigInfo `json:"configs,omitempty"` + ErrorCount *int32 `json:"error_count,omitempty"` + Groups []string `json:"groups,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewConfigInfos instantiates a new ConfigInfos object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigInfos() *ConfigInfos { + this := ConfigInfos{} + return &this +} + +// NewConfigInfosWithDefaults instantiates a new ConfigInfos object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigInfosWithDefaults() *ConfigInfos { + this := ConfigInfos{} + return &this +} + +// GetConfigs returns the Configs field value if set, zero value otherwise. +func (o *ConfigInfos) GetConfigs() []ConfigInfo { + if o == nil || IsNil(o.Configs) { + var ret []ConfigInfo + return ret + } + return o.Configs +} + +// GetConfigsOk returns a tuple with the Configs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigInfos) GetConfigsOk() ([]ConfigInfo, bool) { + if o == nil || IsNil(o.Configs) { + return nil, false + } + return o.Configs, true +} + +// HasConfigs returns a boolean if a field has been set. +func (o *ConfigInfos) HasConfigs() bool { + if o != nil && !IsNil(o.Configs) { + return true + } + + return false +} + +// SetConfigs gets a reference to the given []ConfigInfo and assigns it to the Configs field. +func (o *ConfigInfos) SetConfigs(v []ConfigInfo) { + o.Configs = v +} + +// GetErrorCount returns the ErrorCount field value if set, zero value otherwise. +func (o *ConfigInfos) GetErrorCount() int32 { + if o == nil || IsNil(o.ErrorCount) { + var ret int32 + return ret + } + return *o.ErrorCount +} + +// GetErrorCountOk returns a tuple with the ErrorCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigInfos) GetErrorCountOk() (*int32, bool) { + if o == nil || IsNil(o.ErrorCount) { + return nil, false + } + return o.ErrorCount, true +} + +// HasErrorCount returns a boolean if a field has been set. +func (o *ConfigInfos) HasErrorCount() bool { + if o != nil && !IsNil(o.ErrorCount) { + return true + } + + return false +} + +// SetErrorCount gets a reference to the given int32 and assigns it to the ErrorCount field. +func (o *ConfigInfos) SetErrorCount(v int32) { + o.ErrorCount = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *ConfigInfos) GetGroups() []string { + if o == nil || IsNil(o.Groups) { + var ret []string + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigInfos) GetGroupsOk() ([]string, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *ConfigInfos) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []string and assigns it to the Groups field. +func (o *ConfigInfos) SetGroups(v []string) { + o.Groups = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConfigInfos) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigInfos) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConfigInfos) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConfigInfos) SetName(v string) { + o.Name = &v +} + +func (o ConfigInfos) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigInfos) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Configs) { + toSerialize["configs"] = o.Configs + } + if !IsNil(o.ErrorCount) { + toSerialize["error_count"] = o.ErrorCount + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableConfigInfos struct { + value *ConfigInfos + isSet bool +} + +func (v NullableConfigInfos) Get() *ConfigInfos { + return v.value +} + +func (v *NullableConfigInfos) Set(val *ConfigInfos) { + v.value = val + v.isSet = true +} + +func (v NullableConfigInfos) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigInfos) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigInfos(val *ConfigInfos) *NullableConfigInfos { + return &NullableConfigInfos{value: val, isSet: true} +} + +func (v NullableConfigInfos) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigInfos) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_config_key_info.go b/sdk/sdk-kafkaconnect/model_config_key_info.go new file mode 100644 index 0000000..15aecbe --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_config_key_info.go @@ -0,0 +1,522 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConfigKeyInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigKeyInfo{} + +// ConfigKeyInfo struct for ConfigKeyInfo +type ConfigKeyInfo struct { + DefaultValue *string `json:"default_value,omitempty"` + Dependents []string `json:"dependents,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + Documentation *string `json:"documentation,omitempty"` + Group *string `json:"group,omitempty"` + Importance *string `json:"importance,omitempty"` + Name *string `json:"name,omitempty"` + Order *int32 `json:"order,omitempty"` + OrderInGroup *int32 `json:"order_in_group,omitempty"` + Required *bool `json:"required,omitempty"` + Type *string `json:"type,omitempty"` + Width *string `json:"width,omitempty"` +} + +// NewConfigKeyInfo instantiates a new ConfigKeyInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigKeyInfo() *ConfigKeyInfo { + this := ConfigKeyInfo{} + return &this +} + +// NewConfigKeyInfoWithDefaults instantiates a new ConfigKeyInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigKeyInfoWithDefaults() *ConfigKeyInfo { + this := ConfigKeyInfo{} + return &this +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetDefaultValue() string { + if o == nil || IsNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetDefaultValueOk() (*string, bool) { + if o == nil || IsNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasDefaultValue() bool { + if o != nil && !IsNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *ConfigKeyInfo) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetDependents returns the Dependents field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetDependents() []string { + if o == nil || IsNil(o.Dependents) { + var ret []string + return ret + } + return o.Dependents +} + +// GetDependentsOk returns a tuple with the Dependents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetDependentsOk() ([]string, bool) { + if o == nil || IsNil(o.Dependents) { + return nil, false + } + return o.Dependents, true +} + +// HasDependents returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasDependents() bool { + if o != nil && !IsNil(o.Dependents) { + return true + } + + return false +} + +// SetDependents gets a reference to the given []string and assigns it to the Dependents field. +func (o *ConfigKeyInfo) SetDependents(v []string) { + o.Dependents = v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *ConfigKeyInfo) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDocumentation returns the Documentation field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetDocumentation() string { + if o == nil || IsNil(o.Documentation) { + var ret string + return ret + } + return *o.Documentation +} + +// GetDocumentationOk returns a tuple with the Documentation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetDocumentationOk() (*string, bool) { + if o == nil || IsNil(o.Documentation) { + return nil, false + } + return o.Documentation, true +} + +// HasDocumentation returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasDocumentation() bool { + if o != nil && !IsNil(o.Documentation) { + return true + } + + return false +} + +// SetDocumentation gets a reference to the given string and assigns it to the Documentation field. +func (o *ConfigKeyInfo) SetDocumentation(v string) { + o.Documentation = &v +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetGroup() string { + if o == nil || IsNil(o.Group) { + var ret string + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetGroupOk() (*string, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given string and assigns it to the Group field. +func (o *ConfigKeyInfo) SetGroup(v string) { + o.Group = &v +} + +// GetImportance returns the Importance field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetImportance() string { + if o == nil || IsNil(o.Importance) { + var ret string + return ret + } + return *o.Importance +} + +// GetImportanceOk returns a tuple with the Importance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetImportanceOk() (*string, bool) { + if o == nil || IsNil(o.Importance) { + return nil, false + } + return o.Importance, true +} + +// HasImportance returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasImportance() bool { + if o != nil && !IsNil(o.Importance) { + return true + } + + return false +} + +// SetImportance gets a reference to the given string and assigns it to the Importance field. +func (o *ConfigKeyInfo) SetImportance(v string) { + o.Importance = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConfigKeyInfo) SetName(v string) { + o.Name = &v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetOrder() int32 { + if o == nil || IsNil(o.Order) { + var ret int32 + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetOrderOk() (*int32, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given int32 and assigns it to the Order field. +func (o *ConfigKeyInfo) SetOrder(v int32) { + o.Order = &v +} + +// GetOrderInGroup returns the OrderInGroup field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetOrderInGroup() int32 { + if o == nil || IsNil(o.OrderInGroup) { + var ret int32 + return ret + } + return *o.OrderInGroup +} + +// GetOrderInGroupOk returns a tuple with the OrderInGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetOrderInGroupOk() (*int32, bool) { + if o == nil || IsNil(o.OrderInGroup) { + return nil, false + } + return o.OrderInGroup, true +} + +// HasOrderInGroup returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasOrderInGroup() bool { + if o != nil && !IsNil(o.OrderInGroup) { + return true + } + + return false +} + +// SetOrderInGroup gets a reference to the given int32 and assigns it to the OrderInGroup field. +func (o *ConfigKeyInfo) SetOrderInGroup(v int32) { + o.OrderInGroup = &v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetRequired() bool { + if o == nil || IsNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasRequired() bool { + if o != nil && !IsNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *ConfigKeyInfo) SetRequired(v bool) { + o.Required = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ConfigKeyInfo) SetType(v string) { + o.Type = &v +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *ConfigKeyInfo) GetWidth() string { + if o == nil || IsNil(o.Width) { + var ret string + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigKeyInfo) GetWidthOk() (*string, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *ConfigKeyInfo) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given string and assigns it to the Width field. +func (o *ConfigKeyInfo) SetWidth(v string) { + o.Width = &v +} + +func (o ConfigKeyInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigKeyInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DefaultValue) { + toSerialize["default_value"] = o.DefaultValue + } + if !IsNil(o.Dependents) { + toSerialize["dependents"] = o.Dependents + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.Documentation) { + toSerialize["documentation"] = o.Documentation + } + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.Importance) { + toSerialize["importance"] = o.Importance + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.OrderInGroup) { + toSerialize["order_in_group"] = o.OrderInGroup + } + if !IsNil(o.Required) { + toSerialize["required"] = o.Required + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + return toSerialize, nil +} + +type NullableConfigKeyInfo struct { + value *ConfigKeyInfo + isSet bool +} + +func (v NullableConfigKeyInfo) Get() *ConfigKeyInfo { + return v.value +} + +func (v *NullableConfigKeyInfo) Set(val *ConfigKeyInfo) { + v.value = val + v.isSet = true +} + +func (v NullableConfigKeyInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigKeyInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigKeyInfo(val *ConfigKeyInfo) *NullableConfigKeyInfo { + return &NullableConfigKeyInfo{value: val, isSet: true} +} + +func (v NullableConfigKeyInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigKeyInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_config_value_info.go b/sdk/sdk-kafkaconnect/model_config_value_info.go new file mode 100644 index 0000000..a7e31f9 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_config_value_info.go @@ -0,0 +1,270 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConfigValueInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigValueInfo{} + +// ConfigValueInfo struct for ConfigValueInfo +type ConfigValueInfo struct { + Errors []string `json:"errors,omitempty"` + Name *string `json:"name,omitempty"` + RecommendedValues []string `json:"recommended_values,omitempty"` + Value *string `json:"value,omitempty"` + Visible *bool `json:"visible,omitempty"` +} + +// NewConfigValueInfo instantiates a new ConfigValueInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConfigValueInfo() *ConfigValueInfo { + this := ConfigValueInfo{} + return &this +} + +// NewConfigValueInfoWithDefaults instantiates a new ConfigValueInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConfigValueInfoWithDefaults() *ConfigValueInfo { + this := ConfigValueInfo{} + return &this +} + +// GetErrors returns the Errors field value if set, zero value otherwise. +func (o *ConfigValueInfo) GetErrors() []string { + if o == nil || IsNil(o.Errors) { + var ret []string + return ret + } + return o.Errors +} + +// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigValueInfo) GetErrorsOk() ([]string, bool) { + if o == nil || IsNil(o.Errors) { + return nil, false + } + return o.Errors, true +} + +// HasErrors returns a boolean if a field has been set. +func (o *ConfigValueInfo) HasErrors() bool { + if o != nil && !IsNil(o.Errors) { + return true + } + + return false +} + +// SetErrors gets a reference to the given []string and assigns it to the Errors field. +func (o *ConfigValueInfo) SetErrors(v []string) { + o.Errors = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConfigValueInfo) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigValueInfo) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConfigValueInfo) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConfigValueInfo) SetName(v string) { + o.Name = &v +} + +// GetRecommendedValues returns the RecommendedValues field value if set, zero value otherwise. +func (o *ConfigValueInfo) GetRecommendedValues() []string { + if o == nil || IsNil(o.RecommendedValues) { + var ret []string + return ret + } + return o.RecommendedValues +} + +// GetRecommendedValuesOk returns a tuple with the RecommendedValues field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigValueInfo) GetRecommendedValuesOk() ([]string, bool) { + if o == nil || IsNil(o.RecommendedValues) { + return nil, false + } + return o.RecommendedValues, true +} + +// HasRecommendedValues returns a boolean if a field has been set. +func (o *ConfigValueInfo) HasRecommendedValues() bool { + if o != nil && !IsNil(o.RecommendedValues) { + return true + } + + return false +} + +// SetRecommendedValues gets a reference to the given []string and assigns it to the RecommendedValues field. +func (o *ConfigValueInfo) SetRecommendedValues(v []string) { + o.RecommendedValues = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ConfigValueInfo) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigValueInfo) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ConfigValueInfo) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ConfigValueInfo) SetValue(v string) { + o.Value = &v +} + +// GetVisible returns the Visible field value if set, zero value otherwise. +func (o *ConfigValueInfo) GetVisible() bool { + if o == nil || IsNil(o.Visible) { + var ret bool + return ret + } + return *o.Visible +} + +// GetVisibleOk returns a tuple with the Visible field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigValueInfo) GetVisibleOk() (*bool, bool) { + if o == nil || IsNil(o.Visible) { + return nil, false + } + return o.Visible, true +} + +// HasVisible returns a boolean if a field has been set. +func (o *ConfigValueInfo) HasVisible() bool { + if o != nil && !IsNil(o.Visible) { + return true + } + + return false +} + +// SetVisible gets a reference to the given bool and assigns it to the Visible field. +func (o *ConfigValueInfo) SetVisible(v bool) { + o.Visible = &v +} + +func (o ConfigValueInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConfigValueInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Errors) { + toSerialize["errors"] = o.Errors + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.RecommendedValues) { + toSerialize["recommended_values"] = o.RecommendedValues + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Visible) { + toSerialize["visible"] = o.Visible + } + return toSerialize, nil +} + +type NullableConfigValueInfo struct { + value *ConfigValueInfo + isSet bool +} + +func (v NullableConfigValueInfo) Get() *ConfigValueInfo { + return v.value +} + +func (v *NullableConfigValueInfo) Set(val *ConfigValueInfo) { + v.value = val + v.isSet = true +} + +func (v NullableConfigValueInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableConfigValueInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConfigValueInfo(val *ConfigValueInfo) *NullableConfigValueInfo { + return &NullableConfigValueInfo{value: val, isSet: true} +} + +func (v NullableConfigValueInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConfigValueInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_connector_info.go b/sdk/sdk-kafkaconnect/model_connector_info.go new file mode 100644 index 0000000..b433a37 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_connector_info.go @@ -0,0 +1,234 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConnectorInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorInfo{} + +// ConnectorInfo struct for ConnectorInfo +type ConnectorInfo struct { + Config *map[string]string `json:"config,omitempty"` + Name *string `json:"name,omitempty"` + Tasks []ConnectorTaskId `json:"tasks,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewConnectorInfo instantiates a new ConnectorInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorInfo() *ConnectorInfo { + this := ConnectorInfo{} + return &this +} + +// NewConnectorInfoWithDefaults instantiates a new ConnectorInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorInfoWithDefaults() *ConnectorInfo { + this := ConnectorInfo{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *ConnectorInfo) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorInfo) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *ConnectorInfo) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *ConnectorInfo) SetConfig(v map[string]string) { + o.Config = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorInfo) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorInfo) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorInfo) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorInfo) SetName(v string) { + o.Name = &v +} + +// GetTasks returns the Tasks field value if set, zero value otherwise. +func (o *ConnectorInfo) GetTasks() []ConnectorTaskId { + if o == nil || IsNil(o.Tasks) { + var ret []ConnectorTaskId + return ret + } + return o.Tasks +} + +// GetTasksOk returns a tuple with the Tasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorInfo) GetTasksOk() ([]ConnectorTaskId, bool) { + if o == nil || IsNil(o.Tasks) { + return nil, false + } + return o.Tasks, true +} + +// HasTasks returns a boolean if a field has been set. +func (o *ConnectorInfo) HasTasks() bool { + if o != nil && !IsNil(o.Tasks) { + return true + } + + return false +} + +// SetTasks gets a reference to the given []ConnectorTaskId and assigns it to the Tasks field. +func (o *ConnectorInfo) SetTasks(v []ConnectorTaskId) { + o.Tasks = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ConnectorInfo) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorInfo) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ConnectorInfo) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ConnectorInfo) SetType(v string) { + o.Type = &v +} + +func (o ConnectorInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Tasks) { + toSerialize["tasks"] = o.Tasks + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableConnectorInfo struct { + value *ConnectorInfo + isSet bool +} + +func (v NullableConnectorInfo) Get() *ConnectorInfo { + return v.value +} + +func (v *NullableConnectorInfo) Set(val *ConnectorInfo) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorInfo(val *ConnectorInfo) *NullableConnectorInfo { + return &NullableConnectorInfo{value: val, isSet: true} +} + +func (v NullableConnectorInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_connector_offset.go b/sdk/sdk-kafkaconnect/model_connector_offset.go new file mode 100644 index 0000000..05cc8ca --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_connector_offset.go @@ -0,0 +1,162 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConnectorOffset type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorOffset{} + +// ConnectorOffset struct for ConnectorOffset +type ConnectorOffset struct { + Offset map[string]map[string]interface{} `json:"offset,omitempty"` + Partition map[string]map[string]interface{} `json:"partition,omitempty"` +} + +// NewConnectorOffset instantiates a new ConnectorOffset object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorOffset() *ConnectorOffset { + this := ConnectorOffset{} + return &this +} + +// NewConnectorOffsetWithDefaults instantiates a new ConnectorOffset object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorOffsetWithDefaults() *ConnectorOffset { + this := ConnectorOffset{} + return &this +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *ConnectorOffset) GetOffset() map[string]map[string]interface{} { + if o == nil || IsNil(o.Offset) { + var ret map[string]map[string]interface{} + return ret + } + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorOffset) GetOffsetOk() (map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.Offset) { + return map[string]map[string]interface{}{}, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *ConnectorOffset) HasOffset() bool { + if o != nil && !IsNil(o.Offset) { + return true + } + + return false +} + +// SetOffset gets a reference to the given map[string]map[string]interface{} and assigns it to the Offset field. +func (o *ConnectorOffset) SetOffset(v map[string]map[string]interface{}) { + o.Offset = v +} + +// GetPartition returns the Partition field value if set, zero value otherwise. +func (o *ConnectorOffset) GetPartition() map[string]map[string]interface{} { + if o == nil || IsNil(o.Partition) { + var ret map[string]map[string]interface{} + return ret + } + return o.Partition +} + +// GetPartitionOk returns a tuple with the Partition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorOffset) GetPartitionOk() (map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.Partition) { + return map[string]map[string]interface{}{}, false + } + return o.Partition, true +} + +// HasPartition returns a boolean if a field has been set. +func (o *ConnectorOffset) HasPartition() bool { + if o != nil && !IsNil(o.Partition) { + return true + } + + return false +} + +// SetPartition gets a reference to the given map[string]map[string]interface{} and assigns it to the Partition field. +func (o *ConnectorOffset) SetPartition(v map[string]map[string]interface{}) { + o.Partition = v +} + +func (o ConnectorOffset) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorOffset) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Offset) { + toSerialize["offset"] = o.Offset + } + if !IsNil(o.Partition) { + toSerialize["partition"] = o.Partition + } + return toSerialize, nil +} + +type NullableConnectorOffset struct { + value *ConnectorOffset + isSet bool +} + +func (v NullableConnectorOffset) Get() *ConnectorOffset { + return v.value +} + +func (v *NullableConnectorOffset) Set(val *ConnectorOffset) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorOffset) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorOffset) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorOffset(val *ConnectorOffset) *NullableConnectorOffset { + return &NullableConnectorOffset{value: val, isSet: true} +} + +func (v NullableConnectorOffset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorOffset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_connector_offsets.go b/sdk/sdk-kafkaconnect/model_connector_offsets.go new file mode 100644 index 0000000..92d5bdf --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_connector_offsets.go @@ -0,0 +1,126 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConnectorOffsets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorOffsets{} + +// ConnectorOffsets struct for ConnectorOffsets +type ConnectorOffsets struct { + Offsets []ConnectorOffset `json:"offsets,omitempty"` +} + +// NewConnectorOffsets instantiates a new ConnectorOffsets object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorOffsets() *ConnectorOffsets { + this := ConnectorOffsets{} + return &this +} + +// NewConnectorOffsetsWithDefaults instantiates a new ConnectorOffsets object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorOffsetsWithDefaults() *ConnectorOffsets { + this := ConnectorOffsets{} + return &this +} + +// GetOffsets returns the Offsets field value if set, zero value otherwise. +func (o *ConnectorOffsets) GetOffsets() []ConnectorOffset { + if o == nil || IsNil(o.Offsets) { + var ret []ConnectorOffset + return ret + } + return o.Offsets +} + +// GetOffsetsOk returns a tuple with the Offsets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorOffsets) GetOffsetsOk() ([]ConnectorOffset, bool) { + if o == nil || IsNil(o.Offsets) { + return nil, false + } + return o.Offsets, true +} + +// HasOffsets returns a boolean if a field has been set. +func (o *ConnectorOffsets) HasOffsets() bool { + if o != nil && !IsNil(o.Offsets) { + return true + } + + return false +} + +// SetOffsets gets a reference to the given []ConnectorOffset and assigns it to the Offsets field. +func (o *ConnectorOffsets) SetOffsets(v []ConnectorOffset) { + o.Offsets = v +} + +func (o ConnectorOffsets) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorOffsets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Offsets) { + toSerialize["offsets"] = o.Offsets + } + return toSerialize, nil +} + +type NullableConnectorOffsets struct { + value *ConnectorOffsets + isSet bool +} + +func (v NullableConnectorOffsets) Get() *ConnectorOffsets { + return v.value +} + +func (v *NullableConnectorOffsets) Set(val *ConnectorOffsets) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorOffsets) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorOffsets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorOffsets(val *ConnectorOffsets) *NullableConnectorOffsets { + return &NullableConnectorOffsets{value: val, isSet: true} +} + +func (v NullableConnectorOffsets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorOffsets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_connector_state.go b/sdk/sdk-kafkaconnect/model_connector_state.go new file mode 100644 index 0000000..b8acd6f --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_connector_state.go @@ -0,0 +1,234 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConnectorState type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorState{} + +// ConnectorState struct for ConnectorState +type ConnectorState struct { + Msg *string `json:"msg,omitempty"` + State *string `json:"state,omitempty"` + Trace *string `json:"trace,omitempty"` + WorkerId *string `json:"worker_id,omitempty"` +} + +// NewConnectorState instantiates a new ConnectorState object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorState() *ConnectorState { + this := ConnectorState{} + return &this +} + +// NewConnectorStateWithDefaults instantiates a new ConnectorState object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorStateWithDefaults() *ConnectorState { + this := ConnectorState{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *ConnectorState) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorState) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *ConnectorState) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *ConnectorState) SetMsg(v string) { + o.Msg = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *ConnectorState) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorState) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *ConnectorState) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *ConnectorState) SetState(v string) { + o.State = &v +} + +// GetTrace returns the Trace field value if set, zero value otherwise. +func (o *ConnectorState) GetTrace() string { + if o == nil || IsNil(o.Trace) { + var ret string + return ret + } + return *o.Trace +} + +// GetTraceOk returns a tuple with the Trace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorState) GetTraceOk() (*string, bool) { + if o == nil || IsNil(o.Trace) { + return nil, false + } + return o.Trace, true +} + +// HasTrace returns a boolean if a field has been set. +func (o *ConnectorState) HasTrace() bool { + if o != nil && !IsNil(o.Trace) { + return true + } + + return false +} + +// SetTrace gets a reference to the given string and assigns it to the Trace field. +func (o *ConnectorState) SetTrace(v string) { + o.Trace = &v +} + +// GetWorkerId returns the WorkerId field value if set, zero value otherwise. +func (o *ConnectorState) GetWorkerId() string { + if o == nil || IsNil(o.WorkerId) { + var ret string + return ret + } + return *o.WorkerId +} + +// GetWorkerIdOk returns a tuple with the WorkerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorState) GetWorkerIdOk() (*string, bool) { + if o == nil || IsNil(o.WorkerId) { + return nil, false + } + return o.WorkerId, true +} + +// HasWorkerId returns a boolean if a field has been set. +func (o *ConnectorState) HasWorkerId() bool { + if o != nil && !IsNil(o.WorkerId) { + return true + } + + return false +} + +// SetWorkerId gets a reference to the given string and assigns it to the WorkerId field. +func (o *ConnectorState) SetWorkerId(v string) { + o.WorkerId = &v +} + +func (o ConnectorState) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorState) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Trace) { + toSerialize["trace"] = o.Trace + } + if !IsNil(o.WorkerId) { + toSerialize["worker_id"] = o.WorkerId + } + return toSerialize, nil +} + +type NullableConnectorState struct { + value *ConnectorState + isSet bool +} + +func (v NullableConnectorState) Get() *ConnectorState { + return v.value +} + +func (v *NullableConnectorState) Set(val *ConnectorState) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorState) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorState(val *ConnectorState) *NullableConnectorState { + return &NullableConnectorState{value: val, isSet: true} +} + +func (v NullableConnectorState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_connector_state_info.go b/sdk/sdk-kafkaconnect/model_connector_state_info.go new file mode 100644 index 0000000..ad98018 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_connector_state_info.go @@ -0,0 +1,234 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConnectorStateInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorStateInfo{} + +// ConnectorStateInfo struct for ConnectorStateInfo +type ConnectorStateInfo struct { + Connector *ConnectorState `json:"connector,omitempty"` + Name *string `json:"name,omitempty"` + Tasks []TaskState `json:"tasks,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewConnectorStateInfo instantiates a new ConnectorStateInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorStateInfo() *ConnectorStateInfo { + this := ConnectorStateInfo{} + return &this +} + +// NewConnectorStateInfoWithDefaults instantiates a new ConnectorStateInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorStateInfoWithDefaults() *ConnectorStateInfo { + this := ConnectorStateInfo{} + return &this +} + +// GetConnector returns the Connector field value if set, zero value otherwise. +func (o *ConnectorStateInfo) GetConnector() ConnectorState { + if o == nil || IsNil(o.Connector) { + var ret ConnectorState + return ret + } + return *o.Connector +} + +// GetConnectorOk returns a tuple with the Connector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorStateInfo) GetConnectorOk() (*ConnectorState, bool) { + if o == nil || IsNil(o.Connector) { + return nil, false + } + return o.Connector, true +} + +// HasConnector returns a boolean if a field has been set. +func (o *ConnectorStateInfo) HasConnector() bool { + if o != nil && !IsNil(o.Connector) { + return true + } + + return false +} + +// SetConnector gets a reference to the given ConnectorState and assigns it to the Connector field. +func (o *ConnectorStateInfo) SetConnector(v ConnectorState) { + o.Connector = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *ConnectorStateInfo) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorStateInfo) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *ConnectorStateInfo) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *ConnectorStateInfo) SetName(v string) { + o.Name = &v +} + +// GetTasks returns the Tasks field value if set, zero value otherwise. +func (o *ConnectorStateInfo) GetTasks() []TaskState { + if o == nil || IsNil(o.Tasks) { + var ret []TaskState + return ret + } + return o.Tasks +} + +// GetTasksOk returns a tuple with the Tasks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorStateInfo) GetTasksOk() ([]TaskState, bool) { + if o == nil || IsNil(o.Tasks) { + return nil, false + } + return o.Tasks, true +} + +// HasTasks returns a boolean if a field has been set. +func (o *ConnectorStateInfo) HasTasks() bool { + if o != nil && !IsNil(o.Tasks) { + return true + } + + return false +} + +// SetTasks gets a reference to the given []TaskState and assigns it to the Tasks field. +func (o *ConnectorStateInfo) SetTasks(v []TaskState) { + o.Tasks = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ConnectorStateInfo) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorStateInfo) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ConnectorStateInfo) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ConnectorStateInfo) SetType(v string) { + o.Type = &v +} + +func (o ConnectorStateInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorStateInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Connector) { + toSerialize["connector"] = o.Connector + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Tasks) { + toSerialize["tasks"] = o.Tasks + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableConnectorStateInfo struct { + value *ConnectorStateInfo + isSet bool +} + +func (v NullableConnectorStateInfo) Get() *ConnectorStateInfo { + return v.value +} + +func (v *NullableConnectorStateInfo) Set(val *ConnectorStateInfo) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorStateInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorStateInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorStateInfo(val *ConnectorStateInfo) *NullableConnectorStateInfo { + return &NullableConnectorStateInfo{value: val, isSet: true} +} + +func (v NullableConnectorStateInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorStateInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_connector_task_id.go b/sdk/sdk-kafkaconnect/model_connector_task_id.go new file mode 100644 index 0000000..d335393 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_connector_task_id.go @@ -0,0 +1,162 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ConnectorTaskId type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConnectorTaskId{} + +// ConnectorTaskId struct for ConnectorTaskId +type ConnectorTaskId struct { + Connector *string `json:"connector,omitempty"` + Task *int32 `json:"task,omitempty"` +} + +// NewConnectorTaskId instantiates a new ConnectorTaskId object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewConnectorTaskId() *ConnectorTaskId { + this := ConnectorTaskId{} + return &this +} + +// NewConnectorTaskIdWithDefaults instantiates a new ConnectorTaskId object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewConnectorTaskIdWithDefaults() *ConnectorTaskId { + this := ConnectorTaskId{} + return &this +} + +// GetConnector returns the Connector field value if set, zero value otherwise. +func (o *ConnectorTaskId) GetConnector() string { + if o == nil || IsNil(o.Connector) { + var ret string + return ret + } + return *o.Connector +} + +// GetConnectorOk returns a tuple with the Connector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTaskId) GetConnectorOk() (*string, bool) { + if o == nil || IsNil(o.Connector) { + return nil, false + } + return o.Connector, true +} + +// HasConnector returns a boolean if a field has been set. +func (o *ConnectorTaskId) HasConnector() bool { + if o != nil && !IsNil(o.Connector) { + return true + } + + return false +} + +// SetConnector gets a reference to the given string and assigns it to the Connector field. +func (o *ConnectorTaskId) SetConnector(v string) { + o.Connector = &v +} + +// GetTask returns the Task field value if set, zero value otherwise. +func (o *ConnectorTaskId) GetTask() int32 { + if o == nil || IsNil(o.Task) { + var ret int32 + return ret + } + return *o.Task +} + +// GetTaskOk returns a tuple with the Task field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConnectorTaskId) GetTaskOk() (*int32, bool) { + if o == nil || IsNil(o.Task) { + return nil, false + } + return o.Task, true +} + +// HasTask returns a boolean if a field has been set. +func (o *ConnectorTaskId) HasTask() bool { + if o != nil && !IsNil(o.Task) { + return true + } + + return false +} + +// SetTask gets a reference to the given int32 and assigns it to the Task field. +func (o *ConnectorTaskId) SetTask(v int32) { + o.Task = &v +} + +func (o ConnectorTaskId) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConnectorTaskId) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Connector) { + toSerialize["connector"] = o.Connector + } + if !IsNil(o.Task) { + toSerialize["task"] = o.Task + } + return toSerialize, nil +} + +type NullableConnectorTaskId struct { + value *ConnectorTaskId + isSet bool +} + +func (v NullableConnectorTaskId) Get() *ConnectorTaskId { + return v.value +} + +func (v *NullableConnectorTaskId) Set(val *ConnectorTaskId) { + v.value = val + v.isSet = true +} + +func (v NullableConnectorTaskId) IsSet() bool { + return v.isSet +} + +func (v *NullableConnectorTaskId) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConnectorTaskId(val *ConnectorTaskId) *NullableConnectorTaskId { + return &NullableConnectorTaskId{value: val, isSet: true} +} + +func (v NullableConnectorTaskId) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConnectorTaskId) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_create_connector_request.go b/sdk/sdk-kafkaconnect/model_create_connector_request.go new file mode 100644 index 0000000..26cfcfa --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_create_connector_request.go @@ -0,0 +1,198 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the CreateConnectorRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateConnectorRequest{} + +// CreateConnectorRequest struct for CreateConnectorRequest +type CreateConnectorRequest struct { + Config *map[string]string `json:"config,omitempty"` + InitialState *string `json:"initial_state,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewCreateConnectorRequest instantiates a new CreateConnectorRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateConnectorRequest() *CreateConnectorRequest { + this := CreateConnectorRequest{} + return &this +} + +// NewCreateConnectorRequestWithDefaults instantiates a new CreateConnectorRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateConnectorRequestWithDefaults() *CreateConnectorRequest { + this := CreateConnectorRequest{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *CreateConnectorRequest) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequest) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *CreateConnectorRequest) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *CreateConnectorRequest) SetConfig(v map[string]string) { + o.Config = &v +} + +// GetInitialState returns the InitialState field value if set, zero value otherwise. +func (o *CreateConnectorRequest) GetInitialState() string { + if o == nil || IsNil(o.InitialState) { + var ret string + return ret + } + return *o.InitialState +} + +// GetInitialStateOk returns a tuple with the InitialState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequest) GetInitialStateOk() (*string, bool) { + if o == nil || IsNil(o.InitialState) { + return nil, false + } + return o.InitialState, true +} + +// HasInitialState returns a boolean if a field has been set. +func (o *CreateConnectorRequest) HasInitialState() bool { + if o != nil && !IsNil(o.InitialState) { + return true + } + + return false +} + +// SetInitialState gets a reference to the given string and assigns it to the InitialState field. +func (o *CreateConnectorRequest) SetInitialState(v string) { + o.InitialState = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CreateConnectorRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateConnectorRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CreateConnectorRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *CreateConnectorRequest) SetName(v string) { + o.Name = &v +} + +func (o CreateConnectorRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateConnectorRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.InitialState) { + toSerialize["initial_state"] = o.InitialState + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableCreateConnectorRequest struct { + value *CreateConnectorRequest + isSet bool +} + +func (v NullableCreateConnectorRequest) Get() *CreateConnectorRequest { + return v.value +} + +func (v *NullableCreateConnectorRequest) Set(val *CreateConnectorRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateConnectorRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateConnectorRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateConnectorRequest(val *CreateConnectorRequest) *NullableCreateConnectorRequest { + return &NullableCreateConnectorRequest{value: val, isSet: true} +} + +func (v NullableCreateConnectorRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateConnectorRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_function_mesh_connector_definition.go b/sdk/sdk-kafkaconnect/model_function_mesh_connector_definition.go new file mode 100644 index 0000000..c0c8123 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_function_mesh_connector_definition.go @@ -0,0 +1,918 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the FunctionMeshConnectorDefinition type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FunctionMeshConnectorDefinition{} + +// FunctionMeshConnectorDefinition struct for FunctionMeshConnectorDefinition +type FunctionMeshConnectorDefinition struct { + DefaultSchemaType *string `json:"defaultSchemaType,omitempty"` + DefaultSerdeClassName *string `json:"defaultSerdeClassName,omitempty"` + Description *string `json:"description,omitempty"` + IconLink *string `json:"iconLink,omitempty"` + Id *string `json:"id,omitempty"` + ImageRegistry *string `json:"imageRegistry,omitempty"` + ImageRepository *string `json:"imageRepository,omitempty"` + ImageTag *string `json:"imageTag,omitempty"` + Jar *string `json:"jar,omitempty"` + JarFullName *string `json:"jarFullName,omitempty"` + Name *string `json:"name,omitempty"` + SinkClass *string `json:"sinkClass,omitempty"` + SinkConfigClass *string `json:"sinkConfigClass,omitempty"` + SinkConfigFieldDefinitions []ConfigFieldDefinition `json:"sinkConfigFieldDefinitions,omitempty"` + SinkDocLink *string `json:"sinkDocLink,omitempty"` + SinkTypeClassName *string `json:"sinkTypeClassName,omitempty"` + SourceClass *string `json:"sourceClass,omitempty"` + SourceConfigClass *string `json:"sourceConfigClass,omitempty"` + SourceConfigFieldDefinitions []ConfigFieldDefinition `json:"sourceConfigFieldDefinitions,omitempty"` + SourceDocLink *string `json:"sourceDocLink,omitempty"` + SourceTypeClassName *string `json:"sourceTypeClassName,omitempty"` + TypeClassName *string `json:"typeClassName,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewFunctionMeshConnectorDefinition instantiates a new FunctionMeshConnectorDefinition object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFunctionMeshConnectorDefinition() *FunctionMeshConnectorDefinition { + this := FunctionMeshConnectorDefinition{} + return &this +} + +// NewFunctionMeshConnectorDefinitionWithDefaults instantiates a new FunctionMeshConnectorDefinition object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFunctionMeshConnectorDefinitionWithDefaults() *FunctionMeshConnectorDefinition { + this := FunctionMeshConnectorDefinition{} + return &this +} + +// GetDefaultSchemaType returns the DefaultSchemaType field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetDefaultSchemaType() string { + if o == nil || IsNil(o.DefaultSchemaType) { + var ret string + return ret + } + return *o.DefaultSchemaType +} + +// GetDefaultSchemaTypeOk returns a tuple with the DefaultSchemaType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetDefaultSchemaTypeOk() (*string, bool) { + if o == nil || IsNil(o.DefaultSchemaType) { + return nil, false + } + return o.DefaultSchemaType, true +} + +// HasDefaultSchemaType returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasDefaultSchemaType() bool { + if o != nil && !IsNil(o.DefaultSchemaType) { + return true + } + + return false +} + +// SetDefaultSchemaType gets a reference to the given string and assigns it to the DefaultSchemaType field. +func (o *FunctionMeshConnectorDefinition) SetDefaultSchemaType(v string) { + o.DefaultSchemaType = &v +} + +// GetDefaultSerdeClassName returns the DefaultSerdeClassName field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetDefaultSerdeClassName() string { + if o == nil || IsNil(o.DefaultSerdeClassName) { + var ret string + return ret + } + return *o.DefaultSerdeClassName +} + +// GetDefaultSerdeClassNameOk returns a tuple with the DefaultSerdeClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetDefaultSerdeClassNameOk() (*string, bool) { + if o == nil || IsNil(o.DefaultSerdeClassName) { + return nil, false + } + return o.DefaultSerdeClassName, true +} + +// HasDefaultSerdeClassName returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasDefaultSerdeClassName() bool { + if o != nil && !IsNil(o.DefaultSerdeClassName) { + return true + } + + return false +} + +// SetDefaultSerdeClassName gets a reference to the given string and assigns it to the DefaultSerdeClassName field. +func (o *FunctionMeshConnectorDefinition) SetDefaultSerdeClassName(v string) { + o.DefaultSerdeClassName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *FunctionMeshConnectorDefinition) SetDescription(v string) { + o.Description = &v +} + +// GetIconLink returns the IconLink field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetIconLink() string { + if o == nil || IsNil(o.IconLink) { + var ret string + return ret + } + return *o.IconLink +} + +// GetIconLinkOk returns a tuple with the IconLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetIconLinkOk() (*string, bool) { + if o == nil || IsNil(o.IconLink) { + return nil, false + } + return o.IconLink, true +} + +// HasIconLink returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasIconLink() bool { + if o != nil && !IsNil(o.IconLink) { + return true + } + + return false +} + +// SetIconLink gets a reference to the given string and assigns it to the IconLink field. +func (o *FunctionMeshConnectorDefinition) SetIconLink(v string) { + o.IconLink = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *FunctionMeshConnectorDefinition) SetId(v string) { + o.Id = &v +} + +// GetImageRegistry returns the ImageRegistry field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetImageRegistry() string { + if o == nil || IsNil(o.ImageRegistry) { + var ret string + return ret + } + return *o.ImageRegistry +} + +// GetImageRegistryOk returns a tuple with the ImageRegistry field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetImageRegistryOk() (*string, bool) { + if o == nil || IsNil(o.ImageRegistry) { + return nil, false + } + return o.ImageRegistry, true +} + +// HasImageRegistry returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasImageRegistry() bool { + if o != nil && !IsNil(o.ImageRegistry) { + return true + } + + return false +} + +// SetImageRegistry gets a reference to the given string and assigns it to the ImageRegistry field. +func (o *FunctionMeshConnectorDefinition) SetImageRegistry(v string) { + o.ImageRegistry = &v +} + +// GetImageRepository returns the ImageRepository field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetImageRepository() string { + if o == nil || IsNil(o.ImageRepository) { + var ret string + return ret + } + return *o.ImageRepository +} + +// GetImageRepositoryOk returns a tuple with the ImageRepository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetImageRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.ImageRepository) { + return nil, false + } + return o.ImageRepository, true +} + +// HasImageRepository returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasImageRepository() bool { + if o != nil && !IsNil(o.ImageRepository) { + return true + } + + return false +} + +// SetImageRepository gets a reference to the given string and assigns it to the ImageRepository field. +func (o *FunctionMeshConnectorDefinition) SetImageRepository(v string) { + o.ImageRepository = &v +} + +// GetImageTag returns the ImageTag field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetImageTag() string { + if o == nil || IsNil(o.ImageTag) { + var ret string + return ret + } + return *o.ImageTag +} + +// GetImageTagOk returns a tuple with the ImageTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetImageTagOk() (*string, bool) { + if o == nil || IsNil(o.ImageTag) { + return nil, false + } + return o.ImageTag, true +} + +// HasImageTag returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasImageTag() bool { + if o != nil && !IsNil(o.ImageTag) { + return true + } + + return false +} + +// SetImageTag gets a reference to the given string and assigns it to the ImageTag field. +func (o *FunctionMeshConnectorDefinition) SetImageTag(v string) { + o.ImageTag = &v +} + +// GetJar returns the Jar field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetJar() string { + if o == nil || IsNil(o.Jar) { + var ret string + return ret + } + return *o.Jar +} + +// GetJarOk returns a tuple with the Jar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetJarOk() (*string, bool) { + if o == nil || IsNil(o.Jar) { + return nil, false + } + return o.Jar, true +} + +// HasJar returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasJar() bool { + if o != nil && !IsNil(o.Jar) { + return true + } + + return false +} + +// SetJar gets a reference to the given string and assigns it to the Jar field. +func (o *FunctionMeshConnectorDefinition) SetJar(v string) { + o.Jar = &v +} + +// GetJarFullName returns the JarFullName field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetJarFullName() string { + if o == nil || IsNil(o.JarFullName) { + var ret string + return ret + } + return *o.JarFullName +} + +// GetJarFullNameOk returns a tuple with the JarFullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetJarFullNameOk() (*string, bool) { + if o == nil || IsNil(o.JarFullName) { + return nil, false + } + return o.JarFullName, true +} + +// HasJarFullName returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasJarFullName() bool { + if o != nil && !IsNil(o.JarFullName) { + return true + } + + return false +} + +// SetJarFullName gets a reference to the given string and assigns it to the JarFullName field. +func (o *FunctionMeshConnectorDefinition) SetJarFullName(v string) { + o.JarFullName = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FunctionMeshConnectorDefinition) SetName(v string) { + o.Name = &v +} + +// GetSinkClass returns the SinkClass field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSinkClass() string { + if o == nil || IsNil(o.SinkClass) { + var ret string + return ret + } + return *o.SinkClass +} + +// GetSinkClassOk returns a tuple with the SinkClass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSinkClassOk() (*string, bool) { + if o == nil || IsNil(o.SinkClass) { + return nil, false + } + return o.SinkClass, true +} + +// HasSinkClass returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSinkClass() bool { + if o != nil && !IsNil(o.SinkClass) { + return true + } + + return false +} + +// SetSinkClass gets a reference to the given string and assigns it to the SinkClass field. +func (o *FunctionMeshConnectorDefinition) SetSinkClass(v string) { + o.SinkClass = &v +} + +// GetSinkConfigClass returns the SinkConfigClass field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSinkConfigClass() string { + if o == nil || IsNil(o.SinkConfigClass) { + var ret string + return ret + } + return *o.SinkConfigClass +} + +// GetSinkConfigClassOk returns a tuple with the SinkConfigClass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSinkConfigClassOk() (*string, bool) { + if o == nil || IsNil(o.SinkConfigClass) { + return nil, false + } + return o.SinkConfigClass, true +} + +// HasSinkConfigClass returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSinkConfigClass() bool { + if o != nil && !IsNil(o.SinkConfigClass) { + return true + } + + return false +} + +// SetSinkConfigClass gets a reference to the given string and assigns it to the SinkConfigClass field. +func (o *FunctionMeshConnectorDefinition) SetSinkConfigClass(v string) { + o.SinkConfigClass = &v +} + +// GetSinkConfigFieldDefinitions returns the SinkConfigFieldDefinitions field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSinkConfigFieldDefinitions() []ConfigFieldDefinition { + if o == nil || IsNil(o.SinkConfigFieldDefinitions) { + var ret []ConfigFieldDefinition + return ret + } + return o.SinkConfigFieldDefinitions +} + +// GetSinkConfigFieldDefinitionsOk returns a tuple with the SinkConfigFieldDefinitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSinkConfigFieldDefinitionsOk() ([]ConfigFieldDefinition, bool) { + if o == nil || IsNil(o.SinkConfigFieldDefinitions) { + return nil, false + } + return o.SinkConfigFieldDefinitions, true +} + +// HasSinkConfigFieldDefinitions returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSinkConfigFieldDefinitions() bool { + if o != nil && !IsNil(o.SinkConfigFieldDefinitions) { + return true + } + + return false +} + +// SetSinkConfigFieldDefinitions gets a reference to the given []ConfigFieldDefinition and assigns it to the SinkConfigFieldDefinitions field. +func (o *FunctionMeshConnectorDefinition) SetSinkConfigFieldDefinitions(v []ConfigFieldDefinition) { + o.SinkConfigFieldDefinitions = v +} + +// GetSinkDocLink returns the SinkDocLink field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSinkDocLink() string { + if o == nil || IsNil(o.SinkDocLink) { + var ret string + return ret + } + return *o.SinkDocLink +} + +// GetSinkDocLinkOk returns a tuple with the SinkDocLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSinkDocLinkOk() (*string, bool) { + if o == nil || IsNil(o.SinkDocLink) { + return nil, false + } + return o.SinkDocLink, true +} + +// HasSinkDocLink returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSinkDocLink() bool { + if o != nil && !IsNil(o.SinkDocLink) { + return true + } + + return false +} + +// SetSinkDocLink gets a reference to the given string and assigns it to the SinkDocLink field. +func (o *FunctionMeshConnectorDefinition) SetSinkDocLink(v string) { + o.SinkDocLink = &v +} + +// GetSinkTypeClassName returns the SinkTypeClassName field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSinkTypeClassName() string { + if o == nil || IsNil(o.SinkTypeClassName) { + var ret string + return ret + } + return *o.SinkTypeClassName +} + +// GetSinkTypeClassNameOk returns a tuple with the SinkTypeClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSinkTypeClassNameOk() (*string, bool) { + if o == nil || IsNil(o.SinkTypeClassName) { + return nil, false + } + return o.SinkTypeClassName, true +} + +// HasSinkTypeClassName returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSinkTypeClassName() bool { + if o != nil && !IsNil(o.SinkTypeClassName) { + return true + } + + return false +} + +// SetSinkTypeClassName gets a reference to the given string and assigns it to the SinkTypeClassName field. +func (o *FunctionMeshConnectorDefinition) SetSinkTypeClassName(v string) { + o.SinkTypeClassName = &v +} + +// GetSourceClass returns the SourceClass field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSourceClass() string { + if o == nil || IsNil(o.SourceClass) { + var ret string + return ret + } + return *o.SourceClass +} + +// GetSourceClassOk returns a tuple with the SourceClass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSourceClassOk() (*string, bool) { + if o == nil || IsNil(o.SourceClass) { + return nil, false + } + return o.SourceClass, true +} + +// HasSourceClass returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSourceClass() bool { + if o != nil && !IsNil(o.SourceClass) { + return true + } + + return false +} + +// SetSourceClass gets a reference to the given string and assigns it to the SourceClass field. +func (o *FunctionMeshConnectorDefinition) SetSourceClass(v string) { + o.SourceClass = &v +} + +// GetSourceConfigClass returns the SourceConfigClass field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSourceConfigClass() string { + if o == nil || IsNil(o.SourceConfigClass) { + var ret string + return ret + } + return *o.SourceConfigClass +} + +// GetSourceConfigClassOk returns a tuple with the SourceConfigClass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSourceConfigClassOk() (*string, bool) { + if o == nil || IsNil(o.SourceConfigClass) { + return nil, false + } + return o.SourceConfigClass, true +} + +// HasSourceConfigClass returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSourceConfigClass() bool { + if o != nil && !IsNil(o.SourceConfigClass) { + return true + } + + return false +} + +// SetSourceConfigClass gets a reference to the given string and assigns it to the SourceConfigClass field. +func (o *FunctionMeshConnectorDefinition) SetSourceConfigClass(v string) { + o.SourceConfigClass = &v +} + +// GetSourceConfigFieldDefinitions returns the SourceConfigFieldDefinitions field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSourceConfigFieldDefinitions() []ConfigFieldDefinition { + if o == nil || IsNil(o.SourceConfigFieldDefinitions) { + var ret []ConfigFieldDefinition + return ret + } + return o.SourceConfigFieldDefinitions +} + +// GetSourceConfigFieldDefinitionsOk returns a tuple with the SourceConfigFieldDefinitions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSourceConfigFieldDefinitionsOk() ([]ConfigFieldDefinition, bool) { + if o == nil || IsNil(o.SourceConfigFieldDefinitions) { + return nil, false + } + return o.SourceConfigFieldDefinitions, true +} + +// HasSourceConfigFieldDefinitions returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSourceConfigFieldDefinitions() bool { + if o != nil && !IsNil(o.SourceConfigFieldDefinitions) { + return true + } + + return false +} + +// SetSourceConfigFieldDefinitions gets a reference to the given []ConfigFieldDefinition and assigns it to the SourceConfigFieldDefinitions field. +func (o *FunctionMeshConnectorDefinition) SetSourceConfigFieldDefinitions(v []ConfigFieldDefinition) { + o.SourceConfigFieldDefinitions = v +} + +// GetSourceDocLink returns the SourceDocLink field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSourceDocLink() string { + if o == nil || IsNil(o.SourceDocLink) { + var ret string + return ret + } + return *o.SourceDocLink +} + +// GetSourceDocLinkOk returns a tuple with the SourceDocLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSourceDocLinkOk() (*string, bool) { + if o == nil || IsNil(o.SourceDocLink) { + return nil, false + } + return o.SourceDocLink, true +} + +// HasSourceDocLink returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSourceDocLink() bool { + if o != nil && !IsNil(o.SourceDocLink) { + return true + } + + return false +} + +// SetSourceDocLink gets a reference to the given string and assigns it to the SourceDocLink field. +func (o *FunctionMeshConnectorDefinition) SetSourceDocLink(v string) { + o.SourceDocLink = &v +} + +// GetSourceTypeClassName returns the SourceTypeClassName field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetSourceTypeClassName() string { + if o == nil || IsNil(o.SourceTypeClassName) { + var ret string + return ret + } + return *o.SourceTypeClassName +} + +// GetSourceTypeClassNameOk returns a tuple with the SourceTypeClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetSourceTypeClassNameOk() (*string, bool) { + if o == nil || IsNil(o.SourceTypeClassName) { + return nil, false + } + return o.SourceTypeClassName, true +} + +// HasSourceTypeClassName returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasSourceTypeClassName() bool { + if o != nil && !IsNil(o.SourceTypeClassName) { + return true + } + + return false +} + +// SetSourceTypeClassName gets a reference to the given string and assigns it to the SourceTypeClassName field. +func (o *FunctionMeshConnectorDefinition) SetSourceTypeClassName(v string) { + o.SourceTypeClassName = &v +} + +// GetTypeClassName returns the TypeClassName field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetTypeClassName() string { + if o == nil || IsNil(o.TypeClassName) { + var ret string + return ret + } + return *o.TypeClassName +} + +// GetTypeClassNameOk returns a tuple with the TypeClassName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetTypeClassNameOk() (*string, bool) { + if o == nil || IsNil(o.TypeClassName) { + return nil, false + } + return o.TypeClassName, true +} + +// HasTypeClassName returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasTypeClassName() bool { + if o != nil && !IsNil(o.TypeClassName) { + return true + } + + return false +} + +// SetTypeClassName gets a reference to the given string and assigns it to the TypeClassName field. +func (o *FunctionMeshConnectorDefinition) SetTypeClassName(v string) { + o.TypeClassName = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *FunctionMeshConnectorDefinition) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FunctionMeshConnectorDefinition) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *FunctionMeshConnectorDefinition) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *FunctionMeshConnectorDefinition) SetVersion(v string) { + o.Version = &v +} + +func (o FunctionMeshConnectorDefinition) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FunctionMeshConnectorDefinition) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DefaultSchemaType) { + toSerialize["defaultSchemaType"] = o.DefaultSchemaType + } + if !IsNil(o.DefaultSerdeClassName) { + toSerialize["defaultSerdeClassName"] = o.DefaultSerdeClassName + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.IconLink) { + toSerialize["iconLink"] = o.IconLink + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.ImageRegistry) { + toSerialize["imageRegistry"] = o.ImageRegistry + } + if !IsNil(o.ImageRepository) { + toSerialize["imageRepository"] = o.ImageRepository + } + if !IsNil(o.ImageTag) { + toSerialize["imageTag"] = o.ImageTag + } + if !IsNil(o.Jar) { + toSerialize["jar"] = o.Jar + } + if !IsNil(o.JarFullName) { + toSerialize["jarFullName"] = o.JarFullName + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.SinkClass) { + toSerialize["sinkClass"] = o.SinkClass + } + if !IsNil(o.SinkConfigClass) { + toSerialize["sinkConfigClass"] = o.SinkConfigClass + } + if !IsNil(o.SinkConfigFieldDefinitions) { + toSerialize["sinkConfigFieldDefinitions"] = o.SinkConfigFieldDefinitions + } + if !IsNil(o.SinkDocLink) { + toSerialize["sinkDocLink"] = o.SinkDocLink + } + if !IsNil(o.SinkTypeClassName) { + toSerialize["sinkTypeClassName"] = o.SinkTypeClassName + } + if !IsNil(o.SourceClass) { + toSerialize["sourceClass"] = o.SourceClass + } + if !IsNil(o.SourceConfigClass) { + toSerialize["sourceConfigClass"] = o.SourceConfigClass + } + if !IsNil(o.SourceConfigFieldDefinitions) { + toSerialize["sourceConfigFieldDefinitions"] = o.SourceConfigFieldDefinitions + } + if !IsNil(o.SourceDocLink) { + toSerialize["sourceDocLink"] = o.SourceDocLink + } + if !IsNil(o.SourceTypeClassName) { + toSerialize["sourceTypeClassName"] = o.SourceTypeClassName + } + if !IsNil(o.TypeClassName) { + toSerialize["typeClassName"] = o.TypeClassName + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableFunctionMeshConnectorDefinition struct { + value *FunctionMeshConnectorDefinition + isSet bool +} + +func (v NullableFunctionMeshConnectorDefinition) Get() *FunctionMeshConnectorDefinition { + return v.value +} + +func (v *NullableFunctionMeshConnectorDefinition) Set(val *FunctionMeshConnectorDefinition) { + v.value = val + v.isSet = true +} + +func (v NullableFunctionMeshConnectorDefinition) IsSet() bool { + return v.isSet +} + +func (v *NullableFunctionMeshConnectorDefinition) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFunctionMeshConnectorDefinition(val *FunctionMeshConnectorDefinition) *NullableFunctionMeshConnectorDefinition { + return &NullableFunctionMeshConnectorDefinition{value: val, isSet: true} +} + +func (v NullableFunctionMeshConnectorDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFunctionMeshConnectorDefinition) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_plugin_info.go b/sdk/sdk-kafkaconnect/model_plugin_info.go new file mode 100644 index 0000000..14cf564 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_plugin_info.go @@ -0,0 +1,198 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the PluginInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PluginInfo{} + +// PluginInfo struct for PluginInfo +type PluginInfo struct { + Class *string `json:"class,omitempty"` + Type *string `json:"type,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewPluginInfo instantiates a new PluginInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPluginInfo() *PluginInfo { + this := PluginInfo{} + return &this +} + +// NewPluginInfoWithDefaults instantiates a new PluginInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPluginInfoWithDefaults() *PluginInfo { + this := PluginInfo{} + return &this +} + +// GetClass returns the Class field value if set, zero value otherwise. +func (o *PluginInfo) GetClass() string { + if o == nil || IsNil(o.Class) { + var ret string + return ret + } + return *o.Class +} + +// GetClassOk returns a tuple with the Class field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PluginInfo) GetClassOk() (*string, bool) { + if o == nil || IsNil(o.Class) { + return nil, false + } + return o.Class, true +} + +// HasClass returns a boolean if a field has been set. +func (o *PluginInfo) HasClass() bool { + if o != nil && !IsNil(o.Class) { + return true + } + + return false +} + +// SetClass gets a reference to the given string and assigns it to the Class field. +func (o *PluginInfo) SetClass(v string) { + o.Class = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PluginInfo) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PluginInfo) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PluginInfo) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *PluginInfo) SetType(v string) { + o.Type = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *PluginInfo) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PluginInfo) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *PluginInfo) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *PluginInfo) SetVersion(v string) { + o.Version = &v +} + +func (o PluginInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PluginInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Class) { + toSerialize["class"] = o.Class + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullablePluginInfo struct { + value *PluginInfo + isSet bool +} + +func (v NullablePluginInfo) Get() *PluginInfo { + return v.value +} + +func (v *NullablePluginInfo) Set(val *PluginInfo) { + v.value = val + v.isSet = true +} + +func (v NullablePluginInfo) IsSet() bool { + return v.isSet +} + +func (v *NullablePluginInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePluginInfo(val *PluginInfo) *NullablePluginInfo { + return &NullablePluginInfo{value: val, isSet: true} +} + +func (v NullablePluginInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePluginInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_server_info.go b/sdk/sdk-kafkaconnect/model_server_info.go new file mode 100644 index 0000000..5927a6b --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_server_info.go @@ -0,0 +1,198 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the ServerInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServerInfo{} + +// ServerInfo struct for ServerInfo +type ServerInfo struct { + Commit *string `json:"commit,omitempty"` + KafkaClusterId *string `json:"kafka_cluster_id,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewServerInfo instantiates a new ServerInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServerInfo() *ServerInfo { + this := ServerInfo{} + return &this +} + +// NewServerInfoWithDefaults instantiates a new ServerInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServerInfoWithDefaults() *ServerInfo { + this := ServerInfo{} + return &this +} + +// GetCommit returns the Commit field value if set, zero value otherwise. +func (o *ServerInfo) GetCommit() string { + if o == nil || IsNil(o.Commit) { + var ret string + return ret + } + return *o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServerInfo) GetCommitOk() (*string, bool) { + if o == nil || IsNil(o.Commit) { + return nil, false + } + return o.Commit, true +} + +// HasCommit returns a boolean if a field has been set. +func (o *ServerInfo) HasCommit() bool { + if o != nil && !IsNil(o.Commit) { + return true + } + + return false +} + +// SetCommit gets a reference to the given string and assigns it to the Commit field. +func (o *ServerInfo) SetCommit(v string) { + o.Commit = &v +} + +// GetKafkaClusterId returns the KafkaClusterId field value if set, zero value otherwise. +func (o *ServerInfo) GetKafkaClusterId() string { + if o == nil || IsNil(o.KafkaClusterId) { + var ret string + return ret + } + return *o.KafkaClusterId +} + +// GetKafkaClusterIdOk returns a tuple with the KafkaClusterId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServerInfo) GetKafkaClusterIdOk() (*string, bool) { + if o == nil || IsNil(o.KafkaClusterId) { + return nil, false + } + return o.KafkaClusterId, true +} + +// HasKafkaClusterId returns a boolean if a field has been set. +func (o *ServerInfo) HasKafkaClusterId() bool { + if o != nil && !IsNil(o.KafkaClusterId) { + return true + } + + return false +} + +// SetKafkaClusterId gets a reference to the given string and assigns it to the KafkaClusterId field. +func (o *ServerInfo) SetKafkaClusterId(v string) { + o.KafkaClusterId = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *ServerInfo) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServerInfo) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *ServerInfo) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *ServerInfo) SetVersion(v string) { + o.Version = &v +} + +func (o ServerInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServerInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Commit) { + toSerialize["commit"] = o.Commit + } + if !IsNil(o.KafkaClusterId) { + toSerialize["kafka_cluster_id"] = o.KafkaClusterId + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableServerInfo struct { + value *ServerInfo + isSet bool +} + +func (v NullableServerInfo) Get() *ServerInfo { + return v.value +} + +func (v *NullableServerInfo) Set(val *ServerInfo) { + v.value = val + v.isSet = true +} + +func (v NullableServerInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableServerInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServerInfo(val *ServerInfo) *NullableServerInfo { + return &NullableServerInfo{value: val, isSet: true} +} + +func (v NullableServerInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServerInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_sn_connector_offset.go b/sdk/sdk-kafkaconnect/model_sn_connector_offset.go new file mode 100644 index 0000000..8d497cf --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_sn_connector_offset.go @@ -0,0 +1,162 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the SNConnectorOffset type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SNConnectorOffset{} + +// SNConnectorOffset struct for SNConnectorOffset +type SNConnectorOffset struct { + Offset *map[string]int32 `json:"offset,omitempty"` + Partition *map[string]string `json:"partition,omitempty"` +} + +// NewSNConnectorOffset instantiates a new SNConnectorOffset object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSNConnectorOffset() *SNConnectorOffset { + this := SNConnectorOffset{} + return &this +} + +// NewSNConnectorOffsetWithDefaults instantiates a new SNConnectorOffset object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSNConnectorOffsetWithDefaults() *SNConnectorOffset { + this := SNConnectorOffset{} + return &this +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *SNConnectorOffset) GetOffset() map[string]int32 { + if o == nil || IsNil(o.Offset) { + var ret map[string]int32 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SNConnectorOffset) GetOffsetOk() (*map[string]int32, bool) { + if o == nil || IsNil(o.Offset) { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *SNConnectorOffset) HasOffset() bool { + if o != nil && !IsNil(o.Offset) { + return true + } + + return false +} + +// SetOffset gets a reference to the given map[string]int32 and assigns it to the Offset field. +func (o *SNConnectorOffset) SetOffset(v map[string]int32) { + o.Offset = &v +} + +// GetPartition returns the Partition field value if set, zero value otherwise. +func (o *SNConnectorOffset) GetPartition() map[string]string { + if o == nil || IsNil(o.Partition) { + var ret map[string]string + return ret + } + return *o.Partition +} + +// GetPartitionOk returns a tuple with the Partition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SNConnectorOffset) GetPartitionOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Partition) { + return nil, false + } + return o.Partition, true +} + +// HasPartition returns a boolean if a field has been set. +func (o *SNConnectorOffset) HasPartition() bool { + if o != nil && !IsNil(o.Partition) { + return true + } + + return false +} + +// SetPartition gets a reference to the given map[string]string and assigns it to the Partition field. +func (o *SNConnectorOffset) SetPartition(v map[string]string) { + o.Partition = &v +} + +func (o SNConnectorOffset) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SNConnectorOffset) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Offset) { + toSerialize["offset"] = o.Offset + } + if !IsNil(o.Partition) { + toSerialize["partition"] = o.Partition + } + return toSerialize, nil +} + +type NullableSNConnectorOffset struct { + value *SNConnectorOffset + isSet bool +} + +func (v NullableSNConnectorOffset) Get() *SNConnectorOffset { + return v.value +} + +func (v *NullableSNConnectorOffset) Set(val *SNConnectorOffset) { + v.value = val + v.isSet = true +} + +func (v NullableSNConnectorOffset) IsSet() bool { + return v.isSet +} + +func (v *NullableSNConnectorOffset) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSNConnectorOffset(val *SNConnectorOffset) *NullableSNConnectorOffset { + return &NullableSNConnectorOffset{value: val, isSet: true} +} + +func (v NullableSNConnectorOffset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSNConnectorOffset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_sn_connector_offsets.go b/sdk/sdk-kafkaconnect/model_sn_connector_offsets.go new file mode 100644 index 0000000..adb2da9 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_sn_connector_offsets.go @@ -0,0 +1,126 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the SNConnectorOffsets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SNConnectorOffsets{} + +// SNConnectorOffsets struct for SNConnectorOffsets +type SNConnectorOffsets struct { + Offsets []SNConnectorOffset `json:"offsets,omitempty"` +} + +// NewSNConnectorOffsets instantiates a new SNConnectorOffsets object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSNConnectorOffsets() *SNConnectorOffsets { + this := SNConnectorOffsets{} + return &this +} + +// NewSNConnectorOffsetsWithDefaults instantiates a new SNConnectorOffsets object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSNConnectorOffsetsWithDefaults() *SNConnectorOffsets { + this := SNConnectorOffsets{} + return &this +} + +// GetOffsets returns the Offsets field value if set, zero value otherwise. +func (o *SNConnectorOffsets) GetOffsets() []SNConnectorOffset { + if o == nil || IsNil(o.Offsets) { + var ret []SNConnectorOffset + return ret + } + return o.Offsets +} + +// GetOffsetsOk returns a tuple with the Offsets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SNConnectorOffsets) GetOffsetsOk() ([]SNConnectorOffset, bool) { + if o == nil || IsNil(o.Offsets) { + return nil, false + } + return o.Offsets, true +} + +// HasOffsets returns a boolean if a field has been set. +func (o *SNConnectorOffsets) HasOffsets() bool { + if o != nil && !IsNil(o.Offsets) { + return true + } + + return false +} + +// SetOffsets gets a reference to the given []SNConnectorOffset and assigns it to the Offsets field. +func (o *SNConnectorOffsets) SetOffsets(v []SNConnectorOffset) { + o.Offsets = v +} + +func (o SNConnectorOffsets) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SNConnectorOffsets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Offsets) { + toSerialize["offsets"] = o.Offsets + } + return toSerialize, nil +} + +type NullableSNConnectorOffsets struct { + value *SNConnectorOffsets + isSet bool +} + +func (v NullableSNConnectorOffsets) Get() *SNConnectorOffsets { + return v.value +} + +func (v *NullableSNConnectorOffsets) Set(val *SNConnectorOffsets) { + v.value = val + v.isSet = true +} + +func (v NullableSNConnectorOffsets) IsSet() bool { + return v.isSet +} + +func (v *NullableSNConnectorOffsets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSNConnectorOffsets(val *SNConnectorOffsets) *NullableSNConnectorOffsets { + return &NullableSNConnectorOffsets{value: val, isSet: true} +} + +func (v NullableSNConnectorOffsets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSNConnectorOffsets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_task_info.go b/sdk/sdk-kafkaconnect/model_task_info.go new file mode 100644 index 0000000..e84f6d5 --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_task_info.go @@ -0,0 +1,162 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the TaskInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TaskInfo{} + +// TaskInfo struct for TaskInfo +type TaskInfo struct { + Config *map[string]string `json:"config,omitempty"` + Id *ConnectorTaskId `json:"id,omitempty"` +} + +// NewTaskInfo instantiates a new TaskInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTaskInfo() *TaskInfo { + this := TaskInfo{} + return &this +} + +// NewTaskInfoWithDefaults instantiates a new TaskInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTaskInfoWithDefaults() *TaskInfo { + this := TaskInfo{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *TaskInfo) GetConfig() map[string]string { + if o == nil || IsNil(o.Config) { + var ret map[string]string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskInfo) GetConfigOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *TaskInfo) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]string and assigns it to the Config field. +func (o *TaskInfo) SetConfig(v map[string]string) { + o.Config = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TaskInfo) GetId() ConnectorTaskId { + if o == nil || IsNil(o.Id) { + var ret ConnectorTaskId + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskInfo) GetIdOk() (*ConnectorTaskId, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TaskInfo) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given ConnectorTaskId and assigns it to the Id field. +func (o *TaskInfo) SetId(v ConnectorTaskId) { + o.Id = &v +} + +func (o TaskInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TaskInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableTaskInfo struct { + value *TaskInfo + isSet bool +} + +func (v NullableTaskInfo) Get() *TaskInfo { + return v.value +} + +func (v *NullableTaskInfo) Set(val *TaskInfo) { + v.value = val + v.isSet = true +} + +func (v NullableTaskInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableTaskInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTaskInfo(val *TaskInfo) *NullableTaskInfo { + return &NullableTaskInfo{value: val, isSet: true} +} + +func (v NullableTaskInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTaskInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/model_task_state.go b/sdk/sdk-kafkaconnect/model_task_state.go new file mode 100644 index 0000000..9d52b6a --- /dev/null +++ b/sdk/sdk-kafkaconnect/model_task_state.go @@ -0,0 +1,270 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "encoding/json" +) + +// checks if the TaskState type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TaskState{} + +// TaskState struct for TaskState +type TaskState struct { + Id *int32 `json:"id,omitempty"` + Msg *string `json:"msg,omitempty"` + State *string `json:"state,omitempty"` + Trace *string `json:"trace,omitempty"` + WorkerId *string `json:"worker_id,omitempty"` +} + +// NewTaskState instantiates a new TaskState object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTaskState() *TaskState { + this := TaskState{} + return &this +} + +// NewTaskStateWithDefaults instantiates a new TaskState object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTaskStateWithDefaults() *TaskState { + this := TaskState{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *TaskState) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskState) GetIdOk() (*int32, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *TaskState) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *TaskState) SetId(v int32) { + o.Id = &v +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *TaskState) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskState) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *TaskState) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *TaskState) SetMsg(v string) { + o.Msg = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *TaskState) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskState) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *TaskState) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *TaskState) SetState(v string) { + o.State = &v +} + +// GetTrace returns the Trace field value if set, zero value otherwise. +func (o *TaskState) GetTrace() string { + if o == nil || IsNil(o.Trace) { + var ret string + return ret + } + return *o.Trace +} + +// GetTraceOk returns a tuple with the Trace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskState) GetTraceOk() (*string, bool) { + if o == nil || IsNil(o.Trace) { + return nil, false + } + return o.Trace, true +} + +// HasTrace returns a boolean if a field has been set. +func (o *TaskState) HasTrace() bool { + if o != nil && !IsNil(o.Trace) { + return true + } + + return false +} + +// SetTrace gets a reference to the given string and assigns it to the Trace field. +func (o *TaskState) SetTrace(v string) { + o.Trace = &v +} + +// GetWorkerId returns the WorkerId field value if set, zero value otherwise. +func (o *TaskState) GetWorkerId() string { + if o == nil || IsNil(o.WorkerId) { + var ret string + return ret + } + return *o.WorkerId +} + +// GetWorkerIdOk returns a tuple with the WorkerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaskState) GetWorkerIdOk() (*string, bool) { + if o == nil || IsNil(o.WorkerId) { + return nil, false + } + return o.WorkerId, true +} + +// HasWorkerId returns a boolean if a field has been set. +func (o *TaskState) HasWorkerId() bool { + if o != nil && !IsNil(o.WorkerId) { + return true + } + + return false +} + +// SetWorkerId gets a reference to the given string and assigns it to the WorkerId field. +func (o *TaskState) SetWorkerId(v string) { + o.WorkerId = &v +} + +func (o TaskState) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TaskState) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Trace) { + toSerialize["trace"] = o.Trace + } + if !IsNil(o.WorkerId) { + toSerialize["worker_id"] = o.WorkerId + } + return toSerialize, nil +} + +type NullableTaskState struct { + value *TaskState + isSet bool +} + +func (v NullableTaskState) Get() *TaskState { + return v.value +} + +func (v *NullableTaskState) Set(val *TaskState) { + v.value = val + v.isSet = true +} + +func (v NullableTaskState) IsSet() bool { + return v.isSet +} + +func (v *NullableTaskState) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTaskState(val *TaskState) *NullableTaskState { + return &NullableTaskState{value: val, isSet: true} +} + +func (v NullableTaskState) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTaskState) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/sdk/sdk-kafkaconnect/openapitools.json b/sdk/sdk-kafkaconnect/openapitools.json new file mode 100644 index 0000000..6f7db3e --- /dev/null +++ b/sdk/sdk-kafkaconnect/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.12.0" + } +} diff --git a/sdk/sdk-kafkaconnect/response.go b/sdk/sdk-kafkaconnect/response.go new file mode 100644 index 0000000..602cd80 --- /dev/null +++ b/sdk/sdk-kafkaconnect/response.go @@ -0,0 +1,47 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/sdk/sdk-kafkaconnect/utils.go b/sdk/sdk-kafkaconnect/utils.go new file mode 100644 index 0000000..b7d4493 --- /dev/null +++ b/sdk/sdk-kafkaconnect/utils.go @@ -0,0 +1,361 @@ +/* +Kafka Connect With Pulsar API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package kafkaconnect + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} \ No newline at end of file From 918e35728795397cd439ec24ffd0b6f7d4d29ac1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 18:05:25 +0800 Subject: [PATCH 02/85] Bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2 (#3) Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.5.1 to 4.5.2.
Release notes

Sourced from github.com/golang-jwt/jwt/v4's releases.

v4.5.2

See https://github.com/golang-jwt/jwt/security/advisories/GHSA-mh63-6h87-95cp

Full Changelog: https://github.com/golang-jwt/jwt/compare/v4.5.1...v4.5.2

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/golang-jwt/jwt/v4&package-manager=go_modules&previous-version=4.5.1&new-version=4.5.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/streamnative/streamnative-mcp-server/network/alerts).
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 399812c..735fb9a 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( github.com/fatih/color v1.7.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect - github.com/golang-jwt/jwt/v4 v4.5.1 // indirect + github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/uuid v1.6.0 // indirect diff --git a/go.sum b/go.sum index d918cb9..10f8b49 100644 --- a/go.sum +++ b/go.sum @@ -81,8 +81,8 @@ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6 github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= -github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= -github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= +github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= From d0e2d04ab9fee722c0d4b316db33da6d174b9b12 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 18:16:24 +0800 Subject: [PATCH 03/85] Bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt) from 5.2.1 to 5.2.2.
Release notes

Sourced from github.com/golang-jwt/jwt/v5's releases.

v5.2.2

What's Changed

New Contributors

Full Changelog: https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/golang-jwt/jwt/v5&package-manager=go_modules&previous-version=5.2.1&new-version=5.2.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/streamnative/streamnative-mcp-server/network/alerts).
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rui Fu --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 735fb9a..d708aa1 100644 --- a/go.mod +++ b/go.mod @@ -39,7 +39,7 @@ require ( github.com/ghodss/yaml v1.0.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/golang-jwt/jwt/v4 v4.5.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.1 // indirect + github.com/golang-jwt/jwt/v5 v5.2.2 // indirect github.com/golang/protobuf v1.5.4 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect diff --git a/go.sum b/go.sum index 10f8b49..b578598 100644 --- a/go.sum +++ b/go.sum @@ -83,8 +83,8 @@ github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69 github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= -github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= +github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= From 16670e02278d575fbfccb789e75cf32cd6db9df0 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Wed, 7 May 2025 01:42:09 +0800 Subject: [PATCH 04/85] [`kafka_admin_groups`] fix `delete-offset`, add `set-offset` (#4) - fix `delete-offset` that not call correct api - add `set-offset` to allow agents commit offset manually --- pkg/mcp/kafka_admin_groups_tools.go | 84 +++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 4 deletions(-) diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index 68e9490..a4ddb67 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -36,7 +36,7 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str } resourceDesc := "Resource to operate on. Available resources:\n" + - "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members)\n" + + "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members, set-offset, delete-offset)\n" + "- groups: Collection of Kafka Consumer Groups for bulk operations (list)" operationDesc := "Operation to perform. Available operations:\n" + @@ -44,7 +44,8 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str "- describe: Get detailed information about a specific Consumer Group, including members, offsets, and lag\n" + "- remove-members: Remove specific members from a Consumer Group to force rebalancing or troubleshoot issues\n" + "- offsets: Get offsets for a specific consumer group\n" + - "- delete-offset: Delete a specific offset for a consumer group of a topic" + "- delete-offset: Delete a specific offset for a consumer group of a topic\n" + + "- set-offset: Set a specific offset for a consumer group's topic-partition" toolDesc := "Unified tool for managing Apache Kafka Consumer Groups.\n" + "This tool provides access to Kafka consumer group operations including listing, describing, and managing group membership.\n" + @@ -75,6 +76,13 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str " operation: \"delete-offset\"\n" + " group: \"my-consumer-group\"\n" + " topic: \"my-topic\"\n\n" + + "6. Set a specific offset for a consumer group's topic-partition:\n" + + " resource: \"group\"\n" + + " operation: \"set-offset\"\n" + + " group: \"my-consumer-group\"\n" + + " topic: \"my-topic\"\n" + + " partition: 0\n" + + " offset: 1000\n\n" + "This tool requires Kafka super-user permissions." @@ -101,6 +109,14 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str mcp.Description("The name of the Kafka topic to operate on. "+ "Required for the 'delete' operation. "+ "Must be an existing topic name in the Kafka cluster.")), + mcp.WithString("partition", + mcp.Description("The partition number to set offset for. "+ + "Required for the 'set-offset' operation. "+ + "Must be a valid partition number for the specified topic.")), + mcp.WithNumber("offset", + mcp.Description("The offset value to set. "+ + "Required for the 'set-offset' operation. "+ + "Use -1 for earliest offset, -2 for latest offset, or a specific positive value.")), ) s.AddTool(kafkaGroupsTool, handleKafkaGroupsTool(readOnly)) @@ -146,6 +162,8 @@ func handleKafkaGroupsTool(readOnly bool) func(context.Context, mcp.CallToolRequ return handleKafkaGroupOffsets(ctx, admin, request) case "delete-offset": return handleKafkaGroupDeleteOffset(ctx, admin, request) + case "set-offset": + return handleKafkaGroupSetOffset(ctx, admin, request) default: return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'group': %s", operation)), nil } @@ -249,12 +267,70 @@ func handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, reque return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - response, err := admin.FetchOffsetsForTopics(ctx, groupName, topic) + // Create a TopicsSet with the specified topic + // This will target all partitions for the given topic + topicsSet := make(kadm.TopicsSet) + topicsSet.Add(topic) + + // Call DeleteOffsets to delete the offsets for the specified topic + responses, err := admin.DeleteOffsets(ctx, groupName, topicsSet) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to delete offsets: %v", err)), nil } - jsonBytes, err := json.Marshal(response) + // Check for errors in the response + if err := responses.Error(); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Errors occurred during offset deletion: %v", err)), nil + } + + jsonBytes, err := json.Marshal(responses) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +func handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + groupName, err := requiredParam[string](request.Params.Arguments, "group") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil + } + + topic, err := requiredParam[string](request.Params.Arguments, "topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + } + + partition, err := requiredParam[float64](request.Params.Arguments, "partition") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get partition number: %v", err)), nil + } + partitionInt := int32(partition) + + offset, err := requiredParam[float64](request.Params.Arguments, "offset") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get offset value: %v", err)), nil + } + offsetInt := int64(offset) + + // Create Offsets object with the specified topic, partition, and offset + offsets := make(kadm.Offsets) + offsets.AddOffset(topic, partitionInt, offsetInt, -1) // Using -1 for leaderEpoch as it's optional + + // Commit the offsets + responses, err := admin.CommitOffsets(ctx, groupName, offsets) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to commit offsets: %v", err)), nil + } + + // Check for errors in the response + if err := responses.Error(); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Errors occurred during offset commit: %v", err)), nil + } + + jsonBytes, err := json.Marshal(responses) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil } From e218f82471f12335d11fdc81e33ee18baec1ba8f Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Wed, 7 May 2025 17:08:36 +0800 Subject: [PATCH 05/85] Update SDK import paths and fix dependencies (#6) --- go.mod | 4 ++-- go.work.sum | 6 ++++++ pkg/config/apiclient.go | 2 +- pkg/mcp/auth_utils.go | 2 +- pkg/mcp/context_utils.go | 2 +- pkg/mcp/prompts.go | 2 +- pkg/mcp/utils.go | 2 +- 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index d708aa1..9849693 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.9.1 github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b - github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve v0.0.0-00010101000000-000000000000 + github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver v0.0.0-20250506174209-b67ea08ddd82 github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect v0.0.0-00010101000000-000000000000 github.com/twmb/franz-go v1.18.1 github.com/twmb/franz-go/pkg/kadm v1.16.0 @@ -83,6 +83,6 @@ require ( google.golang.org/protobuf v1.35.1 // indirect ) -replace github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve => ./sdk/sdk-apiserver +replace github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver => ./sdk/sdk-apiserver replace github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect => ./sdk/sdk-kafkaconnect diff --git a/go.work.sum b/go.work.sum index 67ad3e6..8bed584 100644 --- a/go.work.sum +++ b/go.work.sum @@ -52,6 +52,10 @@ github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gG github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= +github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= +github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= github.com/golang/mock v1.4.3 h1:GV+pQPG/EUUbkh47niozDcADz6go/dUwhVzdUQHIVRw= @@ -92,6 +96,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= +github.com/mark3labs/mcp-go v0.23.1 h1:RzTzZ5kJ+HxwnutKA4rll8N/pKV6Wh5dhCmiJUu5S9I= +github.com/mark3labs/mcp-go v0.23.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= diff --git a/pkg/config/apiclient.go b/pkg/config/apiclient.go index 0b3e941..eb83835 100644 --- a/pkg/config/apiclient.go +++ b/pkg/config/apiclient.go @@ -30,7 +30,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/auth" "github.com/streamnative/streamnative-mcp-server/pkg/auth/cache" "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" - sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) var SNCloudClientConfiguration *sncloud.Configuration diff --git a/pkg/mcp/auth_utils.go b/pkg/mcp/auth_utils.go index dfbb788..b3dbbdf 100644 --- a/pkg/mcp/auth_utils.go +++ b/pkg/mcp/auth_utils.go @@ -21,7 +21,7 @@ import ( "fmt" "github.com/streamnative/streamnative-mcp-server/pkg/auth" - sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) const ( diff --git a/pkg/mcp/context_utils.go b/pkg/mcp/context_utils.go index 9587ff0..68e5ea8 100644 --- a/pkg/mcp/context_utils.go +++ b/pkg/mcp/context_utils.go @@ -24,7 +24,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/config" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" - sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) const DefaultKafkaPort = 9093 diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go index 7f30d90..ecb60f5 100644 --- a/pkg/mcp/prompts.go +++ b/pkg/mcp/prompts.go @@ -25,7 +25,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/streamnative-mcp-server/pkg/config" - sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) func RegisterPrompts(s *server.MCPServer) { diff --git a/pkg/mcp/utils.go b/pkg/mcp/utils.go index de002f3..a0d0977 100644 --- a/pkg/mcp/utils.go +++ b/pkg/mcp/utils.go @@ -25,7 +25,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/auth" "github.com/streamnative/streamnative-mcp-server/pkg/config" - sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserve" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) type ContextKey string From d9cae0ed91f76e67311d5e8e01b1d7296d92b140 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Thu, 8 May 2025 00:34:07 +0800 Subject: [PATCH 06/85] doc: update release doc (#5) --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 307b7d8..313648a 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,36 @@ The Model Context Protocol (MCP) is an open protocol that standardizes how appli For more information, visit [modelcontextprotocol.io](https://modelcontextprotocol.io/introduction). +## Release + +_This section describes how to release a new version of `snmcp`._ + +1. Generate a tag for the new version (see Versioning, below): + +``` +git tag -a v0.0.1 -m "v0.0.1" +``` + +5. Push the tag to the git repository: + +``` +git push origin refs/tags/v0.0.1 +``` + +The release workflow will: + +- build Go binaries for supported platforms +- archive the binaries +- publish a release to the github repository ([ref](https://github.com/streamnative/streamnative-mcp-server/releases)) + +### Versioning + +This project uses [semver](https://semver.org/) semantics. + +- Stable: `vX.Y.Z` +- Pre-release: `vX.Y.Z-rc.W` +- Snapshot: `vX.Y.Z-SNAPSHOT-commit` + ## License Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 From db88a7ff0a2eb446afa3abaeb517246fe5fb0196 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Thu, 8 May 2025 00:35:02 +0800 Subject: [PATCH 07/85] fix: cleanup (#8) - fix license - ready to export as lib --- cmd/streamnative-mcp-server/main.go | 16 ++++++++-------- pkg/auth/auth.go | 16 ++++++++-------- pkg/auth/authorization_tokenretriever.go | 16 ++++++++-------- pkg/auth/cache/cache.go | 16 ++++++++-------- pkg/auth/client_credentials_flow.go | 16 ++++++++-------- pkg/auth/client_credentials_provider.go | 16 ++++++++-------- pkg/auth/config_tokenprovider.go | 16 ++++++++-------- pkg/auth/data_url.go | 16 ++++++++-------- pkg/auth/oidc_endpoint_provider.go | 16 ++++++++-------- pkg/auth/store/keyring.go | 16 ++++++++-------- pkg/auth/store/store.go | 16 ++++++++-------- pkg/cmd/mcp/mcp.go | 16 ++++++++-------- pkg/cmd/mcp/stdio.go | 16 ++++++++-------- pkg/config/apiclient.go | 16 ++++++++-------- pkg/config/auth.go | 16 ++++++++-------- pkg/config/config.go | 16 ++++++++-------- pkg/config/external_kafka.go | 16 ++++++++-------- pkg/config/external_pulsar.go | 16 ++++++++-------- pkg/config/options.go | 16 ++++++++-------- pkg/kafka/connection.go | 16 ++++++++-------- pkg/kafka/kafkaconnect.go | 16 ++++++++-------- pkg/log/io.go | 16 ++++++++-------- pkg/mcp/auth_utils.go | 16 ++++++++-------- pkg/mcp/context.go | 16 ++++++++-------- pkg/mcp/context_tools.go | 16 ++++++++-------- pkg/mcp/context_utils.go | 18 +++++++++--------- pkg/mcp/features.go | 16 ++++++++-------- pkg/mcp/instructions.go | 16 ++++++++-------- pkg/mcp/kafka_admin_connect_tools.go | 16 ++++++++-------- pkg/mcp/kafka_admin_groups_tools.go | 16 ++++++++-------- pkg/mcp/kafka_admin_partitions_tools.go | 16 ++++++++-------- pkg/mcp/kafka_admin_sr_tools.go | 16 ++++++++-------- pkg/mcp/kafka_admin_topics_tools.go | 16 ++++++++-------- pkg/mcp/kafka_client_consume_tools.go | 16 ++++++++-------- pkg/mcp/kafka_client_produce_tools.go | 16 ++++++++-------- pkg/mcp/prompts.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_brokers_stats_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_brokers_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_cluster_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_functions_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_functions_worker_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_namespace_policy_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_namespace_tools.go | 16 ++++++++-------- .../pulsar_admin_nsisolationpolicy_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_packages_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_resourcequotas_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_schemas_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_sinks_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_sources_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_subscription_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_tenant_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_topic_policy_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_admin_topic_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_client_consume_tools.go | 16 ++++++++-------- pkg/mcp/pulsar_client_produce_tools.go | 16 ++++++++-------- pkg/mcp/streamnative_resources_log_tools.go | 16 ++++++++-------- pkg/mcp/utils.go | 16 ++++++++-------- pkg/pulsar/connection.go | 16 ++++++++-------- sdk/sdk-apiserver/api_apis.go | 15 ++++++++++++++- .../api_authorization_streamnative_io.go | 15 ++++++++++++++- ...i_authorization_streamnative_io_v1alpha1.go | 15 ++++++++++++++- .../api_billing_streamnative_io.go | 15 ++++++++++++++- .../api_billing_streamnative_io_v1alpha1.go | 15 ++++++++++++++- sdk/sdk-apiserver/api_cloud_streamnative_io.go | 15 ++++++++++++++- .../api_cloud_streamnative_io_v1alpha1.go | 15 ++++++++++++++- .../api_cloud_streamnative_io_v1alpha2.go | 15 ++++++++++++++- .../api_compute_streamnative_io.go | 15 ++++++++++++++- .../api_compute_streamnative_io_v1alpha1.go | 15 ++++++++++++++- sdk/sdk-apiserver/api_custom_objects.go | 15 ++++++++++++++- sdk/sdk-apiserver/api_version.go | 15 ++++++++++++++- sdk/sdk-apiserver/client.go | 15 ++++++++++++++- sdk/sdk-apiserver/configuration.go | 15 ++++++++++++++- ...pis_authorization_v1alpha1_cloud_storage.go | 15 ++++++++++++++- ...kg_apis_authorization_v1alpha1_condition.go | 15 ++++++++++++++- ..._apis_authorization_v1alpha1_iam_account.go | 15 ++++++++++++++- ..._authorization_v1alpha1_iam_account_list.go | 15 ++++++++++++++- ..._authorization_v1alpha1_iam_account_spec.go | 15 ++++++++++++++- ...uthorization_v1alpha1_iam_account_status.go | 15 ++++++++++++++- ...apis_authorization_v1alpha1_organization.go | 15 ++++++++++++++- ...orization_v1alpha1_pool_member_reference.go | 15 ++++++++++++++- ...pis_authorization_v1alpha1_resource_rule.go | 15 ++++++++++++++- ...pkg_apis_authorization_v1alpha1_role_ref.go | 15 ++++++++++++++- ...zation_v1alpha1_self_subject_rbac_review.go | 15 ++++++++++++++- ...n_v1alpha1_self_subject_rbac_review_spec.go | 15 ++++++++++++++- ...v1alpha1_self_subject_rbac_review_status.go | 15 ++++++++++++++- ...ation_v1alpha1_self_subject_rules_review.go | 15 ++++++++++++++- ..._v1alpha1_self_subject_rules_review_spec.go | 15 ++++++++++++++- ...1alpha1_self_subject_rules_review_status.go | 15 ++++++++++++++- ...zation_v1alpha1_self_subject_user_review.go | 15 ++++++++++++++- ...v1alpha1_self_subject_user_review_status.go | 15 ++++++++++++++- ...thorization_v1alpha1_subject_role_review.go | 15 ++++++++++++++- ...zation_v1alpha1_subject_role_review_spec.go | 15 ++++++++++++++- ...tion_v1alpha1_subject_role_review_status.go | 15 ++++++++++++++- ...horization_v1alpha1_subject_rules_review.go | 15 ++++++++++++++- ...ation_v1alpha1_subject_rules_review_spec.go | 15 ++++++++++++++- ...ion_v1alpha1_subject_rules_review_status.go | 15 ++++++++++++++- ...pkg_apis_authorization_v1alpha1_user_ref.go | 15 ++++++++++++++- ...billing_v1alpha1_customer_portal_request.go | 15 ++++++++++++++- ...ng_v1alpha1_customer_portal_request_spec.go | 15 ++++++++++++++- ..._v1alpha1_customer_portal_request_status.go | 15 ++++++++++++++- ...ver_pkg_apis_billing_v1alpha1_offer_item.go | 15 ++++++++++++++- ...g_apis_billing_v1alpha1_offer_item_price.go | 15 ++++++++++++++- ...ling_v1alpha1_offer_item_price_recurring.go | 15 ++++++++++++++- ...kg_apis_billing_v1alpha1_offer_reference.go | 15 ++++++++++++++- ...pkg_apis_billing_v1alpha1_payment_intent.go | 15 ++++++++++++++- ...pis_billing_v1alpha1_payment_intent_list.go | 15 ++++++++++++++- ...pis_billing_v1alpha1_payment_intent_spec.go | 15 ++++++++++++++- ...s_billing_v1alpha1_payment_intent_status.go | 15 ++++++++++++++- ...kg_apis_billing_v1alpha1_price_reference.go | 15 ++++++++++++++- ..._pkg_apis_billing_v1alpha1_private_offer.go | 15 ++++++++++++++- ...apis_billing_v1alpha1_private_offer_list.go | 15 ++++++++++++++- ...apis_billing_v1alpha1_private_offer_spec.go | 15 ++++++++++++++- ...server_pkg_apis_billing_v1alpha1_product.go | 15 ++++++++++++++- ...r_pkg_apis_billing_v1alpha1_product_list.go | 15 ++++++++++++++- ..._pkg_apis_billing_v1alpha1_product_price.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_product_reference.go | 15 ++++++++++++++- ...r_pkg_apis_billing_v1alpha1_product_spec.go | 15 ++++++++++++++- ...pkg_apis_billing_v1alpha1_product_status.go | 15 ++++++++++++++- ...is_billing_v1alpha1_product_status_price.go | 15 ++++++++++++++- ...r_pkg_apis_billing_v1alpha1_public_offer.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_public_offer_list.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_public_offer_spec.go | 15 ++++++++++++++- ...r_pkg_apis_billing_v1alpha1_setup_intent.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_setup_intent_list.go | 15 ++++++++++++++- ..._billing_v1alpha1_setup_intent_reference.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_setup_intent_spec.go | 15 ++++++++++++++- ...pis_billing_v1alpha1_setup_intent_status.go | 15 ++++++++++++++- ...pha1_stripe_customer_portal_request_spec.go | 15 ++++++++++++++- ...a1_stripe_customer_portal_request_status.go | 15 ++++++++++++++- ...s_billing_v1alpha1_stripe_payment_intent.go | 15 ++++++++++++++- ...billing_v1alpha1_stripe_price_recurrence.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_stripe_price_spec.go | 15 ++++++++++++++- ...pis_billing_v1alpha1_stripe_product_spec.go | 15 ++++++++++++++- ...pis_billing_v1alpha1_stripe_setup_intent.go | 15 ++++++++++++++- ...illing_v1alpha1_stripe_subscription_spec.go | 15 ++++++++++++++- ...r_pkg_apis_billing_v1alpha1_subscription.go | 15 ++++++++++++++- ...pis_billing_v1alpha1_subscription_intent.go | 15 ++++++++++++++- ...illing_v1alpha1_subscription_intent_list.go | 15 ++++++++++++++- ...illing_v1alpha1_subscription_intent_spec.go | 15 ++++++++++++++- ...ling_v1alpha1_subscription_intent_status.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_subscription_item.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_subscription_list.go | 15 ++++++++++++++- ..._billing_v1alpha1_subscription_reference.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_subscription_spec.go | 15 ++++++++++++++- ...pis_billing_v1alpha1_subscription_status.go | 15 ++++++++++++++- ...a1_subscription_status_subscription_item.go | 15 ++++++++++++++- ...illing_v1alpha1_suger_entitlement_review.go | 15 ++++++++++++++- ...g_v1alpha1_suger_entitlement_review_spec.go | 15 ++++++++++++++- ...v1alpha1_suger_entitlement_review_status.go | 15 ++++++++++++++- ..._pkg_apis_billing_v1alpha1_suger_product.go | 15 ++++++++++++++- ...apis_billing_v1alpha1_suger_product_spec.go | 15 ++++++++++++++- ..._v1alpha1_suger_subscription_intent_spec.go | 15 ++++++++++++++- ...billing_v1alpha1_suger_subscription_spec.go | 15 ++++++++++++++- ...ver_pkg_apis_billing_v1alpha1_test_clock.go | 15 ++++++++++++++- ...kg_apis_billing_v1alpha1_test_clock_list.go | 15 ++++++++++++++- ...kg_apis_billing_v1alpha1_test_clock_spec.go | 15 ++++++++++++++- ..._apis_billing_v1alpha1_test_clock_status.go | 15 ++++++++++++++- ...pi_server_pkg_apis_billing_v1alpha1_tier.go | 15 ++++++++++++++- ...i_server_pkg_apis_cloud_v1alpha1_api_key.go | 15 ++++++++++++++- ...ver_pkg_apis_cloud_v1alpha1_api_key_list.go | 15 ++++++++++++++- ...ver_pkg_apis_cloud_v1alpha1_api_key_spec.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_api_key_status.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_audit_log.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_auto_scaling_policy.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_aws_cloud_connection.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_aws_pool_member_spec.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_azure_connection.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_azure_pool_member_spec.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_billing_account_spec.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_book_keeper.go | 15 ++++++++++++++- ..._v1alpha1_book_keeper_node_resource_spec.go | 15 ++++++++++++++- ...cloud_v1alpha1_book_keeper_set_reference.go | 15 ++++++++++++++- ..._cloud_v1alpha1_bookkeeper_node_resource.go | 15 ++++++++++++++- ...pi_server_pkg_apis_cloud_v1alpha1_broker.go | 15 ++++++++++++++- ...cloud_v1alpha1_broker_node_resource_spec.go | 15 ++++++++++++++- ...api_server_pkg_apis_cloud_v1alpha1_chain.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_cloud_connection.go | 15 ++++++++++++++- ...pis_cloud_v1alpha1_cloud_connection_list.go | 15 ++++++++++++++- ...pis_cloud_v1alpha1_cloud_connection_spec.go | 15 ++++++++++++++- ...s_cloud_v1alpha1_cloud_connection_status.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_cloud_environment.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_cloud_environment_list.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_cloud_environment_spec.go | 15 ++++++++++++++- ..._cloud_v1alpha1_cloud_environment_status.go | 15 ++++++++++++++- ...ver_pkg_apis_cloud_v1alpha1_cluster_role.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_cluster_role_binding.go | 15 ++++++++++++++- ...cloud_v1alpha1_cluster_role_binding_list.go | 15 ++++++++++++++- ...cloud_v1alpha1_cluster_role_binding_spec.go | 15 ++++++++++++++- ...oud_v1alpha1_cluster_role_binding_status.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_cluster_role_list.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_cluster_role_spec.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_cluster_role_status.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_condition.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha1_condition_group.go | 15 ++++++++++++++- ...pi_server_pkg_apis_cloud_v1alpha1_config.go | 15 ++++++++++++++- ...pis_cloud_v1alpha1_default_node_resource.go | 15 ++++++++++++++- ...d_api_server_pkg_apis_cloud_v1alpha1_dns.go | 15 ++++++++++++++- ...pi_server_pkg_apis_cloud_v1alpha1_domain.go | 15 ++++++++++++++- ...erver_pkg_apis_cloud_v1alpha1_domain_tls.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha1_encrypted_token.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_encryption_key.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha1_endpoint_access.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_exec_config.go | 15 ++++++++++++++- ...ver_pkg_apis_cloud_v1alpha1_exec_env_var.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_failed_cluster.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_failed_cluster_role.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_failed_role.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_failed_role_binding.go | 15 ++++++++++++++- ...cloud_v1alpha1_g_cloud_organization_spec.go | 15 ++++++++++++++- ..._cloud_v1alpha1_g_cloud_pool_member_spec.go | 15 ++++++++++++++- ...i_server_pkg_apis_cloud_v1alpha1_gateway.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_gateway_status.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_gcp_cloud_connection.go | 15 ++++++++++++++- ..._cloud_v1alpha1_generic_pool_member_spec.go | 15 ++++++++++++++- ...er_pkg_apis_cloud_v1alpha1_identity_pool.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_identity_pool_list.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_identity_pool_spec.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_identity_pool_status.go | 15 ++++++++++++++- ...er_pkg_apis_cloud_v1alpha1_installed_csv.go | 15 ++++++++++++++- ...erver_pkg_apis_cloud_v1alpha1_invitation.go | 15 ++++++++++++++- ..._cloud_v1alpha1_lakehouse_storage_config.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_maintenance_window.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_master_auth.go | 15 ++++++++++++++- ...i_server_pkg_apis_cloud_v1alpha1_network.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_o_auth2_config.go | 15 ++++++++++++++- ...er_pkg_apis_cloud_v1alpha1_oidc_provider.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_oidc_provider_list.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_oidc_provider_spec.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_oidc_provider_status.go | 15 ++++++++++++++- ...ver_pkg_apis_cloud_v1alpha1_organization.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_organization_list.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_organization_spec.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_organization_status.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_organization_stripe.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_organization_suger.go | 15 ++++++++++++++- ..._api_server_pkg_apis_cloud_v1alpha1_pool.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_pool_list.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_pool_member.go | 15 ++++++++++++++- ...pha1_pool_member_connection_options_spec.go | 15 ++++++++++++++- ...lpha1_pool_member_istio_gateway_selector.go | 15 ++++++++++++++- ..._v1alpha1_pool_member_istio_gateway_spec.go | 15 ++++++++++++++- ...d_v1alpha1_pool_member_istio_gateway_tls.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_pool_member_istio_spec.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_pool_member_list.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_pool_member_monitoring.go | 15 ++++++++++++++- ...s_cloud_v1alpha1_pool_member_pulsar_spec.go | 15 ++++++++++++++- ...v1alpha1_pool_member_pulsar_spec_catalog.go | 15 ++++++++++++++- ...v1alpha1_pool_member_pulsar_spec_channel.go | 15 ++++++++++++++- ...pis_cloud_v1alpha1_pool_member_reference.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_pool_member_spec.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_pool_member_status.go | 15 ++++++++++++++- ...v1alpha1_pool_member_tiered_storage_spec.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_pool_option.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_pool_option_list.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_pool_option_location.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_pool_option_spec.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_pool_option_status.go | 15 ++++++++++++++- ..._server_pkg_apis_cloud_v1alpha1_pool_ref.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_pool_spec.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_pool_status.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha1_private_service.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha1_private_service_id.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_protocols_config.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_pulsar_cluster.go | 15 ++++++++++++++- ...v1alpha1_pulsar_cluster_component_status.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_pulsar_cluster_list.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_pulsar_cluster_spec.go | 15 ++++++++++++++- ...pis_cloud_v1alpha1_pulsar_cluster_status.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_pulsar_gateway.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_pulsar_gateway_list.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_pulsar_gateway_spec.go | 15 ++++++++++++++- ...pis_cloud_v1alpha1_pulsar_gateway_status.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha1_pulsar_instance.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_pulsar_instance_auth.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_pulsar_instance_list.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_pulsar_instance_spec.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_pulsar_instance_status.go | 15 ++++++++++++++- ...oud_v1alpha1_pulsar_instance_status_auth.go | 15 ++++++++++++++- ...pha1_pulsar_instance_status_auth_o_auth2.go | 15 ++++++++++++++- ...s_cloud_v1alpha1_pulsar_service_endpoint.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_rbac_status.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_region_info.go | 15 ++++++++++++++- ..._api_server_pkg_apis_cloud_v1alpha1_role.go | 15 ++++++++++++++- ...ver_pkg_apis_cloud_v1alpha1_role_binding.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_role_binding_condition.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_role_binding_list.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_role_binding_spec.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_role_binding_status.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha1_role_definition.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_role_list.go | 15 ++++++++++++++- ..._server_pkg_apis_cloud_v1alpha1_role_ref.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_role_spec.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_role_status.go | 15 ++++++++++++++- ...pi_server_pkg_apis_cloud_v1alpha1_secret.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_secret_list.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha1_secret_reference.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_self_registration.go | 15 ++++++++++++++- ...pis_cloud_v1alpha1_self_registration_aws.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_self_registration_spec.go | 15 ++++++++++++++- ...s_cloud_v1alpha1_self_registration_suger.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha1_service_account.go | 15 ++++++++++++++- ...s_cloud_v1alpha1_service_account_binding.go | 15 ++++++++++++++- ...ud_v1alpha1_service_account_binding_list.go | 15 ++++++++++++++- ...ud_v1alpha1_service_account_binding_spec.go | 15 ++++++++++++++- ..._v1alpha1_service_account_binding_status.go | 15 ++++++++++++++- ...apis_cloud_v1alpha1_service_account_list.go | 15 ++++++++++++++- ...is_cloud_v1alpha1_service_account_status.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha1_sharing_config.go | 15 ++++++++++++++- ...d_api_server_pkg_apis_cloud_v1alpha1_srn.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha1_stripe_subscription.go | 15 ++++++++++++++- ..._cloud_v1alpha1_stripe_subscription_list.go | 15 ++++++++++++++- ..._cloud_v1alpha1_stripe_subscription_spec.go | 15 ++++++++++++++- ...loud_v1alpha1_stripe_subscription_status.go | 15 ++++++++++++++- ...i_server_pkg_apis_cloud_v1alpha1_subject.go | 15 ++++++++++++++- ...kg_apis_cloud_v1alpha1_subscription_item.go | 15 ++++++++++++++- ...oud_v1alpha1_support_access_options_spec.go | 15 ++++++++++++++- ...api_server_pkg_apis_cloud_v1alpha1_taint.go | 15 ++++++++++++++- ...erver_pkg_apis_cloud_v1alpha1_toleration.go | 15 ++++++++++++++- ..._api_server_pkg_apis_cloud_v1alpha1_user.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_user_list.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_user_name.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha1_user_spec.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha1_user_status.go | 15 ++++++++++++++- ...pi_server_pkg_apis_cloud_v1alpha1_window.go | 15 ++++++++++++++- ..._cloud_v1alpha1_zoo_keeper_set_reference.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha2_aws_subscription.go | 15 ++++++++++++++- ...pis_cloud_v1alpha2_aws_subscription_list.go | 15 ++++++++++++++- ...pis_cloud_v1alpha2_aws_subscription_spec.go | 15 ++++++++++++++- ...s_cloud_v1alpha2_aws_subscription_status.go | 15 ++++++++++++++- ...cloud_v1alpha2_book_keeper_resource_spec.go | 15 ++++++++++++++- ..._pkg_apis_cloud_v1alpha2_book_keeper_set.go | 15 ++++++++++++++- ...apis_cloud_v1alpha2_book_keeper_set_list.go | 15 ++++++++++++++- ...is_cloud_v1alpha2_book_keeper_set_option.go | 15 ++++++++++++++- ...oud_v1alpha2_book_keeper_set_option_list.go | 15 ++++++++++++++- ...oud_v1alpha2_book_keeper_set_option_spec.go | 15 ++++++++++++++- ...d_v1alpha2_book_keeper_set_option_status.go | 15 ++++++++++++++- ...cloud_v1alpha2_book_keeper_set_reference.go | 15 ++++++++++++++- ...apis_cloud_v1alpha2_book_keeper_set_spec.go | 15 ++++++++++++++- ...is_cloud_v1alpha2_book_keeper_set_status.go | 15 ++++++++++++++- ..._cloud_v1alpha2_bookkeeper_node_resource.go | 15 ++++++++++++++- ...server_pkg_apis_cloud_v1alpha2_condition.go | 15 ++++++++++++++- ...pis_cloud_v1alpha2_default_node_resource.go | 15 ++++++++++++++- ...rver_pkg_apis_cloud_v1alpha2_monitor_set.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha2_monitor_set_list.go | 15 ++++++++++++++- ...pkg_apis_cloud_v1alpha2_monitor_set_spec.go | 15 ++++++++++++++- ...g_apis_cloud_v1alpha2_monitor_set_status.go | 15 ++++++++++++++- ...pis_cloud_v1alpha2_pool_member_reference.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha2_sharing_config.go | 15 ++++++++++++++- ..._cloud_v1alpha2_zoo_keeper_resource_spec.go | 15 ++++++++++++++- ...r_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha2_zoo_keeper_set_list.go | 15 ++++++++++++++- ...pis_cloud_v1alpha2_zoo_keeper_set_option.go | 15 ++++++++++++++- ...loud_v1alpha2_zoo_keeper_set_option_list.go | 15 ++++++++++++++- ...loud_v1alpha2_zoo_keeper_set_option_spec.go | 15 ++++++++++++++- ...ud_v1alpha2_zoo_keeper_set_option_status.go | 15 ++++++++++++++- ..._cloud_v1alpha2_zoo_keeper_set_reference.go | 15 ++++++++++++++- ..._apis_cloud_v1alpha2_zoo_keeper_set_spec.go | 15 ++++++++++++++- ...pis_cloud_v1alpha2_zoo_keeper_set_status.go | 15 ++++++++++++++- ...erver_pkg_apis_compute_v1alpha1_artifact.go | 15 ++++++++++++++- ...rver_pkg_apis_compute_v1alpha1_condition.go | 15 ++++++++++++++- ...rver_pkg_apis_compute_v1alpha1_container.go | 15 ++++++++++++++- ...apis_compute_v1alpha1_flink_blob_storage.go | 15 ++++++++++++++- ...g_apis_compute_v1alpha1_flink_deployment.go | 15 ++++++++++++++- ...s_compute_v1alpha1_flink_deployment_list.go | 15 ++++++++++++++- ...s_compute_v1alpha1_flink_deployment_spec.go | 15 ++++++++++++++- ...compute_v1alpha1_flink_deployment_status.go | 15 ++++++++++++++- ...server_pkg_apis_compute_v1alpha1_logging.go | 15 ++++++++++++++- ...er_pkg_apis_compute_v1alpha1_object_meta.go | 15 ++++++++++++++- ...r_pkg_apis_compute_v1alpha1_pod_template.go | 15 ++++++++++++++- ..._apis_compute_v1alpha1_pod_template_spec.go | 15 ++++++++++++++- ...s_compute_v1alpha1_pool_member_reference.go | 15 ++++++++++++++- ...erver_pkg_apis_compute_v1alpha1_pool_ref.go | 15 ++++++++++++++- ..._pkg_apis_compute_v1alpha1_resource_spec.go | 15 ++++++++++++++- ...g_apis_compute_v1alpha1_security_context.go | 15 ++++++++++++++- ..._pkg_apis_compute_v1alpha1_user_metadata.go | 15 ++++++++++++++- ..._server_pkg_apis_compute_v1alpha1_volume.go | 15 ++++++++++++++- ...pute_v1alpha1_vvp_custom_resource_status.go | 15 ++++++++++++++- ..._compute_v1alpha1_vvp_deployment_details.go | 15 ++++++++++++++- ...v1alpha1_vvp_deployment_details_template.go | 15 ++++++++++++++- ...vvp_deployment_details_template_metadata.go | 15 ++++++++++++++- ...ha1_vvp_deployment_details_template_spec.go | 15 ++++++++++++++- ...nt_details_template_spec_kubernetes_spec.go | 15 ++++++++++++++- ...pha1_vvp_deployment_kubernetes_resources.go | 15 ++++++++++++++- ...e_v1alpha1_vvp_deployment_running_status.go | 15 ++++++++++++++- ...s_compute_v1alpha1_vvp_deployment_status.go | 15 ++++++++++++++- ...v1alpha1_vvp_deployment_status_condition.go | 15 ++++++++++++++- ..._vvp_deployment_status_deployment_status.go | 15 ++++++++++++++- ..._v1alpha1_vvp_deployment_system_metadata.go | 15 ++++++++++++++- ...compute_v1alpha1_vvp_deployment_template.go | 15 ++++++++++++++- ...te_v1alpha1_vvp_deployment_template_spec.go | 15 ++++++++++++++- ...is_compute_v1alpha1_vvp_restore_strategy.go | 15 ++++++++++++++- ...rver_pkg_apis_compute_v1alpha1_workspace.go | 15 ++++++++++++++- ...pkg_apis_compute_v1alpha1_workspace_list.go | 15 ++++++++++++++- ...pkg_apis_compute_v1alpha1_workspace_spec.go | 15 ++++++++++++++- ...g_apis_compute_v1alpha1_workspace_status.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_affinity.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_api_group.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_api_group_list.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_api_resource.go | 15 ++++++++++++++- .../model_v1_api_resource_list.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_condition.go | 15 ++++++++++++++- .../model_v1_config_map_env_source.go | 15 ++++++++++++++- .../model_v1_config_map_key_selector.go | 15 ++++++++++++++- .../model_v1_config_map_volume_source.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_delete_options.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_env_from_source.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_env_var.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_env_var_source.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_exec_action.go | 15 ++++++++++++++- .../model_v1_group_version_for_discovery.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_grpc_action.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_http_get_action.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_http_header.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_key_to_path.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_label_selector.go | 15 ++++++++++++++- .../model_v1_label_selector_requirement.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_list_meta.go | 15 ++++++++++++++- .../model_v1_local_object_reference.go | 15 ++++++++++++++- .../model_v1_managed_fields_entry.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_node_affinity.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_node_selector.go | 15 ++++++++++++++- .../model_v1_node_selector_requirement.go | 15 ++++++++++++++- .../model_v1_node_selector_term.go | 15 ++++++++++++++- .../model_v1_object_field_selector.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_object_meta.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_owner_reference.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_pod_affinity.go | 15 ++++++++++++++- .../model_v1_pod_affinity_term.go | 15 ++++++++++++++- .../model_v1_pod_anti_affinity.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_preconditions.go | 15 ++++++++++++++- .../model_v1_preferred_scheduling_term.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_probe.go | 15 ++++++++++++++- .../model_v1_resource_field_selector.go | 15 ++++++++++++++- .../model_v1_resource_requirements.go | 15 ++++++++++++++- .../model_v1_secret_env_source.go | 15 ++++++++++++++- .../model_v1_secret_key_selector.go | 15 ++++++++++++++- .../model_v1_secret_volume_source.go | 15 ++++++++++++++- .../model_v1_server_address_by_client_cidr.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_status.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_status_cause.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_status_details.go | 15 ++++++++++++++- .../model_v1_tcp_socket_action.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_toleration.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_volume_mount.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_v1_watch_event.go | 15 ++++++++++++++- .../model_v1_weighted_pod_affinity_term.go | 15 ++++++++++++++- sdk/sdk-apiserver/model_version_info.go | 15 ++++++++++++++- sdk/sdk-apiserver/response.go | 15 ++++++++++++++- sdk/sdk-apiserver/utils.go | 15 ++++++++++++++- 449 files changed, 5939 insertions(+), 856 deletions(-) diff --git a/cmd/streamnative-mcp-server/main.go b/cmd/streamnative-mcp-server/main.go index 4cc668b..f42e420 100644 --- a/cmd/streamnative-mcp-server/main.go +++ b/cmd/streamnative-mcp-server/main.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 1e2190e..53f75c6 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/authorization_tokenretriever.go b/pkg/auth/authorization_tokenretriever.go index eff49b7..bef3cd0 100644 --- a/pkg/auth/authorization_tokenretriever.go +++ b/pkg/auth/authorization_tokenretriever.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/cache/cache.go b/pkg/auth/cache/cache.go index 9d5a4a6..758a291 100644 --- a/pkg/auth/cache/cache.go +++ b/pkg/auth/cache/cache.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/client_credentials_flow.go b/pkg/auth/client_credentials_flow.go index 8a2b031..a93adea 100644 --- a/pkg/auth/client_credentials_flow.go +++ b/pkg/auth/client_credentials_flow.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/client_credentials_provider.go b/pkg/auth/client_credentials_provider.go index 59eee8a..24c6a30 100644 --- a/pkg/auth/client_credentials_provider.go +++ b/pkg/auth/client_credentials_provider.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/config_tokenprovider.go b/pkg/auth/config_tokenprovider.go index 6b3963f..d231105 100644 --- a/pkg/auth/config_tokenprovider.go +++ b/pkg/auth/config_tokenprovider.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/data_url.go b/pkg/auth/data_url.go index 6533d64..0216c9d 100644 --- a/pkg/auth/data_url.go +++ b/pkg/auth/data_url.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/oidc_endpoint_provider.go b/pkg/auth/oidc_endpoint_provider.go index e675060..472c055 100644 --- a/pkg/auth/oidc_endpoint_provider.go +++ b/pkg/auth/oidc_endpoint_provider.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/store/keyring.go b/pkg/auth/store/keyring.go index 805c819..40cfb0c 100644 --- a/pkg/auth/store/keyring.go +++ b/pkg/auth/store/keyring.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/auth/store/store.go b/pkg/auth/store/store.go index 3508ed9..517e551 100644 --- a/pkg/auth/store/store.go +++ b/pkg/auth/store/store.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/cmd/mcp/mcp.go b/pkg/cmd/mcp/mcp.go index ef80ce4..5db31f7 100644 --- a/pkg/cmd/mcp/mcp.go +++ b/pkg/cmd/mcp/mcp.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index cd56371..b412b2c 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/config/apiclient.go b/pkg/config/apiclient.go index eb83835..6d48365 100644 --- a/pkg/config/apiclient.go +++ b/pkg/config/apiclient.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/config/auth.go b/pkg/config/auth.go index 11a3619..5704720 100644 --- a/pkg/config/auth.go +++ b/pkg/config/auth.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/config/config.go b/pkg/config/config.go index 789b115..9a3c720 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/config/external_kafka.go b/pkg/config/external_kafka.go index b0b9295..b01b994 100644 --- a/pkg/config/external_kafka.go +++ b/pkg/config/external_kafka.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/config/external_pulsar.go b/pkg/config/external_pulsar.go index b003c5c..46c5eb5 100644 --- a/pkg/config/external_pulsar.go +++ b/pkg/config/external_pulsar.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/config/options.go b/pkg/config/options.go index 3a635cb..c54728c 100644 --- a/pkg/config/options.go +++ b/pkg/config/options.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/kafka/connection.go b/pkg/kafka/connection.go index 60d01cb..e683248 100644 --- a/pkg/kafka/connection.go +++ b/pkg/kafka/connection.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/kafka/kafkaconnect.go b/pkg/kafka/kafkaconnect.go index 72966ed..21455d3 100644 --- a/pkg/kafka/kafkaconnect.go +++ b/pkg/kafka/kafkaconnect.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/log/io.go b/pkg/log/io.go index 7ed5eea..e0a10c5 100644 --- a/pkg/log/io.go +++ b/pkg/log/io.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/auth_utils.go b/pkg/mcp/auth_utils.go index b3dbbdf..56c6912 100644 --- a/pkg/mcp/auth_utils.go +++ b/pkg/mcp/auth_utils.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/context.go b/pkg/mcp/context.go index 0b8ec50..69d4678 100644 --- a/pkg/mcp/context.go +++ b/pkg/mcp/context.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/context_tools.go b/pkg/mcp/context_tools.go index e5573ba..d772647 100644 --- a/pkg/mcp/context_tools.go +++ b/pkg/mcp/context_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/context_utils.go b/pkg/mcp/context_utils.go index 68e5ea8..6fcbb2a 100644 --- a/pkg/mcp/context_utils.go +++ b/pkg/mcp/context_utils.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an @@ -61,7 +61,7 @@ func SetContext(options *config.Options, instanceName, clusterName string) error } } if !foundInstance { - return fmt.Errorf("Pulsar instance %s not found", instanceName) + return fmt.Errorf("Pulsar instance %s not found in organization %s", instanceName, options.Organization) } clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, options.Organization).Execute() diff --git a/pkg/mcp/features.go b/pkg/mcp/features.go index 034c9ce..f7c81ef 100644 --- a/pkg/mcp/features.go +++ b/pkg/mcp/features.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/instructions.go b/pkg/mcp/instructions.go index 31c9891..b572d93 100644 --- a/pkg/mcp/instructions.go +++ b/pkg/mcp/instructions.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go index 3076bd3..ff76dac 100644 --- a/pkg/mcp/kafka_admin_connect_tools.go +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index a4ddb67..31f3bd6 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/kafka_admin_partitions_tools.go b/pkg/mcp/kafka_admin_partitions_tools.go index 6615dd1..a1a3780 100644 --- a/pkg/mcp/kafka_admin_partitions_tools.go +++ b/pkg/mcp/kafka_admin_partitions_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index 69c9193..06eac90 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go index 844a5a7..022f6f4 100644 --- a/pkg/mcp/kafka_admin_topics_tools.go +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go index 6e6ef68..35bcb88 100644 --- a/pkg/mcp/kafka_client_consume_tools.go +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index aa83238..b133ee2 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go index ecb60f5..e7b4438 100644 --- a/pkg/mcp/prompts.go +++ b/pkg/mcp/prompts.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go index d22a101..8b692aa 100644 --- a/pkg/mcp/pulsar_admin_brokers_stats_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go index 7b177fe..bebeecc 100644 --- a/pkg/mcp/pulsar_admin_brokers_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index 9ab06a6..f670b05 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index e886d7a..fc97bdf 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go index ea4c8d2..3ba319f 100644 --- a/pkg/mcp/pulsar_admin_functions_worker_tools.go +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index 16e194f..5b3beac 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index 323709c..f4b6279 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index 072b08e..9a1bdf6 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index b45de28..cacd7bd 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go index 5ac52eb..e330f16 100644 --- a/pkg/mcp/pulsar_admin_resourcequotas_tools.go +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go index 01df186..fca817e 100644 --- a/pkg/mcp/pulsar_admin_schemas_tools.go +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index 7fb16c8..f2729b2 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index a7d3845..745e25c 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go index 6f6ade4..dfcd5ed 100644 --- a/pkg/mcp/pulsar_admin_subscription_tools.go +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index 076402e..de365da 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index 3f3efb6..1325793 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index beafdd6..bf2258e 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go index 918bb20..361911f 100644 --- a/pkg/mcp/pulsar_client_consume_tools.go +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index 04a37e8..a1d7a0d 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go index 7793c8e..dc70311 100644 --- a/pkg/mcp/streamnative_resources_log_tools.go +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/mcp/utils.go b/pkg/mcp/utils.go index a0d0977..a6799a0 100644 --- a/pkg/mcp/utils.go +++ b/pkg/mcp/utils.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/pkg/pulsar/connection.go b/pkg/pulsar/connection.go index 536fb6f..5ef3bad 100644 --- a/pkg/pulsar/connection.go +++ b/pkg/pulsar/connection.go @@ -1,12 +1,12 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. -// You may obtain a copy of the License at +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an diff --git a/sdk/sdk-apiserver/api_apis.go b/sdk/sdk-apiserver/api_apis.go index 99a0d1f..58dfe90 100644 --- a/sdk/sdk-apiserver/api_apis.go +++ b/sdk/sdk-apiserver/api_apis.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io.go b/sdk/sdk-apiserver/api_authorization_streamnative_io.go index 6d95535..8cf0788 100644 --- a/sdk/sdk-apiserver/api_authorization_streamnative_io.go +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go index 0bab820..d2c271e 100644 --- a/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io.go b/sdk/sdk-apiserver/api_billing_streamnative_io.go index 24f288c..c38046e 100644 --- a/sdk/sdk-apiserver/api_billing_streamnative_io.go +++ b/sdk/sdk-apiserver/api_billing_streamnative_io.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go index 165b555..d7c75de 100644 --- a/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io.go b/sdk/sdk-apiserver/api_cloud_streamnative_io.go index aedc2da..7e2aec3 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go index 076043e..892af16 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go index a10fa14..d81e27e 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io.go b/sdk/sdk-apiserver/api_compute_streamnative_io.go index 637667c..15bd6ac 100644 --- a/sdk/sdk-apiserver/api_compute_streamnative_io.go +++ b/sdk/sdk-apiserver/api_compute_streamnative_io.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go index a4fdb0a..d5aa471 100644 --- a/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_custom_objects.go b/sdk/sdk-apiserver/api_custom_objects.go index 422820c..75e392e 100644 --- a/sdk/sdk-apiserver/api_custom_objects.go +++ b/sdk/sdk-apiserver/api_custom_objects.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/api_version.go b/sdk/sdk-apiserver/api_version.go index 4cb386d..92eea19 100644 --- a/sdk/sdk-apiserver/api_version.go +++ b/sdk/sdk-apiserver/api_version.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/client.go b/sdk/sdk-apiserver/client.go index fa563bb..1024ac6 100644 --- a/sdk/sdk-apiserver/client.go +++ b/sdk/sdk-apiserver/client.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/configuration.go b/sdk/sdk-apiserver/configuration.go index 081106c..a5daffa 100644 --- a/sdk/sdk-apiserver/configuration.go +++ b/sdk/sdk-apiserver/configuration.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go index 88619ef..57d497c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go index 30c4fbf..e86aa98 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go index 68463cc..db5973b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go index 5a5e3d2..af9ae4a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go index d8943d5..4fd1a35 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go index dadc0fd..d05a79d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go index c84c7d5..099da02 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go index ffa2bb6..a7910a1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go index d542d84..e51c36c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go index 99f7b14..7fbd822 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go index f16d0af..0ed47b7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go index 3de7f84..dc09be6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go index b747132..7b4994c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go index 747580f..952fc1f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go index 433853d..d32dc85 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go index a5ec7cc..32bdea5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go index c84ff56..07d2427 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go index 86749e5..beb8838 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go index 1ee60d9..ba4678a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go index ba7500a..027ee57 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go index 07d09e0..2371c0a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go index f6ab5af..ea76a92 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go index 409f1d8..d5ae937 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go index 9531bf3..acdddd4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go index 90b8bbe..d96f62e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go index 3fecdd1..ea63ce9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go index 7d9e1c9..705eaed 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go index 28a8e5f..0830500 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go index 69168dc..bb8a27a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go index 5c16a00..71a5af2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go index 811aa7c..62e64a5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go index 67369fd..f0e9d8f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go index 320e22c..1456b31 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go index 756215c..0275fb8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go index 3a76f9d..78511c9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go index fae2c02..4f6c68f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go index 107965c..bed7aba 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go index 823bcbf..612f4b3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go index 4420161..a647970 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go index 929372b..779041f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go index eb8a734..657119f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go index 98bd61d..5af09db 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go index 0916ab8..7858415 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go index 6d0f5e7..c822b7a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go index aaaa304..b5808dd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go index e8f5a6f..7de58b0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go index e2b90d9..66ce8f3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go index f7894ce..2bc8931 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go index c33cdc7..82387f7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go index f6b05ef..305b3aa 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go index 6f5a069..3b552af 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go index bb5f1fc..d60e676 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go index b2f8ee6..27c7b6c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go index 343e33c..29f2271 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go index f04f967..c34da74 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go index 22d4dd1..03cb722 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go index 634f4e1..97d086d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go index 21a0190..7170ff3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go index d36bdc8..5de5004 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go index 7184746..842cdd1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go index 59e1a2e..72207a9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go index d9cba80..bfbb8d8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go index cc6d3da..57c2ea5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go index 8a6c5de..381db73 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go index d77b867..7cecdcc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go index f8e682e..eb537c6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go index 690345a..1a01422 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go index 1fb373d..51c50ca 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go index 4a67b98..759eb6d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go index bf6247f..8f1f55b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go index b3b042d..8e11d67 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go index 47d5bae..a1cdce7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go index 077c87f..48c8425 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go index 1be9339..40d58c9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go index 34fa177..6352cb7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go index 94a9cee..f2af1f3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go index 5c9df9f..1fa8722 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go index 1e72214..1ad325c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go index c1783cc..9447fc6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go index ab1ac8f..0acd6c0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go index 2207292..cb9656b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go index 5ae97cb..e75907b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go index 1b1197e..5f5d437 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go index a85c29f..dfecb5f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go index 7e93c7b..e092a27 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go index 8dda237..6d5bd54 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go index 6143a40..f930100 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go index d423d79..98e11dd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go index 3c76655..0dccbca 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go index 0eda457..18811b5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go index 249b7ba..3882c45 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go index 4b935ba..3973ee0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go index 399ae3b..0d96b3e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go index fafab8a..ee262b8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go index 230002e..e87ae13 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go index fa624c0..ae55346 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go index bf13d1f..e794670 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go index efd0b77..d75cb9a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go index 5d978f0..47e12b2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go index 433e913..245c4c3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go index 151bfba..92b8df0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go index 2d77ac6..cd97125 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go index 272589d..42bf764 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go index 679c082..08b7f4e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go index acc969f..fc9b529 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go index 4b14e52..48ac1f1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go index 506f760..87ad9e0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go index 2ac0d03..57740a0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go index 4bb91f0..11e8b68 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go index 66ccaa0..3b8979b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go index 9da87cf..03132d3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go index c363f7d..4c9586e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go index 3b34af1..74f8f63 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go index 6cae365..73db2f2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go index d53a301..e3927a6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go index 381a8a2..3073803 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go index 6eb7868..15419ee 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go index 69a4e93..07e42dc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go index ec0a33e..a480985 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go index c1e6c30..1b9f99e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go index 2438fd5..cdd4d52 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go index 2c9870b..3aa5004 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go index 0ab0069..1b5f82c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go index eee6c76..466cddb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go index a9ff8bf..3e40598 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go index a63e312..1d65ce2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go index 123c1f4..1f36908 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go index bd28d78..6c80905 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go index 879f739..acbced3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go index e17bf6f..01676d8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go index 892ac12..9c332ab 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go index ff02f64..42f312d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go index 0e95de6..192f82b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go index f9b6aca..05b22fa 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go index 0313ef1..266b37d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go index b756dcc..7ea86ad 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go index a7b133c..3cd7e5b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go index 01f5b8b..b4fcad5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go index c846740..7d3cc09 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go index 275af38..2202671 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go index c6d8c09..b97064d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go index ccfbb30..93ffed7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go index 82e651e..a40c5f1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go index 7fd2c45..d4b1e14 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go index 550a1b1..7ec34d1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go index 14cc607..1db3f1b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go index 6e21443..36b3056 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go index dbf5a2d..f404877 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go index c82a7fd..e9c6371 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go index 8aaecd3..a8fa92f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go index 49b851e..658db77 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go index b907a5c..0eaf460 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go index f275399..6be52a4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go index c78adf7..f1219b9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go index abd1953..0fbbb6e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go index 999bd75..c7e316a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go index 102e6b4..d7b044f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go index 89eb23d..2ba6ddf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go index b40988c..a014ae8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go index 89c2d1b..58a28f8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go index 64e4dde..49bc7e1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go index 74eca9d..e1ac534 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go index bd4ad97..d26d45a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go index eca0f90..04d3358 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go index acee007..d13e4f6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go index 0db2952..84b13aa 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go index 648daf5..25eb7d6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go index c8e86c9..e72e5b3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go index 7f358d2..86bb246 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go index bb909a1..f178ead 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go index 2d36852..aa1d96c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go index 3d60ddc..1ead2c2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go index 18173de..d20af54 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go index a69c2f2..9263d6f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go index df151fd..9d79a64 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go index 1712e28..29840a2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go index 613862d..372f49c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go index 9b901e4..aa847ea 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go index bc35955..3afae05 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go index 4668a72..05fdf5d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go index 010a11a..7946294 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go index 8cc1d64..d257ba2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go index 3771ec6..9228c17 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go index 7bfb8b9..77a7d21 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go index 689d9dd..51559ca 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go index 9087410..62f0fa4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go index 644f4af..324f675 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go index a1e057b..25a55e4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go index 12a7061..97f5d77 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go index f0c407f..abbfb2f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go index edebc35..801ca3d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go index 92c72a6..672383d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go index d0a8db6..ce62bd1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go index 8208e19..579d9d9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go index 423de15..30ebd76 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go index 6684569..4fbb6c1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go index 44e8680..bc17d3a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go index d26fcd3..99d41cc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go index 68ed6a3..1680ab5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go index 9b8eeca..e265ff3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go index a5158e6..c19f697 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go index 76b9053..06b75e8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go index db0e375..90af9be 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go index 13d6a5d..badc994 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go index cf7a99e..83bd463 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go index 93bcf9e..bca9476 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go index 6e9c0fd..3282b12 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go index 4411126..2fc4404 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go index 8abba83..bf96c32 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go index 9998bee..3810507 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go index 3b189a9..03337ab 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go index a775d3f..d35e98f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go index 76aefb5..2a8298f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go index b74fc95..a700bdf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go index 174f2df..1956fca 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go index ca55781..838ba0e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go index 044d7ac..4ea3da5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go index 654251a..3ff908d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go index fa0af4f..02e4b5b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go index c0b0232..3632047 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go index 720e653..8c15d38 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go index 25c974f..4f6cd97 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go index 7cfd052..179b225 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go index 882d79b..1f4ecbb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go index 4146a41..f97fd4c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go index 55bd652..c68c876 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go index e44b13e..c5fcd9e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go index 5b49410..27821bd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go index e1202fe..acf5c47 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go index 1b68efd..ad76e59 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go index 6ca130e..4a3b502 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go index 80e898e..1abd398 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go index edeaeed..4eef837 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go index 885d126..bf322f9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go index 431d5d0..e6aed8c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go index 43f4a61..d1f18c4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go index aa7999d..35c124a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go index 5848126..09fdadf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go index 9215eee..e3ec685 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go index fdb92e1..fb770d1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go index 6433017..58e369e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go index dc56706..6f104dd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go index a6fe682..7b9c57b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go index a751972..d41b1f3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go index 4dd3167..35b2edf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go index 80a516d..e4f350e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go index 9751fde..1f3b056 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go index c295e92..d61f1d0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go index 7ec7cd4..7319631 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go index f56652f..ae11054 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go index 5a400b2..879a173 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go index 1e422d6..7717078 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go index e96656f..fce6cf2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go index 5678bbf..a0e48c1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go index a5db749..d042703 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go index de9f198..1b7cb2b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go index a46d2a8..e46cd1b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go index a97c7b8..ac271a0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go index dbfb185..e6ebb5b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go index 152b048..e5f3930 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go index 7280ddf..a1be286 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go index 2755eb8..c6776b9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go index 329b995..d349d14 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go index 85fb7d9..2e216cd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go index fbdefcc..7b5a01c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go index c2fa3ca..9594eb0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go index 721b45b..aeb4460 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go index 66a297f..41b2842 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go index 127d5c4..5d77408 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go index a2ca95c..bdc8b15 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go index 0abd121..c3b0849 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go index 1a18e02..0569468 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go index c351be5..901a7fb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go index 423f22f..68e8403 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go index 3c91b3c..4891fd0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go index 288bcd5..f43a8cb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go index 6858c63..75ebf51 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go index 03d0353..e8d9ac1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go index e0bddb6..17cadd8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go index 9571298..5f49d91 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go index 80c294a..d824783 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go index 7a120e3..a8e1490 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go index 101158f..8d34d7c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go index c2d2a35..2bdd2ae 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go index 98d0c50..5ffbc51 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go index e1783f4..c881188 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go index 767a765..9831a3c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go index 4b49f0e..d225d76 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go index fe8270e..7622cb7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go index df9c291..2346430 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go index 4298c35..def113b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go index 29c52f7..2e50ec8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go index f8079e0..b4f2491 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go index 60082db..d30c3f3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go index b568abe..0c7e786 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go index ba84401..7489e13 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go index e82f84c..90e28b2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go index 7c3bfa6..54687e0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go index 48d4a1f..e49cd7c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go index f6abb61..ac8741e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go index 6d6fe43..e844db7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go index e81706f..fb2b1e6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go index d60e194..78d7dfe 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go index 73c047d..d727951 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go index bb863da..96f37b2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go index 0213aa6..bba4e5f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go index 1671967..dff7237 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go index 9716289..8fd7b29 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go index 78f9583..939e057 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go index bbbe6c6..714d001 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go index b471a32..1cd3c00 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go index 919bf86..45416e7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go index cb7fc7f..94bb9ba 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go index eed0304..9fdc094 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go index 4a05591..f263d5a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go index cf926a6..2f4499b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go index 94194c9..f3ac9c8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go index afb57f2..79a7e13 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go index 6a19502..2ac6d29 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go index 542ff7f..5ea4c15 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go index 3d350d1..7636aa9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go index fb3cf63..2a21026 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go index c9b049d..1e5d348 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_affinity.go b/sdk/sdk-apiserver/model_v1_affinity.go index 4a8d244..ad37912 100644 --- a/sdk/sdk-apiserver/model_v1_affinity.go +++ b/sdk/sdk-apiserver/model_v1_affinity.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_group.go b/sdk/sdk-apiserver/model_v1_api_group.go index c8db7bf..8a23874 100644 --- a/sdk/sdk-apiserver/model_v1_api_group.go +++ b/sdk/sdk-apiserver/model_v1_api_group.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_group_list.go b/sdk/sdk-apiserver/model_v1_api_group_list.go index 93b0dd5..9ec4b31 100644 --- a/sdk/sdk-apiserver/model_v1_api_group_list.go +++ b/sdk/sdk-apiserver/model_v1_api_group_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_resource.go b/sdk/sdk-apiserver/model_v1_api_resource.go index 57968aa..f40d227 100644 --- a/sdk/sdk-apiserver/model_v1_api_resource.go +++ b/sdk/sdk-apiserver/model_v1_api_resource.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_resource_list.go b/sdk/sdk-apiserver/model_v1_api_resource_list.go index df8d840..a417f8d 100644 --- a/sdk/sdk-apiserver/model_v1_api_resource_list.go +++ b/sdk/sdk-apiserver/model_v1_api_resource_list.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_condition.go b/sdk/sdk-apiserver/model_v1_condition.go index 754d9bc..b4c2384 100644 --- a/sdk/sdk-apiserver/model_v1_condition.go +++ b/sdk/sdk-apiserver/model_v1_condition.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_config_map_env_source.go b/sdk/sdk-apiserver/model_v1_config_map_env_source.go index 2a6ddb5..94cda7d 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_env_source.go +++ b/sdk/sdk-apiserver/model_v1_config_map_env_source.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_config_map_key_selector.go b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go index 946db92..955834a 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_key_selector.go +++ b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_config_map_volume_source.go b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go index b42c4e0..e7c701e 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_volume_source.go +++ b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_delete_options.go b/sdk/sdk-apiserver/model_v1_delete_options.go index 5732c77..361f24d 100644 --- a/sdk/sdk-apiserver/model_v1_delete_options.go +++ b/sdk/sdk-apiserver/model_v1_delete_options.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_env_from_source.go b/sdk/sdk-apiserver/model_v1_env_from_source.go index 2077a3f..2b2821e 100644 --- a/sdk/sdk-apiserver/model_v1_env_from_source.go +++ b/sdk/sdk-apiserver/model_v1_env_from_source.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_env_var.go b/sdk/sdk-apiserver/model_v1_env_var.go index 2e6470b..a70b462 100644 --- a/sdk/sdk-apiserver/model_v1_env_var.go +++ b/sdk/sdk-apiserver/model_v1_env_var.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_env_var_source.go b/sdk/sdk-apiserver/model_v1_env_var_source.go index cdd7a95..9d6ac72 100644 --- a/sdk/sdk-apiserver/model_v1_env_var_source.go +++ b/sdk/sdk-apiserver/model_v1_env_var_source.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_exec_action.go b/sdk/sdk-apiserver/model_v1_exec_action.go index cff276a..43c14f7 100644 --- a/sdk/sdk-apiserver/model_v1_exec_action.go +++ b/sdk/sdk-apiserver/model_v1_exec_action.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go index 8ef3f04..7aa4cd5 100644 --- a/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go +++ b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_grpc_action.go b/sdk/sdk-apiserver/model_v1_grpc_action.go index 6bc09cd..7fadb55 100644 --- a/sdk/sdk-apiserver/model_v1_grpc_action.go +++ b/sdk/sdk-apiserver/model_v1_grpc_action.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_http_get_action.go b/sdk/sdk-apiserver/model_v1_http_get_action.go index 8d35f3a..f24bb72 100644 --- a/sdk/sdk-apiserver/model_v1_http_get_action.go +++ b/sdk/sdk-apiserver/model_v1_http_get_action.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_http_header.go b/sdk/sdk-apiserver/model_v1_http_header.go index 2065039..d782fa4 100644 --- a/sdk/sdk-apiserver/model_v1_http_header.go +++ b/sdk/sdk-apiserver/model_v1_http_header.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_key_to_path.go b/sdk/sdk-apiserver/model_v1_key_to_path.go index c7bdc1b..172e5ec 100644 --- a/sdk/sdk-apiserver/model_v1_key_to_path.go +++ b/sdk/sdk-apiserver/model_v1_key_to_path.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_label_selector.go b/sdk/sdk-apiserver/model_v1_label_selector.go index 9ff7ddf..078bd9c 100644 --- a/sdk/sdk-apiserver/model_v1_label_selector.go +++ b/sdk/sdk-apiserver/model_v1_label_selector.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_label_selector_requirement.go b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go index def3338..21398b4 100644 --- a/sdk/sdk-apiserver/model_v1_label_selector_requirement.go +++ b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_list_meta.go b/sdk/sdk-apiserver/model_v1_list_meta.go index 048a3cc..10ecf20 100644 --- a/sdk/sdk-apiserver/model_v1_list_meta.go +++ b/sdk/sdk-apiserver/model_v1_list_meta.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_local_object_reference.go b/sdk/sdk-apiserver/model_v1_local_object_reference.go index d640717..c3492ed 100644 --- a/sdk/sdk-apiserver/model_v1_local_object_reference.go +++ b/sdk/sdk-apiserver/model_v1_local_object_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_managed_fields_entry.go b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go index f8c3279..4087e15 100644 --- a/sdk/sdk-apiserver/model_v1_managed_fields_entry.go +++ b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_affinity.go b/sdk/sdk-apiserver/model_v1_node_affinity.go index 6a4d498..1e3a0f1 100644 --- a/sdk/sdk-apiserver/model_v1_node_affinity.go +++ b/sdk/sdk-apiserver/model_v1_node_affinity.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_selector.go b/sdk/sdk-apiserver/model_v1_node_selector.go index 0d328fe..b7125ce 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector.go +++ b/sdk/sdk-apiserver/model_v1_node_selector.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_selector_requirement.go b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go index 66ab072..bb72695 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector_requirement.go +++ b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_selector_term.go b/sdk/sdk-apiserver/model_v1_node_selector_term.go index 5cc084e..274e4ea 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector_term.go +++ b/sdk/sdk-apiserver/model_v1_node_selector_term.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_object_field_selector.go b/sdk/sdk-apiserver/model_v1_object_field_selector.go index b1b6f34..6d588b1 100644 --- a/sdk/sdk-apiserver/model_v1_object_field_selector.go +++ b/sdk/sdk-apiserver/model_v1_object_field_selector.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_object_meta.go b/sdk/sdk-apiserver/model_v1_object_meta.go index ec7873b..7d1cf20 100644 --- a/sdk/sdk-apiserver/model_v1_object_meta.go +++ b/sdk/sdk-apiserver/model_v1_object_meta.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_owner_reference.go b/sdk/sdk-apiserver/model_v1_owner_reference.go index 2972031..bc219ae 100644 --- a/sdk/sdk-apiserver/model_v1_owner_reference.go +++ b/sdk/sdk-apiserver/model_v1_owner_reference.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity.go b/sdk/sdk-apiserver/model_v1_pod_affinity.go index fdd36a0..0043898 100644 --- a/sdk/sdk-apiserver/model_v1_pod_affinity.go +++ b/sdk/sdk-apiserver/model_v1_pod_affinity.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go index b3ac7a7..6ae37b3 100644 --- a/sdk/sdk-apiserver/model_v1_pod_affinity_term.go +++ b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go index 1f788cd..13f3f04 100644 --- a/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go +++ b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_preconditions.go b/sdk/sdk-apiserver/model_v1_preconditions.go index 0b890e3..8d76e83 100644 --- a/sdk/sdk-apiserver/model_v1_preconditions.go +++ b/sdk/sdk-apiserver/model_v1_preconditions.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go index 5f33725..0dcd9da 100644 --- a/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go +++ b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_probe.go b/sdk/sdk-apiserver/model_v1_probe.go index d9d2e4e..4d57547 100644 --- a/sdk/sdk-apiserver/model_v1_probe.go +++ b/sdk/sdk-apiserver/model_v1_probe.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_resource_field_selector.go b/sdk/sdk-apiserver/model_v1_resource_field_selector.go index 76c4195..667bae5 100644 --- a/sdk/sdk-apiserver/model_v1_resource_field_selector.go +++ b/sdk/sdk-apiserver/model_v1_resource_field_selector.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_resource_requirements.go b/sdk/sdk-apiserver/model_v1_resource_requirements.go index 48a8e1b..57cb725 100644 --- a/sdk/sdk-apiserver/model_v1_resource_requirements.go +++ b/sdk/sdk-apiserver/model_v1_resource_requirements.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_secret_env_source.go b/sdk/sdk-apiserver/model_v1_secret_env_source.go index cc633ac..d427c07 100644 --- a/sdk/sdk-apiserver/model_v1_secret_env_source.go +++ b/sdk/sdk-apiserver/model_v1_secret_env_source.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_secret_key_selector.go b/sdk/sdk-apiserver/model_v1_secret_key_selector.go index 02ca103..4f97c1b 100644 --- a/sdk/sdk-apiserver/model_v1_secret_key_selector.go +++ b/sdk/sdk-apiserver/model_v1_secret_key_selector.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_secret_volume_source.go b/sdk/sdk-apiserver/model_v1_secret_volume_source.go index e69c093..b345887 100644 --- a/sdk/sdk-apiserver/model_v1_secret_volume_source.go +++ b/sdk/sdk-apiserver/model_v1_secret_volume_source.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go index 8f0698b..061d214 100644 --- a/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go +++ b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_status.go b/sdk/sdk-apiserver/model_v1_status.go index 0b4e9bf..be4d234 100644 --- a/sdk/sdk-apiserver/model_v1_status.go +++ b/sdk/sdk-apiserver/model_v1_status.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_status_cause.go b/sdk/sdk-apiserver/model_v1_status_cause.go index e016cd2..455e130 100644 --- a/sdk/sdk-apiserver/model_v1_status_cause.go +++ b/sdk/sdk-apiserver/model_v1_status_cause.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_status_details.go b/sdk/sdk-apiserver/model_v1_status_details.go index 39f901b..16f9f5e 100644 --- a/sdk/sdk-apiserver/model_v1_status_details.go +++ b/sdk/sdk-apiserver/model_v1_status_details.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_tcp_socket_action.go b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go index 0bdf688..b5c3f18 100644 --- a/sdk/sdk-apiserver/model_v1_tcp_socket_action.go +++ b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_toleration.go b/sdk/sdk-apiserver/model_v1_toleration.go index a32e947..06e91a7 100644 --- a/sdk/sdk-apiserver/model_v1_toleration.go +++ b/sdk/sdk-apiserver/model_v1_toleration.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_volume_mount.go b/sdk/sdk-apiserver/model_v1_volume_mount.go index 1c535f4..c5626e7 100644 --- a/sdk/sdk-apiserver/model_v1_volume_mount.go +++ b/sdk/sdk-apiserver/model_v1_volume_mount.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_watch_event.go b/sdk/sdk-apiserver/model_v1_watch_event.go index 67602d9..fda7724 100644 --- a/sdk/sdk-apiserver/model_v1_watch_event.go +++ b/sdk/sdk-apiserver/model_v1_watch_event.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go index b56c6a8..320037c 100644 --- a/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go +++ b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/model_version_info.go b/sdk/sdk-apiserver/model_version_info.go index a093896..19eeea6 100644 --- a/sdk/sdk-apiserver/model_version_info.go +++ b/sdk/sdk-apiserver/model_version_info.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/response.go b/sdk/sdk-apiserver/response.go index 63f3348..d21d08c 100644 --- a/sdk/sdk-apiserver/response.go +++ b/sdk/sdk-apiserver/response.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api diff --git a/sdk/sdk-apiserver/utils.go b/sdk/sdk-apiserver/utils.go index 064352a..1800de9 100644 --- a/sdk/sdk-apiserver/utils.go +++ b/sdk/sdk-apiserver/utils.go @@ -1,6 +1,19 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at // -// Copyright © 2023-2024 StreamNative Inc. +// http://www.apache.org/licenses/LICENSE-2.0 // +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. /* Api From f3a583315cb97ed41de5f58d1e3729f9d4a54dff Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Fri, 9 May 2025 20:59:18 +0800 Subject: [PATCH 08/85] fix: features flag not cover all tools (#9) --- pkg/mcp/kafka_admin_connect_tools.go | 2 +- pkg/mcp/kafka_admin_sr_tools.go | 2 +- pkg/mcp/pulsar_admin_brokers_stats_tools.go | 2 +- pkg/mcp/pulsar_admin_brokers_tools.go | 2 +- pkg/mcp/pulsar_admin_cluster_tools.go | 2 +- pkg/mcp/pulsar_admin_functions_tools.go | 2 +- pkg/mcp/pulsar_admin_functions_worker_tools.go | 2 +- pkg/mcp/pulsar_admin_namespace_policy_tools.go | 2 +- pkg/mcp/pulsar_admin_namespace_tools.go | 2 +- .../pulsar_admin_nsisolationpolicy_tools.go | 2 +- pkg/mcp/pulsar_admin_packages_tools.go | 18 +++++++++--------- pkg/mcp/pulsar_admin_resourcequotas_tools.go | 2 +- pkg/mcp/pulsar_admin_schemas_tools.go | 2 +- pkg/mcp/pulsar_admin_sinks_tools.go | 2 +- pkg/mcp/pulsar_admin_sources_tools.go | 2 +- pkg/mcp/pulsar_admin_subscription_tools.go | 2 +- pkg/mcp/pulsar_admin_tenant_tools.go | 2 +- pkg/mcp/pulsar_admin_topic_policy_tools.go | 2 +- pkg/mcp/pulsar_admin_topic_tools.go | 2 +- 19 files changed, 27 insertions(+), 27 deletions(-) diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go index ff76dac..7b4c9cf 100644 --- a/pkg/mcp/kafka_admin_connect_tools.go +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -30,7 +30,7 @@ import ( ) func KafkaAdminAddKafkaConnectTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeatureKafkaAdminKafkaConnect)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + if !slices.Contains(features, string(FeatureKafkaAdminKafkaConnect)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) && !slices.Contains(features, string(FeatureKafkaAdmin)) { return } diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index 06eac90..cdec21a 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -31,7 +31,7 @@ import ( ) func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeatureKafkaAdminSchemaRegistry)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { + if !slices.Contains(features, string(FeatureKafkaAdminSchemaRegistry)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) && !slices.Contains(features, string(FeatureKafkaAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go index 8b692aa..6b04e51 100644 --- a/pkg/mcp/pulsar_admin_brokers_stats_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -31,7 +31,7 @@ import ( // PulsarAdminAddBrokerStatsTools adds broker-stats related tools to the MCP server func PulsarAdminAddBrokerStatsTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminBrokersStatus)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminBrokersStatus)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } // Unified broker stats tool diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go index bebeecc..f343f5d 100644 --- a/pkg/mcp/pulsar_admin_brokers_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -31,7 +31,7 @@ import ( // PulsarAdminAddBrokersTools adds broker-related tools to the MCP server func PulsarAdminAddBrokersTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminBrokers)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminBrokers)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } // Create a single unified broker tool to replace multiple individual tools diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index f670b05..07ac31e 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -32,7 +32,7 @@ import ( // PulsarAdminAddClusterTools adds cluster-related tools to the MCP server func PulsarAdminAddClusterTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminClusters)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminClusters)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } // Create a single unified cluster tool diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index fc97bdf..3af0a25 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -32,7 +32,7 @@ import ( // PulsarAdminAddFunctionsTools adds a unified function-related tool to the MCP server func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminFunctions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminFunctions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } // Create a single unified tool for all function operations diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go index 3ba319f..e5ed9db 100644 --- a/pkg/mcp/pulsar_admin_functions_worker_tools.go +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -31,7 +31,7 @@ import ( // PulsarAdminAddFunctionsWorkerTools adds functions worker-related tools to the MCP server func PulsarAdminAddFunctionsWorkerTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminFunctionsWorker)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminFunctionsWorker)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } // Create a single unified functions worker tool diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index 5b3beac..eb655e0 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -35,7 +35,7 @@ import ( // PulsarAdminAddNamespacePolicyTools adds namespace policy-related tools to the MCP server func PulsarAdminAddNamespacePolicyTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminNamespacePolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminNamespacePolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } namespaceGetPoliciesTool := mcp.NewTool("pulsar_admin_namespace_policy_get", diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index f4b6279..1539324 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -33,7 +33,7 @@ import ( // PulsarAdminAddNamespaceTools adds namespace-related tools to the MCP server func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminNamespaces)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminNamespaces)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index 9a1bdf6..122d387 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -33,7 +33,7 @@ import ( // PulsarAdminAddNsIsolationPolicyTools adds namespace isolation policy related tools to the MCP server func PulsarAdminAddNsIsolationPolicyTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminNsIsolationPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminNsIsolationPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index cacd7bd..31b043a 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -1,12 +1,12 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an @@ -32,7 +32,7 @@ import ( // PulsarAdminAddPackagesTools adds package-related tools to the MCP server func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminPackages)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminPackages)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go index e330f16..896cf2d 100644 --- a/pkg/mcp/pulsar_admin_resourcequotas_tools.go +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -33,7 +33,7 @@ import ( // PulsarAdminAddResourceQuotasTools adds resource quotas-related tools to the MCP server func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminResourceQuotas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminResourceQuotas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } // Add unified resource quotas management tool diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go index fca817e..e986e7c 100644 --- a/pkg/mcp/pulsar_admin_schemas_tools.go +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -35,7 +35,7 @@ import ( // PulsarAdminAddSchemasTools adds schema-related tools to the MCP server func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSchemas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminSchemas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index f2729b2..b6c138d 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -33,7 +33,7 @@ import ( // PulsarAdminAddSinksTools adds a unified sink-related tool to the MCP server func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSinks)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminSinks)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index 745e25c..157655e 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -32,7 +32,7 @@ import ( // PulsarAdminAddSourcesTools adds a unified source-related tool to the MCP server func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSources)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminSources)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go index dfcd5ed..698d6e1 100644 --- a/pkg/mcp/pulsar_admin_subscription_tools.go +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -33,7 +33,7 @@ import ( // PulsarAdminAddSubscriptionTools adds subscription-related tools to the MCP server func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSubscriptions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminSubscriptions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index de365da..302e48c 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -33,7 +33,7 @@ import ( // PulsarAdminAddTenantTools adds tenant-related tools to the MCP server func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminTenants)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminTenants)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index 1325793..a3dc8fb 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -32,7 +32,7 @@ import ( // PulsarAdminAddTopicPolicyTools adds topic policy-related tools to the MCP server func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminTopicPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminTopicPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index bf2258e..805972c 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -33,7 +33,7 @@ import ( // PulsarAdminAddTopicTools adds topic-related tools to the MCP server func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminTopics)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { + if !slices.Contains(features, string(FeaturePulsarAdminTopics)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { return } From 6ae3143f1ae32bb9424a642b4163208f552d542d Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Fri, 9 May 2025 20:59:31 +0800 Subject: [PATCH 09/85] support create serverless cluster (#7) --- go.mod | 9 +- go.sum | 24 +- pkg/cmd/mcp/stdio.go | 1 + pkg/mcp/context_tools.go | 10 +- pkg/mcp/prompts.go | 201 ++++++++++- pkg/mcp/streamnative_resources_log_tools.go | 6 +- pkg/mcp/streamnative_resources_tools.go | 361 ++++++++++++++++++++ 7 files changed, 580 insertions(+), 32 deletions(-) create mode 100644 pkg/mcp/streamnative_resources_tools.go diff --git a/go.mod b/go.mod index 9849693..e9b9c7b 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/99designs/keyring v1.2.2 github.com/apache/pulsar-client-go v0.13.1 github.com/dgrijalva/jwt-go v3.2.0+incompatible - github.com/mark3labs/mcp-go v0.25.0 + github.com/mark3labs/mcp-go v0.26.0 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 @@ -75,11 +75,10 @@ require ( github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect go.uber.org/atomic v1.11.0 // indirect - golang.org/x/crypto v0.36.0 // indirect + golang.org/x/crypto v0.32.0 // indirect golang.org/x/mod v0.20.0 // indirect - golang.org/x/net v0.38.0 // indirect - golang.org/x/sys v0.31.0 // indirect - golang.org/x/term v0.30.0 // indirect + golang.org/x/sys v0.29.0 // indirect + golang.org/x/term v0.28.0 // indirect google.golang.org/protobuf v1.35.1 // indirect ) diff --git a/go.sum b/go.sum index b578598..77d7cd0 100644 --- a/go.sum +++ b/go.sum @@ -129,8 +129,8 @@ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mark3labs/mcp-go v0.25.0 h1:UUpcMT3L5hIhuDy7aifj4Bphw4Pfx1Rf8mzMXDe8RQw= -github.com/mark3labs/mcp-go v0.25.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.26.0 h1:xz/Kv1cHLYovF8txv6btBM39/88q3YOjnxqhi51jB0w= +github.com/mark3labs/mcp-go v0.26.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= @@ -251,16 +251,16 @@ go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= -golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= +golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= +golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= -golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -272,16 +272,16 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= +golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= -golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= +golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= +golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= -golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index b412b2c..89c2dc8 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -144,6 +144,7 @@ func newStdioServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *ser mcp.RegisterPrompts(s) mcp.RegisterContextTools(s, configOpts.Features) mcp.StreamNativeAddLogTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.StreamNativeAddResourceTools(s, configOpts.ReadOnly, configOpts.Features) } case snConfig.ExternalKafka != nil: { diff --git a/pkg/mcp/context_tools.go b/pkg/mcp/context_tools.go index d772647..bf459fa 100644 --- a/pkg/mcp/context_tools.go +++ b/pkg/mcp/context_tools.go @@ -34,15 +34,15 @@ func RegisterContextTools(s *server.MCPServer, features []string) { return } // Add whoami tool - whoamiTool := mcp.NewTool("streamnative_cloud_context_whoami", + whoamiTool := mcp.NewTool("sncloud_context_whoami", mcp.WithDescription("Display the currently logged-in service account. "+ "Returns the name of the authenticated service account and the organization."), ) s.AddTool(whoamiTool, handleWhoami) // Add set-context tool - setContextTool := mcp.NewTool("streamnative_cloud_context_use_cluster", - mcp.WithDescription("Set the current context to a specific StreamNative Cloud cluster, once you set the context, you can use pulsar and kafka tools to interact with the cluster. If you encounter ContextNotSetErr, please use `streamnative_cloud_context_available_clusters` to list the available clusters and set the context to a specific cluster."), + setContextTool := mcp.NewTool("sncloud_context_use_cluster", + mcp.WithDescription("Set the current context to a specific StreamNative Cloud cluster, once you set the context, you can use pulsar and kafka tools to interact with the cluster. If you encounter ContextNotSetErr, please use `sncloud_context_available_clusters` to list the available clusters and set the context to a specific cluster."), mcp.WithString("instanceName", mcp.Required(), mcp.Description("The name of the pulsar instance to use"), ), @@ -53,8 +53,8 @@ func RegisterContextTools(s *server.MCPServer, features []string) { s.AddTool(setContextTool, handleSetContext) // Add available-contexts tool - availableContextsTool := mcp.NewTool("streamnative_cloud_available_contexts", - mcp.WithDescription("Display the available pulsar clusters for the current organization on StreamNative Cloud. You can use `streamnative_cloud_context_use_cluster` to change the context to a specific cluster. You will need to ask for the USER to confirm the target context cluster if there are multiple clusters."), + availableContextsTool := mcp.NewTool("sncloud_context_available_clusters", + mcp.WithDescription("Display the available pulsar clusters for the current organization on StreamNative Cloud. You can use `sncloud_context_use_cluster` to change the context to a specific cluster. You will need to ask for the USER to confirm the target context cluster if there are multiple clusters."), ) s.AddTool(availableContextsTool, handleAvailableContexts) } diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go index e7b4438..1a12faf 100644 --- a/pkg/mcp/prompts.go +++ b/pkg/mcp/prompts.go @@ -21,21 +21,63 @@ import ( "context" "encoding/json" "fmt" + "slices" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/streamnative-mcp-server/pkg/config" sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" + "k8s.io/utils/ptr" +) + +type ServerlessPoolMember struct { + Provider string + Namespace string + Pool string + Location string +} + +var ( + ServerlessPoolMemberList = []ServerlessPoolMember{ + { + Provider: "azure", + Namespace: "streamnative", + Pool: "shared-azure", + Location: "eastus", + }, + { + Provider: "aws", + Namespace: "streamnative", + Pool: "shared-aws", + Location: "us-east-2", + }, + // { + // Provider: "gcloud", + // Namespace: "streamnative", + // Pool: "shared-gcp", + // Location: "us-central1", + // }, + } + AvailableProviders = []string{"azure", "aws", "gcloud"} ) func RegisterPrompts(s *server.MCPServer) { - s.AddPrompt(mcp.NewPrompt("list-streamnative-cloud-pulsar-clusters", - mcp.WithPromptDescription("List all Pulsar clusters in the StreamNative Cloud"), + s.AddPrompt(mcp.NewPrompt("list-sncloud-clusters", + mcp.WithPromptDescription("List all clusters from the StreamNative Cloud"), ), handleListPulsarClusters) - s.AddPrompt(mcp.NewPrompt("read-streamnative-cloud-pulsar-cluster", - mcp.WithPromptDescription("Read a Pulsar cluster in the StreamNative Cloud"), - mcp.WithArgument("name", mcp.RequiredArgument(), mcp.ArgumentDescription("The name of the Pulsar cluster")), + s.AddPrompt(mcp.NewPrompt("read-sncloud-cluster", + mcp.WithPromptDescription("Read a cluster from the StreamNative Cloud"), + mcp.WithArgument("name", mcp.RequiredArgument(), mcp.ArgumentDescription("The name of the cluster")), ), handleReadPulsarCluster) + s.AddPrompt( + mcp.NewPrompt("build-sncloud-serverless-cluster", + mcp.WithPromptDescription("Build a Serverless cluster in the StreamNative Cloud"), + mcp.WithArgument("instance-name", mcp.RequiredArgument(), mcp.ArgumentDescription("The name of the Pulsar instance, cannot reuse the name of existing instance.")), + mcp.WithArgument("cluster-name", mcp.RequiredArgument(), mcp.ArgumentDescription("The name of the Pulsar cluster, cannot reuse the name of existing cluster.")), + mcp.WithArgument("provider", mcp.ArgumentDescription("The cloud provider, could be `aws`, `gcp`, `azure`. If the selected provider do not serve serverless cluster, the prompt will return an error. If not specified, the system will use a random provider depending on the availability.")), + ), + handleBuildServerlessPulsarCluster, + ) } func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { @@ -99,7 +141,7 @@ func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp } return &mcp.GetPromptResult{ - Description: fmt.Sprintf("Pulsar clusters from StreamNative Cloud organization %s, you can use `streamnative_cloud_context_use_cluster` tool to switch to selected cluster, and use pulsar and kafka tools to interact with the cluster.", options.Organization), + Description: fmt.Sprintf("Pulsar clusters from StreamNative Cloud organization %s, you can use `sncloud_context_use_cluster` tool to switch to selected cluster, and use pulsar and kafka tools to interact with the cluster.", options.Organization), Messages: messages, }, nil } @@ -156,7 +198,152 @@ func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) } return &mcp.GetPromptResult{ - Description: fmt.Sprintf("Detailed information of Pulsar cluster %s, you can use `streamnative_cloud_context_use_cluster` tool to switch to this cluster, and use pulsar and kafka tools to interact with the cluster.", name), + Description: fmt.Sprintf("Detailed information of Pulsar cluster %s, you can use `sncloud_context_use_cluster` tool to switch to this cluster, and use pulsar and kafka tools to interact with the cluster.", name), + Messages: messages, + }, nil +} + +func handleBuildServerlessPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { + options := getOptions(ctx) + apiClient, err := config.GetAPIClient() + if err != nil { + return nil, fmt.Errorf("failed to get API client: %v", err) + } + arguments := convertToMapInterface(request.Params.Arguments) + + instanceName, err := requiredParam[string](arguments, "instance-name") + if err != nil { + return nil, fmt.Errorf("failed to get instance name: %v", err) + } + + clusterName, err := requiredParam[string](arguments, "cluster-name") + if err != nil { + return nil, fmt.Errorf("failed to get cluster name: %v", err) + } + + provider, hasProvider := optionalParam[string](arguments, "provider") + if !hasProvider { + provider = "" + } + if provider != "" { + if !slices.Contains(AvailableProviders, provider) { + return nil, fmt.Errorf("invalid provider: %s, available providers: %v", provider, AvailableProviders) + } + } + + poolOptions, poolOptionsBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, options.Organization).Execute() + if err != nil { + return nil, fmt.Errorf("failed to list pool options: %v", err) + } + defer poolOptionsBody.Body.Close() + if poolOptions == nil { + return nil, fmt.Errorf("no pool options found") + } + + var poolRef *sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef + var selectedLocation *string + + for _, poolOpt := range poolOptions.Items { + if pr, ok := poolOpt.Spec.GetPoolRefOk(); ok { + for _, poolMember := range ServerlessPoolMemberList { + if provider != "" && poolOpt.Spec.CloudType != provider { + continue + } + if pr.Name == poolMember.Pool && pr.Namespace == poolMember.Namespace { + for _, location := range poolOpt.Spec.Locations { + if location.Location == poolMember.Location { + poolRef = pr + selectedLocation = &location.Location + break + } + } + } + } + } + } + + if poolRef == nil || selectedLocation == nil { + return nil, fmt.Errorf("no available pool") + } + + inst := sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance{} + clus := sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster{} + + inst.ApiVersion = ptr.To("cloud.streamnative.io/v1alpha1") + inst.Kind = ptr.To("PulsarInstance") + inst.Metadata = &sncloud.V1ObjectMeta{ + Name: &instanceName, + Namespace: &options.Organization, + Labels: &map[string]string{ + "managed-by": "streamnative-mcp", + }, + } + + inst.Spec = &sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec{ + AvailabilityMode: "zonal", + PoolRef: poolRef, + Type: ptr.To("serverless"), + } + + clus.ApiVersion = ptr.To("cloud.streamnative.io/v1alpha1") + clus.Kind = ptr.To("PulsarCluster") + clus.Metadata = &sncloud.V1ObjectMeta{ + Name: ptr.To(""), + Namespace: &options.Organization, + Labels: &map[string]string{ + "managed-by": "streamnative-mcp", + }, + } + + clus.Spec = &sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec{ + Broker: sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker{ + Replicas: 2, + Resources: &sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource{ + Cpu: "1000m", + Memory: "4294967296", + }, + }, + DisplayName: ptr.To(clusterName), + InstanceName: instanceName, + Location: *selectedLocation, + ReleaseChannel: ptr.To("rapid"), + } + + instJSON, err := json.Marshal(inst) + if err != nil { + return nil, fmt.Errorf("failed to marshal instance: %v", err) + } + clusJSON, err := json.Marshal(clus) + if err != nil { + return nil, fmt.Errorf("failed to marshal cluster: %v", err) + } + + messages := []mcp.PromptMessage{ + { + Content: mcp.TextContent{ + Type: "text", + Text: "The following is the Pulsar instance JSON definition and the Pulsar cluster JSON definition, you can use the `sncloud_resources_apply` tool to apply the resources to the StreamNative Cloud. Please directly use the JSON content and not modify the content. The PulsarCluster name is required to be empty. You will need to apply PulsarInstance first, then apply PulsarCluster.", + }, + Role: mcp.RoleUser, + }, + { + Content: mcp.TextContent{ + Type: "text", + Text: string(instJSON), + }, + Role: mcp.RoleUser, + }, + { + Content: mcp.TextContent{ + Type: "text", + Text: string(clusJSON), + }, + Role: mcp.RoleUser, + }, + } + + return &mcp.GetPromptResult{ + Description: fmt.Sprintf("Create a new Serverless Pulsar cluster %s's related resources that can be applied to the StreamNative Cloud.", clusterName), Messages: messages, }, nil } diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go index dc70311..3146681 100644 --- a/pkg/mcp/streamnative_resources_log_tools.go +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -42,9 +42,9 @@ func StreamNativeAddLogTools(s *server.MCPServer, _ bool, features []string) { return } - logTool := mcp.NewTool("streamnative_resources_log", + logTool := mcp.NewTool("sncloud_logs", mcp.WithDescription("Display the logs of resources in StreamNative Cloud, including pulsar functions, pulsar source connectors, pulsar sink connectors, and kafka connect connectors logs running along with PulsarInstance and PulsarCluster."+ - "This tool is used to help you debug the issues of resources in StreamNative Cloud. You can use `streamnative_cloud_context_use_cluster` to change the context to a specific cluster first, then use this tool to get the logs of resources in the cluster. This tool is suggested to be used with 'pulsar_admin_functions', 'pulsar_admin_sinks', 'pulsar_admin_sources', and 'kafka_admin_connect'"), + "This tool is used to help you debug the issues of resources in StreamNative Cloud. You can use `sncloud_context_use_cluster` to change the context to a specific cluster first, then use this tool to get the logs of resources in the cluster. This tool is suggested to be used with 'pulsar_admin_functions', 'pulsar_admin_sinks', 'pulsar_admin_sources', and 'kafka_admin_connect'"), mcp.WithString("component", mcp.Required(), mcp.Description("The component to get logs from, including "+strings.Join(FunctionConnectorList, ", ")), mcp.Enum(FunctionConnectorList...), @@ -115,7 +115,7 @@ func handleStreamNativeResourcesLog(ctx context.Context, request mcp.CallToolReq snConfig := getOptions(ctx) instance, cluster, organization := GetMcpContext() if instance == "" || cluster == "" || organization == "" { - return mcp.NewToolResultError("No context is set, please use `streamnative_cloud_context_use_cluster` to set the context first."), nil + return mcp.NewToolResultError("No context is set, please use `sncloud_context_use_cluster` to set the context first."), nil } // Extract required parameters with validation diff --git a/pkg/mcp/streamnative_resources_tools.go b/pkg/mcp/streamnative_resources_tools.go new file mode 100644 index 0000000..36ed6a3 --- /dev/null +++ b/pkg/mcp/streamnative_resources_tools.go @@ -0,0 +1,361 @@ +package mcp + +import ( + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "slices" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/config" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" +) + +// StreamNativeAddResourceTools adds StreamNative resources tools +func StreamNativeAddResourceTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeatureStreamNativeCloud)) && !slices.Contains(features, string(FeatureAll)) { + return + } + + if !readOnly { + // Add Apply tool + applyTool := mcp.NewTool("sncloud_resources_apply", + mcp.WithDescription("Apply StreamNative Cloud resources from JSON definitions. This tool allows you to apply (create or update) StreamNative Cloud resources such as PulsarInstances and PulsarClusters using JSON definitions. Please give feedback to USER if the resource is applied with error, and ask USER to check the resource definition."), + mcp.WithString("json_content", mcp.Required(), + mcp.Description("The JSON content to apply."), + ), + mcp.WithBoolean("dry_run", + mcp.Description("If true, only validate the resource without applying it to the server."), + mcp.DefaultBool(false), + ), + mcp.WithToolAnnotation(mcp.ToolAnnotation{ + Title: "Apply StreamNative Cloud Resources", + }), + ) + // Add delete tool + deleteTool := mcp.NewTool("sncloud_resources_delete", + mcp.WithDescription("Delete StreamNative Cloud resources. This tool allows you to delete StreamNative Cloud resources such as PulsarInstances and PulsarClusters."), + mcp.WithString("name", mcp.Required(), + mcp.Description("The name of the resource to delete."), + ), + mcp.WithString("type", mcp.Required(), + mcp.Description("The type of the resource to delete, it can be PulsarInstance or PulsarCluster."), + mcp.Enum("PulsarInstance", "PulsarCluster"), + ), + mcp.WithToolAnnotation(mcp.ToolAnnotation{ + Title: "Delete StreamNative Cloud Resources", + DestructiveHint: true, + }), + ) + s.AddTool(applyTool, handleStreamNativeResourcesApply) + s.AddTool(deleteTool, handleStreamNativeResourcesDelete) + } +} + +// Define simple resource structure for parsing YAML documents +type Resource struct { + APIVersion string `json:"apiVersion" yaml:"apiVersion"` + Kind string `json:"kind" yaml:"kind"` + Metadata Metadata `json:"metadata" yaml:"metadata"` + Spec map[string]interface{} `json:"spec" yaml:"spec"` +} + +type Metadata struct { + Name string `json:"name" yaml:"name"` + Namespace string `json:"namespace" yaml:"namespace"` + Labels map[string]string `json:"labels" yaml:"labels"` +} + +// handleStreamNativeResourcesApply handles the streaming_cloud_resources_apply tool +func handleStreamNativeResourcesApply(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get necessary parameters + snConfig := getOptions(ctx) + organization := snConfig.Organization + if organization == "" { + return mcp.NewToolResultError("No organization is set. Please set the organization using the appropriate context tool."), nil + } + + // Get YAML content + jsonContent, err := requiredParam[string](request.Params.Arguments, "json_content") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get json_content: %v", err)), nil + } + + // Get dry_run flag + dryRun, hasDryRun := optionalParam[bool](request.Params.Arguments, "dry_run") + if !hasDryRun { + dryRun = false + } + + // Get API client + apiClient, err := config.GetAPIClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get API client: %v", err)), nil + } + + jsonContent = strings.TrimSpace(jsonContent) + if jsonContent == "" { + return mcp.NewToolResultError("No valid resources found in the provided JSON."), nil + } + + // Parse YAML document + var resource Resource + err = json.Unmarshal([]byte(jsonContent), &resource) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse JSON document: %v", err)), nil + } + + // Check if resource is valid + if resource.APIVersion == "" || resource.Kind == "" { + return mcp.NewToolResultError("Invalid resource definition."), nil + } + + // Set namespace if not specified + if resource.Metadata.Namespace == "" { + resource.Metadata.Namespace = organization + } + + // Apply resource + result, err := applyResource(ctx, apiClient, resource, jsonContent, organization, dryRun) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to apply resource: %v", err)), nil + } + + return mcp.NewToolResultText(result), nil +} + +// applyResource applies the resource based on its type +func applyResource(ctx context.Context, apiClient *sncloud.APIClient, resource Resource, jsonContent string, organization string, dryRun bool) (string, error) { + apiVersion := resource.APIVersion + kind := resource.Kind + + // Call different APIs based on resource type + switch { + case apiVersion == "cloud.streamnative.io/v1alpha1" && kind == "PulsarInstance": + return applyPulsarInstance(ctx, apiClient, jsonContent, organization, dryRun) + case apiVersion == "cloud.streamnative.io/v1alpha1" && kind == "PulsarCluster": + return applyPulsarCluster(ctx, apiClient, jsonContent, organization, dryRun) + // Can add handling for more resource types + default: + return "", fmt.Errorf("unsupported resource type: %s/%s", apiVersion, kind) + } +} + +// applyPulsarInstance applies PulsarInstance resource +func applyPulsarInstance(ctx context.Context, apiClient *sncloud.APIClient, jsonContent string, organization string, dryRun bool) (string, error) { + var instance sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + if err := json.Unmarshal([]byte(jsonContent), &instance); err != nil { + return "", fmt.Errorf("failed to unmarshal JSON to PulsarInstance: %v", err) + } + + // Ensure namespace is set correctly + if instance.Metadata == nil { + instance.Metadata = &sncloud.V1ObjectMeta{} + } + if instance.Metadata.Namespace == nil || *instance.Metadata.Namespace == "" { + ns := organization + instance.Metadata.Namespace = &ns + } + + name := "" + if instance.Metadata.Name != nil { + name = *instance.Metadata.Name + } + + // Check if resource already exists + exists := false + var existingResourceVersion *string + + if name != "" { + // Try to get existing resource + existingInstance, bdy, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, organization).Execute() + defer bdy.Body.Close() + if err == nil { + exists = true + if existingInstance.Metadata != nil && existingInstance.Metadata.ResourceVersion != nil { + existingResourceVersion = existingInstance.Metadata.ResourceVersion + } + } + } + + var verb string + + // Convert dryRun bool to string parameter required by API + dryRunStr := "All" + + // Create or update based on whether resource exists + var bdy *http.Response + var err error + if exists { + verb = "updated" + // Make sure resourceVersion is set to support updates + if existingResourceVersion != nil { + if instance.Metadata.ResourceVersion == nil { + instance.Metadata.ResourceVersion = existingResourceVersion + } + } + + // Use Replace method to update resource + request := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance( + ctx, name, organization).Body(instance) + if dryRun { + request = request.DryRun(dryRunStr) + } + _, bdy, err = request.Execute() + defer bdy.Body.Close() + } else { + verb = "created" + // Create new resource + request := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance( + ctx, organization).Body(instance) + if dryRun { + request = request.DryRun(dryRunStr) + } + _, bdy, err = request.Execute() + defer bdy.Body.Close() + } + + if err != nil { + body, innerErr := io.ReadAll(bdy.Body) + if innerErr != nil { + return "", fmt.Errorf("failed to read body: %v", innerErr) + } + return "", fmt.Errorf("failed to %s PulsarInstance: %v (%s)", verb, err, string(body)) + } + + if dryRun { + return fmt.Sprintf("PulsarInstance %q would be %s (dry run)", name, verb), nil + } + return fmt.Sprintf("PulsarInstance %q %s", name, verb), nil +} + +// applyPulsarCluster applies PulsarCluster resource +func applyPulsarCluster(ctx context.Context, apiClient *sncloud.APIClient, jsonContent string, organization string, dryRun bool) (string, error) { + var cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + if err := json.Unmarshal([]byte(jsonContent), &cluster); err != nil { + return "", fmt.Errorf("failed to unmarshal JSON to PulsarCluster: %v", err) + } + + // Ensure namespace is set correctly + if cluster.Metadata == nil { + cluster.Metadata = &sncloud.V1ObjectMeta{} + } + if cluster.Metadata.Namespace == nil || *cluster.Metadata.Namespace == "" { + ns := organization + cluster.Metadata.Namespace = &ns + } + + name := "" + if cluster.Metadata.Name != nil { + name = *cluster.Metadata.Name + } + // Check if resource already exists + exists := false + var existingResourceVersion *string + + if name != "" { + // Try to get existing resource + existingCluster, bdy, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, organization).Execute() + defer bdy.Body.Close() + if err == nil { + exists = true + if existingCluster.Metadata != nil && existingCluster.Metadata.ResourceVersion != nil { + existingResourceVersion = existingCluster.Metadata.ResourceVersion + } + } + } + + var verb string + + // Convert dryRun bool to string parameter required by API + dryRunStr := "All" + + // Create or update based on whether resource exists + var bdy *http.Response + var err error + if exists { + verb = "updated" + // Make sure resourceVersion is set to support updates + if existingResourceVersion != nil { + if cluster.Metadata.ResourceVersion == nil { + cluster.Metadata.ResourceVersion = existingResourceVersion + } + } + + // Use Replace method to update resource + request := apiClient.CloudStreamnativeIoV1alpha1Api.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster( + ctx, name, organization).Body(cluster) + if dryRun { + request = request.DryRun(dryRunStr) + } + + _, bdy, err = request.Execute() + defer bdy.Body.Close() + } else { + verb = "created" + // Create new resource + request := apiClient.CloudStreamnativeIoV1alpha1Api.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster( + ctx, organization).Body(cluster) + if dryRun { + request = request.DryRun(dryRunStr) + } + _, bdy, err = request.Execute() + defer bdy.Body.Close() + } + + if err != nil { + body, innerErr := io.ReadAll(bdy.Body) + if innerErr != nil { + return "", fmt.Errorf("failed to read body: %v", innerErr) + } + return "", fmt.Errorf("failed to %s PulsarCluster: %v (%s)", verb, err, string(body)) + } + + if dryRun { + return fmt.Sprintf("PulsarCluster %q would be %s (dry run)", name, verb), nil + } + return fmt.Sprintf("PulsarCluster %q %s", name, verb), nil +} + +// handleStreamNativeResourcesDelete handles the streaming_cloud_resources_delete tool +func handleStreamNativeResourcesDelete(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + snConfig := getOptions(ctx) + organization := snConfig.Organization + + name, err := requiredParam[string](request.Params.Arguments, "name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + resourceType, err := requiredParam[string](request.Params.Arguments, "type") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get type: %v", err)), nil + } + + apiClient, err := config.GetAPIClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get API client: %v", err)), nil + } + + switch resourceType { + case "PulsarInstance": + //nolint:bodyclose + _, _, err = apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, organization).Execute() + case "PulsarCluster": + //nolint:bodyclose + _, _, err = apiClient.CloudStreamnativeIoV1alpha1Api.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, organization).Execute() + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource type: %s", resourceType)), nil + } + + // the delete operation will return a V1Status object, which is not handled by the SDK + if err != nil && !strings.Contains(err.Error(), "json: cannot unmarshal") { + return mcp.NewToolResultError(fmt.Sprintf("failed to delete resource: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Resource %q %s deleted", name, resourceType)), nil +} From b6bcc9572d44391aa634d88a618a754f2868212a Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 12 May 2025 20:20:07 +0800 Subject: [PATCH 10/85] Enhance StreamNative Cloud MCP Server Instructions (#15) fix https://github.com/streamnative/streamnative-mcp-server/issues/13 --- pkg/cmd/mcp/stdio.go | 2 +- pkg/mcp/instructions.go | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index 89c2dc8..f6bf665 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -138,7 +138,7 @@ func newStdioServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *ser "streamnative-mcp-server", "0.0.1", server.WithResourceCapabilities(true, true), - server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName)), + server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName, snConfig)), server.WithLogging()) mcp.RegisterPrompts(s) diff --git a/pkg/mcp/instructions.go b/pkg/mcp/instructions.go index b572d93..c6195d4 100644 --- a/pkg/mcp/instructions.go +++ b/pkg/mcp/instructions.go @@ -19,9 +19,22 @@ package mcp import ( "fmt" + + "github.com/streamnative/streamnative-mcp-server/pkg/config" ) -func GetStreamNativeCloudServerInstructions(userName string) string { +func GetStreamNativeCloudServerInstructions(userName string, snConfig *config.SnConfig) string { + contextInformation := "" + if snConfig.Context.PulsarCluster != "" && snConfig.Context.PulsarInstance != "" { + contextInformation = fmt.Sprintf(` + You are currently logged in to StreamNative Cloud with the following context: + - Pulsar Cluster: %s + - Pulsar Instance: %s + `, snConfig.Context.PulsarCluster, snConfig.Context.PulsarInstance) + } else { + contextInformation = `No context is set, use 'sncloud_context_available_clusters' to list the available clusters and 'sncloud_context_use_cluster' to set the context to a specific cluster. + ` + } return fmt.Sprintf(`StreamNative Cloud MCP Server provides resources and tools for AI agents to interact with StreamNative Cloud resources and services. ### StreamNative Cloud API Server Resources @@ -55,13 +68,14 @@ func GetStreamNativeCloudServerInstructions(userName string) string { 7. **Data Streaming Engine** - **Concept**: The Data Streaming Engine is the core technology that runs StreamNative Cloud clusters. There are two options: Classic Engine and Ursa Engine. - **Classic Engine**: The default engine, based on ZooKeeper and BookKeeper, offering low-latency storage suitable for latency-sensitive workloads. It supports Pulsar, Kafka, and MQTT protocols. For Classic Engine, Pulsar protocol will be the default protocol. - - **Ursa Engine**: A next-generation engine based on Oxia and object storage (like S3), providing cost-optimized storage for latency-relaxed scenarios. It currently focuses on Kafka protocol support. For Ursa Engine, you can only uses 'kafka-client-*' or 'kafka-admin-*' tools, do not use 'pulsar-client-*' or 'pulsar-admin-*' tools. + - **Ursa Engine**: A next-generation engine based on Oxia and object storage (like S3), providing cost-optimized storage for latency-relaxed scenarios. It currently focuses on Kafka protocol support. For Ursa Engine, you can only uses 'kafka-client-*' or 'kafka-admin-*' tools, do not use 'pulsar-client-*' or 'pulsar-admin-*' tools on Ursa Engine clusters. - **Relationship**: The Data Streaming Engine is associated with an instance, determining how clusters within that instance operate and what features they support. ### Protocol-Specific Tools - When working with **Pulsar protocol resources**, you should only use 'pulsar-admin-*' or 'pulsar-client-*' tools. Do not use 'kafka-client-*' or 'kafka-admin-*' tools for Pulsar protocol operations. - When working with **Kafka protocol resources**, you should only use 'kafka-client-*' or 'kafka-admin-*' tools. Do not use 'pulsar-admin-*' or 'pulsar-client-*' tools for Kafka protocol operations. - Using the appropriate protocol-specific tools ensures correct functionality and prevents errors when interacting with different protocol resources. + - Avoid mixing different protocol tools: When working with a specific protocol (Pulsar or Kafka), consistently use only the tools designated for that protocol throughout your entire workflow. Mixing different protocol tools in the same operation sequence may lead to inconsistent behavior, data format incompatibilities, or authentication issues. Always maintain protocol consistency for reliable and predictable results. ### Hierarchical Relationship Summary of Resources - **Organization** is the top level, containing all other resources. @@ -71,7 +85,7 @@ func GetStreamNativeCloudServerInstructions(userName string) string { - **Secrets** belong to an organization and can be shared across instances for securely storing sensitive data. - **Data Streaming Engine** is associated with an instance, defining the technical architecture and feature support for clusters. - Logged in as %s.`, userName) + Logged in as %s. %s`, userName, contextInformation) } func GetExternalKafkaServerInstructions(bootstrapServers string) string { From 7860715c4edf3b187d88203105675d60825a9b78 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 12 May 2025 20:21:07 +0800 Subject: [PATCH 11/85] fix kafka consumer not commit correct offsets (#14) fix https://github.com/streamnative/streamnative-mcp-server/issues/11 support schema registry integration for kafka consume and kafka produce --- go.mod | 11 +- go.sum | 28 ++-- go.work.sum | 13 +- pkg/mcp/kafka_admin_groups_tools.go | 14 +- pkg/mcp/kafka_client_consume_tools.go | 83 +++++++++- pkg/mcp/kafka_client_produce_tools.go | 211 +++++++++----------------- 6 files changed, 182 insertions(+), 178 deletions(-) diff --git a/go.mod b/go.mod index e9b9c7b..ec12368 100644 --- a/go.mod +++ b/go.mod @@ -6,6 +6,7 @@ require ( github.com/99designs/keyring v1.2.2 github.com/apache/pulsar-client-go v0.13.1 github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/hamba/avro/v2 v2.28.0 github.com/mark3labs/mcp-go v0.26.0 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/errors v0.9.1 @@ -43,7 +44,6 @@ require ( github.com/golang/protobuf v1.5.4 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect - github.com/hamba/avro/v2 v2.26.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect @@ -75,10 +75,11 @@ require ( github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect go.uber.org/atomic v1.11.0 // indirect - golang.org/x/crypto v0.32.0 // indirect - golang.org/x/mod v0.20.0 // indirect - golang.org/x/sys v0.29.0 // indirect - golang.org/x/term v0.28.0 // indirect + golang.org/x/crypto v0.36.0 // indirect + golang.org/x/mod v0.23.0 // indirect + golang.org/x/net v0.38.0 // indirect + golang.org/x/sys v0.31.0 // indirect + golang.org/x/term v0.30.0 // indirect google.golang.org/protobuf v1.35.1 // indirect ) diff --git a/go.sum b/go.sum index 77d7cd0..0f4bfb7 100644 --- a/go.sum +++ b/go.sum @@ -98,8 +98,8 @@ github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/hamba/avro/v2 v2.26.0 h1:IaT5l6W3zh7K67sMrT2+RreJyDTllBGVJm4+Hedk9qE= -github.com/hamba/avro/v2 v2.26.0/go.mod h1:I8glyswHnpED3Nlx2ZdUe+4LJnCOOyiCzLMno9i/Uu0= +github.com/hamba/avro/v2 v2.28.0 h1:E8J5D27biyAulWKNiEBhV85QPc9xRMCUCGJewS0KYCE= +github.com/hamba/avro/v2 v2.28.0/go.mod h1:9TVrlt1cG1kkTUtm9u2eO5Qb7rZXlYzoKqPt8TSH+TA= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -251,16 +251,16 @@ go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= -golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= -golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0= -golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= +golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= +golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM= +golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= -golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= +golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -272,16 +272,16 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= -golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= +golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= -golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= +golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= +golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= +golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= +golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/go.work.sum b/go.work.sum index 8bed584..3317a42 100644 --- a/go.work.sum +++ b/go.work.sum @@ -136,25 +136,18 @@ go.opentelemetry.io/otel/sdk v1.27.0 h1:mlk+/Y1gLPLn84U4tI8d3GNJmGT/eXe3ZuOXN9kT go.opentelemetry.io/otel/sdk v1.27.0/go.mod h1:Ha9vbLwJE6W86YstIywK2xFfPjbWlCuwPtMkKdz/Y4A= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= -golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= -golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y= golang.org/x/image v0.0.0-20190802002840-cff245a6509b h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4= golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs= golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= -golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= +golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/cr4/aHLv9xU8Kkadrw= -golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= -golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= -golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -163,6 +156,8 @@ golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d h1:W07d4xkoAUSNOkOzdzXCdFGxT7o2rW4q8M34tB2i//k= golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= +golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY= +golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= google.golang.org/api v0.30.0 h1:yfrXXP61wVuLb0vBcG6qaOoIoqYEzOQS8jum51jkv2w= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index 31f3bd6..b4ab028 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -109,7 +109,7 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str mcp.Description("The name of the Kafka topic to operate on. "+ "Required for the 'delete' operation. "+ "Must be an existing topic name in the Kafka cluster.")), - mcp.WithString("partition", + mcp.WithNumber("partition", mcp.Description("The partition number to set offset for. "+ "Required for the 'set-offset' operation. "+ "Must be a valid partition number for the specified topic.")), @@ -191,7 +191,17 @@ func handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request m return mcp.NewToolResultError(fmt.Sprintf("Failed to describe group: %v", err)), nil } - jsonBytes, err := json.Marshal(response) + lags, err := admin.Lag(ctx, groupName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get lag: %v", err)), nil + } + + result := map[string]interface{}{ + "group": response, + "lag": lags, + } + + jsonBytes, err := json.Marshal(result) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil } diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go index 35bcb88..10f907c 100644 --- a/pkg/mcp/kafka_client_consume_tools.go +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -24,11 +24,13 @@ import ( "slices" "time" + "github.com/hamba/avro/v2" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/sirupsen/logrus" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kgo" + "github.com/twmb/franz-go/pkg/sr" ) var logger *logrus.Logger @@ -52,7 +54,7 @@ func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logru "1. Basic consumption - Get 10 earliest messages from a topic:\n" + " topic: \"my-topic\"\n" + " max-messages: 10\n\n" + - "2. Consume from beginning - Get messages from the start of a topic:\n" + + "2. Consumer group - Join an existing consumer group and resume from committed offset:\n" + " topic: \"my-topic\"\n" + " offset: \"atstart\"\n" + " max-messages: 20\n\n" + @@ -132,6 +134,14 @@ func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp. timeoutSec = 10 // Default to 10 seconds } + group, hasGroup := optionalParam[string](request.Params.Arguments, "group") + if !hasGroup { + group = "" + } + if group != "" { + opts = append(opts, kgo.ConsumerGroup(group)) + } + offsetStr, hasOffset := optionalParam[string](request.Params.Arguments, "offset") if !hasOffset { offsetStr = "atstart" // Default to starting at the beginning @@ -148,10 +158,8 @@ func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp. default: offset = kgo.NewOffset().AtStart() } - opts = append(opts, kgo.ConsumeResetOffset(offset)) - - logger.Infof("Consuming from topic: %s, offset: %s, max-messages: %d, timeout: %d", topicName, offsetStr, int(maxMessages), int(timeoutSec)) + logger.Infof("Consuming from topic: %s, group: %s, max-messages: %d, timeout: %d", topicName, group, int(maxMessages), int(timeoutSec)) // Create Kafka client using the new Kafka package kafkaClient, err := kafka.GetKafkaClient(opts...) @@ -160,6 +168,13 @@ func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp. } defer kafkaClient.Close() + srClient, err := kafka.GetKafkaSchemaRegistryClient() + schemaReady := false + var serde sr.Serde + if err == nil && srClient != nil { + schemaReady = true + } + // Set timeout timeoutCtx, cancel := context.WithTimeout(ctx, time.Duration(timeoutSec)*time.Second) defer cancel() @@ -168,10 +183,44 @@ func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp. return mcp.NewToolResultError(fmt.Sprintf("Failed to ping Kafka cluster: %v", err)), nil } - topics := kafkaClient.OptValue("ConsumeTopics") - logger.Infof("Consuming from topics: %v\n", topics) + if schemaReady { + subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil + } + logger.Infof("Schema ID: %d", subjSchema.ID) + switch subjSchema.Type { + case sr.TypeAvro: + avroSchema, err := avro.Parse(subjSchema.Schema.Schema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse avro schema: %v", err)), nil + } + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(func(v any) ([]byte, error) { + return avro.Marshal(avroSchema, v) + }), + sr.DecodeFn(func(data []byte, v any) error { + return avro.Unmarshal(avroSchema, data, v) + }), + ) + case sr.TypeJSON: + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(json.Marshal), + sr.DecodeFn(json.Unmarshal), + ) + case sr.TypeProtobuf: + default: + // TODO: support other schema types + logger.Infof("Unsupported schema type: %s", subjSchema.Type) + schemaReady = false + } + } - results := make([]*kgo.Record, 0) + results := make([]any, 0) consumerLoop: for { fetches := kafkaClient.PollRecords(timeoutCtx, int(maxMessages)) @@ -186,13 +235,31 @@ consumerLoop: for !iter.Done() { record := iter.Next() - results = append(results, record) + if schemaReady { + var value map[string]any + err := serde.Decode(record.Value, &value) + if err != nil { + logger.Infof("Failed to decode value: %v", err) + results = append(results, record.Value) + } else { + results = append(results, value) + } + } else { + results = append(results, record.Value) + } if len(results) >= int(maxMessages) { break consumerLoop } } } + err = kafkaClient.CommitUncommittedOffsets(timeoutCtx) + if err != nil { + if err != context.Canceled { + logger.Infof("Failed to commit offsets: %v", err) + } + } + jsonResults, err := json.Marshal(results) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal results: %v", err)), nil diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index b133ee2..abe2a34 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -21,14 +21,15 @@ import ( "context" "encoding/json" "fmt" - "os" "slices" "time" + "github.com/hamba/avro/v2" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kgo" + "github.com/twmb/franz-go/pkg/sr" ) // KafkaClientAddProduceTools adds Kafka client produce tools to the MCP server @@ -81,39 +82,23 @@ func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []s mcp.WithString("key", mcp.Description("The key for the message. "+ "Optional. Keys are used for partition assignment and maintaining order for related messages. "+ - "Messages with the same key will be sent to the same partition. "+ - "If not provided, the message will be assigned to a random partition."), + "Messages with the same key will be sent to the same partition."), ), mcp.WithString("value", + mcp.Required(), mcp.Description("The value/content of the message to send. "+ - "Required if 'messages' is not provided. This is the actual payload that will be delivered to consumers."), - ), - mcp.WithNumber("partition", - mcp.Description("The specific partition number to produce to. "+ - "Optional. Partitions are zero-indexed (0, 1, 2, etc). "+ - "If specified, the message will be sent to this partition regardless of the key. "+ - "If not specified, the partition will be determined by the key hash or randomly assigned."), + "This is the actual payload that will be delivered to consumers. It can be a JSON string, and the system will automatically serialize it to the appropriate format based on the schema registry if it is available."), ), mcp.WithArray("headers", - mcp.Description("Message headers in the format of [{\"key\": \"header-key\", \"value\": \"header-value\"}]. "+ + mcp.Description("Message headers in the format of [{\"key\": \"value\"}]. "+ "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ - "They are passed along with the message to consumers but are not used for routing."), - ), - mcp.WithArray("messages", - mcp.Description("Batch of messages to send in the format of [{\"key\": \"key1\", \"value\": \"value1\", \"headers\": [...], \"partition\": 0}, ...]. "+ - "Optional. Allows sending multiple messages with different keys, values, headers, and partitions in a single request. "+ - "If provided, the individual key/value/headers/partition parameters are ignored."), + "They are passed along with the message to consumers."), ), mcp.WithBoolean("sync", mcp.Description("Whether to wait for server acknowledgment before returning. "+ "Optional. Default is true. When true, ensures the message was successfully written "+ "to the topic before the tool returns a success response."), ), - mcp.WithString("file", - mcp.Description("Path to a file containing the message value. "+ - "Optional. If provided, the file content will be used as the message value instead of the 'value' parameter. "+ - "Useful for sending larger messages or binary data."), - ), ) s.AddTool(produceTool, handleKafkaProduce) } @@ -126,33 +111,15 @@ func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp. return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - // Process batch messages first if provided - messages, hasMessages := optionalParam[[]interface{}](request.Params.Arguments, "messages") - if hasMessages && len(messages) > 0 { - return handleBatchMessages(ctx, topicName, messages) - } - // Handle single message case // Get value from parameter or file - value, hasValue := optionalParam[string](request.Params.Arguments, "value") - filePath, hasFile := optionalParam[string](request.Params.Arguments, "file") - - if !hasValue && !hasFile { - return mcp.NewToolResultError("Either 'value' or 'file' parameter is required when not using 'messages'"), nil - } - - // If file is provided, read its content - if hasFile { - fileContent, err := os.ReadFile(filePath) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to read file: %v", err)), nil - } - value = string(fileContent) + value, err := requiredParam[string](request.Params.Arguments, "value") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get value: %v", err)), nil } // Get optional parameters key, hasKey := optionalParam[string](request.Params.Arguments, "key") - partition, hasPartition := optionalParam[float64](request.Params.Arguments, "partition") headers, hasHeaders := optionalParam[[]interface{}](request.Params.Arguments, "headers") sync := true if syncVal, hasSync := optionalParam[bool](request.Params.Arguments, "sync"); hasSync { @@ -166,6 +133,53 @@ func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp. } defer kafkaClient.Close() + srClient, err := kafka.GetKafkaSchemaRegistryClient() + schemaReady := false + var serde sr.Serde + if err == nil && srClient != nil { + schemaReady = true + } + + if schemaReady { + // Set timeout + timeoutCtx, cancel := context.WithTimeout(ctx, 10*time.Second) + defer cancel() + subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil + } + logger.Infof("Schema ID: %d", subjSchema.ID) + switch subjSchema.Type { + case sr.TypeAvro: + avroSchema, err := avro.Parse(subjSchema.Schema.Schema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse avro schema: %v", err)), nil + } + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(func(v any) ([]byte, error) { + return avro.Marshal(avroSchema, v) + }), + sr.DecodeFn(func(data []byte, v any) error { + return avro.Unmarshal(avroSchema, data, v) + }), + ) + case sr.TypeJSON: + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(json.Marshal), + sr.DecodeFn(json.Unmarshal), + ) + case sr.TypeProtobuf: + default: + // TODO: support other schema types + logger.Infof("Unsupported schema type: %s", subjSchema.Type) + schemaReady = false + } + } + // Prepare record record := &kgo.Record{ Topic: topicName, @@ -177,110 +191,30 @@ func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp. record.Key = []byte(key) } - // Set partition if provided - if hasPartition { - record.Partition = int32(partition) - } - // Add headers if provided if hasHeaders { record.Headers = parseHeaders(headers) } - // Produce the message - result, err := produceRecord(ctx, kafkaClient, record, sync) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to produce message: %v", err)), nil - } - - return result, nil -} - -// handleBatchMessages processes multiple messages from the messages array -func handleBatchMessages(ctx context.Context, topicName string, messages []interface{}) (*mcp.CallToolResult, error) { - // Create Kafka client - kafkaClient, err := kafka.GetKafkaClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka client: %v", err)), nil - } - defer kafkaClient.Close() - - // Process each message - var records []*kgo.Record - for i, msg := range messages { - msgMap, ok := msg.(map[string]interface{}) - if !ok { - return mcp.NewToolResultError(fmt.Sprintf("Invalid message format at index %d", i)), nil - } - - // Value is required - valueInterface, exists := msgMap["value"] - if !exists { - return mcp.NewToolResultError(fmt.Sprintf("Message at index %d is missing required 'value' field", i)), nil - } - value, ok := valueInterface.(string) - if !ok { - return mcp.NewToolResultError(fmt.Sprintf("Value at index %d must be a string", i)), nil - } - - // Create record - record := &kgo.Record{ - Topic: topicName, - Value: []byte(value), - } - - // Add key if provided - if keyInterface, exists := msgMap["key"]; exists { - if key, ok := keyInterface.(string); ok { - record.Key = []byte(key) - } - } - - // Set partition if provided - if partitionInterface, exists := msgMap["partition"]; exists { - if partition, ok := partitionInterface.(float64); ok { - record.Partition = int32(partition) - } - } - - // Add headers if provided - if headersInterface, exists := msgMap["headers"]; exists { - if headers, ok := headersInterface.([]interface{}); ok { - record.Headers = parseHeaders(headers) + if schemaReady { + var structValue map[string]any + if err := json.Unmarshal([]byte(value), &structValue); err == nil { + record.Value, err = serde.Encode(structValue) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to encode value: %v", err)), nil } + } else { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unmarshal value: %v", err)), nil } - - records = append(records, record) - } - - // No valid records to produce - if len(records) == 0 { - return mcp.NewToolResultError("No valid messages to produce"), nil } - // Produce all records - results := kafkaClient.ProduceSync(ctx, records...) - // Check for errors in produce results - for _, result := range results { - if result.Err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to produce messages: %v", result.Err)), nil - } - } - - // Create result - result := map[string]interface{}{ - "status": "success", - "topic": topicName, - "message_count": len(records), - "timestamp": time.Now().Format(time.RFC3339), - } - - jsonBytes, err := json.Marshal(result) + // Produce the message + result, err := produceRecord(ctx, kafkaClient, record, sync) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create result: %v", err)), nil + return mcp.NewToolResultError(fmt.Sprintf("Failed to produce message: %v", err)), nil } - return mcp.NewToolResultText(string(jsonBytes)), nil + return result, nil } // parseHeaders converts the headers array to kgo.RecordHeader format @@ -293,13 +227,10 @@ func parseHeaders(headers []interface{}) []kgo.RecordHeader { continue } - key, hasKey := headerMap["key"].(string) - value, hasValue := headerMap["value"].(string) - - if hasKey && hasValue { + for key, value := range headerMap { recordHeaders = append(recordHeaders, kgo.RecordHeader{ Key: key, - Value: []byte(value), + Value: []byte(value.(string)), }) } } From e235881f38db7399e97eb0832923ef5be537c282 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 12 May 2025 20:21:13 +0800 Subject: [PATCH 12/85] Enhance Pulsar admin functions and connectors tools with package URL support (#16) - Updated function descriptions to mark triggerValue as required for 'trigger' operations. - Introduced IsPackageURLSupported function to validate package URLs for functions, sinks, and sources. - Refactored function creation and update logic to handle package URLs appropriately in Pulsar admin tools. --- pkg/mcp/pulsar_admin_functions_tools.go | 27 ++++++++++++++++++------- pkg/mcp/pulsar_admin_packages_tools.go | 21 +++++++++++++++++++ pkg/mcp/pulsar_admin_sinks_tools.go | 4 ++-- pkg/mcp/pulsar_admin_sources_tools.go | 4 ++-- pkg/mcp/utils.go | 12 ----------- 5 files changed, 45 insertions(+), 23 deletions(-) diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index 3af0a25..45f6bbd 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -142,7 +142,7 @@ func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features [ "Used when triggering a function that consumes from multiple topics. "+ "If not provided, the first input topic will be used.")), mcp.WithString("triggerValue", - mcp.Description("The value with which to trigger the function. Optional for 'trigger' operation. "+ + mcp.Description("The value with which to trigger the function. Required for 'trigger' operation. "+ "This value will be passed to the function as if it were a message from the input topic. "+ "String values are sent as is; for typed values, ensure proper formatting based on function expectations. "+ "The function processes this value just like a normal message.")), @@ -411,11 +411,19 @@ func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, nam functionConfig.UserConfig = userConfigMap } - // Create function - err = client.Functions().CreateFunc(functionConfig, fileName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", - name, tenant, namespace, err)), nil + if IsPackageURLSupported(fileName) { + err = client.Functions().CreateFuncWithURL(functionConfig, fileName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", + name, tenant, namespace, err)), nil + } + } else { + // Create function + err = client.Functions().CreateFunc(functionConfig, fileName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", + name, tenant, namespace, err)), nil + } } return mcp.NewToolResultText(fmt.Sprintf("Created function '%s' successfully in tenant '%s' namespace '%s'. The function will start processing messages from input topics.", @@ -488,7 +496,12 @@ func handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, nam } // Update function - err := client.Functions().UpdateFunction(functionConfig, fileName, updateOptions) + var err error + if IsPackageURLSupported(fileName) { + err = client.Functions().UpdateFunctionWithURL(functionConfig, fileName, updateOptions) + } else { + err = client.Functions().UpdateFunction(functionConfig, fileName, updateOptions) + } if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to update function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and all parameters are valid.", name, tenant, namespace, err)), nil diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index 31b043a..7c33f54 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -30,6 +30,27 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) +const ( + HTTP = "http" + FILE = "file" + BUILTIN = "builtin" + + FUNCTION = "function" + SINK = "sink" + SOURCE = "source" + + PublicTenant = "public" + DefaultNamespace = "default" +) + +func IsPackageURLSupported(functionPkgURL string) bool { + return functionPkgURL != "" && (strings.HasPrefix(functionPkgURL, HTTP) || + strings.HasPrefix(functionPkgURL, FILE) || + strings.HasPrefix(functionPkgURL, FUNCTION) || + strings.HasPrefix(functionPkgURL, SINK) || + strings.HasPrefix(functionPkgURL, SOURCE)) +} + // PulsarAdminAddPackagesTools adds package-related tools to the MCP server func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features []string) { if !slices.Contains(features, string(FeaturePulsarAdminPackages)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index b6c138d..83d6a61 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -350,7 +350,7 @@ func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[st } // Create the sink - if sinkData.Archive != "" && isPackageURLSupported(sinkData.Archive) { + if sinkData.Archive != "" && IsPackageURLSupported(sinkData.Archive) { err = admin.Sinks().CreateSinkWithURL(sinkData.SinkConf, sinkData.Archive) } else { err = admin.Sinks().CreateSink(sinkData.SinkConf, sinkData.Archive) @@ -453,7 +453,7 @@ func handleSinkUpdate(_ context.Context, admin cmdutils.Client, arguments map[st } // Update the sink - if sinkData.Archive != "" && isPackageURLSupported(sinkData.Archive) { + if sinkData.Archive != "" && IsPackageURLSupported(sinkData.Archive) { err = admin.Sinks().UpdateSinkWithURL(sinkData.SinkConf, sinkData.Archive, updateOptions) } else { err = admin.Sinks().UpdateSink(sinkData.SinkConf, sinkData.Archive, updateOptions) diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index 157655e..98cac07 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -367,7 +367,7 @@ func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[ } // Create the source - if sourceData.Archive != "" && isPackageURLSupported(sourceData.Archive) { + if sourceData.Archive != "" && IsPackageURLSupported(sourceData.Archive) { err = admin.Sources().CreateSourceWithURL(sourceData.SourceConf, sourceData.Archive) } else { err = admin.Sources().CreateSource(sourceData.SourceConf, sourceData.Archive) @@ -480,7 +480,7 @@ func handleSourceUpdate(_ context.Context, admin cmdutils.Client, arguments map[ } // Update the source - if sourceData.Archive != "" && isPackageURLSupported(sourceData.Archive) { + if sourceData.Archive != "" && IsPackageURLSupported(sourceData.Archive) { err = admin.Sources().UpdateSourceWithURL(sourceData.SourceConf, sourceData.Archive, updateOptions) } else { err = admin.Sources().UpdateSource(sourceData.SourceConf, sourceData.Archive, updateOptions) diff --git a/pkg/mcp/utils.go b/pkg/mcp/utils.go index a6799a0..fef2ca3 100644 --- a/pkg/mcp/utils.go +++ b/pkg/mcp/utils.go @@ -246,18 +246,6 @@ func isTokenAboutToExpire(cachedGrant *auth.AuthorizationGrant, window time.Dura return timeUntilExpiry <= window, nil } -// isPackageURLSupported checks if the provided URL protocol is supported for package download -func isPackageURLSupported(packageURL string) bool { - // Check if the URL has a supported protocol: http, https, file - supportedProtocols := []string{"http://", "https://", "file://"} - for _, protocol := range supportedProtocols { - if strings.HasPrefix(packageURL, protocol) { - return true - } - } - return false -} - // parseMessageConfigs parses a list of key=value strings into a map func parseMessageConfigs(configs []string) (map[string]*string, error) { result := make(map[string]*string) From 4b86c517c3134fd6e0c482c48c25875fbdd739b8 Mon Sep 17 00:00:00 2001 From: Neng Lu Date: Mon, 12 May 2025 16:48:57 -0700 Subject: [PATCH 13/85] update README (#21) Update the README for easier rampup --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 313648a..797cc0f 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ If you want to access to your StreamNative Cloud, you will need to have followin ```bash # Start MCP server with StreamNative Cloud authentication -snmcp stdio --organization my-org --key-file /path/to/key-file.json +bin/snmcp stdio --organization my-org --key-file /path/to/key-file.json # Start MCP server with external Kafka bin/snmcp stdio --use-external-kafka --kafka-bootstrap-servers localhost:9092 --kafka-auth-type SASL_SSL --kafka-auth-mechanism PLAIN --kafka-auth-user user --kafka-auth-pass pass --kafka-use-tls --kafka-schema-registry-url https://sr.local --kafka-schema-registry-auth-user user --kafka-schema-registry-auth-pass pass @@ -165,7 +165,7 @@ To enable only specific feature sets: ```bash # Enable only Pulsar client features -snmcp stdio --organization my-org --key-file /path/to/key-file.json --features pulsar-client +bin/snmcp stdio --organization my-org --key-file /path/to/key-file.json --features pulsar-client ``` ## Integration with MCP Clients @@ -176,25 +176,31 @@ This server can be used with any MCP-compatible client, such as: - Other AI assistants supporting the MCP protocol - Custom applications built with MCP client libraries +> ⚠️ Reminder: Please ensure you have an active paid plan with your LLM provider to fully utilize the MCP server. +Without it, you may encounter the error: `message will exceed the length limit for this chat`. + + ### Usage with Claude Desktop ```json { "mcpServers": { - "github": { - "command": "snmcp", + "snmcp": { + "command": "${PATH_TO_SNMCP}/bin/snmcp", "args": [ "stdio", "--organization", - "my-org", + "${STREAMNATIVE_CLOUD_ORGANIZATION_ID}", "--key-file", - "/path/to/key-file.json" - ], + "${STREAMNATIVE_CLOUD_KEY_FILE}" + ] } } } ``` +Please remember to replace `${PATH_TO_SNMCP}` with the actual path to the `snmcp` binary and `${STREAMNATIVE_CLOUD_ORGANIZATION_ID}` and `${STREAMNATIVE_CLOUD_KEY_FILE}` with your StreamNative Cloud organization ID and key file path, respectively. + ## About Model Context Protocol (MCP) The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs. MCP helps build agents and complex workflows on top of LLMs by providing: From dbf6f3ebdd5977af4e6dc891bd6d490f724fa21b Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 13 May 2025 09:21:44 +0800 Subject: [PATCH 14/85] Enhance documentation for features and tools (#18) --- README.md | 122 +++++++++++-------- docs/tools/kafka_admin_connect.md | 34 ++++++ docs/tools/kafka_admin_groups.md | 24 ++++ docs/tools/kafka_admin_partitions.md | 8 ++ docs/tools/kafka_admin_schema_registry.md | 38 ++++++ docs/tools/kafka_admin_topics.md | 18 +++ docs/tools/kafka_client_consume.md | 15 +++ docs/tools/kafka_client_produce.md | 12 ++ docs/tools/pulsar_admin_broker_stats.md | 19 +++ docs/tools/pulsar_admin_brokers.md | 27 ++++ docs/tools/pulsar_admin_cluster.md | 45 +++++++ docs/tools/pulsar_admin_functions.md | 83 +++++++++++++ docs/tools/pulsar_admin_namespace.md | 37 ++++++ docs/tools/pulsar_admin_namespace_policy.md | 41 +++++++ docs/tools/pulsar_admin_nsisolationpolicy.md | 32 +++++ docs/tools/pulsar_admin_package.md | 32 +++++ docs/tools/pulsar_admin_resourcequota.md | 24 ++++ docs/tools/pulsar_admin_schema.md | 13 ++ docs/tools/pulsar_admin_sinks.md | 64 ++++++++++ docs/tools/pulsar_admin_sources.md | 65 ++++++++++ docs/tools/pulsar_admin_subscription.md | 25 ++++ docs/tools/pulsar_admin_tenant.md | 17 +++ docs/tools/pulsar_admin_topic.md | 48 ++++++++ docs/tools/pulsar_admin_topic_policy.md | 14 +++ docs/tools/pulsar_client_consume.md | 17 +++ docs/tools/pulsar_client_produce.md | 14 +++ docs/tools/streamnative_cloud.md | 80 ++++++++++++ pkg/mcp/pulsar_client_consume_tools.go | 73 +---------- pkg/mcp/pulsar_client_produce_tools.go | 30 +---- 29 files changed, 928 insertions(+), 143 deletions(-) create mode 100644 docs/tools/kafka_admin_connect.md create mode 100644 docs/tools/kafka_admin_groups.md create mode 100644 docs/tools/kafka_admin_partitions.md create mode 100644 docs/tools/kafka_admin_schema_registry.md create mode 100644 docs/tools/kafka_admin_topics.md create mode 100644 docs/tools/kafka_client_consume.md create mode 100644 docs/tools/kafka_client_produce.md create mode 100644 docs/tools/pulsar_admin_broker_stats.md create mode 100644 docs/tools/pulsar_admin_brokers.md create mode 100644 docs/tools/pulsar_admin_cluster.md create mode 100644 docs/tools/pulsar_admin_functions.md create mode 100644 docs/tools/pulsar_admin_namespace.md create mode 100644 docs/tools/pulsar_admin_namespace_policy.md create mode 100644 docs/tools/pulsar_admin_nsisolationpolicy.md create mode 100644 docs/tools/pulsar_admin_package.md create mode 100644 docs/tools/pulsar_admin_resourcequota.md create mode 100644 docs/tools/pulsar_admin_schema.md create mode 100644 docs/tools/pulsar_admin_sinks.md create mode 100644 docs/tools/pulsar_admin_sources.md create mode 100644 docs/tools/pulsar_admin_subscription.md create mode 100644 docs/tools/pulsar_admin_tenant.md create mode 100644 docs/tools/pulsar_admin_topic.md create mode 100644 docs/tools/pulsar_admin_topic_policy.md create mode 100644 docs/tools/pulsar_client_consume.md create mode 100644 docs/tools/pulsar_client_produce.md create mode 100644 docs/tools/streamnative_cloud.md diff --git a/README.md b/README.md index 797cc0f..2e3e3bc 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # StreamNative MCP Server -A Model Context Protocol (MCP) server for integrating AI agents with StreamNative Cloud resources and Apache Pulsar/Kafka messaging systems. +A Model Context Protocol (MCP) server for integrating AI agents with StreamNative Cloud resources and Apache Kafka/Pulsar messaging systems. ## Overview -StreamNative MCP Server provides a standard interface for LLMs (Large Language Models) and AI agents to interact with StreamNative Cloud services, Apache Pulsar, and Apache Kafka. This implementation follows the [Model Context Protocol](https://modelcontextprotocol.io/introduction) specification, enabling AI applications to access messaging services through a standardized interface. +StreamNative MCP Server provides a standard interface for LLMs (Large Language Models) and AI agents to interact with StreamNative Cloud services, Apache Kafka, and Apache Pulsar. This implementation follows the [Model Context Protocol](https://modelcontextprotocol.io/introduction) specification, enabling AI applications to access messaging services through a standardized interface. ## Features @@ -12,19 +12,21 @@ StreamNative MCP Server provides a standard interface for LLMs (Large Language M - Connect to StreamNative Cloud resources with authentication - Switch to clusters available in your organization - Describe the status of clusters resources -- **Apache Pulsar Support**: Interact with Pulsar resources including: - - Pulsar Admin operations (topics, namespaces, tenants, schemas, etc.) - - Pulsar Client operations (producers, consumers) - - Functions, Sources, and Sinks management -- **Apache Kafka Support**: Interact with Kafka resources including: +- **Apache Kafka Support**: Interact with Apache Kafka resources including: - Kafka Admin operations (topics, partitions, consumer groups) - Schema Registry operations - - Kafka Connect operations + - Kafka Connect operations (*) - Kafka Client operations (producers, consumers) +- **Apache Pulsar Support**: Interact with Apache Pulsar resources including: + - Pulsar Admin operations (topics, namespaces, tenants, schemas, etc.) + - Pulsar Client operations (producers, consumers) + - Functions, Sources, and Sinks management - **Multiple Connection Options**: - Connect to StreamNative Cloud with service account authentication - - Connect directly to external Pulsar clusters - - Connect directly to external Kafka clusters + - Connect directly to external Apache Kafka clusters + - Connect directly to external Apache Pulsar clusters + +> *: The Kafka Connect operations are only tested and verfied on StreamNative Cloud. ## Installation @@ -124,45 +126,65 @@ The StreamNative MCP Server supports enabling or disabling specific groups of fu ### Available Features -The following sets of tools are available (all available by default on StreamNative Cloud) - -| Features | Description | -| ------|-------| -| `all` | All tools, including StreamNative Cloud tools, Pulsar tools and Kafka tools | -| `all-pulsar` | All Pulsar admin and Pulsar client tools | -| `all-kafka` | All Kafka admin and Kafka client tools | -| `pulsar-admin` | Pulsar administrative operations (including all `pulsar-admin-*`) | -| `pulsar-client` | Pulsar client operations (produce and consume messages) | -| `pulsar-admin-brokers` | Manage Pulsar brokers | -| `pulsar-admin-broker-stats` | Access Pulsar broker statistics | -| `pulsar-admin-clusters` | Manage Pulsar clusters | -| `pulsar-admin-functions-worker` | Manage Pulsar Function workers | -| `pulsar-admin-namespaces` | Manage Pulsar namespaces | -| `pulsar-admin-namespace-policy` | Configure Pulsar namespace policies | -| `pulsar-admin-isolation-policy` | Manage namespace isolation policies | -| `pulsar-admin-packages` | Manage Pulsar packages | -| `pulsar-admin-resource-quotas` | Configure resource quotas | -| `pulsar-admin-schemas` | Manage Pulsar schemas | -| `pulsar-admin-subscriptions` | Manage Pulsar subscriptions | -| `pulsar-admin-tenants` | Manage Pulsar tenants | -| `pulsar-admin-topics` | Manage Pulsar topics | -| `pulsar-admin-sinks` | Manage Pulsar IO sinks | -| `pulsar-admin-functions` | Manage Pulsar Functions | -| `pulsar-admin-sources` | Manage Pulsar IO sources | -| `pulsar-admin-topic-policy` | Configure Pulsar topic policies | -| `kafka-admin` | Kafka administrative operations (including all `kafka-admin-*`) | -| `kafka-client` | Kafka client operations (produce and consume messages) | -| `kafka-admin-topics` | Manage Kafka partitions | -| `kafka-admin-partitions` | Manage Kafka partitions | -| `kafka-admin-groups` | Manage Kafka consumer groups | -| `kafka-admin-schema-registry` | Interact with Kafka Schema Registry | -| `kafka-admin-connect` | Manage Kafka Connect connectors | -| `streamnative-cloud` | Manage the context, check resources logs of StreamNative Cloud | - -### Usage Examples - -To enable only specific feature sets: - +The StreamNative MCP Server allows you to enable or disable specific groups of features using the `--features` flag. This helps you control which tools are available to your AI agents and can reduce context size for LLMs. + +#### Combination Feature Sets + +| Feature | Description | +|---------------|-----------------------------------------------------------------------------| +| `all` | Enables all features: StreamNative Cloud, Pulsar, and Kafka tools | + +--- + +#### Kafka Features + +| Feature | Description | Docs | +|--------------------------|--------------------------------------------------|------| +| `all-kafka` | Enables all Kafka admin and client tools, without Apache Pulsar and StreamNative Cloud tools | +| `kafka-admin` | Kafka administrative operations (all admin tools) | | +| `kafka-client` | Kafka client operations (produce/consume) |[kafka_client_consume.md](docs/tools/kafka_client_consume.md), [kafka_client_produce.md](docs/tools/kafka_client_produce.md) | +| `kafka-admin-topics` | Manage Kafka topics | [kafka_admin_topics.md](docs/tools/kafka_admin_topics.md) | +| `kafka-admin-partitions` | Manage Kafka partitions | [kafka_admin_partitions.md](docs/tools/kafka_admin_partitions.md) | +| `kafka-admin-groups` | Manage Kafka consumer groups | [kafka_admin_groups.md](docs/tools/kafka_admin_groups.md) | +| `kafka-admin-schema-registry` | Interact with Kafka Schema Registry | [kafka_admin_schema_registry.md](docs/tools/kafka_admin_schema_registry.md) | +| `kafka-admin-connect` | Manage Kafka Connect connectors | [kafka_admin_connect.md](docs/tools/kafka_admin_connect.md) | + +--- + +#### Pulsar Features + +| Feature | Description | Docs | +|--------------------------|--------------------------------------------------|------| +| `all-pulsar` | Enables all Pulsar admin and client tools, without Apache Kafka and StreamNative Cloud tools | | +| `pulsar-admin` | Pulsar administrative operations (all admin tools)| | +| `pulsar-client` | Pulsar client operations (produce/consume) | [pulsar_client_consume.md](docs/tools/pulsar_client_consume.md), [pulsar_client_produce.md](docs/tools/pulsar_client_produce.md) | +| `pulsar-admin-brokers` | Manage Pulsar brokers | [pulsar_admin_brokers.md](docs/tools/pulsar_admin_brokers.md) | +| `pulsar-admin-broker-stats` | Access Pulsar broker statistics | [pulsar_admin_broker_stats.md](docs/tools/pulsar_admin_broker_stats.md) | +| `pulsar-admin-clusters` | Manage Pulsar clusters | [pulsar_admin_clusters.md](docs/tools/pulsar_admin_clusters.md) | +| `pulsar-admin-functions-worker`| Manage Pulsar Function workers | [pulsar_admin_functions_worker.md](docs/tools/pulsar_admin_functions_worker.md) | +| `pulsar-admin-namespaces` | Manage Pulsar namespaces | [pulsar_admin_namespaces.md](docs/tools/pulsar_admin_namespaces.md) | +| `pulsar-admin-namespace-policy`| Configure Pulsar namespace policies | [pulsar_admin_namespace_policy.md](docs/tools/pulsar_admin_namespace_policy.md) | +| `pulsar-admin-isolation-policy`| Manage namespace isolation policies | [pulsar_admin_isolation_policy.md](docs/tools/pulsar_admin_isolation_policy.md) | +| `pulsar-admin-packages` | Manage Pulsar packages | [pulsar_admin_packages.md](docs/tools/pulsar_admin_packages.md) | +| `pulsar-admin-resource-quotas` | Configure resource quotas | [pulsar_admin_resource_quotas.md](docs/tools/pulsar_admin_resource_quotas.md) | +| `pulsar-admin-schemas` | Manage Pulsar schemas | [pulsar_admin_schemas.md](docs/tools/pulsar_admin_schemas.md) | +| `pulsar-admin-subscriptions` | Manage Pulsar subscriptions | [pulsar_admin_subscriptions.md](docs/tools/pulsar_admin_subscriptions.md) | +| `pulsar-admin-tenants` | Manage Pulsar tenants | [pulsar_admin_tenants.md](docs/tools/pulsar_admin_tenants.md) | +| `pulsar-admin-topics` | Manage Pulsar topics | [pulsar_admin_topics.md](docs/tools/pulsar_admin_topics.md) | +| `pulsar-admin-sinks` | Manage Pulsar IO sinks | [pulsar_admin_sinks.md](docs/tools/pulsar_admin_sinks.md) | +| `pulsar-admin-functions` | Manage Pulsar Functions | [pulsar_admin_functions.md](docs/tools/pulsar_admin_functions.md) | +| `pulsar-admin-sources` | Manage Pulsar Sources | [pulsar_admin_sources.md](docs/tools/pulsar_admin_sources.md) | +| `pulsar-admin-topic-policy` | Configure Pulsar topic policies | [pulsar_admin_topic_policy.md](docs/tools/pulsar_admin_topic_policy.md) | + +--- + +#### StreamNative Cloud Features + +| Feature | Description | Docs | +|---------------------|------------------------------------------------------------------|------| +| `streamnative-cloud`| Manage StreamNative Cloud context and check resource logs | [streamnative_cloud.md](docs/tools/streamnative_cloud.md) | + +You can combine these features as needed using the `--features` flag. For example, to enable only Pulsar client features: ```bash # Enable only Pulsar client features bin/snmcp stdio --organization my-org --key-file /path/to/key-file.json --features pulsar-client @@ -244,3 +266,5 @@ This project uses [semver](https://semver.org/) semantics. ## License Licensed under the Apache License Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + + diff --git a/docs/tools/kafka_admin_connect.md b/docs/tools/kafka_admin_connect.md new file mode 100644 index 0000000..2edcb39 --- /dev/null +++ b/docs/tools/kafka_admin_connect.md @@ -0,0 +1,34 @@ +#### kafka-admin-connect + +Kafka Connect is a framework for integrating Kafka with external systems. The following resources and operations are supported: + +- **kafka-connect-cluster** + - **get**: Get information about the Kafka Connect cluster + - _Parameters_: None + +- **connectors** + - **list**: List all connectors in the cluster + - _Parameters_: None + +- **connector** + - **get**: Get details of a specific connector + - `name` (string, required): The connector name + - **create**: Create a new connector + - `name` (string, required): The connector name + - `config` (object, required): Connector configuration + - Must include at least `connector.class` and other required fields for the connector type + - **update**: Update an existing connector + - `name` (string, required): The connector name + - `config` (object, required): Updated configuration + - **delete**: Delete a connector + - `name` (string, required): The connector name + - **restart**: Restart a connector + - `name` (string, required): The connector name + - **pause**: Pause a connector + - `name` (string, required): The connector name + - **resume**: Resume a paused connector + - `name` (string, required): The connector name + +- **connector-plugins** + - **list**: List all available connector plugins + - _Parameters_: None \ No newline at end of file diff --git a/docs/tools/kafka_admin_groups.md b/docs/tools/kafka_admin_groups.md new file mode 100644 index 0000000..fd78e0b --- /dev/null +++ b/docs/tools/kafka_admin_groups.md @@ -0,0 +1,24 @@ +#### kafka-admin-groups + +This tool provides access to Kafka consumer group operations including listing, describing, and managing group membership. + +- **groups** + - **list**: List all Kafka Consumer Groups in the cluster + - _Parameters_: None + +- **group** + - **describe**: Get detailed information about a specific Consumer Group + - `group` (string, required): The name of the Kafka Consumer Group + - **remove-members**: Remove specific members from a Consumer Group + - `group` (string, required): The name of the Kafka Consumer Group + - `members` (string, required): Comma-separated list of member instance IDs (e.g. "consumer-instance-1,consumer-instance-2") + - **offsets**: Get offsets for a specific consumer group + - `group` (string, required): The name of the Kafka Consumer Group + - **delete-offset**: Delete a specific offset for a consumer group of a topic + - `group` (string, required): The name of the Kafka Consumer Group + - `topic` (string, required): The name of the Kafka topic + - **set-offset**: Set a specific offset for a consumer group's topic-partition + - `group` (string, required): The name of the Kafka Consumer Group + - `topic` (string, required): The name of the Kafka topic + - `partition` (number, required): The partition number + - `offset` (number, required): The offset value to set (use -1 for earliest, -2 for latest, or a specific value) \ No newline at end of file diff --git a/docs/tools/kafka_admin_partitions.md b/docs/tools/kafka_admin_partitions.md new file mode 100644 index 0000000..11689b2 --- /dev/null +++ b/docs/tools/kafka_admin_partitions.md @@ -0,0 +1,8 @@ +#### kafka-admin-partitions + +This tool provides access to Kafka partition operations, particularly adding partitions to existing topics. + +- **partition** + - **update**: Update the number of partitions for an existing Kafka topic (can only increase, not decrease) + - `topic` (string, required): The name of the Kafka topic + - `new-total` (number, required): The new total number of partitions (must be greater than current) \ No newline at end of file diff --git a/docs/tools/kafka_admin_schema_registry.md b/docs/tools/kafka_admin_schema_registry.md new file mode 100644 index 0000000..033d6c6 --- /dev/null +++ b/docs/tools/kafka_admin_schema_registry.md @@ -0,0 +1,38 @@ +#### kafka-admin-schema-registry + +This tool provides access to Kafka Schema Registry operations, including managing subjects, versions, and compatibility settings. + +- **subjects** + - **list**: List all schema subjects in the Schema Registry + - _Parameters_: None + +- **subject** + - **get**: Get the latest schema for a subject + - `subject` (string, required): The subject name + - **create**: Register a new schema for a subject + - `subject` (string, required): The subject name + - `schema` (string, required): The schema definition (in AVRO/JSON/PROTOBUF, etc.) + - `type` (string, optional): The schema type (e.g. AVRO, JSON, PROTOBUF) + - **delete**: Delete a schema subject + - `subject` (string, required): The subject name + +- **versions** + - **list**: List all versions for a specific subject + - `subject` (string, required): The subject name + - **get**: Get a specific version of a subject's schema + - `subject` (string, required): The subject name + - `version` (number, required): The version number + - **delete**: Delete a specific version of a subject's schema + - `subject` (string, required): The subject name + - `version` (number, required): The version number + +- **compatibility** + - **get**: Get compatibility setting for a subject + - `subject` (string, required): The subject name + - **set**: Set compatibility level for a subject + - `subject` (string, required): The subject name + - `level` (string, required): The compatibility level (e.g. BACKWARD, FORWARD, FULL, NONE) + +- **types** + - **list**: List supported schema types (e.g. AVRO, JSON, PROTOBUF) + - _Parameters_: None \ No newline at end of file diff --git a/docs/tools/kafka_admin_topics.md b/docs/tools/kafka_admin_topics.md new file mode 100644 index 0000000..a06187e --- /dev/null +++ b/docs/tools/kafka_admin_topics.md @@ -0,0 +1,18 @@ +#### kafka-admin-topics + +This tool provides access to various Kafka topic operations, including creation, deletion, listing, and configuration retrieval. + +- **topics** + - **list**: List all topics in the Kafka cluster + - `include-internal` (boolean, optional): Whether to include internal Kafka topics (those starting with an underscore). Default: false + +- **topic** + - **get**: Get detailed configuration for a specific topic + - `name` (string, required): The name of the Kafka topic + - **create**: Create a new topic + - `name` (string, required): The name of the Kafka topic + - `partitions` (number, optional): Number of partitions. Default: 1 + - `replication-factor` (number, optional): Replication factor. Default: 1 + - `configs` (array of string, optional): Topic configuration overrides as key-value strings, e.g. ["cleanup.policy=compact", "retention.ms=604800000"] + - **delete**: Delete an existing topic + - `name` (string, required): The name of the Kafka topic \ No newline at end of file diff --git a/docs/tools/kafka_client_consume.md b/docs/tools/kafka_client_consume.md new file mode 100644 index 0000000..f5e4c55 --- /dev/null +++ b/docs/tools/kafka_client_consume.md @@ -0,0 +1,15 @@ +#### kafka-client-consume + +Consume messages from a Kafka topic. This tool allows you to read messages from Kafka topics with various consumption options. + +- **kafka_client_consume** + - **Description**: Read messages from a Kafka topic, with support for consumer groups, offset control, and timeouts. If schema registry integration enabled, and the topic have schema with `topicName-value`, the consume tool will try to use the schema to decode the messages. + - **Parameters**: + - `topic` (string, required): The name of the Kafka topic to consume messages from. + - `group` (string, optional): The consumer group ID to use. If provided, offsets are tracked and committed; otherwise, a random group is used and offsets are not committed. + - `offset` (string, optional): The offset position to start consuming from. One of: + - 'atstart': Begin from the earliest available message (default) + - 'atend': Begin from the next message after the consumer starts + - 'atcommitted': Begin from the last committed offset (only works with specified 'group') + - `max-messages` (number, optional): Maximum number of messages to consume in this request. Default: 10 + - `timeout` (number, optional): Maximum time in seconds to wait for messages. Default: 10 \ No newline at end of file diff --git a/docs/tools/kafka_client_produce.md b/docs/tools/kafka_client_produce.md new file mode 100644 index 0000000..768b66f --- /dev/null +++ b/docs/tools/kafka_client_produce.md @@ -0,0 +1,12 @@ +#### kafka-client-produce + +Produce messages to a Kafka topic. This tool allows you to send single or multiple messages with various options. + +- **kafka_client_produce** + - **Description**: Send messages to a Kafka topic, supporting keys, headers, partitions, batching, and file-based payloads. + - **Parameters**: + - `topic` (string, required): The name of the Kafka topic to produce messages to. + - `key` (string, optional): The key for the message. Used for partition assignment and ordering. + - `value` (string, required if 'messages' is not provided): The value/content of the message to send. + - `headers` (array, optional): Message headers in the format of [{"key": "header-key", "value": "header-value"}]. + - `sync` (boolean, optional): Whether to wait for server acknowledgment before returning. Default: true. \ No newline at end of file diff --git a/docs/tools/pulsar_admin_broker_stats.md b/docs/tools/pulsar_admin_broker_stats.md new file mode 100644 index 0000000..8837cf8 --- /dev/null +++ b/docs/tools/pulsar_admin_broker_stats.md @@ -0,0 +1,19 @@ +#### pulsar_admin_broker_stats + +Unified tool for retrieving Apache Pulsar broker statistics. + +- **monitoring_metrics** + - **get**: Get broker monitoring metrics + +- **mbeans** + - **get**: Get JVM MBeans statistics from broker + +- **topics** + - **get**: Get statistics for all topics managed by the broker + +- **allocator_stats** + - **get**: Get memory allocator statistics + - `allocator_name` (string, required): Name of the allocator + +- **load_report** + - **get**: Get broker load report \ No newline at end of file diff --git a/docs/tools/pulsar_admin_brokers.md b/docs/tools/pulsar_admin_brokers.md new file mode 100644 index 0000000..e475d3c --- /dev/null +++ b/docs/tools/pulsar_admin_brokers.md @@ -0,0 +1,27 @@ +#### pulsar_admin_brokers + +Unified tool for managing Apache Pulsar broker resources. + +- **brokers** + - **list**: List all active brokers in a cluster + - `clusterName` (string, required): The cluster name + +- **health** + - **get**: Check the health status of a broker + +- **config** + - **get**: Get broker configuration + - `configType` (string, required): Configuration type, available options: + - `dynamic`: Get list of dynamically modifiable configuration names + - `runtime`: Get all runtime configurations (including static and dynamic configs) + - `internal`: Get internal configuration information + - `all_dynamic`: Get all dynamic configurations and their current values + - **update**: Update broker configuration + - `configName` (string, required): Configuration parameter name + - `configValue` (string, required): Configuration parameter value + - **delete**: Delete broker configuration + - `configName` (string, required): Configuration parameter name + +- **namespaces** + - **get**: Get namespaces managed by a broker + - `brokerUrl` (string, required): Broker URL, e.g., '127.0.0.1:8080' \ No newline at end of file diff --git a/docs/tools/pulsar_admin_cluster.md b/docs/tools/pulsar_admin_cluster.md new file mode 100644 index 0000000..fe90279 --- /dev/null +++ b/docs/tools/pulsar_admin_cluster.md @@ -0,0 +1,45 @@ +#### pulsar_admin_cluster + +Unified tool for managing Apache Pulsar clusters. + +- **cluster** + - **list**: List all clusters + - **get**: Get configuration for a specific cluster + - `cluster_name` (string, required): The cluster name + - **create**: Create a new cluster + - `cluster_name` (string, required): The cluster name + - `service_url` (string, optional): Cluster web service URL + - `service_url_tls` (string, optional): Cluster TLS web service URL + - `broker_service_url` (string, optional): Cluster broker service URL + - `broker_service_url_tls` (string, optional): Cluster TLS broker service URL + - `peer_cluster_names` (array, optional): List of peer clusters + - **update**: Update an existing cluster + - `cluster_name` (string, required): The cluster name + - Same optional parameters as create + - **delete**: Delete a cluster + - `cluster_name` (string, required): The cluster name + +- **peer_clusters** + - **get**: Get list of peer clusters + - `cluster_name` (string, required): The cluster name + - **update**: Update peer clusters list + - `cluster_name` (string, required): The cluster name + - `peer_cluster_names` (array, required): List of peer cluster names + +- **failure_domain** + - **list**: List all failure domains in a cluster + - `cluster_name` (string, required): The cluster name + - **get**: Get configuration for a specific failure domain + - `cluster_name` (string, required): The cluster name + - `domain_name` (string, required): The failure domain name + - **create**: Create a new failure domain + - `cluster_name` (string, required): The cluster name + - `domain_name` (string, required): The failure domain name + - `brokers` (array, required): List of brokers in the domain + - **update**: Update an existing failure domain + - `cluster_name` (string, required): The cluster name + - `domain_name` (string, required): The failure domain name + - `brokers` (array, required): List of brokers in the domain + - **delete**: Delete a failure domain + - `cluster_name` (string, required): The cluster name + - `domain_name` (string, required): The failure domain name \ No newline at end of file diff --git a/docs/tools/pulsar_admin_functions.md b/docs/tools/pulsar_admin_functions.md new file mode 100644 index 0000000..e6d0963 --- /dev/null +++ b/docs/tools/pulsar_admin_functions.md @@ -0,0 +1,83 @@ +#### pulsar_admin_functions + +Manage Apache Pulsar Functions for stream processing. Pulsar Functions are lightweight compute processes that can consume messages from one or more Pulsar topics, apply user-defined processing logic, and produce results to another topic. Functions support Java, Python, and Go runtimes, enabling complex event processing, data transformations, filtering, and integration with external systems. + +This tool provides a comprehensive set of operations to manage the entire function lifecycle: + +- **list**: List all functions in a namespace + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + +- **get**: Get function configuration + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + +- **status**: Get runtime status of a function (instances, metrics) + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + +- **stats**: Get detailed statistics of a function (throughput, processing latency) + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + +- **create**: Deploy a new function with specified parameters + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + - `classname` (string, required): The fully qualified class name implementing the function + - `inputs` (array, required): The input topics for the function + - `output` (string, optional): The output topic for function results + - `jar` (string, optional): Path to the JAR file for Java functions + - `py` (string, optional): Path to the Python file for Python functions + - `go` (string, optional): Path to the Go binary for Go functions + - `parallelism` (number, optional): The parallelism factor of the function (default: 1) + - `userConfig` (object, optional): User-defined config key/values + +- **update**: Update an existing function + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + - Parameters similar to `create` operation + +- **delete**: Delete a function + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + +- **start**: Start a stopped function + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + +- **stop**: Stop a running function + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + +- **restart**: Restart a function + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + +- **querystate**: Query state stored by a stateful function for a specific key + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + - `key` (string, required): The state key to query + +- **putstate**: Store state in a function's state store + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + - `key` (string, required): The state key + - `value` (string, required): The state value + +- **trigger**: Manually trigger a function with a specific value + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The function name + - `topic` (string, optional): The specific topic to trigger on + - `triggerValue` (string, optional): The value to trigger the function with \ No newline at end of file diff --git a/docs/tools/pulsar_admin_namespace.md b/docs/tools/pulsar_admin_namespace.md new file mode 100644 index 0000000..c1c28bd --- /dev/null +++ b/docs/tools/pulsar_admin_namespace.md @@ -0,0 +1,37 @@ +#### pulsar_admin_namespace + +Manage Pulsar namespaces with various operations. + +- **list**: List all namespaces for a tenant + - `tenant` (string, required): The tenant name + +- **get_topics**: Get all topics within a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + +- **create**: Create a new namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + - `bundles` (string, optional): Number of bundles to activate + - `clusters` (array, optional): List of clusters to assign + +- **delete**: Delete a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + +- **clear_backlog**: Clear backlog for all topics in a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + - `subscription` (string, optional): Subscription name + - `bundle` (string, optional): Bundle name or range + - `force` (string, optional): Force clear backlog (true/false) + +- **unsubscribe**: Unsubscribe from a subscription for all topics in a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + - `subscription` (string, required): Subscription name + - `bundle` (string, optional): Bundle name or range + +- **unload**: Unload a namespace from the current serving broker + - `namespace` (string, required): The namespace name (format: tenant/namespace) + - `bundle` (string, optional): Bundle name or range + +- **split_bundle**: Split a namespace bundle + - `namespace` (string, required): The namespace name (format: tenant/namespace) + - `bundle` (string, required): Bundle name or range + - `unload` (string, optional): Unload newly split bundles (true/false) \ No newline at end of file diff --git a/docs/tools/pulsar_admin_namespace_policy.md b/docs/tools/pulsar_admin_namespace_policy.md new file mode 100644 index 0000000..999218a --- /dev/null +++ b/docs/tools/pulsar_admin_namespace_policy.md @@ -0,0 +1,41 @@ +#### pulsar_admin_namespace_policy + +Tools for managing Pulsar namespace policies. + +- **pulsar_admin_namespace_policy_get**: Get configuration policies of a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + +- **pulsar_admin_namespace_policy_set**: Set a policy for a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + - `policy` (string, required): Type of policy to set, options include: + - `message-ttl`: Sets time to live for messages + - `retention`: Sets retention policy for messages + - `permission`: Grants permissions to a role + - `replication-clusters`: Sets clusters to replicate to + - `backlog-quota`: Sets backlog quota policy + - `topic-auto-creation`: Configures automatic topic creation + - `schema-validation`: Sets schema validation enforcement + - `schema-auto-update`: Sets schema auto-update strategy + - `auto-update-schema`: Controls if schemas can be automatically updated + - `offload-threshold`: Sets threshold for data offloading + - `offload-deletion-lag`: Sets time to wait before deleting offloaded data + - `compaction-threshold`: Sets threshold for topic compaction + - `max-producers-per-topic`: Limits producers per topic + - `max-consumers-per-topic`: Limits consumers per topic + - `max-consumers-per-subscription`: Limits consumers per subscription + - `anti-affinity-group`: Sets anti-affinity group for isolation + - `persistence`: Sets persistence configuration + - `deduplication`: Controls message deduplication + - `encryption-required`: Controls message encryption + - `subscription-auth-mode`: Sets subscription auth mode + - `subscription-permission`: Grants permissions to access a subscription + - `dispatch-rate`: Sets message dispatch rate + - `replicator-dispatch-rate`: Sets replicator dispatch rate + - `subscribe-rate`: Sets subscribe rate per consumer + - `subscription-dispatch-rate`: Sets subscription dispatch rate + - `publish-rate`: Sets maximum message publish rate + - Additional parameters vary based on the policy type + +- **pulsar_admin_namespace_policy_remove**: Remove a policy from a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) + - `policy` (string, required): Type of policy to remove \ No newline at end of file diff --git a/docs/tools/pulsar_admin_nsisolationpolicy.md b/docs/tools/pulsar_admin_nsisolationpolicy.md new file mode 100644 index 0000000..41a0e6a --- /dev/null +++ b/docs/tools/pulsar_admin_nsisolationpolicy.md @@ -0,0 +1,32 @@ +#### pulsar_admin_nsisolationpolicy + +Manage namespace isolation policies in a Pulsar cluster. Namespace isolation policies enable physical isolation of namespaces by controlling which brokers specific namespaces can use. This helps provide predictable performance and resource isolation, especially in multi-tenant environments. + +This tool provides operations across three resource types: + +- **policy** (Namespace isolation policy): + - **get**: Get details of a specific isolation policy + - `cluster` (string, required): The cluster name + - `name` (string, required): Name of the isolation policy + - **list**: List all isolation policies in a cluster + - `cluster` (string, required): The cluster name + - **set**: Create or update an isolation policy + - `cluster` (string, required): The cluster name + - `name` (string, required): Name of the isolation policy + - `namespaces` (array, required): List of namespaces to apply the isolation policy + - `primary` (array, required): List of primary brokers for the namespaces + - `secondary` (array, optional): List of secondary brokers for the namespaces + - `autoFailoverPolicyType` (string, optional): Auto failover policy type (e.g., min_available) + - `autoFailoverPolicyParams` (object, optional): Auto failover policy parameters (e.g., {'min_limit': '1', 'usage_threshold': '100'}) + - **delete**: Delete an isolation policy + - `cluster` (string, required): The cluster name + - `name` (string, required): Name of the isolation policy + +- **broker** (Broker with isolation policies): + - **get**: Get details of a specific broker with its isolation policies + - `cluster` (string, required): The cluster name + - `name` (string, required): Name of the broker + +- **brokers** (All brokers with isolation policies): + - **list**: List all brokers with their isolation policies + - `cluster` (string, required): The cluster name \ No newline at end of file diff --git a/docs/tools/pulsar_admin_package.md b/docs/tools/pulsar_admin_package.md new file mode 100644 index 0000000..5c0fe86 --- /dev/null +++ b/docs/tools/pulsar_admin_package.md @@ -0,0 +1,32 @@ +#### pulsar_admin_package + +Manage packages in Apache Pulsar. Packages are reusable components that can be shared across functions, sources, and sinks. The system supports package schemes including `function://`, `source://`, and `sink://` for different component types. + +This tool provides operations across two resource types: + +- **package** (A specific package): + - **list**: List all versions of a specific package + - `packageName` (string, required): Name of the package + - **get**: Get metadata of a specific package + - `packageName` (string, required): Name of the package + - **update**: Update metadata of a specific package + - `packageName` (string, required): Name of the package + - `description` (string, required): Description of the package + - `contact` (string, optional): Contact information for the package + - `properties` (object, optional): Additional properties as key-value pairs + - **delete**: Delete a specific package + - `packageName` (string, required): Name of the package + - **download**: Download a package to local storage + - `packageName` (string, required): Name of the package + - `path` (string, required): Path to download the package to + - **upload**: Upload a package from local storage + - `packageName` (string, required): Name of the package + - `path` (string, required): Path to upload the package from + - `description` (string, required): Description of the package + - `contact` (string, optional): Contact information for the package + - `properties` (object, optional): Additional properties as key-value pairs + +- **packages** (Packages of a specific type): + - **list**: List all packages of a specific type in a namespace + - `type` (string, required): Package type (function, source, sink) + - `namespace` (string, required): The namespace name \ No newline at end of file diff --git a/docs/tools/pulsar_admin_resourcequota.md b/docs/tools/pulsar_admin_resourcequota.md new file mode 100644 index 0000000..e5b349b --- /dev/null +++ b/docs/tools/pulsar_admin_resourcequota.md @@ -0,0 +1,24 @@ +#### pulsar_admin_resourcequota + +Manage Apache Pulsar resource quotas for brokers, namespaces and bundles. Resource quotas define limits for resource usage such as message rates, bandwidth, and memory. These quotas help prevent resource abuse and ensure fair resource allocation across the Pulsar cluster. + +This tool provides operations on the following resource: + +- **quota** (Resource quota configuration): + - **get**: Get resource quota for a namespace bundle or the default quota + - `namespace` (string, optional): The namespace name in format 'tenant/namespace' + - `bundle` (string, optional): The bundle range in format '{start-boundary}_{end-boundary}' + - Note: If namespace and bundle are both omitted, returns the default quota + - Note: If namespace is specified, bundle must also be specified and vice versa + - **set**: Set resource quota for a namespace bundle or the default quota + - `namespace` (string, optional): The namespace name in format 'tenant/namespace' + - `bundle` (string, optional): The bundle range in format '{start-boundary}_{end-boundary}' + - `msgRateIn` (number, required): Maximum incoming messages per second + - `msgRateOut` (number, required): Maximum outgoing messages per second + - `bandwidthIn` (number, required): Maximum inbound bandwidth in bytes per second + - `bandwidthOut` (number, required): Maximum outbound bandwidth in bytes per second + - `memory` (number, required): Maximum memory usage in Mbytes + - `dynamic` (boolean, optional): Whether to allow quota to be dynamically re-calculated + - **reset**: Reset a namespace bundle's resource quota to default value + - `namespace` (string, required): The namespace name in format 'tenant/namespace' + - `bundle` (string, required): The bundle range in format '{start-boundary}_{end-boundary}' \ No newline at end of file diff --git a/docs/tools/pulsar_admin_schema.md b/docs/tools/pulsar_admin_schema.md new file mode 100644 index 0000000..f6ec821 --- /dev/null +++ b/docs/tools/pulsar_admin_schema.md @@ -0,0 +1,13 @@ +#### pulsar_admin_schema + +Manage Apache Pulsar schemas for topics. + +- **schema** + - **get**: Get the schema for a topic + - `topic` (string, required): The fully qualified topic name + - `version` (number, optional): Schema version number + - **upload**: Upload a new schema for a topic + - `topic` (string, required): The fully qualified topic name + - `filename` (string, required): Path to the schema definition file + - **delete**: Delete the schema for a topic + - `topic` (string, required): The fully qualified topic name \ No newline at end of file diff --git a/docs/tools/pulsar_admin_sinks.md b/docs/tools/pulsar_admin_sinks.md new file mode 100644 index 0000000..f957087 --- /dev/null +++ b/docs/tools/pulsar_admin_sinks.md @@ -0,0 +1,64 @@ +#### pulsar_admin_sinks + +Manage Apache Pulsar Sinks for data movement and integration. Pulsar Sinks are connectors that export data from Pulsar topics to external systems such as databases, storage services, messaging systems, and third-party applications. Sinks consume messages from one or more Pulsar topics, transform the data if needed, and write it to external systems in a format compatible with the target destination. + +This tool provides complete lifecycle management for sink connectors: + +- **list**: List all sinks in a namespace + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + +- **get**: Get sink configuration + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + +- **status**: Get runtime status of a sink (instances, metrics) + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + +- **create**: Deploy a new sink connector + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + - Either `archive` or `sink-type` must be specified (but not both): + - `archive` (string): Path to the archive file containing sink code + - `sink-type` (string): Built-in connector type to use (e.g., 'jdbc', 'elastic-search', 'kafka') + - Either `inputs` or `topics-pattern` must be specified: + - `inputs` (array): The sink's input topics (array of strings) + - `topics-pattern` (string): TopicsPattern to consume from topics matching the pattern (regex) + - `subs-name` (string, optional): Pulsar subscription name for input topic consumer + - `parallelism` (number, optional): Number of instances to run concurrently (default: 1) + - `sink-config` (object, optional): Connector-specific configuration parameters + +- **update**: Update an existing sink connector + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + - Parameters similar to `create` operation (all optional during update) + +- **delete**: Delete a sink + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + +- **start**: Start a stopped sink + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + +- **stop**: Stop a running sink + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + +- **restart**: Restart a sink + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The sink name + +- **list-built-in**: List all built-in sink connectors available in the system + - No parameters required + +Built-in sink connectors are available for common systems like Kafka, JDBC, Elasticsearch, and cloud storage. Sinks follow the tenant/namespace/name hierarchy for organization and access control, can scale through parallelism configuration, and support configurable subscription types. Sinks require proper permissions to access their input topics. \ No newline at end of file diff --git a/docs/tools/pulsar_admin_sources.md b/docs/tools/pulsar_admin_sources.md new file mode 100644 index 0000000..cc2e738 --- /dev/null +++ b/docs/tools/pulsar_admin_sources.md @@ -0,0 +1,65 @@ +#### pulsar_admin_sources + +Manage Apache Pulsar Sources for data ingestion and integration. Pulsar Sources are connectors that import data from external systems into Pulsar topics. Sources connect to external systems such as databases, messaging platforms, storage services, and real-time data streams to pull data and publish it to Pulsar topics. + +This tool provides complete lifecycle management for source connectors: + +- **list**: List all sources in a namespace + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + +- **get**: Get source configuration + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + +- **status**: Get runtime status of a source (instances, metrics) + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + +- **create**: Deploy a new source connector + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + - `destination-topic-name` (string, required): Topic where data will be written + - Either `archive` or `source-type` must be specified (but not both): + - `archive` (string): Path to the archive file containing source code + - `source-type` (string): Built-in connector type to use (e.g., 'kafka', 'jdbc') + - `deserialization-classname` (string, optional): SerDe class for the source + - `schema-type` (string, optional): Schema type for encoding messages (e.g., 'avro', 'json') + - `classname` (string, optional): Source class name if using custom implementation + - `processing-guarantees` (string, optional): Delivery semantics ('atleast_once', 'atmost_once', 'effectively_once') + - `parallelism` (number, optional): Number of instances to run concurrently (default: 1) + - `source-config` (object, optional): Connector-specific configuration parameters + +- **update**: Update an existing source connector + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + - Parameters similar to `create` operation (all optional during update) + +- **delete**: Delete a source + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + +- **start**: Start a stopped source + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + +- **stop**: Stop a running source + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + +- **restart**: Restart a source + - `tenant` (string, required): The tenant name + - `namespace` (string, required): The namespace name + - `name` (string, required): The source name + +- **list-built-in**: List all built-in source connectors available in the system + - No parameters required + +Built-in source connectors are available for common systems like Kafka, JDBC, AWS services, and more. Sources follow the tenant/namespace/name hierarchy for organization and access control, can scale through parallelism configuration, and support various processing guarantees. \ No newline at end of file diff --git a/docs/tools/pulsar_admin_subscription.md b/docs/tools/pulsar_admin_subscription.md new file mode 100644 index 0000000..0769ccd --- /dev/null +++ b/docs/tools/pulsar_admin_subscription.md @@ -0,0 +1,25 @@ +#### pulsar_admin_subscription + +Manage Pulsar topic subscriptions, which represent consumer groups reading from topics. + +- **list**: List all subscriptions for a topic + - `topic` (string, required): The fully qualified topic name +- **create**: Create a new subscription + - `topic` (string, required): The fully qualified topic name + - `subscription` (string, required): The subscription name + - `message_id` (string, optional): Initial position, default is latest +- **delete**: Delete a subscription + - `topic` (string, required): The fully qualified topic name + - `subscription` (string, required): The subscription name +- **skip**: Skip messages for a subscription + - `topic` (string, required): The fully qualified topic name + - `subscription` (string, required): The subscription name + - `count` (number, required): Number of messages to skip +- **expire**: Expire messages for a subscription + - `topic` (string, required): The fully qualified topic name + - `subscription` (string, required): The subscription name + - `expiry_time` (string, required): Expiry time in seconds +- **reset-cursor**: Reset subscription position + - `topic` (string, required): The fully qualified topic name + - `subscription` (string, required): The subscription name + - `message_id` (string, required): Message ID to reset to \ No newline at end of file diff --git a/docs/tools/pulsar_admin_tenant.md b/docs/tools/pulsar_admin_tenant.md new file mode 100644 index 0000000..9a9f5e7 --- /dev/null +++ b/docs/tools/pulsar_admin_tenant.md @@ -0,0 +1,17 @@ +#### pulsar_admin_tenant + +Manage Pulsar tenants, which are the highest level administrative units. + +- **list**: List all tenants in the Pulsar instance +- **get**: Get configuration details for a specific tenant + - `tenant` (string, required): The tenant name +- **create**: Create a new tenant + - `tenant` (string, required): The tenant name + - `admin_roles` (array, optional): List of roles with admin permissions + - `allowed_clusters` (array, required): List of clusters tenant can access +- **update**: Update configuration for an existing tenant + - `tenant` (string, required): The tenant name + - `admin_roles` (array, optional): List of roles with admin permissions + - `allowed_clusters` (array, required): List of clusters tenant can access +- **delete**: Delete a tenant + - `tenant` (string, required): The tenant name \ No newline at end of file diff --git a/docs/tools/pulsar_admin_topic.md b/docs/tools/pulsar_admin_topic.md new file mode 100644 index 0000000..1f88d8c --- /dev/null +++ b/docs/tools/pulsar_admin_topic.md @@ -0,0 +1,48 @@ +#### pulsar_admin_topic + +Manage Apache Pulsar topics. Topics are the core messaging entities in Pulsar that store and transmit messages. Pulsar supports two types of topics: persistent (durable storage with guaranteed delivery) and non-persistent (in-memory with at-most-once delivery). Topics can be partitioned for parallel processing and higher throughput. + +- **topic** + - **get**: Get metadata for a topic + - `topic` (string, required): The fully qualified topic name + - **create**: Create a new topic with optional partitions + - `topic` (string, required): The fully qualified topic name + - `partitions` (number, required): The number of partitions (0 for non-partitioned) + - **delete**: Delete a topic + - `topic` (string, required): The fully qualified topic name + - `force` (boolean, optional): Force operation even if it disrupts producers/consumers + - `non-partitioned` (boolean, optional): Delete only the non-partitioned topic with the same name + - **stats**: Get statistics for a topic + - `topic` (string, required): The fully qualified topic name + - `partitioned` (boolean, optional): Get stats for a partitioned topic + - `per-partition` (boolean, optional): Include per-partition stats + - **lookup**: Look up the broker serving a topic + - `topic` (string, required): The fully qualified topic name + - **internal-stats**: Get internal stats for a topic + - `topic` (string, required): The fully qualified topic name + - **internal-info**: Get internal info for a topic + - `topic` (string, required): The fully qualified topic name + - **bundle-range**: Get the bundle range of a topic + - `topic` (string, required): The fully qualified topic name + - **last-message-id**: Get the last message ID of a topic + - `topic` (string, required): The fully qualified topic name + - **status**: Get the status of a topic + - `topic` (string, required): The fully qualified topic name + - **unload**: Unload a topic from broker memory + - `topic` (string, required): The fully qualified topic name + - **terminate**: Terminate a topic (close all producers and mark as inactive) + - `topic` (string, required): The fully qualified topic name + - **compact**: Trigger compaction on a topic + - `topic` (string, required): The fully qualified topic name + - **update**: Update the number of partitions for a topic + - `topic` (string, required): The fully qualified topic name + - `partitions` (number, required): The new number of partitions + - **offload**: Offload data from a topic to long-term storage + - `topic` (string, required): The fully qualified topic name + - `messageId` (string, required): Message ID up to which to offload (format: ledgerId:entryId) + - **offload-status**: Check the status of data offloading for a topic + - `topic` (string, required): The fully qualified topic name + +- **topics** + - **list**: List all topics in a namespace + - `namespace` (string, required): The namespace name (format: tenant/namespace) \ No newline at end of file diff --git a/docs/tools/pulsar_admin_topic_policy.md b/docs/tools/pulsar_admin_topic_policy.md new file mode 100644 index 0000000..da28715 --- /dev/null +++ b/docs/tools/pulsar_admin_topic_policy.md @@ -0,0 +1,14 @@ +#### pulsar_admin_topic_policy + +Manage Pulsar topic-level policies, which override namespace-level policies. + +- **get**: Get policies for a topic + - `topic` (string, required): The fully qualified topic name + - `policy_type` (string, required): Type of policy to retrieve +- **set**: Set a policy for a topic + - `topic` (string, required): The fully qualified topic name + - `policy_type` (string, required): Type of policy to set + - `policy_value` (string/object, required): Policy value +- **delete**: Remove a policy from a topic + - `topic` (string, required): The fully qualified topic name + - `policy_type` (string, required): Type of policy to remove \ No newline at end of file diff --git a/docs/tools/pulsar_client_consume.md b/docs/tools/pulsar_client_consume.md new file mode 100644 index 0000000..1cc9f88 --- /dev/null +++ b/docs/tools/pulsar_client_consume.md @@ -0,0 +1,17 @@ +#### pulsar_client_consume + +Consume messages from a Pulsar topic. This tool allows you to consume messages from a specified Pulsar topic with various options to control the subscription behavior, message processing, and display format. + +- **pulsar_client_consume** + - `topic` (string, required): Topic to consume from + - `subscription-name` (string, required): Subscription name + - `subscription-type` (string, optional): Subscription type (default: exclusive) + - Options: exclusive, shared, failover, key_shared + - `subscription-mode` (string, optional): Subscription mode (default: durable) + - Options: durable, non-durable + - `initial-position` (string, optional): Initial position (default: latest) + - Options: latest (consume from the latest message), earliest (consume from the earliest message) + - `num-messages` (number, optional): Number of messages to consume (0 for unlimited, default: 0) + - `timeout` (number, optional): Timeout for consuming messages in seconds (default: 30) + - `show-properties` (boolean, optional): Show message properties (default: false) + - `hide-payload` (boolean, optional): Hide message payload (default: false) \ No newline at end of file diff --git a/docs/tools/pulsar_client_produce.md b/docs/tools/pulsar_client_produce.md new file mode 100644 index 0000000..5601d00 --- /dev/null +++ b/docs/tools/pulsar_client_produce.md @@ -0,0 +1,14 @@ +#### pulsar_client_produce + +Produce messages to a Pulsar topic. This tool allows you to send messages to a specified Pulsar topic with various options to control message format, batching, and properties. + +- **pulsar_client_produce** + - `topic` (string, required): Topic to produce to + - `messages` (array, required): Messages to send. Specify multiple times for multiple messages + - `num-produce` (number, optional): Number of times to send message(s) (default: 1) + - `rate` (number, optional): Rate (in msg/sec) at which to produce, 0 means produce as fast as possible (default: 0) + - `disable-batching` (boolean, optional): Disable batch sending of messages (default: false) + - `chunking` (boolean, optional): Should split the message and publish in chunks if message size is larger than allowed max size (default: false) + - `separator` (string, optional): Character to split messages string on (default: none) + - `properties` (array, optional): Properties to add, key=value format. Specify multiple times for multiple properties + - `key` (string, optional): Partitioning key to add to each message \ No newline at end of file diff --git a/docs/tools/streamnative_cloud.md b/docs/tools/streamnative_cloud.md new file mode 100644 index 0000000..8307707 --- /dev/null +++ b/docs/tools/streamnative_cloud.md @@ -0,0 +1,80 @@ +#### sncloud_context_available_clusters + +Display the available Pulsar clusters for the current organization on StreamNative Cloud. This information helps you select the appropriate cluster when setting your context. + +- **sncloud_context_available_clusters** + - No parameters required + +You can use `sncloud_context_use_cluster` to change the context to a specific cluster. You will need to ask for user confirmation of the target context cluster if there are multiple clusters available. + +--- + +#### sncloud_context_use_cluster + +Set the current context to a specific StreamNative Cloud cluster. Once you set the context, you can use Pulsar and Kafka tools to interact with the cluster. + +- **sncloud_context_use_cluster** + - `instanceName` (string, required): The name of the Pulsar instance to use + - `clusterName` (string, required): The name of the Pulsar cluster to use + +If you encounter `ContextNotSetErr`, please use `sncloud_context_available_clusters` to list the available clusters and set the context to a specific cluster. + +--- + +#### sncloud_context_whoami + +Display the currently logged-in service account. Returns the name of the authenticated service account and the organization. + +- **sncloud_context_whoami** + - No parameters required + +This tool returns a JSON object containing the service account name and organization. + +--- + +#### sncloud_logs + +Display logs of resources in StreamNative Cloud, including Pulsar functions, source connectors, sink connectors, and Kafka Connect connectors. This tool helps debug issues with resources in StreamNative Cloud and works with the current context cluster. + +- **sncloud_logs** + - `component` (string, required): The component type to get logs from + - Options: sink, source, function, kafka-connect + - `name` (string, required): The name of the resource to get logs from + - `tenant` (string, required): The Pulsar tenant of the resource (default: "public") + - Required for Pulsar functions, sources, and sinks + - Optional for Kafka Connect connectors + - `namespace` (string, required): The Pulsar namespace of the resource (default: "default") + - Required for Pulsar functions, sources, and sinks + - Optional for Kafka Connect connectors + - `size` (string, optional): Number of log lines to retrieve (default: "20") + - `replica_id` (number, optional): The replica index for resources with multiple replicas (default: -1, which means all replicas) + - `timestamp` (string, optional): Start timestamp of logs in milliseconds (e.g., "1662430984225") + - `since` (string, optional): Retrieve logs from a relative time in the past (e.g., "1h" for one hour ago) + - `previous_container` (boolean, optional): Return logs from previously terminated container (default: false) + +--- + +#### sncloud_resources_apply + +Apply (create or update) StreamNative Cloud resources from JSON definitions. This tool can be used to manage infrastructure resources such as PulsarInstances and PulsarClusters in your StreamNative Cloud organization. + +- **sncloud_resources_apply** + - `json_content` (string, required): The JSON content to apply, defining the resource according to the StreamNative Cloud API schema + - `dry_run` (boolean, optional): If true, only validate the resource without applying it to the server (default: false) + +Supported resource types: +- PulsarInstance (apiVersion: cloud.streamnative.io/v1alpha1) +- PulsarCluster (apiVersion: cloud.streamnative.io/v1alpha1) + +--- + +#### sncloud_resources_delete + +Delete StreamNative Cloud resources. This tool removes resources from your StreamNative Cloud organization. + +- **sncloud_resources_delete** + - `name` (string, required): The name of the resource to delete + - `type` (string, required): The type of the resource to delete + - Options: PulsarInstance, PulsarCluster + +This is a destructive operation that cannot be undone. Use with caution. \ No newline at end of file diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go index 361911f..ec71b23 100644 --- a/pkg/mcp/pulsar_client_consume_tools.go +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -59,35 +59,17 @@ func PulsarClientAddConsumerTools(s *server.MCPServer, _ bool, features []string ", earliest (consume from the earliest message) (default: latest)"), ), mcp.WithNumber("num-messages", - mcp.Description("Number of messages to consume (0 for unlimited, default: 0)"), + mcp.Description("Number of messages to consume (default: 10)"), ), mcp.WithNumber("timeout", mcp.Description("Timeout for consuming messages in seconds (default: 30)"), ), - mcp.WithBoolean("regex", - mcp.Description("Treat the topic as a regex pattern (default: false)"), - ), - mcp.WithString("schema", - mcp.Description("Schema type: string, json, avro, protobuf"), - ), - mcp.WithNumber("max-redeliver-count", - mcp.Description("Maximum redelivery count for dead letter queue (0 to disable, default: 0)"), - ), - mcp.WithString("dlq-topic", - mcp.Description("Dead letter queue topic"), - ), mcp.WithBoolean("show-properties", mcp.Description("Show message properties (default: false)"), ), mcp.WithBoolean("hide-payload", mcp.Description("Hide message payload (default: false)"), ), - mcp.WithBoolean("read-compacted", - mcp.Description("Read compacted topic (default: false)"), - ), - mcp.WithNumber("receiver-queue-size", - mcp.Description("Size of the consumer receive queue (default: 1000)"), - ), ) s.AddTool(consumeTool, handleClientConsume) } @@ -120,7 +102,7 @@ func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp initialPosition = val } - numMessages := 0 + numMessages := 10 if val, exists := optionalParam[float64](request.Params.Arguments, "num-messages"); exists { numMessages = int(val) } @@ -130,21 +112,6 @@ func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp timeout = int(val) } - regex := false - if val, exists := optionalParam[bool](request.Params.Arguments, "regex"); exists { - regex = val - } - - var maxRedeliverCount int32 - if val, exists := optionalParam[float64](request.Params.Arguments, "max-redeliver-count"); exists { - maxRedeliverCount = int32(val) - } - - dlqTopic := "" - if val, exists := optionalParam[string](request.Params.Arguments, "dlq-topic"); exists { - dlqTopic = val - } - showProperties := false if val, exists := optionalParam[bool](request.Params.Arguments, "show-properties"); exists { showProperties = val @@ -155,16 +122,6 @@ func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp hidePayload = val } - readCompacted := false - if val, exists := optionalParam[bool](request.Params.Arguments, "read-compacted"); exists { - readCompacted = val - } - - receiverQueueSize := 1000 - if val, exists := optionalParam[float64](request.Params.Arguments, "receiver-queue-size"); exists { - receiverQueueSize = int(val) - } - // Setup client client, err := mcppulsar.GetPulsarClient() if err != nil { @@ -174,18 +131,11 @@ func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp // Prepare consumer options consumerOpts := pulsar.ConsumerOptions{ - Name: "snmcp-consumer", - ReceiverQueueSize: receiverQueueSize, - ReadCompacted: readCompacted, - SubscriptionName: subscriptionName, + Name: "snmcp-consumer", + SubscriptionName: subscriptionName, } - // Set topic or topics pattern - if regex { - consumerOpts.TopicsPattern = topic - } else { - consumerOpts.Topic = topic - } + consumerOpts.Topic = topic // Set subscription type switch strings.ToLower(subscriptionType) { @@ -221,19 +171,6 @@ func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultError(fmt.Sprintf("Invalid initial position: %s", initialPosition)), nil } - // Set DLQ policy if specified - if maxRedeliverCount > 0 { - if dlqTopic == "" { - return mcp.NewToolResultError("DLQ topic is required when max-redeliver-count is specified"), nil - } - consumerOpts.DLQ = &pulsar.DLQPolicy{ - //nolint:gosec - MaxDeliveries: uint32(maxRedeliverCount), - DeadLetterTopic: dlqTopic, - RetryLetterTopic: fmt.Sprintf("%s-retry", dlqTopic), - } - } - // Create consumer consumer, err := client.Subscribe(consumerOpts) if err != nil { diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index a1d7a0d..16d33d4 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -21,7 +21,6 @@ import ( "context" "encoding/json" "fmt" - "os" "slices" "strings" "time" @@ -49,9 +48,6 @@ func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string mcp.WithArray("messages", mcp.Description("Messages to send. Specify multiple times for multiple messages. IMPORTANT: Use this parameter to provide message content."), ), - mcp.WithArray("files", - mcp.Description("Files to send as message content. Specify multiple times for multiple files."), - ), mcp.WithNumber("num-produce", mcp.Description("Number of times to send message(s) (default: 1)"), ), @@ -94,16 +90,7 @@ func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp } } - files := []string{} - if val, exists := optionalParam[[]interface{}](request.Params.Arguments, "files"); exists && len(val) > 0 { - for _, f := range val { - if strFile, ok := f.(string); ok { - files = append(files, strFile) - } - } - } - - if len(messages) == 0 && len(files) == 0 { + if len(messages) == 0 { return mcp.NewToolResultError("Please supply message content with 'messages' parameter."), nil } @@ -187,7 +174,7 @@ func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp defer producer.Close() // Generate message bodies from messages and files - messagePayloads, err := generateMessagePayloads(messages, files) + messagePayloads, err := generateMessagePayloads(messages) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to generate message payloads: %v", err)), nil } @@ -262,8 +249,8 @@ func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultText(string(jsonBytes)), nil } -// generateMessagePayloads generates message payloads from message strings and files -func generateMessagePayloads(messages []string, files []string) ([][]byte, error) { +// generateMessagePayloads generates message payloads from message strings +func generateMessagePayloads(messages []string) ([][]byte, error) { var payloads [][]byte // Add message strings @@ -271,14 +258,5 @@ func generateMessagePayloads(messages []string, files []string) ([][]byte, error payloads = append(payloads, []byte(msg)) } - // Add file contents - for _, file := range files { - data, err := os.ReadFile(file) - if err != nil { - return nil, fmt.Errorf("failed to read file %s: %w", file, err) - } - payloads = append(payloads, data) - } - return payloads, nil } From 8870655706c9c825f91fa01155edff2193e6cd95 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 13 May 2025 09:42:20 +0800 Subject: [PATCH 15/85] fix README (#24) --- README.md | 2 +- ..._admin_cluster.md => pulsar_admin_clusters.md} | 0 docs/tools/pulsar_admin_functions_worker.md | 15 +++++++++++++++ ...in_namespace.md => pulsar_admin_namespaces.md} | 0 ..._admin_package.md => pulsar_admin_packages.md} | 0 ...cequota.md => pulsar_admin_resource_quotas.md} | 0 ...ar_admin_schema.md => pulsar_admin_schemas.md} | 0 ...scription.md => pulsar_admin_subscriptions.md} | 0 ...ar_admin_tenant.md => pulsar_admin_tenants.md} | 0 ...lsar_admin_topic.md => pulsar_admin_topics.md} | 0 10 files changed, 16 insertions(+), 1 deletion(-) rename docs/tools/{pulsar_admin_cluster.md => pulsar_admin_clusters.md} (100%) create mode 100644 docs/tools/pulsar_admin_functions_worker.md rename docs/tools/{pulsar_admin_namespace.md => pulsar_admin_namespaces.md} (100%) rename docs/tools/{pulsar_admin_package.md => pulsar_admin_packages.md} (100%) rename docs/tools/{pulsar_admin_resourcequota.md => pulsar_admin_resource_quotas.md} (100%) rename docs/tools/{pulsar_admin_schema.md => pulsar_admin_schemas.md} (100%) rename docs/tools/{pulsar_admin_subscription.md => pulsar_admin_subscriptions.md} (100%) rename docs/tools/{pulsar_admin_tenant.md => pulsar_admin_tenants.md} (100%) rename docs/tools/{pulsar_admin_topic.md => pulsar_admin_topics.md} (100%) diff --git a/README.md b/README.md index 2e3e3bc..89a8b87 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ The StreamNative MCP Server allows you to enable or disable specific groups of f | `pulsar-admin-functions-worker`| Manage Pulsar Function workers | [pulsar_admin_functions_worker.md](docs/tools/pulsar_admin_functions_worker.md) | | `pulsar-admin-namespaces` | Manage Pulsar namespaces | [pulsar_admin_namespaces.md](docs/tools/pulsar_admin_namespaces.md) | | `pulsar-admin-namespace-policy`| Configure Pulsar namespace policies | [pulsar_admin_namespace_policy.md](docs/tools/pulsar_admin_namespace_policy.md) | -| `pulsar-admin-isolation-policy`| Manage namespace isolation policies | [pulsar_admin_isolation_policy.md](docs/tools/pulsar_admin_isolation_policy.md) | +| `pulsar-admin-isolation-policy`| Manage namespace isolation policies | [pulsar_admin_nsisolationpolicy.md](docs/tools/pulsar_admin_nsisolationpolicy.md) | | `pulsar-admin-packages` | Manage Pulsar packages | [pulsar_admin_packages.md](docs/tools/pulsar_admin_packages.md) | | `pulsar-admin-resource-quotas` | Configure resource quotas | [pulsar_admin_resource_quotas.md](docs/tools/pulsar_admin_resource_quotas.md) | | `pulsar-admin-schemas` | Manage Pulsar schemas | [pulsar_admin_schemas.md](docs/tools/pulsar_admin_schemas.md) | diff --git a/docs/tools/pulsar_admin_cluster.md b/docs/tools/pulsar_admin_clusters.md similarity index 100% rename from docs/tools/pulsar_admin_cluster.md rename to docs/tools/pulsar_admin_clusters.md diff --git a/docs/tools/pulsar_admin_functions_worker.md b/docs/tools/pulsar_admin_functions_worker.md new file mode 100644 index 0000000..249f393 --- /dev/null +++ b/docs/tools/pulsar_admin_functions_worker.md @@ -0,0 +1,15 @@ +#### pulsar_admin_functions_worker + +Unified tool for managing Apache Pulsar Functions Worker resources. + +- **resource** (string, required): Type of functions worker resource to access + - **function_stats**: Get statistics for all functions running on this functions worker + - No additional parameters required + - **monitoring_metrics**: Get metrics for monitoring function workers + - No additional parameters required + - **cluster**: Get information about the function worker cluster + - No additional parameters required + - **cluster_leader**: Get the leader of the worker cluster + - No additional parameters required + - **function_assignments**: Get the assignments of functions across the worker cluster + - No additional parameters required diff --git a/docs/tools/pulsar_admin_namespace.md b/docs/tools/pulsar_admin_namespaces.md similarity index 100% rename from docs/tools/pulsar_admin_namespace.md rename to docs/tools/pulsar_admin_namespaces.md diff --git a/docs/tools/pulsar_admin_package.md b/docs/tools/pulsar_admin_packages.md similarity index 100% rename from docs/tools/pulsar_admin_package.md rename to docs/tools/pulsar_admin_packages.md diff --git a/docs/tools/pulsar_admin_resourcequota.md b/docs/tools/pulsar_admin_resource_quotas.md similarity index 100% rename from docs/tools/pulsar_admin_resourcequota.md rename to docs/tools/pulsar_admin_resource_quotas.md diff --git a/docs/tools/pulsar_admin_schema.md b/docs/tools/pulsar_admin_schemas.md similarity index 100% rename from docs/tools/pulsar_admin_schema.md rename to docs/tools/pulsar_admin_schemas.md diff --git a/docs/tools/pulsar_admin_subscription.md b/docs/tools/pulsar_admin_subscriptions.md similarity index 100% rename from docs/tools/pulsar_admin_subscription.md rename to docs/tools/pulsar_admin_subscriptions.md diff --git a/docs/tools/pulsar_admin_tenant.md b/docs/tools/pulsar_admin_tenants.md similarity index 100% rename from docs/tools/pulsar_admin_tenant.md rename to docs/tools/pulsar_admin_tenants.md diff --git a/docs/tools/pulsar_admin_topic.md b/docs/tools/pulsar_admin_topics.md similarity index 100% rename from docs/tools/pulsar_admin_topic.md rename to docs/tools/pulsar_admin_topics.md From 9852d7ccbb81bebc4d0ad16a5e324eb4f00d3c5e Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Mon, 12 May 2025 19:26:02 -0700 Subject: [PATCH 16/85] Support start mcp server in SSE (#17) --- README.md | 77 +++++++++++++- cmd/streamnative-mcp-server/main.go | 1 + go.mod | 2 +- go.sum | 4 +- pkg/cmd/mcp/mcp.go | 4 + pkg/cmd/mcp/server.go | 107 ++++++++++++++++++++ pkg/cmd/mcp/sse.go | 127 ++++++++++++++++++++++++ pkg/cmd/mcp/stdio.go | 82 +-------------- pkg/mcp/streamnative_resources_tools.go | 2 +- 9 files changed, 320 insertions(+), 86 deletions(-) create mode 100644 pkg/cmd/mcp/server.go create mode 100644 pkg/cmd/mcp/sse.go diff --git a/README.md b/README.md index 89a8b87..300f0e9 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ If you want to access to your StreamNative Cloud, you will need to have followin ### Start the MCP Server +#### Using stdio Server + ```bash # Start MCP server with StreamNative Cloud authentication bin/snmcp stdio --organization my-org --key-file /path/to/key-file.json @@ -68,6 +70,19 @@ snmcp stdio --use-external-pulsar --pulsar-web-service-url http://pulsar.example bin/snmcp stdio --use-external-pulsar --pulsar-web-service-url http://pulsar.example.com:8080 --pulsar-token "xxx" ``` +#### Using SSE (Server-Sent Events) Server + +```bash +# Start MCP server with SSE and StreamNative Cloud authentication +snmcp sse --http-addr :9090 --http-path /mcp --organization my-org --key-file /path/to/key-file.json + +# Start MCP server with SSE and external Kafka +snmcp sse --http-addr :9090 --http-path /mcp --use-external-kafka --kafka-bootstrap-servers localhost:9092 + +# Start MCP server with SSE and external Pulsar +snmcp sse --http-addr :9090 --http-path /mcp --use-external-pulsar --pulsar-web-service-url http://pulsar.example.com:8080 +``` + ### Command-line Options ``` @@ -117,6 +132,8 @@ Flags: --server string The server to connect to (default "https://api.streamnative.cloud") --use-external-kafka Use external Kafka --use-external-pulsar Use external Pulsar + --http-addr string HTTP server address (default ":9090") + --http-path string HTTP server path for SSE endpoint (default "/mcp") -v, --version version for snmcp ``` @@ -190,6 +207,32 @@ You can combine these features as needed using the `--features` flag. For exampl bin/snmcp stdio --organization my-org --key-file /path/to/key-file.json --features pulsar-client ``` +## Inspecting the MCP Server + +You can use the [@modelcontextprotocol/inspector](https://www.npmjs.com/package/@modelcontextprotocol/inspector) tool to inspect and test your MCP server. This is particularly useful for debugging and verifying your server's configuration. + +### Installation + +```bash +npm install -g @modelcontextprotocol/inspector +``` + +### Usage + +```bash +# Inspect a stdio server +mcp-inspector stdio --command "snmcp stdio --organization my-org --key-file /path/to/key-file.json" + +# Inspect an SSE server +mcp-inspector sse --url "http://localhost:9090/mcp" +``` + +The inspector provides a web interface where you can: +- View available tools and their schemas +- Test tool invocations +- Monitor server responses +- Debug connection issues + ## Integration with MCP Clients This server can be used with any MCP-compatible client, such as: @@ -204,10 +247,12 @@ Without it, you may encounter the error: `message will exceed the length limit f ### Usage with Claude Desktop +#### Using stdio Server + ```json { "mcpServers": { - "snmcp": { + "mcp-streamnative": { "command": "${PATH_TO_SNMCP}/bin/snmcp", "args": [ "stdio", @@ -223,6 +268,36 @@ Without it, you may encounter the error: `message will exceed the length limit f Please remember to replace `${PATH_TO_SNMCP}` with the actual path to the `snmcp` binary and `${STREAMNATIVE_CLOUD_ORGANIZATION_ID}` and `${STREAMNATIVE_CLOUD_KEY_FILE}` with your StreamNative Cloud organization ID and key file path, respectively. +#### Using SSE Server + +First, install the mcp-proxy tool: + +```bash +pip install mcp-proxy +``` + +Then configure Claude Desktop to use the SSE server: + +```json +{ + "mcpServers": { + "mcp-streamnative-proxy": { + "command": "mcp-proxy", + "args": [ + "http://localhost:9090/mcp/sse" + ] + } + } +} +``` + +Note: If mcp-proxy is not in your system PATH, you'll need to provide the full path to the executable. For example: +- On macOS: `/Library/Frameworks/Python.framework/Versions/3.11/bin/mcp-proxy` +- On Linux: `/usr/local/bin/mcp-proxy` +- On Windows: `C:\Python311\Scripts\mcp-proxy.exe` + +Please remember to replace `http://localhost:9090/mcp/sse` with the right URL. + ## About Model Context Protocol (MCP) The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs. MCP helps build agents and complex workflows on top of LLMs by providing: diff --git a/cmd/streamnative-mcp-server/main.go b/cmd/streamnative-mcp-server/main.go index f42e420..7a7c5a4 100644 --- a/cmd/streamnative-mcp-server/main.go +++ b/cmd/streamnative-mcp-server/main.go @@ -66,6 +66,7 @@ to interact with StreamNative Cloud resources and services.`, o.AddFlags(rootCmd) // Add subcommands rootCmd.AddCommand(mcp.NewCmdMcpStdioServer(o)) + rootCmd.AddCommand(mcp.NewCmdMcpSseServer(o)) rootCmd.SetVersionTemplate("{{.Short}}\n{{.Version}}\n") diff --git a/go.mod b/go.mod index ec12368..5baada5 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/apache/pulsar-client-go v0.13.1 github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/hamba/avro/v2 v2.28.0 - github.com/mark3labs/mcp-go v0.26.0 + github.com/mark3labs/mcp-go v0.27.0 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index 0f4bfb7..bcde759 100644 --- a/go.sum +++ b/go.sum @@ -129,8 +129,8 @@ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mark3labs/mcp-go v0.26.0 h1:xz/Kv1cHLYovF8txv6btBM39/88q3YOjnxqhi51jB0w= -github.com/mark3labs/mcp-go v0.26.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.27.0 h1:iok9kU4DUIU2/XVLgFS2Q9biIDqstC0jY4EQTK2Erzc= +github.com/mark3labs/mcp-go v0.27.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= diff --git a/pkg/cmd/mcp/mcp.go b/pkg/cmd/mcp/mcp.go index 5db31f7..efb6b41 100644 --- a/pkg/cmd/mcp/mcp.go +++ b/pkg/cmd/mcp/mcp.go @@ -36,6 +36,8 @@ type ServerOptions struct { LogFile string LogCommands bool Features []string + HTTPAddr string + HTTPPath string *config.Options } @@ -160,6 +162,8 @@ func (o *ServerOptions) AddFlags(cmd *cobra.Command) { cmd.PersistentFlags().StringVar(&o.LogFile, "log-file", "", "Path to log file") cmd.PersistentFlags().BoolVar(&o.LogCommands, "enable-command-logging", false, "When enabled, the server will log all command requests and responses to the log file") cmd.PersistentFlags().StringSliceVar(&o.Features, "features", []string{}, "Features to enable, defaults to `all`") + cmd.PersistentFlags().StringVar(&o.HTTPAddr, "http-addr", "", "HTTP address") + cmd.PersistentFlags().StringVar(&o.HTTPPath, "http-path", "", "HTTP path") } func (o *ServerOptions) newClientCredentialsFlow( diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go new file mode 100644 index 0000000..ad6cda4 --- /dev/null +++ b/pkg/cmd/mcp/server.go @@ -0,0 +1,107 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + stdlog "log" + "os" + + "github.com/mark3labs/mcp-go/server" + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp" +) + +func newMcpServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *server.MCPServer { + snConfig := configOpts.Options.LoadConfigOrDie() + var s *server.MCPServer + switch { + case snConfig.KeyFile != "": + { + issuer := snConfig.Auth.Issuer() + userName, err := configOpts.Options.WhoAmI(issuer.Audience) + if err != nil { + stdlog.Fatalf("failed to get user name: %v", err) + os.Exit(1) + } + // Create a new MCP server + s = server.NewMCPServer( + "streamnative-mcp-server", + "0.0.1", + server.WithResourceCapabilities(true, true), + server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName, snConfig)), + server.WithLogging()) + + mcp.RegisterPrompts(s) + mcp.RegisterContextTools(s, configOpts.Features) + mcp.StreamNativeAddLogTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.StreamNativeAddResourceTools(s, configOpts.ReadOnly, configOpts.Features) + } + case snConfig.ExternalKafka != nil: + { + s = server.NewMCPServer( + "streamnative-mcp-server/kafka", + "0.0.1", + server.WithResourceCapabilities(true, true), + server.WithInstructions(mcp.GetExternalKafkaServerInstructions(snConfig.ExternalKafka.BootstrapServers)), + server.WithLogging()) + } + case snConfig.ExternalPulsar != nil: + { + s = server.NewMCPServer( + "streamnative-mcp-server/pulsar", + "0.0.1", + server.WithResourceCapabilities(true, true), + server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL)), + server.WithLogging()) + } + default: + { + stdlog.Fatalf("no valid configuration found") + os.Exit(1) + } + } + + mcp.PulsarAdminAddBrokersTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddBrokerStatsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddClusterTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddFunctionsWorkerTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNamespaceTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNamespacePolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSchemasTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSubscriptionTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTenantTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSinksTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddFunctionsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSourcesTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTopicPolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) + + mcp.KafkaAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddPartitionsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddGroupsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddSchemaRegistryTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddKafkaConnectTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaClientAddConsumeTools(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) + mcp.KafkaClientAddProduceTools(s, configOpts.ReadOnly, configOpts.Features) + return s +} diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go new file mode 100644 index 0000000..f46431c --- /dev/null +++ b/pkg/cmd/mcp/sse.go @@ -0,0 +1,127 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "context" + "fmt" + "net/http" + "os" + "os/signal" + "syscall" + "time" + + stdlog "log" + + "github.com/mark3labs/mcp-go/server" + "github.com/pkg/errors" + "github.com/spf13/cobra" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp" +) + +func NewCmdMcpSseServer(configOpts *ServerOptions) *cobra.Command { + sseCmd := &cobra.Command{ + Use: "sse", + Short: "Start SSE server", + Long: `Start a server that communicates via HTTP with Server-Sent Events (SSE) for streaming MCP messages.`, + Run: func(_ *cobra.Command, _ []string) { + if err := runSseServer(configOpts); err != nil { + fmt.Fprintf(os.Stderr, "failed to run SSE server: %v\n", err) + } + }, + PersistentPreRunE: func(_ *cobra.Command, _ []string) error { + return configOpts.Complete() + }, + } + + // Add SSE server specific flags + sseCmd.Flags().StringVar(&configOpts.HTTPAddr, "http-addr", ":9090", "HTTP server address") + sseCmd.Flags().StringVar(&configOpts.HTTPPath, "http-path", "/mcp", "HTTP server path for SSE endpoint") + + return sseCmd +} + +func runSseServer(configOpts *ServerOptions) error { + // 1. Create a cancellable context that fires on SIGINT / SIGTERM + ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) + defer stop() + + // 2. Initialize logger if log file specified + logger, err := initLogger(configOpts.LogFile) + if err != nil { + stdlog.Fatal("Failed to initialize logger:", err) + } + + // 3. Create a new MCP server + ctx = context.WithValue(ctx, mcp.OptionsKey, configOpts.Options) + mcpServer := server.NewSSEServer( + newMcpServer(configOpts, logger), + server.WithStaticBasePath(configOpts.HTTPPath), + server.WithHTTPContextFunc(func(ctx context.Context, _ *http.Request) context.Context { + return context.WithValue(ctx, mcp.OptionsKey, configOpts.Options) + }), + ) + + // 4. Expose the full SSE URL to the user + ssePath := mcpServer.CompleteSsePath() + fmt.Fprintf(os.Stderr, "StreamNative Cloud MCP Server listening on http://%s%s\n", + configOpts.HTTPAddr, ssePath) + + // 5. Run the HTTP listener in a goroutine + errCh := make(chan error, 1) + go func() { + if err := mcpServer.Start(configOpts.HTTPAddr); err != nil && !errors.Is(err, http.ErrServerClosed) { + errCh <- err // bubble up real crashes + } + }() + + // Give the server a moment to start + time.Sleep(100 * time.Millisecond) + + // 6. Block until Ctrl-C or an internal error + select { + case <-ctx.Done(): + // user hit Ctrl-C + fmt.Fprintln(os.Stderr, "Received shutdown signal, stopping server...") + case err := <-errCh: + // HTTP server crashed + return fmt.Errorf("sse server error: %w", err) + } + + // 7. Graceful shutdown + shCtx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + + // First try to shut down the SSE server + if err := mcpServer.Shutdown(shCtx); err != nil { + if !errors.Is(err, http.ErrServerClosed) { + logger.Errorf("Error shutting down SSE server: %v", err) + } + } + + // Wait for any remaining operations to complete + select { + case <-shCtx.Done(): + return fmt.Errorf("shutdown timed out") + case <-time.After(100 * time.Millisecond): + // Give a small grace period for cleanup + } + + fmt.Fprintln(os.Stderr, "SSE server stopped gracefully") + return nil +} diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index f6bf665..f447599 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -65,7 +65,7 @@ func runStdioServer(configOpts *ServerOptions) error { // Create a new MCP server ctx = context.WithValue(ctx, mcp.OptionsKey, configOpts.Options) stdLogger := stdlog.New(logger.Writer(), "snmcp-server", 0) - stdioServer := server.NewStdioServer(newStdioServer(configOpts, logger)) + stdioServer := server.NewStdioServer(newMcpServer(configOpts, logger)) stdioServer.SetErrorLogger(stdLogger) @@ -120,83 +120,3 @@ func initLogger(filePath string) (*logrus.Logger, error) { logger.SetOutput(fd) return logger, nil } - -func newStdioServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *server.MCPServer { - snConfig := configOpts.Options.LoadConfigOrDie() - var s *server.MCPServer - switch { - case snConfig.KeyFile != "": - { - issuer := snConfig.Auth.Issuer() - userName, err := configOpts.Options.WhoAmI(issuer.Audience) - if err != nil { - stdlog.Fatalf("failed to get user name: %v", err) - os.Exit(1) - } - // Create a new MCP server - s = server.NewMCPServer( - "streamnative-mcp-server", - "0.0.1", - server.WithResourceCapabilities(true, true), - server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName, snConfig)), - server.WithLogging()) - - mcp.RegisterPrompts(s) - mcp.RegisterContextTools(s, configOpts.Features) - mcp.StreamNativeAddLogTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.StreamNativeAddResourceTools(s, configOpts.ReadOnly, configOpts.Features) - } - case snConfig.ExternalKafka != nil: - { - s = server.NewMCPServer( - "streamnative-mcp-server/kafka", - "0.0.1", - server.WithResourceCapabilities(true, true), - server.WithInstructions(mcp.GetExternalKafkaServerInstructions(snConfig.ExternalKafka.BootstrapServers)), - server.WithLogging()) - } - case snConfig.ExternalPulsar != nil: - { - s = server.NewMCPServer( - "streamnative-mcp-server/pulsar", - "0.0.1", - server.WithResourceCapabilities(true, true), - server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL)), - server.WithLogging()) - } - default: - { - stdlog.Fatalf("no valid configuration found") - os.Exit(1) - } - } - - mcp.PulsarAdminAddBrokersTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddBrokerStatsTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddClusterTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddFunctionsWorkerTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddNamespaceTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddNamespacePolicyTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSchemasTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSubscriptionTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddTenantTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSinksTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddFunctionsTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSourcesTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddTopicPolicyTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) - - mcp.KafkaAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddPartitionsTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddGroupsTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddSchemaRegistryTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddKafkaConnectTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaClientAddConsumeTools(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) - mcp.KafkaClientAddProduceTools(s, configOpts.ReadOnly, configOpts.Features) - return s -} diff --git a/pkg/mcp/streamnative_resources_tools.go b/pkg/mcp/streamnative_resources_tools.go index 36ed6a3..9f73f58 100644 --- a/pkg/mcp/streamnative_resources_tools.go +++ b/pkg/mcp/streamnative_resources_tools.go @@ -48,7 +48,7 @@ func StreamNativeAddResourceTools(s *server.MCPServer, readOnly bool, features [ ), mcp.WithToolAnnotation(mcp.ToolAnnotation{ Title: "Delete StreamNative Cloud Resources", - DestructiveHint: true, + DestructiveHint: &[]bool{true}[0], }), ) s.AddTool(applyTool, handleStreamNativeResourcesApply) From 2e46f722cf5867c9b57fcf93e164f3ea0c7a9995 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 13 May 2025 16:59:40 +0800 Subject: [PATCH 17/85] Support docker image & brew tap for snmcp (#25) release to docker: streamnative/snmcp release to brew: streamnative/homebrew-streamnative --- .goreleaser.yaml | 28 +++- Dockerfile | 6 + README.md | 62 +++++++++ go.mod | 16 ++- go.sum | 49 ++++--- go.work | 2 +- go.work.sum | 63 +++++++++ pkg/config/options.go | 296 ++++++++++++++++++++++++++++++++++++------ 8 files changed, 461 insertions(+), 61 deletions(-) create mode 100644 Dockerfile diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 92dd958..b769b92 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -6,7 +6,8 @@ before: - go generate ./... builds: - - env: + - id: snmcp + env: - CGO_ENABLED=0 ldflags: - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} @@ -18,9 +19,11 @@ builds: - amd64 - arm64 main: ./cmd/streamnative-mcp-server + binary: snmcp archives: - - formats: tar.gz + - id: snmcp + formats: tar.gz # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- {{ .ProjectName }}_ @@ -42,6 +45,25 @@ changelog: - "^test:" release: - draft: true + draft: false prerelease: auto name_template: "StreamNative MCP Server {{.Version}}" + +dockers: + - image_templates: + - "streamnative/snmcp:{{ .Tag }}" + - "streamnative/snmcp:latest" + +brews: + - name: snmcp + skip_upload: true + repository: + owner: streamnative + name: homebrew-streamnative + commit_author: + name: streamnativebot + email: streamnativebot@streamnative.io + directory: Formula + homepage: "https://streamnative.io/" + description: "StreamNative MCP Server (snmcp)" + license: "Apache-2.0" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5f7ea33 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine:3.21 +RUN apk --no-cache add ca-certificates +WORKDIR /server +COPY snmcp /server/snmcp + +ENTRYPOINT ["/server/snmcp"] diff --git a/README.md b/README.md index 300f0e9..e72a5a7 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,33 @@ StreamNative MCP Server provides a standard interface for LLMs (Large Language M ## Installation +### Homebrew (macOS and Linux) + +The easiest way to install streamnative-mcp-server is using Homebrew: + +```bash +# Add the tap repository +brew tap streamnative/streamnative + +# Install streamnative-mcp-server +brew install streamnative/streamnative/snmcp +``` + +### Docker Image + +StreamNative MCP Server releases the Docker Image to [streamnative/snmcp](https://hub.docker.com/r/streamnative/snmcp), and it can be used to run both stdio server and sse server via docker command. + +```bash +# Pull image from Docker Hub +docker pull streamnative/snmcp +``` + +### From Github Release + +Visit https://github.com/streamnative/streamnative-mcp-server/releases to get the latest binary of StreamNative MCP Server. + +### From Source + ```bash # Clone the repository git clone https://github.com/streamnative/streamnative-mcp-server.git @@ -68,6 +95,9 @@ bin/snmcp stdio --use-external-kafka --kafka-bootstrap-servers localhost:9092 -- # Start MCP server with external Pulsar snmcp stdio --use-external-pulsar --pulsar-web-service-url http://pulsar.example.com:8080 bin/snmcp stdio --use-external-pulsar --pulsar-web-service-url http://pulsar.example.com:8080 --pulsar-token "xxx" + +# Start MCP server with SSE by docker with StreamNative Cloud authentication +docker run -i --rm -e SNMCP_ORGANIZATION=my-org -e SNMCP_KEY_FILE=/key.json -v /path/to/key-file.json:/key.json -p 9090:9090 streamnative/snmcp stdio ``` #### Using SSE (Server-Sent Events) Server @@ -81,6 +111,9 @@ snmcp sse --http-addr :9090 --http-path /mcp --use-external-kafka --kafka-bootst # Start MCP server with SSE and external Pulsar snmcp sse --http-addr :9090 --http-path /mcp --use-external-pulsar --pulsar-web-service-url http://pulsar.example.com:8080 + +# Start MCP server with SSE by docker with StreamNative Cloud authentication +docker run -i --rm -e SNMCP_ORGANIZATION=my-org -e SNMCP_KEY_FILE=/key.json -v /path/to/key-file.json:/key.json -p 9090:9090 streamnative/snmcp sse ``` ### Command-line Options @@ -268,6 +301,35 @@ Without it, you may encounter the error: `message will exceed the length limit f Please remember to replace `${PATH_TO_SNMCP}` with the actual path to the `snmcp` binary and `${STREAMNATIVE_CLOUD_ORGANIZATION_ID}` and `${STREAMNATIVE_CLOUD_KEY_FILE}` with your StreamNative Cloud organization ID and key file path, respectively. +Optionally, you can use docker image to start the stdio server if you have [Docker](https://www.docker.com/) installed. + +```json +{ + "mcpServers": { + "mcp-streamnative": { + "command": "docker", + "args": [ + "run", + "-i", + "--rm", + "-e", + "SNMCP_ORGANIZATION", + "-e", + "SNMCP_KEY_FILE", + "-v", + "${STREAMNATIVE_CLOUD_KEY_FILE}:/key.json", + "streamnative/snmcp", + "stdio" + ], + "env": { + "SNMCP_ORGANIZATION": "${STREAMNATIVE_CLOUD_ORGANIZATION_ID}", + "SNMCP_KEY_FILE": "/key.json" + } + } + } +} +``` + #### Using SSE Server First, install the mcp-proxy tool: diff --git a/go.mod b/go.mod index 5baada5..923ebc3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/streamnative/streamnative-mcp-server -go 1.24.1 +go 1.24.3 require ( github.com/99designs/keyring v1.2.2 @@ -12,6 +12,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.9.1 + github.com/spf13/viper v1.20.1 github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver v0.0.0-20250506174209-b67ea08ddd82 github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect v0.0.0-00010101000000-000000000000 @@ -37,7 +38,9 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/fatih/color v1.7.0 // indirect + github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect + github.com/go-viper/mapstructure/v2 v2.2.1 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.2 // indirect @@ -60,6 +63,7 @@ require ( github.com/mtibben/percent v0.2.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/onsi/gomega v1.35.1 // indirect + github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/pierrec/lz4 v2.0.5+incompatible // indirect github.com/pierrec/lz4/v4 v4.1.22 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect @@ -68,19 +72,25 @@ require ( github.com/prometheus/common v0.55.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/sagikazarmark/locafero v0.7.0 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect + github.com/spf13/afero v1.12.0 // indirect github.com/spf13/cast v1.7.1 // indirect github.com/spf13/pflag v1.0.6 // indirect - github.com/stretchr/testify v1.10.0 // indirect + github.com/subosito/gotenv v1.6.0 // indirect github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect go.uber.org/atomic v1.11.0 // indirect + go.uber.org/multierr v1.9.0 // indirect golang.org/x/crypto v0.36.0 // indirect golang.org/x/mod v0.23.0 // indirect golang.org/x/net v0.38.0 // indirect golang.org/x/sys v0.31.0 // indirect golang.org/x/term v0.30.0 // indirect - google.golang.org/protobuf v1.35.1 // indirect + golang.org/x/text v0.23.0 // indirect + google.golang.org/protobuf v1.36.1 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) replace github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver => ./sdk/sdk-apiserver diff --git a/go.sum b/go.sum index bcde759..9570fdb 100644 --- a/go.sum +++ b/go.sum @@ -65,8 +65,8 @@ github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2 github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= -github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= +github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= @@ -76,6 +76,8 @@ github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss= +github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= @@ -171,6 +173,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8 github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= +github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= +github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4/v4 v4.1.22 h1:cKFw6uJDK+/gfw5BcDL0JL5aBsAFdsIT18eRtLj7VIU= @@ -193,20 +197,28 @@ github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoG github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sagikazarmark/locafero v0.7.0 h1:5MqpDsTGNDhY8sGp0Aowyf0qKsPrhewaLSsFaodPcyo= +github.com/sagikazarmark/locafero v0.7.0/go.mod h1:2za3Cg5rMaTMoG/2Ulr9AwtFaIppKXTRYnozin4aB5k= github.com/shirou/gopsutil/v3 v3.23.12 h1:z90NtUkp3bMtmICZKpC4+WaknU1eXtp5vtbQ11DgpE4= github.com/shirou/gopsutil/v3 v3.23.12/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.12.0 h1:UcOPyRBYczmFn6yvphxkn9ZEOY65cpwGKb5mL36mrqs= +github.com/spf13/afero v1.12.0/go.mod h1:ZTlWwG4/ahT8W7T0WQ5uYmjI9duaLQGy3Q2OAl4sk/4= github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y= github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo= github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0= github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.20.1 h1:ZMi+z/lvLyPSCoNtFCpqjy0S4kPbirhpTMwl8BkW9X4= +github.com/spf13/viper v1.20.1/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqjJvu4= github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b h1:J1jG07SOD3nuO8d0UlB0LKUb8rohd2VPA7FWDFawT/4= github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b/go.mod h1:QBzQvWQtzXSgkIZ3YfJfSZhN3edM762c4q3V+XSQB3o= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -219,6 +231,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/testcontainers/testcontainers-go v0.32.0 h1:ug1aK08L3gCHdhknlTTwWjPHPS+/alvLJU/DRxTD/ME= github.com/testcontainers/testcontainers-go v0.32.0/go.mod h1:CRHrzHLQhlXUsa5gXjTOfqIEJcrK5+xMDmBr/WMI88E= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= @@ -239,16 +253,18 @@ github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zI github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 h1:9l89oX4ba9kHbBol3Xin3leYJ+252h0zszDtBwyKe2A= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0/go.mod h1:XLZfZboOJWHNKUv7eH0inh0E9VV6eWDFB/9yJyTLPp0= -go.opentelemetry.io/otel v1.27.0 h1:9BZoF3yMK/O1AafMiQTVu0YDj5Ea4hPhxCs7sGva+cg= -go.opentelemetry.io/otel v1.27.0/go.mod h1:DMpAK8fzYRzs+bi3rS5REupisuqTheUlSZJ1WnZaPAQ= -go.opentelemetry.io/otel/metric v1.27.0 h1:hvj3vdEKyeCi4YaYfNjv2NUje8FqKqUY8IlF0FxV/ik= -go.opentelemetry.io/otel/metric v1.27.0/go.mod h1:mVFgmRlhljgBiuk/MP/oKylr4hs85GZAylncepAX/ak= -go.opentelemetry.io/otel/trace v1.27.0 h1:IqYb813p7cmbHk0a5y6pD5JPakbVfftRXABGt5/Rscw= -go.opentelemetry.io/otel/trace v1.27.0/go.mod h1:6RiD1hkAprV4/q+yd2ln1HG9GoPx39SuvvstaLBl+l4= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8= +go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw= +go.opentelemetry.io/otel v1.29.0/go.mod h1:N/WtXPs1CNCUEx+Agz5uouwCba+i+bJGFicT8SR4NP8= +go.opentelemetry.io/otel/metric v1.29.0 h1:vPf/HFWTNkPu1aYeIsc98l4ktOQaL6LeSoeV2g+8YLc= +go.opentelemetry.io/otel/metric v1.29.0/go.mod h1:auu/QWieFVWx+DmQOUMgj0F8LHWdgalxXqvp7BII/W8= +go.opentelemetry.io/otel/trace v1.29.0 h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4= +go.opentelemetry.io/otel/trace v1.29.0/go.mod h1:eHl3w0sp3paPkYstJOmAimxhiFXPg+MMTlEh3nsQgWQ= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI= +go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= @@ -285,12 +301,13 @@ golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291 h1:AgADTJarZTBqgjiUzRgfaBchgYB3/WFTC80GPwsMcRI= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240515191416-fc5f0ca64291/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= -google.golang.org/grpc v1.64.1 h1:LKtvyfbX3UGVPFcGqJ9ItpVWW6oN/2XqTxfAnwRRXiA= -google.golang.org/grpc v1.64.1/go.mod h1:hiQF4LFZelK2WKaP6W0L92zGHtiQdZxk8CrSdvyjeP0= -google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= -google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 h1:ToEetK57OidYuqD4Q5w+vfEnPvPpuTwedCNVohYJfNk= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= +google.golang.org/grpc v1.67.3 h1:OgPcDAFKHnH8X3O4WcO4XUc8GRDeKsKReqbQtiCj7N8= +google.golang.org/grpc v1.67.3/go.mod h1:YGaHCc6Oap+FzBJTZLBzkGSYt/cvGPFTPxkn7QfSU8s= +google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= +google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/go.work b/go.work index 5e9cb8f..88f0347 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.24.1 +go 1.24.3 use . diff --git a/go.work.sum b/go.work.sum index 3317a42..fc10c18 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1,12 +1,34 @@ +cel.dev/expr v0.16.1 h1:NR0+oFYzR1CqLFhTAqg3ql59G9VfN8fKq1TCHJ6gq1g= +cel.dev/expr v0.16.1/go.mod h1:AsGA5zb3WruAEQeQng1RZdGEXmBj0jvMWh6l5SnNuC8= cloud.google.com/go v0.65.0 h1:Dg9iHVQfrhq82rUNu9ZxUDrJLaxFUe/HlCVaLyRruq8= +cloud.google.com/go v0.116.0 h1:B3fRrSDkLRt5qSHWe40ERJvhvnQwdZiHu0bJOpldweE= +cloud.google.com/go v0.116.0/go.mod h1:cEPSRWPzZEswwdr9BxE6ChEn01dWlTaF05LiC2Xs70U= +cloud.google.com/go/auth v0.13.0 h1:8Fu8TZy167JkW8Tj3q7dIkr2v4cndv41ouecJx0PAHs= +cloud.google.com/go/auth v0.13.0/go.mod h1:COOjD9gwfKNKz+IIduatIhYJQIc0mG3H102r/EMxX6Q= +cloud.google.com/go/auth/oauth2adapt v0.2.6 h1:V6a6XDu2lTwPZWOawrAa9HUK+DB2zfJyTuciBG5hFkU= +cloud.google.com/go/auth/oauth2adapt v0.2.6/go.mod h1:AlmsELtlEBnaNTL7jCj8VQFLy6mbZv0s4Q7NGBeQ5E8= cloud.google.com/go/bigquery v1.8.0 h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA= cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.6.0 h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I= +cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg= cloud.google.com/go/datastore v1.1.0 h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ= +cloud.google.com/go/iam v1.2.2 h1:ozUSofHUGf/F4tCNy/mu9tHLTaxZFLOUiKzjcgWHGIA= +cloud.google.com/go/iam v1.2.2/go.mod h1:0Ys8ccaZHdI1dEUilwzqng/6ps2YB6vRsjIe00/+6JY= +cloud.google.com/go/monitoring v1.21.2 h1:FChwVtClH19E7pJ+e0xUhJPGksctZNVOk2UhMmblmdU= +cloud.google.com/go/monitoring v1.21.2/go.mod h1:hS3pXvaG8KgWTSz+dAdyzPrGUYmi2Q+WFX8g2hqVEZU= cloud.google.com/go/pubsub v1.3.1 h1:ukjixP1wl0LpnZ6LWtZJ0mX5tBmjp1f8Sqer8Z2OMUU= cloud.google.com/go/storage v1.10.0 h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA= +cloud.google.com/go/storage v1.49.0 h1:zenOPBOWHCnojRd9aJZAyQXBYqkJkdQS42dxL55CIMw= +cloud.google.com/go/storage v1.49.0/go.mod h1:k1eHhhpLvrPjVGfo0mOUPEJ4Y2+a/Hv5PiwehZI9qGU= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9 h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802 h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0 h1:3c8yed4lgqTt+oTQ+JNMDo+F4xprBf+O/il4ZC0nRLw= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0/go.mod h1:obipzmGjfSjam60XLwGfqUkJsfiheAl+TUjG+4yzyPM= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1 h1:UQ0AhxogsIRZDkElkblfnwjc3IaltCm2HUMvezQaL7s= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1/go.mod h1:jyqM3eLpJ3IbIFDTKVz2rF9T/xWGW0rIriGwnz8l9Tk= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 h1:8nn+rsCvTq9axyEh382S0PFLBeaFwNsT43IrPWzctRU= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1/go.mod h1:viRWSEhtMZqz1rhwmOVKkWl6SwmVowfL9O2YR5gI2PE= github.com/Microsoft/hcsshim v0.8.6 h1:ZfF0+zZeYdzMIVMZHKtDKJvLHj76XCuVae/jNkjj0IA= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/alecthomas/kingpin/v2 v2.4.0 h1:f48lwail6p8zpO1bC4TxtqACaGqHYA22qkHjHpqDjYY= @@ -21,11 +43,15 @@ github.com/aws/aws-sdk-go v1.32.6 h1:HoswAabUWgnrUF7X/9dr4WRgrr8DyscxXvTDm7Qw/5c github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b h1:AP/Y7sqYicnjGDfD5VcY4CIfh1hRXBUavxrvELjTiOE= github.com/bmizerany/perks v0.0.0-20141205001514-d9a9656a3a4b/go.mod h1:ac9efd0D1fsDb3EJvhqgXRbFx7bs2wqZ10HQPeU8U/Q= github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk= +github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g= +github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8= github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU= +github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 h1:QVw89YDxXxEe+l8gU8ETbOasdwEV+avkR75ZzsVV9WI= +github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc h1:TP+534wVlf61smEIq1nwLLAjQVEK2EADoW3CX9AuT+8= github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= github.com/coreos/go-etcd v2.0.0+incompatible h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo= @@ -35,7 +61,11 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible h1:dvc1KSkIYTVjZgHf/CTC2diTYC8PzhaA5sFISRfNVrE= github.com/envoyproxy/go-control-plane v0.9.4 h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E= +github.com/envoyproxy/go-control-plane v0.13.1 h1:vPfJZCkob6yTMEgS+0TwfTUfbHjfy/6vOJ8hUWX/uXE= +github.com/envoyproxy/go-control-plane v0.13.1/go.mod h1:X45hY0mufo6Fd0KW3rqsGvQMw58jvjymeCzBU3mWyHw= github.com/envoyproxy/protoc-gen-validate v0.1.0 h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A= +github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM= +github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4= github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q= github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A= github.com/exponent-io/jsonpath v0.0.0-20210407135951-1de76d718b3f h1:Wl78ApPPB2Wvf/TIe2xdyJxTlb6obmF18d8QdkxNDu4= @@ -58,6 +88,8 @@ github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17w github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.4.3 h1:GV+pQPG/EUUbkh47niozDcADz6go/dUwhVzdUQHIVRw= github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= @@ -70,7 +102,13 @@ github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99 h1:Ak8CrdlwwXwAZxzS66 github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 h1:5iH8iuqE5apketRbSFBy+X1V0o+l+8NF1avt4HWl7cA= github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA= +github.com/google/s2a-go v0.1.8 h1:zZDs9gcbt9ZPLV0ndSyQk6Kacx2g/X+SKYovpnz3SMM= +github.com/google/s2a-go v0.1.8/go.mod h1:6iNWHTpQ+nfNRN5E00MSdfDwVesa8hhS32PhPO8deJA= +github.com/googleapis/enterprise-certificate-proxy v0.3.4 h1:XYIDZApgAnrN1c855gTgghdIA6Stxb52D5RnLI1SLyw= +github.com/googleapis/enterprise-certificate-proxy v0.3.4/go.mod h1:YKe7cfqYXjKGpGvmSg28/fFvhNzinZQm8DGnaburhGA= github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= +github.com/googleapis/gax-go/v2 v2.14.1 h1:hb0FFeiPaQskmvakKu5EbCbpntQn48jyHuvrkurSS/Q= +github.com/googleapis/gax-go/v2 v2.14.1/go.mod h1:Hb/NubMaVM88SrNkvl8X/o8XWwDJEPqouaLeN2IUxoA= github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8= github.com/gorilla/mux v1.7.4 h1:VuZ8uybHlWmqV03+zRzdwKL4tUnIp1MAQtp1mIFE1bc= github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= @@ -90,6 +128,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8 github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d h1:Z+RDyXzjKE0i2sTjZ/b1uxiGtPhFy34Ou/Tk0qwN0kM= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= +github.com/kr/fs v0.1.0 h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= @@ -113,6 +153,10 @@ github.com/opencontainers/runc v0.1.1 h1:GlxAyO6x8rfZYN9Tt0Kti5a/cP41iuiO2yYT0IJ github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +github.com/pkg/sftp v1.13.7 h1:uv+I3nNJvlKZIQGSr8JVQLNHFU9YhhNpvC14Y6KgmSM= +github.com/pkg/sftp v1.13.7/go.mod h1:KMKI0t3T6hfA+lTR/ssZdunHo+uwq7ghoN09/FSu3DY= +github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo= +github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= github.com/rogpeppe/go-internal v1.3.0 h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk= @@ -130,10 +174,20 @@ github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtX github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow= github.com/yuin/goldmark v1.1.32 h1:5tjfNdR2ki3yYQ842+eX2sQHeiwpKJ0RnHO4IYOc4V8= go.opencensus.io v0.22.4 h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/contrib/detectors/gcp v1.29.0 h1:TiaiXB4DpGD3sdzNlYQxruQngn5Apwzi1X0DRhuGvDQ= +go.opentelemetry.io/contrib/detectors/gcp v1.29.0/go.mod h1:GW2aWZNwR2ZxDLdv8OyC2G8zkRoQBuURgV7RPQgcPoU= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 h1:r6I7RJCN86bpD/FQwedZ0vSixDpwuWREjW9oRMsmqDc= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0/go.mod h1:B9yO6b04uB80CzjedvewuqDhxJxi11s7/GtiGa8bAjI= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0 h1:QY7/0NeRPKlzusf40ZE4t1VlMKbqSNT7cJRYzWuja0s= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0/go.mod h1:HVkSiDhTM9BoUJU8qE6j2eSWLLXvi1USXjyd2BXT8PY= go.opentelemetry.io/otel/sdk v1.27.0 h1:mlk+/Y1gLPLn84U4tI8d3GNJmGT/eXe3ZuOXN9kTWmI= go.opentelemetry.io/otel/sdk v1.27.0/go.mod h1:Ha9vbLwJE6W86YstIywK2xFfPjbWlCuwPtMkKdz/Y4A= +go.opentelemetry.io/otel/sdk v1.29.0 h1:vkqKjk7gwhS8VaWb0POZKmIEDimRCMsopNYnriHyryo= +go.opentelemetry.io/otel/sdk v1.29.0/go.mod h1:pM8Dx5WKnvxLCb+8lG1PRNIDxu9g9b9g59Qr7hfAAok= +go.opentelemetry.io/otel/sdk/metric v1.29.0 h1:K2CfmJohnRgvZ9UAj2/FhIf/okdWcNdBwe1m8xFXiSY= +go.opentelemetry.io/otel/sdk/metric v1.29.0/go.mod h1:6zZLdCl2fkauYoZIOn/soQIDSWFmNSRcICarHfuhNJQ= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y= @@ -146,11 +200,15 @@ golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= +golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/cr4/aHLv9xU8Kkadrw= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg= +golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d h1:W07d4xkoAUSNOkOzdzXCdFGxT7o2rW4q8M34tB2i//k= @@ -160,11 +218,16 @@ golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY= golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= google.golang.org/api v0.30.0 h1:yfrXXP61wVuLb0vBcG6qaOoIoqYEzOQS8jum51jkv2w= +google.golang.org/api v0.215.0 h1:jdYF4qnyczlEz2ReWIsosNLDuzXyvFHJtI5gcr0J7t0= +google.golang.org/api v0.215.0/go.mod h1:fta3CVtuJYOEdugLNWm6WodzOS8KdFckABwN4I40hzY= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 h1:PDIOdWxZ8eRizhKa1AAvY53xsvLB1cWorMjslvY3VA8= +google.golang.org/genproto v0.0.0-20241118233622-e639e219e697/go.mod h1:JJrvXBWRZaFMxBufik1a4RpFw4HhgVtBBWQeQgUj2cc= google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= +google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 h1:CkkIfIt50+lT6NHAVoRYEyAvQGFM7xEwXUUywFvEb3Q= +google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576/go.mod h1:1R3kvZ1dtP3+4p4d3G8uJ8rFk/fWlScl38vanWACI08= google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1:ZlWIi1wSK56/8hn4QcBp/j9M7Gt3U/3hZw3mC7vDICo= google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= diff --git a/pkg/config/options.go b/pkg/config/options.go index c54728c..3ce1036 100644 --- a/pkg/config/options.go +++ b/pkg/config/options.go @@ -21,9 +21,11 @@ import ( "fmt" "os" "path/filepath" + "strings" "github.com/mitchellh/go-homedir" "github.com/spf13/cobra" + "github.com/spf13/viper" "gopkg.in/yaml.v2" ) @@ -35,6 +37,9 @@ const ( GlobalDefaultAPIServer = "https://api.streamnative.cloud" GlobalDefaultProxyLocation = "https://proxy.streamnative.cloud" GlobalDefaultLogLocation = "https://log.streamnative.cloud" + + // Environment variable prefix + EnvPrefix = "SNMCP" ) // Options represents the common options used throughout the program. @@ -70,91 +75,135 @@ func NewConfigOptions() *Options { } // AddFlags adds command-line flags for Options +// +//nolint:errcheck func (o *Options) AddFlags(cmd *cobra.Command) { + // Setup viper with environment variables + viper.SetEnvPrefix(EnvPrefix) + viper.AutomaticEnv() + // Replace dots and dashes in env var names with underscores + viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_", "-", "_")) + cmd.PersistentFlags().StringVar(&o.ConfigDir, "config-dir", "", - "If present, the config directory to use") + "If present, the config directory to use [env: SNMCP_CONFIG_DIR]") cmd.PersistentFlags().StringVar(&o.KeyFile, "key-file", "", - "The key file to use for authentication to StreamNative Cloud") + "The key file to use for authentication to StreamNative Cloud [env: SNMCP_KEY_FILE]") cmd.PersistentFlags().StringVar(&o.Server, "server", GlobalDefaultAPIServer, - "The server to connect to") + "The server to connect to [env: SNMCP_SERVER]") cmd.PersistentFlags().StringVar(&o.IssuerEndpoint, "issuer", GlobalDefaultIssuer, - "The OAuth 2.0 issuer endpoint") + "The OAuth 2.0 issuer endpoint [env: SNMCP_ISSUER]") cmd.PersistentFlags().StringVar(&o.Audience, "audience", GlobalDefaultAudience, - "The audience identifier for the API server") + "The audience identifier for the API server [env: SNMCP_AUDIENCE]") cmd.PersistentFlags().StringVar(&o.ClientID, "client-id", GlobalDefaultClientID, - "The client ID to use for authorization grants") + "The client ID to use for authorization grants [env: SNMCP_CLIENT_ID]") cmd.PersistentFlags().StringVar(&o.Organization, "organization", "", - "The organization to use for the API server") + "The organization to use for the API server [env: SNMCP_ORGANIZATION]") cmd.PersistentFlags().StringVar(&o.ProxyLocation, "proxy-location", GlobalDefaultProxyLocation, - "The proxy location to use for the API server") + "The proxy location to use for the API server [env: SNMCP_PROXY_LOCATION]") cmd.PersistentFlags().StringVar(&o.LogLocation, "log-location", GlobalDefaultLogLocation, - "The log location to use for the API server") + "The log location to use for the API server [env: SNMCP_LOG_LOCATION]") _ = cmd.MarkFlagRequired("organization") cmd.PersistentFlags().StringVar(&o.PulsarInstance, "pulsar-instance", "", - "The default instance to use for the API server") + "The default instance to use for the API server [env: SNMCP_PULSAR_INSTANCE]") cmd.PersistentFlags().StringVar(&o.PulsarCluster, "pulsar-cluster", "", - "The default cluster to use for the API server") + "The default cluster to use for the API server [env: SNMCP_PULSAR_CLUSTER]") cmd.PersistentFlags().BoolVar(&o.UseExternalKafka, "use-external-kafka", false, - "Use external Kafka") + "Use external Kafka [env: SNMCP_USE_EXTERNAL_KAFKA]") cmd.PersistentFlags().BoolVar(&o.UseExternalPulsar, "use-external-pulsar", false, - "Use external Pulsar") + "Use external Pulsar [env: SNMCP_USE_EXTERNAL_PULSAR]") cmd.PersistentFlags().StringVar(&o.Kafka.BootstrapServers, "kafka-bootstrap-servers", "", - "The bootstrap servers to use for Kafka") + "The bootstrap servers to use for Kafka [env: SNMCP_KAFKA_BOOTSTRAP_SERVERS]") cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryURL, "kafka-schema-registry-url", "", - "The schema registry URL to use for Kafka") + "The schema registry URL to use for Kafka [env: SNMCP_KAFKA_SCHEMA_REGISTRY_URL]") cmd.PersistentFlags().StringVar(&o.Kafka.AuthType, "kafka-auth-type", "", - "The auth type to use for Kafka") + "The auth type to use for Kafka [env: SNMCP_KAFKA_AUTH_TYPE]") cmd.PersistentFlags().StringVar(&o.Kafka.AuthMechanism, "kafka-auth-mechanism", "", - "The auth mechanism to use for Kafka") + "The auth mechanism to use for Kafka [env: SNMCP_KAFKA_AUTH_MECHANISM]") cmd.PersistentFlags().StringVar(&o.Kafka.AuthUser, "kafka-auth-user", "", - "The auth user to use for Kafka") + "The auth user to use for Kafka [env: SNMCP_KAFKA_AUTH_USER]") cmd.PersistentFlags().StringVar(&o.Kafka.AuthPass, "kafka-auth-pass", "", - "The auth password to use for Kafka") + "The auth password to use for Kafka [env: SNMCP_KAFKA_AUTH_PASS]") cmd.PersistentFlags().BoolVar(&o.Kafka.UseTLS, "kafka-use-tls", false, - "Use TLS for Kafka") + "Use TLS for Kafka [env: SNMCP_KAFKA_USE_TLS]") cmd.PersistentFlags().StringVar(&o.Kafka.ClientKeyFile, "kafka-client-key-file", "", - "The client key file to use for Kafka") + "The client key file to use for Kafka [env: SNMCP_KAFKA_CLIENT_KEY_FILE]") cmd.PersistentFlags().StringVar(&o.Kafka.ClientCertFile, "kafka-client-cert-file", "", - "The client certificate file to use for Kafka") + "The client certificate file to use for Kafka [env: SNMCP_KAFKA_CLIENT_CERT_FILE]") cmd.PersistentFlags().StringVar(&o.Kafka.CaFile, "kafka-ca-file", "", - "The CA file to use for Kafka") + "The CA file to use for Kafka [env: SNMCP_KAFKA_CA_FILE]") cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryAuthUser, "kafka-schema-registry-auth-user", "", - "The auth user to use for the schema registry") + "The auth user to use for the schema registry [env: SNMCP_KAFKA_SCHEMA_REGISTRY_AUTH_USER]") cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryAuthPass, "kafka-schema-registry-auth-pass", "", - "The auth password to use for the schema registry") + "The auth password to use for the schema registry [env: SNMCP_KAFKA_SCHEMA_REGISTRY_AUTH_PASS]") cmd.PersistentFlags().StringVar(&o.Kafka.SchemaRegistryBearerToken, "kafka-schema-registry-bearer-token", "", - "The bearer token to use for the schema registry") + "The bearer token to use for the schema registry [env: SNMCP_KAFKA_SCHEMA_REGISTRY_BEARER_TOKEN]") cmd.PersistentFlags().StringVar(&o.Pulsar.WebServiceURL, "pulsar-web-service-url", "", - "The web service URL to use for Pulsar") + "The web service URL to use for Pulsar [env: SNMCP_PULSAR_WEB_SERVICE_URL]") cmd.PersistentFlags().StringVar(&o.Pulsar.AuthPlugin, "pulsar-auth-plugin", "", - "The auth plugin to use for Pulsar") + "The auth plugin to use for Pulsar [env: SNMCP_PULSAR_AUTH_PLUGIN]") cmd.PersistentFlags().StringVar(&o.Pulsar.AuthParams, "pulsar-auth-params", "", - "The auth params to use for Pulsar") + "The auth params to use for Pulsar [env: SNMCP_PULSAR_AUTH_PARAMS]") cmd.PersistentFlags().BoolVar(&o.Pulsar.TLSAllowInsecureConnection, "pulsar-tls-allow-insecure-connection", false, - "The TLS allow insecure connection to use for Pulsar") + "The TLS allow insecure connection to use for Pulsar [env: SNMCP_PULSAR_TLS_ALLOW_INSECURE_CONNECTION]") cmd.PersistentFlags().BoolVar(&o.Pulsar.TLSEnableHostnameVerification, "pulsar-tls-enable-hostname-verification", true, - "The TLS enable hostname verification to use for Pulsar") + "The TLS enable hostname verification to use for Pulsar [env: SNMCP_PULSAR_TLS_ENABLE_HOSTNAME_VERIFICATION]") cmd.PersistentFlags().StringVar(&o.Pulsar.TLSTrustCertsFilePath, "pulsar-tls-trust-certs-file-path", "", - "The TLS trust certs file path to use for Pulsar") + "The TLS trust certs file path to use for Pulsar [env: SNMCP_PULSAR_TLS_TRUST_CERTS_FILE_PATH]") cmd.PersistentFlags().StringVar(&o.Pulsar.TLSCertFile, "pulsar-tls-cert-file", "", - "The TLS cert file to use for Pulsar") + "The TLS cert file to use for Pulsar [env: SNMCP_PULSAR_TLS_CERT_FILE]") cmd.PersistentFlags().StringVar(&o.Pulsar.TLSKeyFile, "pulsar-tls-key-file", "", - "The TLS key file to use for Pulsar") + "The TLS key file to use for Pulsar [env: SNMCP_PULSAR_TLS_KEY_FILE]") cmd.PersistentFlags().StringVar(&o.Pulsar.Token, "pulsar-token", "", - "The token to use for Pulsar") + "The token to use for Pulsar [env: SNMCP_PULSAR_TOKEN]") cmd.MarkFlagsMutuallyExclusive("key-file", "use-external-kafka", "use-external-pulsar") cmd.MarkFlagsRequiredTogether("pulsar-cluster", "pulsar-instance") cmd.MarkFlagsRequiredTogether("use-external-kafka", "kafka-bootstrap-servers") cmd.MarkFlagsRequiredTogether("use-external-pulsar", "pulsar-web-service-url") o.AuthOptions.AddFlags(cmd) + + // Bind command line flags to viper + viper.BindPFlag("config-dir", cmd.PersistentFlags().Lookup("config-dir")) + viper.BindPFlag("key-file", cmd.PersistentFlags().Lookup("key-file")) + viper.BindPFlag("server", cmd.PersistentFlags().Lookup("server")) + viper.BindPFlag("issuer", cmd.PersistentFlags().Lookup("issuer")) + viper.BindPFlag("audience", cmd.PersistentFlags().Lookup("audience")) + viper.BindPFlag("client-id", cmd.PersistentFlags().Lookup("client-id")) + viper.BindPFlag("organization", cmd.PersistentFlags().Lookup("organization")) + viper.BindPFlag("proxy-location", cmd.PersistentFlags().Lookup("proxy-location")) + viper.BindPFlag("log-location", cmd.PersistentFlags().Lookup("log-location")) + viper.BindPFlag("pulsar-instance", cmd.PersistentFlags().Lookup("pulsar-instance")) + viper.BindPFlag("pulsar-cluster", cmd.PersistentFlags().Lookup("pulsar-cluster")) + viper.BindPFlag("use-external-kafka", cmd.PersistentFlags().Lookup("use-external-kafka")) + viper.BindPFlag("use-external-pulsar", cmd.PersistentFlags().Lookup("use-external-pulsar")) + viper.BindPFlag("kafka-bootstrap-servers", cmd.PersistentFlags().Lookup("kafka-bootstrap-servers")) + viper.BindPFlag("kafka-schema-registry-url", cmd.PersistentFlags().Lookup("kafka-schema-registry-url")) + viper.BindPFlag("kafka-auth-type", cmd.PersistentFlags().Lookup("kafka-auth-type")) + viper.BindPFlag("kafka-auth-mechanism", cmd.PersistentFlags().Lookup("kafka-auth-mechanism")) + viper.BindPFlag("kafka-auth-user", cmd.PersistentFlags().Lookup("kafka-auth-user")) + viper.BindPFlag("kafka-auth-pass", cmd.PersistentFlags().Lookup("kafka-auth-pass")) + viper.BindPFlag("kafka-use-tls", cmd.PersistentFlags().Lookup("kafka-use-tls")) + viper.BindPFlag("kafka-client-key-file", cmd.PersistentFlags().Lookup("kafka-client-key-file")) + viper.BindPFlag("kafka-client-cert-file", cmd.PersistentFlags().Lookup("kafka-client-cert-file")) + viper.BindPFlag("kafka-ca-file", cmd.PersistentFlags().Lookup("kafka-ca-file")) + viper.BindPFlag("kafka-schema-registry-auth-user", cmd.PersistentFlags().Lookup("kafka-schema-registry-auth-user")) + viper.BindPFlag("kafka-schema-registry-auth-pass", cmd.PersistentFlags().Lookup("kafka-schema-registry-auth-pass")) + viper.BindPFlag("kafka-schema-registry-bearer-token", cmd.PersistentFlags().Lookup("kafka-schema-registry-bearer-token")) + viper.BindPFlag("pulsar-web-service-url", cmd.PersistentFlags().Lookup("pulsar-web-service-url")) + viper.BindPFlag("pulsar-auth-plugin", cmd.PersistentFlags().Lookup("pulsar-auth-plugin")) + viper.BindPFlag("pulsar-auth-params", cmd.PersistentFlags().Lookup("pulsar-auth-params")) + viper.BindPFlag("pulsar-tls-allow-insecure-connection", cmd.PersistentFlags().Lookup("pulsar-tls-allow-insecure-connection")) + viper.BindPFlag("pulsar-tls-enable-hostname-verification", cmd.PersistentFlags().Lookup("pulsar-tls-enable-hostname-verification")) + viper.BindPFlag("pulsar-tls-trust-certs-file-path", cmd.PersistentFlags().Lookup("pulsar-tls-trust-certs-file-path")) + viper.BindPFlag("pulsar-tls-cert-file", cmd.PersistentFlags().Lookup("pulsar-tls-cert-file")) + viper.BindPFlag("pulsar-tls-key-file", cmd.PersistentFlags().Lookup("pulsar-tls-key-file")) + viper.BindPFlag("pulsar-token", cmd.PersistentFlags().Lookup("pulsar-token")) } // Complete completes options from the provided values func (o *Options) Complete() error { - if o.ConfigDir == "" { - o.ConfigDir = os.Getenv(EnvConfigDir) - } + // First try to get config directory from environment variables + o.ConfigDir = viper.GetString("config-dir") if o.ConfigDir == "" { home, err := homedir.Dir() if err != nil { @@ -170,6 +219,177 @@ func (o *Options) Complete() error { } o.ConfigPath = filepath.Join(o.ConfigDir, "config") + // Read configurations from viper (environment variables) + if o.Server == GlobalDefaultAPIServer { + if server := viper.GetString("server"); server != "" { + o.Server = server + } + } + if o.IssuerEndpoint == GlobalDefaultIssuer { + if issuer := viper.GetString("issuer"); issuer != "" { + o.IssuerEndpoint = issuer + } + } + if o.Audience == GlobalDefaultAudience { + if audience := viper.GetString("audience"); audience != "" { + o.Audience = audience + } + } + if o.ClientID == GlobalDefaultClientID { + if clientID := viper.GetString("client-id"); clientID != "" { + o.ClientID = clientID + } + } + if o.Organization == "" { + if org := viper.GetString("organization"); org != "" { + o.Organization = org + } + } + if o.ProxyLocation == GlobalDefaultProxyLocation { + if proxy := viper.GetString("proxy-location"); proxy != "" { + o.ProxyLocation = proxy + } + } + if o.LogLocation == GlobalDefaultLogLocation { + if log := viper.GetString("log-location"); log != "" { + o.LogLocation = log + } + } + if o.KeyFile == "" { + if keyFile := viper.GetString("key-file"); keyFile != "" { + o.KeyFile = keyFile + } + } + if o.PulsarInstance == "" { + if instance := viper.GetString("pulsar-instance"); instance != "" { + o.PulsarInstance = instance + } + } + if o.PulsarCluster == "" { + if cluster := viper.GetString("pulsar-cluster"); cluster != "" { + o.PulsarCluster = cluster + } + } + + // Boolean values + if !o.UseExternalKafka { + o.UseExternalKafka = viper.GetBool("use-external-kafka") + } + if !o.UseExternalPulsar { + o.UseExternalPulsar = viper.GetBool("use-external-pulsar") + } + + // Kafka configuration + if o.Kafka.BootstrapServers == "" { + if servers := viper.GetString("kafka-bootstrap-servers"); servers != "" { + o.Kafka.BootstrapServers = servers + } + } + if o.Kafka.SchemaRegistryURL == "" { + if url := viper.GetString("kafka-schema-registry-url"); url != "" { + o.Kafka.SchemaRegistryURL = url + } + } + if o.Kafka.AuthType == "" { + if authType := viper.GetString("kafka-auth-type"); authType != "" { + o.Kafka.AuthType = authType + } + } + if o.Kafka.AuthMechanism == "" { + if authMech := viper.GetString("kafka-auth-mechanism"); authMech != "" { + o.Kafka.AuthMechanism = authMech + } + } + if o.Kafka.AuthUser == "" { + if authUser := viper.GetString("kafka-auth-user"); authUser != "" { + o.Kafka.AuthUser = authUser + } + } + if o.Kafka.AuthPass == "" { + if authPass := viper.GetString("kafka-auth-pass"); authPass != "" { + o.Kafka.AuthPass = authPass + } + } + if !o.Kafka.UseTLS { + o.Kafka.UseTLS = viper.GetBool("kafka-use-tls") + } + if o.Kafka.ClientKeyFile == "" { + if keyFile := viper.GetString("kafka-client-key-file"); keyFile != "" { + o.Kafka.ClientKeyFile = keyFile + } + } + if o.Kafka.ClientCertFile == "" { + if certFile := viper.GetString("kafka-client-cert-file"); certFile != "" { + o.Kafka.ClientCertFile = certFile + } + } + if o.Kafka.CaFile == "" { + if caFile := viper.GetString("kafka-ca-file"); caFile != "" { + o.Kafka.CaFile = caFile + } + } + if o.Kafka.SchemaRegistryAuthUser == "" { + if srUser := viper.GetString("kafka-schema-registry-auth-user"); srUser != "" { + o.Kafka.SchemaRegistryAuthUser = srUser + } + } + if o.Kafka.SchemaRegistryAuthPass == "" { + if srPass := viper.GetString("kafka-schema-registry-auth-pass"); srPass != "" { + o.Kafka.SchemaRegistryAuthPass = srPass + } + } + if o.Kafka.SchemaRegistryBearerToken == "" { + if srToken := viper.GetString("kafka-schema-registry-bearer-token"); srToken != "" { + o.Kafka.SchemaRegistryBearerToken = srToken + } + } + + // Pulsar configuration + if o.Pulsar.WebServiceURL == "" { + if wsURL := viper.GetString("pulsar-web-service-url"); wsURL != "" { + o.Pulsar.WebServiceURL = wsURL + } + } + if o.Pulsar.AuthPlugin == "" { + if authPlugin := viper.GetString("pulsar-auth-plugin"); authPlugin != "" { + o.Pulsar.AuthPlugin = authPlugin + } + } + if o.Pulsar.AuthParams == "" { + if authParams := viper.GetString("pulsar-auth-params"); authParams != "" { + o.Pulsar.AuthParams = authParams + } + } + if !o.Pulsar.TLSAllowInsecureConnection { + o.Pulsar.TLSAllowInsecureConnection = viper.GetBool("pulsar-tls-allow-insecure-connection") + } + if o.Pulsar.TLSEnableHostnameVerification { + // Only override if explicitly set to false in env var + if !viper.GetBool("pulsar-tls-enable-hostname-verification") { + o.Pulsar.TLSEnableHostnameVerification = false + } + } + if o.Pulsar.TLSTrustCertsFilePath == "" { + if trustCerts := viper.GetString("pulsar-tls-trust-certs-file-path"); trustCerts != "" { + o.Pulsar.TLSTrustCertsFilePath = trustCerts + } + } + if o.Pulsar.TLSCertFile == "" { + if certFile := viper.GetString("pulsar-tls-cert-file"); certFile != "" { + o.Pulsar.TLSCertFile = certFile + } + } + if o.Pulsar.TLSKeyFile == "" { + if keyFile := viper.GetString("pulsar-tls-key-file"); keyFile != "" { + o.Pulsar.TLSKeyFile = keyFile + } + } + if o.Pulsar.Token == "" { + if token := viper.GetString("pulsar-token"); token != "" { + o.Pulsar.Token = token + } + } + err := o.AuthOptions.Complete(o) if err != nil { return err From 4bdd430102ded95b453a1881658cde0c53f786cf Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 13 May 2025 17:19:04 +0800 Subject: [PATCH 18/85] fix auth and send PR to homebrew (#27) --- .github/workflows/goreleaser.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 263607e..5cea5ab 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -15,6 +15,13 @@ jobs: steps: - name: Check out code uses: actions/checkout@v4 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + registry: docker.io + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Set up Go uses: actions/setup-go@v5 @@ -34,7 +41,7 @@ jobs: args: release --clean workdir: . env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SNBOT_GITHUB_TOKEN }} - name: Generate signed build provenance attestations for workflow artifacts uses: actions/attest-build-provenance@v2 @@ -43,3 +50,25 @@ jobs: dist/*.tar.gz dist/*.zip dist/*.txt + + - name: Init homebrew repository + uses: actions/checkout@v3 + with: + repository: streamnative/homebrew-streamnative + token: ${{ secrets.SNBOT_GITHUB_TOKEN }} + ref: master + path: homebrew-streamnative + + - name: Prepare Homebrew formula + run: | + cp ./dist/homebrew/Formula/snmcp.rb homebrew-streamnative/Formula/snmcp.rb + + - name: Create Homebrew PR + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.SNBOT_GITHUB_TOKEN }} + path: homebrew-streamnative + branch: snmcp/${{ env.tag }} + title: Update snmcp to ${{ env.tag }} + body: Automated changes by Release workflow in streamnative/streamnative-mcp-server repository. + delete-branch: true \ No newline at end of file From bc25192d0d01921b5586963c16202b4d202ca1f4 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 13 May 2025 19:24:29 +0800 Subject: [PATCH 19/85] fix ref env (#28) --- .github/workflows/goreleaser.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 5cea5ab..3d82ea1 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -61,6 +61,8 @@ jobs: - name: Prepare Homebrew formula run: | + ref=${{ github.ref }} + tag=${ref#refs/tags/} cp ./dist/homebrew/Formula/snmcp.rb homebrew-streamnative/Formula/snmcp.rb - name: Create Homebrew PR @@ -71,4 +73,6 @@ jobs: branch: snmcp/${{ env.tag }} title: Update snmcp to ${{ env.tag }} body: Automated changes by Release workflow in streamnative/streamnative-mcp-server repository. - delete-branch: true \ No newline at end of file + delete-branch: true + committer: StreamNative Bot + commit-message: Created by streamnative-mcp-server-release-workflow \ No newline at end of file From c8d94c44761385694376e4646b6fb4ed0bb26bfd Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 13 May 2025 21:20:34 +0800 Subject: [PATCH 20/85] fix: use short-commit-hash to create brew PR (#29) --- .github/workflows/goreleaser.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 3d82ea1..024f876 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -61,8 +61,6 @@ jobs: - name: Prepare Homebrew formula run: | - ref=${{ github.ref }} - tag=${ref#refs/tags/} cp ./dist/homebrew/Formula/snmcp.rb homebrew-streamnative/Formula/snmcp.rb - name: Create Homebrew PR @@ -70,7 +68,8 @@ jobs: with: token: ${{ secrets.SNBOT_GITHUB_TOKEN }} path: homebrew-streamnative - branch: snmcp/${{ env.tag }} + branch: snmcp/release + branch-suffix: short-commit-hash title: Update snmcp to ${{ env.tag }} body: Automated changes by Release workflow in streamnative/streamnative-mcp-server repository. delete-branch: true From c5c93c3177a308ca0efd509e5dae528fe577d2d5 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 13 May 2025 23:19:17 +0800 Subject: [PATCH 21/85] fix: use ${{github.ref_name}} for homebrew PR (#30) --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 024f876..3530813 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -70,7 +70,7 @@ jobs: path: homebrew-streamnative branch: snmcp/release branch-suffix: short-commit-hash - title: Update snmcp to ${{ env.tag }} + title: Update snmcp to ${{github.ref_name}} body: Automated changes by Release workflow in streamnative/streamnative-mcp-server repository. delete-branch: true committer: StreamNative Bot From 74284caa90b6af4d90521b687a44bc85ed46d69c Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Wed, 14 May 2025 18:20:52 -0700 Subject: [PATCH 22/85] fix: Tool Input Array JSON Schema Validation (#31) We don't provide the item schema in array types. It fails when using OpenAI and Gemini models --- pkg/mcp/kafka_admin_topics_tools.go | 6 ++++++ pkg/mcp/kafka_client_produce_tools.go | 6 ++++++ pkg/mcp/pulsar_admin_cluster_tools.go | 12 ++++++++++++ pkg/mcp/pulsar_admin_functions_tools.go | 9 ++++++++- pkg/mcp/pulsar_admin_namespace_policy_tools.go | 18 ++++++++++++++++++ pkg/mcp/pulsar_admin_namespace_tools.go | 6 ++++++ .../pulsar_admin_nsisolationpolicy_tools.go | 18 ++++++++++++++++++ pkg/mcp/pulsar_admin_sinks_tools.go | 9 ++++++++- pkg/mcp/pulsar_admin_tenant_tools.go | 12 ++++++++++++ pkg/mcp/pulsar_admin_topic_policy_tools.go | 6 ++++++ pkg/mcp/pulsar_client_produce_tools.go | 12 ++++++++++++ 11 files changed, 112 insertions(+), 2 deletions(-) diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go index 022f6f4..adea483 100644 --- a/pkg/mcp/kafka_admin_topics_tools.go +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -113,6 +113,12 @@ func KafkaAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []stri "Each entry should be in the format 'key=value'. "+ "Example configs include 'cleanup.policy', 'retention.ms', 'compression.type'. "+ "Optional."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "config entry", + }, + ), ), ) s.AddTool(kafkaTopicTool, handleKafkaTopicTool(readOnly)) diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index abe2a34..8e8a8ab 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -93,6 +93,12 @@ func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []s mcp.Description("Message headers in the format of [{\"key\": \"value\"}]. "+ "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ "They are passed along with the message to consumers."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "header entry", + }, + ), ), mcp.WithBoolean("sync", mcp.Description("Whether to wait for server acknowledgment before returning. "+ diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index 07ac31e..dfc04a9 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -84,9 +84,21 @@ func PulsarAdminAddClusterTools(s *server.MCPServer, readOnly bool, features []s mcp.Description("List of clusters to be registered as peer-clusters, used when:\n"+ "- resource=cluster and operation is create or update\n"+ "- resource=peer_clusters and operation is update"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "peer cluster name", + }, + ), ), mcp.WithArray("brokers", mcp.Description("List of broker names to include in a failure domain, required when resource=failure_domain and operation is create or update"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "broker", + }, + ), ), ) s.AddTool(clusterTool, handleClusterTool(readOnly)) diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index 45f6bbd..2783c10 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -90,7 +90,14 @@ func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features [ mcp.Description("The input topics for the function (array of strings). Optional for 'create' and 'update' operations. "+ "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ "Functions can consume from multiple topics, each with potentially different serialization types. "+ - "All input topics should exist before the function is created.")), + "All input topics should exist before the function is created."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "input topic", + }, + ), + ), mcp.WithString("output", mcp.Description("The output topic for the function results. Optional for 'create' and 'update' operations. "+ "Specified in the format 'persistent://tenant/namespace/topic'. "+ diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index eb655e0..ddf37b7 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -172,12 +172,30 @@ func PulsarAdminAddNamespacePolicyTools(s *server.MCPServer, readOnly bool, feat ), mcp.WithArray("actions", mcp.Description("Actions to grant for permission policies (e.g., produce, consume)"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "action", + }, + ), ), mcp.WithArray("clusters", mcp.Description("List of clusters for replication policies"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "cluster", + }, + ), ), mcp.WithArray("roles", mcp.Description("List of roles for subscription permission policies"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "role", + }, + ), ), mcp.WithString("ttl", mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index 1539324..65e1542 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -64,6 +64,12 @@ func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features [ ), mcp.WithArray("clusters", mcp.Description("List of clusters to assign when creating a namespace. Used with 'create' operation."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "Cluster name", + }, + ), ), mcp.WithString("subscription", mcp.Description("Subscription name. Required for 'unsubscribe' operation, optional for 'clear_backlog'."), diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index 122d387..191fb83 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -70,12 +70,30 @@ func PulsarAdminAddNsIsolationPolicyTools(s *server.MCPServer, readOnly bool, fe ), mcp.WithArray("namespaces", mcp.Description("List of namespaces to apply the isolation policy. Required for policy.set"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "namespace", + }, + ), ), mcp.WithArray("primary", mcp.Description("List of primary brokers for the namespaces. Required for policy.set"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "primary broker", + }, + ), ), mcp.WithArray("secondary", mcp.Description("List of secondary brokers for the namespaces. Optional for policy.set"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "secondary broker", + }, + ), ), mcp.WithString("autoFailoverPolicyType", mcp.Description("Auto failover policy type (e.g., min_available). Optional for policy.set"), diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index 83d6a61..d03fe63 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -94,7 +94,14 @@ func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []str "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ "Sinks can consume from multiple topics, but they should have compatible schemas. "+ "All input topics should exist before the sink is created. "+ - "Either inputs or topics-pattern must be specified.")), + "Either inputs or topics-pattern must be specified."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "input topic", + }, + ), + ), mcp.WithString("topics-pattern", mcp.Description("TopicsPattern to consume from list of topics that match the pattern. Optional for 'create' and 'update' operations. "+ "Specified as a regular expression, e.g., 'persistent://tenant/namespace/prefix.*'. "+ diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index 302e48c..188fa21 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -77,12 +77,24 @@ func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []st "namespaces within the tenant, and can manage topic configurations. "+ "Format: array of role strings, e.g., ['admin1', 'orgAdmin']. "+ "Use empty array [] to remove all admin roles."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "role", + }, + ), ), mcp.WithArray("allowedClusters", mcp.Description("List of clusters that this tenant can access. Required for 'create' and 'update' operations. "+ "Restricts the tenant to only use specified clusters, enabling geographic or infrastructure isolation. "+ "Format: array of cluster names, e.g., ['us-west', 'us-east']. "+ "An empty list means no clusters are accessible to this tenant."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "cluster", + }, + ), ), ) s.AddTool(tenantTool, handleTenantTool(readOnly)) diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index a3dc8fb..ce5f813 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -178,6 +178,12 @@ func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features ), mcp.WithArray("actions", mcp.Description("Actions to grant for permission policies. Valid values are: produce, consume"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "action", + }, + ), ), mcp.WithString("ttl", mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index 16d33d4..a0be5c6 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -47,6 +47,12 @@ func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string ), mcp.WithArray("messages", mcp.Description("Messages to send. Specify multiple times for multiple messages. IMPORTANT: Use this parameter to provide message content."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "message", + }, + ), ), mcp.WithNumber("num-produce", mcp.Description("Number of times to send message(s) (default: 1)"), @@ -65,6 +71,12 @@ func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string ), mcp.WithArray("properties", mcp.Description("Properties to add, key=value format. Specify multiple times for multiple properties."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "property", + }, + ), ), mcp.WithString("key", mcp.Description("Partitioning key to add to each message"), From b99519f8657f0d40627ae8c4bb8d98e86827b7ad Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Fri, 16 May 2025 17:06:56 +0800 Subject: [PATCH 23/85] fix: help configure partitioned flag for pulsar topics stats tool (#32) --- pkg/mcp/pulsar_admin_topic_tools.go | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index 805972c..c3bf0e9 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -110,7 +110,7 @@ func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []str ), mcp.WithBoolean("partitioned", mcp.Description("Get stats for a partitioned topic. Optional for 'stats' operation. "+ - "When true, returns aggregated statistics for the partitioned topic."), + "It has to be true if the topic is partitioned. Leave it empty or false for non-partitioned topic."), ), mcp.WithBoolean("per-partition", mcp.Description("Include per-partition stats. Optional for 'stats' operation. "+ @@ -307,6 +307,25 @@ func handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp. return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil } + namespaceName, err := utils.GetNamespaceName(topicName.GetTenant() + "/" + topicName.GetNamespace()) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespaceName, err)), nil + } + + // List topics + partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", + namespaceName, err)), nil + } + + if slices.Contains(partitionedTopics, topicName.String()) { + partitioned = true + } + if slices.Contains(nonPartitionedTopics, topicName.String()) { + partitioned = false + } + var jsonBytes []byte if partitioned { // Get partitioned topic stats From 41de52129b0d0d104798ad18e2913cacfe2d4abe Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Mon, 19 May 2025 07:34:13 -0700 Subject: [PATCH 24/85] Fix README typo (#34) ## Summary - correct a spelling mistake in README ## Testing - `grep -n verified -n README.md` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e72a5a7..c41a426 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ StreamNative MCP Server provides a standard interface for LLMs (Large Language M - Connect directly to external Apache Kafka clusters - Connect directly to external Apache Pulsar clusters -> *: The Kafka Connect operations are only tested and verfied on StreamNative Cloud. +> *: The Kafka Connect operations are only tested and verified on StreamNative Cloud. ## Installation From 5fec716c45be6691019c9d241c9d6337d561e3e0 Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Mon, 19 May 2025 07:35:00 -0700 Subject: [PATCH 25/85] Fix nil checks in GetMcpContext (#35) ## Summary - guard against nil values when reading context variables - add tests for SetMcpContext and ResetMcpContext ## Testing - `go test ./...` *(fails: go.work requires go >= 1.24.3)* --- pkg/mcp/context.go | 6 ++++++ pkg/mcp/context_test.go | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkg/mcp/context_test.go diff --git a/pkg/mcp/context.go b/pkg/mcp/context.go index 69d4678..e258bf3 100644 --- a/pkg/mcp/context.go +++ b/pkg/mcp/context.go @@ -27,7 +27,13 @@ func SetMcpContext(instance, cluster, organization string) { McpContextOrganization = &organization } +// GetMcpContext returns the currently configured StreamNative Cloud context. +// If the context has not been fully configured, it returns empty strings. func GetMcpContext() (string, string, string) { + if McpContextPulsarInstance == nil || McpContextPulsarCluster == nil || McpContextOrganization == nil { + return "", "", "" + } + return *McpContextPulsarInstance, *McpContextPulsarCluster, *McpContextOrganization } diff --git a/pkg/mcp/context_test.go b/pkg/mcp/context_test.go new file mode 100644 index 0000000..3bfeaef --- /dev/null +++ b/pkg/mcp/context_test.go @@ -0,0 +1,20 @@ +package mcp + +import "testing" + +func TestGetMcpContextUnset(t *testing.T) { + ResetMcpContext() + instance, cluster, org := GetMcpContext() + if instance != "" || cluster != "" || org != "" { + t.Fatalf("expected empty context when unset, got %q %q %q", instance, cluster, org) + } +} + +func TestGetMcpContextSet(t *testing.T) { + ResetMcpContext() + SetMcpContext("inst", "cluster", "org") + instance, cluster, org := GetMcpContext() + if instance != "inst" || cluster != "cluster" || org != "org" { + t.Fatalf("expected context to be returned, got %q %q %q", instance, cluster, org) + } +} From d78a845083e537ccf29f98778c42815169d3f252 Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Mon, 19 May 2025 22:02:17 -0700 Subject: [PATCH 26/85] Add AGNETS.md for coding agents (#36) --- AGENTS.md | 137 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..48390eb --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,137 @@ +# AGENTS.md +Guide for autonomous coding agents (e.g., OpenAI Codex) working in **streamnative-mcp-server** + +--- + +## 1 | Project snapshot +* **What it is** – A fast, developer-friendly **Model Context Protocol (MCP) server** that lets LLM agents talk to **Apache Kafka, Apache Pulsar, and StreamNative Cloud** through a single, consistent interface. +* **Key outputs** – A single Go binary named **`snmcp`** (and a Docker image) that can run as a *stdio* or *SSE* server. +* **Primary language / tooling** – Go 1.22+, `make`, `golangci-lint`, `goreleaser`. + +--- + +## 2 | Repo map (orient yourself quickly) + +| Path | What lives here | Touch with care? | +|------|-----------------|------------------| +| `cmd/streamnative-mcp-server/` | `main.go` entry‑point for the CLI/server | **yes** | +| `pkg/` | Core library packages (Kafka tools, Pulsar tools, cloud integration, feature gating) | yes | +| `sdk/` | Thin Go client helpers (generated) | can be re‑generated | +| `docs/tools/` | One Markdown file per MCP tool – these are surfaced to the LLM at runtime | **yes** | +| `.github/workflows/` | CI (lint, unit test, release) | only if changing CI | +| `Makefile` | Local build helpers (`make build`, `make fix-license`, …) | safe | + +--- + +## 3 | Required dev workflow + +> **Agents MUST follow every step below before committing code or opening a PR.** + +1. **Install deps** + ```bash + brew install golangci-lint # or use the install script + go install github.com/elastic/go-licenser@latest + ``` + +2. **Build & unit tests** + ```bash + make build # invokes `go build …` with version metadata + go test ./... # _there are few tests today – add more!_ + ``` + +3. **Static analysis & formatting** + Run `golangci-lint run` and ensure **zero** issues. Linters enabled include `govet`, `staticcheck`, `revive`, `gosec`, etc. + Follow `go fmt` / `goimports` import grouping. + +4. **License headers** + ```bash + make fix-license # injects Apache 2.0 headers via go-licenser + ``` + +5. **Generate artifacts** (only if you edited code‑gen files) + ```bash + go generate ./... + go mod tidy + ``` + +6. **Commit & conventional message** + Use **Conventional Commits** (`feat:`, `fix:`, `docs:` …). Keep title ≤ 72 chars and add a body explaining _why_. + +7. **Run the full release checks locally (optional but recommended)** + ```bash + goreleaser release --snapshot --clean # mirrors CI pipeline + ``` + +--- + +## 4 | How to run the server locally + +```bash +# StreamNative Cloud (stdio) +bin/snmcp stdio --organization $ORG --key-file my_sa.json +# External Kafka +bin/snmcp stdio --use-external-kafka --kafka-bootstrap-servers localhost:9092 +# External Pulsar +bin/snmcp stdio --use-external-pulsar --pulsar-web-service-url http://localhost:8080 +``` + +For HTTP/SSE mode add `sse --http-addr :9090 --http-path /mcp`. + +--- + +## 5 | Coding conventions + +* **Package layout** – one feature per package; avoid cyclic imports. +* **Error handling** – wrap with `fmt.Errorf("context: %w", err)`; export sentinel errors where appropriate. +* **Logging** – rely on `zap` (already imported) with structured fields. +* **Tests** – use Go’s `testing` plus `testify/require`. When adding a tool, write at least: + * happy‑path invocation + * typical error path + * integration stub (may be skipped with `-short`) + +--- + +## 6 | Common tasks for agents + +| Task | Checklist | +|------|-----------| +| **Add a new MCP tool** | 1) create package in `pkg/tools/...` 2) update `docs/tools/.md` 3) add to feature flag map 4) go‑vet + tests | +| **Bug fix** | reproduce with unit test first → fix → ensure lint/test pass | +| **Docs** | update both README **and** the per‑tool doc; regenerate table of contents | +| **Release prep** | bump version tag, update changelog, run `goreleaser release --snapshot` | + +--- + +## 7 | Programmatic checks the agent MUST run + +```bash +go vet ./... +golangci-lint run +go test ./... +make build # binary must compile for darwin/amd64 & linux/amd64 +``` + +Codex **must not** finish a task until all checks pass locally. If CI fails, iterate until green. + +--- + +## 8 | Pull‑request etiquette + +* Open PR against `main`, no new branches needed. +* Include a **Summary**, **Testing plan**, and **Docs updated** checklist. +* Mention which `--features` flags were affected, so reviewers know what to smoke‑test. +* If the change affects the public CLI, update `README.md` usage examples. + +--- + +## 9 | AGENTS.md spec compliance + +This file follows the AGENTS.md spec described in the Codex system message (scope, precedence, required programmatic checks, etc.). + +* Its scope is the **entire repository**. +* Deeper‑level AGENTS.md (not currently present) may override these instructions for their subtree. +* Direct human instructions in a prompt override anything here. + +--- + +Happy hacking! 🚀 From e577b81a665c1c5e2d95900eba33b34005cb5dbb Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Wed, 28 May 2025 12:02:39 +0800 Subject: [PATCH 27/85] discovery functions as tools (#37) making pulsar functions be able to exported as MCP tools --- .gitignore | 3 +- .licenserc.yaml | 40 + Makefile | 12 +- README.md | 1 + docs/tools/functions_as_tools.md | 107 +++ go.mod | 4 +- go.sum | 10 +- go.work.sum | 2 + pkg/cmd/mcp/sse.go | 20 +- pkg/cmd/mcp/stdio.go | 4 +- pkg/{mcp => common}/utils.go | 65 +- pkg/mcp/context_tools.go | 9 +- pkg/mcp/context_utils.go | 9 +- pkg/mcp/features.go | 1 + pkg/mcp/kafka_admin_connect_tools.go | 27 +- pkg/mcp/kafka_admin_groups_tools.go | 26 +- pkg/mcp/kafka_admin_partitions_tools.go | 9 +- pkg/mcp/kafka_admin_sr_tools.go | 29 +- pkg/mcp/kafka_admin_topics_tools.go | 23 +- pkg/mcp/kafka_client_consume_tools.go | 11 +- pkg/mcp/kafka_client_produce_tools.go | 11 +- pkg/mcp/prompts.go | 21 +- pkg/mcp/pulsar_admin_brokers_stats_tools.go | 5 +- pkg/mcp/pulsar_admin_brokers_tools.go | 19 +- pkg/mcp/pulsar_admin_cluster_tools.go | 55 +- pkg/mcp/pulsar_admin_functions_tools.go | 47 +- .../pulsar_admin_functions_worker_tools.go | 3 +- .../pulsar_admin_namespace_policy_tools.go | 173 ++-- pkg/mcp/pulsar_admin_namespace_tools.go | 39 +- .../pulsar_admin_nsisolationpolicy_tools.go | 21 +- pkg/mcp/pulsar_admin_packages_tools.go | 23 +- pkg/mcp/pulsar_admin_resourcequotas_tools.go | 29 +- pkg/mcp/pulsar_admin_schemas_tools.go | 11 +- pkg/mcp/pulsar_admin_sinks_tools.go | 45 +- pkg/mcp/pulsar_admin_sources_tools.go | 53 +- pkg/mcp/pulsar_admin_subscription_tools.go | 27 +- pkg/mcp/pulsar_admin_tenant_tools.go | 21 +- pkg/mcp/pulsar_admin_topic_policy_tools.go | 171 ++-- pkg/mcp/pulsar_admin_topic_tools.go | 53 +- pkg/mcp/pulsar_client_consume_tools.go | 19 +- pkg/mcp/pulsar_client_produce_tools.go | 19 +- pkg/mcp/pulsar_functions_as_tools.go | 117 +++ pkg/mcp/streamnative_resources_log_tools.go | 21 +- pkg/mcp/streamnative_resources_tools.go | 13 +- pkg/pftools/circuit_breaker.go | 163 ++++ pkg/pftools/errors.go | 8 + pkg/pftools/invocation.go | 281 ++++++ pkg/pftools/manager.go | 528 +++++++++++ pkg/pftools/schema.go | 146 +++ pkg/pftools/types.go | 104 +++ pkg/schema/avro.go | 38 + pkg/schema/avro_core.go | 731 +++++++++++++++ pkg/schema/avro_core_test.go | 833 ++++++++++++++++++ pkg/schema/avro_test.go | 375 ++++++++ pkg/schema/boolean.go | 59 ++ pkg/schema/boolean_test.go | 182 ++++ pkg/schema/common.go | 37 + pkg/schema/common_test.go | 38 + pkg/schema/converter.go | 41 + pkg/schema/converter_test.go | 50 ++ pkg/schema/json.go | 60 ++ pkg/schema/json_test.go | 306 +++++++ pkg/schema/number.go | 104 +++ pkg/schema/number_test.go | 300 +++++++ pkg/schema/string.go | 63 ++ pkg/schema/string_test.go | 204 +++++ sdk/sdk-apiserver/go.mod | 11 +- sdk/sdk-apiserver/go.sum | 2 +- 68 files changed, 5533 insertions(+), 559 deletions(-) create mode 100644 .licenserc.yaml create mode 100644 docs/tools/functions_as_tools.md rename pkg/{mcp => common}/utils.go (74%) create mode 100644 pkg/mcp/pulsar_functions_as_tools.go create mode 100644 pkg/pftools/circuit_breaker.go create mode 100644 pkg/pftools/errors.go create mode 100644 pkg/pftools/invocation.go create mode 100644 pkg/pftools/manager.go create mode 100644 pkg/pftools/schema.go create mode 100644 pkg/pftools/types.go create mode 100644 pkg/schema/avro.go create mode 100644 pkg/schema/avro_core.go create mode 100644 pkg/schema/avro_core_test.go create mode 100644 pkg/schema/avro_test.go create mode 100644 pkg/schema/boolean.go create mode 100644 pkg/schema/boolean_test.go create mode 100644 pkg/schema/common.go create mode 100644 pkg/schema/common_test.go create mode 100644 pkg/schema/converter.go create mode 100644 pkg/schema/converter_test.go create mode 100644 pkg/schema/json.go create mode 100644 pkg/schema/json_test.go create mode 100644 pkg/schema/number.go create mode 100644 pkg/schema/number_test.go create mode 100644 pkg/schema/string.go create mode 100644 pkg/schema/string_test.go diff --git a/.gitignore b/.gitignore index 1e48113..8e7c504 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ tmp/ *.log # Go -vendor \ No newline at end of file +vendor +.cursor/ diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 0000000..5190619 --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,40 @@ +# Copyright 2024 StreamNative +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +header: + license: + spdx-id: Apache-2.0 + copyright-owner: StreamNative + + paths-ignore: + - 'dist' + - 'licenses' + - '**/*.md' + - 'LICENSE' + - 'NOTICE' + - '.github/**' + - 'PROJECT' + - '**/go.mod' + - '**/go.work' + - '**/go.work.sum' + - '**/go.sum' + - '**/*.json' + - 'sdk/**' + - '**/*.yaml' + - '**/*.yml' + - 'Makefile' + - '.gitignore' + + comment: on-failure diff --git a/Makefile b/Makefile index 05f493f..569cb67 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,11 @@ build: -X ${VERSION_PATH}.date=${BUILD_DATE}" \ -o bin/snmcp cmd/streamnative-mcp-server/main.go -# go install github.com/elastic/go-licenser@latest -.PHONY: fix-license -fix-license: - go-licenser -license ASL2 -exclude sdk +.PHONY: license-check +license-check: + license-eye header check + +# go install github.com/apache/skywalking-eyes/cmd/license-eye@latest +.PHONY: license-fix +license-fix: + license-eye header fix diff --git a/README.md b/README.md index c41a426..c04217d 100644 --- a/README.md +++ b/README.md @@ -233,6 +233,7 @@ The StreamNative MCP Server allows you to enable or disable specific groups of f | Feature | Description | Docs | |---------------------|------------------------------------------------------------------|------| | `streamnative-cloud`| Manage StreamNative Cloud context and check resource logs | [streamnative_cloud.md](docs/tools/streamnative_cloud.md) | +| `functions-as-tools` | Dynamically exposes deployed Pulsar Functions as invokable MCP tools, with automatic input/output schema handling. | [functions_as_tools.md](docs/tools/functions_as_tools.md) | You can combine these features as needed using the `--features` flag. For example, to enable only Pulsar client features: ```bash diff --git a/docs/tools/functions_as_tools.md b/docs/tools/functions_as_tools.md new file mode 100644 index 0000000..81a3e91 --- /dev/null +++ b/docs/tools/functions_as_tools.md @@ -0,0 +1,107 @@ +# Functions as Tools + +The "Functions as Tools" feature allows the StreamNative MCP Server to dynamically discover Apache Pulsar Functions deployed in your cluster and expose them as invokable MCP tools for AI agents. This significantly enhances the capabilities of AI agents by allowing them to interact with custom business logic encapsulated in Pulsar Functions without manual tool registration for each function. + +## How it Works + +### 1. Function Discovery +The MCP Server automatically discovers Pulsar Functions available in the connected Pulsar cluster. It periodically polls for functions and identifies those suitable for exposure as tools. + +By default, if no custom name is provided (see Customizing Tool Properties), the MCP tool name might be derived from the Function's Fully Qualified Name (FQN), such as `pulsar_function_$tenant_$namespace_$name`. + +### 2. Schema Conversion +For each discovered function, the MCP Server attempts to extract its input and output schema definitions. Pulsar Functions can be defined with various schema types for their inputs and outputs (e.g., primitive types, AVRO, JSON). + +The server then converts these native Pulsar schemas into a format compatible with MCP tools. This allows the AI agent to understand the expected input parameters and the structure of the output. + +Supported Pulsar schema types for automatic conversion include: +* Primitive types (String, Boolean, Numbers like INT8, INT16, INT32, INT64, FLOAT, DOUBLE) +* AVRO +* JSON + +If a function uses an unsupported schema type for its input or output, or if schemas are not clearly defined, it might not be exposed as an MCP tool. + +## Enabling the Feature +To enable this functionality, you need to specific the default `--pulsar-instance` and `--pulsar-cluster`, and include `functions-as-tools` in the `--features` flag when starting the StreamNative MCP Server. + +Example: +```bash +snmcp sse --organization my-org --key-file /path/to/key-file.json --features pulsar-admin,pulsar-client,functions-as-tools --pulsar-instance instance --pulsar-cluster cluster +``` +If `functions-as-tools` is part of a broader feature set like `all` and `streamnative-cloud`, enabling `all` or `streamnative-cloud` would also activate this feature. + +## Customizing Tool Properties +You can customize how your Pulsar Functions appear as MCP tools (their name and description) by providing specific runtime options when deploying or updating your functions. This is done using the `--custom-runtime-options` flag with `pulsar-admin functions create` or `pulsar-admin functions update`. + +The MCP Server looks for the following environment variables within the custom runtime options: +* `MCP_TOOL_NAME`: Specifies the desired name for the MCP tool. +* `MCP_TOOL_DESCRIPTION`: Provides a description for the MCP tool, which helps the AI agent understand its purpose. + +**Format for `--custom-runtime-options`**: +The options should be a JSON string where you define an `env` map containing `MCP_TOOL_NAME` and `MCP_TOOL_DESCRIPTION`. + +**Example**: +When deploying a Pulsar Function, you can set these properties as follows: +```bash +pulsar-admin functions create \ + --tenant public \ + --namespace default \ + --name my-custom-logic-function \ + --inputs "persistent://public/default/input-topic" \ + --output "persistent://public/default/output-topic" \ + --py my_function.py \ + --classname my_function.MyFunction \ + --custom-runtime-options \ + ''' + { + "env": { + "MCP_TOOL_NAME": "CustomObjectFunction", + "MCP_TOOL_DESCRIPTION": "Takes an input number and returns the value incremented by 100." + } + } + ''' +``` +In this example: +- The MCP tool derived from `my-custom-logic-function` will be named `CustomObjectFunction`. +- Its description will be "Takes an input number and returns the value incremented by 100." + +If these custom options are not provided, the MCP tool name might default to a derivative of the function's FQN, and the description might be generic and cannot help AI Agent to understand the purpose of the MCP tool. + +## Server-Side Configuration via Environment Variables + +Beyond customizing individual tool properties at the function deployment level, you can also configure the overall behavior of the "Functions as Tools" feature on the StreamNative MCP Server side using the following environment variables. These variables are typically set when starting the MCP server. + +* `FUNCTIONS_AS_TOOLS_POLL_INTERVAL` + * **Description**: Controls how frequently the MCP Server polls the Pulsar cluster to discover or update available Pulsar Functions. Setting a lower value means functions are discovered faster, but it may increase the load on the Pulsar cluster. + * **Unit**: Seconds + * **Default**: Defaults to the value specified in `pftools.DefaultManagerOptions()`. Refer to the `pkg/pftools` package for the precise default (e.g., if the internal default is 60 seconds, it will be `60`). +* `FUNCTIONS_AS_TOOLS_TIMEOUT` + * **Description**: Sets the default timeout for invoking a Pulsar Function as an MCP tool. If a function execution exceeds this duration, the call will be considered timed out. + * **Unit**: Seconds + * **Default**: Defaults to the value specified in `pftools.DefaultManagerOptions()` (e.g., if the internal default is 30 seconds, it will be `30`). +* `FUNCTIONS_AS_TOOLS_FAILURE_THRESHOLD` + * **Description**: Defines the number of consecutive failures for a specific Pulsar Function tool before it is temporarily moved to a "circuit breaker open" state. In this state, further calls to this specific function tool will be immediately rejected without attempting to execute the function, until the `FUNCTIONS_AS_TOOLS_RESET_TIMEOUT` is reached. + * **Unit**: Integer (number of failures) + * **Default**: Defaults to the value specified in `pftools.DefaultManagerOptions()` (e.g., if the internal default is 5, it will be `5`). +* `FUNCTIONS_AS_TOOLS_RESET_TIMEOUT` + * **Description**: Specifies the duration for which a Pulsar Function tool remains in the "circuit breaker open" state (due to exceeding the failure threshold) before the MCP server attempts to reset the circuit and allow calls again. + * **Unit**: Seconds + * **Default**: Defaults to the value specified in `pftools.DefaultManagerOptions()` (e.g., if the internal default is 60 seconds, it will be `60`). +* `FUNCTIONS_AS_TOOLS_TENANT_NAMESPACES` + * **Description**: A comma-separated list of Pulsar `tenant/namespace` strings that the MCP Server should scan for Pulsar Functions. This allows you to restrict function discovery to specific namespaces. If not set, the server might attempt to discover functions from all namespaces it has access to, as permitted by its Pulsar client configuration. + * **Format**: `tenant1/namespace1,tenant2/namespace2` + * **Example**: `public/default,my-tenant/app-functions` + * **Default**: Empty (meaning discover from all accessible namespaces (only on StreamNative Cloud)). +* `FUNCTIONS_AS_TOOLS_STRICT_EXPORT` + * **Description**: Only export functions with `MCP_TOOL_NAME` and `MCP_TOOL_DESCRIPTION` defined. + * **Format**: `true` or `false` + * **Example**: `false` + * **Default**: `true` + +## Considerations and Limitations + +* **Schema Definition**: For reliable schema conversion, ensure your Pulsar Functions have clearly defined input and output schemas using Pulsar's schema registry capabilities. Functions with ambiguous or `BYTES` schemas might not be converted effectively or might default to generic byte array inputs/outputs. +* **Function State**: This feature primarily focuses on the stateless request/response invocation pattern of functions. +* **Discovery Latency**: There might be a slight delay between deploying/updating a function and it appearing as an MCP tool, due to the server's polling interval for function discovery. +* **Error Handling**: The MCP Server will attempt to relay errors from function executions, but the specifics might vary. +* **Security**: Ensure that only intended functions are exposed by managing permissions within your Pulsar cluster. The MCP Server will operate with the permissions of its Pulsar client. diff --git a/go.mod b/go.mod index 923ebc3..899189a 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,9 @@ require ( github.com/99designs/keyring v1.2.2 github.com/apache/pulsar-client-go v0.13.1 github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/google/go-cmp v0.7.0 github.com/hamba/avro/v2 v2.28.0 - github.com/mark3labs/mcp-go v0.27.0 + github.com/mark3labs/mcp-go v0.28.0 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 @@ -16,6 +17,7 @@ require ( github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver v0.0.0-20250506174209-b67ea08ddd82 github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect v0.0.0-00010101000000-000000000000 + github.com/stretchr/testify v1.10.0 github.com/twmb/franz-go v1.18.1 github.com/twmb/franz-go/pkg/kadm v1.16.0 github.com/twmb/franz-go/pkg/sr v1.3.0 diff --git a/go.sum b/go.sum index 9570fdb..835b7fd 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,3 @@ -cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= @@ -91,9 +90,8 @@ github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -131,8 +129,8 @@ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mark3labs/mcp-go v0.27.0 h1:iok9kU4DUIU2/XVLgFS2Q9biIDqstC0jY4EQTK2Erzc= -github.com/mark3labs/mcp-go v0.27.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.28.0 h1:7yl4y5D1KYU2f/9Uxp7xfLIggfunHoESCRbrjcytcLM= +github.com/mark3labs/mcp-go v0.28.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= diff --git a/go.work.sum b/go.work.sum index fc10c18..22423cd 100644 --- a/go.work.sum +++ b/go.work.sum @@ -138,6 +138,8 @@ github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+ github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/mark3labs/mcp-go v0.23.1 h1:RzTzZ5kJ+HxwnutKA4rll8N/pKV6Wh5dhCmiJUu5S9I= github.com/mark3labs/mcp-go v0.23.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.28.0 h1:7yl4y5D1KYU2f/9Uxp7xfLIggfunHoESCRbrjcytcLM= +github.com/mark3labs/mcp-go v0.28.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go index f46431c..3222c61 100644 --- a/pkg/cmd/mcp/sse.go +++ b/pkg/cmd/mcp/sse.go @@ -31,6 +31,7 @@ import ( "github.com/mark3labs/mcp-go/server" "github.com/pkg/errors" "github.com/spf13/cobra" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/mcp" ) @@ -68,24 +69,29 @@ func runSseServer(configOpts *ServerOptions) error { } // 3. Create a new MCP server - ctx = context.WithValue(ctx, mcp.OptionsKey, configOpts.Options) - mcpServer := server.NewSSEServer( - newMcpServer(configOpts, logger), + ctx = context.WithValue(ctx, common.OptionsKey, configOpts.Options) + mcpServer := newMcpServer(configOpts, logger) + + // add Pulsar Functions as MCP tools + mcp.PulsarFunctionManagedMcpTools(mcpServer, false, configOpts.Features) + + sseServer := server.NewSSEServer( + mcpServer, server.WithStaticBasePath(configOpts.HTTPPath), server.WithHTTPContextFunc(func(ctx context.Context, _ *http.Request) context.Context { - return context.WithValue(ctx, mcp.OptionsKey, configOpts.Options) + return context.WithValue(ctx, common.OptionsKey, configOpts.Options) }), ) // 4. Expose the full SSE URL to the user - ssePath := mcpServer.CompleteSsePath() + ssePath := sseServer.CompleteSsePath() fmt.Fprintf(os.Stderr, "StreamNative Cloud MCP Server listening on http://%s%s\n", configOpts.HTTPAddr, ssePath) // 5. Run the HTTP listener in a goroutine errCh := make(chan error, 1) go func() { - if err := mcpServer.Start(configOpts.HTTPAddr); err != nil && !errors.Is(err, http.ErrServerClosed) { + if err := sseServer.Start(configOpts.HTTPAddr); err != nil && !errors.Is(err, http.ErrServerClosed) { errCh <- err // bubble up real crashes } }() @@ -108,7 +114,7 @@ func runSseServer(configOpts *ServerOptions) error { defer cancel() // First try to shut down the SSE server - if err := mcpServer.Shutdown(shCtx); err != nil { + if err := sseServer.Shutdown(shCtx); err != nil { if !errors.Is(err, http.ErrServerClosed) { logger.Errorf("Error shutting down SSE server: %v", err) } diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index f447599..23e3ef1 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -30,8 +30,8 @@ import ( "github.com/mark3labs/mcp-go/server" "github.com/sirupsen/logrus" "github.com/spf13/cobra" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/log" - "github.com/streamnative/streamnative-mcp-server/pkg/mcp" ) func NewCmdMcpStdioServer(configOpts *ServerOptions) *cobra.Command { @@ -63,7 +63,7 @@ func runStdioServer(configOpts *ServerOptions) error { } // Create a new MCP server - ctx = context.WithValue(ctx, mcp.OptionsKey, configOpts.Options) + ctx = context.WithValue(ctx, common.OptionsKey, configOpts.Options) stdLogger := stdlog.New(logger.Writer(), "snmcp-server", 0) stdioServer := server.NewStdioServer(newMcpServer(configOpts, logger)) diff --git a/pkg/mcp/utils.go b/pkg/common/utils.go similarity index 74% rename from pkg/mcp/utils.go rename to pkg/common/utils.go index fef2ca3..e607701 100644 --- a/pkg/mcp/utils.go +++ b/pkg/common/utils.go @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -package mcp +package common import ( "context" @@ -37,12 +37,12 @@ const ( TokenRefreshWindow = 5 * time.Minute ) -// requiredParam is a helper function that can be used to fetch a requested parameter from the request. +// RequiredParam is a helper function that can be used to fetch a requested parameter from the request. // It does the following checks: // 1. Checks if the parameter is present in the request. // 2. Checks if the parameter is of the expected type. // 3. Checks if the parameter is not empty, i.e: non-zero value -func requiredParam[T comparable](arguments map[string]interface{}, p string) (T, error) { +func RequiredParam[T comparable](arguments map[string]interface{}, p string) (T, error) { var zero T // Check if the parameter is present in the request @@ -55,16 +55,29 @@ func requiredParam[T comparable](arguments map[string]interface{}, p string) (T, return zero, fmt.Errorf("parameter %s is not of type %T", p, zero) } - if arguments[p].(T) == zero { - return zero, fmt.Errorf("missing required parameter: %s", p) - + _, isBool := interface{}(zero).(bool) + _, isInt := interface{}(zero).(int) + _, isInt8 := interface{}(zero).(int8) + _, isInt16 := interface{}(zero).(int16) + _, isInt32 := interface{}(zero).(int32) + _, isInt64 := interface{}(zero).(int64) + _, isFloat32 := interface{}(zero).(float32) + _, isFloat64 := interface{}(zero).(float64) + _, isUint8 := interface{}(zero).(uint8) + _, isUint16 := interface{}(zero).(uint16) + _, isUint32 := interface{}(zero).(uint32) + _, isUint64 := interface{}(zero).(uint64) + if !isBool && !isInt && !isInt8 && !isInt16 && !isInt32 && !isInt64 && !isFloat32 && !isFloat64 && !isUint8 && !isUint16 && !isUint32 && !isUint64 { + if arguments[p].(T) == zero { + return zero, fmt.Errorf("missing required parameter: %s", p) + } } return arguments[p].(T), nil } // Helper function to get an optional parameter from the request -func optionalParam[T any](arguments map[string]interface{}, paramName string) (T, bool) { +func OptionalParam[T any](arguments map[string]interface{}, paramName string) (T, bool) { var empty T param, ok := arguments[paramName] if !ok { @@ -80,7 +93,7 @@ func optionalParam[T any](arguments map[string]interface{}, paramName string) (T } // Helper function to get a required array parameter from the request -func requiredParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, error) { +func RequiredParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, error) { var empty []T param, ok := arguments[paramName] if !ok { @@ -104,7 +117,7 @@ func requiredParamArray[T any](arguments map[string]interface{}, paramName strin return result, nil } -func optionalParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, bool) { +func OptionalParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, bool) { var empty []T param, ok := arguments[paramName] if !ok { @@ -128,8 +141,8 @@ func optionalParamArray[T any](arguments map[string]interface{}, paramName strin return result, true } -// optionalParamConfigs gets an optional parameter as a list of key=value strings -func optionalParamConfigs(arguments map[string]interface{}, paramName string) ([]string, bool) { +// OptionalParamConfigs gets an optional parameter as a list of key=value strings +func OptionalParamConfigs(arguments map[string]interface{}, paramName string) ([]string, bool) { param, ok := arguments[paramName] if !ok { @@ -151,8 +164,8 @@ func optionalParamConfigs(arguments map[string]interface{}, paramName string) ([ return result, true } -// requiredParamObject gets a required object parameter from the request -func requiredParamObject(arguments map[string]interface{}, name string) (map[string]interface{}, error) { +// RequiredParamObject gets a required object parameter from the request +func RequiredParamObject(arguments map[string]interface{}, name string) (map[string]interface{}, error) { // Get the parameter value paramValue, found := arguments[name] if !found || paramValue == nil { @@ -167,12 +180,12 @@ func requiredParamObject(arguments map[string]interface{}, name string) (map[str return nil, fmt.Errorf("%s parameter must be an object", name) } -func getOptions(ctx context.Context) *config.Options { +func GetOptions(ctx context.Context) *config.Options { return ctx.Value(OptionsKey).(*config.Options) } -// isClusterAvailable checks if a PulsarCluster is available (ready) -func isClusterAvailable(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) bool { +// IsClusterAvailable checks if a PulsarCluster is available (ready) +func IsClusterAvailable(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) bool { // Check if broker has ready replicas if cluster.Status.Broker == nil || cluster.Status.Broker.ReadyReplicas == nil || *cluster.Status.Broker.ReadyReplicas == 0 { return false @@ -187,8 +200,8 @@ func isClusterAvailable(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgAp return false } -// getEngineType returns the Pulsar cluster is an Ursa engine or a Classic engine -func getEngineType(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) string { +// GetEngineType returns the Pulsar cluster is an Ursa engine or a Classic engine +func GetEngineType(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster) string { if cluster.Metadata.Annotations != nil { if v, has := (*cluster.Metadata.Annotations)[AnnotationStreamNativeCloudEngine]; has && v == "ursa" { return "ursa" @@ -197,7 +210,7 @@ func getEngineType(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisClo return "classic" } -func convertToMapInterface(m map[string]string) map[string]interface{} { +func ConvertToMapInterface(m map[string]string) map[string]interface{} { result := make(map[string]interface{}) for k, v := range m { result[k] = v @@ -205,7 +218,7 @@ func convertToMapInterface(m map[string]string) map[string]interface{} { return result } -func convertToMapString(m map[string]interface{}) map[string]string { +func ConvertToMapString(m map[string]interface{}) map[string]string { result := make(map[string]string) for k, v := range m { result[k] = fmt.Sprintf("%v", v) @@ -213,15 +226,15 @@ func convertToMapString(m map[string]interface{}) map[string]string { return result } -// isInstanceValid checks if PulsarInstance has valid OAuth2 authentication configuration -func isInstanceValid(instance sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) bool { +// IsInstanceValid checks if PulsarInstance has valid OAuth2 authentication configuration +func IsInstanceValid(instance sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance) bool { return instance.Status != nil && (instance.Status.Auth.Type == "oauth2" || instance.Status.Auth.Type == "apikey") && instance.Status.Auth.Oauth2.IssuerURL != "" && instance.Status.Auth.Oauth2.Audience != "" } -func hasCachedValidToken(cachedGrant *auth.AuthorizationGrant) (bool, error) { +func HasCachedValidToken(cachedGrant *auth.AuthorizationGrant) (bool, error) { if cachedGrant == nil || cachedGrant.Token == nil { return false, nil } @@ -230,7 +243,7 @@ func hasCachedValidToken(cachedGrant *auth.AuthorizationGrant) (bool, error) { return cachedGrant.Token.Valid(), nil } -func isTokenAboutToExpire(cachedGrant *auth.AuthorizationGrant, window time.Duration) (bool, error) { +func IsTokenAboutToExpire(cachedGrant *auth.AuthorizationGrant, window time.Duration) (bool, error) { if cachedGrant == nil || cachedGrant.Token == nil { return true, nil } @@ -246,8 +259,8 @@ func isTokenAboutToExpire(cachedGrant *auth.AuthorizationGrant, window time.Dura return timeUntilExpiry <= window, nil } -// parseMessageConfigs parses a list of key=value strings into a map -func parseMessageConfigs(configs []string) (map[string]*string, error) { +// ParseMessageConfigs parses a list of key=value strings into a map +func ParseMessageConfigs(configs []string) (map[string]*string, error) { result := make(map[string]*string) for _, config := range configs { diff --git a/pkg/mcp/context_tools.go b/pkg/mcp/context_tools.go index bf459fa..fbf112b 100644 --- a/pkg/mcp/context_tools.go +++ b/pkg/mcp/context_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/config" ) @@ -61,7 +62,7 @@ func RegisterContextTools(s *server.MCPServer, features []string) { // handleWhoami handles the whoami tool request func handleWhoami(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - options := ctx.Value(OptionsKey).(*config.Options) + options := ctx.Value(common.OptionsKey).(*config.Options) issuer := options.LoadConfigOrDie().Auth.Issuer() userName, err := options.WhoAmI(issuer.Audience) @@ -90,14 +91,14 @@ func handleWhoami(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResu // handleSetContext handles the set-context tool request func handleSetContext(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - options := ctx.Value(OptionsKey).(*config.Options) + options := ctx.Value(common.OptionsKey).(*config.Options) - instanceName, err := requiredParam[string](request.Params.Arguments, "instanceName") + instanceName, err := common.RequiredParam[string](request.Params.Arguments, "instanceName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get instance name: %v", err)), nil } - clusterName, err := requiredParam[string](request.Params.Arguments, "clusterName") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "clusterName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil } diff --git a/pkg/mcp/context_utils.go b/pkg/mcp/context_utils.go index 6fcbb2a..598d19b 100644 --- a/pkg/mcp/context_utils.go +++ b/pkg/mcp/context_utils.go @@ -21,6 +21,7 @@ import ( "context" "fmt" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/config" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" @@ -52,7 +53,7 @@ func SetContext(options *config.Options, instanceName, clusterName string) error foundInstance := false for _, i := range instances.Items { if *i.Metadata.Name == instanceName { - if isInstanceValid(i) { + if common.IsInstanceValid(i) { instance = i foundInstance = true break @@ -73,7 +74,7 @@ func SetContext(options *config.Options, instanceName, clusterName string) error foundCluster := false for _, c := range clusters.Items { if *c.Metadata.Name == clusterName && c.Spec.InstanceName == instanceName { - if isClusterAvailable(c) { + if common.IsClusterAvailable(c) { cluster = c foundCluster = true break @@ -110,13 +111,13 @@ func SetContext(options *config.Options, instanceName, clusterName string) error cachedGrant, err := options.AuthOptions.LoadGrant(tokenKey) if err == nil && cachedGrant != nil { - cacheHasValidToken, err := hasCachedValidToken(cachedGrant) + cacheHasValidToken, err := common.HasCachedValidToken(cachedGrant) if err != nil { cacheHasValidToken = false } if cacheHasValidToken { - tokenAboutToExpire, err := isTokenAboutToExpire(cachedGrant, TokenRefreshWindow) + tokenAboutToExpire, err := common.IsTokenAboutToExpire(cachedGrant, common.TokenRefreshWindow) if err != nil { tokenAboutToExpire = true } diff --git a/pkg/mcp/features.go b/pkg/mcp/features.go index f7c81ef..1a7ab8c 100644 --- a/pkg/mcp/features.go +++ b/pkg/mcp/features.go @@ -47,4 +47,5 @@ const ( FeaturePulsarAdminTopicPolicy Feature = "pulsar-admin-topic-policy" FeaturePulsarClient Feature = "pulsar-client" FeatureStreamNativeCloud Feature = "streamnative-cloud" + FeatureFunctionsAsTools Feature = "functions-as-tools" ) diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go index 7b4c9cf..df5878d 100644 --- a/pkg/mcp/kafka_admin_connect_tools.go +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" ) @@ -150,12 +151,12 @@ func KafkaAdminAddKafkaConnectTools(s *server.MCPServer, readOnly bool, features func handleKafkaConnectTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -255,7 +256,7 @@ func handleKafkaConnectorsList(ctx context.Context, admin kafka.Connect, _ mcp.C func handleKafkaConnectorGet(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get a specific connector - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -275,17 +276,17 @@ func handleKafkaConnectorGet(ctx context.Context, admin kafka.Connect, request m func handleKafkaConnectorCreate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Create a new connector - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } - configMap, err := requiredParamObject(request.Params.Arguments, "config") + configMap, err := common.RequiredParamObject(request.Params.Arguments, "config") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil } - config := convertToMapString(configMap) + config := common.ConvertToMapString(configMap) config["name"] = name @@ -304,17 +305,17 @@ func handleKafkaConnectorCreate(ctx context.Context, admin kafka.Connect, reques func handleKafkaConnectorUpdate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Update a connector - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } - configMap, err := requiredParamObject(request.Params.Arguments, "config") + configMap, err := common.RequiredParamObject(request.Params.Arguments, "config") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil } - config := convertToMapString(configMap) + config := common.ConvertToMapString(configMap) config["name"] = name @@ -333,7 +334,7 @@ func handleKafkaConnectorUpdate(ctx context.Context, admin kafka.Connect, reques func handleKafkaConnectorDelete(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Delete a connector - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -348,7 +349,7 @@ func handleKafkaConnectorDelete(ctx context.Context, admin kafka.Connect, reques func handleKafkaConnectorRestart(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Restart a connector - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -363,7 +364,7 @@ func handleKafkaConnectorRestart(ctx context.Context, admin kafka.Connect, reque func handleKafkaConnectorPause(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Pause a connector - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -378,7 +379,7 @@ func handleKafkaConnectorPause(ctx context.Context, admin kafka.Connect, request func handleKafkaConnectorResume(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Resume a connector - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index b4ab028..363f199 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kadm" ) @@ -83,7 +84,6 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str " topic: \"my-topic\"\n" + " partition: 0\n" + " offset: 1000\n\n" + - "This tool requires Kafka super-user permissions." kafkaGroupsTool := mcp.NewTool("kafka_admin_groups", @@ -125,12 +125,12 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str func handleKafkaGroupsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -181,7 +181,7 @@ func handleKafkaGroupsTool(readOnly bool) func(context.Context, mcp.CallToolRequ } func handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := requiredParam[string](request.Params.Arguments, "group") + groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } @@ -210,12 +210,12 @@ func handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request m } func handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := requiredParam[string](request.Params.Arguments, "group") + groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } - members, err := requiredParam[string](request.Params.Arguments, "members") + members, err := common.RequiredParam[string](request.Params.Arguments, "members") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get members: %v", err)), nil } @@ -248,7 +248,7 @@ func handleKafkaGroupsList(ctx context.Context, admin *kadm.Client, _ mcp.CallTo } func handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := requiredParam[string](request.Params.Arguments, "group") + groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } @@ -267,12 +267,12 @@ func handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mc } func handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := requiredParam[string](request.Params.Arguments, "group") + groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -303,23 +303,23 @@ func handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, reque func handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - groupName, err := requiredParam[string](request.Params.Arguments, "group") + groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - partition, err := requiredParam[float64](request.Params.Arguments, "partition") + partition, err := common.RequiredParam[float64](request.Params.Arguments, "partition") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get partition number: %v", err)), nil } partitionInt := int32(partition) - offset, err := requiredParam[float64](request.Params.Arguments, "offset") + offset, err := common.RequiredParam[float64](request.Params.Arguments, "offset") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get offset value: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_partitions_tools.go b/pkg/mcp/kafka_admin_partitions_tools.go index a1a3780..9448602 100644 --- a/pkg/mcp/kafka_admin_partitions_tools.go +++ b/pkg/mcp/kafka_admin_partitions_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kadm" ) @@ -87,12 +88,12 @@ func KafkaAdminAddPartitionsTools(s *server.MCPServer, readOnly bool, features [ func handleKafkaPartitionsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -128,12 +129,12 @@ func handleKafkaPartitionsTool(readOnly bool) func(context.Context, mcp.CallTool } func handleKafkaPartitionUpdate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - topicName, err := requiredParam[string](request.Params.Arguments, "topic") + topicName, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - newTotal, err := requiredParam[int](request.Params.Arguments, "new-total") + newTotal, err := common.RequiredParam[int](request.Params.Arguments, "new-total") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get new total: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index cdec21a..eab524e 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/sr" ) @@ -149,12 +150,12 @@ func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, featur func handleKafkaSchemaRegistryTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -245,7 +246,7 @@ func handleKafkaSubjectsList(ctx context.Context, admin *sr.Client, _ mcp.CallTo } func handleKafkaVersionsList(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := requiredParam[string](request.Params.Arguments, "subject") + subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } @@ -278,7 +279,7 @@ func handleKafkaTypesList(ctx context.Context, admin *sr.Client, _ mcp.CallToolR } func handleKafkaSubjectGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := requiredParam[string](request.Params.Arguments, "subject") + subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } @@ -297,17 +298,17 @@ func handleKafkaSubjectGet(ctx context.Context, admin *sr.Client, request mcp.Ca } func handleKafkaSubjectCreate(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := requiredParam[string](request.Params.Arguments, "subject") + subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - schema, err := requiredParam[string](request.Params.Arguments, "schema") + schema, err := common.RequiredParam[string](request.Params.Arguments, "schema") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil } - typeString, err := requiredParam[string](request.Params.Arguments, "type") + typeString, err := common.RequiredParam[string](request.Params.Arguments, "type") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema type: %v", err)), nil } @@ -337,12 +338,12 @@ func handleKafkaSubjectCreate(ctx context.Context, admin *sr.Client, request mcp } func handleKafkaSubjectDelete(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := requiredParam[string](request.Params.Arguments, "subject") + subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - version, err := requiredParam[int](request.Params.Arguments, "version") + version, err := common.RequiredParam[int](request.Params.Arguments, "version") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil } @@ -356,12 +357,12 @@ func handleKafkaSubjectDelete(ctx context.Context, admin *sr.Client, request mcp } func handleKafkaVersionGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := requiredParam[string](request.Params.Arguments, "subject") + subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - version, err := requiredParam[int](request.Params.Arguments, "version") + version, err := common.RequiredParam[int](request.Params.Arguments, "version") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil } @@ -380,7 +381,7 @@ func handleKafkaVersionGet(ctx context.Context, admin *sr.Client, request mcp.Ca } func handleKafkaCompatibilityGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := requiredParam[string](request.Params.Arguments, "subject") + subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } @@ -396,12 +397,12 @@ func handleKafkaCompatibilityGet(ctx context.Context, admin *sr.Client, request } func handleKafkaCompatibilitySet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := requiredParam[string](request.Params.Arguments, "subject") + subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - compatibility, err := requiredParam[string](request.Params.Arguments, "compatibility") + compatibility, err := common.RequiredParam[string](request.Params.Arguments, "compatibility") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go index adea483..c83be6f 100644 --- a/pkg/mcp/kafka_admin_topics_tools.go +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kadm" ) @@ -127,12 +128,12 @@ func KafkaAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []stri func handleKafkaTopicTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -182,7 +183,7 @@ func handleKafkaTopicTool(readOnly bool) func(context.Context, mcp.CallToolReque func handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := requiredParam[string](request.Params.Arguments, "name") + topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -204,27 +205,27 @@ func handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.Ca func handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := requiredParam[string](request.Params.Arguments, "name") + topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } // Get optional parameters - partitions, ok := optionalParam[float64](request.Params.Arguments, "partitions") + partitions, ok := common.OptionalParam[float64](request.Params.Arguments, "partitions") if !ok { partitions = 1 // Default to 1 partition } - replicationFactor, ok := optionalParam[float64](request.Params.Arguments, "replication-factor") + replicationFactor, ok := common.OptionalParam[float64](request.Params.Arguments, "replication-factor") if !ok { replicationFactor = 1 // Default to replication factor 1 } // Get configs if provided var configEntries map[string]*string - configsArray, ok := optionalParamConfigs(request.Params.Arguments, "configs") + configsArray, ok := common.OptionalParamConfigs(request.Params.Arguments, "configs") if ok { - configEntries, err = parseMessageConfigs(configsArray) + configEntries, err = common.ParseMessageConfigs(configsArray) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to parse configs: %v", err)), nil } @@ -241,7 +242,7 @@ func handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp func handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := requiredParam[string](request.Params.Arguments, "name") + topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -257,7 +258,7 @@ func handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp func handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - includeInternal, ok := optionalParam[bool](request.Params.Arguments, "include-internal") + includeInternal, ok := common.OptionalParam[bool](request.Params.Arguments, "include-internal") if !ok { includeInternal = false } @@ -292,7 +293,7 @@ func handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp. func handleKafkaTopicMetadata(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := requiredParam[string](request.Params.Arguments, "name") + topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go index 10f907c..10d9c46 100644 --- a/pkg/mcp/kafka_client_consume_tools.go +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kgo" "github.com/twmb/franz-go/pkg/sr" @@ -114,7 +115,7 @@ func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logru func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { opts := []kgo.Opt{} // Get required parameters - topicName, err := requiredParam[string](request.Params.Arguments, "topic") + topicName, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -124,17 +125,17 @@ func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp. opts = append(opts, kgo.KeepRetryableFetchErrors()) w := logger.Writer() opts = append(opts, kgo.WithLogger(kgo.BasicLogger(w, kgo.LogLevelInfo, nil))) - maxMessages, hasMaxMessages := optionalParam[float64](request.Params.Arguments, "max-messages") + maxMessages, hasMaxMessages := common.OptionalParam[float64](request.Params.Arguments, "max-messages") if !hasMaxMessages { maxMessages = 10 // Default to 10 messages } - timeoutSec, hasTimeout := optionalParam[float64](request.Params.Arguments, "timeout") + timeoutSec, hasTimeout := common.OptionalParam[float64](request.Params.Arguments, "timeout") if !hasTimeout { timeoutSec = 10 // Default to 10 seconds } - group, hasGroup := optionalParam[string](request.Params.Arguments, "group") + group, hasGroup := common.OptionalParam[string](request.Params.Arguments, "group") if !hasGroup { group = "" } @@ -142,7 +143,7 @@ func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp. opts = append(opts, kgo.ConsumerGroup(group)) } - offsetStr, hasOffset := optionalParam[string](request.Params.Arguments, "offset") + offsetStr, hasOffset := common.OptionalParam[string](request.Params.Arguments, "offset") if !hasOffset { offsetStr = "atstart" // Default to starting at the beginning } diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index 8e8a8ab..0b2b5c5 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -27,6 +27,7 @@ import ( "github.com/hamba/avro/v2" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kgo" "github.com/twmb/franz-go/pkg/sr" @@ -112,23 +113,23 @@ func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []s // handleKafkaProduce handles producing messages to a Kafka topic func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := requiredParam[string](request.Params.Arguments, "topic") + topicName, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } // Handle single message case // Get value from parameter or file - value, err := requiredParam[string](request.Params.Arguments, "value") + value, err := common.RequiredParam[string](request.Params.Arguments, "value") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get value: %v", err)), nil } // Get optional parameters - key, hasKey := optionalParam[string](request.Params.Arguments, "key") - headers, hasHeaders := optionalParam[[]interface{}](request.Params.Arguments, "headers") + key, hasKey := common.OptionalParam[string](request.Params.Arguments, "key") + headers, hasHeaders := common.OptionalParam[[]interface{}](request.Params.Arguments, "headers") sync := true - if syncVal, hasSync := optionalParam[bool](request.Params.Arguments, "sync"); hasSync { + if syncVal, hasSync := common.OptionalParam[bool](request.Params.Arguments, "sync"); hasSync { sync = syncVal } diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go index 1a12faf..28252f3 100644 --- a/pkg/mcp/prompts.go +++ b/pkg/mcp/prompts.go @@ -25,6 +25,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/config" sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" "k8s.io/utils/ptr" @@ -81,7 +82,7 @@ func RegisterPrompts(s *server.MCPServer) { } func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { - options := getOptions(ctx) + options := common.GetOptions(ctx) apiClient, err := config.GetAPIClient() if err != nil { return nil, fmt.Errorf("failed to get API client: %v", err) @@ -118,11 +119,11 @@ func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp } status := "Not Ready" - if isClusterAvailable(cluster) { + if common.IsClusterAvailable(cluster) { status = "Ready" } - engineType := getEngineType(cluster) + engineType := common.GetEngineType(cluster) messages[i+1] = mcp.PromptMessage{ Content: mcp.TextContent{ @@ -147,13 +148,13 @@ func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp } func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { - options := getOptions(ctx) + options := common.GetOptions(ctx) apiClient, err := config.GetAPIClient() if err != nil { return nil, fmt.Errorf("failed to get API client: %v", err) } - name, err := requiredParam[string](convertToMapInterface(request.Params.Arguments), "name") + name, err := common.RequiredParam[string](common.ConvertToMapInterface(request.Params.Arguments), "name") if err != nil { return nil, fmt.Errorf("failed to get name: %v", err) } @@ -204,24 +205,24 @@ func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) } func handleBuildServerlessPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { - options := getOptions(ctx) + options := common.GetOptions(ctx) apiClient, err := config.GetAPIClient() if err != nil { return nil, fmt.Errorf("failed to get API client: %v", err) } - arguments := convertToMapInterface(request.Params.Arguments) + arguments := common.ConvertToMapInterface(request.Params.Arguments) - instanceName, err := requiredParam[string](arguments, "instance-name") + instanceName, err := common.RequiredParam[string](arguments, "instance-name") if err != nil { return nil, fmt.Errorf("failed to get instance name: %v", err) } - clusterName, err := requiredParam[string](arguments, "cluster-name") + clusterName, err := common.RequiredParam[string](arguments, "cluster-name") if err != nil { return nil, fmt.Errorf("failed to get cluster name: %v", err) } - provider, hasProvider := optionalParam[string](arguments, "provider") + provider, hasProvider := common.OptionalParam[string](arguments, "provider") if !hasProvider { provider = "" } diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go index 6b04e51..830b0ef 100644 --- a/pkg/mcp/pulsar_admin_brokers_stats_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -70,7 +71,7 @@ func handleBrokerStats(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp. } // Get required resource parameter - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + "Please specify one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.")), nil @@ -85,7 +86,7 @@ func handleBrokerStats(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp. case "topics": return handleTopics(client) case "allocator_stats": - allocatorName, err := requiredParam[string](request.Params.Arguments, "allocator_name") + allocatorName, err := common.RequiredParam[string](request.Params.Arguments, "allocator_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'allocator_name' for allocator_stats resource. " + "Please provide the name of the allocator to get statistics for.")), nil diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go index f343f5d..388233c 100644 --- a/pkg/mcp/pulsar_admin_brokers_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -96,13 +97,13 @@ func handleBrokerTool(readOnly bool) func(context.Context, mcp.CallToolRequest) } // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + "Please specify one of: brokers, health, config, namespaces.")), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + "Please specify one of: list, get, update, delete based on the resource type.")), nil @@ -162,7 +163,7 @@ func validateResourceOperation(resource, operation string) (bool, string) { func handleBrokersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "list": - clusterName, err := requiredParam[string](request.Params.Arguments, "clusterName") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "clusterName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + "Please provide the name of the Pulsar cluster to list brokers for.")), nil @@ -207,7 +208,7 @@ func handleHealthResource(client cmdutils.Client, operation string, _ mcp.CallTo func handleConfigResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - configType, err := requiredParam[string](request.Params.Arguments, "configType") + configType, err := common.RequiredParam[string](request.Params.Arguments, "configType") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configType'. " + "Please specify one of: dynamic, runtime, internal, all_dynamic.")), nil @@ -242,13 +243,13 @@ func handleConfigResource(client cmdutils.Client, operation string, request mcp. return mcp.NewToolResultText(string(resultJSON)), nil case "update": - configName, err := requiredParam[string](request.Params.Arguments, "configName") + configName, err := common.RequiredParam[string](request.Params.Arguments, "configName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + "Please provide the name of the configuration parameter to update.")), nil } - configValue, err := requiredParam[string](request.Params.Arguments, "configValue") + configValue, err := common.RequiredParam[string](request.Params.Arguments, "configValue") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configValue'. " + "Please provide the new value for the configuration parameter.")), nil @@ -264,7 +265,7 @@ func handleConfigResource(client cmdutils.Client, operation string, request mcp. configName, configValue)), nil case "delete": - configName, err := requiredParam[string](request.Params.Arguments, "configName") + configName, err := common.RequiredParam[string](request.Params.Arguments, "configName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + "Please provide the name of the configuration parameter to delete.")), nil @@ -288,13 +289,13 @@ func handleConfigResource(client cmdutils.Client, operation string, request mcp. func handleNamespacesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - clusterName, err := requiredParam[string](request.Params.Arguments, "clusterName") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "clusterName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + "Please provide the name of the Pulsar cluster.")), nil } - brokerURL, err := requiredParam[string](request.Params.Arguments, "brokerUrl") + brokerURL, err := common.RequiredParam[string](request.Params.Arguments, "brokerUrl") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokerUrl'. " + "Please provide the URL of the broker (e.g., '127.0.0.1:8080').")), nil diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index dfc04a9..cc89fb6 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -27,6 +27,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -113,13 +114,13 @@ func handleClusterTool(readOnly bool) func(context.Context, mcp.CallToolRequest) } // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + "Please specify one of: cluster, peer_clusters, failure_domain.")), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + "Please specify one of: list, get, create, update, delete based on the resource type.")), nil @@ -179,7 +180,7 @@ func handleClusterResource(client cmdutils.Client, operation string, request mcp case "list": return handleClusterList(client) case "get": - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to get information for.")), nil @@ -190,7 +191,7 @@ func handleClusterResource(client cmdutils.Client, operation string, request mcp case "update": return updateCluster(client, request) case "delete": - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to delete.")), nil @@ -204,7 +205,7 @@ func handleClusterResource(client cmdutils.Client, operation string, request mcp // Handle peer_clusters resource operations func handlePeerClustersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to operate on.")), nil @@ -214,7 +215,7 @@ func handlePeerClustersResource(client cmdutils.Client, operation string, reques case "get": return getPeerClusters(client, clusterName) case "update": - peerClusters, err := requiredParamArray[string](request.Params.Arguments, "peer_cluster_names") + peerClusters, err := common.RequiredParamArray[string](request.Params.Arguments, "peer_cluster_names") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'peer_cluster_names'. " + "Please provide an array of peer cluster names to set.")), nil @@ -228,7 +229,7 @@ func handlePeerClustersResource(client cmdutils.Client, operation string, reques // Handle failure_domain resource operations func handleFailureDomainResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to operate on.")), nil @@ -238,7 +239,7 @@ func handleFailureDomainResource(client cmdutils.Client, operation string, reque case "list": return listFailureDomains(client, clusterName) case "get": - domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to get.")), nil @@ -249,7 +250,7 @@ func handleFailureDomainResource(client cmdutils.Client, operation string, reque case "update": return updateFailureDomain(client, request) case "delete": - domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to delete.")), nil @@ -296,7 +297,7 @@ func getClusterData(client cmdutils.Client, clusterName string) (*mcp.CallToolRe // createCluster creates a new Pulsar cluster func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to create.")), nil @@ -307,19 +308,19 @@ func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca } // Set optional parameters if provided - if serviceURL, ok := optionalParam[string](request.Params.Arguments, "service_url"); ok { + if serviceURL, ok := common.OptionalParam[string](request.Params.Arguments, "service_url"); ok { clusterData.ServiceURL = serviceURL } - if serviceURLTls, ok := optionalParam[string](request.Params.Arguments, "service_url_tls"); ok { + if serviceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "service_url_tls"); ok { clusterData.ServiceURLTls = serviceURLTls } - if brokerServiceURL, ok := optionalParam[string](request.Params.Arguments, "broker_service_url"); ok { + if brokerServiceURL, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url"); ok { clusterData.BrokerServiceURL = brokerServiceURL } - if brokerServiceURLTls, ok := optionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { + if brokerServiceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { clusterData.BrokerServiceURLTls = brokerServiceURLTls } - if peerClusters, ok := optionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { + if peerClusters, ok := common.OptionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { clusterData.PeerClusterNames = peerClusters } @@ -333,7 +334,7 @@ func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // updateCluster updates an existing Pulsar cluster func updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to update.")), nil @@ -344,19 +345,19 @@ func updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca } // Set optional parameters if provided - if serviceURL, ok := optionalParam[string](request.Params.Arguments, "service_url"); ok { + if serviceURL, ok := common.OptionalParam[string](request.Params.Arguments, "service_url"); ok { clusterData.ServiceURL = serviceURL } - if serviceURLTls, ok := optionalParam[string](request.Params.Arguments, "service_url_tls"); ok { + if serviceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "service_url_tls"); ok { clusterData.ServiceURLTls = serviceURLTls } - if brokerServiceURL, ok := optionalParam[string](request.Params.Arguments, "broker_service_url"); ok { + if brokerServiceURL, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url"); ok { clusterData.BrokerServiceURL = brokerServiceURL } - if brokerServiceURLTls, ok := optionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { + if brokerServiceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { clusterData.BrokerServiceURLTls = brokerServiceURLTls } - if peerClusters, ok := optionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { + if peerClusters, ok := common.OptionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { clusterData.PeerClusterNames = peerClusters } @@ -438,19 +439,19 @@ func listFailureDomains(client cmdutils.Client, clusterName string) (*mcp.CallTo // createFailureDomain creates a new failure domain in the specified cluster func createFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster.")), nil } - domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to create.")), nil } - brokers, err := requiredParamArray[string](request.Params.Arguments, "brokers") + brokers, err := common.RequiredParamArray[string](request.Params.Arguments, "brokers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + "Please provide an array of broker names to include in this failure domain.")), nil @@ -472,19 +473,19 @@ func createFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (* // updateFailureDomain updates an existing failure domain in the specified cluster func updateFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := requiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster.")), nil } - domainName, err := requiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to update.")), nil } - brokers, err := requiredParamArray[string](request.Params.Arguments, "brokers") + brokers, err := common.RequiredParamArray[string](request.Params.Arguments, "brokers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + "Please provide an array of broker names to include in this failure domain.")), nil diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index 2783c10..cd7bdab 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" ) // PulsarAdminAddFunctionsTools adds a unified function-related tool to the MCP server @@ -166,7 +167,7 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca client := cmdutils.NewPulsarClientWithAPIVersion(config.V3) // Extract and validate operation parameter - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil } @@ -193,12 +194,12 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca } // Extract common parameters - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations.", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations.", err)), nil } @@ -206,7 +207,7 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca // For all operations except 'list', name is required var name string if operation != "list" { - name, err = requiredParam[string](request.Params.Arguments, "name") + name, err = common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation.", operation, err)), nil } @@ -223,7 +224,7 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca case "stats": return handleFunctionStats(ctx, client, tenant, namespace, name) case "querystate": - key, err := requiredParam[string](request.Params.Arguments, "key") + key, err := common.RequiredParam[string](request.Params.Arguments, "key") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store.", err)), nil } @@ -241,18 +242,18 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca case "restart": return handleFunctionRestart(ctx, client, tenant, namespace, name) case "putstate": - key, err := requiredParam[string](request.Params.Arguments, "key") + key, err := common.RequiredParam[string](request.Params.Arguments, "key") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store.", err)), nil } - value, err := requiredParam[string](request.Params.Arguments, "value") + value, err := common.RequiredParam[string](request.Params.Arguments, "value") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store.", err)), nil } return handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) case "trigger": - topic, _ := optionalParam[string](request.Params.Arguments, "topic") - triggerValue, _ := optionalParam[string](request.Params.Arguments, "triggerValue") + topic, _ := common.OptionalParam[string](request.Params.Arguments, "topic") + triggerValue, _ := common.OptionalParam[string](request.Params.Arguments, "triggerValue") return handleFunctionTrigger(ctx, client, tenant, namespace, name, topic, triggerValue) default: // This should never happen due to the valid operations check above @@ -354,18 +355,18 @@ func handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, // handleFunctionCreate handles creating a new function func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, arguments map[string]interface{}) (*mcp.CallToolResult, error) { // Extract required parameters - classname, err := requiredParam[string](arguments, "classname") + classname, err := common.RequiredParam[string](arguments, "classname") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get classname (required for function creation): %v. The classname must specify the fully qualified class implementing the function.", err)), nil } // Extract optional parameters - inputTopics, _ := optionalParamArray[string](arguments, "inputs") - output, _ := optionalParam[string](arguments, "output") - jar, _ := optionalParam[string](arguments, "jar") - py, _ := optionalParam[string](arguments, "py") - goPath, _ := optionalParam[string](arguments, "go") - parallelismFloat, _ := optionalParam[float64](arguments, "parallelism") + inputTopics, _ := common.OptionalParamArray[string](arguments, "inputs") + output, _ := common.OptionalParam[string](arguments, "output") + jar, _ := common.OptionalParam[string](arguments, "jar") + py, _ := common.OptionalParam[string](arguments, "py") + goPath, _ := common.OptionalParam[string](arguments, "go") + parallelismFloat, _ := common.OptionalParam[float64](arguments, "parallelism") parallelism := int(parallelismFloat) // Get user config if available @@ -440,13 +441,13 @@ func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, nam // handleFunctionUpdate handles updating an existing function func handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, arguments map[string]interface{}) (*mcp.CallToolResult, error) { // Extract optional parameters - classname, _ := optionalParam[string](arguments, "classname") - inputTopics, _ := optionalParamArray[string](arguments, "inputs") - output, _ := optionalParam[string](arguments, "output") - jar, _ := optionalParam[string](arguments, "jar") - py, _ := optionalParam[string](arguments, "py") - goPath, _ := optionalParam[string](arguments, "go") - parallelismFloat, _ := optionalParam[float64](arguments, "parallelism") + classname, _ := common.OptionalParam[string](arguments, "classname") + inputTopics, _ := common.OptionalParamArray[string](arguments, "inputs") + output, _ := common.OptionalParam[string](arguments, "output") + jar, _ := common.OptionalParam[string](arguments, "jar") + py, _ := common.OptionalParam[string](arguments, "py") + goPath, _ := common.OptionalParam[string](arguments, "go") + parallelismFloat, _ := common.OptionalParam[float64](arguments, "parallelism") parallelism := int(parallelismFloat) // Get user config if available diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go index e5ed9db..bf84f49 100644 --- a/pkg/mcp/pulsar_admin_functions_worker_tools.go +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -26,6 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -66,7 +67,7 @@ func handleFunctionsWorkerTool(_ bool) func(context.Context, mcp.CallToolRequest admin := pulsar.AdminClient // Get required resource parameter - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + "Please specify one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments.")), nil diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index ddf37b7..1372533 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -30,6 +30,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" pulsarctlutils "github.com/streamnative/pulsarctl/pkg/ctl/utils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -331,7 +332,7 @@ func handleNamespaceGetPolicies(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -359,12 +360,12 @@ func handleSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.C return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - ttlStr, err := requiredParam[string](request.Params.Arguments, "ttl") + ttlStr, err := common.RequiredParam[string](request.Params.Arguments, "ttl") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil } @@ -391,13 +392,13 @@ func handleSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.Ca return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - timeStr, hasTime := optionalParam[string](request.Params.Arguments, "time") - sizeStr, hasSize := optionalParam[string](request.Params.Arguments, "size") + timeStr, hasTime := common.OptionalParam[string](request.Params.Arguments, "time") + sizeStr, hasSize := common.OptionalParam[string](request.Params.Arguments, "size") if !hasTime && !hasSize { return mcp.NewToolResultError("At least one of 'time' or 'size' must be specified"), nil @@ -470,17 +471,17 @@ func handleGrantPermission(_ context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - role, err := requiredParam[string](request.Params.Arguments, "role") + role, err := common.RequiredParam[string](request.Params.Arguments, "role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } - actions, err := requiredParamArray[string](request.Params.Arguments, "actions") + actions, err := common.RequiredParamArray[string](request.Params.Arguments, "actions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil } @@ -524,12 +525,12 @@ func handleRevokePermission(_ context.Context, request mcp.CallToolRequest) (*mc return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - role, err := requiredParam[string](request.Params.Arguments, "role") + role, err := common.RequiredParam[string](request.Params.Arguments, "role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } @@ -556,12 +557,12 @@ func handleSetReplicationClusters(_ context.Context, request mcp.CallToolRequest return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - clusters, err := requiredParamArray[string](request.Params.Arguments, "clusters") + clusters, err := common.RequiredParamArray[string](request.Params.Arguments, "clusters") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get clusters: %v", err)), nil } @@ -589,17 +590,17 @@ func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - limitSizeStr, err := requiredParam[string](request.Params.Arguments, "limit-size") + limitSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "limit-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get limit size: %v", err)), nil } - policyStr, err := requiredParam[string](request.Params.Arguments, "policy") + policyStr, err := common.RequiredParam[string](request.Params.Arguments, "policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil } @@ -611,7 +612,7 @@ func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp } // Parse time limit (optional) - limitTimeStr, hasLimitTime := optionalParam[string](request.Params.Arguments, "limit-time") + limitTimeStr, hasLimitTime := common.OptionalParam[string](request.Params.Arguments, "limit-time") var limitTime int64 = -1 // Default to -1 (infinite) if hasLimitTime && limitTimeStr != "" { limitTimeVal, err := strconv.ParseInt(limitTimeStr, 10, 64) @@ -635,7 +636,7 @@ func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp } // Parse quota type (optional) - quotaTypeStr, hasQuotaType := optionalParam[string](request.Params.Arguments, "type") + quotaTypeStr, hasQuotaType := common.OptionalParam[string](request.Params.Arguments, "type") quotaType := utils.DestinationStorage // Default if hasQuotaType && quotaTypeStr != "" { parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) @@ -663,7 +664,7 @@ func handleRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (* return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -685,7 +686,7 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -697,7 +698,7 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) } // Check if disabled - disableStr, hasDisable := optionalParam[string](request.Params.Arguments, "disable") + disableStr, hasDisable := common.OptionalParam[string](request.Params.Arguments, "disable") disable := false if hasDisable && disableStr == "true" { disable = true @@ -711,7 +712,7 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) // Only set topic type and partitions if not disabled if !disable { // Get topic type (optional) - topicTypeStr, hasType := optionalParam[string](request.Params.Arguments, "type") + topicTypeStr, hasType := common.OptionalParam[string](request.Params.Arguments, "type") if hasType && topicTypeStr != "" { parsedType, err := utils.ParseTopicType(topicTypeStr) if err != nil { @@ -721,7 +722,7 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) } // Get partitions (optional) - partitionsStr, hasPartitions := optionalParam[string](request.Params.Arguments, "partitions") + partitionsStr, hasPartitions := common.OptionalParam[string](request.Params.Arguments, "partitions") if hasPartitions && partitionsStr != "" { partitions, err := strconv.Atoi(partitionsStr) if err != nil { @@ -748,7 +749,7 @@ func handleRemoveTopicAutoCreation(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -776,7 +777,7 @@ func handleSetSchemaValidationEnforced(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -788,7 +789,7 @@ func handleSetSchemaValidationEnforced(_ context.Context, request mcp.CallToolRe } // Check if disabled - disableStr, hasDisable := optionalParam[string](request.Params.Arguments, "disable") + disableStr, hasDisable := common.OptionalParam[string](request.Params.Arguments, "disable") disable := false if hasDisable && disableStr == "true" { disable = true @@ -815,12 +816,12 @@ func handleSetSchemaAutoUpdateStrategy(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - strategyStr, err := requiredParam[string](request.Params.Arguments, "compatibility") + strategyStr, err := common.RequiredParam[string](request.Params.Arguments, "compatibility") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility strategy: %v", err)), nil } @@ -856,7 +857,7 @@ func handleSetIsAllowAutoUpdateSchema(_ context.Context, request mcp.CallToolReq return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -868,8 +869,8 @@ func handleSetIsAllowAutoUpdateSchema(_ context.Context, request mcp.CallToolReq } // Check if enabled or disabled - enableStr, hasEnable := optionalParam[string](request.Params.Arguments, "enable") - disableStr, hasDisable := optionalParam[string](request.Params.Arguments, "disable") + enableStr, hasEnable := common.OptionalParam[string](request.Params.Arguments, "enable") + disableStr, hasDisable := common.OptionalParam[string](request.Params.Arguments, "disable") if (hasEnable && enableStr == "true") && (hasDisable && disableStr == "true") { return mcp.NewToolResultError("Specify only one of 'enable' or 'disable'"), nil @@ -906,12 +907,12 @@ func handleSetOffloadThreshold(_ context.Context, request mcp.CallToolRequest) ( return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - thresholdStr, err := requiredParam[string](request.Params.Arguments, "threshold") + thresholdStr, err := common.RequiredParam[string](request.Params.Arguments, "threshold") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil } @@ -947,12 +948,12 @@ func handleSetOffloadDeletionLag(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - lagStr, err := requiredParam[string](request.Params.Arguments, "lag") + lagStr, err := common.RequiredParam[string](request.Params.Arguments, "lag") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get lag: %v", err)), nil } @@ -991,7 +992,7 @@ func handleClearOffloadDeletionLag(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -1021,12 +1022,12 @@ func handleSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - thresholdStr, err := requiredParam[string](request.Params.Arguments, "threshold") + thresholdStr, err := common.RequiredParam[string](request.Params.Arguments, "threshold") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil } @@ -1062,12 +1063,12 @@ func handleSetMaxProducersPerTopic(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - maxStr, err := requiredParam[string](request.Params.Arguments, "max") + maxStr, err := common.RequiredParam[string](request.Params.Arguments, "max") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil } @@ -1107,12 +1108,12 @@ func handleSetMaxConsumersPerTopic(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - maxStr, err := requiredParam[string](request.Params.Arguments, "max") + maxStr, err := common.RequiredParam[string](request.Params.Arguments, "max") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil } @@ -1152,12 +1153,12 @@ func handleSetMaxConsumersPerSubscription(_ context.Context, request mcp.CallToo return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - maxStr, err := requiredParam[string](request.Params.Arguments, "max") + maxStr, err := common.RequiredParam[string](request.Params.Arguments, "max") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil } @@ -1197,12 +1198,12 @@ func handleSetAntiAffinityGroup(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - group, err := requiredParam[string](request.Params.Arguments, "group") + group, err := common.RequiredParam[string](request.Params.Arguments, "group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get anti-affinity group: %v", err)), nil } @@ -1226,7 +1227,7 @@ func handleDeleteAntiAffinityGroup(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -1250,22 +1251,22 @@ func handleSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp. return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - ensembleSizeStr, err := requiredParam[string](request.Params.Arguments, "ensemble-size") + ensembleSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "ensemble-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensemble size: %v", err)), nil } - writeQuorumSizeStr, err := requiredParam[string](request.Params.Arguments, "write-quorum-size") + writeQuorumSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "write-quorum-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get write quorum size: %v", err)), nil } - ackQuorumSizeStr, err := requiredParam[string](request.Params.Arguments, "ack-quorum-size") + ackQuorumSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "ack-quorum-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ack quorum size: %v", err)), nil } @@ -1293,7 +1294,7 @@ func handleSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp. // Parse optional rate parameter markDeleteMaxRate := 0.0 - markDeleteMaxRateStr, hasRate := optionalParam[string](request.Params.Arguments, "ml-mark-delete-max-rate") + markDeleteMaxRateStr, hasRate := common.OptionalParam[string](request.Params.Arguments, "ml-mark-delete-max-rate") if hasRate && markDeleteMaxRateStr != "" { rate, err := strconv.ParseFloat(markDeleteMaxRateStr, 64) if err != nil { @@ -1324,13 +1325,13 @@ func handleSetDeduplication(_ context.Context, request mcp.CallToolRequest) (*mc return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get enable flag, default to false if not specified - enable, _ := optionalParam[string](request.Params.Arguments, "enable") + enable, _ := common.OptionalParam[string](request.Params.Arguments, "enable") enableBool := false if enable == "true" { enableBool = true @@ -1355,13 +1356,13 @@ func handleSetEncryptionRequired(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get disable flag, default to false if not specified - disable, _ := optionalParam[string](request.Params.Arguments, "disable") + disable, _ := common.OptionalParam[string](request.Params.Arguments, "disable") disableFlag := disable == "true" // Get namespace name @@ -1394,12 +1395,12 @@ func handleSetSubscriptionAuthMode(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - mode, err := requiredParam[string](request.Params.Arguments, "mode") + mode, err := common.RequiredParam[string](request.Params.Arguments, "mode") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription auth mode: %v", err)), nil } @@ -1436,17 +1437,17 @@ func handleGrantSubscriptionPermission(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } - roles, err := requiredParamArray[string](request.Params.Arguments, "roles") + roles, err := common.RequiredParamArray[string](request.Params.Arguments, "roles") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get roles: %v", err)), nil } @@ -1481,17 +1482,17 @@ func handleRevokeSubscriptionPermission(_ context.Context, request mcp.CallToolR return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } - role, err := requiredParam[string](request.Params.Arguments, "role") + role, err := common.RequiredParam[string](request.Params.Arguments, "role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } @@ -1522,13 +1523,13 @@ func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - msgRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") msgRate := -1 // Default value if msgRateStr != "" { parsedMsgRate, err := strconv.Atoi(msgRateStr) @@ -1538,7 +1539,7 @@ func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp msgRate = parsedMsgRate } - byteRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") byteRate := int64(-1) // Default value if byteRateStr != "" { parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) @@ -1548,7 +1549,7 @@ func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp byteRate = parsedByteRate } - ratePeriodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + ratePeriodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") ratePeriod := 1 // Default value if ratePeriodStr != "" { parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) @@ -1590,13 +1591,13 @@ func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequ return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - msgRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") msgRate := -1 // Default value if msgRateStr != "" { parsedMsgRate, err := strconv.Atoi(msgRateStr) @@ -1606,7 +1607,7 @@ func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequ msgRate = parsedMsgRate } - byteRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") byteRate := int64(-1) // Default value if byteRateStr != "" { parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) @@ -1616,7 +1617,7 @@ func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequ byteRate = parsedByteRate } - ratePeriodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + ratePeriodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") ratePeriod := 1 // Default value if ratePeriodStr != "" { parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) @@ -1658,13 +1659,13 @@ func handleSetSubscribeRate(_ context.Context, request mcp.CallToolRequest) (*mc return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - subRateStr, _ := optionalParam[string](request.Params.Arguments, "subscribeThrottlingRatePerConsumer") + subRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "subscribeThrottlingRatePerConsumer") subRate := -1 // Default value if subRateStr != "" { parsedSubRate, err := strconv.Atoi(subRateStr) @@ -1674,7 +1675,7 @@ func handleSetSubscribeRate(_ context.Context, request mcp.CallToolRequest) (*mc subRate = parsedSubRate } - periodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + periodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") period := 30 // Default value if periodStr != "" { parsedPeriod, err := strconv.Atoi(periodStr) @@ -1713,13 +1714,13 @@ func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - msgRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") msgRate := -1 // Default value if msgRateStr != "" { parsedMsgRate, err := strconv.Atoi(msgRateStr) @@ -1729,7 +1730,7 @@ func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRe msgRate = parsedMsgRate } - byteRateStr, _ := optionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") byteRate := int64(-1) // Default value if byteRateStr != "" { parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) @@ -1739,7 +1740,7 @@ func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRe byteRate = parsedByteRate } - periodStr, _ := optionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + periodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") period := 1 // Default value if periodStr != "" { parsedPeriod, err := strconv.Atoi(periodStr) @@ -1781,7 +1782,7 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -1799,7 +1800,7 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. } // Get message rate if provided - msgRateStr, hasMsgRate := optionalParam[string](request.Params.Arguments, "publishThrottlingRateInMsg") + msgRateStr, hasMsgRate := common.OptionalParam[string](request.Params.Arguments, "publishThrottlingRateInMsg") if hasMsgRate && msgRateStr != "" { msgRate, err := strconv.Atoi(msgRateStr) if err != nil { @@ -1809,7 +1810,7 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. } // Get byte rate if provided - byteRateStr, hasByteRate := optionalParam[string](request.Params.Arguments, "publishThrottlingRateInByte") + byteRateStr, hasByteRate := common.OptionalParam[string](request.Params.Arguments, "publishThrottlingRateInByte") if hasByteRate && byteRateStr != "" { byteRate, err := strconv.ParseInt(byteRateStr, 10, 64) if err != nil { @@ -1831,12 +1832,12 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. // handleNamespaceSetPolicy handles setting policies for a namespace using the unified tool func handleNamespaceSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - _, err := requiredParam[string](request.Params.Arguments, "namespace") + _, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - policyType, err := requiredParam[string](request.Params.Arguments, "policy") + policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } @@ -1902,12 +1903,12 @@ func handleNamespaceSetPolicy(ctx context.Context, request mcp.CallToolRequest) // handleNamespaceRemovePolicy handles removing policies from a namespace using the unified tool func handleNamespaceRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - _, err := requiredParam[string](request.Params.Arguments, "namespace") + _, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - policyType, err := requiredParam[string](request.Params.Arguments, "policy") + policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index 65e1542..4e35c9d 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -93,7 +94,7 @@ func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features [ func handleNamespace(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get operation parameter - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -142,7 +143,7 @@ func handleNamespace(readOnly bool) func(context.Context, mcp.CallToolRequest) ( // handleNamespaceList handles listing namespaces for a tenant func handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil } @@ -164,7 +165,7 @@ func handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp. // handleNamespaceGetTopics handles getting topics for a namespace func handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -186,13 +187,13 @@ func handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request // handleNamespaceCreate handles creating a new namespace func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get optional parameters - bundlesStr, hasBundles := optionalParam[string](request.Params.Arguments, "bundles") + bundlesStr, hasBundles := common.OptionalParam[string](request.Params.Arguments, "bundles") bundles := 0 if hasBundles && bundlesStr != "" { bundlesInt, err := strconv.Atoi(bundlesStr) @@ -202,7 +203,7 @@ func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mc bundles = bundlesInt } - clusters, _ := optionalParamArray[string](request.Params.Arguments, "clusters") + clusters, _ := common.OptionalParamArray[string](request.Params.Arguments, "clusters") // Prepare policies policies := utils.NewDefaultPolicies() @@ -238,7 +239,7 @@ func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mc // handleNamespaceDelete handles deleting a namespace func handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -254,15 +255,15 @@ func handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mc // handleClearBacklog handles clearing the backlog for all topics in a namespace func handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get optional parameters - subscription, _ := optionalParam[string](request.Params.Arguments, "subscription") - bundle, _ := optionalParam[string](request.Params.Arguments, "bundle") - force, _ := optionalParam[string](request.Params.Arguments, "force") + subscription, _ := common.OptionalParam[string](request.Params.Arguments, "subscription") + bundle, _ := common.OptionalParam[string](request.Params.Arguments, "bundle") + force, _ := common.OptionalParam[string](request.Params.Arguments, "force") forceFlag := force == "true" // If not forced, return an error requiring explicit force flag @@ -304,18 +305,18 @@ func handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.C // handleUnsubscribe handles unsubscribing the specified subscription for all topics of a namespace func handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } // Get optional bundle - bundle, _ := optionalParam[string](request.Params.Arguments, "bundle") + bundle, _ := common.OptionalParam[string](request.Params.Arguments, "bundle") // Get namespace name ns, err := utils.GetNamespaceName(namespace) @@ -350,13 +351,13 @@ func handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.Ca // handleUnload handles unloading a namespace from the current serving broker func handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get optional bundle - bundle, _ := optionalParam[string](request.Params.Arguments, "bundle") + bundle, _ := common.OptionalParam[string](request.Params.Arguments, "bundle") // Unload namespace var unloadErr error @@ -383,18 +384,18 @@ func handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToo // handleSplitBundle handles splitting a namespace bundle func handleSplitBundle(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - bundle, err := requiredParam[string](request.Params.Arguments, "bundle") + bundle, err := common.RequiredParam[string](request.Params.Arguments, "bundle") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle: %v", err)), nil } // Get optional unload flag - unloadStr, _ := optionalParam[string](request.Params.Arguments, "unload") + unloadStr, _ := common.OptionalParam[string](request.Params.Arguments, "unload") unload := unloadStr == "true" // Split namespace bundle diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index 191fb83..3da9cff 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -115,17 +116,17 @@ func handleNsIsolationPolicy(readOnly bool) func(context.Context, mcp.CallToolRe } // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } - cluster, err := requiredParam[string](request.Params.Arguments, "cluster") + cluster, err := common.RequiredParam[string](request.Params.Arguments, "cluster") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil } @@ -157,7 +158,7 @@ func handleNsIsolationPolicy(readOnly bool) func(context.Context, mcp.CallToolRe func handlePolicyResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.get: %v", err)), nil } @@ -192,7 +193,7 @@ func handlePolicyResource(client cmdutils.Client, operation, cluster string, req return mcp.NewToolResultText(string(policiesJSON)), nil case "delete": - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.delete: %v", err)), nil } @@ -206,7 +207,7 @@ func handlePolicyResource(client cmdutils.Client, operation, cluster string, req return mcp.NewToolResultText(fmt.Sprintf("Delete namespace isolation policy %s successfully", name)), nil case "set": - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.set: %v", err)), nil } @@ -221,11 +222,11 @@ func handlePolicyResource(client cmdutils.Client, operation, cluster string, req return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'primary' for policy.set: %v", err)), nil } - secondary, _ := optionalParamArray[string](request.Params.Arguments, "secondary") - autoFailoverPolicyType, _ := optionalParam[string](request.Params.Arguments, "autoFailoverPolicyType") + secondary, _ := common.OptionalParamArray[string](request.Params.Arguments, "secondary") + autoFailoverPolicyType, _ := common.OptionalParam[string](request.Params.Arguments, "autoFailoverPolicyType") // Parse autoFailoverPolicyParams as a map - autoFailoverPolicyParamsRaw, _ := optionalParam[map[string]interface{}](request.Params.Arguments, "autoFailoverPolicyParams") + autoFailoverPolicyParamsRaw, _ := common.OptionalParam[map[string]interface{}](request.Params.Arguments, "autoFailoverPolicyParams") autoFailoverPolicyParams := make(map[string]string) for k, v := range autoFailoverPolicyParamsRaw { if strVal, ok := v.(string); ok { @@ -257,7 +258,7 @@ func handlePolicyResource(client cmdutils.Client, operation, cluster string, req func handleBrokerResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for broker.get: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index 7c33f54..0ded0df 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -27,6 +27,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -112,12 +113,12 @@ func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features [] func handlePackageTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -151,7 +152,7 @@ func handlePackageTool(readOnly bool) func(context.Context, mcp.CallToolRequest) // handlePackageResource handles operations on a specific package func handlePackageResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - packageName, err := requiredParam[string](request.Params.Arguments, "packageName") + packageName, err := common.RequiredParam[string](request.Params.Arguments, "packageName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'packageName' for package operations: %v", err)), nil } @@ -188,12 +189,12 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp return mcp.NewToolResultText(string(metadataJSON)), nil case "update": - description, err := requiredParam[string](request.Params.Arguments, "description") + description, err := common.RequiredParam[string](request.Params.Arguments, "description") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.update: %v", err)), nil } - contact, _ := optionalParam[string](request.Params.Arguments, "contact") + contact, _ := common.OptionalParam[string](request.Params.Arguments, "contact") properties := extractProperties(request.Params.Arguments) // Update package metadata @@ -214,7 +215,7 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp return mcp.NewToolResultText(fmt.Sprintf("The package '%s' deleted successfully", packageName)), nil case "download": - path, err := requiredParam[string](request.Params.Arguments, "path") + path, err := common.RequiredParam[string](request.Params.Arguments, "path") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.download: %v", err)), nil } @@ -230,17 +231,17 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp ), nil case "upload": - path, err := requiredParam[string](request.Params.Arguments, "path") + path, err := common.RequiredParam[string](request.Params.Arguments, "path") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.upload: %v", err)), nil } - description, err := requiredParam[string](request.Params.Arguments, "description") + description, err := common.RequiredParam[string](request.Params.Arguments, "description") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.upload: %v", err)), nil } - contact, _ := optionalParam[string](request.Params.Arguments, "contact") + contact, _ := common.OptionalParam[string](request.Params.Arguments, "contact") properties := extractProperties(request.Params.Arguments) // Upload package @@ -262,12 +263,12 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp func handlePackagesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "list": - packageType, err := requiredParam[string](request.Params.Arguments, "type") + packageType, err := common.RequiredParam[string](request.Params.Arguments, "type") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'type' for packages.list: %v", err)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for packages.list: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go index 896cf2d..059f63c 100644 --- a/pkg/mcp/pulsar_admin_resourcequotas_tools.go +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -100,12 +101,12 @@ func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, featu func handleResourceQuotaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -147,8 +148,8 @@ func handleResourceQuotaTool(readOnly bool) func(_ context.Context, request mcp. // handleQuotaGet handles getting a resource quota func handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get optional parameters - namespace, hasNamespace := optionalParam[string](request.Params.Arguments, "namespace") - bundle, hasBundle := optionalParam[string](request.Params.Arguments, "bundle") + namespace, hasNamespace := common.OptionalParam[string](request.Params.Arguments, "namespace") + bundle, hasBundle := common.OptionalParam[string](request.Params.Arguments, "bundle") // Check if both namespace and bundle are provided or neither is provided if (hasNamespace && !hasBundle) || (!hasNamespace && hasBundle) { @@ -191,35 +192,35 @@ func handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // handleQuotaSet handles setting a resource quota func handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters for set operation - msgRateIn, err := requiredParam[float64](request.Params.Arguments, "msgRateIn") + msgRateIn, err := common.RequiredParam[float64](request.Params.Arguments, "msgRateIn") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateIn' for quota.set: %v", err)), nil } - msgRateOut, err := requiredParam[float64](request.Params.Arguments, "msgRateOut") + msgRateOut, err := common.RequiredParam[float64](request.Params.Arguments, "msgRateOut") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateOut' for quota.set: %v", err)), nil } - bandwidthIn, err := requiredParam[float64](request.Params.Arguments, "bandwidthIn") + bandwidthIn, err := common.RequiredParam[float64](request.Params.Arguments, "bandwidthIn") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthIn' for quota.set: %v", err)), nil } - bandwidthOut, err := requiredParam[float64](request.Params.Arguments, "bandwidthOut") + bandwidthOut, err := common.RequiredParam[float64](request.Params.Arguments, "bandwidthOut") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthOut' for quota.set: %v", err)), nil } - memory, err := requiredParam[float64](request.Params.Arguments, "memory") + memory, err := common.RequiredParam[float64](request.Params.Arguments, "memory") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'memory' for quota.set: %v", err)), nil } // Get optional parameters - namespace, hasNamespace := optionalParam[string](request.Params.Arguments, "namespace") - bundle, hasBundle := optionalParam[string](request.Params.Arguments, "bundle") - dynamic, hasDynamic := optionalParam[bool](request.Params.Arguments, "dynamic") + namespace, hasNamespace := common.OptionalParam[string](request.Params.Arguments, "namespace") + bundle, hasBundle := common.OptionalParam[string](request.Params.Arguments, "bundle") + dynamic, hasDynamic := common.OptionalParam[bool](request.Params.Arguments, "dynamic") if !hasDynamic { dynamic = false @@ -263,12 +264,12 @@ func handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // handleQuotaReset handles resetting a resource quota func handleQuotaReset(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters for reset operation - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for quota.reset: %v", err)), nil } - bundle, err := requiredParam[string](request.Params.Arguments, "bundle") + bundle, err := common.RequiredParam[string](request.Params.Arguments, "bundle") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bundle' for quota.reset: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go index e986e7c..eece294 100644 --- a/pkg/mcp/pulsar_admin_schemas_tools.go +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -30,6 +30,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -86,17 +87,17 @@ func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []s func handleSchemaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil } @@ -138,7 +139,7 @@ func handleSchemaTool(readOnly bool) func(_ context.Context, request mcp.CallToo // handleSchemaGet handles getting a schema func handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get optional version parameter - version, hasVersion := optionalParam[float64](request.Params.Arguments, "version") + version, hasVersion := common.OptionalParam[float64](request.Params.Arguments, "version") // Get schema info if hasVersion { @@ -194,7 +195,7 @@ func handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRe // handleSchemaUpload handles uploading a schema func handleSchemaUpload(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - filename, err := requiredParam[string](request.Params.Arguments, "filename") + filename, err := common.RequiredParam[string](request.Params.Arguments, "filename") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'filename' for schema.upload. Please provide the path to the schema definition file: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index d03fe63..a098716 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -29,6 +29,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" ) // PulsarAdminAddSinksTools adds a unified sink-related tool to the MCP server @@ -135,7 +136,7 @@ func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []str func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract and validate operation parameter - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil } @@ -169,12 +170,12 @@ func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) ( } // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil } @@ -182,7 +183,7 @@ func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) ( // For all operations except 'list', name is required var name string if operation != "list" { - name, err = requiredParam[string](request.Params.Arguments, "name") + name, err = common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The sink name must be specified for this operation.", operation, err)), nil } @@ -268,17 +269,17 @@ func handleSinkStatus(_ context.Context, admin cmdutils.Client, tenant, namespac // handleSinkCreate handles creating a new sink func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](arguments, "tenant") + tenant, err := common.RequiredParam[string](arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := requiredParam[string](arguments, "namespace") + namespace, err := common.RequiredParam[string](arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := requiredParam[string](arguments, "name") + name, err := common.RequiredParam[string](arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -292,32 +293,32 @@ func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[st } // Get optional parameters - archive, hasArchive := optionalParam[string](arguments, "archive") + archive, hasArchive := common.OptionalParam[string](arguments, "archive") if hasArchive && archive != "" { sinkData.Archive = archive } - sinkType, hasSinkType := optionalParam[string](arguments, "sink-type") + sinkType, hasSinkType := common.OptionalParam[string](arguments, "sink-type") if hasSinkType && sinkType != "" { sinkData.SinkType = sinkType } - inputsArray, hasInputs := optionalParamArray[string](arguments, "inputs") + inputsArray, hasInputs := common.OptionalParamArray[string](arguments, "inputs") if hasInputs && len(inputsArray) > 0 { sinkData.Inputs = strings.Join(inputsArray, ",") } - topicsPattern, hasTopicsPattern := optionalParam[string](arguments, "topics-pattern") + topicsPattern, hasTopicsPattern := common.OptionalParam[string](arguments, "topics-pattern") if hasTopicsPattern && topicsPattern != "" { sinkData.TopicsPattern = topicsPattern } - subsName, hasSubsName := optionalParam[string](arguments, "subs-name") + subsName, hasSubsName := common.OptionalParam[string](arguments, "subs-name") if hasSubsName && subsName != "" { sinkData.SubsName = subsName } - parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") if hasParallelism { sinkData.Parallelism = int(parallelismFloat) } @@ -374,17 +375,17 @@ func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[st // handleSinkUpdate handles updating an existing sink func handleSinkUpdate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](arguments, "tenant") + tenant, err := common.RequiredParam[string](arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := requiredParam[string](arguments, "namespace") + namespace, err := common.RequiredParam[string](arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := requiredParam[string](arguments, "name") + name, err := common.RequiredParam[string](arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -398,32 +399,32 @@ func handleSinkUpdate(_ context.Context, admin cmdutils.Client, arguments map[st } // Get optional parameters - archive, hasArchive := optionalParam[string](arguments, "archive") + archive, hasArchive := common.OptionalParam[string](arguments, "archive") if hasArchive && archive != "" { sinkData.Archive = archive } - sinkType, hasSinkType := optionalParam[string](arguments, "sink-type") + sinkType, hasSinkType := common.OptionalParam[string](arguments, "sink-type") if hasSinkType && sinkType != "" { sinkData.SinkType = sinkType } - inputsArray, hasInputs := optionalParamArray[string](arguments, "inputs") + inputsArray, hasInputs := common.OptionalParamArray[string](arguments, "inputs") if hasInputs && len(inputsArray) > 0 { sinkData.Inputs = strings.Join(inputsArray, ",") } - topicsPattern, hasTopicsPattern := optionalParam[string](arguments, "topics-pattern") + topicsPattern, hasTopicsPattern := common.OptionalParam[string](arguments, "topics-pattern") if hasTopicsPattern && topicsPattern != "" { sinkData.TopicsPattern = topicsPattern } - subsName, hasSubsName := optionalParam[string](arguments, "subs-name") + subsName, hasSubsName := common.OptionalParam[string](arguments, "subs-name") if hasSubsName && subsName != "" { sinkData.SubsName = subsName } - parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") if hasParallelism { sinkData.Parallelism = int(parallelismFloat) } diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index 98cac07..664a9da 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" ) // PulsarAdminAddSourcesTools adds a unified source-related tool to the MCP server @@ -135,7 +136,7 @@ func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []s func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract and validate operation parameter - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil } @@ -169,12 +170,12 @@ func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) } // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil } - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil } @@ -182,7 +183,7 @@ func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) // For all operations except 'list', name is required var name string if operation != "list" { - name, err = requiredParam[string](request.Params.Arguments, "name") + name, err = common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The source name must be specified for this operation.", operation, err)), nil } @@ -268,17 +269,17 @@ func handleSourceStatus(_ context.Context, admin cmdutils.Client, tenant, namesp // handleSourceCreate handles creating a new source func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](arguments, "tenant") + tenant, err := common.RequiredParam[string](arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := requiredParam[string](arguments, "namespace") + namespace, err := common.RequiredParam[string](arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := requiredParam[string](arguments, "name") + name, err := common.RequiredParam[string](arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -292,42 +293,42 @@ func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[ } // Get optional parameters - archive, hasArchive := optionalParam[string](arguments, "archive") + archive, hasArchive := common.OptionalParam[string](arguments, "archive") if hasArchive && archive != "" { sourceData.Archive = archive } - sourceType, hasSourceType := optionalParam[string](arguments, "source-type") + sourceType, hasSourceType := common.OptionalParam[string](arguments, "source-type") if hasSourceType && sourceType != "" { sourceData.SourceType = sourceType } - destTopic, hasDestTopic := optionalParam[string](arguments, "destination-topic-name") + destTopic, hasDestTopic := common.OptionalParam[string](arguments, "destination-topic-name") if hasDestTopic && destTopic != "" { sourceData.DestinationTopicName = destTopic } - deserializationClassName, hasDeserialization := optionalParam[string](arguments, "deserialization-classname") + deserializationClassName, hasDeserialization := common.OptionalParam[string](arguments, "deserialization-classname") if hasDeserialization && deserializationClassName != "" { sourceData.DeserializationClassName = deserializationClassName } - schemaType, hasSchemaType := optionalParam[string](arguments, "schema-type") + schemaType, hasSchemaType := common.OptionalParam[string](arguments, "schema-type") if hasSchemaType && schemaType != "" { sourceData.SchemaType = schemaType } - className, hasClassName := optionalParam[string](arguments, "classname") + className, hasClassName := common.OptionalParam[string](arguments, "classname") if hasClassName && className != "" { sourceData.ClassName = className } - processingGuarantees, hasProcessingGuarantees := optionalParam[string](arguments, "processing-guarantees") + processingGuarantees, hasProcessingGuarantees := common.OptionalParam[string](arguments, "processing-guarantees") if hasProcessingGuarantees && processingGuarantees != "" { sourceData.ProcessingGuarantees = processingGuarantees } - parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") if hasParallelism { sourceData.Parallelism = int(parallelismFloat) } @@ -384,17 +385,17 @@ func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[ // handleSourceUpdate handles updating an existing source func handleSourceUpdate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](arguments, "tenant") + tenant, err := common.RequiredParam[string](arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := requiredParam[string](arguments, "namespace") + namespace, err := common.RequiredParam[string](arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := requiredParam[string](arguments, "name") + name, err := common.RequiredParam[string](arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -408,42 +409,42 @@ func handleSourceUpdate(_ context.Context, admin cmdutils.Client, arguments map[ } // Get optional parameters - archive, hasArchive := optionalParam[string](arguments, "archive") + archive, hasArchive := common.OptionalParam[string](arguments, "archive") if hasArchive && archive != "" { sourceData.Archive = archive } - sourceType, hasSourceType := optionalParam[string](arguments, "source-type") + sourceType, hasSourceType := common.OptionalParam[string](arguments, "source-type") if hasSourceType && sourceType != "" { sourceData.SourceType = sourceType } - destTopic, hasDestTopic := optionalParam[string](arguments, "destination-topic-name") + destTopic, hasDestTopic := common.OptionalParam[string](arguments, "destination-topic-name") if hasDestTopic && destTopic != "" { sourceData.DestinationTopicName = destTopic } - deserializationClassName, hasDeserialization := optionalParam[string](arguments, "deserialization-classname") + deserializationClassName, hasDeserialization := common.OptionalParam[string](arguments, "deserialization-classname") if hasDeserialization && deserializationClassName != "" { sourceData.DeserializationClassName = deserializationClassName } - schemaType, hasSchemaType := optionalParam[string](arguments, "schema-type") + schemaType, hasSchemaType := common.OptionalParam[string](arguments, "schema-type") if hasSchemaType && schemaType != "" { sourceData.SchemaType = schemaType } - className, hasClassName := optionalParam[string](arguments, "classname") + className, hasClassName := common.OptionalParam[string](arguments, "classname") if hasClassName && className != "" { sourceData.ClassName = className } - processingGuarantees, hasProcessingGuarantees := optionalParam[string](arguments, "processing-guarantees") + processingGuarantees, hasProcessingGuarantees := common.OptionalParam[string](arguments, "processing-guarantees") if hasProcessingGuarantees && processingGuarantees != "" { sourceData.ProcessingGuarantees = processingGuarantees } - parallelismFloat, hasParallelism := optionalParam[float64](arguments, "parallelism") + parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") if hasParallelism { sourceData.Parallelism = int(parallelismFloat) } diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go index 698d6e1..604765c 100644 --- a/pkg/mcp/pulsar_admin_subscription_tools.go +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -103,17 +104,17 @@ func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, feature func handleSubscriptionTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil } @@ -185,13 +186,13 @@ func handleSubsList(admin cmdutils.Client, topicName *utils.TopicName) (*mcp.Cal // handleSubsCreate handles creating a new subscription func handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameter - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.create: %v", err)), nil } // Get optional messageID parameter (default is "latest") - messageID, hasMessageID := optionalParam[string](request.Params.Arguments, "messageId") + messageID, hasMessageID := common.OptionalParam[string](request.Params.Arguments, "messageId") if !hasMessageID { messageID = "latest" } @@ -230,13 +231,13 @@ func handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request // handleSubsDelete handles deleting a subscription func handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameter - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.delete: %v", err)), nil } // Get optional force parameter (default is false) - force, hasForce := optionalParam[bool](request.Params.Arguments, "force") + force, hasForce := common.OptionalParam[bool](request.Params.Arguments, "force") if !hasForce { force = false } @@ -267,12 +268,12 @@ func handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request // handleSubsSkip handles skipping messages for a subscription func handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.skip: %v", err)), nil } - count, err := requiredParam[float64](request.Params.Arguments, "count") + count, err := common.RequiredParam[float64](request.Params.Arguments, "count") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'count' for subscription.skip: %v", err)), nil } @@ -291,12 +292,12 @@ func handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request m // handleSubsExpire handles expiring messages for a subscription func handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.expire: %v", err)), nil } - expireTime, err := requiredParam[float64](request.Params.Arguments, "expireTimeInSeconds") + expireTime, err := common.RequiredParam[float64](request.Params.Arguments, "expireTimeInSeconds") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'expireTimeInSeconds' for subscription.expire: %v", err)), nil } @@ -317,12 +318,12 @@ func handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request // handleSubsResetCursor handles resetting a subscription cursor func handleSubsResetCursor(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - subscription, err := requiredParam[string](request.Params.Arguments, "subscription") + subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.reset-cursor: %v", err)), nil } - messageID, err := requiredParam[string](request.Params.Arguments, "messageId") + messageID, err := common.RequiredParam[string](request.Params.Arguments, "messageId") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for subscription.reset-cursor: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index 188fa21..f55c964 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -104,12 +105,12 @@ func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []st func handleTenantTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -171,7 +172,7 @@ func handleTenantsList(admin cmdutils.Client) (*mcp.CallToolResult, error) { // handleTenantGet handles getting a tenant's configuration func handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.get: %v", err)), nil } @@ -193,17 +194,17 @@ func handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.C // handleTenantCreate handles creating a new tenant func handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.create: %v", err)), nil } - adminRoles, hasAdminRoles := optionalParamArray[string](request.Params.Arguments, "adminRoles") + adminRoles, hasAdminRoles := common.OptionalParamArray[string](request.Params.Arguments, "adminRoles") if !hasAdminRoles { adminRoles = []string{} } - allowedClusters, hasAllowedClusters := optionalParamArray[string](request.Params.Arguments, "allowedClusters") + allowedClusters, hasAllowedClusters := common.OptionalParamArray[string](request.Params.Arguments, "allowedClusters") if !hasAllowedClusters { allowedClusters = []string{""} } @@ -238,7 +239,7 @@ func handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTenantUpdate handles updating an existing tenant func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.update: %v", err)), nil } @@ -250,8 +251,8 @@ func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mc } // Get update parameters - adminRoles, hasAdminRoles := optionalParamArray[string](request.Params.Arguments, "adminRoles") - allowedClusters, hasAllowedClusters := optionalParamArray[string](request.Params.Arguments, "allowedClusters") + adminRoles, hasAdminRoles := common.OptionalParamArray[string](request.Params.Arguments, "adminRoles") + allowedClusters, hasAllowedClusters := common.OptionalParamArray[string](request.Params.Arguments, "allowedClusters") // If parameters not provided, keep existing values if !hasAdminRoles { @@ -292,7 +293,7 @@ func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTenantDelete handles deleting an existing tenant func handleTenantDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := requiredParam[string](request.Params.Arguments, "tenant") + tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.delete: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index ce5f813..fbc492a 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -27,6 +27,7 @@ import ( "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -336,7 +337,7 @@ func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features // handleTopicsGetPublishRate gets the publish rate for a topic func handleTopicsGetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -376,7 +377,7 @@ func handleTopicsGetPublishRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetPublishRate sets the publish rate for a topic func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -398,13 +399,13 @@ func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) publishRateInByte := int64(-1) // unlimited // Get publish rate in messages if provided - msgRateParam, hasMsgRate := optionalParam[float64](request.Params.Arguments, "publishThrottlingRateInMsg") + msgRateParam, hasMsgRate := common.OptionalParam[float64](request.Params.Arguments, "publishThrottlingRateInMsg") if hasMsgRate { publishRateInMsg = int64(msgRateParam) } // Get publish rate in bytes if provided - byteRateParam, hasByteRate := optionalParam[float64](request.Params.Arguments, "publishThrottlingRateInByte") + byteRateParam, hasByteRate := common.OptionalParam[float64](request.Params.Arguments, "publishThrottlingRateInByte") if hasByteRate { publishRateInByte = int64(byteRateParam) } @@ -447,7 +448,7 @@ func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemovePublishRate removes the publish rate for a topic func handleTopicsRemovePublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -476,7 +477,7 @@ func handleTopicsRemovePublishRate(_ context.Context, request mcp.CallToolReques // handleTopicsGetPermissions gets the permissions on a topic func handleTopicsGetPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -511,17 +512,17 @@ func handleTopicsGetPermissions(_ context.Context, request mcp.CallToolRequest) // handleTopicsGrantPermissions grants a new permission to a role on a topic func handleTopicsGrantPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - role, err := requiredParam[string](request.Params.Arguments, "role") + role, err := common.RequiredParam[string](request.Params.Arguments, "role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } - actions, err := requiredParamArray[string](request.Params.Arguments, "actions") + actions, err := common.RequiredParamArray[string](request.Params.Arguments, "actions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil } @@ -566,12 +567,12 @@ func handleTopicsGrantPermissions(_ context.Context, request mcp.CallToolRequest // handleTopicsRevokePermissions revokes all permissions for a role on a topic func handleTopicsRevokePermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - role, err := requiredParam[string](request.Params.Arguments, "role") + role, err := common.RequiredParam[string](request.Params.Arguments, "role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } @@ -620,7 +621,7 @@ func grantTopicPermission(admin interface{}, topicName utils.TopicName, role str // handleTopicsGetMessageTTL gets the message TTL for a topic func handleTopicsGetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -654,12 +655,12 @@ func handleTopicsGetMessageTTL(_ context.Context, request mcp.CallToolRequest) ( // handleTopicsSetMessageTTL sets the message TTL for a topic func handleTopicsSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - ttl, err := requiredParam[float64](request.Params.Arguments, "ttl") + ttl, err := common.RequiredParam[float64](request.Params.Arguments, "ttl") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil } @@ -700,7 +701,7 @@ func handleTopicsSetMessageTTL(_ context.Context, request mcp.CallToolRequest) ( // handleTopicsRemoveMessageTTL removes the message TTL for a topic func handleTopicsRemoveMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -729,7 +730,7 @@ func handleTopicsRemoveMessageTTL(_ context.Context, request mcp.CallToolRequest // handleTopicsGetMaxProducers gets the maximum number of producers allowed for a topic func handleTopicsGetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -764,12 +765,12 @@ func handleTopicsGetMaxProducers(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetMaxProducers sets the maximum number of producers allowed for a topic func handleTopicsSetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxProducers, err := requiredParam[float64](request.Params.Arguments, "maxProducers") + maxProducers, err := common.RequiredParam[float64](request.Params.Arguments, "maxProducers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxProducers: %v", err)), nil } @@ -810,7 +811,7 @@ func handleTopicsSetMaxProducers(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveMaxProducers removes the maximum producers limit for a topic func handleTopicsRemoveMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -839,7 +840,7 @@ func handleTopicsRemoveMaxProducers(_ context.Context, request mcp.CallToolReque // handleTopicsGetMaxConsumers gets the maximum number of consumers allowed for a topic func handleTopicsGetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -874,12 +875,12 @@ func handleTopicsGetMaxConsumers(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetMaxConsumers sets the maximum number of consumers allowed for a topic func handleTopicsSetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxConsumers, err := requiredParam[float64](request.Params.Arguments, "maxConsumers") + maxConsumers, err := common.RequiredParam[float64](request.Params.Arguments, "maxConsumers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxConsumers: %v", err)), nil } @@ -920,7 +921,7 @@ func handleTopicsSetMaxConsumers(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveMaxConsumers removes the maximum consumers limit for a topic func handleTopicsRemoveMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -950,7 +951,7 @@ func handleTopicsRemoveMaxConsumers(_ context.Context, request mcp.CallToolReque // gets the maximum number of unacknowledged messages allowed for a consumer on a topic func handleTopicsGetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -988,12 +989,12 @@ func handleTopicsGetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.C // sets the maximum number of unacknowledged messages allowed for a consumer on a topic func handleTopicsSetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxUnack, err := requiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerConsumer") + maxUnack, err := common.RequiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerConsumer") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerConsumer: %v", err)), nil } @@ -1035,7 +1036,7 @@ func handleTopicsSetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.C // removes the maximum unacknowledged messages per consumer limit for a topic func handleTopicsRemoveMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1070,7 +1071,7 @@ func handleTopicsRemoveMaxUnackMessagesPerConsumer(_ context.Context, request mc // gets the maximum number of unacknowledged messages allowed for a subscription on a topic func handleTopicsGetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1110,12 +1111,12 @@ func handleTopicsGetMaxUnackMessagesPerSubscription(_ context.Context, request m // sets the maximum number of unacknowledged messages allowed for a subscription on a topic func handleTopicsSetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxUnack, err := requiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerSubscription") + maxUnack, err := common.RequiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerSubscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerSubscription: %v", err)), nil } @@ -1161,7 +1162,7 @@ func handleTopicsSetMaxUnackMessagesPerSubscription(_ context.Context, request m // removes the maximum unacknowledged messages per subscription limit for a topic func handleTopicsRemoveMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1195,7 +1196,7 @@ func handleTopicsRemoveMaxUnackMessagesPerSubscription(_ context.Context, reques // handleTopicsGetPersistence gets the persistence policy for a topic func handleTopicsGetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1230,22 +1231,22 @@ func handleTopicsGetPersistence(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetPersistence sets the persistence policy for a topic func handleTopicsSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - ensembleSize, err := requiredParam[float64](request.Params.Arguments, "ensembleSize") + ensembleSize, err := common.RequiredParam[float64](request.Params.Arguments, "ensembleSize") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensembleSize: %v", err)), nil } - writeQuorum, err := requiredParam[float64](request.Params.Arguments, "writeQuorum") + writeQuorum, err := common.RequiredParam[float64](request.Params.Arguments, "writeQuorum") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get writeQuorum: %v", err)), nil } - ackQuorum, err := requiredParam[float64](request.Params.Arguments, "ackQuorum") + ackQuorum, err := common.RequiredParam[float64](request.Params.Arguments, "ackQuorum") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ackQuorum: %v", err)), nil } @@ -1298,7 +1299,7 @@ func handleTopicsSetPersistence(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemovePersistence removes the persistence policy for a topic func handleTopicsRemovePersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1327,7 +1328,7 @@ func handleTopicsRemovePersistence(_ context.Context, request mcp.CallToolReques // handleTopicsGetDelayedDelivery gets the delayed delivery policy for a topic func handleTopicsGetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1362,12 +1363,12 @@ func handleTopicsGetDelayedDelivery(_ context.Context, request mcp.CallToolReque // handleTopicsSetDelayedDelivery sets the delayed delivery policy for a topic func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - delayInMillis, err := requiredParam[float64](request.Params.Arguments, "delayInMillis") + delayInMillis, err := common.RequiredParam[float64](request.Params.Arguments, "delayInMillis") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get delayInMillis: %v", err)), nil } @@ -1379,7 +1380,7 @@ func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolReque // Default tick time is 1 second (1000ms) tickTime := 1000.0 - tickTimeParam, hasTickTime := optionalParam[float64](request.Params.Arguments, "tickTime") + tickTimeParam, hasTickTime := common.OptionalParam[float64](request.Params.Arguments, "tickTime") if hasTickTime && tickTimeParam > 0 { tickTime = tickTimeParam } @@ -1420,7 +1421,7 @@ func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolReque // handleTopicsRemoveDelayedDelivery removes the delayed delivery policy for a topic func handleTopicsRemoveDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1449,7 +1450,7 @@ func handleTopicsRemoveDelayedDelivery(_ context.Context, request mcp.CallToolRe // handleTopicsGetDispatchRate gets the message dispatch rate for a topic func handleTopicsGetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1489,7 +1490,7 @@ func handleTopicsGetDispatchRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetDispatchRate sets the message dispatch rate for a topic func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1512,19 +1513,19 @@ func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) ratePeriodInSecond := int64(1) // default 1 second // Get dispatch rate in messages if provided - msgRateParam, hasMsgRate := optionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRateParam, hasMsgRate := common.OptionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInMsg") if hasMsgRate { dispatchRateInMsg = int64(msgRateParam) } // Get dispatch rate in bytes if provided - byteRateParam, hasByteRate := optionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRateParam, hasByteRate := common.OptionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInByte") if hasByteRate { dispatchRateInByte = int64(byteRateParam) } // Get rate period if provided - ratePeriodParam, hasRatePeriod := optionalParam[float64](request.Params.Arguments, "ratePeriodInSecond") + ratePeriodParam, hasRatePeriod := common.OptionalParam[float64](request.Params.Arguments, "ratePeriodInSecond") if hasRatePeriod && ratePeriodParam > 0 { ratePeriodInSecond = int64(ratePeriodParam) } else if hasRatePeriod && ratePeriodParam <= 0 { @@ -1571,7 +1572,7 @@ func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveDispatchRate removes the message dispatch rate for a topic func handleTopicsRemoveDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1600,7 +1601,7 @@ func handleTopicsRemoveDispatchRate(_ context.Context, request mcp.CallToolReque // handleTopicsGetDeduplicationStatus gets the deduplication status for a topic func handleTopicsGetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1634,12 +1635,12 @@ func handleTopicsGetDeduplicationStatus(_ context.Context, request mcp.CallToolR // handleTopicsSetDeduplicationStatus sets the deduplication status for a topic func handleTopicsSetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - enabled, err := requiredParam[bool](request.Params.Arguments, "enabled") + enabled, err := common.RequiredParam[bool](request.Params.Arguments, "enabled") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get enabled parameter: %v", err)), nil } @@ -1673,7 +1674,7 @@ func handleTopicsSetDeduplicationStatus(_ context.Context, request mcp.CallToolR // handleTopicsRemoveDeduplicationStatus removes the deduplication status for a topic func handleTopicsRemoveDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1702,7 +1703,7 @@ func handleTopicsRemoveDeduplicationStatus(_ context.Context, request mcp.CallTo // handleTopicsGetRetention gets the retention policy for a topic func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1715,7 +1716,7 @@ func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (* // Check if applied policies should be included applied := false - appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") if hasApplied { applied = appliedParam } @@ -1768,17 +1769,17 @@ func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (* // handleTopicsSetRetention sets the retention policy for a topic func handleTopicsSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - retentionTimeInMinutes, err := requiredParam[float64](request.Params.Arguments, "retentionTimeInMinutes") + retentionTimeInMinutes, err := common.RequiredParam[float64](request.Params.Arguments, "retentionTimeInMinutes") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionTimeInMinutes: %v", err)), nil } - retentionSizeInMB, err := requiredParam[float64](request.Params.Arguments, "retentionSizeInMB") + retentionSizeInMB, err := common.RequiredParam[float64](request.Params.Arguments, "retentionSizeInMB") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionSizeInMB: %v", err)), nil } @@ -1835,7 +1836,7 @@ func handleTopicsSetRetention(_ context.Context, request mcp.CallToolRequest) (* // handleTopicsRemoveRetention removes the retention policy for a topic func handleTopicsRemoveRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1864,7 +1865,7 @@ func handleTopicsRemoveRetention(_ context.Context, request mcp.CallToolRequest) // handleTopicsGetBacklogQuota gets the backlog quota policy for a topic func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1877,7 +1878,7 @@ func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) // Check if applied policies should be included applied := false - appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") if hasApplied { applied = appliedParam } @@ -1910,17 +1911,17 @@ func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetBacklogQuota sets the backlog quota policy for a topic func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - limitSize, err := requiredParam[float64](request.Params.Arguments, "limitSize") + limitSize, err := common.RequiredParam[float64](request.Params.Arguments, "limitSize") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get limitSize: %v", err)), nil } - policy, err := requiredParam[string](request.Params.Arguments, "policy") + policy, err := common.RequiredParam[string](request.Params.Arguments, "policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil } @@ -1941,7 +1942,7 @@ func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) limitTime := int64(-1) // unlimited by default // Get limit time if provided - limitTimeParam, hasLimitTime := optionalParam[float64](request.Params.Arguments, "limitTime") + limitTimeParam, hasLimitTime := common.OptionalParam[float64](request.Params.Arguments, "limitTime") if hasLimitTime { limitTime = int64(limitTimeParam) } @@ -1956,7 +1957,7 @@ func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) backlogQuotaType := utils.DestinationStorage // Get quota type if provided - quotaTypeStr, hasQuotaType := optionalParam[string](request.Params.Arguments, "type") + quotaTypeStr, hasQuotaType := common.OptionalParam[string](request.Params.Arguments, "type") if hasQuotaType { parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) if err != nil { @@ -1981,7 +1982,7 @@ func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveBacklogQuota removes the backlog quota policy from a topic func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2002,7 +2003,7 @@ func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolReque backlogQuotaType := utils.DestinationStorage // Get quota type if provided - quotaTypeStr, hasQuotaType := optionalParam[string](request.Params.Arguments, "type") + quotaTypeStr, hasQuotaType := common.OptionalParam[string](request.Params.Arguments, "type") if hasQuotaType { parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) if err != nil { @@ -2023,7 +2024,7 @@ func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolReque // handleTopicsGetCompactionThreshold gets the compaction threshold for a topic func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2036,7 +2037,7 @@ func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolR // Check if applied policies should be included applied := false - appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") if hasApplied { applied = appliedParam } @@ -2065,12 +2066,12 @@ func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolR // handleTopicsSetCompactionThreshold sets the compaction threshold for a topic func handleTopicsSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - threshold, err := requiredParam[float64](request.Params.Arguments, "threshold") + threshold, err := common.RequiredParam[float64](request.Params.Arguments, "threshold") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil } @@ -2111,7 +2112,7 @@ func handleTopicsSetCompactionThreshold(_ context.Context, request mcp.CallToolR // handleTopicsRemoveCompactionThreshold removes the compaction threshold for a topic func handleTopicsRemoveCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2141,7 +2142,7 @@ func handleTopicsRemoveCompactionThreshold(_ context.Context, request mcp.CallTo // handleTopicsGetInactiveTopic gets the inactive topic policies for a topic func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2154,7 +2155,7 @@ func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest // Check if applied policies should be included applied := false - appliedParam, hasApplied := optionalParam[bool](request.Params.Arguments, "applied") + appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") if hasApplied { applied = appliedParam } @@ -2183,22 +2184,22 @@ func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest // handleTopicsSetInactiveTopic sets the inactive topic policies for a topic func handleTopicsSetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - enableDelete, err := requiredParam[bool](request.Params.Arguments, "enableDeleteWhileInactive") + enableDelete, err := common.RequiredParam[bool](request.Params.Arguments, "enableDeleteWhileInactive") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get enableDeleteWhileInactive: %v", err)), nil } - maxInactiveDuration, err := requiredParam[float64](request.Params.Arguments, "maxInactiveDurationSeconds") + maxInactiveDuration, err := common.RequiredParam[float64](request.Params.Arguments, "maxInactiveDurationSeconds") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxInactiveDurationSeconds: %v", err)), nil } - deleteModeStr, err := requiredParam[string](request.Params.Arguments, "deleteMode") + deleteModeStr, err := common.RequiredParam[string](request.Params.Arguments, "deleteMode") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get deleteMode: %v", err)), nil } @@ -2246,7 +2247,7 @@ func handleTopicsSetInactiveTopic(_ context.Context, request mcp.CallToolRequest // handleTopicsRemoveInactiveTopic removes the inactive topic policies from a topic func handleTopicsRemoveInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2276,12 +2277,12 @@ func handleTopicsRemoveInactiveTopic(_ context.Context, request mcp.CallToolRequ // handleTopicGetPolicy handles getting policies for a topic using the unified tool func handleTopicGetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - _, err := requiredParam[string](request.Params.Arguments, "topic") + _, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - policyType, err := requiredParam[string](request.Params.Arguments, "policy") + policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } @@ -2326,12 +2327,12 @@ func handleTopicGetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mc // handleTopicSetPolicy handles setting policies for a topic using the unified tool func handleTopicSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - _, err := requiredParam[string](request.Params.Arguments, "topic") + _, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - policyType, err := requiredParam[string](request.Params.Arguments, "policy") + policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } @@ -2376,12 +2377,12 @@ func handleTopicSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mc // handleTopicRemovePolicy handles removing policies for a topic using the unified tool func handleTopicRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - _, err := requiredParam[string](request.Params.Arguments, "topic") + _, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - policyType, err := requiredParam[string](request.Params.Arguments, "policy") + policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index c3bf0e9..50be189 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -28,6 +28,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -135,12 +136,12 @@ func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []str func handleTopicTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := requiredParam[string](request.Params.Arguments, "resource") + resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := requiredParam[string](request.Params.Arguments, "operation") + operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -216,7 +217,7 @@ func handleTopicTool(readOnly bool) func(_ context.Context, request mcp.CallTool // handleTopicsList lists all existing topics under the specified namespace func handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - namespace, err := requiredParam[string](request.Params.Arguments, "namespace") + namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for topics.list: %v", err)), nil } @@ -254,7 +255,7 @@ func handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp. // handleTopicGet gets the metadata of an existing topic func handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.get: %v", err)), nil } @@ -284,14 +285,14 @@ func handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // handleTopicStats gets the stats for an existing topic func handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.stats: %v", err)), nil } // Get optional parameters - partitioned, hasPartitioned := optionalParam[bool](request.Params.Arguments, "partitioned") - perPartition, hasPerPartition := optionalParam[bool](request.Params.Arguments, "per-partition") + partitioned, hasPartitioned := common.OptionalParam[bool](request.Params.Arguments, "partitioned") + perPartition, hasPerPartition := common.OptionalParam[bool](request.Params.Arguments, "per-partition") if !hasPartitioned { partitioned = false @@ -361,7 +362,7 @@ func handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp. // handleTopicLookup looks up the owner broker of a topic func handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.lookup: %v", err)), nil } @@ -391,12 +392,12 @@ func handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicCreate creates a topic with the specified number of partitions func handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.create: %v", err)), nil } - partitions, err := requiredParam[float64](request.Params.Arguments, "partitions") + partitions, err := common.RequiredParam[float64](request.Params.Arguments, "partitions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.create: %v", err)), nil } @@ -430,14 +431,14 @@ func handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicDelete deletes a topic func handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.delete: %v", err)), nil } // Get optional parameters - force, hasForce := optionalParam[bool](request.Params.Arguments, "force") - nonPartitioned, hasNonPartitioned := optionalParam[bool](request.Params.Arguments, "non-partitioned") + force, hasForce := common.OptionalParam[bool](request.Params.Arguments, "force") + nonPartitioned, hasNonPartitioned := common.OptionalParam[bool](request.Params.Arguments, "non-partitioned") if !hasForce { force = false @@ -476,7 +477,7 @@ func handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicUnload unloads a topic func handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.unload: %v", err)), nil } @@ -499,7 +500,7 @@ func handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicTerminate terminates a topic func handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.terminate: %v", err)), nil } @@ -527,7 +528,7 @@ func handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (* // handleTopicCompact triggers compaction on a topic func handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.compact: %v", err)), nil } @@ -551,7 +552,7 @@ func handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTopicInternalStats gets the internal stats for a topic func handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-stats: %v", err)), nil } @@ -580,7 +581,7 @@ func handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest // handleTopicInternalInfo gets the internal info for a topic func handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-info: %v", err)), nil } @@ -609,7 +610,7 @@ func handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) // handleTopicBundleRange gets the bundle range of a topic func handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.bundle-range: %v", err)), nil } @@ -632,7 +633,7 @@ func handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) // handleTopicLastMessageID gets the last message ID of a topic func handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.last-message-id: %v", err)), nil } @@ -661,7 +662,7 @@ func handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest // handleTopicStatus gets the status of a topic func handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.status: %v", err)), nil } @@ -699,12 +700,12 @@ func handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicUpdate updates a topic configuration func handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.update: %v", err)), nil } - partitions, err := requiredParam[float64](request.Params.Arguments, "partitions") + partitions, err := common.RequiredParam[float64](request.Params.Arguments, "partitions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.update: %v", err)), nil } @@ -727,12 +728,12 @@ func handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicOffload offloads data from a topic to long-term storage func handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload: %v", err)), nil } - messageIDStr, err := requiredParam[string](request.Params.Arguments, "messageId") + messageIDStr, err := common.RequiredParam[string](request.Params.Arguments, "messageId") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for topic.offload: %v", err)), nil } @@ -770,7 +771,7 @@ func handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTopicOffloadStatus checks the status of data offloading for a topic func handleTopicOffloadStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload-status: %v", err)), nil } diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go index ec71b23..b247034 100644 --- a/pkg/mcp/pulsar_client_consume_tools.go +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -28,6 +28,7 @@ import ( "github.com/apache/pulsar-client-go/pulsar" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -76,49 +77,49 @@ func PulsarClientAddConsumerTools(s *server.MCPServer, _ bool, features []string func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract required parameters with validation - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - subscriptionName, err := requiredParam[string](request.Params.Arguments, "subscription-name") + subscriptionName, err := common.RequiredParam[string](request.Params.Arguments, "subscription-name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } // Set default values and extract optional parameters subscriptionType := "exclusive" - if val, exists := optionalParam[string](request.Params.Arguments, "subscription-type"); exists && val != "" { + if val, exists := common.OptionalParam[string](request.Params.Arguments, "subscription-type"); exists && val != "" { subscriptionType = val } subscriptionMode := "durable" - if val, exists := optionalParam[string](request.Params.Arguments, "subscription-mode"); exists && val != "" { + if val, exists := common.OptionalParam[string](request.Params.Arguments, "subscription-mode"); exists && val != "" { subscriptionMode = val } initialPosition := "latest" - if val, exists := optionalParam[string](request.Params.Arguments, "initial-position"); exists && val != "" { + if val, exists := common.OptionalParam[string](request.Params.Arguments, "initial-position"); exists && val != "" { initialPosition = val } numMessages := 10 - if val, exists := optionalParam[float64](request.Params.Arguments, "num-messages"); exists { + if val, exists := common.OptionalParam[float64](request.Params.Arguments, "num-messages"); exists { numMessages = int(val) } timeout := 30 - if val, exists := optionalParam[float64](request.Params.Arguments, "timeout"); exists { + if val, exists := common.OptionalParam[float64](request.Params.Arguments, "timeout"); exists { timeout = int(val) } showProperties := false - if val, exists := optionalParam[bool](request.Params.Arguments, "show-properties"); exists { + if val, exists := common.OptionalParam[bool](request.Params.Arguments, "show-properties"); exists { showProperties = val } hidePayload := false - if val, exists := optionalParam[bool](request.Params.Arguments, "hide-payload"); exists { + if val, exists := common.OptionalParam[bool](request.Params.Arguments, "hide-payload"); exists { hidePayload = val } diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index a0be5c6..c064cae 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -28,6 +28,7 @@ import ( "github.com/apache/pulsar-client-go/pulsar" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -87,14 +88,14 @@ func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract required parameters with validation - topic, err := requiredParam[string](request.Params.Arguments, "topic") + topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } // Set default values and extract optional parameters messages := []string{} - if val, exists := optionalParam[[]interface{}](request.Params.Arguments, "messages"); exists && len(val) > 0 { + if val, exists := common.OptionalParam[[]interface{}](request.Params.Arguments, "messages"); exists && len(val) > 0 { for _, m := range val { if strMsg, ok := m.(string); ok { messages = append(messages, strMsg) @@ -107,32 +108,32 @@ func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp } numProduce := 1 - if val, exists := optionalParam[float64](request.Params.Arguments, "num-produce"); exists { + if val, exists := common.OptionalParam[float64](request.Params.Arguments, "num-produce"); exists { numProduce = int(val) } rate := 0.0 - if val, exists := optionalParam[float64](request.Params.Arguments, "rate"); exists { + if val, exists := common.OptionalParam[float64](request.Params.Arguments, "rate"); exists { rate = val } disableBatching := false - if val, exists := optionalParam[bool](request.Params.Arguments, "disable-batching"); exists { + if val, exists := common.OptionalParam[bool](request.Params.Arguments, "disable-batching"); exists { disableBatching = val } chunkingAllowed := false - if val, exists := optionalParam[bool](request.Params.Arguments, "chunking"); exists { + if val, exists := common.OptionalParam[bool](request.Params.Arguments, "chunking"); exists { chunkingAllowed = val } separator := "" - if val, exists := optionalParam[string](request.Params.Arguments, "separator"); exists && val != "" { + if val, exists := common.OptionalParam[string](request.Params.Arguments, "separator"); exists && val != "" { separator = val } properties := []string{} - if val, exists := optionalParam[[]interface{}](request.Params.Arguments, "properties"); exists && len(val) > 0 { + if val, exists := common.OptionalParam[[]interface{}](request.Params.Arguments, "properties"); exists && len(val) > 0 { for _, p := range val { if strProp, ok := p.(string); ok { properties = append(properties, strProp) @@ -141,7 +142,7 @@ func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp } key := "" - if val, exists := optionalParam[string](request.Params.Arguments, "key"); exists { + if val, exists := common.OptionalParam[string](request.Params.Arguments, "key"); exists { key = val } diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go new file mode 100644 index 0000000..87d6fa5 --- /dev/null +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -0,0 +1,117 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "log" + "os" + "slices" + "strconv" + "strings" + "sync" + "time" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/pftools" +) + +var ( + functionManagers = make(map[string]*pftools.PulsarFunctionManager) + functionManagersLock sync.RWMutex +) + +func StopAllPulsarFunctionManagers() { + functionManagersLock.Lock() + defer functionManagersLock.Unlock() + + for id, manager := range functionManagers { + log.Printf("Stopping Pulsar Function manager: %s", id) + manager.Stop() + delete(functionManagers, id) + } + + if len(functionManagers) > 0 { + time.Sleep(500 * time.Millisecond) + } + + log.Println("All Pulsar Function managers stopped") +} + +func PulsarFunctionManagedMcpTools(s *server.MCPServer, readOnly bool, features []string) { + if !slices.Contains(features, string(FeatureAll)) && + !slices.Contains(features, string(FeatureFunctionsAsTools)) && + !slices.Contains(features, string(FeatureStreamNativeCloud)) { + return + } + + options := pftools.DefaultManagerOptions() + + if pollIntervalStr := os.Getenv("FUNCTIONS_AS_TOOLS_POLL_INTERVAL"); pollIntervalStr != "" { + if seconds, err := strconv.Atoi(pollIntervalStr); err == nil && seconds > 0 { + options.PollInterval = time.Duration(seconds) * time.Second + log.Printf("Setting Pulsar Functions poll interval to %v", options.PollInterval) + } + } + + if timeoutStr := os.Getenv("FUNCTIONS_AS_TOOLS_TIMEOUT"); timeoutStr != "" { + if seconds, err := strconv.Atoi(timeoutStr); err == nil && seconds > 0 { + options.DefaultTimeout = time.Duration(seconds) * time.Second + log.Printf("Setting Pulsar Functions default timeout to %v", options.DefaultTimeout) + } + } + + if failureThresholdStr := os.Getenv("FUNCTIONS_AS_TOOLS_FAILURE_THRESHOLD"); failureThresholdStr != "" { + if threshold, err := strconv.Atoi(failureThresholdStr); err == nil && threshold > 0 { + options.FailureThreshold = threshold + log.Printf("Setting Pulsar Functions failure threshold to %d", options.FailureThreshold) + } + } + + if resetTimeoutStr := os.Getenv("FUNCTIONS_AS_TOOLS_RESET_TIMEOUT"); resetTimeoutStr != "" { + if seconds, err := strconv.Atoi(resetTimeoutStr); err == nil && seconds > 0 { + options.ResetTimeout = time.Duration(seconds) * time.Second + log.Printf("Setting Pulsar Functions reset timeout to %v", options.ResetTimeout) + } + } + + if tenantNamespacesStr := os.Getenv("FUNCTIONS_AS_TOOLS_TENANT_NAMESPACES"); tenantNamespacesStr != "" { + options.TenantNamespaces = strings.Split(tenantNamespacesStr, ",") + log.Printf("Setting Pulsar Functions tenant namespaces to %v", options.TenantNamespaces) + } + + if strictExportStr := os.Getenv("FUNCTIONS_AS_TOOLS_STRICT_EXPORT"); strictExportStr != "" { + options.StrictExport = strictExportStr == "true" + log.Printf("Setting Pulsar Functions strict export to %v", options.StrictExport) + } + + manager, err := pftools.NewPulsarFunctionManager(s, readOnly, options) + if err != nil { + log.Printf("Failed to create Pulsar Function manager: %v", err) + return + } + + manager.Start() + + managerID := "FUNCTIONS_AS_TOOLS_manager_" + strconv.FormatInt(time.Now().UnixNano(), 10) + functionManagersLock.Lock() + functionManagers[managerID] = manager + functionManagersLock.Unlock() + + log.Printf("Registered Pulsar Function Manager with ID: %s", managerID) + log.Printf("Pulsar Functions as MCP Tools service started. Functions will be dynamically converted to MCP tools.") +} diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go index 3146681..1611748 100644 --- a/pkg/mcp/streamnative_resources_log_tools.go +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -31,6 +31,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/config" ) @@ -112,54 +113,54 @@ type LogContent struct { } func handleStreamNativeResourcesLog(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - snConfig := getOptions(ctx) + snConfig := common.GetOptions(ctx) instance, cluster, organization := GetMcpContext() if instance == "" || cluster == "" || organization == "" { return mcp.NewToolResultError("No context is set, please use `sncloud_context_use_cluster` to set the context first."), nil } // Extract required parameters with validation - component, err := requiredParam[string](request.Params.Arguments, "component") + component, err := common.RequiredParam[string](request.Params.Arguments, "component") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get component: %v", err)), nil } - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } - tenant, hasTenant := optionalParam[string](request.Params.Arguments, "tenant") + tenant, hasTenant := common.OptionalParam[string](request.Params.Arguments, "tenant") if !hasTenant { tenant = "public" } - namespace, hasNamespace := optionalParam[string](request.Params.Arguments, "namespace") + namespace, hasNamespace := common.OptionalParam[string](request.Params.Arguments, "namespace") if !hasNamespace { namespace = "default" } - size, hasSize := optionalParam[string](request.Params.Arguments, "size") + size, hasSize := common.OptionalParam[string](request.Params.Arguments, "size") if !hasSize { size = "20" } - replicaID, hasreplicaID := optionalParam[int](request.Params.Arguments, "replica_id") + replicaID, hasreplicaID := common.OptionalParam[int](request.Params.Arguments, "replica_id") if !hasreplicaID { replicaID = -1 } - timestampStr, hasTimestamp := optionalParam[string](request.Params.Arguments, "timestamp") + timestampStr, hasTimestamp := common.OptionalParam[string](request.Params.Arguments, "timestamp") if !hasTimestamp { timestampStr = "" } - sinceStr, hasSince := optionalParam[string](request.Params.Arguments, "since") + sinceStr, hasSince := common.OptionalParam[string](request.Params.Arguments, "since") if !hasSince { sinceStr = "" } - previousContainer, hasPreviousContainer := optionalParam[bool](request.Params.Arguments, "previous_container") + previousContainer, hasPreviousContainer := common.OptionalParam[bool](request.Params.Arguments, "previous_container") if !hasPreviousContainer { previousContainer = false } diff --git a/pkg/mcp/streamnative_resources_tools.go b/pkg/mcp/streamnative_resources_tools.go index 9f73f58..7d09842 100644 --- a/pkg/mcp/streamnative_resources_tools.go +++ b/pkg/mcp/streamnative_resources_tools.go @@ -11,6 +11,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/config" sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) @@ -73,20 +74,20 @@ type Metadata struct { // handleStreamNativeResourcesApply handles the streaming_cloud_resources_apply tool func handleStreamNativeResourcesApply(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get necessary parameters - snConfig := getOptions(ctx) + snConfig := common.GetOptions(ctx) organization := snConfig.Organization if organization == "" { return mcp.NewToolResultError("No organization is set. Please set the organization using the appropriate context tool."), nil } // Get YAML content - jsonContent, err := requiredParam[string](request.Params.Arguments, "json_content") + jsonContent, err := common.RequiredParam[string](request.Params.Arguments, "json_content") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get json_content: %v", err)), nil } // Get dry_run flag - dryRun, hasDryRun := optionalParam[bool](request.Params.Arguments, "dry_run") + dryRun, hasDryRun := common.OptionalParam[bool](request.Params.Arguments, "dry_run") if !hasDryRun { dryRun = false } @@ -323,15 +324,15 @@ func applyPulsarCluster(ctx context.Context, apiClient *sncloud.APIClient, jsonC // handleStreamNativeResourcesDelete handles the streaming_cloud_resources_delete tool func handleStreamNativeResourcesDelete(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - snConfig := getOptions(ctx) + snConfig := common.GetOptions(ctx) organization := snConfig.Organization - name, err := requiredParam[string](request.Params.Arguments, "name") + name, err := common.RequiredParam[string](request.Params.Arguments, "name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } - resourceType, err := requiredParam[string](request.Params.Arguments, "type") + resourceType, err := common.RequiredParam[string](request.Params.Arguments, "type") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get type: %v", err)), nil } diff --git a/pkg/pftools/circuit_breaker.go b/pkg/pftools/circuit_breaker.go new file mode 100644 index 0000000..c2542ff --- /dev/null +++ b/pkg/pftools/circuit_breaker.go @@ -0,0 +1,163 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pftools + +import ( + "fmt" + "time" +) + +// NewCircuitBreaker creates a new circuit breaker +func NewCircuitBreaker(threshold int, resetTimeout time.Duration) *CircuitBreaker { + return &CircuitBreaker{ + failureCount: 0, + failureThreshold: threshold, + resetTimeout: resetTimeout, + state: StateClosed, + } +} + +// RecordSuccess records a successful operation +func (cb *CircuitBreaker) RecordSuccess() { + cb.mutex.Lock() + defer cb.mutex.Unlock() + + // Reset the failure count + cb.failureCount = 0 + + // If we're half-open, close the circuit + if cb.state == StateHalfOpen { + cb.state = StateClosed + } +} + +// RecordFailure records a failed operation +func (cb *CircuitBreaker) RecordFailure() { + cb.mutex.Lock() + defer cb.mutex.Unlock() + + // Record the failure + cb.lastFailure = time.Now() + + // If we're already open, do nothing + if cb.state == StateOpen { + return + } + + // If we're half-open, open the circuit immediately + if cb.state == StateHalfOpen { + cb.state = StateOpen + return + } + + // Increment the failure count + cb.failureCount++ + + // If we've exceeded the threshold, open the circuit + if cb.failureCount >= cb.failureThreshold { + cb.state = StateOpen + } +} + +// AllowRequest determines if a request should be allowed +func (cb *CircuitBreaker) AllowRequest() bool { + cb.mutex.RLock() + defer cb.mutex.RUnlock() + + switch cb.state { + case StateClosed: + // Always allow if closed + return true + case StateOpen: + // If open, check if timeout has expired + if time.Since(cb.lastFailure) > cb.resetTimeout { + // Reset to half-open in a separate goroutine to avoid deadlock + go func() { + cb.mutex.Lock() + defer cb.mutex.Unlock() + cb.state = StateHalfOpen + }() + // Allow this request as a test + return true + } + // Still open and timeout hasn't expired + return false + case StateHalfOpen: + // Allow one request in half-open state to test + return true + default: + return false + } +} + +// GetState returns the current state of the circuit breaker +func (cb *CircuitBreaker) GetState() CircuitState { + cb.mutex.RLock() + defer cb.mutex.RUnlock() + return cb.state +} + +// ForceOpen forces the circuit breaker to open +func (cb *CircuitBreaker) ForceOpen() { + cb.mutex.Lock() + defer cb.mutex.Unlock() + cb.state = StateOpen + cb.lastFailure = time.Now() +} + +// ForceClose forces the circuit breaker to close +func (cb *CircuitBreaker) ForceClose() { + cb.mutex.Lock() + defer cb.mutex.Unlock() + cb.state = StateClosed + cb.failureCount = 0 +} + +// Reset resets the circuit breaker to closed state +func (cb *CircuitBreaker) Reset() { + cb.mutex.Lock() + defer cb.mutex.Unlock() + cb.state = StateClosed + cb.failureCount = 0 +} + +// GetStateString returns a string representation of the circuit breaker state +func (cb *CircuitBreaker) GetStateString() string { + cb.mutex.RLock() + defer cb.mutex.RUnlock() + + switch cb.state { + case StateOpen: + return "OPEN" + case StateHalfOpen: + return "HALF-OPEN" + case StateClosed: + return "CLOSED" + default: + return "UNKNOWN" + } +} + +// String returns a string representation of the circuit breaker +func (cb *CircuitBreaker) String() string { + cb.mutex.RLock() + defer cb.mutex.RUnlock() + + return fmt.Sprintf("CircuitBreaker{state=%s, failures=%d/%d, lastFailure=%v}", + cb.GetStateString(), cb.failureCount, cb.failureThreshold, cb.lastFailure) +} diff --git a/pkg/pftools/errors.go b/pkg/pftools/errors.go new file mode 100644 index 0000000..7fa0f72 --- /dev/null +++ b/pkg/pftools/errors.go @@ -0,0 +1,8 @@ +package pftools + +import "errors" + +var ( + ErrFunctionNotFound = errors.New("function not found") + ErrNotOurMessage = errors.New("not our message") +) diff --git a/pkg/pftools/invocation.go b/pkg/pftools/invocation.go new file mode 100644 index 0000000..fd8542e --- /dev/null +++ b/pkg/pftools/invocation.go @@ -0,0 +1,281 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pftools + +import ( + "context" + "encoding/base64" + "encoding/json" + "fmt" + "strings" + "sync" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/schema" +) + +// FunctionInvoker handles function invocation and result tracking +type FunctionInvoker struct { + client pulsar.Client + resultChannels map[string]chan FunctionResult + mutex sync.RWMutex + manager *PulsarFunctionManager +} + +// FunctionResult represents the result of a function invocation +type FunctionResult struct { + Data string + Error error +} + +// NewFunctionInvoker creates a new FunctionInvoker +func NewFunctionInvoker(manager *PulsarFunctionManager) *FunctionInvoker { + return &FunctionInvoker{ + client: manager.pulsarClient, + resultChannels: make(map[string]chan FunctionResult), + mutex: sync.RWMutex{}, + manager: manager, + } +} + +// InvokeFunctionAndWait sends a message to the function and waits for the result +func (fi *FunctionInvoker) InvokeFunctionAndWait(ctx context.Context, fnTool *FunctionTool, params map[string]interface{}) (*mcp.CallToolResult, error) { + schemaConverter, err := schema.ConverterFactory(fnTool.OutputSchema.Type) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema converter: %v", err)), nil + } + + payload, err := schemaConverter.SerializeMCPRequestToPulsarPayload(params, fnTool.OutputSchema.PulsarSchemaInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize payload: %v", err)), nil + } + + // Create a result channel for this request + resultChan := make(chan FunctionResult, 1) + + // Send message to input topic + msgID, err := fi.sendMessage(ctx, fnTool.InputTopic, payload) + if err != nil || msgID == "" { + return mcp.NewToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil + } + + fi.registerResultChannel(msgID, resultChan) + defer fi.unregisterResultChannel(msgID) + + // Set up consumer for output topic + err = fi.setupConsumer(ctx, fnTool.InputTopic, fnTool.OutputTopic, msgID, fnTool.OutputSchema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set up consumer: %v", err)), nil + } + + // Wait for result or timeout + select { + case result := <-resultChan: + if result.Error != nil { + return mcp.NewToolResultError(fmt.Sprintf("Function execution failed: %v", result.Error)), nil + } + + return mcp.NewToolResultText(result.Data), nil + case <-ctx.Done(): + return mcp.NewToolResultError(fmt.Sprintf("Function invocation timed out after %v", ctx.Value("timeout"))), nil + } +} + +// setupConsumer creates a consumer for the output topic +func (fi *FunctionInvoker) setupConsumer(ctx context.Context, inputTopic, outputTopic, messageID string, schema *SchemaInfo) error { + consumerOptions := pulsar.ConsumerOptions{ + Topic: outputTopic, + SubscriptionName: fmt.Sprintf("mcp-tool-consumer-%s", messageID), + Type: pulsar.Exclusive, + SubscriptionInitialPosition: pulsar.SubscriptionPositionEarliest, + } + + // Create the consumer + consumer, err := fi.client.Subscribe(consumerOptions) + if err != nil { + return fmt.Errorf("failed to create consumer: %w", err) + } + + // Start goroutine to receive messages + go func() { + // Ensure we close the consumer when done + defer func() { + consumer.Close() + }() + + // Get messages with a timeout + for { + select { + case <-ctx.Done(): + // Context canceled, exit + return + default: + // Set a short timeout for Receive to make it responsive to context cancellation + receiveCtx, cancel := context.WithTimeout(ctx, 1*time.Second) + msg, err := consumer.Receive(receiveCtx) + defer cancel() + + if err != nil { + if err == context.DeadlineExceeded || err == context.Canceled { + // Timeout or cancellation, but keep trying unless the parent context is done + continue + } + + continue + } + + // Process the message + err = fi.processMessage(inputTopic, msg, messageID, schema) + if err != nil { + if err == ErrNotOurMessage { + _ = consumer.Ack(msg) + continue + } + continue + } + + // Acknowledge the message + _ = consumer.Ack(msg) + + // Stop after processing one message + return + } + } + }() + + return nil +} + +// sendMessage sends a message to the input topic +func (fi *FunctionInvoker) sendMessage(ctx context.Context, inputTopic string, payload []byte) (string, error) { + producer, err := fi.manager.GetProducer(inputTopic) + if err != nil { + return "", fmt.Errorf("failed to get producer for topic %s: %w", inputTopic, err) + } + + // Send the message with properties + msgID, err := producer.Send(ctx, &pulsar.ProducerMessage{ + Payload: payload, + }) + + if err != nil { + return "", fmt.Errorf("failed to send message: %w", err) + } + + return msgID.String(), nil +} + +// processMessage processes a message received from the output topic +func (fi *FunctionInvoker) processMessage(inputTopic string, msg pulsar.Message, messageID string, schema *SchemaInfo) error { + // Check if the message has our correlation ID + correlationIDbytes, err := base64.StdEncoding.DecodeString(msg.Properties()["__pfn_input_msg_id__"]) + if err != nil { + return fmt.Errorf("failed to decode correlation ID: %w", err) + } + correlationID, err := pulsar.DeserializeMessageID(correlationIDbytes) + if err != nil { + return fmt.Errorf("failed to deserialize correlation ID: %w", err) + } + correlationInputTopic := msg.Properties()["__pfn_input_topic__"] + + if !isCorrelationInputTopic(correlationInputTopic, inputTopic) { + // Not our message, ignore + return ErrNotOurMessage + } + if correlationID.String() != messageID { + // Not our message, ignore + return ErrNotOurMessage + } + + // Get the result channel + fi.mutex.RLock() + resultChan, exists := fi.resultChannels[messageID] + fi.mutex.RUnlock() + + if !exists { + return fmt.Errorf("result channel not found for message ID: %s", messageID) + } + + switch schema.Type { + case "STRING": + result := string(msg.Payload()) + // Send the result to the channel + resultChan <- FunctionResult{ + Data: result, + Error: nil, + } + case "JSON": + var result map[string]interface{} + err := json.Unmarshal(msg.Payload(), &result) + if err != nil { + return fmt.Errorf("failed to unmarshal message payload: %w", err) + } + resultString, err := json.Marshal(result) + if err != nil { + return fmt.Errorf("failed to marshal result to JSON: %w", err) + } + resultChan <- FunctionResult{ + Data: string(resultString), + Error: nil, + } + default: + return fmt.Errorf("unsupported schema type: %s", schema.Type) + } + + return nil +} + +// registerResultChannel registers a result channel for a message ID +func (fi *FunctionInvoker) registerResultChannel(messageID string, resultChan chan FunctionResult) { + fi.mutex.Lock() + defer fi.mutex.Unlock() + fi.resultChannels[messageID] = resultChan +} + +// unregisterResultChannel unregisters a result channel for a message ID +func (fi *FunctionInvoker) unregisterResultChannel(messageID string) { + fi.mutex.Lock() + defer fi.mutex.Unlock() + delete(fi.resultChannels, messageID) +} + +func isCorrelationInputTopic(correlationInputTopic string, inputTopic string) bool { + // remove the partition index from the input topic + if strings.Contains(correlationInputTopic, cliutils.PARTITIONEDTOPICSUFFIX) { + correlationInputTopic = strings.Split(correlationInputTopic, cliutils.PARTITIONEDTOPICSUFFIX)[0] + } + + // remove the partition index from the input topic + if strings.Contains(inputTopic, cliutils.PARTITIONEDTOPICSUFFIX) { + inputTopic = strings.Split(inputTopic, cliutils.PARTITIONEDTOPICSUFFIX)[0] + } + + correlationInputTopicName, err := cliutils.GetTopicName(correlationInputTopic) + if err != nil { + return false + } + inputTopicName, err := cliutils.GetTopicName(inputTopic) + if err != nil { + return false + } + + return correlationInputTopicName.String() == inputTopicName.String() +} diff --git a/pkg/pftools/manager.go b/pkg/pftools/manager.go new file mode 100644 index 0000000..d69470b --- /dev/null +++ b/pkg/pftools/manager.go @@ -0,0 +1,528 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pftools + +import ( + "context" + "encoding/json" + "fmt" + "log" + "strings" + "sync" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/rest" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/google/go-cmp/cmp" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + pulsarutils "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/schema" +) + +const ( + CustomRuntimeOptionsEnvMcpToolNameKey = "MCP_TOOL_NAME" + CustomRuntimeOptionsEnvMcpToolDescriptionKey = "MCP_TOOL_DESCRIPTION" +) + +var DefaultStringSchemaInfo = &SchemaInfo{ + Type: "STRING", + Definition: map[string]interface{}{ + "type": "string", + }, + PulsarSchemaInfo: &cliutils.SchemaInfo{ + Type: "STRING", + }, +} + +// NewPulsarFunctionManager creates a new PulsarFunctionManager +func NewPulsarFunctionManager(mcpServer *server.MCPServer, readOnly bool, options *ManagerOptions) (*PulsarFunctionManager, error) { + // Get Pulsar client and admin client + pulsarClient, err := pulsarutils.GetPulsarClient() + if err != nil { + return nil, fmt.Errorf("failed to get Pulsar client: %w", err) + } + + adminClient := cmdutils.NewPulsarClientWithAPIVersion(config.V3) + v2adminClient := cmdutils.NewPulsarClientWithAPIVersion(config.V2) + if options == nil { + options = DefaultManagerOptions() + } + + // Create the manager + manager := &PulsarFunctionManager{ + adminClient: adminClient, + v2adminClient: v2adminClient, + pulsarClient: pulsarClient, + fnToToolMap: make(map[string]*FunctionTool), + mutex: sync.RWMutex{}, + producerCache: make(map[string]pulsar.Producer), + producerMutex: sync.RWMutex{}, + pollInterval: options.PollInterval, + stopCh: make(chan struct{}), + callInProgressMap: make(map[string]context.CancelFunc), + mcpServer: mcpServer, + readOnly: readOnly, + defaultTimeout: options.DefaultTimeout, + circuitBreakers: make(map[string]*CircuitBreaker), + tenantNamespaces: options.TenantNamespaces, + strictExport: options.StrictExport, + } + + return manager, nil +} + +// Start starts polling for functions +func (m *PulsarFunctionManager) Start() { + go m.pollFunctions() +} + +// Stop stops polling for functions +func (m *PulsarFunctionManager) Stop() { + close(m.stopCh) + + m.producerMutex.Lock() + defer m.producerMutex.Unlock() + for topic, producer := range m.producerCache { + log.Printf("Closing producer for topic: %s", topic) + producer.Close() + } + m.producerCache = make(map[string]pulsar.Producer) + log.Println("All cached producers closed and cache cleared.") +} + +// pollFunctions polls for functions periodically +func (m *PulsarFunctionManager) pollFunctions() { + ticker := time.NewTicker(m.pollInterval) + defer ticker.Stop() + + // Initial update + m.updateFunctions() + + for { + select { + case <-ticker.C: + m.updateFunctions() + case <-m.stopCh: + return + } + } +} + +// updateFunctions updates the function tool mappings +func (m *PulsarFunctionManager) updateFunctions() { + // Get all functions + functions, err := m.getFunctionsList() + if err != nil { + log.Printf("Failed to get functions list: %v", err) + return + } + + // Track which functions we've seen + seenFunctions := make(map[string]bool) + + // Add or update functions + for _, fn := range functions { + fullName := getFunctionFullName(fn.Tenant, fn.Namespace, fn.Name) + seenFunctions[fullName] = true + + // Check if we already have this function + m.mutex.RLock() + _, exists := m.fnToToolMap[fullName] + m.mutex.RUnlock() + + changed := false + if exists { + // Check if the function has changed + existingFn, exists := m.fnToToolMap[fullName] + if exists { + if !cmp.Equal(*existingFn.Function, *fn) { + changed = true + } + if !existingFn.SchemaFetchSuccess { + changed = true + } + } + if !changed { + continue + } + } + + // Convert function to tool + fnTool, err := m.convertFunctionToTool(fn) + if err != nil || !fnTool.SchemaFetchSuccess { + if err != nil { + log.Printf("Failed to convert function %s to tool: %v", fullName, err) + } else { + log.Printf("Failed to fetch schema for function %s, retry later...", fullName) + } + continue + } + + if changed { + m.mcpServer.DeleteTools(fnTool.Tool.Name) + } + m.mcpServer.AddTool(fnTool.Tool, m.handleToolCall(fnTool)) + + // Add function to map + m.mutex.Lock() + m.fnToToolMap[fullName] = fnTool + m.mutex.Unlock() + + if changed { + log.Printf("Updated function %s as MCP tool [%s]", fullName, fnTool.Tool.Name) + } else { + log.Printf("Added function %s as MCP tool [%s]", fullName, fnTool.Tool.Name) + } + } + + // Remove deleted functions + m.mutex.Lock() + for fullName, fnTool := range m.fnToToolMap { + if !seenFunctions[fullName] { + m.mcpServer.DeleteTools(fnTool.Tool.Name) + delete(m.fnToToolMap, fullName) + log.Printf("Removed function %s from MCP tools [%s]", fullName, fnTool.Tool.Name) + } + } + m.mutex.Unlock() +} + +// getFunctionsList retrieves all functions from the specified tenants/namespaces +func (m *PulsarFunctionManager) getFunctionsList() ([]*utils.FunctionConfig, error) { + var allFunctions []*utils.FunctionConfig + var runningFunctions []*utils.FunctionConfig + + if len(m.tenantNamespaces) == 0 { + // This is StreamNative supported way to get all functions when using Function Mesh + functions, err := m.getFunctionsInNamespace("tenant@all", "namespace@all") + if err != nil { + return nil, fmt.Errorf("failed to get functions in all namespaces: %w", err) + } + + allFunctions = append(allFunctions, functions...) + } else { + // Get functions from specified tenant/namespaces + for _, tn := range m.tenantNamespaces { + parts := strings.Split(tn, "/") + if len(parts) != 2 { + log.Printf("Invalid tenant/namespace format: %s", tn) + continue + } + + tenant := parts[0] + namespace := parts[1] + + functions, err := m.getFunctionsInNamespace(tenant, namespace) + if err != nil { + log.Printf("Failed to get functions in namespace %s/%s: %v", tenant, namespace, err) + continue + } + + allFunctions = append(allFunctions, functions...) + } + } + + for _, fn := range allFunctions { + if m.strictExport && + !strings.Contains(fn.CustomRuntimeOptions, CustomRuntimeOptionsEnvMcpToolNameKey) && + !strings.Contains(fn.CustomRuntimeOptions, CustomRuntimeOptionsEnvMcpToolDescriptionKey) { + continue + } + status, err := m.adminClient.Functions().GetFunctionStatus(fn.Tenant, fn.Namespace, fn.Name) + if err != nil { + continue + } + if status.NumRunning <= 0 { + continue + } + running := false + for _, instance := range status.Instances { + if instance.Status.Err != "" { + continue + } + if instance.Status.Running { + running = true + break + } + } + if !running { + continue + } + runningFunctions = append(runningFunctions, fn) + } + + return runningFunctions, nil +} + +// getFunctionsInNamespace retrieves all functions in a namespace +func (m *PulsarFunctionManager) getFunctionsInNamespace(tenant, namespace string) ([]*utils.FunctionConfig, error) { + var functions []*utils.FunctionConfig + + // Get function names + functionNames, err := m.adminClient.Functions().GetFunctions(tenant, namespace) + if err != nil { + return nil, fmt.Errorf("failed to get function names: %w", err) + } + + // Get details for each function + for _, name := range functionNames { + parts := strings.Split(name, "/") + if len(parts) != 3 { + log.Printf("Invalid function name format: %s", name) + continue + } + + function, err := m.adminClient.Functions().GetFunction(parts[0], parts[1], parts[2]) + if err != nil { + log.Printf("Failed to get function details for %s/%s/%s: %v", parts[0], parts[1], parts[2], err) + continue + } + + functions = append(functions, &function) + } + + return functions, nil +} + +// convertFunctionToTool converts a Pulsar Function to an MCP Tool +func (m *PulsarFunctionManager) convertFunctionToTool(fn *utils.FunctionConfig) (*FunctionTool, error) { + schemaFetchSuccess := true + // Determine input and output topics + if len(fn.InputSpecs) == 0 { + return nil, fmt.Errorf("function has no input topics") + } + + var inputTopic string + // Get the first input topic + for topic := range fn.InputSpecs { + inputTopic = topic + break + } + if inputTopic == "" { + return nil, fmt.Errorf("function has no input topics") + } + + // Get schema for input topic + inputSchema, err := GetSchemaFromTopic(m.v2adminClient, inputTopic) + if err != nil { + // Continue with a default schema + inputSchema = DefaultStringSchemaInfo + if restError, ok := err.(rest.Error); ok { + if restError.Code != 404 { + log.Printf("Failed to get schema for input topic %s: %v", inputTopic, err) + schemaFetchSuccess = false + } + } + } + + // Get output topic and schema + outputTopic := fn.Output + var outputSchema *SchemaInfo + if outputTopic != "" { + outputSchema, err = GetSchemaFromTopic(m.v2adminClient, outputTopic) + if err != nil { + // Continue with a default schema + outputSchema = DefaultStringSchemaInfo + if restError, ok := err.(rest.Error); ok { + if restError.Code != 404 { + log.Printf("Failed to get schema for output topic %s: %v", outputTopic, err) + schemaFetchSuccess = false + } + } + } + } + + toolName := retrieveToolName(fn) + // Replace non-alphanumeric characters + toolName = strings.ReplaceAll(toolName, "-", "_") + toolName = strings.ReplaceAll(toolName, ".", "_") + + // Create description + description := retrieveToolDescription(fn) + + schemaConverter, err := schema.ConverterFactory(inputSchema.Type) + if err != nil { + return nil, fmt.Errorf("failed to create schema converter: %w", err) + } + + toolInputSchemaProperties, err := schemaConverter.ToMCPToolInputSchemaProperties(inputSchema.PulsarSchemaInfo) + if err != nil { + return nil, fmt.Errorf("failed to convert input schema to MCP tool input schema properties: %w", err) + } + + toolInputSchemaProperties = append(toolInputSchemaProperties, mcp.WithDescription(description)) + + // Create the tool + tool := mcp.NewTool(toolName, + toolInputSchemaProperties..., + ) + + // Create circuit breaker for this function + circuitBreaker := NewCircuitBreaker(5, 60*time.Second) + + // Store in map + m.mutex.Lock() + m.circuitBreakers[toolName] = circuitBreaker + m.mutex.Unlock() + + return &FunctionTool{ + Name: toolName, + Function: fn, + InputSchema: inputSchema, + OutputSchema: outputSchema, + InputTopic: inputTopic, + OutputTopic: outputTopic, + Tool: tool, + SchemaFetchSuccess: schemaFetchSuccess, + }, nil +} + +// handleToolCall returns a handler function for a specific function tool +func (m *PulsarFunctionManager) handleToolCall(fnTool *FunctionTool) func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get the circuit breaker + m.mutex.RLock() + cb, exists := m.circuitBreakers[fnTool.Name] + m.mutex.RUnlock() + + if !exists { + cb = NewCircuitBreaker(5, 60*time.Second) + m.mutex.Lock() + m.circuitBreakers[fnTool.Name] = cb + m.mutex.Unlock() + } + + // Check if the circuit breaker allows the request + if !cb.AllowRequest() { + return mcp.NewToolResultError(fmt.Sprintf("Circuit breaker is open for function %s. Too many failures, please try again later.", fnTool.Name)), nil + } + + // Create function invoker + invoker := NewFunctionInvoker(m) + + // Create context with timeout + timeoutCtx, cancel := context.WithTimeout(ctx, m.defaultTimeout) + defer cancel() + + // Register call + m.mutex.Lock() + m.callInProgressMap[fnTool.Name] = cancel + m.mutex.Unlock() + defer func() { + m.mutex.Lock() + delete(m.callInProgressMap, fnTool.Name) + m.mutex.Unlock() + }() + + // Invoke function and wait for result + result, err := invoker.InvokeFunctionAndWait(timeoutCtx, fnTool, request.Params.Arguments) + + // Record success or failure + if err != nil { + cb.RecordFailure() + } else { + cb.RecordSuccess() + } + + return result, err + } +} + +// getFunctionFullName returns the full name of a function +func getFunctionFullName(tenant, namespace, name string) string { + return fmt.Sprintf("%s/%s/%s", tenant, namespace, name) +} + +// retrieveToolName retrieves the tool name from a function +func retrieveToolName(fn *utils.FunctionConfig) string { + if fn == nil { + return "" + } + fallbackName := fmt.Sprintf("pulsar_function_%s_%s_%s", fn.Tenant, fn.Namespace, fn.Name) + if fn.CustomRuntimeOptions != "" { + option := make(map[string]interface{}) + if err := json.Unmarshal([]byte(fn.CustomRuntimeOptions), &option); err != nil { + return fallbackName + } + if envs, ok := option["env"]; ok { + if envsMap, ok := envs.(map[string]interface{}); ok { + if name, ok := envsMap[CustomRuntimeOptionsEnvMcpToolNameKey]; ok { + return name.(string) + } + } + } + } + return fallbackName +} + +// retrieveToolDescription retrieves the tool description from a function +func retrieveToolDescription(fn *utils.FunctionConfig) string { + if fn == nil { + return "" + } + fallbackDescription := fmt.Sprintf("Linked to Pulsar Function: %s/%s/%s", fn.Tenant, fn.Namespace, fn.Name) + if fn.CustomRuntimeOptions != "" { + option := make(map[string]interface{}) + if err := json.Unmarshal([]byte(fn.CustomRuntimeOptions), &option); err != nil { + return fallbackDescription + } + if envs, ok := option["env"]; ok { + if envsMap, ok := envs.(map[string]interface{}); ok { + if description, ok := envsMap[CustomRuntimeOptionsEnvMcpToolDescriptionKey]; ok { + return description.(string) + " " + fallbackDescription + } + } + } + } + return fallbackDescription +} + +// GetProducer retrieves a producer from the cache or creates a new one if not found. +func (m *PulsarFunctionManager) GetProducer(topic string) (pulsar.Producer, error) { + m.producerMutex.RLock() + producer, found := m.producerCache[topic] + m.producerMutex.RUnlock() + + if found { + return producer, nil + } + + m.producerMutex.Lock() + defer m.producerMutex.Unlock() + + producer, found = m.producerCache[topic] + if found { + return producer, nil + } + + newProducer, err := m.pulsarClient.CreateProducer(pulsar.ProducerOptions{ + Topic: topic, + }) + if err != nil { + return nil, fmt.Errorf("failed to create producer for topic %s: %w", topic, err) + } + + m.producerCache[topic] = newProducer + log.Printf("Created and cached producer for topic: %s", topic) + return newProducer, nil +} diff --git a/pkg/pftools/schema.go b/pkg/pftools/schema.go new file mode 100644 index 0000000..2c8c725 --- /dev/null +++ b/pkg/pftools/schema.go @@ -0,0 +1,146 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pftools + +import ( + "encoding/json" + "fmt" + + "github.com/apache/pulsar-client-go/pulsar" + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/streamnative/pulsarctl/pkg/cmdutils" +) + +var DefaultStringSchema = &mcp.ToolInputSchema{ + Type: "object", + Properties: map[string]interface{}{ + "payload": map[string]interface{}{ + "type": "string", + "description": "The payload of the message, in plain text format", + }, + }, +} + +// GetSchemaFromTopic retrieves schema information from a topic +func GetSchemaFromTopic(admin cmdutils.Client, topic string) (*SchemaInfo, error) { + if admin == nil { + return nil, fmt.Errorf("failed to get schema from topic '%s': mcp server is not initialized", topic) + } + topicName, err := cliutils.GetTopicName(topic) + if err != nil { + return nil, fmt.Errorf("failed to get topic name from topic '%s': %w", topic, err) + } + + // Get schema info from topic + si, err := admin.Schemas().GetSchemaInfo(topicName.String()) + if err != nil { + return nil, fmt.Errorf("failed to get schema for topic '%s': %w", topicName.String(), err) + } + + if si == nil { + return nil, fmt.Errorf("no schema found for topic '%s'", topic) + } + + // Parse schema definition + var definition map[string]interface{} + if si.Schema != nil { + if err := json.Unmarshal(si.Schema, &definition); err != nil { + // If it's not a valid JSON, just create a string type schema + definition = map[string]interface{}{ + "type": "string", + } + } + } else { + // Default to string type if no schema is provided + definition = map[string]interface{}{ + "type": "string", + } + } + + return &SchemaInfo{ + Type: string(si.Type), + Definition: definition, + PulsarSchemaInfo: si, + }, nil +} + +// ConvertSchemaToToolInput converts a schema to MCP tool input schema +func ConvertSchemaToToolInput(schemaInfo *SchemaInfo) (*mcp.ToolInputSchema, error) { + if schemaInfo == nil { + // Default to object with any fields if no schema is provided + return DefaultStringSchema, nil + } + + // Handle different schema types + switch schemaInfo.Type { + case "JSON": + return convertComplexSchemaToToolInput(schemaInfo) + case "AVRO", "PROTOBUF", "PROTOBUF_NATIVE": + return nil, fmt.Errorf("AVRO, PROTOBUF and PROTOBUF_NATIVE schema is not supported") + default: + return DefaultStringSchema, nil + } +} + +// convertComplexSchemaToToolInput handles conversion of complex schema types +func convertComplexSchemaToToolInput(schemaInfo *SchemaInfo) (*mcp.ToolInputSchema, error) { + if schemaInfo.Definition == nil { + return DefaultStringSchema, nil + } + + fields, hasFields := schemaInfo.Definition["fields"].([]any) + if !hasFields { + return nil, fmt.Errorf("failed to get fields from schema definition") + } + + definitionString, err := json.Marshal(fields) + if err != nil { + return nil, fmt.Errorf("failed to marshal schema definition: %w", err) + } + + // For JSON schemas, use the definition directly + return &mcp.ToolInputSchema{ + Type: "object", + Properties: map[string]interface{}{ + "payload": map[string]interface{}{ + "type": "string", + "description": "The payload of the message, in JSON String format, the schema of the payload in AVRO format is: " + string(definitionString), + }, + }, + }, nil +} + +func GetPulsarTypeSchema(schemaInfo *SchemaInfo) (pulsar.Schema, error) { + if schemaInfo == nil || schemaInfo.Definition == nil { + return pulsar.NewStringSchema(nil), nil + } + + switch schemaInfo.Type { + case "JSON": + schemaData, err := json.Marshal(schemaInfo.Definition) + if err != nil { + return nil, fmt.Errorf("failed to marshal schema definition: %w", err) + } + return pulsar.NewJSONSchema(string(schemaData), nil), nil + case "AVRO", "PROTOBUF", "PROTOBUF_NATIVE": + return nil, fmt.Errorf("AVRO, PROTOBUF and PROTOBUF_NATIVE schema is not supported") + default: + return pulsar.NewStringSchema(nil), nil + } +} diff --git a/pkg/pftools/types.go b/pkg/pftools/types.go new file mode 100644 index 0000000..d856a75 --- /dev/null +++ b/pkg/pftools/types.go @@ -0,0 +1,104 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pftools + +import ( + "context" + "sync" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" +) + +// PulsarFunctionManager manages the lifecycle of Pulsar Functions as MCP tools +type PulsarFunctionManager struct { + adminClient cmdutils.Client + v2adminClient cmdutils.Client + pulsarClient pulsar.Client + fnToToolMap map[string]*FunctionTool + mutex sync.RWMutex + producerCache map[string]pulsar.Producer + producerMutex sync.RWMutex + pollInterval time.Duration + stopCh chan struct{} + callInProgressMap map[string]context.CancelFunc + mcpServer *server.MCPServer + readOnly bool + defaultTimeout time.Duration + circuitBreakers map[string]*CircuitBreaker + tenantNamespaces []string + strictExport bool +} + +type FunctionTool struct { + Name string + Function *utils.FunctionConfig + InputSchema *SchemaInfo + OutputSchema *SchemaInfo + InputTopic string + OutputTopic string + Tool mcp.Tool + SchemaFetchSuccess bool +} + +type SchemaInfo struct { + Type string + Definition map[string]interface{} + PulsarSchemaInfo *utils.SchemaInfo +} + +type CircuitBreaker struct { + failureCount int + failureThreshold int + resetTimeout time.Duration + lastFailure time.Time + state CircuitState + mutex sync.RWMutex +} + +type CircuitState int + +const ( + StateOpen CircuitState = iota + StateHalfOpen + StateClosed +) + +type ManagerOptions struct { + PollInterval time.Duration + DefaultTimeout time.Duration + FailureThreshold int + ResetTimeout time.Duration + TenantNamespaces []string + StrictExport bool +} + +func DefaultManagerOptions() *ManagerOptions { + return &ManagerOptions{ + PollInterval: 30 * time.Second, + DefaultTimeout: 10 * time.Second, + FailureThreshold: 5, + ResetTimeout: 60 * time.Second, + TenantNamespaces: []string{}, + StrictExport: false, + } +} diff --git a/pkg/schema/avro.go b/pkg/schema/avro.go new file mode 100644 index 0000000..f407639 --- /dev/null +++ b/pkg/schema/avro.go @@ -0,0 +1,38 @@ +package schema + +import ( + "fmt" + // "reflect" // No longer needed here + + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" +) + +type AvroConverter struct { + BaseConverter +} + +func NewAvroConverter() *AvroConverter { + return &AvroConverter{} +} + +func (c *AvroConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { + if schemaInfo.Type != "AVRO" { + return nil, fmt.Errorf("expected AVRO schema, got %s", schemaInfo.Type) + } + return processAvroSchemaStringToMCPToolInput(string(schemaInfo.Schema)) +} + +func (c *AvroConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { + if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { + return nil, fmt.Errorf("arguments validation failed: %w", err) + } + return serializeArgumentsToAvroBinary(arguments, string(targetPulsarSchemaInfo.Schema)) +} + +func (c *AvroConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { + if targetPulsarSchemaInfo.Type != "AVRO" { + return fmt.Errorf("expected AVRO schema for validation, got %s", targetPulsarSchemaInfo.Type) + } + return validateArgumentsAgainstAvroSchemaString(arguments, string(targetPulsarSchemaInfo.Schema)) +} diff --git a/pkg/schema/avro_core.go b/pkg/schema/avro_core.go new file mode 100644 index 0000000..8a8dc2c --- /dev/null +++ b/pkg/schema/avro_core.go @@ -0,0 +1,731 @@ +package schema + +import ( + "encoding/base64" + "fmt" + "reflect" + "strings" + + "github.com/hamba/avro/v2" + "github.com/mark3labs/mcp-go/mcp" +) + +// processAvroSchemaStringToMCPToolInput takes an AVRO schema string, parses it, +// and converts it to MCP tool input schema properties. +func processAvroSchemaStringToMCPToolInput(avroSchemaString string) ([]mcp.ToolOption, error) { + schema, err := avro.Parse(avroSchemaString) + if err != nil { + return nil, fmt.Errorf("failed to parse AVRO schema: %w", err) + } + + recordSchema, ok := schema.(*avro.RecordSchema) + if !ok { + // If it's not a record, perhaps it's a simpler type that can't be directly mapped to tool options, + // or we need a different handling strategy. For now, strict record check. + return nil, fmt.Errorf("expected AVRO record schema at the top level, got %s", reflect.TypeOf(schema).String()) + } + + var opts []mcp.ToolOption + for _, field := range recordSchema.Fields() { + fieldOption, err := avroFieldToMcpOption(field) + if err != nil { + return nil, fmt.Errorf("failed to convert field '%s': %w", field.Name(), err) + } + opts = append(opts, fieldOption) + } + return opts, nil +} + +// avroFieldToMcpOption converts a single AVRO field to an mcp.ToolOption. +func avroFieldToMcpOption(field *avro.Field) (mcp.ToolOption, error) { + fieldType := field.Type() + fieldName := field.Name() + + var description string + if field.Doc() != "" { + description = field.Doc() + } else { + description = fmt.Sprintf("%s (type: %s)", fieldName, strings.ReplaceAll(fieldType.String(), "\"", "")) // Default description + } + + isRequired := true + var underlyingTypeForDefault avro.Schema = fieldType // Used to check default value against non-union type + + if unionSchema, ok := fieldType.(*avro.UnionSchema); ok { + isNullAble := false + var nonNullTypes []avro.Schema + for _, t := range unionSchema.Types() { + if t.Type() == avro.Null { + isNullAble = true + } else { + nonNullTypes = append(nonNullTypes, t) + } + } + isRequired = !isNullAble + + // If it's a nullable union with one other type (e.g., ["null", "string"]), + // treat it as that other type for default value and MCP type mapping. + //nolint:gocritic // This is a valid use of len(nonNullTypes) == 1 + if isNullAble && len(nonNullTypes) == 1 { + underlyingTypeForDefault = nonNullTypes[0] + } else if len(nonNullTypes) == 1 { + // Not nullable, but still a union with one type (should ideally not happen, but handle) + underlyingTypeForDefault = nonNullTypes[0] + } else if len(nonNullTypes) > 1 { + // Complex union (e.g., ["string", "int"]), for MCP, describe as string and mention union nature. + // Default values for complex unions are tricky with current MCP options. + // MCP schema might need to be a string with a description of the union. + props := []mcp.PropertyOption{mcp.Description(description + " (union type: " + strings.ReplaceAll(fieldType.String(), "\"", "") + ")")} + if isRequired { + props = append(props, mcp.Required()) + } + // Default value for complex union is not straightforward to map to a single MCP type's default. + // We will skip setting mcp.Default... for complex unions for now. + return mcp.WithString(fieldName, props...), nil + } + // If only "null" type was in union, or empty nonNullTypes (invalid schema), this will be caught by later type switch. + } + + var prop []mcp.PropertyOption + if isRequired { + prop = append(prop, mcp.Required()) + } + prop = append(prop, mcp.Description(description)) + + var opt mcp.ToolOption + + // Use underlyingTypeForDefault for determining MCP type and handling default values + // This handles cases like ["null", "string"] by treating it as "string" for MCP mapping. + effectiveType := underlyingTypeForDefault.Type() + + switch effectiveType { + case avro.String: + if field.HasDefault() { + if defaultVal, ok := field.Default().(string); ok { + prop = append(prop, mcp.DefaultString(defaultVal)) + } + } + opt = mcp.WithString(fieldName, prop...) + case avro.Int, avro.Long: // MCP 'number' can represent both + if field.HasDefault() { + // Avro library parses numeric defaults as float64 for int/long/float/double from JSON representation + if defaultVal, ok := field.Default().(float64); ok { + prop = append(prop, mcp.DefaultNumber(defaultVal)) + } else if defaultIntVal, ok := field.Default().(int); ok { // direct int + prop = append(prop, mcp.DefaultNumber(float64(defaultIntVal))) + } else if defaultInt32Val, ok := field.Default().(int32); ok { + prop = append(prop, mcp.DefaultNumber(float64(defaultInt32Val))) + } else if defaultInt64Val, ok := field.Default().(int64); ok { + prop = append(prop, mcp.DefaultNumber(float64(defaultInt64Val))) + } + } + opt = mcp.WithNumber(fieldName, prop...) + case avro.Float, avro.Double: // MCP 'number' can represent both + if field.HasDefault() { + if defaultVal, ok := field.Default().(float64); ok { + prop = append(prop, mcp.DefaultNumber(defaultVal)) + } + } + opt = mcp.WithNumber(fieldName, prop...) + case avro.Boolean: + if field.HasDefault() { + if defaultVal, ok := field.Default().(bool); ok { + prop = append(prop, mcp.DefaultBool(defaultVal)) + } + } + opt = mcp.WithBoolean(fieldName, prop...) + case avro.Bytes, avro.Fixed: + if field.HasDefault() { + if defaultVal, ok := field.Default().(string); ok { + prop = append(prop, mcp.DefaultString(defaultVal)) + } else if defaultBytes, ok := field.Default().([]byte); ok { + prop = append(prop, mcp.DefaultString(string(defaultBytes))) // Or base64 + } + } + // For Fixed type, add size information to description + if fixedSchema, ok := underlyingTypeForDefault.(*avro.FixedSchema); ok { + description += fmt.Sprintf(" (fixed size: %d bytes)", fixedSchema.Size()) + prop[0] = mcp.Description(description) // Update description in prop + } + opt = mcp.WithString(fieldName, prop...) // Always use WithString for Bytes/Fixed in MCP options + case avro.Array: + arraySchema, _ := underlyingTypeForDefault.(*avro.ArraySchema) // Safe due to switch + itemsDef, err := avroSchemaDefinitionToMcpProperties("item", arraySchema.Items(), "Array items") + if err != nil { + return nil, fmt.Errorf("failed to convert array items for field '%s': %w", fieldName, err) + } + prop = append(prop, mcp.Items(itemsDef)) + // Default for array is not directly supported by mcp.DefaultArray like mcp.DefaultString etc. + // It would require converting []any to a string representation or specific handling. + opt = mcp.WithArray(fieldName, prop...) + case avro.Map: + mapSchema, _ := underlyingTypeForDefault.(*avro.MapSchema) // Safe due to switch + // For MCP, map values are usually represented as an object where keys are arbitrary strings + // and all values conform to a single schema. + // mcp.Properties expects a map[string]any defining named properties. + // This is a slight mismatch. MCP's WithObject with mcp.Properties(map[string]any{"*": valuesDef}) + // is one way, or a more flexible mcp.WithMap that takes a value schema. + // For now, let's assume map values translate to a generic object property definition. + valuesDef, err := avroSchemaDefinitionToMcpProperties("value", mapSchema.Values(), "Map values") + if err != nil { + return nil, fmt.Errorf("failed to convert map values for field '%s': %w", fieldName, err) + } + // This isn't a perfect fit for mcp.Properties which expects fixed keys. + // A better MCP representation for a map might be WithObject where AdditionalProperties is set. + // For now, we describe it as an object and the value schema applies to all its properties. + // A more accurate MCP representation might be needed if maps are used extensively. + // Let's use a single property "*" to denote the schema for all values. + prop = append(prop, mcp.Properties(map[string]any{"*": valuesDef})) + opt = mcp.WithObject(fieldName, prop...) // Representing map as a generic object. + case avro.Record: + recordSchema, _ := underlyingTypeForDefault.(*avro.RecordSchema) // Safe due to switch + subProps := make(map[string]any) + for _, subField := range recordSchema.Fields() { + // Recursively call avroFieldToMcpOption to get the ToolOption, then extract its schema part? + // No, avroSchemaDefinitionToMcpProperties is for defining schema of items/values, not named fields. + // We need to build the properties map for mcp.WithObject. + // Each subField needs its schema definition. + var subFieldDescription string + if subField.Doc() != "" { + subFieldDescription = subField.Doc() + } else { + subFieldDescription = fmt.Sprintf("%s (type: %s)", subField.Name(), strings.ReplaceAll(subField.Type().String(), "\"", "")) // Default description + } + subFieldDef, err := avroSchemaDefinitionToMcpProperties(subField.Name(), subField.Type(), subFieldDescription) + if err != nil { + return nil, fmt.Errorf("failed to convert sub-field '%s' of record '%s': %w", subField.Name(), fieldName, err) + } + subProps[subField.Name()] = subFieldDef + } + prop = append(prop, mcp.Properties(subProps)) + opt = mcp.WithObject(fieldName, prop...) + case avro.Enum: + enumSchema, _ := underlyingTypeForDefault.(*avro.EnumSchema) // Safe due to switch + prop = append(prop, mcp.Enum(enumSchema.Symbols()...)) + if field.HasDefault() { + if defaultVal, ok := field.Default().(string); ok { // Enum default is string + prop = append(prop, mcp.DefaultString(defaultVal)) + } + } + opt = mcp.WithString(fieldName, prop...) // Enum is represented as string in MCP + case avro.Null: + // This case should ideally be handled by the union logic making the field not required. + // If a field is solely "null", it's an odd schema. For MCP, maybe a string with note. + // If isRequired is true here (meaning it wasn't a union with null), it's a non-optional null field. + // This is unusual. Let's represent as a non-required string. + if isRequired { // Should not happen if only type is null and handled by union logic + prop = []mcp.PropertyOption{mcp.Description(description + " (null type)")} // remove mcp.Required + } else { + prop = append(prop, mcp.Description(description+" (null type)")) + } + opt = mcp.WithString(fieldName, prop...) // Or handle as a special ignorable field? + default: + // For unknown or unsupported AVRO types, represent as a string in MCP with a description. + var defaultCaseProps []mcp.PropertyOption + defaultCaseProps = append(defaultCaseProps, mcp.Description(description+" (unsupported AVRO type: "+string(effectiveType)+")")) + if isRequired { + defaultCaseProps = append(defaultCaseProps, mcp.Required()) + } + opt = mcp.WithString(fieldName, defaultCaseProps...) + } + return opt, nil +} + +// avroSchemaDefinitionToMcpProperties converts an AVRO schema definition (like for array items or map values) +// into a map[string]any structure suitable for mcp.PropertyOption's Items or Properties. +func avroSchemaDefinitionToMcpProperties(name string, avroDef avro.Schema, description string) (map[string]any, error) { + props := make(map[string]any) + if description == "" { + props["description"] = fmt.Sprintf("Schema for %s", name) + } else { + props["description"] = description + } + + // Handle unions for nested types as well + var effectiveSchema = avroDef + if unionSchema, ok := avroDef.(*avro.UnionSchema); ok { + var nonNullTypes []avro.Schema + for _, t := range unionSchema.Types() { + if t.Type() != avro.Null { + nonNullTypes = append(nonNullTypes, t) + } + } + //nolint:gocritic // This is a valid use of len(nonNullTypes) == 1 + if len(nonNullTypes) == 1 { + effectiveSchema = nonNullTypes[0] + props["description"] = props["description"].(string) + " (nullable)" + } else if len(nonNullTypes) > 1 { + props["type"] = "string" // Represent complex union as string + props["description"] = props["description"].(string) + " (union type: " + strings.ReplaceAll(avroDef.String(), "\"", "") + ")" + return props, nil + } else { // Only null in union or empty union (invalid) + props["type"] = "string" // Fallback for null type + props["description"] = props["description"].(string) + " (effectively null type)" + return props, nil + } + } + + switch effectiveSchema.Type() { + case avro.String: + props["type"] = "string" + case avro.Int, avro.Long: + props["type"] = "number" + case avro.Float, avro.Double: + props["type"] = "number" + case avro.Boolean: + props["type"] = "boolean" + case avro.Bytes, avro.Fixed: // Fixed size bytes + props["type"] = "string" // Bytes/Fixed represented as string in MCP JSON schema + case avro.Array: + arraySchema, _ := effectiveSchema.(*avro.ArraySchema) + itemsProps, err := avroSchemaDefinitionToMcpProperties("item", arraySchema.Items(), "Array items") + if err != nil { + return nil, err + } + props["type"] = "array" + props["items"] = itemsProps + case avro.Map: + mapSchema, _ := effectiveSchema.(*avro.MapSchema) + // MCP object properties are named. Avro map keys are strings, values are of a single schema. + // We represent this as an object where all properties conform to the map's value schema. + // The key "*" can signify this pattern. + valuesProps, err := avroSchemaDefinitionToMcpProperties("value", mapSchema.Values(), "Map values schema") + if err != nil { + return nil, err + } + props["type"] = "object" + // To represent an Avro map (string keys, common value schema) in JSON schema properties: + // we can use "additionalProperties" with the schema of map values. + // Or, for mcp.Properties, we might define a placeholder like "*". + // For now, let's return a structure that indicates it's an object, + // and the `valuesProps` describes the schema for any property within this object. + // This is a common pattern for map-like structures in JSON Schema if not using additionalProperties. + props["properties"] = map[string]any{"*": valuesProps} // Indicating all values have this schema. + case avro.Record: + recordSchema, _ := effectiveSchema.(*avro.RecordSchema) + subProps := make(map[string]any) + for _, field := range recordSchema.Fields() { + var fieldDescription string + if field.Doc() != "" { + fieldDescription = field.Doc() + } else { + fieldDescription = fmt.Sprintf("%s (type: %s)", field.Name(), strings.ReplaceAll(field.Type().String(), "\"", "")) // Default description + } + fieldProp, err := avroSchemaDefinitionToMcpProperties(field.Name(), field.Type(), fieldDescription) + if err != nil { + return nil, err + } + subProps[field.Name()] = fieldProp + } + props["type"] = "object" + props["properties"] = subProps + case avro.Enum: + enumSchema, _ := effectiveSchema.(*avro.EnumSchema) + props["type"] = "string" + props["enum"] = enumSchema.Symbols() + case avro.Null: // Should be handled by union logic primarily + props["type"] = "string" // Fallback for a standalone null type. + props["description"] = props["description"].(string) + " (null type)" + default: + props["type"] = "string" // Fallback for unknown types + props["description"] = props["description"].(string) + " (unknown AVRO type: " + string(effectiveSchema.Type()) + ")" + } + return props, nil +} + +// validateArgumentsAgainstAvroSchemaString validates arguments against an AVRO schema string. +func validateArgumentsAgainstAvroSchemaString(arguments map[string]any, avroSchemaString string) error { + schema, err := avro.Parse(avroSchemaString) + if err != nil { + return fmt.Errorf("failed to parse AVRO schema for validation: %w", err) + } + + // Expecting a record schema at the top level for arguments map + recordSchema, ok := schema.(*avro.RecordSchema) + if !ok { + // If the schema is not a record, but arguments are a map, it's a mismatch unless the schema is a map itself. + // However, tool inputs are typically records/objects. + // If schema is a single type (e.g. string), arguments shouldn't be a map. This needs clarification on Pulsar schema use. + // For now, assume top-level schema for arguments is a record. + return fmt.Errorf("expected AVRO record schema for validating arguments map, got %s", reflect.TypeOf(schema).String()) + } + + // Check for missing required fields + for _, field := range recordSchema.Fields() { + fieldName := field.Name() + // Determine if the field is effectively required for validation purposes + // (not nullable in a union, or a non-union type without a default that makes it implicitly optional) + // This `isReq` is used to check if a field *must* be present in the arguments map if it *doesn't* have a default. + isReq := true // Assume required unless part of a nullable union + if unionSchemaVal, ok := field.Type().(*avro.UnionSchema); ok { + isNullableInUnion := false + for _, t := range unionSchemaVal.Types() { + if t.Type() == avro.Null { + isNullableInUnion = true + break + } + } + isReq = !isNullableInUnion + } + + // Check if the field is present in the arguments map + value, valueOk := arguments[fieldName] + + // If field is not in arguments map + if !valueOk { + // If it's considered required (isReq is true) AND it does not have a default value, + // then it's an error for it to be missing from arguments. + if isReq && !field.HasDefault() { + return fmt.Errorf("required field '%s' is missing and has no default value", fieldName) + } + // If not required (isReq is false), or if it has a default value, it's okay for it to be missing. + // The Avro library itself will handle applying the default during actual serialization/deserialization. + // Our validator's job here is primarily to ensure that if values ARE provided, they are correct, + // and that truly mandatory fields (required and no default) are present. + continue // Move to the next field in the schema + } + + // If field is present in arguments, validate its value against its schema type + if err := validateValueAgainstAvroType(value, field.Type(), fieldName); err != nil { + return err + } + } + + // After validating all fields defined in the schema, check for any extra fields in the arguments. + for argName := range arguments { + foundInSchema := false + for _, field := range recordSchema.Fields() { + if field.Name() == argName { + foundInSchema = true + break + } + } + if !foundInSchema { + return fmt.Errorf("unknown field '%s' provided in arguments", argName) + } + } + + return nil +} + +// validateValueAgainstAvroType validates a single value against a given AVRO schema type. +// path is for constructing helpful error messages. +func validateValueAgainstAvroType(value any, avroDef avro.Schema, path string) error { + if value == nil { + // If value is nil, check if avroDef allows null + if avroDef.Type() == avro.Null { + return nil // Explicitly null type allows nil + } + if unionSchema, ok := avroDef.(*avro.UnionSchema); ok { + for _, t := range unionSchema.Types() { + if t.Type() == avro.Null { + return nil // Union includes null type + } + } + } + return fmt.Errorf("field '%s' is null, but schema type '%s' does not permit null", path, avroDef.Type()) + } + + // If avroDef is a union, try to validate against each type in the union. + if unionSchema, ok := avroDef.(*avro.UnionSchema); ok { + var lastErr error + for _, schemaTypeInUnion := range unionSchema.Types() { + // Skip null type here as we've handled nil value above. If value is not nil, null type won't match. + if schemaTypeInUnion.Type() == avro.Null { + continue + } + err := validateValueAgainstAvroType(value, schemaTypeInUnion, path) + if err == nil { + return nil // Valid against one of the types in the union + } + lastErr = err // Keep the last error for context if none match + } + if lastErr != nil { + return fmt.Errorf("field '%s' (value: %v, type: %T) does not match any type in union schema '%s': last error: %w", path, value, value, unionSchema.String(), lastErr) + } + // If union was only ["null"] and value is not nil, this will be an error. + return fmt.Errorf("field '%s' (value: %v) of type %T does not match union schema '%s' (no non-null types matched or union is only null)", path, value, value, unionSchema.String()) + } + + // Non-union type validation + switch avroDef.Type() { + case avro.String: + if _, ok := value.(string); !ok { + return fmt.Errorf("field '%s': expected string, got %T (value: %v)", path, value, value) + } + case avro.Int: + switch value.(type) { + case int, int8, int16, int32, int64, float32, float64: + if fVal, ok := value.(float64); ok && fVal != float64(int64(fVal)) { + return fmt.Errorf("field '%s': expected int, got float64 with fractional part (value: %v)", path, value) + } + if fVal, ok := value.(float32); ok && fVal != float32(int32(fVal)) { + return fmt.Errorf("field '%s': expected int, got float32 with fractional part (value: %v)", path, value) + } + return nil + default: + return fmt.Errorf("field '%s': expected int, got %T (value: %v)", path, value, value) + } + case avro.Long: + switch value.(type) { + case int, int8, int16, int32, int64, float32, float64: + if fVal, ok := value.(float64); ok && fVal != float64(int64(fVal)) { + return fmt.Errorf("field '%s': expected long, got float64 with fractional part (value: %v)", path, value) + } + if fVal, ok := value.(float32); ok && fVal != float32(int64(fVal)) { // float32 to int64 comparison can be tricky with precision + return fmt.Errorf("field '%s': expected long, got float32 with fractional part (value: %v)", path, value) + } + return nil + default: + return fmt.Errorf("field '%s': expected long, got %T (value: %v)", path, value, value) + } + case avro.Float: + switch value.(type) { + case float32, float64, int, int8, int16, int32, int64: + return nil + default: + return fmt.Errorf("field '%s': expected float, got %T (value: %v)", path, value, value) + } + case avro.Double: + switch value.(type) { + case float32, float64, int, int8, int16, int32, int64: + return nil + default: + return fmt.Errorf("field '%s': expected double, got %T (value: %v)", path, value, value) + } + case avro.Boolean: + if _, ok := value.(bool); !ok { + return fmt.Errorf("field '%s': expected boolean, got %T (value: %v)", path, value, value) + } + + case avro.Bytes: + if _, okStr := value.(string); okStr { + return nil // Allow string for bytes/fixed as per previous logic + } + if _, okBytes := value.([]byte); okBytes { + return nil // Also allow []byte directly + } + return fmt.Errorf("field '%s': expected string or []byte for bytes, got %T (value: %v)", path, value, value) + case avro.Fixed: + if _, ok := value.(uint64); ok { + return nil // Allow uint64 for fixed as per previous logic + } + return fmt.Errorf("field '%s': expected uint64 for fixed, got %T (value: %v)", path, value, value) + case avro.Array: + arrSchema, _ := avroDef.(*avro.ArraySchema) + sliceVal, ok := value.([]any) // JSON unmarshals to []any + if !ok { + // Check if it's a typed slice, e.g. []string, []map[string]any, etc. + // This requires more reflection if we want to support e.g. []string directly. + // For map[string]any from JSON, []any is standard. + return fmt.Errorf("field '%s': expected array (slice of any), got %T (value: %v)", path, value, value) + } + for i, item := range sliceVal { + if err := validateValueAgainstAvroType(item, arrSchema.Items(), fmt.Sprintf("%s[%d]", path, i)); err != nil { + return err + } + } + case avro.Map: + mapSchema, _ := avroDef.(*avro.MapSchema) + mapVal, ok := value.(map[string]any) // JSON unmarshals to map[string]any + if !ok { + return fmt.Errorf("field '%s': expected map (map[string]any), got %T (value: %v)", path, value, value) + } + for k, v := range mapVal { + if err := validateValueAgainstAvroType(v, mapSchema.Values(), fmt.Sprintf("%s.%s", path, k)); err != nil { + return err + } + } + case avro.Record: + recSchema, _ := avroDef.(*avro.RecordSchema) + mapVal, ok := value.(map[string]any) // JSON unmarshals to map[string]any + if !ok { + return fmt.Errorf("field '%s': expected object (map[string]any) for record, got %T (value: %v)", path, value, value) + } + // Check required fields within the record + for _, f := range recSchema.Fields() { + isFieldRequired := true + if unionF, okF := f.Type().(*avro.UnionSchema); okF { + isNullableF := false + for _, t := range unionF.Types() { + if t.Type() == avro.Null { + isNullableF = true + break + } + } + if isNullableF { + isFieldRequired = false + } + } + if _, exists := mapVal[f.Name()]; !exists && isFieldRequired { + return fmt.Errorf("field '%s.%s' is required but missing", path, f.Name()) + } + } + // Validate present fields + for k, v := range mapVal { + var recField *avro.Field + for _, f := range recSchema.Fields() { + if f.Name() == k { + recField = f + break + } + } + if recField == nil { + return fmt.Errorf("field '%s.%s' is not defined in record schema", path, k) + } + if err := validateValueAgainstAvroType(v, recField.Type(), fmt.Sprintf("%s.%s", path, k)); err != nil { + return err + } + } + case avro.Enum: + enumSchema, _ := avroDef.(*avro.EnumSchema) + strVal, ok := value.(string) + if !ok { + return fmt.Errorf("field '%s': expected string for enum, got %T (value: %v)", path, value, value) + } + isValidSymbol := false + for _, s := range enumSchema.Symbols() { + if s == strVal { + isValidSymbol = true + break + } + } + if !isValidSymbol { + return fmt.Errorf("field '%s': value '%s' is not a valid symbol for enum %s. Valid symbols: %v", path, strVal, enumSchema.FullName(), enumSchema.Symbols()) + } + case avro.Null: + if value == nil { + // If value is nil, check if avroDef allows null + if avroDef.Type() == avro.Null { + return nil // Explicitly null type allows nil + } + if unionSchema, ok := avroDef.(*avro.UnionSchema); ok { + for _, t := range unionSchema.Types() { + if t.Type() == avro.Null { + return nil // Union includes null type + } + } + } + return fmt.Errorf("field '%s' is null, but schema type '%s' does not permit null", path, avroDef.Type()) + } + // If value is not nil, it's an error. Nil value handled at the start of the function. + // This means value is non-nil here. + return fmt.Errorf("field '%s': schema type is explicitly 'null' but received non-nil value %T (value: %v)", path, value, value) + + default: + return fmt.Errorf("field '%s': unsupported AVRO type '%s' for validation", path, avroDef.Type()) + } + return nil // Should be unreachable if all cases are handled or return, but as a fallback +} + +// serializeArgumentsToAvroBinary validates arguments against an AVRO schema string +// and then serializes them to AVRO binary format. +func serializeArgumentsToAvroBinary(arguments map[string]any, avroSchemaString string) ([]byte, error) { + // First, validate arguments. + // The validation logic already parses the schema string. + if err := validateArgumentsAgainstAvroSchemaString(arguments, avroSchemaString); err != nil { + return nil, fmt.Errorf("arguments validation failed before AVRO serialization: %w", err) + } + + // Parse schema again for marshaling (or pass parsed schema from validation if we refactor to return it) + schema, err := avro.Parse(avroSchemaString) + if err != nil { + // This error should ideally not happen if validation passed, as it also parses. + return nil, fmt.Errorf("failed to parse AVRO schema for serialization (should have been caught by validation): %w", err) + } + + // Before marshalling, we might need to coerce some types, e.g., string to []byte for "bytes" type if convention is base64 string. + coercedArgs := make(map[string]any, len(arguments)) + for k, v := range arguments { + coercedArgs[k] = v // Copy existing + } + + recordSchema, ok := schema.(*avro.RecordSchema) + if !ok { + // This should ideally not happen if validation passed, but as a safeguard: + return nil, fmt.Errorf("parsed schema is not a record schema, cannot prepare arguments for serialization") + } + + for _, field := range recordSchema.Fields() { + fieldName := field.Name() + val, argExists := arguments[fieldName] + if !argExists { + continue // If arg doesn't exist, skip (defaults or optional handled by avro lib or previous validation) + } + + fieldType := field.Type().Type() // Get the base type, handles unions by checking underlying + if unionSchema, isUnion := field.Type().(*avro.UnionSchema); isUnion { + // If it's a union, we need to find the actual non-null type for coercion logic + // This part can be complex if multiple non-null types are in union with bytes/fixed. + // For simplicity, assuming if 'bytes' or 'fixed' is a possibility, we check for string coercion. + // A more robust solution would inspect the actual type of 'val' against union possibilities. + for _, unionMemberType := range unionSchema.Types() { + if unionMemberType.Type() == avro.Bytes || unionMemberType.Type() == avro.Fixed { + fieldType = unionMemberType.Type() + break + } + } + } + + if fieldType == avro.Bytes { + if strVal, isStr := val.(string); isStr { + // Attempt to decode if it's a string, assuming base64 for bytes encoded as string + decodedBytes, err := base64.StdEncoding.DecodeString(strVal) + if err == nil { + coercedArgs[fieldName] = decodedBytes + } else { + coercedArgs[fieldName] = []byte(strVal) + } + } + } else if fieldType == avro.Fixed { + if strVal, isStr := val.(string); isStr { + // For fixed, if it's a string, it must be base64 decodable to the correct length array + fixedSchema, _ := field.Type().(*avro.FixedSchema) // Or resolve from union if necessary + if actualUnionFieldSchema, okUnion := field.Type().(*avro.UnionSchema); okUnion { + for _, ut := range actualUnionFieldSchema.Types() { + if fs, okUFS := ut.(*avro.FixedSchema); okUFS { + fixedSchema = fs + break + } + } + } + if fixedSchema != nil { + decodedBytes, err := base64.StdEncoding.DecodeString(strVal) + if err == nil { + if len(decodedBytes) == fixedSchema.Size() { + // Convert []byte to [N]byte array for fixed type + fixedArray := reflect.New(reflect.ArrayOf(fixedSchema.Size(), reflect.TypeOf(byte(0)))).Elem() + reflect.Copy(fixedArray, reflect.ValueOf(decodedBytes)) + coercedArgs[fieldName] = fixedArray.Interface() + } else { + // Length mismatch after decoding + return nil, fmt.Errorf("field '%s' (fixed[%d]): base64 decoded string has length %d, expected %d", fieldName, fixedSchema.Size(), len(decodedBytes), fixedSchema.Size()) + } + } // else: base64 decoding error, let avro.Marshal handle or error out + } + } else if byteSlice, isSlice := val.([]byte); isSlice { + // If it's already a []byte, check if it's for a Fixed type and needs conversion to [N]byte + fixedSchema, _ := field.Type().(*avro.FixedSchema) + if actualUnionFieldSchema, okUnion := field.Type().(*avro.UnionSchema); okUnion { + for _, ut := range actualUnionFieldSchema.Types() { + if fs, okUFS := ut.(*avro.FixedSchema); okUFS { + fixedSchema = fs + break + } + } + } + if fixedSchema != nil && len(byteSlice) == fixedSchema.Size() { + fixedArray := reflect.New(reflect.ArrayOf(fixedSchema.Size(), reflect.TypeOf(byte(0)))).Elem() + reflect.Copy(fixedArray, reflect.ValueOf(byteSlice)) + coercedArgs[fieldName] = fixedArray.Interface() + } else if fixedSchema != nil && len(byteSlice) != fixedSchema.Size() { + return nil, fmt.Errorf("field '%s' (fixed[%d]): provided []byte has length %d, expected %d", fieldName, fixedSchema.Size(), len(byteSlice), fixedSchema.Size()) + } // else it's not for a fixed schema or length mismatch, or it's for 'bytes' type, keep as []byte + + } + } + } + + // Marshal the potentially coerced arguments + return avro.Marshal(schema, coercedArgs) +} diff --git a/pkg/schema/avro_core_test.go b/pkg/schema/avro_core_test.go new file mode 100644 index 0000000..58362a4 --- /dev/null +++ b/pkg/schema/avro_core_test.go @@ -0,0 +1,833 @@ +package schema + +import ( + "testing" + + "github.com/hamba/avro/v2" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/mark3labs/mcp-go/mcp" +) + +// AVRO Schema Definitions for Testing + +const simpleRecordSchema = `{ + "type": "record", + "name": "SimpleRecord", + "fields": [ + {"name": "id", "type": "long"}, + {"name": "name", "type": "string"} + ] +}` + +const schemaWithAllPrimitives = `{ + "type": "record", + "name": "AllPrimitives", + "fields": [ + {"name": "boolField", "type": "boolean"}, + {"name": "intField", "type": "int"}, + {"name": "longField", "type": "long"}, + {"name": "floatField", "type": "float"}, + {"name": "doubleField", "type": "double"}, + {"name": "bytesField", "type": "bytes"}, + {"name": "stringField", "type": "string"} + ] +}` + +const schemaWithOptionalField = `{ + "type": "record", + "name": "OptionalFieldRecord", + "fields": [ + {"name": "requiredField", "type": "string"}, + {"name": "optionalField", "type": ["null", "string"], "default": null} + ] +}` + +const schemaWithDefaultValue = `{ + "type": "record", + "name": "DefaultValueRecord", + "fields": [ + {"name": "name", "type": "string", "default": "DefaultName"}, + {"name": "age", "type": "int", "default": 30} + ] +}` + +const nestedRecordSchema = `{ + "type": "record", + "name": "OuterRecord", + "fields": [ + {"name": "id", "type": "string"}, + { + "name": "inner", + "type": { + "type": "record", + "name": "InnerRecord", + "fields": [ + {"name": "value", "type": "int"}, + {"name": "description", "type": ["null", "string"], "default": null} + ] + } + } + ] +}` + +const arraySchemaPrimitive = `{ + "type": "record", + "name": "ArrayPrimitiveRecord", + "fields": [ + {"name": "stringArray", "type": {"type": "array", "items": "string"}}, + {"name": "optionalIntArray", "type": ["null", {"type": "array", "items": "int"}], "default": null} + ] +}` + +const arraySchemaRecord = `{ + "type": "record", + "name": "ArrayRecordContainer", + "fields": [ + { + "name": "records", + "type": {"type": "array", "items": { + "type": "record", + "name": "ContainedRecord", + "fields": [ + {"name": "key", "type": "string"}, + {"name": "val", "type": "long"} + ] + }} + } + ] +}` + +const mapSchemaPrimitive = `{ + "type": "record", + "name": "MapPrimitiveRecord", + "fields": [ + {"name": "stringMap", "type": {"type": "map", "values": "string"}}, + {"name": "optionalIntMap", "type": ["null", {"type": "map", "values": "int"}], "default": null} + ] +}` + +const mapSchemaRecord = `{ + "type": "record", + "name": "MapRecordContainer", + "fields": [ + { + "name": "recordsMap", + "type": {"type": "map", "values": { + "type": "record", + "name": "MappedRecord", + "fields": [ + {"name": "id", "type": "int"}, + {"name": "status", "type": "string"} + ] + }} + } + ] +}` + +const enumSchema = `{ + "type": "record", + "name": "EnumRecord", + "fields": [ + { + "name": "suit", + "type": { "type": "enum", "name": "Suit", "symbols" : ["SPADES", "HEARTS", "DIAMONDS", "CLUBS"] } + } + ] +}` + +const unionSchemaSimple = `{ + "type": "record", + "name": "UnionRecord", + "fields": [ + {"name": "stringOrInt", "type": ["string", "int"]}, + {"name": "nullableStringOrInt", "type": ["null", "string", "int"], "default": null} + ] +}` + +// Helper function to get expected AVRO binary for test comparisons +func getExpectedAvroBinary(t *testing.T, schemaStr string, data map[string]any) []byte { + avroSchema, err := avro.Parse(schemaStr) + require.NoError(t, err, "Failed to parse AVRO schema in helper") + + // The hamba/avro/v2 Marshal function can take a map[string]any directly + // if its structure is compatible with the schema. + bin, err := avro.Marshal(avroSchema, data) + require.NoError(t, err, "Failed to marshal to AVRO binary in helper") + return bin +} + +func TestProcessAvroSchemaStringToMCPToolInput(t *testing.T) { + tests := []struct { + name string + schemaStr string + expectedOptions []mcp.ToolOption + expectError bool + expectedErrorMsg string + }{ + { + name: "Simple Record", + schemaStr: simpleRecordSchema, + expectedOptions: []mcp.ToolOption{ + mcp.WithNumber("id", mcp.Description("id (type: long)"), mcp.Required()), + mcp.WithString("name", mcp.Description("name (type: string)"), mcp.Required()), + }, + expectError: false, + }, + { + name: "Schema With All Primitives", + schemaStr: schemaWithAllPrimitives, + expectedOptions: []mcp.ToolOption{ + mcp.WithBoolean("boolField", mcp.Description("boolField (type: boolean)"), mcp.Required()), + mcp.WithNumber("intField", mcp.Description("intField (type: int)"), mcp.Required()), + mcp.WithNumber("longField", mcp.Description("longField (type: long)"), mcp.Required()), + mcp.WithNumber("floatField", mcp.Description("floatField (type: float)"), mcp.Required()), + mcp.WithNumber("doubleField", mcp.Description("doubleField (type: double)"), mcp.Required()), + mcp.WithString("bytesField", mcp.Description("bytesField (type: bytes)"), mcp.Required()), + mcp.WithString("stringField", mcp.Description("stringField (type: string)"), mcp.Required()), + }, + expectError: false, + }, + { + name: "Invalid AVRO schema string", + schemaStr: `{"type": "invalid"`, + expectedOptions: nil, + expectError: true, + expectedErrorMsg: "failed to parse AVRO schema", + }, + { + name: "Top-level non-record (string)", + schemaStr: `"string"`, + expectedOptions: nil, + expectError: true, + expectedErrorMsg: "expected AVRO record schema at the top level, got *avro.PrimitiveSchema", + }, + { + name: "Schema With Optional Field (string)", + schemaStr: schemaWithOptionalField, + expectedOptions: []mcp.ToolOption{ + mcp.WithString("requiredField", mcp.Description("requiredField (type: string)"), mcp.Required()), + mcp.WithString("optionalField", mcp.Description("optionalField (type: [null,string])")), + }, + expectError: false, + }, + { + name: "Schema With Default Value (string and int)", + schemaStr: schemaWithDefaultValue, + expectedOptions: []mcp.ToolOption{ + mcp.WithString("name", mcp.Description("name (type: string)"), mcp.Required(), mcp.DefaultString("DefaultName")), + mcp.WithNumber("age", mcp.Description("age (type: int)"), mcp.Required(), mcp.DefaultNumber(30)), + }, + expectError: false, + }, + { + name: "Nested Record", + schemaStr: nestedRecordSchema, + expectedOptions: []mcp.ToolOption{ + mcp.WithString("id", mcp.Description("id (type: string)"), mcp.Required()), + mcp.WithObject("inner", + mcp.Description("inner (type: {name:InnerRecord,type:record,fields:[{name:value,type:int},{name:description,type:[null,string]}]})"), + mcp.Required(), + mcp.Properties(map[string]any{ + "value": map[string]any{ + "type": "number", + "description": "value (type: int)", + }, + "description": map[string]any{ + "type": "string", + "description": "description (type: [null,string]) (nullable)", + }, + }), + ), + }, + expectError: false, + }, + { + name: "Array of Primitives (stringArray, optionalIntArray)", + schemaStr: arraySchemaPrimitive, + expectedOptions: []mcp.ToolOption{ + mcp.WithArray("stringArray", + mcp.Description("stringArray (type: {type:array,items:string})"), + mcp.Required(), + mcp.Items(map[string]any{ + "type": "string", + "description": "Array items", + }), + ), + mcp.WithArray("optionalIntArray", + mcp.Description("optionalIntArray (type: [null,{type:array,items:int}])"), + mcp.Items(map[string]any{ + "type": "number", + "description": "Array items", + }), + ), + }, + expectError: false, + }, + { + name: "Array of Records", + schemaStr: arraySchemaRecord, + expectedOptions: []mcp.ToolOption{ + mcp.WithArray("records", + mcp.Description("records (type: {type:array,items:{name:ContainedRecord,type:record,fields:[{name:key,type:string},{name:val,type:long}]}})"), + mcp.Required(), + mcp.Items(map[string]any{ + "type": "object", + "description": "Array items", + "properties": map[string]any{ + "key": map[string]any{ + "type": "string", + "description": "key (type: string)", + }, + "val": map[string]any{ + "type": "number", + "description": "val (type: long)", + }, + }, + }), + ), + }, + expectError: false, + }, + { + name: "Map of Primitives (stringMap, optionalIntMap)", + schemaStr: mapSchemaPrimitive, + expectedOptions: []mcp.ToolOption{ + mcp.WithObject("stringMap", // Avro map becomes MCP object + mcp.Description("stringMap (type: {type:map,values:string})"), + mcp.Required(), + mcp.Properties(map[string]any{ // Based on avroFieldToMcpOption logic for map + "*": map[string]any{ + "type": "string", + "description": "Map values", + }, + }), + ), + mcp.WithObject("optionalIntMap", + mcp.Description("optionalIntMap (type: [null,{type:map,values:int}])"), + // Not required due to ["null", map] union + mcp.Properties(map[string]any{ + "*": map[string]any{ + "type": "number", + "description": "Map values", + }, + }), + // Avro default: null for the union handled by not being required. + ), + }, + expectError: false, + }, + { + name: "Map of Records", + schemaStr: mapSchemaRecord, + expectedOptions: []mcp.ToolOption{ + mcp.WithObject("recordsMap", + mcp.Description("recordsMap (type: {type:map,values:{name:MappedRecord,type:record,fields:[{name:id,type:int},{name:status,type:string}]}})"), + mcp.Required(), + mcp.Properties(map[string]any{ + "*": map[string]any{ + "type": "object", + "description": "Map values", + "properties": map[string]any{ + "id": map[string]any{ + "type": "number", + "description": "id (type: int)", + }, + "status": map[string]any{ + "type": "string", + "description": "status (type: string)", + }, + }, + }, + }), + ), + }, + expectError: false, + }, + { + name: "Enum Field", + schemaStr: enumSchema, + expectedOptions: []mcp.ToolOption{ + mcp.WithString("suit", + mcp.Description("suit (type: {name:Suit,type:enum,symbols:[SPADES,HEARTS,DIAMONDS,CLUBS]})"), + mcp.Required(), + mcp.Enum("SPADES", "HEARTS", "DIAMONDS", "CLUBS"), + ), + }, + expectError: false, + }, + { + name: "Simple Union Field (stringOrInt)", + schemaStr: unionSchemaSimple, + expectedOptions: []mcp.ToolOption{ + // Based on avroFieldToMcpOption, a complex union ["string", "int"] becomes mcp.WithString + // with a description indicating it's a union. It's marked as required by default. + mcp.WithString("stringOrInt", + mcp.Description("stringOrInt (type: [string,int]) (union type: [string,int])"), + mcp.Required(), + ), + // For ["null", "string", "int"], it's also a complex union but not required. + mcp.WithString("nullableStringOrInt", + mcp.Description("nullableStringOrInt (type: [null,string,int]) (union type: [null,string,int])"), + // Not mcp.Required() due to presence of "null" in union. + // Default is Avro null, so no mcp.DefaultString is added. + ), + }, + expectError: false, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + opts, err := processAvroSchemaStringToMCPToolInput(tt.schemaStr) + + if tt.expectError { + assert.Error(t, err) + if tt.expectedErrorMsg != "" { + assert.Contains(t, err.Error(), tt.expectedErrorMsg) + } + assert.Nil(t, opts) + } else { + assert.NoError(t, err) + require.Equal(t, len(tt.expectedOptions), len(opts), "Number of options should match") + var actualTool, expectedTool mcp.Tool + actualTool = mcp.NewTool("test", opts...) + expectedTool = mcp.NewTool("test", tt.expectedOptions...) + actualToolInputSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() + expectedToolInputSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() + assert.Equal(t, string(expectedToolInputSchemaJSON), string(actualToolInputSchemaJSON), "ToolOption did not produce the same property configuration. Expected: %+v, Got: %+v", expectedTool, actualTool) + } + }) + } +} + +// TestValidateArgumentsAgainstAvroSchemaString tests the validateArgumentsAgainstAvroSchemaString function. +func TestValidateArgumentsAgainstAvroSchemaString(t *testing.T) { + tests := []struct { + name string + schemaStr string + args map[string]any + wantErr bool + errText string // Optional: specific error text to check for + }{ + { + name: "Valid: Simple Record - all fields present", + schemaStr: simpleRecordSchema, + args: map[string]any{ + "id": int64(123), + "name": "test name", + }, + wantErr: false, + }, + { + name: "Valid: Schema With All Primitives - all fields present", + schemaStr: schemaWithAllPrimitives, + args: map[string]any{ + "boolField": true, + "intField": int32(100), + "longField": int64(2000), + "floatField": float32(3.14), + "doubleField": float64(6.28), + "bytesField": []byte("bytesdata"), + "stringField": "stringdata", + }, + wantErr: false, + }, + { + name: "Invalid: Simple Record - missing required field 'name'", + schemaStr: simpleRecordSchema, + args: map[string]any{ + "id": int64(123), + }, + wantErr: true, + errText: "required field 'name' is missing and has no default value", + }, + { + name: "Invalid: Simple Record - wrong type for 'id' (string instead of long)", + schemaStr: simpleRecordSchema, + args: map[string]any{ + "id": "not-a-long", + "name": "A Name", + }, + wantErr: true, + errText: "field 'id': expected long, got string", + }, + { + name: "Invalid: Simple Record - extra field 'extra'", + schemaStr: simpleRecordSchema, + args: map[string]any{ + "id": int64(123), + "name": "A Name", + "extra": "value", + }, + wantErr: true, + errText: "unknown field 'extra' provided in arguments", + }, + { + name: "Valid: Optional Field - present", + schemaStr: schemaWithOptionalField, + args: map[string]any{ + "requiredField": "req", + "optionalField": "opt", + }, + wantErr: false, + }, + { + name: "Valid: Optional Field - absent (should use default null)", + schemaStr: schemaWithOptionalField, + args: map[string]any{ + "requiredField": "req", + }, + wantErr: false, // AVRO validation itself passes if default is null and field is omitted + }, + { + name: "Valid: Default Value - fields omitted", + schemaStr: schemaWithDefaultValue, + args: map[string]any{}, + wantErr: false, // Default values are used + }, + { + name: "Valid: Default Value - fields provided", + schemaStr: schemaWithDefaultValue, + args: map[string]any{ + "name": "ProvidedName", + "age": int32(40), + }, + wantErr: false, + }, + { + name: "Valid: Nested Record", + schemaStr: nestedRecordSchema, + args: map[string]any{ + "id": "outerID", + "inner": map[string]any{ + "value": int32(101), + "description": "inner desc", + }, + }, + wantErr: false, + }, + { + name: "Invalid: Nested Record - missing field in inner record", + schemaStr: nestedRecordSchema, + args: map[string]any{ + "id": "outerID", + "inner": map[string]any{"name": "Inner Name"}, // Missing inner.value + }, + wantErr: true, + errText: "field 'inner.value' is required but missing", + }, + { + name: "Valid: Array of Primitives", + schemaStr: arraySchemaPrimitive, + args: map[string]any{ + "stringArray": []any{"a", "b", "c"}, + "optionalIntArray": []any{int32(1), int32(2)}, + }, + wantErr: false, + }, + { + name: "Invalid: Array of Primitives - wrong item type", + schemaStr: arraySchemaPrimitive, + args: map[string]any{ + "stringArray": []any{"hello", 1, "world"}, // int is not string + }, + wantErr: true, + errText: "field 'stringArray[1]': expected string, got int", + }, + { + name: "Valid: Array of Records", + schemaStr: arraySchemaRecord, + args: map[string]any{ + "records": []any{ + map[string]any{"key": "k1", "val": int64(1)}, + map[string]any{"key": "k2", "val": int64(2)}, + }, + }, + wantErr: false, + }, + { + name: "Valid: Map of Primitives", + schemaStr: mapSchemaPrimitive, + args: map[string]any{ + "stringMap": map[string]any{"key1": "val1", "key2": "val2"}, + "optionalIntMap": map[string]any{"opt1": int32(10)}, + }, + wantErr: false, + }, + { + name: "Invalid: Map of Primitives - wrong value type", + schemaStr: mapSchemaPrimitive, + args: map[string]any{ + "stringMap": map[string]any{"key1": 123, "key2": "val2"}, // 123 is not string + }, + wantErr: true, + errText: "field 'stringMap.key1': expected string, got int", + }, + { + name: "Valid: Map of Records", + schemaStr: mapSchemaRecord, + args: map[string]any{ + "recordsMap": map[string]any{ + "recA": map[string]any{"id": int32(1), "status": "active"}, + "recB": map[string]any{"id": int32(2), "status": "inactive"}, + }, + }, + wantErr: false, + }, + { + name: "Valid: Enum", + schemaStr: enumSchema, + args: map[string]any{ + "suit": "SPADES", + }, + wantErr: false, + }, + { + name: "Invalid: Enum - invalid symbol", + schemaStr: enumSchema, + args: map[string]any{ + "suit": "INVALID_SUIT", + }, + wantErr: true, + errText: "value 'INVALID_SUIT' is not a valid symbol for enum Suit", + }, + { + name: "Valid: Union (stringOrInt) - string", + schemaStr: unionSchemaSimple, + args: map[string]any{ + "stringOrInt": "hello", + "nullableStringOrInt": "world", + }, + wantErr: false, + }, + { + name: "Valid: Union (stringOrInt) - int", + schemaStr: unionSchemaSimple, + args: map[string]any{ + "stringOrInt": int32(123), + "nullableStringOrInt": int32(456), + }, + wantErr: false, + }, + { + name: "Invalid: Union (stringOrInt) - boolean (not in union)", + schemaStr: unionSchemaSimple, + args: map[string]any{ + "stringOrInt": true, + }, + wantErr: true, + errText: "does not match any type in union schema", + }, + { + name: "Invalid: Schema string is empty", + schemaStr: "", + args: map[string]any{"foo": "bar"}, + wantErr: true, + errText: "failed to parse AVRO schema for validation: avro: unknown type: ", + }, + { + name: "Invalid: Schema string is not valid AVRO json", + schemaStr: "{invalid json", + args: map[string]any{"foo": "bar"}, + wantErr: true, + errText: "failed to parse AVRO schema", + }, + { + name: "Valid: schemaWithAllPrimitives - bytes field with string input (should be accepted as per current code)", + schemaStr: schemaWithAllPrimitives, + args: map[string]any{ + "boolField": true, + "intField": int32(100), + "longField": int64(2000), + "floatField": float32(3.14), + "doubleField": float64(6.28), + "bytesField": "stringtobytes", // This is the key part for this test + "stringField": "stringdata", + }, + wantErr: false, // Current validateValueAgainstAvroType for bytes accepts string + }, + { + name: "Invalid: schemaWithAllPrimitives - bytes field with int input", + schemaStr: schemaWithAllPrimitives, + args: map[string]any{ + "boolField": true, + "intField": int32(100), + "longField": int64(2000), + "floatField": float32(3.14), + "doubleField": float64(6.28), + "bytesField": 123, // int is not convertible to bytes in this path + "stringField": "stringdata", + }, + wantErr: true, + errText: "field 'bytesField': expected string or []byte for bytes, got int", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := validateArgumentsAgainstAvroSchemaString(tt.args, tt.schemaStr) + if tt.wantErr { + assert.Error(t, err) + if tt.errText != "" { + assert.Contains(t, err.Error(), tt.errText) + } + } else { + assert.NoError(t, err) + } + }) + } +} + +// TestSerializeArgumentsToAvroBinary tests the serializeArgumentsToAvroBinary function. +func TestSerializeArgumentsToAvroBinary(t *testing.T) { + tests := []struct { + name string + schemaStr string + args map[string]any + expectError bool + errorContains string + expectedBinary []byte // Optional: if nil, don't check binary equality, just no error + }{ + { + name: "Valid: Simple Record", + schemaStr: simpleRecordSchema, + args: map[string]any{ + "id": int64(123), + "name": "test name", + }, + expectError: false, + }, + { + name: "Valid: Schema With All Primitives (matching getExpectedAvroBinary)", + schemaStr: schemaWithAllPrimitives, + args: map[string]any{ + "boolField": true, + "intField": int32(100), + "longField": int64(2000), + "floatField": float32(3.14), + "doubleField": float64(6.28), + "bytesField": []byte("bytesdata"), + "stringField": "stringdata", + }, + expectError: false, + }, + { + name: "Valid: Nested Record", + schemaStr: nestedRecordSchema, + args: map[string]any{ + "id": "outerID", + "inner": map[string]any{ + "value": int32(101), + "description": "inner desc", + }, + }, + expectError: false, + }, + { + name: "Valid: Array of Primitives", + schemaStr: arraySchemaPrimitive, + args: map[string]any{ + "stringArray": []any{"a", "b", "c"}, + "optionalIntArray": []any{int32(1), int32(2)}, + }, + expectError: false, + }, + { + name: "Valid: Map of Records", + schemaStr: mapSchemaRecord, + args: map[string]any{ + "recordsMap": map[string]any{ + "recA": map[string]any{"id": int32(1), "status": "active"}, + }, + }, + expectError: false, + }, + { + name: "Valid: Enum", + schemaStr: enumSchema, + args: map[string]any{ + "suit": "SPADES", + }, + expectError: false, + }, + { + name: "Valid: Union - int type", + schemaStr: unionSchemaSimple, + args: map[string]any{ + "stringOrInt": int32(123), + }, + expectError: false, + }, + { + name: "Invalid: Serialization fails due to validation (missing required field)", + schemaStr: simpleRecordSchema, + args: map[string]any{ + "id": int64(123), // "name" is missing + }, + expectError: true, + errorContains: "required field 'name' is missing and has no default value", + }, + { + name: "Invalid: Serialization fails due to validation (wrong type)", + schemaStr: simpleRecordSchema, + args: map[string]any{ + "id": "not-a-long", + "name": "Test Name", + }, + expectError: true, + errorContains: "field 'id': expected long, got string (value: not-a-long)", + }, + { + name: "Invalid: Empty schema string", + schemaStr: "", + args: map[string]any{"id": int64(1)}, + expectError: true, + errorContains: "failed to parse AVRO schema for validation: avro: unknown type: ", + }, + { + name: "Invalid: Malformed schema string", + schemaStr: `{"type": "record"`, + args: map[string]any{"id": 123}, + expectError: true, + errorContains: "failed to parse AVRO schema for validation: avro: unknown type: {\"type\": \"record\"", + }, + { + name: "Valid: schemaWithAllPrimitives - bytes field with string input for serialization", + schemaStr: schemaWithAllPrimitives, + args: map[string]any{ + "boolField": true, + "intField": int32(100), + "longField": int64(2000), + "floatField": float32(3.14), + "doubleField": float64(6.28), + "bytesField": []byte("stringtobytes"), + "stringField": "stringdata", + }, + expectError: false, // Should serialize correctly as current code handles string to []byte for bytes type + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + actualBinary, err := serializeArgumentsToAvroBinary(tt.args, tt.schemaStr) + + if tt.expectError { + assert.Error(t, err) + if tt.errorContains != "" { + assert.Contains(t, err.Error(), tt.errorContains) + } + assert.Nil(t, actualBinary) + } else { + assert.NoError(t, err) + assert.NotNil(t, actualBinary) + + // To validate the binary output, we use the helper. + // This ensures that our serialization matches a known-good Avro library's output. + expectedBinary := getExpectedAvroBinary(t, tt.schemaStr, tt.args) + assert.Equal(t, expectedBinary, actualBinary, "Serialized binary output does not match expected binary.") + } + }) + } +} diff --git a/pkg/schema/avro_test.go b/pkg/schema/avro_test.go new file mode 100644 index 0000000..82d6248 --- /dev/null +++ b/pkg/schema/avro_test.go @@ -0,0 +1,375 @@ +package schema + +import ( + "testing" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/stretchr/testify/assert" + + "github.com/mark3labs/mcp-go/mcp" +) + +// complexRecordSchemaString is used by TestAvroConverter_ValidateArguments +// and is not defined in avro_core_test.go, so we define it here. +const complexRecordSchemaString = `{ + "type": "record", + "name": "ComplexRecord", + "fields": [ + {"name": "fieldString", "type": "string"}, + {"name": "fieldInt", "type": "int"}, + {"name": "fieldLong", "type": "long"}, + {"name": "fieldDouble", "type": "double"}, + {"name": "fieldFloat", "type": "float"}, + {"name": "fieldBool", "type": "boolean"}, + {"name": "fieldBytes", "type": "bytes"}, + {"name": "fieldFixed", "type": {"type": "fixed", "name": "MyFixed", "size": 8}}, + {"name": "fieldEnum", "type": {"type": "enum", "name": "MyEnum", "symbols": ["A", "B", "C"]}}, + {"name": "fieldArray", "type": {"type": "array", "items": "int"}}, + {"name": "fieldMap", "type": {"type": "map", "values": "long"}}, + {"name": "fieldRecord", "type": { + "type": "record", "name": "SubRecord", "fields": [ + {"name": "subField", "type": "string"} + ]} + }, + {"name": "fieldUnion", "type": ["null", "int", "string"]} + ] +}` + +// newAvroSchemaInfo is a helper to create SchemaInfo for AVRO type with a given AVRO schema string. +func newAvroSchemaInfo(avroSchemaString string) *utils.SchemaInfo { + return &utils.SchemaInfo{ + Name: "test-avro-schema", + Type: "AVRO", // Pulsar schema type is string + Schema: []byte(avroSchemaString), + } +} + +// TestNewAvroConverter tests the NewAvroConverter constructor. +func TestNewAvroConverter(t *testing.T) { + converter := NewAvroConverter() + assert.NotNil(t, converter, "NewAvroConverter should not return nil") + // AvroConverter also relies on Avro structure primarily, similar to JSONConverter. +} + +// TestAvroConverter_ToMCPToolInputSchemaProperties tests ToMCPToolInputSchemaProperties for AvroConverter. +func TestAvroConverter_ToMCPToolInputSchemaProperties(t *testing.T) { + converter := NewAvroConverter() + + const localSimpleRecordSchemaForAvro = `{ + "type": "record", + "name": "SimpleRecordForAvro", + "fields": [ + {"name": "id", "type": "long"}, + {"name": "data", "type": "string"} + ] + }` + + const invalidAvroSchemaForAvro = `{"type": "invalidAvro}` + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + expectedOptions []mcp.ToolOption + expectError bool + errorContains string + }{ + { + name: "Valid AVRO schema", + schemaInfo: newAvroSchemaInfo(localSimpleRecordSchemaForAvro), + expectedOptions: []mcp.ToolOption{ + mcp.WithNumber("id", mcp.Description("id (type: long)"), mcp.Required()), + mcp.WithString("data", mcp.Description("data (type: string)"), mcp.Required()), + }, + expectError: false, + }, + { + name: "SchemaInfo type is not AVRO (e.g., JSON)", + schemaInfo: &utils.SchemaInfo{Type: "JSON", Schema: []byte(localSimpleRecordSchemaForAvro)}, + expectedOptions: nil, + expectError: true, + errorContains: "expected AVRO schema, got JSON", + }, + { + name: "Invalid underlying Avro schema string", + schemaInfo: newAvroSchemaInfo(invalidAvroSchemaForAvro), + expectedOptions: nil, + expectError: true, + errorContains: "unknown type: {\"type\": \"invalidAvro}", + }, + { + name: "Underlying Avro schema is nil", + schemaInfo: &utils.SchemaInfo{Type: "AVRO", Schema: nil}, + expectedOptions: nil, + expectError: true, + errorContains: "unknown type: ", + }, + { + name: "Underlying Avro schema is empty string", + schemaInfo: newAvroSchemaInfo(""), + expectedOptions: nil, + expectError: true, + errorContains: "unknown type: ", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + opts, err := converter.ToMCPToolInputSchemaProperties(tt.schemaInfo) + + if tt.expectError { + assert.Error(t, err) + if tt.errorContains != "" { + assert.Contains(t, err.Error(), tt.errorContains) + } + assert.Nil(t, opts) + } else { + assert.NoError(t, err) + var expectedTool, actualTool mcp.Tool + expectedTool = mcp.NewTool("test", tt.expectedOptions...) + actualTool = mcp.NewTool("test", opts...) + expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() + actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() + assert.Equal(t, expectedToolSchemaJSON, actualToolSchemaJSON, "Tool mismatch") + } + }) + } +} + +func TestAvroConverter_ValidateArguments(t *testing.T) { + tests := []struct { + name string + schemaInfo utils.SchemaInfo + args map[string]interface{} + wantErr bool + }{ + { + name: "valid arguments for simple record", + schemaInfo: utils.SchemaInfo{ + Name: "SimpleAvro", + Schema: []byte(simpleRecordSchema), + Type: "AVRO", + }, + args: map[string]interface{}{ + "id": int64(123), + "name": "TestName", + }, + wantErr: false, + }, + { + name: "invalid type for field in simple record", + schemaInfo: utils.SchemaInfo{ + Name: "SimpleAvroInvalidType", + Schema: []byte(simpleRecordSchema), + Type: "AVRO", + }, + args: map[string]interface{}{ + "id": "not_a_long", + "name": "TestName", + }, + wantErr: true, + }, + { + name: "missing required field in simple record", + schemaInfo: utils.SchemaInfo{ + Name: "SimpleAvroMissingField", + Schema: []byte(simpleRecordSchema), + Type: "AVRO", + }, + args: map[string]interface{}{ + "name": "TestName", + }, + wantErr: true, + }, + { + name: "valid arguments for complex record", + schemaInfo: utils.SchemaInfo{ + Name: "ComplexAvroValid", + Schema: []byte(complexRecordSchemaString), + Type: "AVRO", + }, + args: map[string]interface{}{ + "fieldString": "test string", + "fieldInt": int32(123), + "fieldLong": int64(456), + "fieldDouble": float64(12.34), + "fieldFloat": float32(56.78), + "fieldBool": true, + "fieldBytes": []byte("test bytes"), + "fieldFixed": uint64(0x1234567890123456), + "fieldEnum": "A", + "fieldArray": []interface{}{int32(1), int32(2)}, + "fieldMap": map[string]interface{}{"key1": int64(100)}, + "fieldRecord": map[string]interface{}{"subField": "sub value"}, + "fieldUnion": int32(99), + }, + wantErr: false, + }, + { + name: "invalid enum value for complex record", + schemaInfo: utils.SchemaInfo{ + Name: "ComplexAvroInvalidEnum", + Schema: []byte(complexRecordSchemaString), + Type: "AVRO", + }, + args: map[string]interface{}{ + "fieldString": "test string", + "fieldInt": int32(123), + "fieldLong": int64(456), + "fieldDouble": float64(12.34), + "fieldFloat": float32(56.78), + "fieldBool": true, + "fieldBytes": []byte("test bytes"), + "fieldFixed": uint64(0x1234567890123456), + "fieldEnum": "X", // Invalid enum + "fieldArray": []interface{}{int32(1), int32(2)}, + "fieldMap": map[string]interface{}{"key1": int64(100)}, + "fieldRecord": map[string]interface{}{"subField": "sub value"}, + "fieldUnion": int32(99), + }, + wantErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + conv := NewAvroConverter() + + err := conv.ValidateArguments(tt.args, &tt.schemaInfo) + if (err != nil) != tt.wantErr { + t.Errorf("AvroConverter.ValidateArguments() error = %v, wantErr %v", err, tt.wantErr) + } + }) + } +} + +func TestAvroConverter_SerializeMCPRequestToPulsarPayload(t *testing.T) { + // Assumes simpleRecordSchema and complexRecordSchemaString are available + // and getExpectedAvroBinary is accessible from avro_core_test.go (same package) + + tests := []struct { + name string + schemaInfo utils.SchemaInfo + args map[string]interface{} + expectedPayload []byte // Can be nil if wantErr is true + wantErr bool + assertPayload bool // True if we want to compare payload, false if only error matters + errorContains string + }{ + { + name: "valid serialization for simple record", + schemaInfo: utils.SchemaInfo{ + Name: "SimpleAvroSerialize", + Schema: []byte(simpleRecordSchema), // Uses simpleRecordSchema from avro_core_test.go + Type: "AVRO", + }, + args: map[string]interface{}{ + "id": int64(42), // Note: field names in avro_core_test.go's simpleRecordSchema are lowercase + "name": "Test Payload", + }, + assertPayload: true, + wantErr: false, + }, + { + name: "serialization with mismatched argument type for simple record", + schemaInfo: utils.SchemaInfo{ + Name: "SimpleAvroSerializeInvalidArg", + Schema: []byte(simpleRecordSchema), + Type: "AVRO", + }, + args: map[string]interface{}{ + "id": "not_a_long", // Invalid type + "name": "Test Payload", + }, + assertPayload: false, + wantErr: true, + errorContains: "arguments validation failed", + }, + { + name: "valid serialization for complex record", + schemaInfo: utils.SchemaInfo{ + Name: "ComplexAvroSerialize", + Schema: []byte(complexRecordSchemaString), // Uses complexRecordSchemaString defined in avro_test.go + Type: "AVRO", + }, + args: map[string]interface{}{ + "fieldString": "hello avro", + "fieldInt": int32(101), + "fieldLong": int64(202), + "fieldDouble": float64(30.3), + "fieldFloat": float32(4.04), + "fieldBool": true, + "fieldBytes": []byte("avro bytes"), + "fieldFixed": uint64(0x1234567890123456), // Must be 16 bytes, will be corrected in loop + "fieldEnum": "B", + "fieldArray": []interface{}{int32(11), int32(22)}, + "fieldMap": map[string]interface{}{"mKey": int64(333)}, + "fieldRecord": map[string]interface{}{"subField": "sub data"}, + "fieldUnion": "union string val", + }, + assertPayload: true, // We'll generate expected payload for this + wantErr: false, + }, + { + name: "serialization with invalid schema type", + schemaInfo: utils.SchemaInfo{ + Name: "InvalidSchemaTypeSerialize", + Schema: []byte(simpleRecordSchema), + Type: "JSON", // Invalid type for AvroConverter + }, + args: map[string]interface{}{ + "id": int64(1), + "name": "Dummy", + }, + assertPayload: false, + wantErr: true, + errorContains: "arguments validation failed", // ValidateArguments checks schema type first + }, + } + + for i := range tests { + tt := &tests[i] // Use pointer to allow modification for expectedPayload + + // Pre-calculate expected payload for valid cases + if tt.assertPayload && !tt.wantErr { + var schemaToUse string + var argsToMarshal map[string]interface{} + + if tt.schemaInfo.Name == "SimpleAvroSerialize" { + schemaToUse = simpleRecordSchema + argsToMarshal = tt.args + } else if tt.schemaInfo.Name == "ComplexAvroSerialize" { + schemaToUse = complexRecordSchemaString + complexArgsCopy := make(map[string]interface{}) + for k, v := range tt.args { + complexArgsCopy[k] = v + } + complexArgsCopy["fieldFixed"] = uint64(0x0123456789abcdef) // 16 bytes + argsToMarshal = complexArgsCopy + tt.args = complexArgsCopy // Update tt.args with corrected fixed field + } + + if schemaToUse != "" { + tt.expectedPayload = getExpectedAvroBinary(t, schemaToUse, argsToMarshal) + } else { + t.Fatalf("Test setup error for %s: schemaToUse not set for payload generation", tt.name) + } + } + + t.Run(tt.name, func(t *testing.T) { + conv := NewAvroConverter() + payload, err := conv.SerializeMCPRequestToPulsarPayload(tt.args, &tt.schemaInfo) + + if tt.wantErr { + assert.Error(t, err, "Expected an error for test case: %s", tt.name) + if tt.errorContains != "" { + assert.Contains(t, err.Error(), tt.errorContains, "Error message mismatch for test case: %s", tt.name) + } + } else { + assert.NoError(t, err, "Did not expect an error for test case: %s", tt.name) + if tt.assertPayload { + assert.Equal(t, tt.expectedPayload, payload, "Payload mismatch for test case: %s", tt.name) + } + } + }) + } +} diff --git a/pkg/schema/boolean.go b/pkg/schema/boolean.go new file mode 100644 index 0000000..96d74a4 --- /dev/null +++ b/pkg/schema/boolean.go @@ -0,0 +1,59 @@ +package schema + +import ( + "fmt" + + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/common" +) + +// BooleanConverter handles the conversion for Pulsar BOOLEAN schemas. +type BooleanConverter struct { + BaseConverter +} + +// NewBooleanConverter creates a new instance of BooleanConverter. +func NewBooleanConverter() *BooleanConverter { + return &BooleanConverter{ + BaseConverter: BaseConverter{ + ParamName: ParamName, + }, + } +} + +func (c *BooleanConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { + if schemaInfo.Type != "BOOLEAN" { + return nil, fmt.Errorf("expected BOOLEAN schema, got %s", schemaInfo.Type) + } + + return []mcp.ToolOption{ + mcp.WithBoolean(c.ParamName, mcp.Description(fmt.Sprintf("The input schema is a %s schema", schemaInfo.Type)), mcp.Required()), + }, nil +} + +func (c *BooleanConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { + if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { + return nil, fmt.Errorf("arguments validation failed: %w", err) + } + + payload, err := common.RequiredParam[bool](arguments, c.ParamName) + if err != nil { + return nil, fmt.Errorf("failed to get payload: %w", err) + } + + return []byte(fmt.Sprintf("%t", payload)), nil +} + +func (c *BooleanConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { + if targetPulsarSchemaInfo.Type != "BOOLEAN" { + return fmt.Errorf("expected BOOLEAN schema, got %s", targetPulsarSchemaInfo.Type) + } + + _, err := common.RequiredParam[bool](arguments, c.ParamName) + if err != nil { + return fmt.Errorf("failed to get payload: %w", err) + } + + return nil +} diff --git a/pkg/schema/boolean_test.go b/pkg/schema/boolean_test.go new file mode 100644 index 0000000..9123a00 --- /dev/null +++ b/pkg/schema/boolean_test.go @@ -0,0 +1,182 @@ +package schema + +import ( + "fmt" + "testing" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/stretchr/testify/assert" +) + +// Helper function to create SchemaInfo for boolean tests +func newBoolSchemaInfo(schemaType string) *utils.SchemaInfo { + return &utils.SchemaInfo{ + Type: schemaType, + Schema: []byte{}, + } +} + +func TestNewBooleanConverter(t *testing.T) { + converter := NewBooleanConverter() + assert.NotNil(t, converter) + assert.Equal(t, ParamName, converter.ParamName, "ParamName should be initialized to the package constant") +} + +func TestBooleanConverter_ToMCPToolInputSchemaProperties(t *testing.T) { + converter := NewBooleanConverter() + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + wantOpts []mcp.ToolOption + wantErr bool + }{ + { + name: "Valid BOOLEAN schema", + schemaInfo: newBoolSchemaInfo("BOOLEAN"), + wantOpts: []mcp.ToolOption{ + mcp.WithBoolean(ParamName, mcp.Description(fmt.Sprintf("The input schema is a %s schema", "BOOLEAN")), mcp.Required()), + }, + wantErr: false, + }, + { + name: "Invalid schema type (STRING)", + schemaInfo: newBoolSchemaInfo("STRING"), + wantOpts: nil, + wantErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + gotOpts, err := converter.ToMCPToolInputSchemaProperties(tt.schemaInfo) + if (err != nil) != tt.wantErr { + t.Errorf("ToMCPToolInputSchemaProperties() error = %v, wantErr %v", err, tt.wantErr) + return + } + var expectedTool, actualTool mcp.Tool + expectedTool = mcp.NewTool("test", tt.wantOpts...) + actualTool = mcp.NewTool("test", gotOpts...) + expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() + actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() + assert.Equal(t, expectedToolSchemaJSON, actualToolSchemaJSON) + if tt.wantErr && err != nil { + assert.Contains(t, err.Error(), "expected BOOLEAN schema, got") + } + }) + } +} + +func TestBooleanConverter_ValidateArguments(t *testing.T) { + converter := NewBooleanConverter() + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + args map[string]any + wantErr bool + errContain string // Substring to check in error message if wantErr is true + }{ + { + name: "Valid arguments for BOOLEAN schema", + schemaInfo: newBoolSchemaInfo("BOOLEAN"), + args: map[string]any{ParamName: true}, + wantErr: false, + }, + { + name: "Invalid schema type (STRING)", + schemaInfo: newBoolSchemaInfo("STRING"), + args: map[string]any{ParamName: true}, + wantErr: true, + errContain: "expected BOOLEAN schema, got STRING", + }, + { + name: "Missing payload argument", + schemaInfo: newBoolSchemaInfo("BOOLEAN"), + args: map[string]any{}, + wantErr: true, + errContain: "missing required parameter: payload", + }, + { + name: "Incorrect payload type (string instead of bool)", + schemaInfo: newBoolSchemaInfo("BOOLEAN"), + args: map[string]any{ParamName: "true"}, + wantErr: true, + errContain: "parameter payload is not of type bool", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := converter.ValidateArguments(tt.args, tt.schemaInfo) + if (err != nil) != tt.wantErr { + t.Errorf("ValidateArguments() error = %v, wantErr %v", err, tt.wantErr) + return + } + if tt.wantErr && err != nil { + assert.Contains(t, err.Error(), tt.errContain) + } + }) + } +} + +func TestBooleanConverter_SerializeMCPRequestToPulsarPayload(t *testing.T) { + converter := NewBooleanConverter() + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + args map[string]any + want []byte + wantErr bool + errContain string + }{ + { + name: "Serialize true for BOOLEAN schema", + schemaInfo: newBoolSchemaInfo("BOOLEAN"), + args: map[string]any{ParamName: true}, + want: []byte("true"), + wantErr: false, + }, + { + name: "Serialize false for BOOLEAN schema", + schemaInfo: newBoolSchemaInfo("BOOLEAN"), + args: map[string]any{ParamName: false}, + want: []byte("false"), + wantErr: false, + }, + { + name: "Validation error (e.g., missing payload)", + schemaInfo: newBoolSchemaInfo("BOOLEAN"), + args: map[string]any{}, + want: nil, + wantErr: true, + errContain: "arguments validation failed", // Outer error message from SerializeMCPRequestToPulsarPayload + }, + { + name: "Validation error (e.g., wrong schema type during ValidateArguments)", + schemaInfo: newBoolSchemaInfo("STRING"), // Invalid schema type for this converter + args: map[string]any{ParamName: true}, + want: nil, + wantErr: true, + errContain: "arguments validation failed", // Outer error message from SerializeMCPRequestToPulsarPayload + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := converter.SerializeMCPRequestToPulsarPayload(tt.args, tt.schemaInfo) + if (err != nil) != tt.wantErr { + t.Errorf("SerializeMCPRequestToPulsarPayload() error = %v, wantErr %v", err, tt.wantErr) + return + } + assert.Equal(t, tt.want, got) + if tt.wantErr && err != nil { + assert.Contains(t, err.Error(), tt.errContain) + } + }) + } +} + +// Future test functions will be added here. diff --git a/pkg/schema/common.go b/pkg/schema/common.go new file mode 100644 index 0000000..4540fa0 --- /dev/null +++ b/pkg/schema/common.go @@ -0,0 +1,37 @@ +package schema + +import ( + "fmt" + + "github.com/apache/pulsar-client-go/pulsar" +) + +// GetSchemaType 返回Schema类型的字符串表示 +func GetSchemaType(schemaType pulsar.SchemaType) string { + switch schemaType { + case pulsar.AVRO: + return "AVRO" + case pulsar.JSON: + return "JSON" + case pulsar.STRING: + return "STRING" + case pulsar.INT8: + return "INT8" + case pulsar.INT16: + return "INT16" + case pulsar.INT32: + return "INT32" + case pulsar.INT64: + return "INT64" + case pulsar.FLOAT: + return "FLOAT" + case pulsar.DOUBLE: + return "DOUBLE" + case pulsar.BOOLEAN: + return "BOOLEAN" + case pulsar.BYTES: + return "BYTES" + default: + return fmt.Sprintf("Unknown(%d)", schemaType) + } +} diff --git a/pkg/schema/common_test.go b/pkg/schema/common_test.go new file mode 100644 index 0000000..8b923b8 --- /dev/null +++ b/pkg/schema/common_test.go @@ -0,0 +1,38 @@ +package schema + +import ( + "testing" + + "github.com/apache/pulsar-client-go/pulsar" +) + +// Future test functions will be added here. + +func TestGetSchemaType(t *testing.T) { + tests := []struct { + name string + schemaType pulsar.SchemaType + want string + }{ + {name: "AVRO", schemaType: pulsar.AVRO, want: "AVRO"}, + {name: "JSON", schemaType: pulsar.JSON, want: "JSON"}, + {name: "STRING", schemaType: pulsar.STRING, want: "STRING"}, + {name: "INT8", schemaType: pulsar.INT8, want: "INT8"}, + {name: "INT16", schemaType: pulsar.INT16, want: "INT16"}, + {name: "INT32", schemaType: pulsar.INT32, want: "INT32"}, + {name: "INT64", schemaType: pulsar.INT64, want: "INT64"}, + {name: "FLOAT", schemaType: pulsar.FLOAT, want: "FLOAT"}, + {name: "DOUBLE", schemaType: pulsar.DOUBLE, want: "DOUBLE"}, + {name: "BOOLEAN", schemaType: pulsar.BOOLEAN, want: "BOOLEAN"}, + {name: "BYTES", schemaType: pulsar.BYTES, want: "BYTES"}, + {name: "Unknown", schemaType: pulsar.SchemaType(999), want: "Unknown(999)"}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + if got := GetSchemaType(tt.schemaType); got != tt.want { + t.Errorf("GetSchemaType() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/pkg/schema/converter.go b/pkg/schema/converter.go new file mode 100644 index 0000000..987dca5 --- /dev/null +++ b/pkg/schema/converter.go @@ -0,0 +1,41 @@ +package schema + +import ( + "fmt" + + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" +) + +const ( + ParamName = "payload" +) + +type Converter interface { + ToMCPToolInputSchemaProperties(pulsarSchemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) + + SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) + + ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error +} + +func ConverterFactory(schemaType string) (Converter, error) { + switch schemaType { + case "AVRO": + return NewAvroConverter(), nil + case "JSON": + return NewJSONConverter(), nil + case "STRING", "BYTES": + return NewStringConverter(), nil + case "INT8", "INT16", "INT32", "INT64", "FLOAT", "DOUBLE": + return NewNumberConverter(), nil + case "BOOLEAN": + return NewBooleanConverter(), nil + default: + return nil, fmt.Errorf("unsupported schema type: %v", schemaType) + } +} + +type BaseConverter struct { + ParamName string +} diff --git a/pkg/schema/converter_test.go b/pkg/schema/converter_test.go new file mode 100644 index 0000000..8d657df --- /dev/null +++ b/pkg/schema/converter_test.go @@ -0,0 +1,50 @@ +package schema + +import ( + "reflect" + "testing" + + "github.com/stretchr/testify/assert" +) + +// Future test functions will be added here. + +func TestConverterFactory(t *testing.T) { + tests := []struct { + name string + schemaType string + wantType reflect.Type + wantErr bool + }{ + {name: "AVRO", schemaType: "AVRO", wantType: reflect.TypeOf(&AvroConverter{}), wantErr: false}, + {name: "JSON", schemaType: "JSON", wantType: reflect.TypeOf(&JSONConverter{}), wantErr: false}, + {name: "STRING", schemaType: "STRING", wantType: reflect.TypeOf(&StringConverter{}), wantErr: false}, + {name: "BYTES", schemaType: "BYTES", wantType: reflect.TypeOf(&StringConverter{}), wantErr: false}, + {name: "INT8", schemaType: "INT8", wantType: reflect.TypeOf(&NumberConverter{}), wantErr: false}, + {name: "INT16", schemaType: "INT16", wantType: reflect.TypeOf(&NumberConverter{}), wantErr: false}, + {name: "INT32", schemaType: "INT32", wantType: reflect.TypeOf(&NumberConverter{}), wantErr: false}, + {name: "INT64", schemaType: "INT64", wantType: reflect.TypeOf(&NumberConverter{}), wantErr: false}, + {name: "FLOAT", schemaType: "FLOAT", wantType: reflect.TypeOf(&NumberConverter{}), wantErr: false}, + {name: "DOUBLE", schemaType: "DOUBLE", wantType: reflect.TypeOf(&NumberConverter{}), wantErr: false}, + {name: "BOOLEAN", schemaType: "BOOLEAN", wantType: reflect.TypeOf(&BooleanConverter{}), wantErr: false}, + {name: "avro_lowercase", schemaType: "avro", wantType: nil, wantErr: true}, + {name: "UNKNOWN_TYPE", schemaType: "UNKNOWN_TYPE", wantType: nil, wantErr: true}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := ConverterFactory(tt.schemaType) + if (err != nil) != tt.wantErr { + t.Errorf("ConverterFactory() error = %v, wantErr %v", err, tt.wantErr) + return + } + if !tt.wantErr && reflect.TypeOf(got) != tt.wantType { + t.Errorf("ConverterFactory() got = %v, want %v", reflect.TypeOf(got), tt.wantType) + } + // For error cases, we might also want to assert the error message if it's specific. + if tt.wantErr && err != nil { + assert.Contains(t, err.Error(), "unsupported schema type") + } + }) + } +} diff --git a/pkg/schema/json.go b/pkg/schema/json.go new file mode 100644 index 0000000..4638bce --- /dev/null +++ b/pkg/schema/json.go @@ -0,0 +1,60 @@ +package schema + +import ( + "encoding/json" // Required for json.Marshal + "fmt" + + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" +) + +// JSONConverter handles the conversion for Pulsar JSON schemas. +// It relies on the underlying AVRO schema definition for structure and validation, +// but serializes to a standard JSON text payload. +type JSONConverter struct { + BaseConverter +} + +// NewJSONConverter creates a new instance of JSONConverter. +func NewJSONConverter() *JSONConverter { + return &JSONConverter{} +} + +// ToMCPToolInputSchemaProperties converts the Pulsar JSON SchemaInfo (which is AVRO based) +// to MCP tool input schema properties. +func (c *JSONConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { + if schemaInfo.Type != "JSON" { + // Assuming GetSchemaType will be available from somewhere in the package (e.g. converter.go) + return nil, fmt.Errorf("expected JSON schema, got %s", schemaInfo.Type) + } + // The schemaInfo.Schema for JSON type is the AVRO schema string definition. + // Delegate to the core AVRO processing function from avro_core.go. + return processAvroSchemaStringToMCPToolInput(string(schemaInfo.Schema)) +} + +// SerializeMCPRequestToPulsarPayload validates arguments against the underlying AVRO schema definition +// and then serializes them to a JSON text payload for Pulsar. +func (c *JSONConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { + if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { + return nil, fmt.Errorf("arguments validation failed: %w", err) + } + + // Serialize arguments to standard JSON []byte. + jsonData, err := json.Marshal(arguments) + if err != nil { + return nil, fmt.Errorf("failed to marshal arguments to JSON: %w", err) + } + + return jsonData, nil +} + +// ValidateArguments validates the given arguments against the Pulsar JSON SchemaInfo's +// underlying AVRO schema definition. +func (c *JSONConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { + if targetPulsarSchemaInfo.Type != "JSON" { + return fmt.Errorf("expected JSON schema for validation, got %s", targetPulsarSchemaInfo.Type) + } + // The schemaInfo.Schema for JSON type is the AVRO schema string definition. + // Delegate to the core AVRO validation function from avro_core.go. + return validateArgumentsAgainstAvroSchemaString(arguments, string(targetPulsarSchemaInfo.Schema)) +} diff --git a/pkg/schema/json_test.go b/pkg/schema/json_test.go new file mode 100644 index 0000000..dc48caf --- /dev/null +++ b/pkg/schema/json_test.go @@ -0,0 +1,306 @@ +package schema + +import ( + "testing" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/stretchr/testify/assert" + + "github.com/mark3labs/mcp-go/mcp" +) + +// newJSONSchemaInfo is a helper to create SchemaInfo for JSON type with a given AVRO schema string. +func newJSONSchemaInfo(avroSchemaString string) *utils.SchemaInfo { + return &utils.SchemaInfo{ + Name: "test-json-schema", + Type: "JSON", + Schema: []byte(avroSchemaString), + } +} + +// TestNewJSONConverter tests the NewJSONConverter constructor. +func TestNewJSONConverter(t *testing.T) { + converter := NewJSONConverter() + assert.NotNil(t, converter, "NewJSONConverter should not return nil") + // JSONConverter does not have a ParamName like simpler converters, it relies on Avro structure. +} + +// TestJSONConverter_ToMCPToolInputSchemaProperties tests ToMCPToolInputSchemaProperties for JSONConverter. +func TestJSONConverter_ToMCPToolInputSchemaProperties(t *testing.T) { + converter := NewJSONConverter() + + // Re-define or ensure accessibility of AVRO schema constants from avro_core_test.go + // For this example, let's use a simple one. Ideally, these would be shared or accessible. + const localSimpleRecordSchema = `{ + "type": "record", + "name": "SimpleRecordForJSON", + "fields": [ + {"name": "name", "type": "string"}, + {"name": "age", "type": "int"} + ] + }` + + const invalidAvroSchema = `{"type": "invalid}` + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + expectedOptions []mcp.ToolOption // Simplified expectation for brevity + expectError bool + errorContains string + }{ + { + name: "Valid JSON schema (based on simple Avro record)", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchema), + expectedOptions: []mcp.ToolOption{ // This structure depends on processAvroSchemaStringToMCPToolInput + mcp.WithString("name", mcp.Description("name (type: string)"), mcp.Required()), + mcp.WithNumber("age", mcp.Description("age (type: int)"), mcp.Required()), + }, + expectError: false, + }, + { + name: "SchemaInfo type is not JSON", + schemaInfo: &utils.SchemaInfo{Type: "AVRO", Schema: []byte(localSimpleRecordSchema)}, + expectedOptions: nil, + expectError: true, + errorContains: "expected JSON schema, got AVRO", + }, + { + name: "Invalid underlying Avro schema string", + schemaInfo: newJSONSchemaInfo(invalidAvroSchema), + expectedOptions: nil, + expectError: true, + errorContains: "unknown type: {\"type\": \"invalid}", // Outer error from JSONConverter + }, + { + name: "Underlying Avro schema is nil", + schemaInfo: &utils.SchemaInfo{Type: "JSON", Schema: nil}, + expectedOptions: nil, + expectError: true, + errorContains: "avro: unknown type: ", + }, + { + name: "Underlying Avro schema is empty string", + schemaInfo: newJSONSchemaInfo(""), + expectedOptions: nil, + expectError: true, + errorContains: "avro: unknown type: ", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + opts, err := converter.ToMCPToolInputSchemaProperties(tt.schemaInfo) + + if tt.expectError { + assert.Error(t, err) + if tt.errorContains != "" { + assert.Contains(t, err.Error(), tt.errorContains) + } + assert.Nil(t, opts) // Or check for empty slice if appropriate + } else { + assert.NoError(t, err) + var expectedTool = mcp.NewTool("test", tt.expectedOptions...) + var actualTool = mcp.NewTool("test", opts...) + expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() + actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() + assert.Equal(t, expectedToolSchemaJSON, actualToolSchemaJSON, "ToolOptions mismatch") + } + }) + } +} + +// TestJSONConverter_ValidateArguments tests ValidateArguments for JSONConverter. +func TestJSONConverter_ValidateArguments(t *testing.T) { + converter := NewJSONConverter() + + // Re-use localSimpleRecordSchema and invalidAvroSchema from previous test or ensure they are accessible. + const localSimpleRecordSchemaForValidation = `{ + "type": "record", + "name": "SimpleRecordForJSONValidation", + "fields": [ + {"name": "name", "type": "string"}, + {"name": "age", "type": "int"} + ] + }` + const invalidAvroSchemaForValidation = `{"type": "invalid}` + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + args map[string]any + expectError bool + errorContains string + }{ + { + name: "Valid arguments for JSON schema (simple record)", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForValidation), + args: map[string]any{ + "name": "testUser", + "age": 30, + }, + expectError: false, + }, + { + name: "SchemaInfo type is not JSON", + schemaInfo: &utils.SchemaInfo{Type: "AVRO", Schema: []byte(localSimpleRecordSchemaForValidation)}, + args: map[string]any{"name": "testUser", "age": 30}, + expectError: true, + errorContains: "expected JSON schema for validation, got AVRO", + }, + { + name: "Invalid underlying Avro schema string", + schemaInfo: newJSONSchemaInfo(invalidAvroSchemaForValidation), + args: map[string]any{"name": "testUser", "age": 30}, + expectError: true, + errorContains: "unknown type: {\"type\": \"invalid}", // Outer error + }, + { + name: "Missing required field (age) in args for JSON schema", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForValidation), + args: map[string]any{"name": "testUser"}, + expectError: true, + errorContains: "required field 'age' is missing and has no default value", // Error from validateArgumentsAgainstAvroSchemaString + }, + { + name: "Wrong type for field (age as string) in args for JSON schema", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForValidation), + args: map[string]any{"name": "testUser", "age": "thirty"}, + expectError: true, + errorContains: "field 'age': expected int, got string (value: thirty)", // Error from validateArgumentsAgainstAvroSchemaString + }, + { + name: "Nil arguments map", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForValidation), + args: nil, // validateArgumentsAgainstAvroSchemaString treats nil as empty map + expectError: true, + errorContains: "required field 'name' is missing and has no default value", + }, + { + name: "Underlying Avro schema is nil", + schemaInfo: &utils.SchemaInfo{Type: "JSON", Schema: nil}, + args: map[string]any{"name": "testUser", "age": 30}, + expectError: true, + errorContains: "failed to parse AVRO schema for validation: avro: unknown type: ", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := converter.ValidateArguments(tt.args, tt.schemaInfo) + if tt.expectError { + assert.Error(t, err) + if tt.errorContains != "" { + assert.Contains(t, err.Error(), tt.errorContains) + } + } else { + assert.NoError(t, err) + } + }) + } +} + +// TestJSONConverter_SerializeMCPRequestToPulsarPayload tests SerializeMCPRequestToPulsarPayload for JSONConverter. +func TestJSONConverter_SerializeMCPRequestToPulsarPayload(t *testing.T) { + converter := NewJSONConverter() + + const localSimpleRecordSchemaForSerialization = `{ + "type": "record", + "name": "SimpleRecordForJSONSerialization", + "fields": [ + {"name": "name", "type": "string"}, + {"name": "age", "type": "int"}, + {"name": "city", "type": ["null", "string"], "default": null} + ] + }` + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + args map[string]any + expectedJSON string // Expected JSON string output + expectError bool + errorContains string + }{ + { + name: "Valid arguments, serialize to JSON", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForSerialization), + args: map[string]any{ + "name": "Alice", + "age": 30, + "city": "New York", + }, + // Note: JSON marshaling of maps doesn't guarantee key order. + // We will unmarshal and compare maps for robust checking if direct string comparison is flaky. + // For simplicity here, we assume a common order or use a more robust comparison later if needed. + expectedJSON: `{"age":30,"city":"New York","name":"Alice"}`, + expectError: false, + }, + { + name: "Valid arguments with optional field null, serialize to JSON", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForSerialization), + args: map[string]any{ + "name": "Bob", + "age": 40, + "city": nil, // Explicit null for optional field + }, + expectedJSON: `{"age":40,"city":null,"name":"Bob"}`, + expectError: false, + }, + { + name: "Valid arguments with optional field omitted, serialize to JSON", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForSerialization), + args: map[string]any{ + "name": "Charlie", + "age": 35, + // city is omitted, should be treated as null by Avro logic but json.Marshal will omit it if not in map + }, + // If Avro layer adds default null to args map before JSON marshal, then `"city":null` would be here. + // JSONConverter.SerializeMCPRequestToPulsarPayload directly marshals the provided args map. + expectedJSON: `{"age":35,"name":"Charlie"}`, + expectError: false, + }, + { + name: "Validation error (missing required field name)", + schemaInfo: newJSONSchemaInfo(localSimpleRecordSchemaForSerialization), + args: map[string]any{ + "age": 25, + }, + expectedJSON: "", + expectError: true, + errorContains: "arguments validation failed", // Outer error from SerializeMCPRequestToPulsarPayload + }, + { + name: "SchemaInfo type is not JSON", + schemaInfo: &utils.SchemaInfo{Type: "AVRO", Schema: []byte(localSimpleRecordSchemaForSerialization)}, + args: map[string]any{ + "name": "David", + "age": 28, + }, + expectedJSON: "", + expectError: true, + errorContains: "expected JSON schema for validation, got AVRO", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + payload, err := converter.SerializeMCPRequestToPulsarPayload(tt.args, tt.schemaInfo) + + if tt.expectError { + assert.Error(t, err) + if tt.errorContains != "" { + assert.Contains(t, err.Error(), tt.errorContains) + } + assert.Nil(t, payload) + } else { + assert.NoError(t, err) + assert.NotNil(t, payload) + // For robust JSON comparison, unmarshal both expected and actual to maps and compare maps, + // or use a library that does canonical JSON comparison. + // For now, direct string comparison of compact JSON. + assert.JSONEq(t, tt.expectedJSON, string(payload), "Serialized JSON does not match expected JSON") + } + }) + } +} diff --git a/pkg/schema/number.go b/pkg/schema/number.go new file mode 100644 index 0000000..bbf89dd --- /dev/null +++ b/pkg/schema/number.go @@ -0,0 +1,104 @@ +package schema + +import ( + "fmt" + "math" + + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/common" +) + +// NumberConverter handles the conversion for Pulsar numeric schemas (INT8, INT16, INT32, INT64, FLOAT, DOUBLE). +type NumberConverter struct { + BaseConverter +} + +// NewNumberConverter creates a new instance of NumberConverter. +func NewNumberConverter() *NumberConverter { + return &NumberConverter{ + BaseConverter: BaseConverter{ + ParamName: ParamName, + }, + } +} + +func (c *NumberConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { + if schemaInfo.Type != "INT8" && schemaInfo.Type != "INT16" && schemaInfo.Type != "INT32" && schemaInfo.Type != "INT64" && schemaInfo.Type != "FLOAT" && schemaInfo.Type != "DOUBLE" { + return nil, fmt.Errorf("expected INT8, INT16, INT32, INT64, FLOAT, or DOUBLE schema, got %s", schemaInfo.Type) + } + + return []mcp.ToolOption{ + mcp.WithNumber(c.ParamName, mcp.Description(fmt.Sprintf("The input schema is a %s schema", schemaInfo.Type)), mcp.Required()), + }, nil +} + +func (c *NumberConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { + if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { + return nil, fmt.Errorf("arguments validation failed: %w", err) + } + + payload, err := common.RequiredParam[float64](arguments, c.ParamName) + if err != nil { + return nil, fmt.Errorf("failed to get payload: %w", err) + } + + switch targetPulsarSchemaInfo.Type { + case "INT8": + return []byte(fmt.Sprintf("%d", int8(payload))), nil + case "INT16": + return []byte(fmt.Sprintf("%d", int16(payload))), nil + case "INT32": + return []byte(fmt.Sprintf("%d", int32(payload))), nil + case "INT64": + return []byte(fmt.Sprintf("%d", int64(payload))), nil + case "FLOAT": + return []byte(fmt.Sprintf("%f", payload)), nil + case "DOUBLE": + return []byte(fmt.Sprintf("%f", payload)), nil + default: + return nil, fmt.Errorf("unsupported schema type: %s", targetPulsarSchemaInfo.Type) + } +} + +func (c *NumberConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { + if targetPulsarSchemaInfo.Type != "INT8" && targetPulsarSchemaInfo.Type != "INT16" && targetPulsarSchemaInfo.Type != "INT32" && targetPulsarSchemaInfo.Type != "INT64" && targetPulsarSchemaInfo.Type != "FLOAT" && targetPulsarSchemaInfo.Type != "DOUBLE" { + return fmt.Errorf("expected INT8, INT16, INT32, INT64, FLOAT, or DOUBLE schema, got %s", targetPulsarSchemaInfo.Type) + } + + payload, err := common.RequiredParam[float64](arguments, c.ParamName) + if err != nil { + return fmt.Errorf("failed to get payload: %w", err) + } + + switch targetPulsarSchemaInfo.Type { + case "INT8": + if payload < math.MinInt8 || payload > math.MaxInt8 { + return fmt.Errorf("payload out of range for INT8") + } + case "INT16": + if payload < math.MinInt16 || payload > math.MaxInt16 { + return fmt.Errorf("payload out of range for INT16") + } + case "INT32": + if payload < math.MinInt32 || payload > math.MaxInt32 { + return fmt.Errorf("payload out of range for INT32") + } + case "INT64": + if payload < math.MinInt64 || payload > math.MaxInt64 { + return fmt.Errorf("payload out of range for INT64") + } + case "FLOAT": + if payload < math.SmallestNonzeroFloat32 || payload > math.MaxFloat32 { + return fmt.Errorf("payload out of range for FLOAT") + } + case "DOUBLE": + if payload < math.SmallestNonzeroFloat64 || payload > math.MaxFloat64 { + return fmt.Errorf("payload out of range for DOUBLE") + } + default: + return fmt.Errorf("unsupported schema type: %s", targetPulsarSchemaInfo.Type) + } + + return nil +} diff --git a/pkg/schema/number_test.go b/pkg/schema/number_test.go new file mode 100644 index 0000000..d8d5e43 --- /dev/null +++ b/pkg/schema/number_test.go @@ -0,0 +1,300 @@ +package schema + +import ( + "fmt" + "math" + "testing" + + "github.com/apache/pulsar-client-go/pulsar" + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/stretchr/testify/assert" +) + +// Helper function to create SchemaInfo for number tests. +// Based on persistent linter errors, cliutils.SchemaInfo.Type is likely a string. +func newNumberSchemaInfo(schemaType pulsar.SchemaType) *cliutils.SchemaInfo { + return &cliutils.SchemaInfo{ + Type: GetSchemaType(schemaType), // Convert pulsar.SchemaType to string for cliutils.SchemaInfo.Type + Schema: []byte{}, + } +} + +func TestNewNumberConverter(t *testing.T) { + converter := NewNumberConverter() + assert.Equal(t, "payload", converter.ParamName) +} + +func TestNumberConverter_ToMCPToolInputSchemaProperties(t *testing.T) { + converter := NewNumberConverter() + tests := []struct { + name string + schemaInfo *cliutils.SchemaInfo // This is schema.SchemaInfo which has Type as string + expectedProps []mcp.ToolOption + expectError bool + expectedErrorMsg string + }{ + { + name: "INT8 type", + // newNumberSchemaInfo now correctly sets schemaInfo.Type as string (e.g., "INT8") + schemaInfo: newNumberSchemaInfo(pulsar.INT8), + expectedProps: []mcp.ToolOption{mcp.WithNumber("payload", mcp.Description("The input schema is a INT8 schema"), mcp.Required())}, + expectError: false, + }, + { + name: "INT16 type", + schemaInfo: newNumberSchemaInfo(pulsar.INT16), + expectedProps: []mcp.ToolOption{mcp.WithNumber("payload", mcp.Description("The input schema is a INT16 schema"), mcp.Required())}, + expectError: false, + }, + { + name: "INT32 type", + schemaInfo: newNumberSchemaInfo(pulsar.INT32), + expectedProps: []mcp.ToolOption{mcp.WithNumber("payload", mcp.Description("The input schema is a INT32 schema"), mcp.Required())}, + expectError: false, + }, + { + name: "INT64 type", + schemaInfo: newNumberSchemaInfo(pulsar.INT64), + expectedProps: []mcp.ToolOption{mcp.WithNumber("payload", mcp.Description("The input schema is a INT64 schema"), mcp.Required())}, + expectError: false, + }, + { + name: "FLOAT type", + schemaInfo: newNumberSchemaInfo(pulsar.FLOAT), + expectedProps: []mcp.ToolOption{mcp.WithNumber("payload", mcp.Description("The input schema is a FLOAT schema"), mcp.Required())}, + expectError: false, + }, + { + name: "DOUBLE type", + schemaInfo: newNumberSchemaInfo(pulsar.DOUBLE), + expectedProps: []mcp.ToolOption{mcp.WithNumber("payload", mcp.Description("The input schema is a DOUBLE schema"), mcp.Required())}, + expectError: false, + }, + { + name: "Unsupported type STRING", + schemaInfo: newNumberSchemaInfo(pulsar.STRING), + expectedProps: nil, + expectError: true, + expectedErrorMsg: "expected INT8, INT16, INT32, INT64, FLOAT, or DOUBLE schema, got STRING", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + props, err := converter.ToMCPToolInputSchemaProperties(tt.schemaInfo) + if tt.expectError { + assert.Error(t, err) + if tt.expectedErrorMsg != "" { + assert.Contains(t, err.Error(), tt.expectedErrorMsg) + } + assert.Nil(t, props) + } else { + assert.NoError(t, err) + var expectedTool = mcp.NewTool("test", tt.expectedProps...) + var actualTool = mcp.NewTool("test", props...) + expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() + actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() + assert.Equal(t, string(expectedToolSchemaJSON), string(actualToolSchemaJSON), "ToolOptions mismatch") + } + }) + } +} + +func TestNumberConverter_ValidateArguments(t *testing.T) { + converter := NewNumberConverter() + type testArgs struct { + name string + schemaInfo *cliutils.SchemaInfo + args map[string]any + expectError bool + expectedErrorMsg string + } + + tests := []testArgs{} + + numericTypes := []struct { + pulsarType pulsar.SchemaType + minVal float64 + maxVal float64 + }{ + {pulsar.INT8, -128, 127}, + {pulsar.INT16, -32768, 32767}, + {pulsar.INT32, -2147483648, 2147483647}, + {pulsar.INT64, -9007199254740991, 9007199254740991}, + {pulsar.FLOAT, math.SmallestNonzeroFloat32, math.MaxFloat32}, + {pulsar.DOUBLE, math.SmallestNonzeroFloat64, math.MaxFloat64}, + } + + for _, nt := range numericTypes { + schemaTypeName := GetSchemaType(nt.pulsarType) + tests = append(tests, []testArgs{ + { + name: fmt.Sprintf("%s - valid value", schemaTypeName), + schemaInfo: newNumberSchemaInfo(nt.pulsarType), + args: map[string]any{"payload": (nt.minVal + nt.maxVal) / 2}, + expectError: false, + }, + { + name: fmt.Sprintf("%s - min value", schemaTypeName), + schemaInfo: newNumberSchemaInfo(nt.pulsarType), + args: map[string]any{"payload": nt.minVal}, + expectError: false, + }, + { + name: fmt.Sprintf("%s - max value", schemaTypeName), + schemaInfo: newNumberSchemaInfo(nt.pulsarType), + args: map[string]any{"payload": nt.maxVal}, + expectError: false, + }, + }...) + if nt.pulsarType != pulsar.INT64 && nt.pulsarType != pulsar.FLOAT && nt.pulsarType != pulsar.DOUBLE { + tests = append(tests, []testArgs{ + { + name: fmt.Sprintf("%s - value below min", schemaTypeName), + schemaInfo: newNumberSchemaInfo(nt.pulsarType), + args: map[string]any{"payload": nt.minVal - 1}, + expectError: true, + expectedErrorMsg: fmt.Sprintf("payload out of range for %s", schemaTypeName), + }, + { + name: fmt.Sprintf("%s - value above max", schemaTypeName), + schemaInfo: newNumberSchemaInfo(nt.pulsarType), + args: map[string]any{"payload": nt.maxVal + 1}, + expectError: true, + expectedErrorMsg: fmt.Sprintf("payload out of range for %s", schemaTypeName), + }, + }...) + } + } + + // Common error cases for one type (e.g., INT32) - these should behave similarly for others + tests = append(tests, []testArgs{ + { + name: "INT32 - missing payload", + schemaInfo: newNumberSchemaInfo(pulsar.INT32), + args: map[string]any{}, + expectError: true, + expectedErrorMsg: "failed to get payload: missing required parameter: payload", + }, + { + name: "INT32 - wrong payload type (string)", + schemaInfo: newNumberSchemaInfo(pulsar.INT32), + args: map[string]any{"payload": "not a number"}, + expectError: true, + expectedErrorMsg: "failed to get payload: parameter payload is not of type float64", + }, + { + name: "INT32 - wrong schemaInfo.Type (e.g. STRING)", + schemaInfo: newNumberSchemaInfo(pulsar.STRING), + args: map[string]any{"payload": 123}, + expectError: true, + expectedErrorMsg: "expected INT8, INT16, INT32, INT64, FLOAT, or DOUBLE schema, got STRING", + }, + }...) + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := converter.ValidateArguments(tt.args, tt.schemaInfo) + if tt.expectError { + assert.Error(t, err) + if tt.expectedErrorMsg != "" { + assert.Contains(t, err.Error(), tt.expectedErrorMsg) + } + } else { + assert.NoError(t, err) + } + }) + } +} + +func TestNumberConverter_SerializeMCPRequestToPulsarPayload(t *testing.T) { + converter := NewNumberConverter() + type testArgs struct { + name string + schemaInfo *cliutils.SchemaInfo + args map[string]any + expectedPayload []byte + expectError bool + expectedErrorMsg string + } + + tests := []testArgs{} + + numericTypeCases := []struct { + pulsarType pulsar.SchemaType + validPayload any // Use any because direct float64 might lose precision for int64 for ex. + expectedBytes []byte + // Add specific out-of-range or invalid format cases if serialization handles them distinctly from validation + }{ + {pulsar.INT8, float64(127), []byte("127")}, + {pulsar.INT8, float64(-128), []byte("-128")}, + {pulsar.INT16, float64(32767), []byte("32767")}, + {pulsar.INT32, float64(2147483647), []byte("2147483647")}, + // For INT64, using a number representable by float64 without precision loss + {pulsar.INT64, float64(9007199254740991), []byte("9007199254740991")}, + {pulsar.FLOAT, float64(123.456), []byte(fmt.Sprintf("%f", float64(123.456)))}, // Note: float formatting can be tricky, use simple case + {pulsar.DOUBLE, float64(1.23456789e10), []byte(fmt.Sprintf("%f", float64(1.23456789e10)))}, // Again, simple case for float formatting + } + + for _, tc := range numericTypeCases { + schemaTypeName := GetSchemaType(tc.pulsarType) + tests = append(tests, testArgs{ + name: fmt.Sprintf("%s - valid serialization", schemaTypeName), + schemaInfo: newNumberSchemaInfo(tc.pulsarType), + args: map[string]any{"payload": tc.validPayload}, + expectedPayload: tc.expectedBytes, + expectError: false, + }) + } + + // Error cases (mostly delegation to ValidateArguments, so these check that path) + tests = append(tests, []testArgs{ + { + name: "Error - INT32 - missing payload", + schemaInfo: newNumberSchemaInfo(pulsar.INT32), + args: map[string]any{}, + expectError: true, + expectedErrorMsg: "arguments validation failed: failed to get payload: missing required parameter", + }, + { + name: "Error - INT32 - wrong payload type", + schemaInfo: newNumberSchemaInfo(pulsar.INT32), + args: map[string]any{"payload": "not a number"}, + expectError: true, + expectedErrorMsg: "arguments validation failed: failed to get payload: parameter payload is not of type float64", + }, + { + name: "Error - INT32 - value out of range", + schemaInfo: newNumberSchemaInfo(pulsar.INT32), + args: map[string]any{"payload": float64(21474836480)}, // Clearly out of INT32 range + expectError: true, + expectedErrorMsg: "arguments validation failed: payload out of range for INT32", + }, + { + name: "Error - Unsupported Schema Type (STRING)", + schemaInfo: newNumberSchemaInfo(pulsar.STRING), + args: map[string]any{"payload": 123}, + expectError: true, + expectedErrorMsg: "arguments validation failed: expected INT8, INT16, INT32, INT64, FLOAT, or DOUBLE schema, got STRING", + }, + }...) + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + payload, err := converter.SerializeMCPRequestToPulsarPayload(tt.args, tt.schemaInfo) + if tt.expectError { + assert.Error(t, err) + if tt.expectedErrorMsg != "" { + assert.Contains(t, err.Error(), tt.expectedErrorMsg) + } + assert.Nil(t, payload) + } else { + assert.NoError(t, err) + assert.Equal(t, tt.expectedPayload, payload) + } + }) + } +} + +// Future test functions will be added here. diff --git a/pkg/schema/string.go b/pkg/schema/string.go new file mode 100644 index 0000000..297a07f --- /dev/null +++ b/pkg/schema/string.go @@ -0,0 +1,63 @@ +package schema + +import ( + "fmt" + + cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/common" +) + +// StringConverter handles the conversion for Pulsar STRING schemas. +type StringConverter struct { + BaseConverter +} + +// NewStringConverter creates a new instance of StringConverter. +func NewStringConverter() *StringConverter { + return &StringConverter{ + BaseConverter: BaseConverter{ + ParamName: ParamName, + }, + } +} + +func (c *StringConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { + if schemaInfo.Type != "STRING" && schemaInfo.Type != "BYTES" { + return nil, fmt.Errorf("expected STRING or BYTES schema, got %s", schemaInfo.Type) + } + + return []mcp.ToolOption{ + mcp.WithString(c.ParamName, mcp.Description(fmt.Sprintf("The input schema is a %s schema", schemaInfo.Type)), mcp.Required()), + }, nil +} + +func (c *StringConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { + if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { + return nil, fmt.Errorf("arguments validation failed: %w", err) + } + + payload, err := common.RequiredParam[string](arguments, c.ParamName) + if err != nil { + return nil, fmt.Errorf("failed to get payload: %w", err) + } + + return []byte(payload), nil +} + +func (c *StringConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { + if targetPulsarSchemaInfo.Type != "STRING" && targetPulsarSchemaInfo.Type != "BYTES" { + return fmt.Errorf("expected STRING or BYTES schema, got %s", targetPulsarSchemaInfo.Type) + } + + payload, err := common.RequiredParam[string](arguments, c.ParamName) + if err != nil { + return fmt.Errorf("failed to get payload: %w", err) + } + + if payload == "" { + return fmt.Errorf("payload cannot be empty") + } + + return nil +} diff --git a/pkg/schema/string_test.go b/pkg/schema/string_test.go new file mode 100644 index 0000000..78a66bb --- /dev/null +++ b/pkg/schema/string_test.go @@ -0,0 +1,204 @@ +package schema + +import ( + "fmt" + "testing" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/stretchr/testify/assert" +) + +// Helper function to create SchemaInfo for string tests +func newStringSchemaInfo(schemaType string) *utils.SchemaInfo { + return &utils.SchemaInfo{ + Type: schemaType, + Schema: []byte{}, + } +} + +func TestNewStringConverter(t *testing.T) { + converter := NewStringConverter() + assert.NotNil(t, converter) + assert.Equal(t, ParamName, converter.ParamName, "ParamName should be initialized to the package constant") +} + +func TestStringConverter_ToMCPToolInputSchemaProperties(t *testing.T) { + converter := NewStringConverter() + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + wantOpts []mcp.ToolOption + wantErr bool + errContain string + }{ + { + name: "Valid STRING schema", + schemaInfo: newStringSchemaInfo("STRING"), + wantOpts: []mcp.ToolOption{ + mcp.WithString(ParamName, mcp.Description(fmt.Sprintf("The input schema is a %s schema", "STRING")), mcp.Required()), + }, + wantErr: false, + }, + { + name: "Valid BYTES schema", + schemaInfo: newStringSchemaInfo("BYTES"), + wantOpts: []mcp.ToolOption{ + mcp.WithString(ParamName, mcp.Description(fmt.Sprintf("The input schema is a %s schema", "BYTES")), mcp.Required()), + }, + wantErr: false, + }, + { + name: "Invalid schema type (JSON)", + schemaInfo: newStringSchemaInfo("JSON"), + wantOpts: nil, + wantErr: true, + errContain: "expected STRING or BYTES schema, got JSON", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + gotOpts, err := converter.ToMCPToolInputSchemaProperties(tt.schemaInfo) + if (err != nil) != tt.wantErr { + t.Errorf("ToMCPToolInputSchemaProperties() error = %v, wantErr %v", err, tt.wantErr) + return + } + var expectedTool = mcp.NewTool("test", gotOpts...) + var actualTool = mcp.NewTool("test", tt.wantOpts...) + expectedToolInputSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() + actualToolInputSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() + assert.Equal(t, string(expectedToolInputSchemaJSON), string(actualToolInputSchemaJSON)) + if tt.wantErr && err != nil { + assert.Contains(t, err.Error(), tt.errContain) + } + }) + } +} + +func TestStringConverter_ValidateArguments(t *testing.T) { + converter := NewStringConverter() + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + args map[string]any + wantErr bool + errContain string + }{ + { + name: "Valid arguments for STRING schema", + schemaInfo: newStringSchemaInfo("STRING"), + args: map[string]any{ParamName: "hello world"}, + wantErr: false, + }, + { + name: "Valid arguments for BYTES schema", + schemaInfo: newStringSchemaInfo("BYTES"), + args: map[string]any{ParamName: "bytes content"}, + wantErr: false, + }, + { + name: "Invalid schema type (JSON)", + schemaInfo: newStringSchemaInfo("JSON"), + args: map[string]any{ParamName: "test"}, + wantErr: true, + errContain: "expected STRING or BYTES schema, got JSON", + }, + { + name: "Missing payload argument", + schemaInfo: newStringSchemaInfo("STRING"), + args: map[string]any{}, + wantErr: true, + errContain: "failed to get payload: missing required parameter: payload", + }, + { + name: "Incorrect payload type (int instead of string)", + schemaInfo: newStringSchemaInfo("STRING"), + args: map[string]any{ParamName: 123}, + wantErr: true, + errContain: "failed to get payload: parameter payload is not of type string", + }, + { + name: "Empty string payload", + schemaInfo: newStringSchemaInfo("STRING"), + args: map[string]any{ParamName: ""}, + wantErr: true, + errContain: "failed to get payload: missing required parameter: payload", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := converter.ValidateArguments(tt.args, tt.schemaInfo) + if (err != nil) != tt.wantErr { + t.Errorf("ValidateArguments() error = %v, wantErr %v", err, tt.wantErr) + return + } + if tt.wantErr && err != nil { + assert.Contains(t, err.Error(), tt.errContain) + } + }) + } +} + +func TestStringConverter_SerializeMCPRequestToPulsarPayload(t *testing.T) { + converter := NewStringConverter() + + tests := []struct { + name string + schemaInfo *utils.SchemaInfo + args map[string]any + want []byte + wantErr bool + errContain string + }{ + { + name: "Serialize 'hello' for STRING schema", + schemaInfo: newStringSchemaInfo("STRING"), + args: map[string]any{ParamName: "hello"}, + want: []byte("hello"), + wantErr: false, + }, + { + name: "Serialize 'bytes content' for BYTES schema", + schemaInfo: newStringSchemaInfo("BYTES"), + args: map[string]any{ParamName: "bytes content"}, + want: []byte("bytes content"), + wantErr: false, + }, + { + name: "Validation error (e.g., empty string)", + schemaInfo: newStringSchemaInfo("STRING"), + args: map[string]any{ParamName: ""}, + want: nil, + wantErr: true, + errContain: "arguments validation failed", + }, + { + name: "Validation error (e.g., missing payload)", + schemaInfo: newStringSchemaInfo("STRING"), + args: map[string]any{}, + want: nil, + wantErr: true, + errContain: "arguments validation failed", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got, err := converter.SerializeMCPRequestToPulsarPayload(tt.args, tt.schemaInfo) + if (err != nil) != tt.wantErr { + t.Errorf("SerializeMCPRequestToPulsarPayload() error = %v, wantErr %v", err, tt.wantErr) + return + } + assert.Equal(t, tt.want, got) + if tt.wantErr && err != nil { + assert.Contains(t, err.Error(), tt.errContain) + } + }) + } +} + +// Future test functions will be added here. diff --git a/sdk/sdk-apiserver/go.mod b/sdk/sdk-apiserver/go.mod index 276dd21..c780ba7 100644 --- a/sdk/sdk-apiserver/go.mod +++ b/sdk/sdk-apiserver/go.mod @@ -1,8 +1,9 @@ module github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver -go 1.13 +go 1.21 -require ( - github.com/google/go-cmp v0.6.0 // indirect - golang.org/x/oauth2 v0.25.0 -) +toolchain go1.24.3 + +require golang.org/x/oauth2 v0.25.0 + +require github.com/google/go-cmp v0.7.0 // indirect diff --git a/sdk/sdk-apiserver/go.sum b/sdk/sdk-apiserver/go.sum index f7db442..74a187d 100644 --- a/sdk/sdk-apiserver/go.sum +++ b/sdk/sdk-apiserver/go.sum @@ -1,2 +1,2 @@ -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= From cbbbf01fa44dd4d675508ad60a792eff3ffe1313 Mon Sep 17 00:00:00 2001 From: Le Quoc Thinh Date: Mon, 9 Jun 2025 10:25:16 +0700 Subject: [PATCH 28/85] fix: get pulsar service url from cmd (#42) While working with the external-pulsar setup, I was unable to find a reliable method to inject the pulsar-service-url. This change introduces a fix to parse and apply the service URL from command-line input instead. **=> Updated logic to extract pulsar-service-url from command-line arguments.** --- pkg/config/options.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/config/options.go b/pkg/config/options.go index 3ce1036..ae96d1b 100644 --- a/pkg/config/options.go +++ b/pkg/config/options.go @@ -139,6 +139,8 @@ func (o *Options) AddFlags(cmd *cobra.Command) { "The bearer token to use for the schema registry [env: SNMCP_KAFKA_SCHEMA_REGISTRY_BEARER_TOKEN]") cmd.PersistentFlags().StringVar(&o.Pulsar.WebServiceURL, "pulsar-web-service-url", "", "The web service URL to use for Pulsar [env: SNMCP_PULSAR_WEB_SERVICE_URL]") + cmd.PersistentFlags().StringVar(&o.Pulsar.ServiceURL, "pulsar-service-url", "", + "The service URL to use for Pulsar [env: SNMCP_PULSAR_SERVICE_URL]") cmd.PersistentFlags().StringVar(&o.Pulsar.AuthPlugin, "pulsar-auth-plugin", "", "The auth plugin to use for Pulsar [env: SNMCP_PULSAR_AUTH_PLUGIN]") cmd.PersistentFlags().StringVar(&o.Pulsar.AuthParams, "pulsar-auth-params", "", @@ -190,6 +192,7 @@ func (o *Options) AddFlags(cmd *cobra.Command) { viper.BindPFlag("kafka-schema-registry-auth-pass", cmd.PersistentFlags().Lookup("kafka-schema-registry-auth-pass")) viper.BindPFlag("kafka-schema-registry-bearer-token", cmd.PersistentFlags().Lookup("kafka-schema-registry-bearer-token")) viper.BindPFlag("pulsar-web-service-url", cmd.PersistentFlags().Lookup("pulsar-web-service-url")) + viper.BindPFlag("pulsar-service-url", cmd.PersistentFlags().Lookup("pulsar-service-url")) viper.BindPFlag("pulsar-auth-plugin", cmd.PersistentFlags().Lookup("pulsar-auth-plugin")) viper.BindPFlag("pulsar-auth-params", cmd.PersistentFlags().Lookup("pulsar-auth-params")) viper.BindPFlag("pulsar-tls-allow-insecure-connection", cmd.PersistentFlags().Lookup("pulsar-tls-allow-insecure-connection")) @@ -350,6 +353,13 @@ func (o *Options) Complete() error { o.Pulsar.WebServiceURL = wsURL } } + + if o.Pulsar.ServiceURL == "" { + if serviceURL := viper.GetString("pulsar-service-url"); serviceURL != "" { + o.Pulsar.ServiceURL = serviceURL + } + } + if o.Pulsar.AuthPlugin == "" { if authPlugin := viper.GetString("pulsar-auth-plugin"); authPlugin != "" { o.Pulsar.AuthPlugin = authPlugin From 9760de5479bf44c64ea0cb5fb06b182f23bd3491 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 16 Jun 2025 15:33:35 +0800 Subject: [PATCH 29/85] bump to mcp-go 0.31.0 (#43) --- go.mod | 2 +- go.sum | 4 +- go.work.sum | 4 +- pkg/cmd/mcp/sse.go | 2 +- pkg/common/utils.go | 13 ++ pkg/mcp/context_tools.go | 4 +- pkg/mcp/kafka_admin_connect_tools.go | 22 +- pkg/mcp/kafka_admin_groups_tools.go | 25 +-- pkg/mcp/kafka_admin_partitions_tools.go | 9 +- pkg/mcp/kafka_admin_sr_tools.go | 29 ++- pkg/mcp/kafka_admin_topics_tools.go | 31 +-- pkg/mcp/kafka_client_consume_tools.go | 23 +- pkg/mcp/kafka_client_produce_tools.go | 55 +++-- pkg/mcp/pulsar_admin_brokers_stats_tools.go | 5 +- pkg/mcp/pulsar_admin_brokers_tools.go | 19 +- pkg/mcp/pulsar_admin_cluster_tools.go | 55 +++-- pkg/mcp/pulsar_admin_functions_tools.go | 59 +++-- .../pulsar_admin_functions_worker_tools.go | 3 +- .../pulsar_admin_namespace_policy_tools.go | 205 +++++++++--------- pkg/mcp/pulsar_admin_namespace_tools.go | 44 ++-- .../pulsar_admin_nsisolationpolicy_tools.go | 52 ++--- pkg/mcp/pulsar_admin_packages_tools.go | 27 ++- pkg/mcp/pulsar_admin_resourcequotas_tools.go | 41 ++-- pkg/mcp/pulsar_admin_schemas_tools.go | 13 +- pkg/mcp/pulsar_admin_sinks_tools.go | 81 ++++--- pkg/mcp/pulsar_admin_sources_tools.go | 97 ++++----- pkg/mcp/pulsar_admin_subscription_tools.go | 33 ++- pkg/mcp/pulsar_admin_tenant_tools.go | 31 +-- pkg/mcp/pulsar_admin_topic_policy_tools.go | 199 +++++++++-------- pkg/mcp/pulsar_admin_topic_tools.go | 61 +++--- pkg/mcp/pulsar_client_consume_tools.go | 19 +- pkg/mcp/pulsar_client_produce_tools.go | 31 +-- pkg/mcp/streamnative_resources_log_tools.go | 39 +--- pkg/mcp/streamnative_resources_tools.go | 11 +- pkg/pftools/manager.go | 2 +- 35 files changed, 626 insertions(+), 724 deletions(-) diff --git a/go.mod b/go.mod index 899189a..750bb8b 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/google/go-cmp v0.7.0 github.com/hamba/avro/v2 v2.28.0 - github.com/mark3labs/mcp-go v0.28.0 + github.com/mark3labs/mcp-go v0.31.0 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index 835b7fd..792a117 100644 --- a/go.sum +++ b/go.sum @@ -129,8 +129,8 @@ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mark3labs/mcp-go v0.28.0 h1:7yl4y5D1KYU2f/9Uxp7xfLIggfunHoESCRbrjcytcLM= -github.com/mark3labs/mcp-go v0.28.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.31.0 h1:4UxSV8aM770OPmTvaVe/b1rA2oZAjBMhGBfUgOGut+4= +github.com/mark3labs/mcp-go v0.31.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= diff --git a/go.work.sum b/go.work.sum index 22423cd..7123498 100644 --- a/go.work.sum +++ b/go.work.sum @@ -138,8 +138,8 @@ github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+ github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/mark3labs/mcp-go v0.23.1 h1:RzTzZ5kJ+HxwnutKA4rll8N/pKV6Wh5dhCmiJUu5S9I= github.com/mark3labs/mcp-go v0.23.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= -github.com/mark3labs/mcp-go v0.28.0 h1:7yl4y5D1KYU2f/9Uxp7xfLIggfunHoESCRbrjcytcLM= -github.com/mark3labs/mcp-go v0.28.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.31.0 h1:4UxSV8aM770OPmTvaVe/b1rA2oZAjBMhGBfUgOGut+4= +github.com/mark3labs/mcp-go v0.31.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go index 3222c61..86ce0fb 100644 --- a/pkg/cmd/mcp/sse.go +++ b/pkg/cmd/mcp/sse.go @@ -78,7 +78,7 @@ func runSseServer(configOpts *ServerOptions) error { sseServer := server.NewSSEServer( mcpServer, server.WithStaticBasePath(configOpts.HTTPPath), - server.WithHTTPContextFunc(func(ctx context.Context, _ *http.Request) context.Context { + server.WithSSEContextFunc(func(ctx context.Context, _ *http.Request) context.Context { return context.WithValue(ctx, common.OptionsKey, configOpts.Options) }), ) diff --git a/pkg/common/utils.go b/pkg/common/utils.go index e607701..2049fbf 100644 --- a/pkg/common/utils.go +++ b/pkg/common/utils.go @@ -180,6 +180,19 @@ func RequiredParamObject(arguments map[string]interface{}, name string) (map[str return nil, fmt.Errorf("%s parameter must be an object", name) } +func OptionalParamObject(arguments map[string]interface{}, name string) (map[string]interface{}, bool) { + paramValue, found := arguments[name] + if !found || paramValue == nil { + return nil, false + } + + if mapVal, ok := paramValue.(map[string]interface{}); ok { + return mapVal, true + } + + return nil, false +} + func GetOptions(ctx context.Context) *config.Options { return ctx.Value(OptionsKey).(*config.Options) } diff --git a/pkg/mcp/context_tools.go b/pkg/mcp/context_tools.go index fbf112b..469e217 100644 --- a/pkg/mcp/context_tools.go +++ b/pkg/mcp/context_tools.go @@ -93,12 +93,12 @@ func handleWhoami(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResu func handleSetContext(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { options := ctx.Value(common.OptionsKey).(*config.Options) - instanceName, err := common.RequiredParam[string](request.Params.Arguments, "instanceName") + instanceName, err := request.RequireString("instanceName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get instance name: %v", err)), nil } - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "clusterName") + clusterName, err := request.RequireString("clusterName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go index df5878d..a5ad24f 100644 --- a/pkg/mcp/kafka_admin_connect_tools.go +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -151,12 +151,12 @@ func KafkaAdminAddKafkaConnectTools(s *server.MCPServer, readOnly bool, features func handleKafkaConnectTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -256,7 +256,7 @@ func handleKafkaConnectorsList(ctx context.Context, admin kafka.Connect, _ mcp.C func handleKafkaConnectorGet(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get a specific connector - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -276,12 +276,12 @@ func handleKafkaConnectorGet(ctx context.Context, admin kafka.Connect, request m func handleKafkaConnectorCreate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Create a new connector - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } - configMap, err := common.RequiredParamObject(request.Params.Arguments, "config") + configMap, err := common.RequiredParamObject(request.GetArguments(), "config") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil } @@ -305,12 +305,12 @@ func handleKafkaConnectorCreate(ctx context.Context, admin kafka.Connect, reques func handleKafkaConnectorUpdate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Update a connector - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } - configMap, err := common.RequiredParamObject(request.Params.Arguments, "config") + configMap, err := common.RequiredParamObject(request.GetArguments(), "config") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil } @@ -334,7 +334,7 @@ func handleKafkaConnectorUpdate(ctx context.Context, admin kafka.Connect, reques func handleKafkaConnectorDelete(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Delete a connector - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -349,7 +349,7 @@ func handleKafkaConnectorDelete(ctx context.Context, admin kafka.Connect, reques func handleKafkaConnectorRestart(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Restart a connector - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -364,7 +364,7 @@ func handleKafkaConnectorRestart(ctx context.Context, admin kafka.Connect, reque func handleKafkaConnectorPause(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Pause a connector - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } @@ -379,7 +379,7 @@ func handleKafkaConnectorPause(ctx context.Context, admin kafka.Connect, request func handleKafkaConnectorResume(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Resume a connector - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index 363f199..66a7c38 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -26,7 +26,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kadm" ) @@ -125,12 +124,12 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str func handleKafkaGroupsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -181,7 +180,7 @@ func handleKafkaGroupsTool(readOnly bool) func(context.Context, mcp.CallToolRequ } func handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") + groupName, err := request.RequireString("group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } @@ -210,12 +209,12 @@ func handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request m } func handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") + groupName, err := request.RequireString("group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } - members, err := common.RequiredParam[string](request.Params.Arguments, "members") + members, err := request.RequireString("members") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get members: %v", err)), nil } @@ -248,7 +247,7 @@ func handleKafkaGroupsList(ctx context.Context, admin *kadm.Client, _ mcp.CallTo } func handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") + groupName, err := request.RequireString("group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } @@ -267,12 +266,12 @@ func handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mc } func handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") + groupName, err := request.RequireString("group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -303,23 +302,23 @@ func handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, reque func handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - groupName, err := common.RequiredParam[string](request.Params.Arguments, "group") + groupName, err := request.RequireString("group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil } - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - partition, err := common.RequiredParam[float64](request.Params.Arguments, "partition") + partition, err := request.RequireFloat("partition") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get partition number: %v", err)), nil } partitionInt := int32(partition) - offset, err := common.RequiredParam[float64](request.Params.Arguments, "offset") + offset, err := request.RequireFloat("offset") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get offset value: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_partitions_tools.go b/pkg/mcp/kafka_admin_partitions_tools.go index 9448602..a1a3eb5 100644 --- a/pkg/mcp/kafka_admin_partitions_tools.go +++ b/pkg/mcp/kafka_admin_partitions_tools.go @@ -26,7 +26,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kadm" ) @@ -88,12 +87,12 @@ func KafkaAdminAddPartitionsTools(s *server.MCPServer, readOnly bool, features [ func handleKafkaPartitionsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -129,12 +128,12 @@ func handleKafkaPartitionsTool(readOnly bool) func(context.Context, mcp.CallTool } func handleKafkaPartitionUpdate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - topicName, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topicName, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - newTotal, err := common.RequiredParam[int](request.Params.Arguments, "new-total") + newTotal, err := request.RequireInt("new-total") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get new total: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index eab524e..35093d3 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -26,7 +26,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/sr" ) @@ -150,12 +149,12 @@ func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, featur func handleKafkaSchemaRegistryTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -246,7 +245,7 @@ func handleKafkaSubjectsList(ctx context.Context, admin *sr.Client, _ mcp.CallTo } func handleKafkaVersionsList(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") + subject, err := request.RequireString("subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } @@ -279,7 +278,7 @@ func handleKafkaTypesList(ctx context.Context, admin *sr.Client, _ mcp.CallToolR } func handleKafkaSubjectGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") + subject, err := request.RequireString("subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } @@ -298,17 +297,17 @@ func handleKafkaSubjectGet(ctx context.Context, admin *sr.Client, request mcp.Ca } func handleKafkaSubjectCreate(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") + subject, err := request.RequireString("subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - schema, err := common.RequiredParam[string](request.Params.Arguments, "schema") + schema, err := request.RequireString("schema") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil } - typeString, err := common.RequiredParam[string](request.Params.Arguments, "type") + typeString, err := request.RequireString("type") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema type: %v", err)), nil } @@ -338,12 +337,12 @@ func handleKafkaSubjectCreate(ctx context.Context, admin *sr.Client, request mcp } func handleKafkaSubjectDelete(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") + subject, err := request.RequireString("subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - version, err := common.RequiredParam[int](request.Params.Arguments, "version") + version, err := request.RequireInt("version") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil } @@ -357,12 +356,12 @@ func handleKafkaSubjectDelete(ctx context.Context, admin *sr.Client, request mcp } func handleKafkaVersionGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") + subject, err := request.RequireString("subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - version, err := common.RequiredParam[int](request.Params.Arguments, "version") + version, err := request.RequireInt("version") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil } @@ -381,7 +380,7 @@ func handleKafkaVersionGet(ctx context.Context, admin *sr.Client, request mcp.Ca } func handleKafkaCompatibilityGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") + subject, err := request.RequireString("subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } @@ -397,12 +396,12 @@ func handleKafkaCompatibilityGet(ctx context.Context, admin *sr.Client, request } func handleKafkaCompatibilitySet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := common.RequiredParam[string](request.Params.Arguments, "subject") + subject, err := request.RequireString("subject") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil } - compatibility, err := common.RequiredParam[string](request.Params.Arguments, "compatibility") + compatibility, err := request.RequireString("compatibility") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility: %v", err)), nil } diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go index c83be6f..5ea1f75 100644 --- a/pkg/mcp/kafka_admin_topics_tools.go +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -128,12 +128,12 @@ func KafkaAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []stri func handleKafkaTopicTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -183,7 +183,7 @@ func handleKafkaTopicTool(readOnly bool) func(context.Context, mcp.CallToolReque func handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") + topicName, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -205,26 +205,20 @@ func handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.Ca func handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") + topicName, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } // Get optional parameters - partitions, ok := common.OptionalParam[float64](request.Params.Arguments, "partitions") - if !ok { - partitions = 1 // Default to 1 partition - } + partitions := request.GetFloat("partitions", 1) - replicationFactor, ok := common.OptionalParam[float64](request.Params.Arguments, "replication-factor") - if !ok { - replicationFactor = 1 // Default to replication factor 1 - } + replicationFactor := request.GetFloat("replication-factor", 1) // Get configs if provided var configEntries map[string]*string - configsArray, ok := common.OptionalParamConfigs(request.Params.Arguments, "configs") - if ok { + configsArray := request.GetStringSlice("configs", []string{}) + if len(configsArray) > 0 { configEntries, err = common.ParseMessageConfigs(configsArray) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to parse configs: %v", err)), nil @@ -242,7 +236,7 @@ func handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp func handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") + topicName, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -258,10 +252,7 @@ func handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp func handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - includeInternal, ok := common.OptionalParam[bool](request.Params.Arguments, "include-internal") - if !ok { - includeInternal = false - } + includeInternal := request.GetBool("include-internal", false) var topics kadm.TopicDetails var err error @@ -293,7 +284,7 @@ func handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp. func handleKafkaTopicMetadata(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := common.RequiredParam[string](request.Params.Arguments, "name") + topicName, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go index 10d9c46..d8401d5 100644 --- a/pkg/mcp/kafka_client_consume_tools.go +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/sirupsen/logrus" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/twmb/franz-go/pkg/kgo" "github.com/twmb/franz-go/pkg/sr" @@ -115,7 +114,7 @@ func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logru func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { opts := []kgo.Opt{} // Get required parameters - topicName, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topicName, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } @@ -125,28 +124,16 @@ func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp. opts = append(opts, kgo.KeepRetryableFetchErrors()) w := logger.Writer() opts = append(opts, kgo.WithLogger(kgo.BasicLogger(w, kgo.LogLevelInfo, nil))) - maxMessages, hasMaxMessages := common.OptionalParam[float64](request.Params.Arguments, "max-messages") - if !hasMaxMessages { - maxMessages = 10 // Default to 10 messages - } + maxMessages := request.GetFloat("max-messages", 10) - timeoutSec, hasTimeout := common.OptionalParam[float64](request.Params.Arguments, "timeout") - if !hasTimeout { - timeoutSec = 10 // Default to 10 seconds - } + timeoutSec := request.GetFloat("timeout", 10) - group, hasGroup := common.OptionalParam[string](request.Params.Arguments, "group") - if !hasGroup { - group = "" - } + group := request.GetString("group", "") if group != "" { opts = append(opts, kgo.ConsumerGroup(group)) } - offsetStr, hasOffset := common.OptionalParam[string](request.Params.Arguments, "offset") - if !hasOffset { - offsetStr = "atstart" // Default to starting at the beginning - } + offsetStr := request.GetString("offset", "atstart") var offset kgo.Offset switch offsetStr { diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index 0b2b5c5..7ae1a6f 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -66,7 +66,7 @@ func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []s "4. Message with headers - Include metadata with your message:\n" + " topic: \"my-topic\"\n" + " value: \"Message with headers\"\n" + - " headers: [{\"key\": \"source\", \"value\": \"mcp-tool\"}, {\"key\": \"timestamp\", \"value\": \"2023-06-01\"}]\n\n" + + " headers: [\"source=mcp-tool\", \"timestamp=2023-06-01\"]\n\n" + "5. Specific partition - Send to a particular partition:\n" + " topic: \"my-topic\"\n" + " value: \"Targeted message\"\n" + @@ -91,15 +91,13 @@ func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []s "This is the actual payload that will be delivered to consumers. It can be a JSON string, and the system will automatically serialize it to the appropriate format based on the schema registry if it is available."), ), mcp.WithArray("headers", - mcp.Description("Message headers in the format of [{\"key\": \"value\"}]. "+ + mcp.Description("Message headers in the format of [\"key=value\"]. "+ "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ "They are passed along with the message to consumers."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "header entry", - }, - ), + mcp.Items(map[string]interface{}{ + "type": "string", + "description": "key value pair in the format of \"key=value\"", + }), ), mcp.WithBoolean("sync", mcp.Description("Whether to wait for server acknowledgment before returning. "+ @@ -113,25 +111,22 @@ func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []s // handleKafkaProduce handles producing messages to a Kafka topic func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topicName, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topicName, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } // Handle single message case // Get value from parameter or file - value, err := common.RequiredParam[string](request.Params.Arguments, "value") + value, err := request.RequireString("value") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get value: %v", err)), nil } // Get optional parameters - key, hasKey := common.OptionalParam[string](request.Params.Arguments, "key") - headers, hasHeaders := common.OptionalParam[[]interface{}](request.Params.Arguments, "headers") - sync := true - if syncVal, hasSync := common.OptionalParam[bool](request.Params.Arguments, "sync"); hasSync { - sync = syncVal - } + key := request.GetString("key", "") + headers := request.GetStringSlice("headers", []string{}) + sync := request.GetBool("sync", true) // Create Kafka client kafkaClient, err := kafka.GetKafkaClient() @@ -194,13 +189,17 @@ func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp. } // Add key if provided - if hasKey { + if key != "" { record.Key = []byte(key) } // Add headers if provided - if hasHeaders { - record.Headers = parseHeaders(headers) + if len(headers) > 0 { + headerEntries, err := common.ParseMessageConfigs(headers) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse headers: %v", err)), nil + } + record.Headers = parseHeaders(headerEntries) } if schemaReady { @@ -225,19 +224,19 @@ func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp. } // parseHeaders converts the headers array to kgo.RecordHeader format -func parseHeaders(headers []interface{}) []kgo.RecordHeader { +func parseHeaders(headers map[string]*string) []kgo.RecordHeader { var recordHeaders []kgo.RecordHeader - for _, header := range headers { - headerMap, ok := header.(map[string]interface{}) - if !ok { - continue - } - - for key, value := range headerMap { + for key, value := range headers { + if value == nil { + recordHeaders = append(recordHeaders, kgo.RecordHeader{ + Key: key, + Value: []byte{}, + }) + } else { recordHeaders = append(recordHeaders, kgo.RecordHeader{ Key: key, - Value: []byte(value.(string)), + Value: []byte(*value), }) } } diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go index 830b0ef..7e4f811 100644 --- a/pkg/mcp/pulsar_admin_brokers_stats_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -26,7 +26,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -71,7 +70,7 @@ func handleBrokerStats(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp. } // Get required resource parameter - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + "Please specify one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.")), nil @@ -86,7 +85,7 @@ func handleBrokerStats(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp. case "topics": return handleTopics(client) case "allocator_stats": - allocatorName, err := common.RequiredParam[string](request.Params.Arguments, "allocator_name") + allocatorName, err := request.RequireString("allocator_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'allocator_name' for allocator_stats resource. " + "Please provide the name of the allocator to get statistics for.")), nil diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go index 388233c..70d404c 100644 --- a/pkg/mcp/pulsar_admin_brokers_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -26,7 +26,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -97,13 +96,13 @@ func handleBrokerTool(readOnly bool) func(context.Context, mcp.CallToolRequest) } // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + "Please specify one of: brokers, health, config, namespaces.")), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + "Please specify one of: list, get, update, delete based on the resource type.")), nil @@ -163,7 +162,7 @@ func validateResourceOperation(resource, operation string) (bool, string) { func handleBrokersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "list": - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "clusterName") + clusterName, err := request.RequireString("clusterName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + "Please provide the name of the Pulsar cluster to list brokers for.")), nil @@ -208,7 +207,7 @@ func handleHealthResource(client cmdutils.Client, operation string, _ mcp.CallTo func handleConfigResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - configType, err := common.RequiredParam[string](request.Params.Arguments, "configType") + configType, err := request.RequireString("configType") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configType'. " + "Please specify one of: dynamic, runtime, internal, all_dynamic.")), nil @@ -243,13 +242,13 @@ func handleConfigResource(client cmdutils.Client, operation string, request mcp. return mcp.NewToolResultText(string(resultJSON)), nil case "update": - configName, err := common.RequiredParam[string](request.Params.Arguments, "configName") + configName, err := request.RequireString("configName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + "Please provide the name of the configuration parameter to update.")), nil } - configValue, err := common.RequiredParam[string](request.Params.Arguments, "configValue") + configValue, err := request.RequireString("configValue") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configValue'. " + "Please provide the new value for the configuration parameter.")), nil @@ -265,7 +264,7 @@ func handleConfigResource(client cmdutils.Client, operation string, request mcp. configName, configValue)), nil case "delete": - configName, err := common.RequiredParam[string](request.Params.Arguments, "configName") + configName, err := request.RequireString("configName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + "Please provide the name of the configuration parameter to delete.")), nil @@ -289,13 +288,13 @@ func handleConfigResource(client cmdutils.Client, operation string, request mcp. func handleNamespacesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "clusterName") + clusterName, err := request.RequireString("clusterName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + "Please provide the name of the Pulsar cluster.")), nil } - brokerURL, err := common.RequiredParam[string](request.Params.Arguments, "brokerUrl") + brokerURL, err := request.RequireString("brokerUrl") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokerUrl'. " + "Please provide the URL of the broker (e.g., '127.0.0.1:8080').")), nil diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index cc89fb6..7f526a4 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -27,7 +27,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -114,13 +113,13 @@ func handleClusterTool(readOnly bool) func(context.Context, mcp.CallToolRequest) } // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + "Please specify one of: cluster, peer_clusters, failure_domain.")), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + "Please specify one of: list, get, create, update, delete based on the resource type.")), nil @@ -180,7 +179,7 @@ func handleClusterResource(client cmdutils.Client, operation string, request mcp case "list": return handleClusterList(client) case "get": - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to get information for.")), nil @@ -191,7 +190,7 @@ func handleClusterResource(client cmdutils.Client, operation string, request mcp case "update": return updateCluster(client, request) case "delete": - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to delete.")), nil @@ -205,7 +204,7 @@ func handleClusterResource(client cmdutils.Client, operation string, request mcp // Handle peer_clusters resource operations func handlePeerClustersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to operate on.")), nil @@ -215,7 +214,7 @@ func handlePeerClustersResource(client cmdutils.Client, operation string, reques case "get": return getPeerClusters(client, clusterName) case "update": - peerClusters, err := common.RequiredParamArray[string](request.Params.Arguments, "peer_cluster_names") + peerClusters, err := request.RequireStringSlice("peer_cluster_names") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'peer_cluster_names'. " + "Please provide an array of peer cluster names to set.")), nil @@ -229,7 +228,7 @@ func handlePeerClustersResource(client cmdutils.Client, operation string, reques // Handle failure_domain resource operations func handleFailureDomainResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to operate on.")), nil @@ -239,7 +238,7 @@ func handleFailureDomainResource(client cmdutils.Client, operation string, reque case "list": return listFailureDomains(client, clusterName) case "get": - domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := request.RequireString("domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to get.")), nil @@ -250,7 +249,7 @@ func handleFailureDomainResource(client cmdutils.Client, operation string, reque case "update": return updateFailureDomain(client, request) case "delete": - domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := request.RequireString("domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to delete.")), nil @@ -297,7 +296,7 @@ func getClusterData(client cmdutils.Client, clusterName string) (*mcp.CallToolRe // createCluster creates a new Pulsar cluster func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to create.")), nil @@ -308,19 +307,19 @@ func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca } // Set optional parameters if provided - if serviceURL, ok := common.OptionalParam[string](request.Params.Arguments, "service_url"); ok { + if serviceURL := request.GetString("service_url", ""); serviceURL != "" { clusterData.ServiceURL = serviceURL } - if serviceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "service_url_tls"); ok { + if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { clusterData.ServiceURLTls = serviceURLTls } - if brokerServiceURL, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url"); ok { + if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { clusterData.BrokerServiceURL = brokerServiceURL } - if brokerServiceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { + if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { clusterData.BrokerServiceURLTls = brokerServiceURLTls } - if peerClusters, ok := common.OptionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { + if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { clusterData.PeerClusterNames = peerClusters } @@ -334,7 +333,7 @@ func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // updateCluster updates an existing Pulsar cluster func updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster to update.")), nil @@ -345,19 +344,19 @@ func updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca } // Set optional parameters if provided - if serviceURL, ok := common.OptionalParam[string](request.Params.Arguments, "service_url"); ok { + if serviceURL := request.GetString("service_url", ""); serviceURL != "" { clusterData.ServiceURL = serviceURL } - if serviceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "service_url_tls"); ok { + if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { clusterData.ServiceURLTls = serviceURLTls } - if brokerServiceURL, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url"); ok { + if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { clusterData.BrokerServiceURL = brokerServiceURL } - if brokerServiceURLTls, ok := common.OptionalParam[string](request.Params.Arguments, "broker_service_url_tls"); ok { + if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { clusterData.BrokerServiceURLTls = brokerServiceURLTls } - if peerClusters, ok := common.OptionalParamArray[string](request.Params.Arguments, "peer_cluster_names"); ok { + if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { clusterData.PeerClusterNames = peerClusters } @@ -439,19 +438,19 @@ func listFailureDomains(client cmdutils.Client, clusterName string) (*mcp.CallTo // createFailureDomain creates a new failure domain in the specified cluster func createFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster.")), nil } - domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := request.RequireString("domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to create.")), nil } - brokers, err := common.RequiredParamArray[string](request.Params.Arguments, "brokers") + brokers, err := request.RequireStringSlice("brokers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + "Please provide an array of broker names to include in this failure domain.")), nil @@ -473,19 +472,19 @@ func createFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (* // updateFailureDomain updates an existing failure domain in the specified cluster func updateFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := common.RequiredParam[string](request.Params.Arguments, "cluster_name") + clusterName, err := request.RequireString("cluster_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + "Please provide the name of the cluster.")), nil } - domainName, err := common.RequiredParam[string](request.Params.Arguments, "domain_name") + domainName, err := request.RequireString("domain_name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + "Please provide the name of the failure domain to update.")), nil } - brokers, err := common.RequiredParamArray[string](request.Params.Arguments, "brokers") + brokers, err := request.RequireStringSlice("brokers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + "Please provide an array of broker names to include in this failure domain.")), nil diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index cd7bdab..0a3c798 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" ) // PulsarAdminAddFunctionsTools adds a unified function-related tool to the MCP server @@ -167,7 +166,7 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca client := cmdutils.NewPulsarClientWithAPIVersion(config.V3) // Extract and validate operation parameter - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil } @@ -194,12 +193,12 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca } // Extract common parameters - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations.", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations.", err)), nil } @@ -207,7 +206,7 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca // For all operations except 'list', name is required var name string if operation != "list" { - name, err = common.RequiredParam[string](request.Params.Arguments, "name") + name, err = request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation.", operation, err)), nil } @@ -224,15 +223,15 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca case "stats": return handleFunctionStats(ctx, client, tenant, namespace, name) case "querystate": - key, err := common.RequiredParam[string](request.Params.Arguments, "key") + key, err := request.RequireString("key") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store.", err)), nil } return handleFunctionQuerystate(ctx, client, tenant, namespace, name, key) case "create": - return handleFunctionCreate(ctx, client, tenant, namespace, name, request.Params.Arguments) + return handleFunctionCreate(ctx, client, tenant, namespace, name, request) case "update": - return handleFunctionUpdate(ctx, client, tenant, namespace, name, request.Params.Arguments) + return handleFunctionUpdate(ctx, client, tenant, namespace, name, request) case "delete": return handleFunctionDelete(ctx, client, tenant, namespace, name) case "start": @@ -242,18 +241,18 @@ func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.Ca case "restart": return handleFunctionRestart(ctx, client, tenant, namespace, name) case "putstate": - key, err := common.RequiredParam[string](request.Params.Arguments, "key") + key, err := request.RequireString("key") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store.", err)), nil } - value, err := common.RequiredParam[string](request.Params.Arguments, "value") + value, err := request.RequireString("value") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store.", err)), nil } return handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) case "trigger": - topic, _ := common.OptionalParam[string](request.Params.Arguments, "topic") - triggerValue, _ := common.OptionalParam[string](request.Params.Arguments, "triggerValue") + topic := request.GetString("topic", "") + triggerValue := request.GetString("triggerValue", "") return handleFunctionTrigger(ctx, client, tenant, namespace, name, topic, triggerValue) default: // This should never happen due to the valid operations check above @@ -353,25 +352,25 @@ func handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, } // handleFunctionCreate handles creating a new function -func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, arguments map[string]interface{}) (*mcp.CallToolResult, error) { +func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract required parameters - classname, err := common.RequiredParam[string](arguments, "classname") + classname, err := request.RequireString("classname") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get classname (required for function creation): %v. The classname must specify the fully qualified class implementing the function.", err)), nil } // Extract optional parameters - inputTopics, _ := common.OptionalParamArray[string](arguments, "inputs") - output, _ := common.OptionalParam[string](arguments, "output") - jar, _ := common.OptionalParam[string](arguments, "jar") - py, _ := common.OptionalParam[string](arguments, "py") - goPath, _ := common.OptionalParam[string](arguments, "go") - parallelismFloat, _ := common.OptionalParam[float64](arguments, "parallelism") + inputTopics := request.GetStringSlice("inputs", []string{}) + output := request.GetString("output", "") + jar := request.GetString("jar", "") + py := request.GetString("py", "") + goPath := request.GetString("go", "") + parallelismFloat := request.GetFloat("parallelism", 1) parallelism := int(parallelismFloat) // Get user config if available var userConfigMap map[string]interface{} - userConfigObj, ok := arguments["userConfig"] + userConfigObj, ok := request.GetArguments()["userConfig"] if ok && userConfigObj != nil { if configMap, isMap := userConfigObj.(map[string]interface{}); isMap { userConfigMap = configMap @@ -439,20 +438,20 @@ func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, nam } // handleFunctionUpdate handles updating an existing function -func handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, arguments map[string]interface{}) (*mcp.CallToolResult, error) { +func handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract optional parameters - classname, _ := common.OptionalParam[string](arguments, "classname") - inputTopics, _ := common.OptionalParamArray[string](arguments, "inputs") - output, _ := common.OptionalParam[string](arguments, "output") - jar, _ := common.OptionalParam[string](arguments, "jar") - py, _ := common.OptionalParam[string](arguments, "py") - goPath, _ := common.OptionalParam[string](arguments, "go") - parallelismFloat, _ := common.OptionalParam[float64](arguments, "parallelism") + classname := request.GetString("classname", "") + inputTopics := request.GetStringSlice("inputs", []string{}) + output := request.GetString("output", "") + jar := request.GetString("jar", "") + py := request.GetString("py", "") + goPath := request.GetString("go", "") + parallelismFloat := request.GetFloat("parallelism", 1) parallelism := int(parallelismFloat) // Get user config if available var userConfigMap map[string]interface{} - userConfigObj, ok := arguments["userConfig"] + userConfigObj, ok := request.GetArguments()["userConfig"] if ok && userConfigObj != nil { if configMap, isMap := userConfigObj.(map[string]interface{}); isMap { userConfigMap = configMap diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go index bf84f49..fa7a0fd 100644 --- a/pkg/mcp/pulsar_admin_functions_worker_tools.go +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -26,7 +26,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -67,7 +66,7 @@ func handleFunctionsWorkerTool(_ bool) func(context.Context, mcp.CallToolRequest admin := pulsar.AdminClient // Get required resource parameter - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + "Please specify one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments.")), nil diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index 1372533..13a018e 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -30,7 +30,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" pulsarctlutils "github.com/streamnative/pulsarctl/pkg/ctl/utils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -332,7 +331,7 @@ func handleNamespaceGetPolicies(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -360,12 +359,12 @@ func handleSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.C return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - ttlStr, err := common.RequiredParam[string](request.Params.Arguments, "ttl") + ttlStr, err := request.RequireString("ttl") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil } @@ -392,21 +391,21 @@ func handleSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.Ca return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - timeStr, hasTime := common.OptionalParam[string](request.Params.Arguments, "time") - sizeStr, hasSize := common.OptionalParam[string](request.Params.Arguments, "size") + timeStr := request.GetString("time", "") + sizeStr := request.GetString("size", "") - if !hasTime && !hasSize { + if timeStr == "" && sizeStr == "" { return mcp.NewToolResultError("At least one of 'time' or 'size' must be specified"), nil } // Parse retention time var retentionTimeInMin int - if hasTime { + if timeStr != "" { // Parse relative time in seconds from the input string retentionTime, err := pulsarctlutils.ParseRelativeTimeInSeconds(timeStr) if err != nil { @@ -425,7 +424,7 @@ func handleSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.Ca // Parse retention size var retentionSizeInMB int - if hasSize { + if sizeStr != "" { if sizeStr == "-1" { retentionSizeInMB = -1 // Infinite size retention } else { @@ -471,17 +470,17 @@ func handleGrantPermission(_ context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - role, err := common.RequiredParam[string](request.Params.Arguments, "role") + role, err := request.RequireString("role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } - actions, err := common.RequiredParamArray[string](request.Params.Arguments, "actions") + actions, err := request.RequireStringSlice("actions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil } @@ -525,12 +524,12 @@ func handleRevokePermission(_ context.Context, request mcp.CallToolRequest) (*mc return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - role, err := common.RequiredParam[string](request.Params.Arguments, "role") + role, err := request.RequireString("role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } @@ -557,12 +556,12 @@ func handleSetReplicationClusters(_ context.Context, request mcp.CallToolRequest return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - clusters, err := common.RequiredParamArray[string](request.Params.Arguments, "clusters") + clusters, err := request.RequireStringSlice("clusters") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get clusters: %v", err)), nil } @@ -590,17 +589,17 @@ func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - limitSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "limit-size") + limitSizeStr, err := request.RequireString("limit-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get limit size: %v", err)), nil } - policyStr, err := common.RequiredParam[string](request.Params.Arguments, "policy") + policyStr, err := request.RequireString("policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil } @@ -612,9 +611,9 @@ func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp } // Parse time limit (optional) - limitTimeStr, hasLimitTime := common.OptionalParam[string](request.Params.Arguments, "limit-time") + limitTimeStr := request.GetString("limit-time", "") var limitTime int64 = -1 // Default to -1 (infinite) - if hasLimitTime && limitTimeStr != "" { + if limitTimeStr != "" { limitTimeVal, err := strconv.ParseInt(limitTimeStr, 10, 64) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid time limit format: %v", err)), nil @@ -636,9 +635,9 @@ func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp } // Parse quota type (optional) - quotaTypeStr, hasQuotaType := common.OptionalParam[string](request.Params.Arguments, "type") + quotaTypeStr := request.GetString("type", "") quotaType := utils.DestinationStorage // Default - if hasQuotaType && quotaTypeStr != "" { + if quotaTypeStr != "" { parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid backlog quota type: %v", err)), nil @@ -664,7 +663,7 @@ func handleRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (* return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -686,7 +685,7 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -698,9 +697,9 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) } // Check if disabled - disableStr, hasDisable := common.OptionalParam[string](request.Params.Arguments, "disable") + disableStr := request.GetString("disable", "") disable := false - if hasDisable && disableStr == "true" { + if disableStr == "true" { disable = true } @@ -712,8 +711,8 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) // Only set topic type and partitions if not disabled if !disable { // Get topic type (optional) - topicTypeStr, hasType := common.OptionalParam[string](request.Params.Arguments, "type") - if hasType && topicTypeStr != "" { + topicTypeStr := request.GetString("type", "") + if topicTypeStr != "" { parsedType, err := utils.ParseTopicType(topicTypeStr) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid topic type: %v", err)), nil @@ -722,8 +721,8 @@ func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) } // Get partitions (optional) - partitionsStr, hasPartitions := common.OptionalParam[string](request.Params.Arguments, "partitions") - if hasPartitions && partitionsStr != "" { + partitionsStr := request.GetString("partitions", "") + if partitionsStr != "" { partitions, err := strconv.Atoi(partitionsStr) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid partitions value: %v", err)), nil @@ -749,7 +748,7 @@ func handleRemoveTopicAutoCreation(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -777,7 +776,7 @@ func handleSetSchemaValidationEnforced(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -789,9 +788,9 @@ func handleSetSchemaValidationEnforced(_ context.Context, request mcp.CallToolRe } // Check if disabled - disableStr, hasDisable := common.OptionalParam[string](request.Params.Arguments, "disable") + disableStr := request.GetString("disable", "") disable := false - if hasDisable && disableStr == "true" { + if disableStr == "true" { disable = true } @@ -816,12 +815,12 @@ func handleSetSchemaAutoUpdateStrategy(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - strategyStr, err := common.RequiredParam[string](request.Params.Arguments, "compatibility") + strategyStr, err := request.RequireString("compatibility") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility strategy: %v", err)), nil } @@ -857,7 +856,7 @@ func handleSetIsAllowAutoUpdateSchema(_ context.Context, request mcp.CallToolReq return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -869,20 +868,20 @@ func handleSetIsAllowAutoUpdateSchema(_ context.Context, request mcp.CallToolReq } // Check if enabled or disabled - enableStr, hasEnable := common.OptionalParam[string](request.Params.Arguments, "enable") - disableStr, hasDisable := common.OptionalParam[string](request.Params.Arguments, "disable") + enableStr := request.GetString("enable", "") + disableStr := request.GetString("disable", "") - if (hasEnable && enableStr == "true") && (hasDisable && disableStr == "true") { + if (enableStr == "true") && (disableStr == "true") { return mcp.NewToolResultError("Specify only one of 'enable' or 'disable'"), nil } var isAllowUpdateSchema bool //nolint:gocritic - if hasEnable && enableStr == "true" { + if enableStr == "true" { isAllowUpdateSchema = true - } else if hasDisable && disableStr == "true" { + } else if disableStr == "true" { isAllowUpdateSchema = false - } else if !hasEnable && !hasDisable { + } else if enableStr == "" && disableStr == "" { return mcp.NewToolResultError("You must specify either 'enable=true' or 'disable=true'"), nil } @@ -907,12 +906,12 @@ func handleSetOffloadThreshold(_ context.Context, request mcp.CallToolRequest) ( return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - thresholdStr, err := common.RequiredParam[string](request.Params.Arguments, "threshold") + thresholdStr, err := request.RequireString("threshold") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil } @@ -948,12 +947,12 @@ func handleSetOffloadDeletionLag(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - lagStr, err := common.RequiredParam[string](request.Params.Arguments, "lag") + lagStr, err := request.RequireString("lag") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get lag: %v", err)), nil } @@ -992,7 +991,7 @@ func handleClearOffloadDeletionLag(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -1022,12 +1021,12 @@ func handleSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - thresholdStr, err := common.RequiredParam[string](request.Params.Arguments, "threshold") + thresholdStr, err := request.RequireString("threshold") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil } @@ -1063,12 +1062,12 @@ func handleSetMaxProducersPerTopic(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - maxStr, err := common.RequiredParam[string](request.Params.Arguments, "max") + maxStr, err := request.RequireString("max") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil } @@ -1108,12 +1107,12 @@ func handleSetMaxConsumersPerTopic(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - maxStr, err := common.RequiredParam[string](request.Params.Arguments, "max") + maxStr, err := request.RequireString("max") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil } @@ -1153,12 +1152,12 @@ func handleSetMaxConsumersPerSubscription(_ context.Context, request mcp.CallToo return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - maxStr, err := common.RequiredParam[string](request.Params.Arguments, "max") + maxStr, err := request.RequireString("max") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil } @@ -1198,12 +1197,12 @@ func handleSetAntiAffinityGroup(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - group, err := common.RequiredParam[string](request.Params.Arguments, "group") + group, err := request.RequireString("group") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get anti-affinity group: %v", err)), nil } @@ -1227,7 +1226,7 @@ func handleDeleteAntiAffinityGroup(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -1251,22 +1250,22 @@ func handleSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp. return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - ensembleSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "ensemble-size") + ensembleSizeStr, err := request.RequireString("ensemble-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensemble size: %v", err)), nil } - writeQuorumSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "write-quorum-size") + writeQuorumSizeStr, err := request.RequireString("write-quorum-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get write quorum size: %v", err)), nil } - ackQuorumSizeStr, err := common.RequiredParam[string](request.Params.Arguments, "ack-quorum-size") + ackQuorumSizeStr, err := request.RequireString("ack-quorum-size") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ack quorum size: %v", err)), nil } @@ -1294,8 +1293,8 @@ func handleSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp. // Parse optional rate parameter markDeleteMaxRate := 0.0 - markDeleteMaxRateStr, hasRate := common.OptionalParam[string](request.Params.Arguments, "ml-mark-delete-max-rate") - if hasRate && markDeleteMaxRateStr != "" { + markDeleteMaxRateStr := request.GetString("ml-mark-delete-max-rate", "") + if markDeleteMaxRateStr != "" { rate, err := strconv.ParseFloat(markDeleteMaxRateStr, 64) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid mark delete max rate, must be a number: %v", err)), nil @@ -1325,13 +1324,13 @@ func handleSetDeduplication(_ context.Context, request mcp.CallToolRequest) (*mc return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get enable flag, default to false if not specified - enable, _ := common.OptionalParam[string](request.Params.Arguments, "enable") + enable := request.GetString("enable", "") enableBool := false if enable == "true" { enableBool = true @@ -1356,13 +1355,13 @@ func handleSetEncryptionRequired(_ context.Context, request mcp.CallToolRequest) return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get disable flag, default to false if not specified - disable, _ := common.OptionalParam[string](request.Params.Arguments, "disable") + disable := request.GetString("disable", "") disableFlag := disable == "true" // Get namespace name @@ -1395,12 +1394,12 @@ func handleSetSubscriptionAuthMode(_ context.Context, request mcp.CallToolReques return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - mode, err := common.RequiredParam[string](request.Params.Arguments, "mode") + mode, err := request.RequireString("mode") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription auth mode: %v", err)), nil } @@ -1437,17 +1436,17 @@ func handleGrantSubscriptionPermission(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } - roles, err := common.RequiredParamArray[string](request.Params.Arguments, "roles") + roles, err := request.RequireStringSlice("roles") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get roles: %v", err)), nil } @@ -1482,17 +1481,17 @@ func handleRevokeSubscriptionPermission(_ context.Context, request mcp.CallToolR return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } - role, err := common.RequiredParam[string](request.Params.Arguments, "role") + role, err := request.RequireString("role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } @@ -1523,13 +1522,13 @@ func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - msgRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRateStr := request.GetString("dispatchThrottlingRateInMsg", "") msgRate := -1 // Default value if msgRateStr != "" { parsedMsgRate, err := strconv.Atoi(msgRateStr) @@ -1539,7 +1538,7 @@ func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp msgRate = parsedMsgRate } - byteRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRateStr := request.GetString("dispatchThrottlingRateInByte", "") byteRate := int64(-1) // Default value if byteRateStr != "" { parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) @@ -1549,7 +1548,7 @@ func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp byteRate = parsedByteRate } - ratePeriodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + ratePeriodStr := request.GetString("ratePeriodInSecond", "") ratePeriod := 1 // Default value if ratePeriodStr != "" { parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) @@ -1591,13 +1590,13 @@ func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequ return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - msgRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRateStr := request.GetString("dispatchThrottlingRateInMsg", "") msgRate := -1 // Default value if msgRateStr != "" { parsedMsgRate, err := strconv.Atoi(msgRateStr) @@ -1607,7 +1606,7 @@ func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequ msgRate = parsedMsgRate } - byteRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRateStr := request.GetString("dispatchThrottlingRateInByte", "") byteRate := int64(-1) // Default value if byteRateStr != "" { parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) @@ -1617,7 +1616,7 @@ func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequ byteRate = parsedByteRate } - ratePeriodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + ratePeriodStr := request.GetString("ratePeriodInSecond", "") ratePeriod := 1 // Default value if ratePeriodStr != "" { parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) @@ -1659,13 +1658,13 @@ func handleSetSubscribeRate(_ context.Context, request mcp.CallToolRequest) (*mc return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - subRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "subscribeThrottlingRatePerConsumer") + subRateStr := request.GetString("subscribeThrottlingRatePerConsumer", "") subRate := -1 // Default value if subRateStr != "" { parsedSubRate, err := strconv.Atoi(subRateStr) @@ -1675,7 +1674,7 @@ func handleSetSubscribeRate(_ context.Context, request mcp.CallToolRequest) (*mc subRate = parsedSubRate } - periodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + periodStr := request.GetString("ratePeriodInSecond", "") period := 30 // Default value if periodStr != "" { parsedPeriod, err := strconv.Atoi(periodStr) @@ -1714,13 +1713,13 @@ func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRe return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get rate parameters - msgRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInMsg") + msgRateStr := request.GetString("dispatchThrottlingRateInMsg", "") msgRate := -1 // Default value if msgRateStr != "" { parsedMsgRate, err := strconv.Atoi(msgRateStr) @@ -1730,7 +1729,7 @@ func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRe msgRate = parsedMsgRate } - byteRateStr, _ := common.OptionalParam[string](request.Params.Arguments, "dispatchThrottlingRateInByte") + byteRateStr := request.GetString("dispatchThrottlingRateInByte", "") byteRate := int64(-1) // Default value if byteRateStr != "" { parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) @@ -1740,7 +1739,7 @@ func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRe byteRate = parsedByteRate } - periodStr, _ := common.OptionalParam[string](request.Params.Arguments, "ratePeriodInSecond") + periodStr := request.GetString("ratePeriodInSecond", "") period := 1 // Default value if periodStr != "" { parsedPeriod, err := strconv.Atoi(periodStr) @@ -1782,7 +1781,7 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -1800,8 +1799,8 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. } // Get message rate if provided - msgRateStr, hasMsgRate := common.OptionalParam[string](request.Params.Arguments, "publishThrottlingRateInMsg") - if hasMsgRate && msgRateStr != "" { + msgRateStr := request.GetString("publishThrottlingRateInMsg", "") + if msgRateStr != "" { msgRate, err := strconv.Atoi(msgRateStr) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate: %v", err)), nil @@ -1810,8 +1809,8 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. } // Get byte rate if provided - byteRateStr, hasByteRate := common.OptionalParam[string](request.Params.Arguments, "publishThrottlingRateInByte") - if hasByteRate && byteRateStr != "" { + byteRateStr := request.GetString("publishThrottlingRateInByte", "") + if byteRateStr != "" { byteRate, err := strconv.ParseInt(byteRateStr, 10, 64) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate: %v", err)), nil @@ -1832,12 +1831,12 @@ func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp. // handleNamespaceSetPolicy handles setting policies for a namespace using the unified tool func handleNamespaceSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - _, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + _, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") + policyType, err := request.RequireString("policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } @@ -1903,12 +1902,12 @@ func handleNamespaceSetPolicy(ctx context.Context, request mcp.CallToolRequest) // handleNamespaceRemovePolicy handles removing policies from a namespace using the unified tool func handleNamespaceRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - _, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + _, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") + policyType, err := request.RequireString("policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index 4e35c9d..5f7bb2d 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -94,7 +93,7 @@ func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features [ func handleNamespace(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get operation parameter - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -143,7 +142,7 @@ func handleNamespace(readOnly bool) func(context.Context, mcp.CallToolRequest) ( // handleNamespaceList handles listing namespaces for a tenant func handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil } @@ -165,7 +164,7 @@ func handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp. // handleNamespaceGetTopics handles getting topics for a namespace func handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -187,15 +186,15 @@ func handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request // handleNamespaceCreate handles creating a new namespace func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get optional parameters - bundlesStr, hasBundles := common.OptionalParam[string](request.Params.Arguments, "bundles") + bundlesStr := request.GetString("bundles", "") bundles := 0 - if hasBundles && bundlesStr != "" { + if bundlesStr != "" { bundlesInt, err := strconv.Atoi(bundlesStr) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Invalid bundles value, must be an integer: %v", err)), nil @@ -203,13 +202,13 @@ func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mc bundles = bundlesInt } - clusters, _ := common.OptionalParamArray[string](request.Params.Arguments, "clusters") + clusters := request.GetStringSlice("clusters", []string{}) // Prepare policies policies := utils.NewDefaultPolicies() // Set bundles if provided - if hasBundles && bundles > 0 { + if bundles > 0 { if bundles < 0 || bundles > int(^uint32(0)) { // MaxInt32 return mcp.NewToolResultError( fmt.Sprintf("Invalid number of bundles. Number of bundles has to be in the range of (0, %d].", int(^uint32(0))), @@ -239,7 +238,7 @@ func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mc // handleNamespaceDelete handles deleting a namespace func handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } @@ -255,15 +254,15 @@ func handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mc // handleClearBacklog handles clearing the backlog for all topics in a namespace func handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get optional parameters - subscription, _ := common.OptionalParam[string](request.Params.Arguments, "subscription") - bundle, _ := common.OptionalParam[string](request.Params.Arguments, "bundle") - force, _ := common.OptionalParam[string](request.Params.Arguments, "force") + subscription := request.GetString("subscription", "") + bundle := request.GetString("bundle", "") + force := request.GetString("force", "") forceFlag := force == "true" // If not forced, return an error requiring explicit force flag @@ -305,18 +304,18 @@ func handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.C // handleUnsubscribe handles unsubscribing the specified subscription for all topics of a namespace func handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } // Get optional bundle - bundle, _ := common.OptionalParam[string](request.Params.Arguments, "bundle") + bundle := request.GetString("bundle", "") // Get namespace name ns, err := utils.GetNamespaceName(namespace) @@ -351,13 +350,13 @@ func handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.Ca // handleUnload handles unloading a namespace from the current serving broker func handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } // Get optional bundle - bundle, _ := common.OptionalParam[string](request.Params.Arguments, "bundle") + bundle := request.GetString("bundle", "") // Unload namespace var unloadErr error @@ -384,19 +383,18 @@ func handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToo // handleSplitBundle handles splitting a namespace bundle func handleSplitBundle(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil } - bundle, err := common.RequiredParam[string](request.Params.Arguments, "bundle") + bundle, err := request.RequireString("bundle") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle: %v", err)), nil } // Get optional unload flag - unloadStr, _ := common.OptionalParam[string](request.Params.Arguments, "unload") - unload := unloadStr == "true" + unload := request.GetString("unload", "") == "true" // Split namespace bundle err = client.Namespaces().SplitNamespaceBundle(namespace, bundle, unload) diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index 3da9cff..68bc744 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -116,17 +116,17 @@ func handleNsIsolationPolicy(readOnly bool) func(context.Context, mcp.CallToolRe } // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } - cluster, err := common.RequiredParam[string](request.Params.Arguments, "cluster") + cluster, err := request.RequireString("cluster") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil } @@ -158,7 +158,7 @@ func handleNsIsolationPolicy(readOnly bool) func(context.Context, mcp.CallToolRe func handlePolicyResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.get: %v", err)), nil } @@ -193,7 +193,7 @@ func handlePolicyResource(client cmdutils.Client, operation, cluster string, req return mcp.NewToolResultText(string(policiesJSON)), nil case "delete": - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.delete: %v", err)), nil } @@ -207,26 +207,30 @@ func handlePolicyResource(client cmdutils.Client, operation, cluster string, req return mcp.NewToolResultText(fmt.Sprintf("Delete namespace isolation policy %s successfully", name)), nil case "set": - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.set: %v", err)), nil } - namespaces, err := getRequiredParamArray[string](request.Params.Arguments, "namespaces") + namespaces, err := request.RequireStringSlice("namespaces") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespaces' for policy.set: %v", err)), nil } - primary, err := getRequiredParamArray[string](request.Params.Arguments, "primary") + primary, err := request.RequireStringSlice("primary") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'primary' for policy.set: %v", err)), nil } - secondary, _ := common.OptionalParamArray[string](request.Params.Arguments, "secondary") - autoFailoverPolicyType, _ := common.OptionalParam[string](request.Params.Arguments, "autoFailoverPolicyType") + secondary := request.GetStringSlice("secondary", []string{}) + autoFailoverPolicyType := request.GetString("autoFailoverPolicyType", "") // Parse autoFailoverPolicyParams as a map - autoFailoverPolicyParamsRaw, _ := common.OptionalParam[map[string]interface{}](request.Params.Arguments, "autoFailoverPolicyParams") + autoFailoverPolicyParamsRaw, ok := common.OptionalParamObject(request.GetArguments(), "autoFailoverPolicyParams") + if !ok { + return mcp.NewToolResultError("Failed to extract autoFailoverPolicyParams"), nil + } + autoFailoverPolicyParams := make(map[string]string) for k, v := range autoFailoverPolicyParamsRaw { if strVal, ok := v.(string); ok { @@ -258,7 +262,7 @@ func handlePolicyResource(client cmdutils.Client, operation, cluster string, req func handleBrokerResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "get": - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for broker.get: %v", err)), nil } @@ -304,27 +308,3 @@ func handleNsIsolationBrokersResource(client cmdutils.Client, operation, cluster return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'brokers': %s. Available operations: list", operation)), nil } } - -// getRequiredParamArray is a helper function to get a required array parameter with a specific type -func getRequiredParamArray[T any](args map[string]interface{}, paramName string) ([]T, error) { - value, ok := args[paramName] - if !ok { - return nil, fmt.Errorf("missing required parameter: %s", paramName) - } - - arrayValue, ok := value.([]interface{}) - if !ok { - return nil, fmt.Errorf("parameter %s is not an array", paramName) - } - - result := make([]T, 0, len(arrayValue)) - for _, v := range arrayValue { - typedValue, ok := v.(T) - if !ok { - return nil, fmt.Errorf("array element in %s has incorrect type", paramName) - } - result = append(result, typedValue) - } - - return result, nil -} diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index 0ded0df..dea0ba7 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -27,7 +27,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -113,12 +112,12 @@ func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features [] func handlePackageTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -152,7 +151,7 @@ func handlePackageTool(readOnly bool) func(context.Context, mcp.CallToolRequest) // handlePackageResource handles operations on a specific package func handlePackageResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - packageName, err := common.RequiredParam[string](request.Params.Arguments, "packageName") + packageName, err := request.RequireString("packageName") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'packageName' for package operations: %v", err)), nil } @@ -189,13 +188,13 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp return mcp.NewToolResultText(string(metadataJSON)), nil case "update": - description, err := common.RequiredParam[string](request.Params.Arguments, "description") + description, err := request.RequireString("description") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.update: %v", err)), nil } - contact, _ := common.OptionalParam[string](request.Params.Arguments, "contact") - properties := extractProperties(request.Params.Arguments) + contact := request.GetString("contact", "") + properties := extractProperties(request.GetArguments()) // Update package metadata err = client.Packages().UpdateMetadata(packageName, description, contact, properties) @@ -215,7 +214,7 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp return mcp.NewToolResultText(fmt.Sprintf("The package '%s' deleted successfully", packageName)), nil case "download": - path, err := common.RequiredParam[string](request.Params.Arguments, "path") + path, err := request.RequireString("path") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.download: %v", err)), nil } @@ -231,18 +230,18 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp ), nil case "upload": - path, err := common.RequiredParam[string](request.Params.Arguments, "path") + path, err := request.RequireString("path") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.upload: %v", err)), nil } - description, err := common.RequiredParam[string](request.Params.Arguments, "description") + description, err := request.RequireString("description") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.upload: %v", err)), nil } - contact, _ := common.OptionalParam[string](request.Params.Arguments, "contact") - properties := extractProperties(request.Params.Arguments) + contact := request.GetString("contact", "") + properties := extractProperties(request.GetArguments()) // Upload package err = client.Packages().Upload(packageName, path, description, contact, properties) @@ -263,12 +262,12 @@ func handlePackageResource(client cmdutils.Client, operation string, request mcp func handlePackagesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { switch operation { case "list": - packageType, err := common.RequiredParam[string](request.Params.Arguments, "type") + packageType, err := request.RequireString("type") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'type' for packages.list: %v", err)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for packages.list: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go index 059f63c..65eac50 100644 --- a/pkg/mcp/pulsar_admin_resourcequotas_tools.go +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -101,12 +100,12 @@ func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, featu func handleResourceQuotaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -148,11 +147,11 @@ func handleResourceQuotaTool(readOnly bool) func(_ context.Context, request mcp. // handleQuotaGet handles getting a resource quota func handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get optional parameters - namespace, hasNamespace := common.OptionalParam[string](request.Params.Arguments, "namespace") - bundle, hasBundle := common.OptionalParam[string](request.Params.Arguments, "bundle") + namespace := request.GetString("namespace", "") + bundle := request.GetString("bundle", "") // Check if both namespace and bundle are provided or neither is provided - if (hasNamespace && !hasBundle) || (!hasNamespace && hasBundle) { + if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil } @@ -161,7 +160,7 @@ func handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca getErr error ) - if !hasNamespace && !hasBundle { + if namespace == "" && bundle == "" { // Get default resource quota resourceQuotaData, getErr = admin.ResourceQuotas().GetDefaultResourceQuota() if getErr != nil { @@ -192,42 +191,38 @@ func handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // handleQuotaSet handles setting a resource quota func handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters for set operation - msgRateIn, err := common.RequiredParam[float64](request.Params.Arguments, "msgRateIn") + msgRateIn, err := request.RequireFloat("msgRateIn") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateIn' for quota.set: %v", err)), nil } - msgRateOut, err := common.RequiredParam[float64](request.Params.Arguments, "msgRateOut") + msgRateOut, err := request.RequireFloat("msgRateOut") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateOut' for quota.set: %v", err)), nil } - bandwidthIn, err := common.RequiredParam[float64](request.Params.Arguments, "bandwidthIn") + bandwidthIn, err := request.RequireFloat("bandwidthIn") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthIn' for quota.set: %v", err)), nil } - bandwidthOut, err := common.RequiredParam[float64](request.Params.Arguments, "bandwidthOut") + bandwidthOut, err := request.RequireFloat("bandwidthOut") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthOut' for quota.set: %v", err)), nil } - memory, err := common.RequiredParam[float64](request.Params.Arguments, "memory") + memory, err := request.RequireFloat("memory") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'memory' for quota.set: %v", err)), nil } // Get optional parameters - namespace, hasNamespace := common.OptionalParam[string](request.Params.Arguments, "namespace") - bundle, hasBundle := common.OptionalParam[string](request.Params.Arguments, "bundle") - dynamic, hasDynamic := common.OptionalParam[bool](request.Params.Arguments, "dynamic") - - if !hasDynamic { - dynamic = false - } + namespace := request.GetString("namespace", "") + bundle := request.GetString("bundle", "") + dynamic := request.GetBool("dynamic", false) // Check if both namespace and bundle are provided or neither is provided - if (hasNamespace && !hasBundle) || (!hasNamespace && hasBundle) { + if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil } @@ -241,7 +236,7 @@ func handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca quota.Dynamic = dynamic var resultMsg string - if !hasNamespace && !hasBundle { + if namespace == "" && bundle == "" { // Set default resource quota err = admin.ResourceQuotas().SetDefaultResourceQuota(*quota) if err != nil { @@ -264,12 +259,12 @@ func handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // handleQuotaReset handles resetting a resource quota func handleQuotaReset(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters for reset operation - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for quota.reset: %v", err)), nil } - bundle, err := common.RequiredParam[string](request.Params.Arguments, "bundle") + bundle, err := request.RequireString("bundle") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bundle' for quota.reset: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go index eece294..d159f2a 100644 --- a/pkg/mcp/pulsar_admin_schemas_tools.go +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -30,7 +30,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -87,17 +86,17 @@ func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []s func handleSchemaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil } @@ -139,10 +138,10 @@ func handleSchemaTool(readOnly bool) func(_ context.Context, request mcp.CallToo // handleSchemaGet handles getting a schema func handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get optional version parameter - version, hasVersion := common.OptionalParam[float64](request.Params.Arguments, "version") + version := request.GetFloat("version", 0) // Get schema info - if hasVersion { + if version != 0 { // Get schema by version info, err := admin.Schemas().GetSchemaInfoByVersion(topic, int64(version)) if err != nil { @@ -195,7 +194,7 @@ func handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRe // handleSchemaUpload handles uploading a schema func handleSchemaUpload(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - filename, err := common.RequiredParam[string](request.Params.Arguments, "filename") + filename, err := request.RequireString("filename") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'filename' for schema.upload. Please provide the path to the schema definition file: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index a098716..a780678 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -29,7 +29,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" ) // PulsarAdminAddSinksTools adds a unified sink-related tool to the MCP server @@ -136,7 +135,7 @@ func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []str func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract and validate operation parameter - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil } @@ -170,12 +169,12 @@ func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) ( } // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil } @@ -183,7 +182,7 @@ func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) ( // For all operations except 'list', name is required var name string if operation != "list" { - name, err = common.RequiredParam[string](request.Params.Arguments, "name") + name, err = request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The sink name must be specified for this operation.", operation, err)), nil } @@ -198,9 +197,9 @@ func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) ( case "status": return handleSinkStatus(ctx, admin, tenant, namespace, name) case "create": - return handleSinkCreate(ctx, admin, request.Params.Arguments) + return handleSinkCreate(ctx, admin, request) case "update": - return handleSinkUpdate(ctx, admin, request.Params.Arguments) + return handleSinkUpdate(ctx, admin, request) case "delete": return handleSinkDelete(ctx, admin, tenant, namespace, name) case "start": @@ -268,18 +267,18 @@ func handleSinkStatus(_ context.Context, admin cmdutils.Client, tenant, namespac } // handleSinkCreate handles creating a new sink -func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](arguments, "tenant") +func handleSinkCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := common.RequiredParam[string](arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := common.RequiredParam[string](arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -293,39 +292,39 @@ func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[st } // Get optional parameters - archive, hasArchive := common.OptionalParam[string](arguments, "archive") - if hasArchive && archive != "" { + archive := request.GetString("archive", "") + if archive != "" { sinkData.Archive = archive } - sinkType, hasSinkType := common.OptionalParam[string](arguments, "sink-type") - if hasSinkType && sinkType != "" { + sinkType := request.GetString("sink-type", "") + if sinkType != "" { sinkData.SinkType = sinkType } - inputsArray, hasInputs := common.OptionalParamArray[string](arguments, "inputs") - if hasInputs && len(inputsArray) > 0 { + inputsArray := request.GetStringSlice("inputs", []string{}) + if len(inputsArray) > 0 { sinkData.Inputs = strings.Join(inputsArray, ",") } - topicsPattern, hasTopicsPattern := common.OptionalParam[string](arguments, "topics-pattern") - if hasTopicsPattern && topicsPattern != "" { + topicsPattern := request.GetString("topics-pattern", "") + if topicsPattern != "" { sinkData.TopicsPattern = topicsPattern } - subsName, hasSubsName := common.OptionalParam[string](arguments, "subs-name") - if hasSubsName && subsName != "" { + subsName := request.GetString("subs-name", "") + if subsName != "" { sinkData.SubsName = subsName } - parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") - if hasParallelism { + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { sinkData.Parallelism = int(parallelismFloat) } // Get sink config if available var sinkConfigMap map[string]interface{} - sinkConfigObj, ok := arguments["sink-config"] + sinkConfigObj, ok := request.GetArguments()["sink-config"] if ok && sinkConfigObj != nil { if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { sinkConfigMap = configMap @@ -374,18 +373,18 @@ func handleSinkCreate(_ context.Context, admin cmdutils.Client, arguments map[st } // handleSinkUpdate handles updating an existing sink -func handleSinkUpdate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](arguments, "tenant") +func handleSinkUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := common.RequiredParam[string](arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := common.RequiredParam[string](arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -399,39 +398,39 @@ func handleSinkUpdate(_ context.Context, admin cmdutils.Client, arguments map[st } // Get optional parameters - archive, hasArchive := common.OptionalParam[string](arguments, "archive") - if hasArchive && archive != "" { + archive := request.GetString("archive", "") + if archive != "" { sinkData.Archive = archive } - sinkType, hasSinkType := common.OptionalParam[string](arguments, "sink-type") - if hasSinkType && sinkType != "" { + sinkType := request.GetString("sink-type", "") + if sinkType != "" { sinkData.SinkType = sinkType } - inputsArray, hasInputs := common.OptionalParamArray[string](arguments, "inputs") - if hasInputs && len(inputsArray) > 0 { + inputsArray := request.GetStringSlice("inputs", []string{}) + if len(inputsArray) > 0 { sinkData.Inputs = strings.Join(inputsArray, ",") } - topicsPattern, hasTopicsPattern := common.OptionalParam[string](arguments, "topics-pattern") - if hasTopicsPattern && topicsPattern != "" { + topicsPattern := request.GetString("topics-pattern", "") + if topicsPattern != "" { sinkData.TopicsPattern = topicsPattern } - subsName, hasSubsName := common.OptionalParam[string](arguments, "subs-name") - if hasSubsName && subsName != "" { + subsName := request.GetString("subs-name", "") + if subsName != "" { sinkData.SubsName = subsName } - parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") - if hasParallelism { + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { sinkData.Parallelism = int(parallelismFloat) } // Get sink config if available var sinkConfigMap map[string]interface{} - sinkConfigObj, ok := arguments["sink-config"] + sinkConfigObj, ok := request.GetArguments()["sink-config"] if ok && sinkConfigObj != nil { if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { sinkConfigMap = configMap diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index 664a9da..48b0615 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" ) // PulsarAdminAddSourcesTools adds a unified source-related tool to the MCP server @@ -136,7 +135,7 @@ func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []s func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract and validate operation parameter - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil } @@ -170,12 +169,12 @@ func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) } // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil } - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil } @@ -183,7 +182,7 @@ func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) // For all operations except 'list', name is required var name string if operation != "list" { - name, err = common.RequiredParam[string](request.Params.Arguments, "name") + name, err = request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The source name must be specified for this operation.", operation, err)), nil } @@ -198,9 +197,9 @@ func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) case "status": return handleSourceStatus(ctx, admin, tenant, namespace, name) case "create": - return handleSourceCreate(ctx, admin, request.Params.Arguments) + return handleSourceCreate(ctx, admin, request) case "update": - return handleSourceUpdate(ctx, admin, request.Params.Arguments) + return handleSourceUpdate(ctx, admin, request) case "delete": return handleSourceDelete(ctx, admin, tenant, namespace, name) case "start": @@ -268,18 +267,18 @@ func handleSourceStatus(_ context.Context, admin cmdutils.Client, tenant, namesp } // handleSourceCreate handles creating a new source -func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](arguments, "tenant") +func handleSourceCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := common.RequiredParam[string](arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := common.RequiredParam[string](arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -293,49 +292,49 @@ func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[ } // Get optional parameters - archive, hasArchive := common.OptionalParam[string](arguments, "archive") - if hasArchive && archive != "" { + archive := request.GetString("archive", "") + if archive != "" { sourceData.Archive = archive } - sourceType, hasSourceType := common.OptionalParam[string](arguments, "source-type") - if hasSourceType && sourceType != "" { + sourceType := request.GetString("source-type", "") + if sourceType != "" { sourceData.SourceType = sourceType } - destTopic, hasDestTopic := common.OptionalParam[string](arguments, "destination-topic-name") - if hasDestTopic && destTopic != "" { + destTopic := request.GetString("destination-topic-name", "") + if destTopic != "" { sourceData.DestinationTopicName = destTopic } - deserializationClassName, hasDeserialization := common.OptionalParam[string](arguments, "deserialization-classname") - if hasDeserialization && deserializationClassName != "" { + deserializationClassName := request.GetString("deserialization-classname", "") + if deserializationClassName != "" { sourceData.DeserializationClassName = deserializationClassName } - schemaType, hasSchemaType := common.OptionalParam[string](arguments, "schema-type") - if hasSchemaType && schemaType != "" { + schemaType := request.GetString("schema-type", "") + if schemaType != "" { sourceData.SchemaType = schemaType } - className, hasClassName := common.OptionalParam[string](arguments, "classname") - if hasClassName && className != "" { + className := request.GetString("classname", "") + if className != "" { sourceData.ClassName = className } - processingGuarantees, hasProcessingGuarantees := common.OptionalParam[string](arguments, "processing-guarantees") - if hasProcessingGuarantees && processingGuarantees != "" { + processingGuarantees := request.GetString("processing-guarantees", "") + if processingGuarantees != "" { sourceData.ProcessingGuarantees = processingGuarantees } - parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") - if hasParallelism { + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { sourceData.Parallelism = int(parallelismFloat) } // Get source config if available var sourceConfigMap map[string]interface{} - sourceConfigObj, ok := arguments["source-config"] + sourceConfigObj, ok := request.GetArguments()["source-config"] if ok && sourceConfigObj != nil { if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { sourceConfigMap = configMap @@ -384,18 +383,18 @@ func handleSourceCreate(_ context.Context, admin cmdutils.Client, arguments map[ } // handleSourceUpdate handles updating an existing source -func handleSourceUpdate(_ context.Context, admin cmdutils.Client, arguments map[string]interface{}) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](arguments, "tenant") +func handleSourceUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil } - namespace, err := common.RequiredParam[string](arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil } - name, err := common.RequiredParam[string](arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } @@ -409,49 +408,49 @@ func handleSourceUpdate(_ context.Context, admin cmdutils.Client, arguments map[ } // Get optional parameters - archive, hasArchive := common.OptionalParam[string](arguments, "archive") - if hasArchive && archive != "" { + archive := request.GetString("archive", "") + if archive != "" { sourceData.Archive = archive } - sourceType, hasSourceType := common.OptionalParam[string](arguments, "source-type") - if hasSourceType && sourceType != "" { + sourceType := request.GetString("source-type", "") + if sourceType != "" { sourceData.SourceType = sourceType } - destTopic, hasDestTopic := common.OptionalParam[string](arguments, "destination-topic-name") - if hasDestTopic && destTopic != "" { + destTopic := request.GetString("destination-topic-name", "") + if destTopic != "" { sourceData.DestinationTopicName = destTopic } - deserializationClassName, hasDeserialization := common.OptionalParam[string](arguments, "deserialization-classname") - if hasDeserialization && deserializationClassName != "" { + deserializationClassName := request.GetString("deserialization-classname", "") + if deserializationClassName != "" { sourceData.DeserializationClassName = deserializationClassName } - schemaType, hasSchemaType := common.OptionalParam[string](arguments, "schema-type") - if hasSchemaType && schemaType != "" { + schemaType := request.GetString("schema-type", "") + if schemaType != "" { sourceData.SchemaType = schemaType } - className, hasClassName := common.OptionalParam[string](arguments, "classname") - if hasClassName && className != "" { + className := request.GetString("classname", "") + if className != "" { sourceData.ClassName = className } - processingGuarantees, hasProcessingGuarantees := common.OptionalParam[string](arguments, "processing-guarantees") - if hasProcessingGuarantees && processingGuarantees != "" { + processingGuarantees := request.GetString("processing-guarantees", "") + if processingGuarantees != "" { sourceData.ProcessingGuarantees = processingGuarantees } - parallelismFloat, hasParallelism := common.OptionalParam[float64](arguments, "parallelism") - if hasParallelism { + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { sourceData.Parallelism = int(parallelismFloat) } // Get source config if available var sourceConfigMap map[string]interface{} - sourceConfigObj, ok := arguments["source-config"] + sourceConfigObj, ok := request.GetArguments()["source-config"] if ok && sourceConfigObj != nil { if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { sourceConfigMap = configMap diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go index 604765c..10fc26f 100644 --- a/pkg/mcp/pulsar_admin_subscription_tools.go +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -104,17 +103,17 @@ func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, feature func handleSubscriptionTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil } @@ -186,16 +185,13 @@ func handleSubsList(admin cmdutils.Client, topicName *utils.TopicName) (*mcp.Cal // handleSubsCreate handles creating a new subscription func handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameter - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.create: %v", err)), nil } // Get optional messageID parameter (default is "latest") - messageID, hasMessageID := common.OptionalParam[string](request.Params.Arguments, "messageId") - if !hasMessageID { - messageID = "latest" - } + messageID := request.GetString("messageId", "latest") // Parse messageId var messageIDObj utils.MessageID @@ -231,16 +227,13 @@ func handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request // handleSubsDelete handles deleting a subscription func handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameter - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.delete: %v", err)), nil } // Get optional force parameter (default is false) - force, hasForce := common.OptionalParam[bool](request.Params.Arguments, "force") - if !hasForce { - force = false - } + force := request.GetBool("force", false) // Delete subscription if force { @@ -268,12 +261,12 @@ func handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request // handleSubsSkip handles skipping messages for a subscription func handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.skip: %v", err)), nil } - count, err := common.RequiredParam[float64](request.Params.Arguments, "count") + count, err := request.RequireFloat("count") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'count' for subscription.skip: %v", err)), nil } @@ -292,12 +285,12 @@ func handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request m // handleSubsExpire handles expiring messages for a subscription func handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.expire: %v", err)), nil } - expireTime, err := common.RequiredParam[float64](request.Params.Arguments, "expireTimeInSeconds") + expireTime, err := request.RequireFloat("expireTimeInSeconds") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'expireTimeInSeconds' for subscription.expire: %v", err)), nil } @@ -318,12 +311,12 @@ func handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request // handleSubsResetCursor handles resetting a subscription cursor func handleSubsResetCursor(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - subscription, err := common.RequiredParam[string](request.Params.Arguments, "subscription") + subscription, err := request.RequireString("subscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.reset-cursor: %v", err)), nil } - messageID, err := common.RequiredParam[string](request.Params.Arguments, "messageId") + messageID, err := request.RequireString("messageId") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for subscription.reset-cursor: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index f55c964..75097c6 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -105,12 +104,12 @@ func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []st func handleTenantTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -172,7 +171,7 @@ func handleTenantsList(admin cmdutils.Client) (*mcp.CallToolResult, error) { // handleTenantGet handles getting a tenant's configuration func handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.get: %v", err)), nil } @@ -194,20 +193,14 @@ func handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.C // handleTenantCreate handles creating a new tenant func handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.create: %v", err)), nil } - adminRoles, hasAdminRoles := common.OptionalParamArray[string](request.Params.Arguments, "adminRoles") - if !hasAdminRoles { - adminRoles = []string{} - } + adminRoles := request.GetStringSlice("adminRoles", []string{}) - allowedClusters, hasAllowedClusters := common.OptionalParamArray[string](request.Params.Arguments, "allowedClusters") - if !hasAllowedClusters { - allowedClusters = []string{""} - } + allowedClusters := request.GetStringSlice("allowedClusters", []string{}) // Create tenant data struct tenantData := utils.TenantData{ @@ -239,7 +232,7 @@ func handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTenantUpdate handles updating an existing tenant func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.update: %v", err)), nil } @@ -251,15 +244,15 @@ func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mc } // Get update parameters - adminRoles, hasAdminRoles := common.OptionalParamArray[string](request.Params.Arguments, "adminRoles") - allowedClusters, hasAllowedClusters := common.OptionalParamArray[string](request.Params.Arguments, "allowedClusters") + adminRoles := request.GetStringSlice("adminRoles", []string{}) + allowedClusters := request.GetStringSlice("allowedClusters", []string{}) // If parameters not provided, keep existing values - if !hasAdminRoles { + if len(adminRoles) == 0 { adminRoles = currentTenantInfo.AdminRoles } - if !hasAllowedClusters { + if len(allowedClusters) == 0 { allowedClusters = currentTenantInfo.AllowedClusters } @@ -293,7 +286,7 @@ func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTenantDelete handles deleting an existing tenant func handleTenantDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := common.RequiredParam[string](request.Params.Arguments, "tenant") + tenant, err := request.RequireString("tenant") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.delete: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index fbc492a..a67aec8 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -27,7 +27,6 @@ import ( "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -337,7 +336,7 @@ func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features // handleTopicsGetPublishRate gets the publish rate for a topic func handleTopicsGetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -377,7 +376,7 @@ func handleTopicsGetPublishRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetPublishRate sets the publish rate for a topic func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -399,14 +398,14 @@ func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) publishRateInByte := int64(-1) // unlimited // Get publish rate in messages if provided - msgRateParam, hasMsgRate := common.OptionalParam[float64](request.Params.Arguments, "publishThrottlingRateInMsg") - if hasMsgRate { + msgRateParam := request.GetFloat("publishThrottlingRateInMsg", -1) + if msgRateParam != -1 { publishRateInMsg = int64(msgRateParam) } // Get publish rate in bytes if provided - byteRateParam, hasByteRate := common.OptionalParam[float64](request.Params.Arguments, "publishThrottlingRateInByte") - if hasByteRate { + byteRateParam := request.GetFloat("publishThrottlingRateInByte", -1) + if byteRateParam != -1 { publishRateInByte = int64(byteRateParam) } @@ -448,7 +447,7 @@ func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemovePublishRate removes the publish rate for a topic func handleTopicsRemovePublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -477,7 +476,7 @@ func handleTopicsRemovePublishRate(_ context.Context, request mcp.CallToolReques // handleTopicsGetPermissions gets the permissions on a topic func handleTopicsGetPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -512,17 +511,17 @@ func handleTopicsGetPermissions(_ context.Context, request mcp.CallToolRequest) // handleTopicsGrantPermissions grants a new permission to a role on a topic func handleTopicsGrantPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - role, err := common.RequiredParam[string](request.Params.Arguments, "role") + role, err := request.RequireString("role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } - actions, err := common.RequiredParamArray[string](request.Params.Arguments, "actions") + actions, err := request.RequireStringSlice("actions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil } @@ -567,12 +566,12 @@ func handleTopicsGrantPermissions(_ context.Context, request mcp.CallToolRequest // handleTopicsRevokePermissions revokes all permissions for a role on a topic func handleTopicsRevokePermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - role, err := common.RequiredParam[string](request.Params.Arguments, "role") + role, err := request.RequireString("role") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil } @@ -621,7 +620,7 @@ func grantTopicPermission(admin interface{}, topicName utils.TopicName, role str // handleTopicsGetMessageTTL gets the message TTL for a topic func handleTopicsGetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -655,12 +654,12 @@ func handleTopicsGetMessageTTL(_ context.Context, request mcp.CallToolRequest) ( // handleTopicsSetMessageTTL sets the message TTL for a topic func handleTopicsSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - ttl, err := common.RequiredParam[float64](request.Params.Arguments, "ttl") + ttl, err := request.RequireFloat("ttl") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil } @@ -701,7 +700,7 @@ func handleTopicsSetMessageTTL(_ context.Context, request mcp.CallToolRequest) ( // handleTopicsRemoveMessageTTL removes the message TTL for a topic func handleTopicsRemoveMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -730,7 +729,7 @@ func handleTopicsRemoveMessageTTL(_ context.Context, request mcp.CallToolRequest // handleTopicsGetMaxProducers gets the maximum number of producers allowed for a topic func handleTopicsGetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -765,12 +764,12 @@ func handleTopicsGetMaxProducers(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetMaxProducers sets the maximum number of producers allowed for a topic func handleTopicsSetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxProducers, err := common.RequiredParam[float64](request.Params.Arguments, "maxProducers") + maxProducers, err := request.RequireFloat("maxProducers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxProducers: %v", err)), nil } @@ -811,7 +810,7 @@ func handleTopicsSetMaxProducers(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveMaxProducers removes the maximum producers limit for a topic func handleTopicsRemoveMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -840,7 +839,7 @@ func handleTopicsRemoveMaxProducers(_ context.Context, request mcp.CallToolReque // handleTopicsGetMaxConsumers gets the maximum number of consumers allowed for a topic func handleTopicsGetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -875,12 +874,12 @@ func handleTopicsGetMaxConsumers(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetMaxConsumers sets the maximum number of consumers allowed for a topic func handleTopicsSetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxConsumers, err := common.RequiredParam[float64](request.Params.Arguments, "maxConsumers") + maxConsumers, err := request.RequireFloat("maxConsumers") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxConsumers: %v", err)), nil } @@ -921,7 +920,7 @@ func handleTopicsSetMaxConsumers(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveMaxConsumers removes the maximum consumers limit for a topic func handleTopicsRemoveMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -951,7 +950,7 @@ func handleTopicsRemoveMaxConsumers(_ context.Context, request mcp.CallToolReque // gets the maximum number of unacknowledged messages allowed for a consumer on a topic func handleTopicsGetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -989,12 +988,12 @@ func handleTopicsGetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.C // sets the maximum number of unacknowledged messages allowed for a consumer on a topic func handleTopicsSetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxUnack, err := common.RequiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerConsumer") + maxUnack, err := request.RequireFloat("maxUnackMessagesPerConsumer") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerConsumer: %v", err)), nil } @@ -1036,7 +1035,7 @@ func handleTopicsSetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.C // removes the maximum unacknowledged messages per consumer limit for a topic func handleTopicsRemoveMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1071,7 +1070,7 @@ func handleTopicsRemoveMaxUnackMessagesPerConsumer(_ context.Context, request mc // gets the maximum number of unacknowledged messages allowed for a subscription on a topic func handleTopicsGetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1111,12 +1110,12 @@ func handleTopicsGetMaxUnackMessagesPerSubscription(_ context.Context, request m // sets the maximum number of unacknowledged messages allowed for a subscription on a topic func handleTopicsSetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - maxUnack, err := common.RequiredParam[float64](request.Params.Arguments, "maxUnackMessagesPerSubscription") + maxUnack, err := request.RequireFloat("maxUnackMessagesPerSubscription") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerSubscription: %v", err)), nil } @@ -1162,7 +1161,7 @@ func handleTopicsSetMaxUnackMessagesPerSubscription(_ context.Context, request m // removes the maximum unacknowledged messages per subscription limit for a topic func handleTopicsRemoveMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1196,7 +1195,7 @@ func handleTopicsRemoveMaxUnackMessagesPerSubscription(_ context.Context, reques // handleTopicsGetPersistence gets the persistence policy for a topic func handleTopicsGetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1231,22 +1230,22 @@ func handleTopicsGetPersistence(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetPersistence sets the persistence policy for a topic func handleTopicsSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - ensembleSize, err := common.RequiredParam[float64](request.Params.Arguments, "ensembleSize") + ensembleSize, err := request.RequireFloat("ensembleSize") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensembleSize: %v", err)), nil } - writeQuorum, err := common.RequiredParam[float64](request.Params.Arguments, "writeQuorum") + writeQuorum, err := request.RequireFloat("writeQuorum") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get writeQuorum: %v", err)), nil } - ackQuorum, err := common.RequiredParam[float64](request.Params.Arguments, "ackQuorum") + ackQuorum, err := request.RequireFloat("ackQuorum") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get ackQuorum: %v", err)), nil } @@ -1299,7 +1298,7 @@ func handleTopicsSetPersistence(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemovePersistence removes the persistence policy for a topic func handleTopicsRemovePersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1328,7 +1327,7 @@ func handleTopicsRemovePersistence(_ context.Context, request mcp.CallToolReques // handleTopicsGetDelayedDelivery gets the delayed delivery policy for a topic func handleTopicsGetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1363,12 +1362,12 @@ func handleTopicsGetDelayedDelivery(_ context.Context, request mcp.CallToolReque // handleTopicsSetDelayedDelivery sets the delayed delivery policy for a topic func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - delayInMillis, err := common.RequiredParam[float64](request.Params.Arguments, "delayInMillis") + delayInMillis, err := request.RequireFloat("delayInMillis") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get delayInMillis: %v", err)), nil } @@ -1380,8 +1379,8 @@ func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolReque // Default tick time is 1 second (1000ms) tickTime := 1000.0 - tickTimeParam, hasTickTime := common.OptionalParam[float64](request.Params.Arguments, "tickTime") - if hasTickTime && tickTimeParam > 0 { + tickTimeParam := request.GetFloat("tickTime", 0) + if tickTimeParam > 0 { tickTime = tickTimeParam } @@ -1421,7 +1420,7 @@ func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolReque // handleTopicsRemoveDelayedDelivery removes the delayed delivery policy for a topic func handleTopicsRemoveDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1450,7 +1449,7 @@ func handleTopicsRemoveDelayedDelivery(_ context.Context, request mcp.CallToolRe // handleTopicsGetDispatchRate gets the message dispatch rate for a topic func handleTopicsGetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1490,7 +1489,7 @@ func handleTopicsGetDispatchRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetDispatchRate sets the message dispatch rate for a topic func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1513,22 +1512,22 @@ func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) ratePeriodInSecond := int64(1) // default 1 second // Get dispatch rate in messages if provided - msgRateParam, hasMsgRate := common.OptionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInMsg") - if hasMsgRate { + msgRateParam := request.GetFloat("dispatchThrottlingRateInMsg", -1) + if msgRateParam != -1 { dispatchRateInMsg = int64(msgRateParam) } // Get dispatch rate in bytes if provided - byteRateParam, hasByteRate := common.OptionalParam[float64](request.Params.Arguments, "dispatchThrottlingRateInByte") - if hasByteRate { + byteRateParam := request.GetFloat("dispatchThrottlingRateInByte", -1) + if byteRateParam != -1 { dispatchRateInByte = int64(byteRateParam) } // Get rate period if provided - ratePeriodParam, hasRatePeriod := common.OptionalParam[float64](request.Params.Arguments, "ratePeriodInSecond") - if hasRatePeriod && ratePeriodParam > 0 { + ratePeriodParam := request.GetFloat("ratePeriodInSecond", 0) + if ratePeriodParam > 0 { ratePeriodInSecond = int64(ratePeriodParam) - } else if hasRatePeriod && ratePeriodParam <= 0 { + } else if ratePeriodParam <= 0 { return mcp.NewToolResultError("Rate period must be positive"), nil } @@ -1572,7 +1571,7 @@ func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveDispatchRate removes the message dispatch rate for a topic func handleTopicsRemoveDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1601,7 +1600,7 @@ func handleTopicsRemoveDispatchRate(_ context.Context, request mcp.CallToolReque // handleTopicsGetDeduplicationStatus gets the deduplication status for a topic func handleTopicsGetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1635,12 +1634,12 @@ func handleTopicsGetDeduplicationStatus(_ context.Context, request mcp.CallToolR // handleTopicsSetDeduplicationStatus sets the deduplication status for a topic func handleTopicsSetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - enabled, err := common.RequiredParam[bool](request.Params.Arguments, "enabled") + enabled, err := request.RequireBool("enabled") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get enabled parameter: %v", err)), nil } @@ -1674,7 +1673,7 @@ func handleTopicsSetDeduplicationStatus(_ context.Context, request mcp.CallToolR // handleTopicsRemoveDeduplicationStatus removes the deduplication status for a topic func handleTopicsRemoveDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1703,7 +1702,7 @@ func handleTopicsRemoveDeduplicationStatus(_ context.Context, request mcp.CallTo // handleTopicsGetRetention gets the retention policy for a topic func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1716,8 +1715,8 @@ func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (* // Check if applied policies should be included applied := false - appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") - if hasApplied { + appliedParam := request.GetBool("applied", false) + if appliedParam { applied = appliedParam } @@ -1769,17 +1768,17 @@ func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (* // handleTopicsSetRetention sets the retention policy for a topic func handleTopicsSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - retentionTimeInMinutes, err := common.RequiredParam[float64](request.Params.Arguments, "retentionTimeInMinutes") + retentionTimeInMinutes, err := request.RequireFloat("retentionTimeInMinutes") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionTimeInMinutes: %v", err)), nil } - retentionSizeInMB, err := common.RequiredParam[float64](request.Params.Arguments, "retentionSizeInMB") + retentionSizeInMB, err := request.RequireFloat("retentionSizeInMB") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionSizeInMB: %v", err)), nil } @@ -1836,7 +1835,7 @@ func handleTopicsSetRetention(_ context.Context, request mcp.CallToolRequest) (* // handleTopicsRemoveRetention removes the retention policy for a topic func handleTopicsRemoveRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1865,7 +1864,7 @@ func handleTopicsRemoveRetention(_ context.Context, request mcp.CallToolRequest) // handleTopicsGetBacklogQuota gets the backlog quota policy for a topic func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -1878,8 +1877,8 @@ func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) // Check if applied policies should be included applied := false - appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") - if hasApplied { + appliedParam := request.GetBool("applied", false) + if appliedParam { applied = appliedParam } @@ -1911,17 +1910,17 @@ func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) // handleTopicsSetBacklogQuota sets the backlog quota policy for a topic func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - limitSize, err := common.RequiredParam[float64](request.Params.Arguments, "limitSize") + limitSize, err := request.RequireFloat("limitSize") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get limitSize: %v", err)), nil } - policy, err := common.RequiredParam[string](request.Params.Arguments, "policy") + policy, err := request.RequireString("policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil } @@ -1942,8 +1941,8 @@ func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) limitTime := int64(-1) // unlimited by default // Get limit time if provided - limitTimeParam, hasLimitTime := common.OptionalParam[float64](request.Params.Arguments, "limitTime") - if hasLimitTime { + limitTimeParam := request.GetFloat("limitTime", -1) + if limitTimeParam != -1 { limitTime = int64(limitTimeParam) } @@ -1957,8 +1956,8 @@ func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) backlogQuotaType := utils.DestinationStorage // Get quota type if provided - quotaTypeStr, hasQuotaType := common.OptionalParam[string](request.Params.Arguments, "type") - if hasQuotaType { + quotaTypeStr := request.GetString("type", "") + if quotaTypeStr != "" { parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to parse quota type: %v", err)), nil @@ -1982,7 +1981,7 @@ func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) // handleTopicsRemoveBacklogQuota removes the backlog quota policy from a topic func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2003,8 +2002,8 @@ func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolReque backlogQuotaType := utils.DestinationStorage // Get quota type if provided - quotaTypeStr, hasQuotaType := common.OptionalParam[string](request.Params.Arguments, "type") - if hasQuotaType { + quotaTypeStr := request.GetString("type", "") + if quotaTypeStr != "" { parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to parse quota type: %v", err)), nil @@ -2024,7 +2023,7 @@ func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolReque // handleTopicsGetCompactionThreshold gets the compaction threshold for a topic func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2037,8 +2036,8 @@ func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolR // Check if applied policies should be included applied := false - appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") - if hasApplied { + appliedParam := request.GetBool("applied", false) + if appliedParam { applied = appliedParam } @@ -2066,12 +2065,12 @@ func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolR // handleTopicsSetCompactionThreshold sets the compaction threshold for a topic func handleTopicsSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - threshold, err := common.RequiredParam[float64](request.Params.Arguments, "threshold") + threshold, err := request.RequireFloat("threshold") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil } @@ -2112,7 +2111,7 @@ func handleTopicsSetCompactionThreshold(_ context.Context, request mcp.CallToolR // handleTopicsRemoveCompactionThreshold removes the compaction threshold for a topic func handleTopicsRemoveCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2142,7 +2141,7 @@ func handleTopicsRemoveCompactionThreshold(_ context.Context, request mcp.CallTo // handleTopicsGetInactiveTopic gets the inactive topic policies for a topic func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2155,8 +2154,8 @@ func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest // Check if applied policies should be included applied := false - appliedParam, hasApplied := common.OptionalParam[bool](request.Params.Arguments, "applied") - if hasApplied { + appliedParam := request.GetBool("applied", false) + if appliedParam { applied = appliedParam } @@ -2184,22 +2183,22 @@ func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest // handleTopicsSetInactiveTopic sets the inactive topic policies for a topic func handleTopicsSetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - enableDelete, err := common.RequiredParam[bool](request.Params.Arguments, "enableDeleteWhileInactive") + enableDelete, err := request.RequireBool("enableDeleteWhileInactive") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get enableDeleteWhileInactive: %v", err)), nil } - maxInactiveDuration, err := common.RequiredParam[float64](request.Params.Arguments, "maxInactiveDurationSeconds") + maxInactiveDuration, err := request.RequireFloat("maxInactiveDurationSeconds") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxInactiveDurationSeconds: %v", err)), nil } - deleteModeStr, err := common.RequiredParam[string](request.Params.Arguments, "deleteMode") + deleteModeStr, err := request.RequireString("deleteMode") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get deleteMode: %v", err)), nil } @@ -2247,7 +2246,7 @@ func handleTopicsSetInactiveTopic(_ context.Context, request mcp.CallToolRequest // handleTopicsRemoveInactiveTopic removes the inactive topic policies from a topic func handleTopicsRemoveInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } @@ -2277,12 +2276,12 @@ func handleTopicsRemoveInactiveTopic(_ context.Context, request mcp.CallToolRequ // handleTopicGetPolicy handles getting policies for a topic using the unified tool func handleTopicGetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - _, err := common.RequiredParam[string](request.Params.Arguments, "topic") + _, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") + policyType, err := request.RequireString("policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } @@ -2327,12 +2326,12 @@ func handleTopicGetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mc // handleTopicSetPolicy handles setting policies for a topic using the unified tool func handleTopicSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - _, err := common.RequiredParam[string](request.Params.Arguments, "topic") + _, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") + policyType, err := request.RequireString("policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } @@ -2377,12 +2376,12 @@ func handleTopicSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mc // handleTopicRemovePolicy handles removing policies for a topic using the unified tool func handleTopicRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - _, err := common.RequiredParam[string](request.Params.Arguments, "topic") + _, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil } - policyType, err := common.RequiredParam[string](request.Params.Arguments, "policy") + policyType, err := request.RequireString("policy") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil } diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index 50be189..9bf561b 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -28,7 +28,6 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -136,12 +135,12 @@ func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []str func handleTopicTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - resource, err := common.RequiredParam[string](request.Params.Arguments, "resource") + resource, err := request.RequireString("resource") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil } - operation, err := common.RequiredParam[string](request.Params.Arguments, "operation") + operation, err := request.RequireString("operation") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil } @@ -217,7 +216,7 @@ func handleTopicTool(readOnly bool) func(_ context.Context, request mcp.CallTool // handleTopicsList lists all existing topics under the specified namespace func handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - namespace, err := common.RequiredParam[string](request.Params.Arguments, "namespace") + namespace, err := request.RequireString("namespace") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for topics.list: %v", err)), nil } @@ -255,7 +254,7 @@ func handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp. // handleTopicGet gets the metadata of an existing topic func handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.get: %v", err)), nil } @@ -285,20 +284,20 @@ func handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.Ca // handleTopicStats gets the stats for an existing topic func handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.stats: %v", err)), nil } // Get optional parameters - partitioned, hasPartitioned := common.OptionalParam[bool](request.Params.Arguments, "partitioned") - perPartition, hasPerPartition := common.OptionalParam[bool](request.Params.Arguments, "per-partition") + partitioned := request.GetBool("partitioned", false) + perPartition := request.GetBool("per-partition", false) - if !hasPartitioned { + if !partitioned { partitioned = false } - if !hasPerPartition { + if !perPartition { perPartition = false } @@ -362,7 +361,7 @@ func handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp. // handleTopicLookup looks up the owner broker of a topic func handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.lookup: %v", err)), nil } @@ -392,12 +391,12 @@ func handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicCreate creates a topic with the specified number of partitions func handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.create: %v", err)), nil } - partitions, err := common.RequiredParam[float64](request.Params.Arguments, "partitions") + partitions, err := request.RequireFloat("partitions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.create: %v", err)), nil } @@ -431,20 +430,20 @@ func handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicDelete deletes a topic func handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.delete: %v", err)), nil } // Get optional parameters - force, hasForce := common.OptionalParam[bool](request.Params.Arguments, "force") - nonPartitioned, hasNonPartitioned := common.OptionalParam[bool](request.Params.Arguments, "non-partitioned") + force := request.GetBool("force", false) + nonPartitioned := request.GetBool("non-partitioned", false) - if !hasForce { + if !force { force = false } - if !hasNonPartitioned { + if !nonPartitioned { nonPartitioned = false } @@ -477,7 +476,7 @@ func handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicUnload unloads a topic func handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.unload: %v", err)), nil } @@ -500,7 +499,7 @@ func handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicTerminate terminates a topic func handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.terminate: %v", err)), nil } @@ -528,7 +527,7 @@ func handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (* // handleTopicCompact triggers compaction on a topic func handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.compact: %v", err)), nil } @@ -552,7 +551,7 @@ func handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTopicInternalStats gets the internal stats for a topic func handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-stats: %v", err)), nil } @@ -581,7 +580,7 @@ func handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest // handleTopicInternalInfo gets the internal info for a topic func handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-info: %v", err)), nil } @@ -610,7 +609,7 @@ func handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) // handleTopicBundleRange gets the bundle range of a topic func handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.bundle-range: %v", err)), nil } @@ -633,7 +632,7 @@ func handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) // handleTopicLastMessageID gets the last message ID of a topic func handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.last-message-id: %v", err)), nil } @@ -662,7 +661,7 @@ func handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest // handleTopicStatus gets the status of a topic func handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.status: %v", err)), nil } @@ -700,12 +699,12 @@ func handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicUpdate updates a topic configuration func handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.update: %v", err)), nil } - partitions, err := common.RequiredParam[float64](request.Params.Arguments, "partitions") + partitions, err := request.RequireFloat("partitions") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.update: %v", err)), nil } @@ -728,12 +727,12 @@ func handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp // handleTopicOffload offloads data from a topic to long-term storage func handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload: %v", err)), nil } - messageIDStr, err := common.RequiredParam[string](request.Params.Arguments, "messageId") + messageIDStr, err := request.RequireString("messageId") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for topic.offload: %v", err)), nil } @@ -771,7 +770,7 @@ func handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mc // handleTopicOffloadStatus checks the status of data offloading for a topic func handleTopicOffloadStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Get required parameters - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload-status: %v", err)), nil } diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go index b247034..3c9edb3 100644 --- a/pkg/mcp/pulsar_client_consume_tools.go +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -28,7 +28,6 @@ import ( "github.com/apache/pulsar-client-go/pulsar" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -77,49 +76,49 @@ func PulsarClientAddConsumerTools(s *server.MCPServer, _ bool, features []string func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract required parameters with validation - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } - subscriptionName, err := common.RequiredParam[string](request.Params.Arguments, "subscription-name") + subscriptionName, err := request.RequireString("subscription-name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil } // Set default values and extract optional parameters subscriptionType := "exclusive" - if val, exists := common.OptionalParam[string](request.Params.Arguments, "subscription-type"); exists && val != "" { + if val := request.GetString("subscription-type", ""); val != "" { subscriptionType = val } subscriptionMode := "durable" - if val, exists := common.OptionalParam[string](request.Params.Arguments, "subscription-mode"); exists && val != "" { + if val := request.GetString("subscription-mode", ""); val != "" { subscriptionMode = val } initialPosition := "latest" - if val, exists := common.OptionalParam[string](request.Params.Arguments, "initial-position"); exists && val != "" { + if val := request.GetString("initial-position", ""); val != "" { initialPosition = val } numMessages := 10 - if val, exists := common.OptionalParam[float64](request.Params.Arguments, "num-messages"); exists { + if val := request.GetFloat("num-messages", 10); val != 0 { numMessages = int(val) } timeout := 30 - if val, exists := common.OptionalParam[float64](request.Params.Arguments, "timeout"); exists { + if val := request.GetFloat("timeout", 30); val != 0 { timeout = int(val) } showProperties := false - if val, exists := common.OptionalParam[bool](request.Params.Arguments, "show-properties"); exists { + if val := request.GetBool("show-properties", false); val { showProperties = val } hidePayload := false - if val, exists := common.OptionalParam[bool](request.Params.Arguments, "hide-payload"); exists { + if val := request.GetBool("hide-payload", false); val { hidePayload = val } diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index c064cae..b7ccae1 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -28,7 +28,6 @@ import ( "github.com/apache/pulsar-client-go/pulsar" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) @@ -88,19 +87,15 @@ func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { // Extract required parameters with validation - topic, err := common.RequiredParam[string](request.Params.Arguments, "topic") + topic, err := request.RequireString("topic") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil } // Set default values and extract optional parameters messages := []string{} - if val, exists := common.OptionalParam[[]interface{}](request.Params.Arguments, "messages"); exists && len(val) > 0 { - for _, m := range val { - if strMsg, ok := m.(string); ok { - messages = append(messages, strMsg) - } - } + if val := request.GetStringSlice("messages", []string{}); len(val) > 0 { + messages = val } if len(messages) == 0 { @@ -108,41 +103,37 @@ func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp } numProduce := 1 - if val, exists := common.OptionalParam[float64](request.Params.Arguments, "num-produce"); exists { + if val := request.GetFloat("num-produce", 1); val != 0 { numProduce = int(val) } rate := 0.0 - if val, exists := common.OptionalParam[float64](request.Params.Arguments, "rate"); exists { + if val := request.GetFloat("rate", 0); val != 0 { rate = val } disableBatching := false - if val, exists := common.OptionalParam[bool](request.Params.Arguments, "disable-batching"); exists { + if val := request.GetBool("disable-batching", false); val { disableBatching = val } chunkingAllowed := false - if val, exists := common.OptionalParam[bool](request.Params.Arguments, "chunking"); exists { + if val := request.GetBool("chunking", false); val { chunkingAllowed = val } separator := "" - if val, exists := common.OptionalParam[string](request.Params.Arguments, "separator"); exists && val != "" { + if val := request.GetString("separator", ""); val != "" { separator = val } properties := []string{} - if val, exists := common.OptionalParam[[]interface{}](request.Params.Arguments, "properties"); exists && len(val) > 0 { - for _, p := range val { - if strProp, ok := p.(string); ok { - properties = append(properties, strProp) - } - } + if val := request.GetStringSlice("properties", []string{}); len(val) > 0 { + properties = val } key := "" - if val, exists := common.OptionalParam[string](request.Params.Arguments, "key"); exists { + if val := request.GetString("key", ""); val != "" { key = val } diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go index 1611748..ebc1706 100644 --- a/pkg/mcp/streamnative_resources_log_tools.go +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -120,50 +120,31 @@ func handleStreamNativeResourcesLog(ctx context.Context, request mcp.CallToolReq } // Extract required parameters with validation - component, err := common.RequiredParam[string](request.Params.Arguments, "component") + component, err := request.RequireString("component") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get component: %v", err)), nil } - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } - tenant, hasTenant := common.OptionalParam[string](request.Params.Arguments, "tenant") - if !hasTenant { - tenant = "public" - } + tenant := request.GetString("tenant", "public") - namespace, hasNamespace := common.OptionalParam[string](request.Params.Arguments, "namespace") - if !hasNamespace { - namespace = "default" - } + namespace := request.GetString("namespace", "default") - size, hasSize := common.OptionalParam[string](request.Params.Arguments, "size") - if !hasSize { - size = "20" - } + size := request.GetString("size", "20") - replicaID, hasreplicaID := common.OptionalParam[int](request.Params.Arguments, "replica_id") - if !hasreplicaID { + replicaID := request.GetInt("replica_id", -1) + if replicaID == 0 { replicaID = -1 } - timestampStr, hasTimestamp := common.OptionalParam[string](request.Params.Arguments, "timestamp") - if !hasTimestamp { - timestampStr = "" - } + timestampStr := request.GetString("timestamp", "") + sinceStr := request.GetString("since", "") - sinceStr, hasSince := common.OptionalParam[string](request.Params.Arguments, "since") - if !hasSince { - sinceStr = "" - } - - previousContainer, hasPreviousContainer := common.OptionalParam[bool](request.Params.Arguments, "previous_container") - if !hasPreviousContainer { - previousContainer = false - } + previousContainer := request.GetBool("previous_container", false) if sinceStr != "" { sinceStr = "-" + sinceStr diff --git a/pkg/mcp/streamnative_resources_tools.go b/pkg/mcp/streamnative_resources_tools.go index 7d09842..69007ab 100644 --- a/pkg/mcp/streamnative_resources_tools.go +++ b/pkg/mcp/streamnative_resources_tools.go @@ -81,16 +81,13 @@ func handleStreamNativeResourcesApply(ctx context.Context, request mcp.CallToolR } // Get YAML content - jsonContent, err := common.RequiredParam[string](request.Params.Arguments, "json_content") + jsonContent, err := request.RequireString("json_content") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get json_content: %v", err)), nil } // Get dry_run flag - dryRun, hasDryRun := common.OptionalParam[bool](request.Params.Arguments, "dry_run") - if !hasDryRun { - dryRun = false - } + dryRun := request.GetBool("dry_run", false) // Get API client apiClient, err := config.GetAPIClient() @@ -327,12 +324,12 @@ func handleStreamNativeResourcesDelete(ctx context.Context, request mcp.CallTool snConfig := common.GetOptions(ctx) organization := snConfig.Organization - name, err := common.RequiredParam[string](request.Params.Arguments, "name") + name, err := request.RequireString("name") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil } - resourceType, err := common.RequiredParam[string](request.Params.Arguments, "type") + resourceType, err := request.RequireString("type") if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get type: %v", err)), nil } diff --git a/pkg/pftools/manager.go b/pkg/pftools/manager.go index d69470b..91fb014 100644 --- a/pkg/pftools/manager.go +++ b/pkg/pftools/manager.go @@ -435,7 +435,7 @@ func (m *PulsarFunctionManager) handleToolCall(fnTool *FunctionTool) func(ctx co }() // Invoke function and wait for result - result, err := invoker.InvokeFunctionAndWait(timeoutCtx, fnTool, request.Params.Arguments) + result, err := invoker.InvokeFunctionAndWait(timeoutCtx, fnTool, request.GetArguments()) // Record success or failure if err != nil { From f928dc19a18607a57189a8931ba489a2d2fe3517 Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Sun, 29 Jun 2025 18:17:09 -0700 Subject: [PATCH 30/85] feat: Add multi-platform Docker build support with backward compatibility (#47) - Update Dockerfile to support multi-platform builds (linux/amd64, linux/arm64) - Switch to Go 1.24-alpine base image to match go.mod requirements - Add multi-stage build with proper cross-compilation support - Implement security best practices (non-root user, minimal base image) - Update Makefile with Docker build targets (docker-build, docker-build-multiplatform, docker-build-push) - Support both 'mcp-server' and 'snmcp' image names for backward compatibility - Add comprehensive DOCKER_BUILD.md documentation - Fix SDK module dependencies in Dockerfile build process --- .goreleaser.yaml | 43 ++++++++++- DOCKER_BUILD.md | 165 ++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 56 +++++++++++++- Dockerfile.goreleaser | 29 ++++++++ Makefile | 65 +++++++++++++++++ 5 files changed, 355 insertions(+), 3 deletions(-) create mode 100644 DOCKER_BUILD.md create mode 100644 Dockerfile.goreleaser diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b769b92..0d4afdf 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -51,8 +51,47 @@ release: dockers: - image_templates: - - "streamnative/snmcp:{{ .Tag }}" - - "streamnative/snmcp:latest" + - "streamnative/snmcp:{{ .Tag }}-amd64" + - "streamnative/snmcp:latest-amd64" + dockerfile: Dockerfile.goreleaser + goos: linux + goarch: amd64 + - image_templates: + - "streamnative/snmcp:{{ .Tag }}-arm64" + - "streamnative/snmcp:latest-arm64" + dockerfile: Dockerfile.goreleaser + goos: linux + goarch: arm64 + - image_templates: + - "streamnative/mcp-server:{{ .Tag }}-amd64" + - "streamnative/mcp-server:latest-amd64" + dockerfile: Dockerfile.goreleaser + goos: linux + goarch: amd64 + - image_templates: + - "streamnative/mcp-server:{{ .Tag }}-arm64" + - "streamnative/mcp-server:latest-arm64" + dockerfile: Dockerfile.goreleaser + goos: linux + goarch: arm64 + +docker_manifests: + - name_template: "streamnative/snmcp:{{ .Tag }}" + image_templates: + - "streamnative/snmcp:{{ .Tag }}-amd64" + - "streamnative/snmcp:{{ .Tag }}-arm64" + - name_template: "streamnative/snmcp:latest" + image_templates: + - "streamnative/snmcp:latest-amd64" + - "streamnative/snmcp:latest-arm64" + - name_template: "streamnative/mcp-server:{{ .Tag }}" + image_templates: + - "streamnative/mcp-server:{{ .Tag }}-amd64" + - "streamnative/mcp-server:{{ .Tag }}-arm64" + - name_template: "streamnative/mcp-server:latest" + image_templates: + - "streamnative/mcp-server:latest-amd64" + - "streamnative/mcp-server:latest-arm64" brews: - name: snmcp diff --git a/DOCKER_BUILD.md b/DOCKER_BUILD.md new file mode 100644 index 0000000..cbb7420 --- /dev/null +++ b/DOCKER_BUILD.md @@ -0,0 +1,165 @@ +# Building Multi-Platform Docker Images + +This document explains how to build Docker images that work on both Linux and Mac (including M1/M2/M3 Macs). + +## Prerequisites + +- Docker 19.03 or newer with buildx support +- Docker buildx plugin enabled + +## Quick Start + +### Build for Local Platform + +To build a Docker image for your current platform: + +```bash +make docker-build +``` + +This creates images with both names for backward compatibility: +- `docker.io/streamnative/mcp-server:latest` +- `docker.io/streamnative/mcp-server:` +- `docker.io/streamnative/snmcp:latest` (legacy name) +- `docker.io/streamnative/snmcp:` (legacy name) + +### Build Multi-Platform Images + +To build images for both Linux (amd64) and Mac (arm64): + +```bash +make docker-build-multiplatform +``` + +### Build and Push to Registry + +To build multi-platform images and push them to a registry: + +```bash +make docker-build-push +``` + +## Customization + +You can customize the build using environment variables: + +```bash +# Use custom registry +DOCKER_REGISTRY=myregistry.io make docker-build-push + +# Use custom image names +DOCKER_IMAGE=my-mcp-server DOCKER_IMAGE_LEGACY=my-snmcp make docker-build + +# Build for specific platforms +DOCKER_PLATFORMS="linux/amd64,linux/arm64,linux/arm/v7" make docker-build-multiplatform +``` + +## Platform Support + +By default, images are built for: +- `linux/amd64` - Intel/AMD 64-bit processors (most Linux servers and older Macs) +- `linux/arm64` - ARM 64-bit processors (Apple Silicon Macs, ARM-based servers) + +## Running the Image + +You can use either `mcp-server` or `snmcp` image names - they are identical: + +### On Linux (amd64/x86_64) + +```bash +# Using the new name +docker run --rm -it docker.io/streamnative/mcp-server:latest + +# Using the legacy name (backward compatibility) +docker run --rm -it docker.io/streamnative/snmcp:latest +``` + +### On Mac (Intel) + +```bash +# Using the new name +docker run --rm -it docker.io/streamnative/mcp-server:latest + +# Using the legacy name (backward compatibility) +docker run --rm -it docker.io/streamnative/snmcp:latest +``` + +### On Mac (Apple Silicon M1/M2/M3) + +```bash +# Using the new name +docker run --rm -it --platform linux/arm64 docker.io/streamnative/mcp-server:latest + +# Using the legacy name (backward compatibility) +docker run --rm -it --platform linux/arm64 docker.io/streamnative/snmcp:latest +``` + +## Image Names + +For backward compatibility, all builds create images with two names: +- `streamnative/mcp-server` - The new, preferred name +- `streamnative/snmcp` - The legacy name for backward compatibility + +Both names point to the exact same image and can be used interchangeably. + +## Troubleshooting + +### Enable Docker Buildx + +If buildx is not available, enable it: + +```bash +# Check if buildx is available +docker buildx version + +# Create and use a new builder +docker buildx create --use +``` + +### Clean Build Environment + +If you encounter issues, clean the buildx environment: + +```bash +make docker-buildx-clean +make docker-buildx-setup +``` + +## Build Arguments + +The Dockerfile accepts the following build arguments: +- `VERSION` - Version string for the binary +- `COMMIT` - Git commit hash +- `BUILD_DATE` - Build timestamp + +These are automatically set by the Makefile based on git information. + +## Security + +The Docker image: +- Runs as a non-root user (uid: 1000, gid: 1000) +- Uses minimal Alpine Linux base image +- Includes only necessary CA certificates for HTTPS connections +- Has a read-only root filesystem (can be enforced with `--read-only` flag) + +## Example: Complete Build and Run + +```bash +# Setup buildx (first time only) +make docker-buildx-setup + +# Build multi-platform image (creates both mcp-server and snmcp tags) +make docker-build-multiplatform + +# Run on current platform (using new name) +docker run --rm -it docker.io/streamnative/mcp-server:latest + +# Run on current platform (using legacy name) +docker run --rm -it docker.io/streamnative/snmcp:latest + +# Run with custom configuration +docker run --rm -it \ + -v $(pwd)/config.yaml:/server/config.yaml:ro \ + docker.io/streamnative/mcp-server:latest \ + --config /server/config.yaml +``` \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 5f7ea33..379dc67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,60 @@ +# Multi-stage build for multi-platform support +FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder + +# Install build dependencies +RUN apk add --no-cache git make + +# Set working directory +WORKDIR /build + +# Copy go mod files and SDK directories first +COPY go.mod go.sum go.work go.work.sum ./ +COPY sdk/ ./sdk/ + +# Download dependencies +RUN go mod download + +# Copy source code +COPY . . + +# Build arguments for cross-compilation +ARG TARGETOS +ARG TARGETARCH +ARG VERSION +ARG COMMIT +ARG BUILD_DATE + +# Build the binary for the target platform +RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ + go build -ldflags "\ + -X main.version=${VERSION} \ + -X main.commit=${COMMIT} \ + -X main.date=${BUILD_DATE}" \ + -o snmcp cmd/streamnative-mcp-server/main.go + +# Final stage - minimal Alpine image FROM alpine:3.21 + +# Install CA certificates for HTTPS connections RUN apk --no-cache add ca-certificates + +# Create non-root user +RUN addgroup -g 1000 snmcp && \ + adduser -D -u 1000 -G snmcp snmcp + +# Set working directory WORKDIR /server -COPY snmcp /server/snmcp + +# Copy binary from builder +COPY --from=builder /build/snmcp /server/snmcp + +# Change ownership +RUN chown -R snmcp:snmcp /server + +# Switch to non-root user +USER snmcp + +# Expose port if needed (adjust based on your application) +# EXPOSE 8080 ENTRYPOINT ["/server/snmcp"] diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser new file mode 100644 index 0000000..738e44c --- /dev/null +++ b/Dockerfile.goreleaser @@ -0,0 +1,29 @@ +# Minimal Alpine image for GoReleaser builds +FROM alpine:3.21 + +# Install CA certificates for HTTPS connections +RUN apk --no-cache add ca-certificates + +# Create non-root user +RUN addgroup -g 1000 snmcp && \ + adduser -D -u 1000 -G snmcp snmcp + +# Set working directory +WORKDIR /server + +# Copy pre-built binary from GoReleaser +COPY snmcp /server/snmcp + +# Make binary executable +RUN chmod +x /server/snmcp + +# Change ownership +RUN chown -R snmcp:snmcp /server + +# Switch to non-root user +USER snmcp + +# Expose port if needed (adjust based on your application) +# EXPOSE 8080 + +ENTRYPOINT ["/server/snmcp"] \ No newline at end of file diff --git a/Makefile b/Makefile index 569cb67..6aa2a26 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,13 @@ GIT_COMMIT=$(shell git rev-parse HEAD) BUILD_DATE=$(shell date -u +"%Y-%m-%dT%H:%M:%SZ") MKDIR_P = mkdir -p +# Docker configuration +DOCKER_REGISTRY ?= docker.io +DOCKER_IMAGE ?= streamnative/mcp-server +DOCKER_IMAGE_LEGACY ?= streamnative/snmcp +DOCKER_TAG ?= $(GIT_VERSION) +DOCKER_PLATFORMS ?= linux/amd64,linux/arm64 + export GOPRIVATE=github.com/streamnative .PHONY: all @@ -19,6 +26,64 @@ build: -X ${VERSION_PATH}.date=${BUILD_DATE}" \ -o bin/snmcp cmd/streamnative-mcp-server/main.go +# Build Docker image for local platform with both names +.PHONY: docker-build +docker-build: + docker build \ + --build-arg VERSION=$(GIT_VERSION) \ + --build-arg COMMIT=$(GIT_COMMIT) \ + --build-arg BUILD_DATE=$(BUILD_DATE) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE):$(DOCKER_TAG) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE):latest \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_LEGACY):$(DOCKER_TAG) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_LEGACY):latest \ + . + +# Build multi-platform Docker image and push to registry with both names +.PHONY: docker-build-push +docker-build-push: docker-buildx-setup + docker buildx build \ + --platform $(DOCKER_PLATFORMS) \ + --build-arg VERSION=$(GIT_VERSION) \ + --build-arg COMMIT=$(GIT_COMMIT) \ + --build-arg BUILD_DATE=$(BUILD_DATE) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE):$(DOCKER_TAG) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE):latest \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_LEGACY):$(DOCKER_TAG) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_LEGACY):latest \ + --push \ + . + +# Build multi-platform Docker image without pushing (for testing) with both names +.PHONY: docker-build-multiplatform +docker-build-multiplatform: docker-buildx-setup + docker buildx build \ + --platform $(DOCKER_PLATFORMS) \ + --build-arg VERSION=$(GIT_VERSION) \ + --build-arg COMMIT=$(GIT_COMMIT) \ + --build-arg BUILD_DATE=$(BUILD_DATE) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE):$(DOCKER_TAG) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE):latest \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_LEGACY):$(DOCKER_TAG) \ + -t $(DOCKER_REGISTRY)/$(DOCKER_IMAGE_LEGACY):latest \ + --load \ + . + +# Setup Docker buildx for multi-platform builds +.PHONY: docker-buildx-setup +docker-buildx-setup: + @if ! docker buildx ls | grep -q mcp-builder; then \ + docker buildx create --name mcp-builder --use; \ + docker buildx inspect --bootstrap; \ + else \ + docker buildx use mcp-builder; \ + fi + +# Clean Docker buildx builder +.PHONY: docker-buildx-clean +docker-buildx-clean: + -docker buildx rm mcp-builder + .PHONY: license-check license-check: license-eye header check From 6c9d3d8b7a17222b6bd84188b1151de16e7ea130 Mon Sep 17 00:00:00 2001 From: Sijie Guo Date: Sun, 29 Jun 2025 18:17:56 -0700 Subject: [PATCH 31/85] fix: mcp-server failed to start when connecting to external pulsar cluster without authentication (#48) This change is based on PR #47 --- pkg/pulsar/connection.go | 75 +++++++++++++++++++++++++++++++--------- 1 file changed, 59 insertions(+), 16 deletions(-) diff --git a/pkg/pulsar/connection.go b/pkg/pulsar/connection.go index 5ef3bad..7d6aeda 100644 --- a/pkg/pulsar/connection.go +++ b/pkg/pulsar/connection.go @@ -78,25 +78,41 @@ func init() { func (pc *PulsarContext) SetPulsarContext() error { var err error // Configure pulsarctl with the token - if pc.Token != "" { + switch { + case pc.Token != "": cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ - WebServiceURL: pc.WebServiceURL, - AuthPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken", - AuthParams: fmt.Sprintf("token:%s", pc.Token), + WebServiceURL: pc.WebServiceURL, + AuthPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken", + AuthParams: fmt.Sprintf("token:%s", pc.Token), + TLSAllowInsecureConnection: pc.TLSAllowInsecureConnection, + TLSEnableHostnameVerification: pc.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: pc.TLSTrustCertsFilePath, + TLSCertFile: pc.TLSCertFile, + TLSKeyFile: pc.TLSKeyFile, } // Set the global client options CurrentPulsarClientOptions = pulsar.ClientOptions{ - URL: pc.ServiceURL, - Authentication: pulsar.NewAuthenticationToken(pc.Token), - OperationTimeout: DefaultClientTimeout, - ConnectionTimeout: DefaultClientTimeout, + URL: pc.ServiceURL, + Authentication: pulsar.NewAuthenticationToken(pc.Token), + OperationTimeout: DefaultClientTimeout, + ConnectionTimeout: DefaultClientTimeout, + TLSAllowInsecureConnection: pc.TLSAllowInsecureConnection, + TLSValidateHostname: pc.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: pc.TLSTrustCertsFilePath, + TLSCertificateFile: pc.TLSCertFile, + TLSKeyFilePath: pc.TLSKeyFile, } - } else if pc.AuthPlugin != "" && pc.AuthParams != "" { + case pc.AuthPlugin != "" && pc.AuthParams != "": cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ - WebServiceURL: pc.WebServiceURL, - AuthPlugin: pc.AuthPlugin, - AuthParams: pc.AuthParams, + WebServiceURL: pc.WebServiceURL, + AuthPlugin: pc.AuthPlugin, + AuthParams: pc.AuthParams, + TLSAllowInsecureConnection: pc.TLSAllowInsecureConnection, + TLSEnableHostnameVerification: pc.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: pc.TLSTrustCertsFilePath, + TLSCertFile: pc.TLSCertFile, + TLSKeyFile: pc.TLSKeyFile, } authProvider, err := pulsar.NewAuthentication(pc.AuthPlugin, pc.AuthParams) @@ -104,10 +120,37 @@ func (pc *PulsarContext) SetPulsarContext() error { return fmt.Errorf("failed to create authentication provider: %w", err) } CurrentPulsarClientOptions = pulsar.ClientOptions{ - URL: pc.ServiceURL, - Authentication: authProvider, - OperationTimeout: DefaultClientTimeout, - ConnectionTimeout: DefaultClientTimeout, + URL: pc.ServiceURL, + Authentication: authProvider, + OperationTimeout: DefaultClientTimeout, + ConnectionTimeout: DefaultClientTimeout, + TLSAllowInsecureConnection: pc.TLSAllowInsecureConnection, + TLSValidateHostname: pc.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: pc.TLSTrustCertsFilePath, + TLSCertificateFile: pc.TLSCertFile, + TLSKeyFilePath: pc.TLSKeyFile, + } + default: + // No authentication provided + cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ + WebServiceURL: pc.WebServiceURL, + TLSAllowInsecureConnection: pc.TLSAllowInsecureConnection, + TLSEnableHostnameVerification: pc.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: pc.TLSTrustCertsFilePath, + TLSCertFile: pc.TLSCertFile, + TLSKeyFile: pc.TLSKeyFile, + } + + // Set the global client options without authentication + CurrentPulsarClientOptions = pulsar.ClientOptions{ + URL: pc.ServiceURL, + OperationTimeout: DefaultClientTimeout, + ConnectionTimeout: DefaultClientTimeout, + TLSAllowInsecureConnection: pc.TLSAllowInsecureConnection, + TLSValidateHostname: pc.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: pc.TLSTrustCertsFilePath, + TLSCertificateFile: pc.TLSCertFile, + TLSKeyFilePath: pc.TLSKeyFile, } } From c7186ff8fd60d48989dc06c70e1ea3e1795609b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 09:18:16 +0800 Subject: [PATCH 32/85] Bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 (#46) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure) from 2.2.1 to 2.3.0.
Release notes

Sourced from github.com/go-viper/mapstructure/v2's releases.

v2.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0

Commits
  • 8c61ec1 Merge pull request #80 from rostislaved/feature-allow-unset-pointer
  • df765f4 Merge pull request #106 from go-viper/update-linter
  • 5f34b05 update linter
  • 36de1e1 Merge pull request #105 from go-viper/error-refactor
  • 6a283a3 chore: update error type doc
  • 599cb73 Merge pull request #101 from go-viper/dependabot/github_actions/github/codeql...
  • ed3f921 feat: remove value from error messages
  • a3f8b22 revert: error message change
  • 9661f6d feat: add common error interface
  • f12f6c7 Merge pull request #102 from m1k1o/prettify-errors2
  • Additional commits viewable in compare view

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/go-viper/mapstructure/v2&package-manager=go_modules&previous-version=2.2.1&new-version=2.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/streamnative/streamnative-mcp-server/network/alerts).
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 750bb8b..d22af1e 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,7 @@ require ( github.com/fatih/color v1.7.0 // indirect github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-viper/mapstructure/v2 v2.2.1 // indirect + github.com/go-viper/mapstructure/v2 v2.3.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.2 // indirect diff --git a/go.sum b/go.sum index 792a117..fe833b2 100644 --- a/go.sum +++ b/go.sum @@ -75,8 +75,8 @@ github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss= -github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk= +github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= From e691d7ba089e63a5fcc5cfc49ff4e41a1ef4ad3c Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 4 Aug 2025 20:46:43 +0800 Subject: [PATCH 33/85] Abstract session for SNCloud, Pulsar & Kafka Clients (#49) --- .gitignore | 1 + README.md | 10 + go.mod | 5 +- go.sum | 4 +- go.work | 2 +- go.work.sum | 4 +- pkg/cmd/mcp/mcp.go | 50 - pkg/cmd/mcp/server.go | 80 +- pkg/cmd/mcp/sse.go | 30 +- pkg/cmd/mcp/stdio.go | 6 +- pkg/config/apiclient.go | 278 +- pkg/config/apiclient_test.go | 474 ++++ pkg/kafka/connection.go | 162 +- pkg/mcp/builders/README.md | 255 ++ pkg/mcp/builders/base.go | 127 + pkg/mcp/builders/base_test.go | 139 + pkg/mcp/builders/config.go | 186 ++ pkg/mcp/builders/config_test.go | 222 ++ pkg/mcp/builders/kafka/connect.go | 445 +++ pkg/mcp/builders/kafka/connect_test.go | 185 ++ pkg/mcp/builders/kafka/consume.go | 342 +++ pkg/mcp/builders/kafka/consume_test.go | 100 + pkg/mcp/builders/kafka/groups.go | 377 +++ pkg/mcp/builders/kafka/partitions.go | 220 ++ pkg/mcp/builders/kafka/produce.go | 362 +++ pkg/mcp/builders/kafka/produce_test.go | 94 + pkg/mcp/builders/kafka/schema_registry.go | 501 ++++ pkg/mcp/builders/kafka/topics.go | 370 +++ pkg/mcp/builders/pulsar/brokers.go | 376 +++ pkg/mcp/builders/pulsar/brokers_stats.go | 220 ++ pkg/mcp/builders/pulsar/cluster.go | 561 ++++ pkg/mcp/builders/pulsar/consume.go | 323 +++ pkg/mcp/builders/pulsar/functions.go | 647 +++++ pkg/mcp/builders/pulsar/functions_test.go | 83 + pkg/mcp/builders/pulsar/functions_worker.go | 226 ++ pkg/mcp/builders/pulsar/namespace.go | 472 ++++ pkg/mcp/builders/pulsar/namespace_policy.go | 647 +++++ pkg/mcp/builders/pulsar/nsisolationpolicy.go | 363 +++ pkg/mcp/builders/pulsar/packages.go | 344 +++ pkg/mcp/builders/pulsar/produce.go | 351 +++ pkg/mcp/builders/pulsar/resourcequotas.go | 341 +++ pkg/mcp/builders/pulsar/schema.go | 299 ++ pkg/mcp/builders/pulsar/sinks.go | 681 +++++ pkg/mcp/builders/pulsar/sources.go | 711 +++++ pkg/mcp/builders/pulsar/subscription.go | 423 +++ pkg/mcp/builders/pulsar/tenant.go | 336 +++ pkg/mcp/builders/pulsar/topic.go | 797 ++++++ pkg/mcp/builders/pulsar/topic_policy.go | 689 +++++ pkg/mcp/builders/registry.go | 246 ++ pkg/mcp/builders/registry_test.go | 345 +++ pkg/mcp/context.go | 44 - pkg/mcp/context_test.go | 20 - pkg/mcp/ctx.go | 70 + pkg/mcp/internal/context/ctx.go | 124 + pkg/mcp/kafka_admin_connect_tools.go | 388 +-- pkg/mcp/kafka_admin_groups_tools.go | 328 +-- pkg/mcp/kafka_admin_partitions_tools.go | 132 +- pkg/mcp/kafka_admin_sr_tools.go | 405 +-- pkg/mcp/kafka_admin_topics_tools.go | 283 +- pkg/mcp/kafka_client_consume_tools.go | 237 +- pkg/mcp/kafka_client_produce_tools.go | 263 +- pkg/{ => mcp}/pftools/circuit_breaker.go | 0 pkg/{ => mcp}/pftools/errors.go | 0 pkg/{ => mcp}/pftools/invocation.go | 14 +- pkg/{ => mcp}/pftools/manager.go | 63 +- pkg/{ => mcp}/pftools/schema.go | 4 +- pkg/{ => mcp}/pftools/types.go | 1 + pkg/mcp/prompts.go | 47 +- pkg/mcp/pulsar_admin_brokers_stats_tools.go | 165 +- pkg/mcp/pulsar_admin_brokers_tools.go | 301 +-- pkg/mcp/pulsar_admin_cluster_tools.go | 505 +--- pkg/mcp/pulsar_admin_functions_tools.go | 587 +--- .../pulsar_admin_functions_worker_tools.go | 159 +- .../pulsar_admin_namespace_policy_tools.go | 1911 +------------ pkg/mcp/pulsar_admin_namespace_tools.go | 390 +-- .../pulsar_admin_nsisolationpolicy_tools.go | 291 +- pkg/mcp/pulsar_admin_packages_tools.go | 269 +- pkg/mcp/pulsar_admin_resourcequotas_tools.go | 266 +- pkg/mcp/pulsar_admin_schemas_tools.go | 221 +- pkg/mcp/pulsar_admin_sinks_tools.go | 580 +--- pkg/mcp/pulsar_admin_sources_tools.go | 609 +---- pkg/mcp/pulsar_admin_subscription_tools.go | 337 +-- pkg/mcp/pulsar_admin_tenant_tools.go | 281 +- pkg/mcp/pulsar_admin_topic_policy_tools.go | 2403 +---------------- pkg/mcp/pulsar_admin_topic_tools.go | 779 +----- pkg/mcp/pulsar_client_consume_tools.go | 248 +- pkg/mcp/pulsar_client_produce_tools.go | 248 +- pkg/mcp/pulsar_functions_as_tools.go | 30 +- pkg/mcp/server.go | 64 + .../{context_tools.go => sncontext_tools.go} | 18 +- .../{context_utils.go => sncontext_utils.go} | 44 +- pkg/mcp/streamnative_resources_log_tools.go | 15 +- pkg/mcp/streamnative_resources_tools.go | 19 +- pkg/pulsar/connection.go | 102 +- sdk/sdk-apiserver/go.mod | 2 +- sdk/sdk-apiserver/go.sum | 2 + 96 files changed, 15168 insertions(+), 12613 deletions(-) create mode 100644 pkg/config/apiclient_test.go create mode 100644 pkg/mcp/builders/README.md create mode 100644 pkg/mcp/builders/base.go create mode 100644 pkg/mcp/builders/base_test.go create mode 100644 pkg/mcp/builders/config.go create mode 100644 pkg/mcp/builders/config_test.go create mode 100644 pkg/mcp/builders/kafka/connect.go create mode 100644 pkg/mcp/builders/kafka/connect_test.go create mode 100644 pkg/mcp/builders/kafka/consume.go create mode 100644 pkg/mcp/builders/kafka/consume_test.go create mode 100644 pkg/mcp/builders/kafka/groups.go create mode 100644 pkg/mcp/builders/kafka/partitions.go create mode 100644 pkg/mcp/builders/kafka/produce.go create mode 100644 pkg/mcp/builders/kafka/produce_test.go create mode 100644 pkg/mcp/builders/kafka/schema_registry.go create mode 100644 pkg/mcp/builders/kafka/topics.go create mode 100644 pkg/mcp/builders/pulsar/brokers.go create mode 100644 pkg/mcp/builders/pulsar/brokers_stats.go create mode 100644 pkg/mcp/builders/pulsar/cluster.go create mode 100644 pkg/mcp/builders/pulsar/consume.go create mode 100644 pkg/mcp/builders/pulsar/functions.go create mode 100644 pkg/mcp/builders/pulsar/functions_test.go create mode 100644 pkg/mcp/builders/pulsar/functions_worker.go create mode 100644 pkg/mcp/builders/pulsar/namespace.go create mode 100644 pkg/mcp/builders/pulsar/namespace_policy.go create mode 100644 pkg/mcp/builders/pulsar/nsisolationpolicy.go create mode 100644 pkg/mcp/builders/pulsar/packages.go create mode 100644 pkg/mcp/builders/pulsar/produce.go create mode 100644 pkg/mcp/builders/pulsar/resourcequotas.go create mode 100644 pkg/mcp/builders/pulsar/schema.go create mode 100644 pkg/mcp/builders/pulsar/sinks.go create mode 100644 pkg/mcp/builders/pulsar/sources.go create mode 100644 pkg/mcp/builders/pulsar/subscription.go create mode 100644 pkg/mcp/builders/pulsar/tenant.go create mode 100644 pkg/mcp/builders/pulsar/topic.go create mode 100644 pkg/mcp/builders/pulsar/topic_policy.go create mode 100644 pkg/mcp/builders/registry.go create mode 100644 pkg/mcp/builders/registry_test.go delete mode 100644 pkg/mcp/context.go delete mode 100644 pkg/mcp/context_test.go create mode 100644 pkg/mcp/ctx.go create mode 100644 pkg/mcp/internal/context/ctx.go rename pkg/{ => mcp}/pftools/circuit_breaker.go (100%) rename pkg/{ => mcp}/pftools/errors.go (100%) rename pkg/{ => mcp}/pftools/invocation.go (93%) rename pkg/{ => mcp}/pftools/manager.go (88%) rename pkg/{ => mcp}/pftools/schema.go (97%) rename pkg/{ => mcp}/pftools/types.go (99%) create mode 100644 pkg/mcp/server.go rename pkg/mcp/{context_tools.go => sncontext_tools.go} (92%) rename pkg/mcp/{context_utils.go => sncontext_utils.go} (84%) diff --git a/.gitignore b/.gitignore index 8e7c504..b32c529 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ tmp/ # Go vendor .cursor/ +agents/ \ No newline at end of file diff --git a/README.md b/README.md index c04217d..1b9048d 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,10 @@ If you want to access to your StreamNative Cloud, you will need to have followin # Start MCP server with StreamNative Cloud authentication bin/snmcp stdio --organization my-org --key-file /path/to/key-file.json +# Start MCP server with StreamNative Cloud authentication and pre-configured context +# When --pulsar-instance and --pulsar-cluster are provided, context management tools are disabled +bin/snmcp stdio --organization my-org --key-file /path/to/key-file.json --pulsar-instance my-instance --pulsar-cluster my-cluster + # Start MCP server with external Kafka bin/snmcp stdio --use-external-kafka --kafka-bootstrap-servers localhost:9092 --kafka-auth-type SASL_SSL --kafka-auth-mechanism PLAIN --kafka-auth-user user --kafka-auth-pass pass --kafka-use-tls --kafka-schema-registry-url https://sr.local --kafka-schema-registry-auth-user user --kafka-schema-registry-auth-pass pass @@ -106,6 +110,10 @@ docker run -i --rm -e SNMCP_ORGANIZATION=my-org -e SNMCP_KEY_FILE=/key.json -v / # Start MCP server with SSE and StreamNative Cloud authentication snmcp sse --http-addr :9090 --http-path /mcp --organization my-org --key-file /path/to/key-file.json +# Start MCP server with SSE and pre-configured StreamNative Cloud context +# When --pulsar-instance and --pulsar-cluster are provided, context management tools are disabled +snmcp sse --http-addr :9090 --http-path /mcp --organization my-org --key-file /path/to/key-file.json --pulsar-instance my-instance --pulsar-cluster my-cluster + # Start MCP server with SSE and external Kafka snmcp sse --http-addr :9090 --http-path /mcp --use-external-kafka --kafka-bootstrap-servers localhost:9092 @@ -235,6 +243,8 @@ The StreamNative MCP Server allows you to enable or disable specific groups of f | `streamnative-cloud`| Manage StreamNative Cloud context and check resource logs | [streamnative_cloud.md](docs/tools/streamnative_cloud.md) | | `functions-as-tools` | Dynamically exposes deployed Pulsar Functions as invokable MCP tools, with automatic input/output schema handling. | [functions_as_tools.md](docs/tools/functions_as_tools.md) | +> **Note:** When using `--pulsar-instance` and `--pulsar-cluster` flags together, context management tools (`sncloud_context_use_cluster`) are automatically disabled since the context is pre-configured. + You can combine these features as needed using the `--features` flag. For example, to enable only Pulsar client features: ```bash # Enable only Pulsar client features diff --git a/go.mod b/go.mod index d22af1e..555f782 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/streamnative/streamnative-mcp-server -go 1.24.3 +go 1.24.4 require ( github.com/99designs/keyring v1.2.2 @@ -8,7 +8,7 @@ require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/google/go-cmp v0.7.0 github.com/hamba/avro/v2 v2.28.0 - github.com/mark3labs/mcp-go v0.31.0 + github.com/mark3labs/mcp-go v0.34.0 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 @@ -80,6 +80,7 @@ require ( github.com/spf13/afero v1.12.0 // indirect github.com/spf13/cast v1.7.1 // indirect github.com/spf13/pflag v1.0.6 // indirect + github.com/stretchr/objx v0.5.2 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect diff --git a/go.sum b/go.sum index fe833b2..ed804a8 100644 --- a/go.sum +++ b/go.sum @@ -129,8 +129,8 @@ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mark3labs/mcp-go v0.31.0 h1:4UxSV8aM770OPmTvaVe/b1rA2oZAjBMhGBfUgOGut+4= -github.com/mark3labs/mcp-go v0.31.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.34.0 h1:eWy7WBGvhk6EyAAyVzivTCprE52iXJwNtvHV6Cv3bR0= +github.com/mark3labs/mcp-go v0.34.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= diff --git a/go.work b/go.work index 88f0347..92c9a56 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.24.3 +go 1.24.4 use . diff --git a/go.work.sum b/go.work.sum index 7123498..30206e5 100644 --- a/go.work.sum +++ b/go.work.sum @@ -138,8 +138,8 @@ github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+ github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/mark3labs/mcp-go v0.23.1 h1:RzTzZ5kJ+HxwnutKA4rll8N/pKV6Wh5dhCmiJUu5S9I= github.com/mark3labs/mcp-go v0.23.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= -github.com/mark3labs/mcp-go v0.31.0 h1:4UxSV8aM770OPmTvaVe/b1rA2oZAjBMhGBfUgOGut+4= -github.com/mark3labs/mcp-go v0.31.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.34.0 h1:eWy7WBGvhk6EyAAyVzivTCprE52iXJwNtvHV6Cv3bR0= +github.com/mark3labs/mcp-go v0.34.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= diff --git a/pkg/cmd/mcp/mcp.go b/pkg/cmd/mcp/mcp.go index efb6b41..b784c39 100644 --- a/pkg/cmd/mcp/mcp.go +++ b/pkg/cmd/mcp/mcp.go @@ -19,15 +19,12 @@ package mcp import ( "slices" - "time" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/streamnative/streamnative-mcp-server/pkg/auth" "github.com/streamnative/streamnative-mcp-server/pkg/config" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/mcp" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) // ServerOptions is the options for the MCP server commands @@ -75,20 +72,6 @@ func (o *ServerOptions) Complete() error { return errors.Wrap(err, "Unable to store the authorization data") } - err = config.InitSNCloudClient( - issuer.IssuerEndpoint, issuer.Audience, o.KeyFile, o.Options.Server, 30*time.Second, o.Options.Store) - if err != nil { - return errors.Wrap(err, "failed to initialize StreamNative Cloud client") - } - - if o.Options.PulsarInstance != "" && o.Options.PulsarCluster != "" { - err = mcp.SetContext(o.Options, o.Options.PulsarInstance, o.Options.PulsarCluster) - if err != nil { - mcp.ResetMcpContext() - return errors.Wrap(err, "failed to set StreamNative Cloud context") - } - } - if len(o.Features) != 0 { requiredFeatures := []mcp.Feature{ mcp.FeatureStreamNativeCloud, @@ -108,24 +91,6 @@ func (o *ServerOptions) Complete() error { return errors.New("kafka-only mode does not support additional features") } o.Features = []string{string(mcp.FeatureKafkaClient), string(mcp.FeatureKafkaAdmin), string(mcp.FeatureKafkaAdminSchemaRegistry)} - err := kafka.NewCurrentKafkaContext(kafka.KafkaContext{ - BootstrapServers: snConfig.ExternalKafka.BootstrapServers, - AuthType: snConfig.ExternalKafka.AuthType, - AuthMechanism: snConfig.ExternalKafka.AuthMechanism, - AuthUser: snConfig.ExternalKafka.AuthUser, - AuthPass: snConfig.ExternalKafka.AuthPass, - UseTLS: snConfig.ExternalKafka.UseTLS, - ClientKeyFile: snConfig.ExternalKafka.ClientKeyFile, - ClientCertFile: snConfig.ExternalKafka.ClientCertFile, - CaFile: snConfig.ExternalKafka.CaFile, - SchemaRegistryURL: snConfig.ExternalKafka.SchemaRegistryURL, - SchemaRegistryAuthUser: snConfig.ExternalKafka.SchemaRegistryAuthUser, - SchemaRegistryAuthPass: snConfig.ExternalKafka.SchemaRegistryAuthPass, - SchemaRegistryBearerToken: snConfig.ExternalKafka.SchemaRegistryBearerToken, - }) - if err != nil { - return errors.Wrap(err, "failed to set external Kafka context") - } } case snConfig.ExternalPulsar != nil: { @@ -133,21 +98,6 @@ func (o *ServerOptions) Complete() error { return errors.New("pulsar-only mode does not support additional features") } o.Features = []string{string(mcp.FeatureAllPulsar)} - err := pulsar.NewCurrentPulsarContext(pulsar.PulsarContext{ - ServiceURL: snConfig.ExternalPulsar.ServiceURL, - WebServiceURL: snConfig.ExternalPulsar.WebServiceURL, - AuthPlugin: snConfig.ExternalPulsar.AuthPlugin, - AuthParams: snConfig.ExternalPulsar.AuthParams, - Token: snConfig.ExternalPulsar.Token, - TLSAllowInsecureConnection: snConfig.ExternalPulsar.TLSAllowInsecureConnection, - TLSEnableHostnameVerification: snConfig.ExternalPulsar.TLSEnableHostnameVerification, - TLSTrustCertsFilePath: snConfig.ExternalPulsar.TLSTrustCertsFilePath, - TLSCertFile: snConfig.ExternalPulsar.TLSCertFile, - TLSKeyFile: snConfig.ExternalPulsar.TLSKeyFile, - }, nil, nil) - if err != nil { - return errors.Wrap(err, "failed to set external Pulsar context") - } } default: { diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index ad6cda4..b2d2593 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -18,17 +18,23 @@ package mcp import ( + "context" stdlog "log" "os" "github.com/mark3labs/mcp-go/server" + "github.com/pkg/errors" "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/config" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) -func newMcpServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *server.MCPServer { +func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *logrus.Logger) (*mcp.Server, error) { snConfig := configOpts.Options.LoadConfigOrDie() var s *server.MCPServer + var mcpServer *mcp.Server switch { case snConfig.KeyFile != "": { @@ -38,36 +44,66 @@ func newMcpServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *serve stdlog.Fatalf("failed to get user name: %v", err) os.Exit(1) } - // Create a new MCP server - s = server.NewMCPServer( - "streamnative-mcp-server", - "0.0.1", - server.WithResourceCapabilities(true, true), - server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName, snConfig)), - server.WithLogging()) + // Create StreamNative Cloud session and set as default + session, err := config.NewSNCloudSessionFromOptions(configOpts.Options) + if err != nil { + return nil, errors.Wrap(err, "failed to create StreamNative Cloud session") + } + mcpServer = mcp.NewServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName, snConfig))) + mcpServer.SNCloudSession = session + s = mcpServer.MCPServer mcp.RegisterPrompts(s) - mcp.RegisterContextTools(s, configOpts.Features) + // Skip context tools if pulsar instance and cluster are provided via CLI + skipContextTools := snConfig.Context.PulsarInstance != "" && snConfig.Context.PulsarCluster != "" + mcp.RegisterContextTools(s, configOpts.Features, skipContextTools) mcp.StreamNativeAddLogTools(s, configOpts.ReadOnly, configOpts.Features) mcp.StreamNativeAddResourceTools(s, configOpts.ReadOnly, configOpts.Features) } case snConfig.ExternalKafka != nil: { - s = server.NewMCPServer( - "streamnative-mcp-server/kafka", - "0.0.1", - server.WithResourceCapabilities(true, true), - server.WithInstructions(mcp.GetExternalKafkaServerInstructions(snConfig.ExternalKafka.BootstrapServers)), - server.WithLogging()) + ksession, err := kafka.NewSession(kafka.KafkaContext{ + BootstrapServers: snConfig.ExternalKafka.BootstrapServers, + AuthType: snConfig.ExternalKafka.AuthType, + AuthMechanism: snConfig.ExternalKafka.AuthMechanism, + AuthUser: snConfig.ExternalKafka.AuthUser, + AuthPass: snConfig.ExternalKafka.AuthPass, + UseTLS: snConfig.ExternalKafka.UseTLS, + ClientKeyFile: snConfig.ExternalKafka.ClientKeyFile, + ClientCertFile: snConfig.ExternalKafka.ClientCertFile, + CaFile: snConfig.ExternalKafka.CaFile, + SchemaRegistryURL: snConfig.ExternalKafka.SchemaRegistryURL, + SchemaRegistryAuthUser: snConfig.ExternalKafka.SchemaRegistryAuthUser, + SchemaRegistryAuthPass: snConfig.ExternalKafka.SchemaRegistryAuthPass, + SchemaRegistryBearerToken: snConfig.ExternalKafka.SchemaRegistryBearerToken, + }) + if err != nil { + return nil, errors.Wrap(err, "failed to set external Kafka context") + } + mcpServer = mcp.NewServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetExternalKafkaServerInstructions(snConfig.ExternalKafka.BootstrapServers))) + mcpServer.KafkaSession = ksession + s = mcpServer.MCPServer } case snConfig.ExternalPulsar != nil: { - s = server.NewMCPServer( - "streamnative-mcp-server/pulsar", - "0.0.1", - server.WithResourceCapabilities(true, true), - server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL)), - server.WithLogging()) + psession, err := pulsar.NewSession(pulsar.PulsarContext{ + ServiceURL: snConfig.ExternalPulsar.ServiceURL, + WebServiceURL: snConfig.ExternalPulsar.WebServiceURL, + AuthPlugin: snConfig.ExternalPulsar.AuthPlugin, + AuthParams: snConfig.ExternalPulsar.AuthParams, + Token: snConfig.ExternalPulsar.Token, + TLSAllowInsecureConnection: snConfig.ExternalPulsar.TLSAllowInsecureConnection, + TLSEnableHostnameVerification: snConfig.ExternalPulsar.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: snConfig.ExternalPulsar.TLSTrustCertsFilePath, + TLSCertFile: snConfig.ExternalPulsar.TLSCertFile, + TLSKeyFile: snConfig.ExternalPulsar.TLSKeyFile, + }) + if err != nil { + return nil, errors.Wrap(err, "failed to set external Pulsar context") + } + mcpServer = mcp.NewServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL))) + mcpServer.PulsarSession = psession + s = mcpServer.MCPServer } default: { @@ -103,5 +139,5 @@ func newMcpServer(configOpts *ServerOptions, logrusLogger *logrus.Logger) *serve mcp.KafkaAdminAddKafkaConnectTools(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaClientAddConsumeTools(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) mcp.KafkaClientAddProduceTools(s, configOpts.ReadOnly, configOpts.Features) - return s + return mcpServer, nil } diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go index 86ce0fb..7ee4ec1 100644 --- a/pkg/cmd/mcp/sse.go +++ b/pkg/cmd/mcp/sse.go @@ -33,6 +33,7 @@ import ( "github.com/spf13/cobra" "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/mcp" + context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp" ) func NewCmdMcpSseServer(configOpts *ServerOptions) *cobra.Command { @@ -70,16 +71,37 @@ func runSseServer(configOpts *ServerOptions) error { // 3. Create a new MCP server ctx = context.WithValue(ctx, common.OptionsKey, configOpts.Options) - mcpServer := newMcpServer(configOpts, logger) + mcpServer, err := newMcpServer(ctx, configOpts, logger) + if err != nil { + return fmt.Errorf("failed to create MCP server: %w", err) + } + + // 4. Set the context + ctx = context2.WithSNCloudSession(ctx, mcpServer.SNCloudSession) + ctx = context2.WithPulsarSession(ctx, mcpServer.PulsarSession) + ctx = context2.WithKafkaSession(ctx, mcpServer.KafkaSession) + if configOpts.Options.KeyFile != "" { + if configOpts.Options.PulsarInstance != "" && configOpts.Options.PulsarCluster != "" { + err = mcp.SetContext(ctx, configOpts.Options, configOpts.Options.PulsarInstance, configOpts.Options.PulsarCluster) + if err != nil { + return errors.Wrap(err, "failed to set StreamNative Cloud context") + } + } + } // add Pulsar Functions as MCP tools - mcp.PulsarFunctionManagedMcpTools(mcpServer, false, configOpts.Features) + // SSE is not support session-based tools, so we pass an fixed sessionId + mcpServer.PulsarFunctionManagedMcpTools(configOpts.ReadOnly, configOpts.Features, "FIXED_SESSION_ID") sseServer := server.NewSSEServer( - mcpServer, + mcpServer.MCPServer, server.WithStaticBasePath(configOpts.HTTPPath), server.WithSSEContextFunc(func(ctx context.Context, _ *http.Request) context.Context { - return context.WithValue(ctx, common.OptionsKey, configOpts.Options) + c := context.WithValue(ctx, common.OptionsKey, configOpts.Options) + c = context2.WithKafkaSession(c, mcpServer.KafkaSession) + c = context2.WithPulsarSession(c, mcpServer.PulsarSession) + c = context2.WithSNCloudSession(c, mcpServer.SNCloudSession) + return c }), ) diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index 23e3ef1..95c6c6f 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -65,8 +65,12 @@ func runStdioServer(configOpts *ServerOptions) error { // Create a new MCP server ctx = context.WithValue(ctx, common.OptionsKey, configOpts.Options) stdLogger := stdlog.New(logger.Writer(), "snmcp-server", 0) - stdioServer := server.NewStdioServer(newMcpServer(configOpts, logger)) + mcpServer, err := newMcpServer(ctx, configOpts, logger) + if err != nil { + return fmt.Errorf("failed to create MCP server: %w", err) + } + stdioServer := server.NewStdioServer(mcpServer.MCPServer) stdioServer.SetErrorLogger(stdLogger) // Start listening for messages diff --git a/pkg/config/apiclient.go b/pkg/config/apiclient.go index 6d48365..5493cb6 100644 --- a/pkg/config/apiclient.go +++ b/pkg/config/apiclient.go @@ -18,9 +18,9 @@ package config import ( - "context" "net/http" "net/url" + "sync" "time" "github.com/pkg/errors" @@ -33,9 +33,34 @@ import ( sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) -var SNCloudClientConfiguration *sncloud.Configuration -var SNCloudClient *sncloud.APIClient -var SNCloudLogClient *http.Client +// SNCloudContext represents the configuration context for StreamNative Cloud session +type SNCloudContext struct { + IssuerURL string + Audience string + KeyFilePath string + JWTToken string + APIURL string + LogAPIURL string + Timeout time.Duration + Organization string + TokenStore store.Store + PulsarInstance string + PulsarCluster string +} + +// Session represents a StreamNative Cloud session with managed clients +type Session struct { + Ctx SNCloudContext + APIClient *sncloud.APIClient + LogClient *http.Client + TokenRefresher *OAuth2TokenRefresher + TokenSource oauth2.TokenSource + Configuration *sncloud.Configuration + mutex sync.RWMutex + apiClientOnce sync.Once + logClientOnce sync.Once + useJWT bool +} // OAuth2TokenRefresher implements oauth2.TokenSource interface for refreshing OAuth2 tokens // This is now a wrapper around the cache.CachingTokenSource to leverage the existing token caching @@ -62,31 +87,97 @@ func (t *OAuth2TokenRefresher) Token() (*oauth2.Token, error) { return t.source.Token() } -// InitSNCloudClient initializes the StreamNative Cloud API client -// Parameters: -// - issuerURL: OAuth2 authorization server URL -// - audience: API service audience identifier -// - keyFilePath: Client credentials key file path -// - apiURL: API server URL -// - timeout: HTTP client timeout -// - tokenStore: Store for caching tokens -func InitSNCloudClient(issuerURL, audience, keyFilePath, apiURL string, timeout time.Duration, tokenStore store.Store) error { - // 1. Create Issuer configuration +// JWTTokenSource implements oauth2.TokenSource interface for static JWT tokens +type JWTTokenSource struct { + token *oauth2.Token +} + +// NewJWTTokenSource creates a new token source for static JWT tokens +func NewJWTTokenSource(jwtToken string) *JWTTokenSource { + return &JWTTokenSource{ + token: &oauth2.Token{ + AccessToken: jwtToken, + TokenType: "Bearer", + }, + } +} + +// Token implements the oauth2.TokenSource interface for static JWT tokens +func (j *JWTTokenSource) Token() (*oauth2.Token, error) { + return j.token, nil +} + +// NewSNCloudSession creates a new StreamNative Cloud session with the provided context +func NewSNCloudSession(ctx SNCloudContext) (*Session, error) { + session := &Session{ + Ctx: ctx, + } + + // Check if JWT token is provided + if ctx.JWTToken != "" { + // Use JWT token directly without refresh mechanism + session.useJWT = true + session.TokenSource = NewJWTTokenSource(ctx.JWTToken) + } else { + // Initialize the session by setting up the token refresher for OAuth flow + if err := session.initializeTokenRefresher(); err != nil { + return nil, errors.Wrap(err, "failed to initialize token refresher") + } + } + + return session, nil +} + +// NewSNCloudSessionFromOptions creates a new StreamNative Cloud session from configuration options +func NewSNCloudSessionFromOptions(options *Options) (*Session, error) { + if options == nil { + return nil, errors.New("options cannot be nil") + } + + // Create SNCloudContext from options + ctx := SNCloudContext{ + IssuerURL: options.IssuerEndpoint, + Audience: options.Audience, + KeyFilePath: options.KeyFile, + APIURL: options.Server, + LogAPIURL: options.LogLocation, + Timeout: 30 * time.Second, + Organization: options.Organization, + TokenStore: options.Store, + PulsarInstance: options.PulsarInstance, + PulsarCluster: options.PulsarCluster, + } + + // Create session + session, err := NewSNCloudSession(ctx) + if err != nil { + return nil, errors.Wrap(err, "failed to create session from options") + } + + return session, nil +} + +// initializeTokenRefresher initializes the token refresher for the session +func (s *Session) initializeTokenRefresher() error { + s.mutex.Lock() + defer s.mutex.Unlock() + + // Create Issuer configuration issuerData := auth.Issuer{ - IssuerEndpoint: issuerURL, - Audience: audience, + IssuerEndpoint: s.Ctx.IssuerURL, + Audience: s.Ctx.Audience, } - // 2. Check if we have an existing grant in the store - grant, err := tokenStore.LoadGrant(audience) + // Check if we have an existing grant in the store + grant, err := s.Ctx.TokenStore.LoadGrant(s.Ctx.Audience) if err != nil && err != store.ErrNoAuthenticationData { return errors.Wrap(err, "failed to load grant from store") } - // 3. If no grant exists or there was an error, create a new one + // If no grant exists or there was an error, create a new one if err == store.ErrNoAuthenticationData || grant == nil { // Create OAuth2 client credentials flow - flow, err := auth.NewDefaultClientCredentialsFlow(issuerData, keyFilePath) + flow, err := auth.NewDefaultClientCredentialsFlow(issuerData, s.Ctx.KeyFilePath) if err != nil { return errors.Wrap(err, "failed to create client credentials flow") } @@ -98,106 +189,117 @@ func InitSNCloudClient(issuerURL, audience, keyFilePath, apiURL string, timeout } // Save the grant to the store - err = tokenStore.SaveGrant(audience, *grant) + err = s.Ctx.TokenStore.SaveGrant(s.Ctx.Audience, *grant) if err != nil { return errors.Wrap(err, "failed to save grant to store") } } - // 4. Create token refresher + // Create token refresher refresher, err := auth.NewDefaultClientCredentialsGrantRefresher(issuerData, clock.RealClock{}) if err != nil { return errors.Wrap(err, "failed to create token refresher") } - // 5. Create token source with caching - tokenRefresher, err := NewOAuth2TokenRefresher(tokenStore, audience, refresher) + // Create token source with caching + tokenRefresher, err := NewOAuth2TokenRefresher(s.Ctx.TokenStore, s.Ctx.Audience, refresher) if err != nil { return errors.Wrap(err, "failed to create token refresher") } - tokenSource := oauth2.ReuseTokenSource(nil, tokenRefresher) - // 6. Create HTTP client with OAuth2 Transport + s.TokenRefresher = tokenRefresher + + return nil +} + +// GetAPIClient returns the API client for the session, initializing it if necessary +func (s *Session) GetAPIClient() (*sncloud.APIClient, error) { + var err error + s.apiClientOnce.Do(func() { + err = s.initializeAPIClient() + }) + + if err != nil { + return nil, errors.Wrap(err, "failed to initialize API client") + } + + return s.APIClient, nil +} + +// initializeAPIClient initializes the API client for the session +func (s *Session) initializeAPIClient() error { + var tokenSource oauth2.TokenSource + + if s.useJWT { + // Use JWT token directly + tokenSource = s.TokenSource + } else { + // Use OAuth token with refresh + if s.TokenRefresher == nil { + return errors.New("token refresher not initialized") + } + tokenSource = oauth2.ReuseTokenSource(nil, s.TokenRefresher) + } + + // Create HTTP client with OAuth2 Transport httpClient := &http.Client{ Transport: &oauth2.Transport{ Source: tokenSource, Base: http.DefaultTransport, }, - Timeout: timeout, + Timeout: s.Ctx.Timeout, } - // 7. Create API client configuration - parsedURL, err := url.Parse(apiURL) + // Create API client configuration + parsedURL, err := url.Parse(s.Ctx.APIURL) if err != nil { return errors.Wrap(err, "failed to parse API URL") } + config := sncloud.NewConfiguration() config.Host = parsedURL.Host config.Scheme = parsedURL.Scheme config.HTTPClient = httpClient config.UserAgent = "StreamNative-MCP-Server/1.0.0" - // 8. Create API client - SNCloudClientConfiguration = config - SNCloudClient = sncloud.NewAPIClient(config) + // Create API client + s.Configuration = config + s.APIClient = sncloud.NewAPIClient(config) return nil } -// GetAPIClient returns the initialized API client or an error if not initialized -func GetAPIClient() (*sncloud.APIClient, error) { - if SNCloudClient == nil { - return nil, errors.New("API client not initialized, call InitSNCloudClient first") - } - return SNCloudClient, nil -} - -// CreateContextWithTokenSource creates a context with the TokenSource -// This might be useful in special scenarios, but is usually not needed as we've already configured the default HTTP client -func CreateContextWithTokenSource(ctx context.Context) (context.Context, error) { - client, err := GetAPIClient() - if err != nil { - return nil, err - } - - // Extract TokenSource from HTTP client - transport, ok := client.GetConfig().HTTPClient.Transport.(*oauth2.Transport) - if !ok { - return nil, errors.New("HTTP client transport is not an OAuth2 transport") - } - - // Create context with TokenSource - return context.WithValue(ctx, sncloud.ContextOAuth2, transport.Source), nil -} +// GetLogClient returns the log client for the session, initializing it if necessary +func (s *Session) GetLogClient() (*http.Client, error) { + var err error + s.logClientOnce.Do(func() { + err = s.initializeLogClient() + }) -// TokenRefreshed is called when a token is refreshed to persist the updated token -func TokenRefreshed(audience string, token *oauth2.Token, tokenStore store.Store) error { - // Load existing grant - grant, err := tokenStore.LoadGrant(audience) if err != nil { - return errors.Wrap(err, "failed to load grant for token update") + return nil, errors.Wrap(err, "failed to initialize log client") } - // Update the token - grant.Token = token - - // Save back to store - return tokenStore.SaveGrant(audience, *grant) + return s.LogClient, nil } -func InitSNCloudLogClient(issuerData auth.Issuer, tokenStore store.Store) error { - refresher, err := auth.NewDefaultClientCredentialsGrantRefresher(issuerData, clock.RealClock{}) - if err != nil { - return errors.Wrap(err, "failed to create token refresher") - } - - tokenRefresher, err := NewOAuth2TokenRefresher(tokenStore, issuerData.Audience, refresher) - if err != nil { - return errors.Wrap(err, "failed to create token refresher") +// initializeLogClient initializes the log client for the session +func (s *Session) initializeLogClient() error { + var tokenSource oauth2.TokenSource + + if s.useJWT { + // Use JWT token directly + tokenSource = s.TokenSource + } else { + // Use OAuth token with refresh + if s.TokenRefresher == nil { + return errors.New("token refresher not initialized") + } + tokenSource = oauth2.ReuseTokenSource(nil, s.TokenRefresher) } - tokenSource := oauth2.ReuseTokenSource(nil, tokenRefresher) - SNCloudLogClient = &http.Client{ + // Create HTTP client with OAuth2 Transport + s.LogClient = &http.Client{ Timeout: 10 * time.Second, Transport: &oauth2.Transport{ Source: tokenSource, @@ -208,13 +310,17 @@ func InitSNCloudLogClient(issuerData auth.Issuer, tokenStore store.Store) error return nil } -func ResetSNCloudLogClient() { - SNCloudLogClient = nil -} +// Close closes the session and cleans up resources +func (s *Session) Close() error { + s.mutex.Lock() + defer s.mutex.Unlock() -func GetSNCloudLogClient() (*http.Client, error) { - if SNCloudLogClient == nil { - return nil, errors.New("log tools are for StreamNative Cloud only, please check your context") - } - return SNCloudLogClient, nil + // Clear references to clients + // Note: HTTP clients don't need explicit closing as they use connection pooling + s.APIClient = nil + s.LogClient = nil + s.TokenRefresher = nil + s.Configuration = nil + + return nil } diff --git a/pkg/config/apiclient_test.go b/pkg/config/apiclient_test.go new file mode 100644 index 0000000..3b91833 --- /dev/null +++ b/pkg/config/apiclient_test.go @@ -0,0 +1,474 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package config + +import ( + "net/http" + "sync" + "testing" + "time" + + "github.com/pkg/errors" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + "github.com/stretchr/testify/require" + "golang.org/x/oauth2" + + "github.com/streamnative/streamnative-mcp-server/pkg/auth" + "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" + sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" +) + +// Mock implementations for testing +type mockStore struct { + mock.Mock +} + +func (m *mockStore) LoadGrant(audience string) (*auth.AuthorizationGrant, error) { + args := m.Called(audience) + if args.Get(0) == nil { + return nil, args.Error(1) + } + return args.Get(0).(*auth.AuthorizationGrant), args.Error(1) +} + +func (m *mockStore) SaveGrant(audience string, grant auth.AuthorizationGrant) error { + args := m.Called(audience, grant) + return args.Error(0) +} + +func (m *mockStore) WhoAmI(audience string) (string, error) { + args := m.Called(audience) + return args.String(0), args.Error(1) +} + +func (m *mockStore) Logout() error { + args := m.Called() + return args.Error(0) +} + +type mockCachingTokenSource struct { + mock.Mock +} + +func (m *mockCachingTokenSource) Token() (*oauth2.Token, error) { + args := m.Called() + if args.Get(0) == nil { + return nil, args.Error(1) + } + return args.Get(0).(*oauth2.Token), args.Error(1) +} + +func (m *mockCachingTokenSource) InvalidateToken() error { + args := m.Called() + return args.Error(0) +} + +func TestSession_GetAPIClient_JWT_LazyInitialization(t *testing.T) { + // Test lazy initialization with JWT token + session := &Session{ + Ctx: SNCloudContext{ + APIURL: "https://api.example.com", + Timeout: 30 * time.Second, + }, + useJWT: true, + TokenSource: NewJWTTokenSource("test-jwt-token"), + } + + // First call should initialize the client + client1, err := session.GetAPIClient() + require.NoError(t, err) + require.NotNil(t, client1) + require.NotNil(t, session.APIClient) + require.NotNil(t, session.Configuration) + + // Verify configuration + assert.Equal(t, "api.example.com", session.Configuration.Host) + assert.Equal(t, "https", session.Configuration.Scheme) + assert.Equal(t, "StreamNative-MCP-Server/1.0.0", session.Configuration.UserAgent) + + // Second call should return the same client (cached) + client2, err := session.GetAPIClient() + require.NoError(t, err) + assert.Same(t, client1, client2) +} + +func TestSession_GetAPIClient_OAuth_LazyInitialization(t *testing.T) { + // Create mock token refresher + mockRefresher := &mockCachingTokenSource{} + mockRefresher.On("Token").Return(&oauth2.Token{ + AccessToken: "test-access-token", + TokenType: "Bearer", + }, nil) + + session := &Session{ + Ctx: SNCloudContext{ + APIURL: "https://api.example.com", + Timeout: 30 * time.Second, + }, + useJWT: false, + TokenRefresher: &OAuth2TokenRefresher{source: mockRefresher}, + } + + // First call should initialize the client + client1, err := session.GetAPIClient() + require.NoError(t, err) + require.NotNil(t, client1) + require.NotNil(t, session.APIClient) + + // Second call should return the same client (cached) + client2, err := session.GetAPIClient() + require.NoError(t, err) + assert.Same(t, client1, client2) +} + +func TestSession_GetAPIClient_ErrorPaths(t *testing.T) { + tests := []struct { + name string + session *Session + expectError string + }{ + { + name: "OAuth without token refresher", + session: &Session{ + Ctx: SNCloudContext{ + APIURL: "https://api.example.com", + Timeout: 30 * time.Second, + }, + useJWT: false, + TokenRefresher: nil, + }, + expectError: "token refresher not initialized", + }, + { + name: "Invalid API URL", + session: &Session{ + Ctx: SNCloudContext{ + APIURL: "://invalid-url", + Timeout: 30 * time.Second, + }, + useJWT: true, + TokenSource: NewJWTTokenSource("test-jwt-token"), + }, + expectError: "failed to parse API URL", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + client, err := tt.session.GetAPIClient() + assert.Nil(t, client) + assert.Error(t, err) + assert.Contains(t, err.Error(), tt.expectError) + }) + } +} + +func TestSession_GetAPIClient_ConcurrentAccess(t *testing.T) { + // Test thread safety of lazy initialization + session := &Session{ + Ctx: SNCloudContext{ + APIURL: "https://api.example.com", + Timeout: 30 * time.Second, + }, + useJWT: true, + TokenSource: NewJWTTokenSource("test-jwt-token"), + } + + const numGoroutines = 10 + clients := make([]*sncloud.APIClient, numGoroutines) + errors := make([]error, numGoroutines) + var wg sync.WaitGroup + + // Launch multiple goroutines to call GetAPIClient concurrently + for i := 0; i < numGoroutines; i++ { + wg.Add(1) + go func(index int) { + defer wg.Done() + clients[index], errors[index] = session.GetAPIClient() + }(i) + } + + wg.Wait() + + // All calls should succeed and return the same client instance + for i := 0; i < numGoroutines; i++ { + require.NoError(t, errors[i]) + require.NotNil(t, clients[i]) + assert.Same(t, clients[0], clients[i]) + } +} + +func TestSession_GetLogClient_JWT_LazyInitialization(t *testing.T) { + // Test lazy initialization with JWT token + session := &Session{ + Ctx: SNCloudContext{ + LogAPIURL: "https://logs.example.com", + Timeout: 30 * time.Second, + }, + useJWT: true, + TokenSource: NewJWTTokenSource("test-jwt-token"), + } + + // First call should initialize the client + client1, err := session.GetLogClient() + require.NoError(t, err) + require.NotNil(t, client1) + require.NotNil(t, session.LogClient) + + // Verify client configuration + assert.Equal(t, 10*time.Second, client1.Timeout) + + // Second call should return the same client (cached) + client2, err := session.GetLogClient() + require.NoError(t, err) + assert.Same(t, client1, client2) +} + +func TestSession_GetLogClient_OAuth_LazyInitialization(t *testing.T) { + // Create mock token refresher + mockRefresher := &mockCachingTokenSource{} + mockRefresher.On("Token").Return(&oauth2.Token{ + AccessToken: "test-access-token", + TokenType: "Bearer", + }, nil) + + session := &Session{ + Ctx: SNCloudContext{ + LogAPIURL: "https://logs.example.com", + Timeout: 30 * time.Second, + }, + useJWT: false, + TokenRefresher: &OAuth2TokenRefresher{source: mockRefresher}, + } + + // First call should initialize the client + client1, err := session.GetLogClient() + require.NoError(t, err) + require.NotNil(t, client1) + + // Second call should return the same client (cached) + client2, err := session.GetLogClient() + require.NoError(t, err) + assert.Same(t, client1, client2) +} + +func TestSession_GetLogClient_ErrorPaths(t *testing.T) { + tests := []struct { + name string + session *Session + expectError string + }{ + { + name: "OAuth without token refresher", + session: &Session{ + Ctx: SNCloudContext{ + LogAPIURL: "https://logs.example.com", + Timeout: 30 * time.Second, + }, + useJWT: false, + TokenRefresher: nil, + }, + expectError: "token refresher not initialized", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + client, err := tt.session.GetLogClient() + assert.Nil(t, client) + assert.Error(t, err) + assert.Contains(t, err.Error(), tt.expectError) + }) + } +} + +func TestSession_GetLogClient_ConcurrentAccess(t *testing.T) { + // Test thread safety of lazy initialization + session := &Session{ + Ctx: SNCloudContext{ + LogAPIURL: "https://logs.example.com", + Timeout: 30 * time.Second, + }, + useJWT: true, + TokenSource: NewJWTTokenSource("test-jwt-token"), + } + + const numGoroutines = 10 + clients := make([]*http.Client, numGoroutines) + errors := make([]error, numGoroutines) + var wg sync.WaitGroup + + // Launch multiple goroutines to call GetLogClient concurrently + for i := 0; i < numGoroutines; i++ { + wg.Add(1) + go func(idx int) { + defer wg.Done() + clients[idx], errors[idx] = session.GetLogClient() + }(i) + } + + wg.Wait() + + // All calls should succeed and return the same client instance + for i := 0; i < numGoroutines; i++ { + require.NoError(t, errors[i]) + require.NotNil(t, clients[i]) + assert.Same(t, clients[0], clients[i]) + } +} + +func TestSession_TokenRefreshing_Scenarios(t *testing.T) { + // Test token refreshing scenarios + t.Run("successful token refresh", func(t *testing.T) { + mockRefresher := &mockCachingTokenSource{} + // Token may be called during initialization, but we don't need to guarantee it + mockRefresher.On("Token").Return(&oauth2.Token{ + AccessToken: "fresh-access-token", + TokenType: "Bearer", + Expiry: time.Now().Add(time.Hour), + }, nil).Maybe() + + session := &Session{ + Ctx: SNCloudContext{ + APIURL: "https://api.example.com", + Timeout: 30 * time.Second, + }, + useJWT: false, + TokenRefresher: &OAuth2TokenRefresher{source: mockRefresher}, + } + + client, err := session.GetAPIClient() + require.NoError(t, err) + require.NotNil(t, client) + + // The token source is available and configured correctly + assert.NotNil(t, session.TokenRefresher) + }) + + t.Run("token refresh failure", func(t *testing.T) { + mockRefresher := &mockCachingTokenSource{} + mockRefresher.On("Token").Return(nil, errors.New("token refresh failed")).Maybe() + + session := &Session{ + Ctx: SNCloudContext{ + APIURL: "https://api.example.com", + Timeout: 30 * time.Second, + }, + useJWT: false, + TokenRefresher: &OAuth2TokenRefresher{source: mockRefresher}, + } + + // The client should still be created even if token refresh fails initially + // because oauth2.Transport handles token errors during actual HTTP requests + client, err := session.GetAPIClient() + require.NoError(t, err) + require.NotNil(t, client) + }) +} + +func TestSession_InitializationOnlyOnce(t *testing.T) { + // Test that initialization happens only once even with multiple calls + session := &Session{ + Ctx: SNCloudContext{ + APIURL: "https://api.example.com", + Timeout: 30 * time.Second, + }, + useJWT: true, + TokenSource: NewJWTTokenSource("test-jwt-token"), + } + + // Multiple calls to GetAPIClient should only initialize once + const numCalls = 5 + clients := make([]*sncloud.APIClient, numCalls) + errors := make([]error, numCalls) + + for i := 0; i < numCalls; i++ { + clients[i], errors[i] = session.GetAPIClient() + } + + // All calls should succeed and return the same client instance + for i := 0; i < numCalls; i++ { + require.NoError(t, errors[i]) + require.NotNil(t, clients[i]) + assert.Same(t, clients[0], clients[i]) + } + + // Verify that configuration was set (indicating initialization occurred) + assert.NotNil(t, session.Configuration) + assert.Equal(t, "api.example.com", session.Configuration.Host) +} + +func TestJWTTokenSource(t *testing.T) { + // Test JWT token source implementation + //nolint:gosec + jwtToken := "test.jwt.token" + source := NewJWTTokenSource(jwtToken) + + token, err := source.Token() + require.NoError(t, err) + require.NotNil(t, token) + assert.Equal(t, jwtToken, token.AccessToken) + assert.Equal(t, "Bearer", token.TokenType) +} + +func TestNewSNCloudSession_JWT(t *testing.T) { + // Test session creation with JWT token + ctx := SNCloudContext{ + APIURL: "https://api.example.com", + LogAPIURL: "https://logs.example.com", + //nolint:gosec + JWTToken: "test.jwt.token", + Timeout: 30 * time.Second, + Audience: "test-audience", + KeyFilePath: "/path/to/key.json", + } + + session, err := NewSNCloudSession(ctx) + require.NoError(t, err) + require.NotNil(t, session) + + assert.True(t, session.useJWT) + assert.NotNil(t, session.TokenSource) + assert.Nil(t, session.TokenRefresher) + + // Test that JWT token source works + token, err := session.TokenSource.Token() + require.NoError(t, err) + assert.Equal(t, "test.jwt.token", token.AccessToken) +} + +func TestNewSNCloudSession_OAuth_InitializationError(t *testing.T) { + // Test session creation with OAuth that fails during initialization + mockStore := &mockStore{} + mockStore.On("LoadGrant", "test-audience").Return(nil, store.ErrNoAuthenticationData) + + ctx := SNCloudContext{ + APIURL: "https://api.example.com", + LogAPIURL: "https://logs.example.com", + Timeout: 30 * time.Second, + Audience: "test-audience", + KeyFilePath: "/invalid/path/to/key.json", // This will cause initialization to fail + TokenStore: mockStore, + } + + session, err := NewSNCloudSession(ctx) + assert.Nil(t, session) + assert.Error(t, err) + assert.Contains(t, err.Error(), "failed to initialize token refresher") +} diff --git a/pkg/kafka/connection.go b/pkg/kafka/connection.go index e683248..bcf967f 100644 --- a/pkg/kafka/connection.go +++ b/pkg/kafka/connection.go @@ -21,6 +21,7 @@ import ( "crypto/tls" "fmt" "strings" + "sync" "github.com/twmb/franz-go/pkg/kadm" "github.com/twmb/franz-go/pkg/kgo" @@ -53,24 +54,33 @@ type KafkaContext struct { ConnectAuthPass string } -var CurrentKafkaContext KafkaContext -var KafkaAdminClient *kadm.Client -var KafkaClient *kgo.Client -var KafkaSchemaRegistryClient *sr.Client -var KafkaConnectClient Connect -var options []kgo.Opt - -func NewCurrentKafkaContext(kc KafkaContext) error { - CurrentKafkaContext = kc - return kc.SetKafkaContext() +// Session represents a Kafka session +type Session struct { + Ctx KafkaContext + Client *kgo.Client + AdminClient *kadm.Client + SchemaRegistryClient *sr.Client + ConnectClient Connect + Options []kgo.Opt + mutex sync.RWMutex } -func ResetCurrentKafkaContext() { - CurrentKafkaContext = KafkaContext{} - KafkaAdminClient = nil - KafkaClient = nil - KafkaSchemaRegistryClient = nil - KafkaConnectClient = nil +// NewSession creates a new Kafka session with the given context +// This function dynamically constructs clients without relying on global state +func NewSession(ctx KafkaContext) (*Session, error) { + if ctx.BootstrapServers == "" { + return nil, fmt.Errorf("bootstrap servers are required") + } + + session := &Session{ + Ctx: ctx, + } + + if err := session.SetKafkaContext(ctx); err != nil { + return nil, fmt.Errorf("failed to set kafka context: %w", err) + } + + return session, nil } type SASLConfig struct { @@ -137,10 +147,12 @@ func saslOpt(config *SASLConfig, opts []kgo.Opt) ([]kgo.Opt, error) { return opts, nil } -func (kc *KafkaContext) SetKafkaContext() error { +func (s *Session) SetKafkaContext(ctx KafkaContext) error { + s.Ctx = ctx + kc := &s.Ctx var err error - options = []kgo.Opt{} - options = append(options, kgo.SeedBrokers(strings.Split(kc.BootstrapServers, ",")...)) + s.Options = []kgo.Opt{} + s.Options = append(s.Options, kgo.SeedBrokers(strings.Split(kc.BootstrapServers, ",")...)) tlsConfig := &TLSConfig{ Enabled: kc.UseTLS, ClientKeyFile: kc.ClientKeyFile, @@ -154,24 +166,24 @@ func (kc *KafkaContext) SetKafkaContext() error { Password: kc.AuthPass, } - options, err = tlsOpt(tlsConfig, options) + s.Options, err = tlsOpt(tlsConfig, s.Options) if err != nil { return fmt.Errorf("failed to create TLS config: %w", err) } - options, err = saslOpt(saslConfig, options) + s.Options, err = saslOpt(saslConfig, s.Options) if err != nil { return fmt.Errorf("failed to create SASL config: %w", err) } - options = append(options, kgo.MaxVersions(kversion.V2_8_0())) + s.Options = append(s.Options, kgo.MaxVersions(kversion.V2_8_0())) - KafkaClient, err = kgo.NewClient( - options..., + s.Client, err = kgo.NewClient( + s.Options..., ) if err != nil { return fmt.Errorf("failed to create kafka client: %w", err) } - KafkaAdminClient = kadm.NewClient(KafkaClient) + s.AdminClient = kadm.NewClient(s.Client) if kc.SchemaRegistryURL != "" { SrOpts := []sr.ClientOpt{} SrOpts = append(SrOpts, sr.URLs(kc.SchemaRegistryURL)) @@ -181,14 +193,14 @@ func (kc *KafkaContext) SetKafkaContext() error { SrOpts = append(SrOpts, sr.BearerToken(kc.SchemaRegistryBearerToken)) } SrOpts = append(SrOpts, sr.UserAgent("streamnative-mcp-server")) - KafkaSchemaRegistryClient, err = sr.NewClient(SrOpts...) + s.SchemaRegistryClient, err = sr.NewClient(SrOpts...) if err != nil { return fmt.Errorf("failed to create kafka schema registry client: %w", err) } } if kc.ConnectURL != "" { - KafkaConnectClient, err = NewConnect(kc) + s.ConnectClient, err = NewConnect(kc) if err != nil { return fmt.Errorf("failed to create kafka connect client: %w", err) } @@ -196,42 +208,92 @@ func (kc *KafkaContext) SetKafkaContext() error { return nil } -func GetKafkaClient(opts ...kgo.Opt) (*kgo.Client, error) { - if KafkaClient == nil { - return nil, fmt.Errorf("kafka client not initialized") +func (s *Session) GetClient(opts ...kgo.Opt) (*kgo.Client, error) { + s.mutex.Lock() + defer s.mutex.Unlock() + + if len(opts) > 0 { + //nolint:gocritic + clientOpts := append(s.Options, opts...) + cli, err := kgo.NewClient(clientOpts...) + if err != nil { + return nil, fmt.Errorf("failed to create kafka client with custom options: %w", err) + } + return cli, nil } - //nolint:gocritic - clientOpts := append(options, opts...) - cli, err := kgo.NewClient(clientOpts...) - if err != nil { - return nil, fmt.Errorf("failed to create kafka client: %w", err) + + if s.Client == nil { + var err error + s.Client, err = kgo.NewClient(s.Options...) + if err != nil { + return nil, fmt.Errorf("failed to create kafka client: %w", err) + } } - return cli, nil + + return s.Client, nil } -func GetKafkaAdminClient() (*kadm.Client, error) { - if KafkaAdminClient == nil { - return nil, fmt.Errorf("kafka admin client not initialized") +func (s *Session) GetAdminClient() (*kadm.Client, error) { + s.mutex.Lock() + defer s.mutex.Unlock() + + if s.AdminClient == nil { + if s.Client == nil { + var err error + s.Client, err = kgo.NewClient(s.Options...) + if err != nil { + return nil, fmt.Errorf("failed to create kafka client for admin: %w", err) + } + } + s.AdminClient = kadm.NewClient(s.Client) } - return KafkaAdminClient, nil + + return s.AdminClient, nil } -func GetKafkaSchemaRegistryClient() (*sr.Client, error) { - if CurrentKafkaContext.SchemaRegistryURL == "" { +func (s *Session) GetSchemaRegistryClient() (*sr.Client, error) { + if s.Ctx.SchemaRegistryURL == "" { return nil, fmt.Errorf("schema registry not enabled on the current context") } - if KafkaSchemaRegistryClient == nil { - return nil, fmt.Errorf("kafka schema registry client not initialized") + + s.mutex.Lock() + defer s.mutex.Unlock() + + if s.SchemaRegistryClient == nil { + SrOpts := []sr.ClientOpt{} + SrOpts = append(SrOpts, sr.URLs(s.Ctx.SchemaRegistryURL)) + if s.Ctx.SchemaRegistryAuthUser != "" && s.Ctx.SchemaRegistryAuthPass != "" { + SrOpts = append(SrOpts, sr.BasicAuth(s.Ctx.SchemaRegistryAuthUser, s.Ctx.SchemaRegistryAuthPass)) + } else if s.Ctx.SchemaRegistryBearerToken != "" { + SrOpts = append(SrOpts, sr.BearerToken(s.Ctx.SchemaRegistryBearerToken)) + } + SrOpts = append(SrOpts, sr.UserAgent("streamnative-mcp-server")) + + var err error + s.SchemaRegistryClient, err = sr.NewClient(SrOpts...) + if err != nil { + return nil, fmt.Errorf("failed to create kafka schema registry client: %w", err) + } } - return KafkaSchemaRegistryClient, nil + + return s.SchemaRegistryClient, nil } -func GetKafkaConnectClient() (Connect, error) { - if CurrentKafkaContext.ConnectURL == "" { +func (s *Session) GetConnectClient() (Connect, error) { + if s.Ctx.ConnectURL == "" { return nil, fmt.Errorf("kafka connect not enabled on the current context") } - if KafkaConnectClient == nil { - return nil, fmt.Errorf("kafka connect client not initialized") + + s.mutex.Lock() + defer s.mutex.Unlock() + + if s.ConnectClient == nil { + var err error + s.ConnectClient, err = NewConnect(&s.Ctx) + if err != nil { + return nil, fmt.Errorf("failed to create kafka connect client: %w", err) + } } - return KafkaConnectClient, nil + + return s.ConnectClient, nil } diff --git a/pkg/mcp/builders/README.md b/pkg/mcp/builders/README.md new file mode 100644 index 0000000..b40e8e4 --- /dev/null +++ b/pkg/mcp/builders/README.md @@ -0,0 +1,255 @@ +# MCP Tools Builder Framework + +This is the tool builder framework for StreamNative MCP Server, designed to provide unified management and construction of MCP tools. + +## Overview + +The tool builder framework separates tool creation logic from server registration logic, providing an extensible and testable architecture for managing MCP tools. + +## Core Components + +### 1. ToolBuilder Interface + +The core interface that all tool builders must implement: + +```go +type ToolBuilder interface { + GetName() string + GetRequiredFeatures() []string + BuildTools(ctx context.Context, config ToolBuildConfig) ([]server.ServerTool, error) + Validate(config ToolBuildConfig) error +} +``` + +### 2. BaseToolBuilder + +An abstract builder that provides basic implementation: + +```go +type BaseToolBuilder struct { + metadata ToolMetadata + requiredFeatures []string +} +``` + +### 3. ToolRegistry + +A registry that manages all tool builders: + +```go +type ToolRegistry struct { + mu sync.RWMutex + builders map[string]ToolBuilder + metadata map[string]ToolMetadata +} +``` + +### 4. Configuration Management + +Supports flexible configuration management: + +```go +type ToolBuildConfig struct { + ReadOnly bool + Features []string + Options map[string]interface{} +} +``` + +## Usage Examples + +### Basic Usage + +```go +package main + +import ( + "context" + "fmt" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +func main() { + // Create registry + registry := builders.NewToolRegistry() + + // Register builders (actual builder implementation needed here) + // registry.Register(kafkaBuilders.NewKafkaConnectToolBuilder()) + + // Configure tools + configs := map[string]builders.ToolBuildConfig{ + "kafka_connect": { + ReadOnly: false, + Features: []string{"kafka_admin_kafka_connect"}, + }, + } + + // Build all tools + tools, err := registry.BuildAll(configs) + if err != nil { + panic(err) + } + + // Create MCP server and add tools + mcpServer := server.NewMCPServer("example", "1.0.0") + for _, tool := range tools { + mcpServer.AddTool(tool.Tool, tool.Handler) + } + + fmt.Printf("Successfully added %d tools\n", len(tools)) +} +``` + +### Configuration-Driven Usage + +```go +// Use configuration file +config, err := builders.LoadToolsConfig("tools.yaml") +if err != nil { + panic(err) +} + +// Convert to build configurations +buildConfigs := config.ToToolBuildConfigs() + +// Build tools +tools, err := registry.BuildAll(buildConfigs) +if err != nil { + panic(err) +} +``` + +### Configuration File Example + +```yaml +# tools.yaml +tools: + kafka_connect: + enabled: true + readOnly: false + features: + - "kafka_admin_kafka_connect" + options: + timeout: "30s" + + pulsar_functions: + enabled: true + readOnly: true + features: + - "pulsar_admin_functions" + options: + maxRetries: 3 +``` + +## Creating Custom Builders + +### 1. Implement the ToolBuilder Interface + +```go +type MyToolBuilder struct { + *builders.BaseToolBuilder +} + +func NewMyToolBuilder() *MyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "my_tool", + Version: "1.0.0", + Description: "My custom tool", + Category: "custom", + Tags: []string{"custom", "example"}, + } + + features := []string{"my_feature"} + + return &MyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} +``` + +### 2. Implement the BuildTools Method + +```go +func (b *MyToolBuilder) BuildTools(ctx context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Validate configuration + if err := b.Validate(config); err != nil { + return nil, err + } + + // Check features + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil // Return empty list + } + + // Build tools + tool := b.buildMyTool() + handler := b.buildMyHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} +``` + +### 3. Register the Builder + +```go +registry := builders.NewToolRegistry() +registry.Register(NewMyToolBuilder()) +``` + +## Testing + +The framework provides complete test coverage: + +```bash +cd pkg/mcp/builders +go test -v +``` + +## Configuration Options + +The framework provides various configuration options: + +```go +config := builders.NewToolBuildConfig( + builders.WithReadOnly(true), + builders.WithFeatures("feature1", "feature2"), + builders.WithTimeout(30*time.Second), + builders.WithMaxRetries(3), + builders.WithOption("custom", "value"), +) +``` + +## Best Practices + +1. **Keep it Simple**: Each builder should only be responsible for one tool or a group of closely related tools +2. **Error Handling**: Provide clear error messages for easy debugging +3. **Configuration Validation**: Validate all required configurations before building +4. **Thread Safety**: Ensure builders can be used safely concurrently +5. **Test Coverage**: Write comprehensive unit tests for each builder + +## Architecture Benefits + +- **Separation of Concerns**: Tool creation and server registration logic are separated +- **Reusability**: Builders can be reused in different contexts +- **Testability**: Each builder can be tested independently +- **Extensibility**: New tools only need to implement the interface +- **Configuration-Driven**: Supports managing tools through configuration files + +## Next Steps + +1. Implement specific tool builders (such as Kafka Connect) +2. Integrate into existing tool registration functions +3. Add more configuration options and features +4. Improve documentation and examples + +--- + +**Version**: 1.0.0 +**Created**: 2025-08-01 \ No newline at end of file diff --git a/pkg/mcp/builders/base.go b/pkg/mcp/builders/base.go new file mode 100644 index 0000000..d374351 --- /dev/null +++ b/pkg/mcp/builders/base.go @@ -0,0 +1,127 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package builders + +import ( + "context" + "fmt" + "slices" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" +) + +// ToolBuilder defines the interface that all tool builders must implement +// It specifies the methods required for building and managing MCP tools +type ToolBuilder interface { + // GetName returns the builder name + GetName() string + + // GetRequiredFeatures returns the list of required features + GetRequiredFeatures() []string + + // BuildTools builds and returns a list of server tools + BuildTools(ctx context.Context, config ToolBuildConfig) ([]server.ServerTool, error) + + // Validate validates the builder configuration + Validate(config ToolBuildConfig) error +} + +// ToolBuildConfig contains all configuration information needed to build tools +// It specifies build parameters such as read-only mode, features, and options +type ToolBuildConfig struct { + ReadOnly bool `json:"readOnly"` + Features []string `json:"features"` + Options map[string]interface{} `json:"options,omitempty"` +} + +// ToolMetadata describes the basic information and attributes of a tool +// It contains descriptive information about the tool builder +type ToolMetadata struct { + Name string `json:"name"` + Version string `json:"version"` + Description string `json:"description"` + Category string `json:"category"` + Dependencies []string `json:"dependencies,omitempty"` + Tags []string `json:"tags,omitempty"` +} + +// BaseToolBuilder provides common functionality implementation for all builders +// It serves as the foundation for concrete tool builder implementations +type BaseToolBuilder struct { + metadata ToolMetadata + requiredFeatures []string +} + +// NewBaseToolBuilder creates a new base tool builder instance +func NewBaseToolBuilder(metadata ToolMetadata, features []string) *BaseToolBuilder { + return &BaseToolBuilder{ + metadata: metadata, + requiredFeatures: features, + } +} + +// GetName returns the builder name +func (b *BaseToolBuilder) GetName() string { + return b.metadata.Name +} + +// GetRequiredFeatures returns the list of required features +func (b *BaseToolBuilder) GetRequiredFeatures() []string { + return b.requiredFeatures +} + +// GetMetadata returns the tool metadata +func (b *BaseToolBuilder) GetMetadata() ToolMetadata { + return b.metadata +} + +// Validate validates the builder configuration +// It checks if the configuration contains at least one required feature +func (b *BaseToolBuilder) Validate(config ToolBuildConfig) error { + return b.validateFeatures(config.Features) +} + +// validateFeatures validates the feature configuration +func (b *BaseToolBuilder) validateFeatures(features []string) error { + hasAny := false + for _, required := range b.requiredFeatures { + if slices.Contains(features, required) { + hasAny = true + break + } + } + if !hasAny { + return fmt.Errorf("none of required features found: %v", b.requiredFeatures) + } + return nil +} + +// HasAnyRequiredFeature checks if any required feature is present +func (b *BaseToolBuilder) HasAnyRequiredFeature(features []string) bool { + for _, required := range b.requiredFeatures { + if slices.Contains(features, required) { + return true + } + } + return false +} + +// ToolHandlerFunc defines the tool handler function type +// It maintains consistency with server.ToolHandlerFunc +type ToolHandlerFunc func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) diff --git a/pkg/mcp/builders/base_test.go b/pkg/mcp/builders/base_test.go new file mode 100644 index 0000000..4770921 --- /dev/null +++ b/pkg/mcp/builders/base_test.go @@ -0,0 +1,139 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package builders + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestBaseToolBuilder(t *testing.T) { + metadata := ToolMetadata{ + Name: "test_tool", + Version: "1.0.0", + Description: "Test tool for unit testing", + Category: "test", + Tags: []string{"test", "unit"}, + } + + features := []string{"feature1", "feature2", "feature3"} + builder := NewBaseToolBuilder(metadata, features) + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "test_tool", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + assert.Equal(t, features, builder.GetRequiredFeatures()) + }) + + t.Run("GetMetadata", func(t *testing.T) { + assert.Equal(t, metadata, builder.GetMetadata()) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := ToolBuildConfig{ + Features: []string{"feature1", "other_feature"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := ToolBuildConfig{ + Features: []string{"other_feature", "another_feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + assert.Contains(t, err.Error(), "none of required features found") + }) + + t.Run("HasAnyRequiredFeature_True", func(t *testing.T) { + features := []string{"feature1", "other_feature"} + assert.True(t, builder.HasAnyRequiredFeature(features)) + }) + + t.Run("HasAnyRequiredFeature_False", func(t *testing.T) { + features := []string{"other_feature", "another_feature"} + assert.False(t, builder.HasAnyRequiredFeature(features)) + }) + + t.Run("HasAnyRequiredFeature_Empty", func(t *testing.T) { + features := []string{} + assert.False(t, builder.HasAnyRequiredFeature(features)) + }) +} + +func TestToolBuildConfig(t *testing.T) { + t.Run("NewToolBuildConfig_Default", func(t *testing.T) { + config := NewToolBuildConfig() + + assert.False(t, config.ReadOnly) + assert.Empty(t, config.Features) + assert.NotNil(t, config.Options) + }) + + t.Run("NewToolBuildConfig_WithOptions", func(t *testing.T) { + config := NewToolBuildConfig( + WithReadOnly(true), + WithFeatures("feature1", "feature2"), + WithOption("key1", "value1"), + WithTimeout(30), + ) + + assert.True(t, config.ReadOnly) + assert.Equal(t, []string{"feature1", "feature2"}, config.Features) + assert.Equal(t, "value1", config.Options["key1"]) + assert.NotNil(t, config.Options["timeout"]) + }) +} + +func TestToolMetadata(t *testing.T) { + t.Run("CompleteMetadata", func(t *testing.T) { + metadata := ToolMetadata{ + Name: "complete_tool", + Version: "2.1.0", + Description: "A complete tool with all metadata", + Category: "admin", + Dependencies: []string{"dep1", "dep2"}, + Tags: []string{"tag1", "tag2", "tag3"}, + } + + assert.Equal(t, "complete_tool", metadata.Name) + assert.Equal(t, "2.1.0", metadata.Version) + assert.Equal(t, "A complete tool with all metadata", metadata.Description) + assert.Equal(t, "admin", metadata.Category) + assert.Equal(t, []string{"dep1", "dep2"}, metadata.Dependencies) + assert.Equal(t, []string{"tag1", "tag2", "tag3"}, metadata.Tags) + }) + + t.Run("MinimalMetadata", func(t *testing.T) { + metadata := ToolMetadata{ + Name: "minimal_tool", + Version: "1.0.0", + Description: "A minimal tool", + } + + assert.Equal(t, "minimal_tool", metadata.Name) + assert.Empty(t, metadata.Dependencies) + assert.Empty(t, metadata.Tags) + }) +} diff --git a/pkg/mcp/builders/config.go b/pkg/mcp/builders/config.go new file mode 100644 index 0000000..8d48aad --- /dev/null +++ b/pkg/mcp/builders/config.go @@ -0,0 +1,186 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package builders + +import ( + "fmt" + "time" +) + +// ToolsConfig represents the structure of the tools configuration file +type ToolsConfig struct { + Tools map[string]ToolConfig `yaml:"tools"` +} + +// ToolConfig represents the configuration for a single tool +type ToolConfig struct { + Enabled bool `yaml:"enabled"` + ReadOnly bool `yaml:"readOnly"` + Features []string `yaml:"features"` + Options map[string]interface{} `yaml:"options,omitempty"` +} + +// ToToolBuildConfigs converts tool configuration to build configurations +func (tc *ToolsConfig) ToToolBuildConfigs() map[string]ToolBuildConfig { + configs := make(map[string]ToolBuildConfig) + + for name, toolConfig := range tc.Tools { + if !toolConfig.Enabled { + continue + } + + configs[name] = ToolBuildConfig{ + ReadOnly: toolConfig.ReadOnly, + Features: toolConfig.Features, + Options: toolConfig.Options, + } + } + + return configs +} + +// GetEnabledTools returns the names of all enabled tools +func (tc *ToolsConfig) GetEnabledTools() []string { + var enabled []string + for name, config := range tc.Tools { + if config.Enabled { + enabled = append(enabled, name) + } + } + return enabled +} + +// IsToolEnabled checks if the specified tool is enabled +func (tc *ToolsConfig) IsToolEnabled(name string) bool { + if config, exists := tc.Tools[name]; exists { + return config.Enabled + } + return false +} + +// SetToolEnabled sets the enabled status of a tool +func (tc *ToolsConfig) SetToolEnabled(name string, enabled bool) { + if tc.Tools == nil { + tc.Tools = make(map[string]ToolConfig) + } + + config := tc.Tools[name] + config.Enabled = enabled + tc.Tools[name] = config +} + +// DefaultToolsConfig creates a default tool configuration +func DefaultToolsConfig() *ToolsConfig { + return &ToolsConfig{ + Tools: map[string]ToolConfig{ + "kafka_connect": { + Enabled: true, + ReadOnly: false, + Features: []string{"kafka_admin_kafka_connect"}, + Options: map[string]interface{}{ + "timeout": "30s", + }, + }, + "pulsar_functions": { + Enabled: true, + ReadOnly: false, + Features: []string{"pulsar_admin_functions"}, + Options: map[string]interface{}{ + "maxRetries": 3, + }, + }, + }, + } +} + +// ConfigOption defines the function type for configuration options +type ConfigOption func(*ToolBuildConfig) + +// WithReadOnly sets the read-only mode +func WithReadOnly(readOnly bool) ConfigOption { + return func(config *ToolBuildConfig) { + config.ReadOnly = readOnly + } +} + +// WithFeatures sets the feature list +func WithFeatures(features ...string) ConfigOption { + return func(config *ToolBuildConfig) { + config.Features = features + } +} + +// WithOption sets a configuration option +func WithOption(key string, value interface{}) ConfigOption { + return func(config *ToolBuildConfig) { + if config.Options == nil { + config.Options = make(map[string]interface{}) + } + config.Options[key] = value + } +} + +// WithTimeout sets the timeout option +func WithTimeout(timeout time.Duration) ConfigOption { + return WithOption("timeout", timeout.String()) +} + +// WithMaxRetries sets the maximum retry count option +func WithMaxRetries(maxRetries int) ConfigOption { + return WithOption("maxRetries", maxRetries) +} + +// NewToolBuildConfig creates a new tool build configuration +func NewToolBuildConfig(options ...ConfigOption) ToolBuildConfig { + config := ToolBuildConfig{ + ReadOnly: false, + Features: []string{}, + Options: make(map[string]interface{}), + } + + for _, option := range options { + option(&config) + } + + return config +} + +// Validate validates the tool configuration +func (tc *ToolConfig) Validate() error { + if len(tc.Features) == 0 { + return fmt.Errorf("no features specified") + } + return nil +} + +// Validate validates the entire tools configuration file +func (tc *ToolsConfig) Validate() error { + if len(tc.Tools) == 0 { + return fmt.Errorf("no tools configured") + } + + for name, config := range tc.Tools { + if config.Enabled { + if err := config.Validate(); err != nil { + return fmt.Errorf("invalid config for tool %s: %w", name, err) + } + } + } + + return nil +} diff --git a/pkg/mcp/builders/config_test.go b/pkg/mcp/builders/config_test.go new file mode 100644 index 0000000..bd8824a --- /dev/null +++ b/pkg/mcp/builders/config_test.go @@ -0,0 +1,222 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package builders + +import ( + "testing" + "time" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestToolsConfig(t *testing.T) { + t.Run("DefaultToolsConfig", func(t *testing.T) { + config := DefaultToolsConfig() + require.NotNil(t, config) + assert.NotEmpty(t, config.Tools) + assert.Contains(t, config.Tools, "kafka_connect") + assert.Contains(t, config.Tools, "pulsar_functions") + }) + + t.Run("ToToolBuildConfigs", func(t *testing.T) { + config := &ToolsConfig{ + Tools: map[string]ToolConfig{ + "tool1": { + Enabled: true, + ReadOnly: false, + Features: []string{"feature1"}, + Options: map[string]interface{}{"key": "value"}, + }, + "tool2": { + Enabled: false, // Should be excluded + ReadOnly: true, + Features: []string{"feature2"}, + }, + "tool3": { + Enabled: true, + ReadOnly: true, + Features: []string{"feature3"}, + }, + }, + } + + buildConfigs := config.ToToolBuildConfigs() + assert.Len(t, buildConfigs, 2) // Only enabled tools + assert.Contains(t, buildConfigs, "tool1") + assert.Contains(t, buildConfigs, "tool3") + assert.NotContains(t, buildConfigs, "tool2") // Disabled tool excluded + + assert.False(t, buildConfigs["tool1"].ReadOnly) + assert.True(t, buildConfigs["tool3"].ReadOnly) + }) + + t.Run("GetEnabledTools", func(t *testing.T) { + config := &ToolsConfig{ + Tools: map[string]ToolConfig{ + "enabled1": {Enabled: true}, + "disabled1": {Enabled: false}, + "enabled2": {Enabled: true}, + }, + } + + enabled := config.GetEnabledTools() + assert.Len(t, enabled, 2) + assert.Contains(t, enabled, "enabled1") + assert.Contains(t, enabled, "enabled2") + assert.NotContains(t, enabled, "disabled1") + }) + + t.Run("IsToolEnabled", func(t *testing.T) { + config := &ToolsConfig{ + Tools: map[string]ToolConfig{ + "enabled_tool": {Enabled: true}, + "disabled_tool": {Enabled: false}, + }, + } + + assert.True(t, config.IsToolEnabled("enabled_tool")) + assert.False(t, config.IsToolEnabled("disabled_tool")) + assert.False(t, config.IsToolEnabled("nonexistent_tool")) + }) + + t.Run("SetToolEnabled", func(t *testing.T) { + config := &ToolsConfig{} + + config.SetToolEnabled("new_tool", true) + assert.True(t, config.IsToolEnabled("new_tool")) + + config.SetToolEnabled("new_tool", false) + assert.False(t, config.IsToolEnabled("new_tool")) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := &ToolsConfig{ + Tools: map[string]ToolConfig{ + "valid_tool": { + Enabled: true, + Features: []string{"feature1"}, + }, + "disabled_tool": { + Enabled: false, + Features: []string{}, // Empty features OK for disabled tools + }, + }, + } + + err := config.Validate() + assert.NoError(t, err) + }) + + t.Run("Validate_EmptyConfig", func(t *testing.T) { + config := &ToolsConfig{} + + err := config.Validate() + assert.Error(t, err) + assert.Contains(t, err.Error(), "no tools configured") + }) + + t.Run("Validate_InvalidTool", func(t *testing.T) { + config := &ToolsConfig{ + Tools: map[string]ToolConfig{ + "invalid_tool": { + Enabled: true, + Features: []string{}, // Empty features for enabled tool + }, + }, + } + + err := config.Validate() + assert.Error(t, err) + assert.Contains(t, err.Error(), "no features specified") + }) +} + +func TestToolConfig(t *testing.T) { + t.Run("Validate_Success", func(t *testing.T) { + config := ToolConfig{ + Features: []string{"feature1", "feature2"}, + } + + err := config.Validate() + assert.NoError(t, err) + }) + + t.Run("Validate_NoFeatures", func(t *testing.T) { + config := ToolConfig{ + Features: []string{}, + } + + err := config.Validate() + assert.Error(t, err) + assert.Contains(t, err.Error(), "no features specified") + }) +} + +func TestConfigOptions(t *testing.T) { + t.Run("WithReadOnly", func(t *testing.T) { + config := NewToolBuildConfig(WithReadOnly(true)) + assert.True(t, config.ReadOnly) + + config = NewToolBuildConfig(WithReadOnly(false)) + assert.False(t, config.ReadOnly) + }) + + t.Run("WithFeatures", func(t *testing.T) { + config := NewToolBuildConfig(WithFeatures("feature1", "feature2", "feature3")) + assert.Equal(t, []string{"feature1", "feature2", "feature3"}, config.Features) + }) + + t.Run("WithOption", func(t *testing.T) { + config := NewToolBuildConfig( + WithOption("key1", "value1"), + WithOption("key2", 42), + ) + + assert.Equal(t, "value1", config.Options["key1"]) + assert.Equal(t, 42, config.Options["key2"]) + }) + + t.Run("WithTimeout", func(t *testing.T) { + timeout := 30 * time.Second + config := NewToolBuildConfig(WithTimeout(timeout)) + + assert.Equal(t, timeout.String(), config.Options["timeout"]) + }) + + t.Run("WithMaxRetries", func(t *testing.T) { + config := NewToolBuildConfig(WithMaxRetries(5)) + assert.Equal(t, 5, config.Options["maxRetries"]) + }) + + t.Run("CombinedOptions", func(t *testing.T) { + config := NewToolBuildConfig( + WithReadOnly(true), + WithFeatures("feature1", "feature2"), + WithTimeout(45*time.Second), + WithMaxRetries(3), + WithOption("custom", "value"), + ) + + assert.True(t, config.ReadOnly) + assert.Equal(t, []string{"feature1", "feature2"}, config.Features) + assert.Equal(t, (45 * time.Second).String(), config.Options["timeout"]) + assert.Equal(t, 3, config.Options["maxRetries"]) + assert.Equal(t, "value", config.Options["custom"]) + }) +} diff --git a/pkg/mcp/builders/kafka/connect.go b/pkg/mcp/builders/kafka/connect.go new file mode 100644 index 0000000..14b28f6 --- /dev/null +++ b/pkg/mcp/builders/kafka/connect.go @@ -0,0 +1,445 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/common" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// KafkaConnectToolBuilder implements the ToolBuilder interface for Kafka Connect +// It provides functionality to build Kafka Connect administration tools +// /nolint:revive +type KafkaConnectToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewKafkaConnectToolBuilder creates a new Kafka Connect tool builder instance +func NewKafkaConnectToolBuilder() *KafkaConnectToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_connect", + Version: "1.0.0", + Description: "Kafka Connect administration tools", + Category: "kafka_admin", + Tags: []string{"kafka", "connect", "admin"}, + } + + features := []string{ + "kafka-admin-kafka-connect", + "all", + "all-kafka", + "kafka-admin", + } + + return &KafkaConnectToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka Connect tool list +// This is the core method implementing the ToolBuilder interface +func (b *KafkaConnectToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaConnectTool() + handler := b.buildKafkaConnectHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaConnectTool builds the Kafka Connect MCP tool definition +// Migrated from the original tool definition logic +func (b *KafkaConnectToolBuilder) buildKafkaConnectTool() mcp.Tool { + resourceDesc := "Resource to operate on. Available resources:\n" + + "- kafka-connect-cluster: A single Kafka Connect cluster that manages connectors and tasks.\n" + + "- connector: A single Kafka Connect connector instance that moves data between Kafka and external systems.\n" + + "- connectors: Collection of all Kafka Connect connectors in a cluster.\n" + + "- connector-plugins: Collection of all Kafka Connect connector plugins, StreamNative Cloud provides a set of built-in connectors via this resource." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all connectors or connector plugins in a cluster.\n" + + "- get: Retrieve detailed information about a Kafka Connect cluster or specific connector.\n" + + "- create: Create a new connector with specified configuration.\n" + + "- update: Modify an existing connector's configuration.\n" + + "- delete: Remove a connector from the Kafka Connect cluster.\n" + + "- restart: Restart a running connector (useful after failures or configuration changes).\n" + + "- pause: Temporarily stop a connector from processing data.\n" + + "- resume: Continue processing with a previously paused connector." + + toolDesc := "Unified tool for managing Apache Kafka Connect.\n" + + "Kafka Connect is a framework for connecting Kafka with external systems such as databases, key-value stores, search indexes, and file systems. " + + "It provides a standardized way to stream data in and out of Kafka, without requiring custom integration code.\n\n" + + "Key concepts in Kafka Connect:\n\n" + + "- Connectors: The high-level abstraction that coordinates data streaming by managing tasks\n" + + "- Tasks: The implementation of how data is copied to or from Kafka\n" + + "- Workers: The running processes that execute connectors and tasks\n" + + "- Plugins: Reusable connector implementations for specific external systems\n" + + "- Source Connectors: Import data from external systems into Kafka topics\n" + + "- Sink Connectors: Export data from Kafka topics to external systems\n\n" + + "Kafka Connect simplifies data integration, enables scalable and reliable streaming pipelines, " + + "and reduces the operational burden of managing data flows.\n\n" + + "Usage Examples:\n\n" + + "1. List all connectors in the Kafka Connect cluster:\n" + + " resource: \"connectors\"\n" + + " operation: \"list\"\n\n" + + "2. Get information about a specific connector:\n" + + " resource: \"connector\"\n" + + " operation: \"get\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "3. Create a new JDBC source connector:\n" + + " resource: \"connector\"\n" + + " operation: \"create\"\n" + + " name: \"my-jdbc-source\"\n" + + " config: {\n" + + " \"connector.class\": \"io.confluent.connect.jdbc.JdbcSourceConnector\",\n" + + " \"connection.url\": \"jdbc:mysql://mysql:3306/mydb\",\n" + + " \"connection.user\": \"user\",\n" + + " \"connection.password\": \"password\",\n" + + " \"topic.prefix\": \"mysql-\",\n" + + " \"table.whitelist\": \"users,orders\",\n" + + " \"mode\": \"incrementing\",\n" + + " \"incrementing.column.name\": \"id\",\n" + + " \"tasks.max\": \"1\"\n" + + " }\n\n" + + "4. Update an existing connector's configuration:\n" + + " resource: \"connector\"\n" + + " operation: \"update\"\n" + + " name: \"my-jdbc-source\"\n" + + " config: {\n" + + " \"connector.class\": \"io.confluent.connect.jdbc.JdbcSourceConnector\",\n" + + " \"tasks.max\": \"2\",\n" + + " \"table.whitelist\": \"users,orders,products\"\n" + + " }\n\n" + + "5. Delete a connector:\n" + + " resource: \"connector\"\n" + + " operation: \"delete\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "6. Restart a connector after configuration changes or errors:\n" + + " resource: \"connector\"\n" + + " operation: \"restart\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "7. Pause a connector temporarily:\n" + + " resource: \"connector\"\n" + + " operation: \"pause\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "8. Resume a paused connector:\n" + + " resource: \"connector\"\n" + + " operation: \"resume\"\n" + + " name: \"my-jdbc-source\"\n\n" + + "9. List all available connector plugins:\n" + + " resource: \"connector-plugins\"\n" + + " operation: \"list\"\n\n" + + "10. Get information about the Kafka Connect cluster:\n" + + " resource: \"kafka-connect-cluster\"\n" + + " operation: \"get\"\n\n" + + "This tool requires appropriate Kafka Connect permissions." + + return mcp.NewTool("kafka_admin_connect", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("name", + mcp.Description("The name of the Kafka Connect connector to operate on. "+ + "Required for 'get', 'create', 'update', 'delete', 'restart', 'pause', and 'resume' operations on the 'connector' resource. "+ + "Must be unique within the Kafka Connect cluster. "+ + "Should be descriptive of the connector's purpose, such as 'mysql-inventory-source' or 'elasticsearch-logs-sink'.")), + mcp.WithObject("config", + mcp.Description("The configuration settings for the connector. "+ + "Required for 'create' and 'update' operations on the 'connector' resource. "+ + "Must include 'connector.class' which specifies the connector implementation. "+ + "Common configurations include:\n"+ + "- connector.class: The Java class implementing the connector\n"+ + "- tasks.max: Maximum number of tasks to use for this connector\n"+ + "- topics/topic.regex/topic.prefix: Topic specification (varies by connector)\n"+ + "- key.converter/value.converter: Data format converters\n"+ + "- transforms: Optional transformations to apply to data\n"+ + "Additional fields depend on the specific connector type being used.")), + ) +} + +// buildKafkaConnectHandler builds the Kafka Connect handler function +// Migrated from the original handler logic +func (b *KafkaConnectToolBuilder) buildKafkaConnectHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return b.handleError("get resource", err), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "update" || operation == "delete" || operation == "restart" || operation == "pause" || operation == "resume") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Kafka Connect client + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return mcp.NewToolResultError("Kafka session not found in context"), nil + } + admin, err := session.GetConnectClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Dispatch based on resource and operation + switch resource { + case "kafka-connect-cluster": + switch operation { + case "get": + return b.handleKafkaConnectClusterGet(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'kafka-connect-cluster': %s", operation)), nil + } + case "connectors": + switch operation { + case "list": + return b.handleKafkaConnectorsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connectors': %s", operation)), nil + } + case "connector": + switch operation { + case "get": + return b.handleKafkaConnectorGet(ctx, admin, request) + case "create": + return b.handleKafkaConnectorCreate(ctx, admin, request) + case "update": + return b.handleKafkaConnectorUpdate(ctx, admin, request) + case "delete": + return b.handleKafkaConnectorDelete(ctx, admin, request) + case "restart": + return b.handleKafkaConnectorRestart(ctx, admin, request) + case "pause": + return b.handleKafkaConnectorPause(ctx, admin, request) + case "resume": + return b.handleKafkaConnectorResume(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connector': %s", operation)), nil + } + case "connector-plugins": + switch operation { + case "list": + return b.handleKafkaConnectorPluginsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connector-plugins': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: kafka-connect-cluster, connectors, connector, connector-plugins", resource)), nil + } + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *KafkaConnectToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *KafkaConnectToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Specific operation handler functions - migrated from original implementation + +// handleKafkaConnectClusterGet handles retrieving Kafka Connect cluster information +func (b *KafkaConnectToolBuilder) handleKafkaConnectClusterGet(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + cluster, err := admin.GetInfo(ctx) + if err != nil { + return b.handleError("get Kafka Connect cluster", err), nil + } + return b.marshalResponse(cluster) +} + +// handleKafkaConnectorsList handles listing all connectors +func (b *KafkaConnectToolBuilder) handleKafkaConnectorsList(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + connectors, err := admin.ListConnectors(ctx) + if err != nil { + return b.handleError("get Kafka Connect connectors", err), nil + } + return b.marshalResponse(connectors) +} + +// handleKafkaConnectorGet handles retrieving specific connector information +func (b *KafkaConnectToolBuilder) handleKafkaConnectorGet(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + name, err := request.RequireString("name") + if err != nil { + return b.handleError("get connector name", err), nil + } + + connector, err := admin.GetConnector(ctx, name) + if err != nil { + return b.handleError("get Kafka Connect connector", err), nil + } + return b.marshalResponse(connector) +} + +// handleKafkaConnectorCreate handles creating a new connector +func (b *KafkaConnectToolBuilder) handleKafkaConnectorCreate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + name, err := request.RequireString("name") + if err != nil { + return b.handleError("get connector name", err), nil + } + + configMap, err := common.RequiredParamObject(request.GetArguments(), "config") + if err != nil { + return b.handleError("get config", err), nil + } + + config := common.ConvertToMapString(configMap) + config["name"] = name + + connector, err := admin.CreateConnector(ctx, name, config) + if err != nil { + return b.handleError("create Kafka Connect connector", err), nil + } + return b.marshalResponse(connector) +} + +// handleKafkaConnectorUpdate handles updating a connector +func (b *KafkaConnectToolBuilder) handleKafkaConnectorUpdate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + name, err := request.RequireString("name") + if err != nil { + return b.handleError("get connector name", err), nil + } + + configMap, err := common.RequiredParamObject(request.GetArguments(), "config") + if err != nil { + return b.handleError("get config", err), nil + } + + config := common.ConvertToMapString(configMap) + config["name"] = name + + connector, err := admin.UpdateConnector(ctx, name, config) + if err != nil { + return b.handleError("update Kafka Connect connector", err), nil + } + return b.marshalResponse(connector) +} + +// handleKafkaConnectorDelete handles deleting a connector +func (b *KafkaConnectToolBuilder) handleKafkaConnectorDelete(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + name, err := request.RequireString("name") + if err != nil { + return b.handleError("get connector name", err), nil + } + + err = admin.DeleteConnector(ctx, name) + if err != nil { + return b.handleError("delete Kafka Connect connector", err), nil + } + + return mcp.NewToolResultText("Connector deleted successfully"), nil +} + +// handleKafkaConnectorRestart handles restarting a connector +func (b *KafkaConnectToolBuilder) handleKafkaConnectorRestart(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + name, err := request.RequireString("name") + if err != nil { + return b.handleError("get connector name", err), nil + } + + err = admin.RestartConnector(ctx, name) + if err != nil { + return b.handleError("restart Kafka Connect connector", err), nil + } + + return mcp.NewToolResultText("Connector restarted successfully"), nil +} + +// handleKafkaConnectorPause handles pausing a connector +func (b *KafkaConnectToolBuilder) handleKafkaConnectorPause(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + name, err := request.RequireString("name") + if err != nil { + return b.handleError("get connector name", err), nil + } + + err = admin.PauseConnector(ctx, name) + if err != nil { + return b.handleError("pause Kafka Connect connector", err), nil + } + + return mcp.NewToolResultText("Connector paused successfully"), nil +} + +// handleKafkaConnectorResume handles resuming a connector +func (b *KafkaConnectToolBuilder) handleKafkaConnectorResume(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + name, err := request.RequireString("name") + if err != nil { + return b.handleError("get connector name", err), nil + } + + err = admin.ResumeConnector(ctx, name) + if err != nil { + return b.handleError("resume Kafka Connect connector", err), nil + } + + return mcp.NewToolResultText("Connector resumed successfully"), nil +} + +// handleKafkaConnectorPluginsList handles listing connector plugins +func (b *KafkaConnectToolBuilder) handleKafkaConnectorPluginsList(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + plugins, err := admin.ListPlugins(ctx) + if err != nil { + return b.handleError("get Kafka Connect connector plugins", err), nil + } + return b.marshalResponse(plugins) +} diff --git a/pkg/mcp/builders/kafka/connect_test.go b/pkg/mcp/builders/kafka/connect_test.go new file mode 100644 index 0000000..c1ea308 --- /dev/null +++ b/pkg/mcp/builders/kafka/connect_test.go @@ -0,0 +1,185 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "testing" + + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestNewKafkaConnectToolBuilder(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + assert.NotNil(t, builder) + assert.Equal(t, "kafka_connect", builder.GetName()) + + expectedFeatures := []string{ + "kafka-admin-kafka-connect", + "all", + "all-kafka", + "kafka-admin", + } + assert.Equal(t, expectedFeatures, builder.GetRequiredFeatures()) + + metadata := builder.GetMetadata() + assert.Equal(t, "kafka_connect", metadata.Name) + assert.Equal(t, "1.0.0", metadata.Version) + assert.Equal(t, "Kafka Connect administration tools", metadata.Description) + assert.Equal(t, "kafka_admin", metadata.Category) + assert.Equal(t, []string{"kafka", "connect", "admin"}, metadata.Tags) +} + +func TestKafkaConnectToolBuilder_BuildTools_Success(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-admin-kafka-connect"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + + require.NoError(t, err) + require.Len(t, tools, 1) + + tool := tools[0] + assert.NotNil(t, tool.Tool) + assert.NotNil(t, tool.Handler) + assert.Equal(t, "kafka_admin_connect", tool.Tool.Name) +} + +func TestKafkaConnectToolBuilder_BuildTools_WithAllFeature(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"all"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + + require.NoError(t, err) + require.Len(t, tools, 1) + + tool := tools[0] + assert.Equal(t, "kafka_admin_connect", tool.Tool.Name) +} + +func TestKafkaConnectToolBuilder_BuildTools_WithAllKafkaFeature(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"all-kafka"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + + require.NoError(t, err) + require.Len(t, tools, 1) +} + +func TestKafkaConnectToolBuilder_BuildTools_WithKafkaAdminFeature(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-admin"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + + require.NoError(t, err) + require.Len(t, tools, 1) +} + +func TestKafkaConnectToolBuilder_BuildTools_NoMatchingFeatures(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin", "other-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + + require.NoError(t, err) + assert.Len(t, tools, 0) // Should return empty slice, not error +} + +func TestKafkaConnectToolBuilder_BuildTools_EmptyFeatures(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{}, + } + + tools, err := builder.BuildTools(context.Background(), config) + + require.NoError(t, err) + assert.Len(t, tools, 0) +} + +func TestKafkaConnectToolBuilder_Validate_Success(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-admin-kafka-connect"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) +} + +func TestKafkaConnectToolBuilder_Validate_NoRequiredFeatures(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"other-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + assert.Contains(t, err.Error(), "none of required features found") +} + +func TestKafkaConnectToolBuilder_ToolDefinition(t *testing.T) { + builder := NewKafkaConnectToolBuilder() + + tool := builder.buildKafkaConnectTool() + + assert.Equal(t, "kafka_admin_connect", tool.Name) + assert.NotEmpty(t, tool.Description) + + // Verify required parameters + assert.Contains(t, tool.InputSchema.Properties, "resource") + assert.Contains(t, tool.InputSchema.Properties, "operation") + assert.Contains(t, tool.InputSchema.Properties, "name") + assert.Contains(t, tool.InputSchema.Properties, "config") + + // Verify required fields + assert.Contains(t, tool.InputSchema.Required, "resource") + assert.Contains(t, tool.InputSchema.Required, "operation") +} diff --git a/pkg/mcp/builders/kafka/consume.go b/pkg/mcp/builders/kafka/consume.go new file mode 100644 index 0000000..acbb741 --- /dev/null +++ b/pkg/mcp/builders/kafka/consume.go @@ -0,0 +1,342 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "time" + + "github.com/hamba/avro/v2" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kgo" + "github.com/twmb/franz-go/pkg/sr" +) + +// KafkaConsumeToolBuilder implements the ToolBuilder interface for Kafka client consume operations +// It provides functionality to build Kafka consumer tools +// /nolint:revive +type KafkaConsumeToolBuilder struct { + *builders.BaseToolBuilder + logger *logrus.Logger +} + +// NewKafkaConsumeToolBuilder creates a new Kafka consume tool builder instance +func NewKafkaConsumeToolBuilder() *KafkaConsumeToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_consume", + Version: "1.0.0", + Description: "Kafka client consume tools", + Category: "kafka_client", + Tags: []string{"kafka", "client", "consume"}, + } + + features := []string{ + "kafka-client", + "all", + "all-kafka", + } + + return &KafkaConsumeToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka consume tool list +// This is the core method implementing the ToolBuilder interface +func (b *KafkaConsumeToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Extract logger from options if provided + if loggerOpt, ok := config.Options["logger"]; ok { + if logger, ok := loggerOpt.(*logrus.Logger); ok { + b.logger = logger + } + } + + // Build tools + tool := b.buildKafkaConsumeTool() + handler := b.buildKafkaConsumeHandler() + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaConsumeTool builds the Kafka consume MCP tool definition +// Migrated from the original tool definition logic +func (b *KafkaConsumeToolBuilder) buildKafkaConsumeTool() mcp.Tool { + toolDesc := "Consume messages from a Kafka topic.\n" + + "This tool allows you to read messages from Kafka topics, specifying various consumption parameters.\n\n" + + "Kafka Consumer Concepts:\n" + + "- Consumers read data from Kafka topics, which can be spread across multiple partitions\n" + + "- Consumer Groups enable multiple consumers to cooperatively process messages from the same topic\n" + + "- Offsets track the position of consumers in each partition, allowing resumption after failures\n" + + "- Partitions are independent ordered sequences of messages that enable parallel processing\n\n" + + "This tool provides a temporary consumer instance for diagnostic and testing purposes. " + + "It does not commit offsets back to Kafka unless the 'group' parameter is explicitly specified. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_consume' instead.\n\n" + + "Usage Examples:\n\n" + + "1. Basic consumption - Get 10 earliest messages from a topic:\n" + + " topic: \"my-topic\"\n" + + " max-messages: 10\n\n" + + "2. Consumer group - Join an existing consumer group and resume from committed offset:\n" + + " topic: \"my-topic\"\n" + + " offset: \"atstart\"\n" + + " max-messages: 20\n\n" + + "3. Consumer group - Join an existing consumer group and resume from committed offset:\n" + + " topic: \"my-topic\"\n" + + " group: \"my-consumer-group\"\n" + + " offset: \"atcommitted\"\n\n" + + "4. Time-limited consumption - Set a longer timeout for slow topics:\n" + + " topic: \"my-topic\"\n" + + " max-messages: 100\n" + + " timeout: 30\n\n" + + "This tool requires Kafka consumer permissions on the specified topic." + + return mcp.NewTool("kafka_client_consume", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The name of the Kafka topic to consume messages from. "+ + "Must be an existing topic that the user has read permissions for. "+ + "For partitioned topics, this will consume from all partitions unless a specific partition is specified."), + ), + mcp.WithString("group", + mcp.Description("The consumer group ID to use for consumption. "+ + "Optional. If provided, the consumer will join this consumer group and track offsets with Kafka. "+ + "If not provided, a random group ID will be generated, and offsets won't be committed back to Kafka. "+ + "Using a meaningful group ID is important when you want to resume consumption later or coordinate multiple consumers."), + ), + mcp.WithString("offset", + mcp.Description("The offset position to start consuming from. "+ + "Optional. Must be one of these values:\n"+ + "- 'atstart': Begin from the earliest available message in the topic/partition\n"+ + "- 'atend': Begin from the next message that arrives after the consumer starts\n"+ + "- 'atcommitted': Begin from the last committed offset (only works with specified 'group')\n"+ + "Default: 'atstart'"), + ), + mcp.WithNumber("max-messages", + mcp.Description("Maximum number of messages to consume in this request. "+ + "Optional. Limits the total number of messages returned, across all partitions if no specific partition is specified. "+ + "Higher values retrieve more data but may increase response time and size. "+ + "Default: 10"), + ), + mcp.WithNumber("timeout", + mcp.Description("Maximum time in seconds to wait for messages. "+ + "Optional. The consumer will wait up to this long to collect the requested number of messages. "+ + "If fewer than 'max-messages' are available within this time, the available messages are returned. "+ + "Longer timeouts are useful for low-volume topics or when consuming with 'atend'. "+ + "Default: 10 seconds"), + ), + ) +} + +// buildKafkaConsumeHandler builds the Kafka consume handler function +// Migrated from the original handler logic +func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + opts := []kgo.Opt{} + // Get required parameters + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + opts = append(opts, kgo.ConsumeTopics(topicName)) + + opts = append(opts, kgo.FetchIsolationLevel(kgo.ReadUncommitted())) + opts = append(opts, kgo.KeepRetryableFetchErrors()) + if b.logger != nil { + w := b.logger.Writer() + opts = append(opts, kgo.WithLogger(kgo.BasicLogger(w, kgo.LogLevelInfo, nil))) + } + maxMessages := request.GetFloat("max-messages", 10) + + timeoutSec := request.GetFloat("timeout", 10) + + group := request.GetString("group", "") + if group != "" { + opts = append(opts, kgo.ConsumerGroup(group)) + } + + offsetStr := request.GetString("offset", "atstart") + + var offset kgo.Offset + switch offsetStr { + case "atstart": + offset = kgo.NewOffset().AtStart() + case "atend": + offset = kgo.NewOffset().AtEnd() + case "atcommitted": + offset = kgo.NewOffset().AtCommitted() + default: + offset = kgo.NewOffset().AtStart() + } + opts = append(opts, kgo.ConsumeResetOffset(offset)) + if b.logger != nil { + b.logger.Infof("Consuming from topic: %s, group: %s, max-messages: %d, timeout: %d", topicName, group, int(maxMessages), int(timeoutSec)) + } + + // Get Kafka session from context + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + + // Create Kafka client using the session + kafkaClient, err := session.GetClient(opts...) + if err != nil { + return b.handleError("create Kafka client", err), nil + } + defer kafkaClient.Close() + + srClient, err := session.GetSchemaRegistryClient() + schemaReady := false + var serde sr.Serde + if err == nil && srClient != nil { + schemaReady = true + } + + // Set timeout + timeoutCtx, cancel := context.WithTimeout(ctx, time.Duration(timeoutSec)*time.Second) + defer cancel() + + if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster + return b.handleError("ping Kafka cluster", err), nil + } + + if schemaReady { + subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) + if err != nil { + return b.handleError("get schema", err), nil + } + if b.logger != nil { + b.logger.Infof("Schema ID: %d", subjSchema.ID) + } + switch subjSchema.Type { + case sr.TypeAvro: + avroSchema, err := avro.Parse(subjSchema.Schema.Schema) + if err != nil { + return b.handleError("parse avro schema", err), nil + } + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(func(v any) ([]byte, error) { + return avro.Marshal(avroSchema, v) + }), + sr.DecodeFn(func(data []byte, v any) error { + return avro.Unmarshal(avroSchema, data, v) + }), + ) + case sr.TypeJSON: + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(json.Marshal), + sr.DecodeFn(json.Unmarshal), + ) + case sr.TypeProtobuf: + default: + // TODO: support other schema types + if b.logger != nil { + b.logger.Infof("Unsupported schema type: %s", subjSchema.Type) + } + schemaReady = false + } + } + + results := make([]any, 0) + consumerLoop: + for { + fetches := kafkaClient.PollRecords(timeoutCtx, int(maxMessages)) + iter := fetches.RecordIter() + if b.logger != nil { + b.logger.Infof("NumRecords: %d\n", fetches.NumRecords()) + } + + for _, fetchErr := range fetches.Errors() { + if b.logger != nil { + b.logger.Infof("error consuming from topic: topic=%s, partition=%d, err=%v\n", + fetchErr.Topic, fetchErr.Partition, fetchErr.Err) + } + break consumerLoop + } + + for !iter.Done() { + record := iter.Next() + if schemaReady { + var value map[string]any + err := serde.Decode(record.Value, &value) + if err != nil { + if b.logger != nil { + b.logger.Infof("Failed to decode value: %v", err) + } + results = append(results, record.Value) + } else { + results = append(results, value) + } + } else { + results = append(results, record.Value) + } + if len(results) >= int(maxMessages) { + break consumerLoop + } + } + } + + err = kafkaClient.CommitUncommittedOffsets(timeoutCtx) + if err != nil { + if err != context.Canceled && b.logger != nil { + b.logger.Infof("Failed to commit offsets: %v", err) + } + } + + return b.marshalResponse(results) + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *KafkaConsumeToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *KafkaConsumeToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/kafka/consume_test.go b/pkg/mcp/builders/kafka/consume_test.go new file mode 100644 index 0000000..dd3c66e --- /dev/null +++ b/pkg/mcp/builders/kafka/consume_test.go @@ -0,0 +1,100 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "testing" + + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestKafkaConsumeToolBuilder(t *testing.T) { + builder := NewKafkaConsumeToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "kafka_consume", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "kafka-client") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-client"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_client_consume", tools[0].Tool.Name) + assert.NotNil(t, tools[0].Handler) + }) + + t.Run("BuildTools_WithLogger", func(t *testing.T) { + logger := logrus.New() + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-client"}, + Options: map[string]interface{}{ + "logger": logger, + }, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, logger, builder.logger) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"kafka-client"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} diff --git a/pkg/mcp/builders/kafka/groups.go b/pkg/mcp/builders/kafka/groups.go new file mode 100644 index 0000000..bdb60ec --- /dev/null +++ b/pkg/mcp/builders/kafka/groups.go @@ -0,0 +1,377 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kadm" +) + +// KafkaGroupsToolBuilder implements the ToolBuilder interface for Kafka Consumer Groups +// /nolint:revive +type KafkaGroupsToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewKafkaGroupsToolBuilder creates a new Kafka Groups tool builder instance +func NewKafkaGroupsToolBuilder() *KafkaGroupsToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_groups", + Version: "1.0.0", + Description: "Kafka Consumer Groups administration tools", + Category: "kafka_admin", + Tags: []string{"kafka", "groups", "admin", "consumer"}, + } + + features := []string{ + "kafka-admin", + "all", + "all-kafka", + } + + return &KafkaGroupsToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka Groups tool list +func (b *KafkaGroupsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaGroupsTool() + handler := b.buildKafkaGroupsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaGroupsTool builds the Kafka Groups MCP tool definition +func (b *KafkaGroupsToolBuilder) buildKafkaGroupsTool() mcp.Tool { + resourceDesc := "Resource to operate on. Available resources:\n" + + "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members, set-offset, delete-offset)\n" + + "- groups: Collection of Kafka Consumer Groups for bulk operations (list)" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all Kafka Consumer Groups in the cluster\n" + + "- describe: Get detailed information about a specific Consumer Group, including members, offsets, and lag\n" + + "- remove-members: Remove specific members from a Consumer Group to force rebalancing or troubleshoot issues\n" + + "- offsets: Get offsets for a specific consumer group\n" + + "- delete-offset: Delete a specific offset for a consumer group of a topic\n" + + "- set-offset: Set a specific offset for a consumer group's topic-partition" + + toolDesc := "Unified tool for managing Apache Kafka Consumer Groups.\n" + + "This tool provides access to Kafka consumer group operations including listing, describing, and managing group membership.\n" + + "Kafka Consumer Groups are a key concept for scalable consumption of Kafka topics. A consumer group consists of multiple consumer instances\n" + + "that collaborate to consume data from topic partitions. Kafka ensures that:\n" + + "- Each partition is consumed by exactly one consumer in the group\n" + + "- When consumers join or leave, Kafka triggers a 'rebalance' to redistribute partitions\n" + + "- Consumer groups track consumption progress through committed offsets\n\n" + + "Usage Examples:\n\n" + + "1. List all Kafka Consumer Groups in the cluster:\n" + + " resource: \"groups\"\n" + + " operation: \"list\"\n\n" + + "2. Describe a specific Kafka Consumer Group to see its members and consumption details:\n" + + " resource: \"group\"\n" + + " operation: \"describe\"\n" + + " group: \"my-consumer-group\"\n\n" + + "3. Remove specific members from a Kafka Consumer Group to trigger rebalancing:\n" + + " resource: \"group\"\n" + + " operation: \"remove-members\"\n" + + " group: \"my-consumer-group\"\n" + + " members: \"consumer-instance-1,consumer-instance-2\"\n\n" + + "4. Get offsets for a specific consumer group:\n" + + " resource: \"group\"\n" + + " operation: \"offsets\"\n" + + " group: \"my-consumer-group\"\n\n" + + "5. Delete a specific offset for a consumer group of a topic:\n" + + " resource: \"group\"\n" + + " operation: \"delete-offset\"\n" + + " group: \"my-consumer-group\"\n" + + " topic: \"my-topic\"\n\n" + + "6. Set a specific offset for a consumer group's topic-partition:\n" + + " resource: \"group\"\n" + + " operation: \"set-offset\"\n" + + " group: \"my-consumer-group\"\n" + + " topic: \"my-topic\"\n" + + " partition: 0\n" + + " offset: 1000\n\n" + + "This tool requires Kafka super-user permissions." + + return mcp.NewTool("kafka_admin_groups", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("group", + mcp.Description("The name of the Kafka Consumer Group to operate on. "+ + "Required for the 'describe' and 'remove-members' operations. "+ + "Must be an existing consumer group name in the Kafka cluster. "+ + "Consumer Group names are case-sensitive and typically follow a naming convention like 'application-name'.")), + mcp.WithString("members", + mcp.Description("Comma-separated list of consumer instance IDs to remove from the group. "+ + "Required for the 'remove-members' operation. "+ + "Consumer instance IDs can be found using the 'describe' operation.")), + mcp.WithString("topic", + mcp.Description("The topic name. Required for 'delete-offset' and 'set-offset' operations.")), + mcp.WithNumber("partition", + mcp.Description("The partition number. Required for 'set-offset' operation.")), + mcp.WithNumber("offset", + mcp.Description("The offset value to set. Required for 'set-offset' operation.")), + ) +} + +// buildKafkaGroupsHandler builds the Kafka Groups handler function +func (b *KafkaGroupsToolBuilder) buildKafkaGroupsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return b.handleError("get resource", err), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "remove-members" || operation == "delete-offset" || operation == "set-offset") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Kafka admin client + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + admin, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Dispatch based on resource and operation + switch resource { + case "groups": + switch operation { + case "list": + return b.handleKafkaGroupsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'groups': %s", operation)), nil + } + case "group": + switch operation { + case "describe": + return b.handleKafkaGroupDescribe(ctx, admin, request) + case "remove-members": + return b.handleKafkaGroupRemoveMembers(ctx, admin, request) + case "offsets": + return b.handleKafkaGroupOffsets(ctx, admin, request) + case "delete-offset": + return b.handleKafkaGroupDeleteOffset(ctx, admin, request) + case "set-offset": + return b.handleKafkaGroupSetOffset(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'group': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: groups, group", resource)), nil + } + } +} + +// Utility functions + +// handleError provides unified error handling +func (b *KafkaGroupsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *KafkaGroupsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Specific operation handler functions + +// handleKafkaGroupsList handles listing all consumer groups +func (b *KafkaGroupsToolBuilder) handleKafkaGroupsList(ctx context.Context, admin *kadm.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groups, err := admin.ListGroups(ctx) + if err != nil { + return b.handleError("list Kafka consumer groups", err), nil + } + return b.marshalResponse(groups) +} + +// handleKafkaGroupDescribe handles describing a specific consumer group +func (b *KafkaGroupsToolBuilder) handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + groups, err := admin.DescribeGroups(ctx, groupName) + if err != nil { + return b.handleError("describe Kafka consumer group", err), nil + } + return b.marshalResponse(groups) +} + +// handleKafkaGroupRemoveMembers handles removing members from a consumer group +func (b *KafkaGroupsToolBuilder) handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + membersStr, err := request.RequireString("members") + if err != nil { + return b.handleError("get members", err), nil + } + + memberIDs := strings.Split(membersStr, ",") + for i, member := range memberIDs { + memberIDs[i] = strings.TrimSpace(member) + } + + builder := kadm.LeaveGroup(groupName).InstanceIDs(memberIDs...) + response, err := admin.LeaveGroup(ctx, builder) + if err != nil { + return b.handleError("remove members from Kafka consumer group", err), nil + } + + return b.marshalResponse(response) +} + +// handleKafkaGroupOffsets handles getting offsets for a consumer group +func (b *KafkaGroupsToolBuilder) handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + response, err := admin.FetchOffsets(ctx, groupName) + if err != nil { + return b.handleError("get offsets for Kafka consumer group", err), nil + } + return b.marshalResponse(response) +} + +// handleKafkaGroupDeleteOffset handles deleting a specific offset for a consumer group +func (b *KafkaGroupsToolBuilder) handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + + // Create a TopicsSet with the specified topic + // This will target all partitions for the given topic + topicsSet := make(kadm.TopicsSet) + topicsSet.Add(topicName) + + // Call DeleteOffsets to delete the offsets for the specified topic + responses, err := admin.DeleteOffsets(ctx, groupName, topicsSet) + if err != nil { + return b.handleError("delete offset for Kafka consumer group", err), nil + } + + // Check for errors in the response + if err := responses.Error(); err != nil { + return b.handleError("delete offset for Kafka consumer group", err), nil + } + + return b.marshalResponse(responses) +} + +// handleKafkaGroupSetOffset handles setting a specific offset for a consumer group +func (b *KafkaGroupsToolBuilder) handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + + partitionNum, err := request.RequireFloat("partition") + if err != nil { + return b.handleError("get partition number", err), nil + } + partitionInt := int32(partitionNum) + + offsetNum, err := request.RequireFloat("offset") + if err != nil { + return b.handleError("get offset", err), nil + } + offsetInt := int64(offsetNum) + + // Create Offsets object with the specified topic, partition, and offset + offsets := make(kadm.Offsets) + offsets.AddOffset(topicName, partitionInt, offsetInt, -1) // Using -1 for leaderEpoch as it's optional + + // Commit the offsets + responses, err := admin.CommitOffsets(ctx, groupName, offsets) + if err != nil { + return b.handleError("set offset for Kafka consumer group", err), nil + } + + // Check for errors in the response + if err := responses.Error(); err != nil { + return b.handleError("set offset for Kafka consumer group", err), nil + } + + return b.marshalResponse(responses) +} diff --git a/pkg/mcp/builders/kafka/partitions.go b/pkg/mcp/builders/kafka/partitions.go new file mode 100644 index 0000000..05316b1 --- /dev/null +++ b/pkg/mcp/builders/kafka/partitions.go @@ -0,0 +1,220 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kadm" +) + +// KafkaPartitionsToolBuilder implements the ToolBuilder interface for Kafka Partitions +// /nolint:revive +type KafkaPartitionsToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewKafkaPartitionsToolBuilder creates a new Kafka Partitions tool builder instance +func NewKafkaPartitionsToolBuilder() *KafkaPartitionsToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_partitions", + Version: "1.0.0", + Description: "Kafka Partitions administration tools", + Category: "kafka_admin", + Tags: []string{"kafka", "partitions", "admin"}, + } + + features := []string{ + "kafka-admin", + "all", + "all-kafka", + } + + return &KafkaPartitionsToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka Partitions tool list +func (b *KafkaPartitionsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaPartitionsTool() + handler := b.buildKafkaPartitionsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaPartitionsTool builds the Kafka Partitions MCP tool definition +func (b *KafkaPartitionsToolBuilder) buildKafkaPartitionsTool() mcp.Tool { + resourceDesc := "Resource to operate on. Available resources:\n" + + "- partition: A single Kafka Partition of a Kafka topic. Partitions are the basic unit of parallelism and data distribution in Kafka." + + operationDesc := "Operation to perform. Available operations:\n" + + "- update: Update the number of partitions for an existing Kafka topic. This operation can only increase the number of partitions, not decrease them." + + toolDesc := "Unified tool for managing Apache Kafka partitions.\n" + + "This tool provides access to Kafka partition operations, particularly adding partitions to existing topics.\n" + + "Kafka partitions are the fundamental unit of parallelism and scalability in Kafka. Each partition is an ordered, " + + "immutable sequence of records that is continually appended to. Partitions can be distributed across multiple brokers " + + "to enable parallel processing of a topic.\n\n" + + "Important notes:\n" + + "- You can only increase the number of partitions, never decrease them\n" + + "- Adding partitions may change the mapping of keys to partitions\n" + + "- Existing messages remain in their original partitions\n" + + "- Consider the impact on ordering guarantees when adding partitions\n\n" + + "Usage Examples:\n\n" + + "1. Increase the partition count for a topic:\n" + + " resource: \"partition\"\n" + + " operation: \"update\"\n" + + " topic: \"user-events\"\n" + + " partitions: 6\n\n" + + "2. Scale up partitions for high-throughput topic:\n" + + " resource: \"partition\"\n" + + " operation: \"update\"\n" + + " topic: \"metrics-data\"\n" + + " partitions: 12\n\n" + + "This tool requires appropriate Kafka permissions for partition management." + + return mcp.NewTool("kafka_admin_partitions", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", + mcp.Description("The name of the Kafka topic to operate on. "+ + "Required for the 'update' operation. "+ + "Must be an existing topic name in the Kafka cluster. "+ + "The topic must be in a healthy state for partition updates to succeed.")), + mcp.WithNumber("new-total", + mcp.Description("The new total number of partitions for the Kafka topic. "+ + "Required for the 'update' operation. "+ + "Must be greater than the current number of partitions (cannot decrease partitions). "+ + "A larger number of partitions can help increase parallelism and throughput, but may also "+ + "increase resource utilization on the brokers. "+ + "Consider Kafka cluster capacity when setting this value.")), + ) +} + +// buildKafkaPartitionsHandler builds the Kafka Partitions handler function +func (b *KafkaPartitionsToolBuilder) buildKafkaPartitionsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return b.handleError("get resource", err), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && operation == "update" { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Kafka admin client + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + admin, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Dispatch based on resource and operation + switch resource { + case "partition": + switch operation { + case "update": + return b.handleKafkaPartitionUpdate(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'partition': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: partition", resource)), nil + } + } +} + +// Utility functions + +// handleError provides unified error handling +func (b *KafkaPartitionsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *KafkaPartitionsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleKafkaPartitionUpdate handles updating the number of partitions for a topic +func (b *KafkaPartitionsToolBuilder) handleKafkaPartitionUpdate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + + newTotal, err := request.RequireInt("new-total") + if err != nil { + return b.handleError("get new total", err), nil + } + + response, err := admin.UpdatePartitions(ctx, newTotal, topicName) + if err != nil { + return b.handleError("update Kafka topic partitions", err), nil + } + + return b.marshalResponse(response) +} diff --git a/pkg/mcp/builders/kafka/produce.go b/pkg/mcp/builders/kafka/produce.go new file mode 100644 index 0000000..1eb3088 --- /dev/null +++ b/pkg/mcp/builders/kafka/produce.go @@ -0,0 +1,362 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strings" + "time" + + "github.com/hamba/avro/v2" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kgo" + "github.com/twmb/franz-go/pkg/sr" +) + +// KafkaProduceToolBuilder implements the ToolBuilder interface for Kafka client produce operations +// It provides functionality to build Kafka producer tools +// /nolint:revive +type KafkaProduceToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewKafkaProduceToolBuilder creates a new Kafka produce tool builder instance +func NewKafkaProduceToolBuilder() *KafkaProduceToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_produce", + Version: "1.0.0", + Description: "Kafka client produce tools", + Category: "kafka_client", + Tags: []string{"kafka", "client", "produce"}, + } + + features := []string{ + "kafka-client", + "all", + "all-kafka", + } + + return &KafkaProduceToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka produce tool list +// This is the core method implementing the ToolBuilder interface +func (b *KafkaProduceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Skip registration if in read-only mode + if config.ReadOnly { + return nil, nil + } + + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaProduceTool() + handler := b.buildKafkaProduceHandler() + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaProduceTool builds the Kafka produce MCP tool definition +// Migrated from the original tool definition logic +func (b *KafkaProduceToolBuilder) buildKafkaProduceTool() mcp.Tool { + toolDesc := "Produce messages to a Kafka topic.\n" + + "This tool allows you to send messages to Kafka topics with various options for message creation.\n\n" + + "Kafka Producer Concepts:\n" + + "- Producers write data to Kafka topics, which can be spread across multiple partitions\n" + + "- Messages can include a key, which determines the partition assignment (consistent hashing)\n" + + "- Headers can be added to messages to include metadata without affecting the message payload\n" + + "- Partitions enable parallel processing and ordered delivery within a single partition\n\n" + + "This tool provides a simple producer instance for diagnostic and testing purposes. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_produce' instead.\n\n" + + "Usage Examples:\n\n" + + "1. Basic message production - Send a simple message to a topic:\n" + + " topic: \"my-topic\"\n" + + " value: \"Hello, Kafka!\"\n\n" + + "2. Keyed message - Send a message with a key for consistent partition routing:\n" + + " topic: \"my-topic\"\n" + + " key: \"user-123\"\n" + + " value: \"User activity data\"\n\n" + + "3. Multiple messages - Send several messages in one request:\n" + + " topic: \"my-topic\"\n" + + " messages: [{\"key\": \"key1\", \"value\": \"value1\"}, {\"key\": \"key2\", \"value\": \"value2\"}]\n\n" + + "4. Message with headers - Include metadata with your message:\n" + + " topic: \"my-topic\"\n" + + " value: \"Message with headers\"\n" + + " headers: [\"source=mcp-tool\", \"timestamp=2023-06-01\"]\n\n" + + "5. Specific partition - Send to a particular partition:\n" + + " topic: \"my-topic\"\n" + + " value: \"Targeted message\"\n" + + " partition: 2\n\n" + + "This tool requires Kafka producer permissions on the specified topic." + + return mcp.NewTool("kafka_client_produce", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The name of the Kafka topic to produce messages to. "+ + "Must be an existing topic that the user has write permissions for."), + ), + mcp.WithString("key", + mcp.Description("The key for the message. "+ + "Optional. Keys are used for partition assignment and maintaining order for related messages. "+ + "Messages with the same key will be sent to the same partition."), + ), + mcp.WithString("value", + mcp.Required(), + mcp.Description("The value/content of the message to send. "+ + "This is the actual payload that will be delivered to consumers. It can be a JSON string, and the system will automatically serialize it to the appropriate format based on the schema registry if it is available."), + ), + mcp.WithArray("headers", + mcp.Description("Message headers in the format of [\"key=value\"]. "+ + "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ + "They are passed along with the message to consumers."), + mcp.Items(map[string]interface{}{ + "type": "string", + "description": "key value pair in the format of \"key=value\"", + }), + ), + mcp.WithNumber("partition", + mcp.Description("The specific partition to send the message to. "+ + "Optional. If not specified, Kafka will automatically assign a partition based on the message key (if provided) or round-robin assignment. "+ + "Specifying a partition can be useful for testing or when you need guaranteed partition assignment."), + ), + mcp.WithArray("messages", + mcp.Description("An array of messages to send in batch. "+ + "Optional. Alternative to the single message parameters (key, value, headers, partition). "+ + "Each message object can contain 'key', 'value', 'headers', and 'partition' properties. "+ + "Batch sending is more efficient for multiple messages."), + mcp.Items(map[string]interface{}{ + "type": "object", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + "description": "Message key", + }, + "value": map[string]interface{}{ + "type": "string", + "description": "Message value (required)", + }, + "headers": map[string]interface{}{ + "type": "array", + "description": "Message headers as array of \"key=value\" strings", + "items": map[string]interface{}{ + "type": "string", + }, + }, + "partition": map[string]interface{}{ + "type": "number", + "description": "Target partition number", + }, + }, + "required": []string{"value"}, + }), + ), + mcp.WithBoolean("sync", + mcp.Description("Whether to wait for server acknowledgment before returning. "+ + "Optional. Default is true. When true, ensures the message was successfully written "+ + "to the topic before the tool returns a success response."), + ), + ) +} + +// buildKafkaProduceHandler builds the Kafka produce handler function +// Migrated from the original handler logic +func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required topic parameter + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + + // Get Kafka session from context + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + + // Create Kafka client using the session + kafkaClient, err := session.GetClient() + if err != nil { + return b.handleError("create Kafka client", err), nil + } + defer kafkaClient.Close() + + srClient, err := session.GetSchemaRegistryClient() + schemaReady := false + var serde sr.Serde + if err == nil && srClient != nil { + schemaReady = true + } + + // Set timeout + timeoutCtx, cancel := context.WithTimeout(ctx, 30*time.Second) + defer cancel() + + if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster + return b.handleError("ping Kafka cluster", err), nil + } + + if schemaReady { + subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) + if err != nil { + return b.handleError("get schema", err), nil + } + switch subjSchema.Type { + case sr.TypeAvro: + avroSchema, err := avro.Parse(subjSchema.Schema.Schema) + if err != nil { + return b.handleError("parse avro schema", err), nil + } + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(func(v any) ([]byte, error) { + return avro.Marshal(avroSchema, v) + }), + sr.DecodeFn(func(data []byte, v any) error { + return avro.Unmarshal(avroSchema, data, v) + }), + ) + case sr.TypeJSON: + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(json.Marshal), + sr.DecodeFn(json.Unmarshal), + ) + case sr.TypeProtobuf: + default: + // TODO: support other schema types + schemaReady = false + } + } + + // Single message mode (simplified version) + value, err := request.RequireString("value") + if err != nil { + return b.handleError("get value", err), nil + } + + key := request.GetString("key", "") + headers := request.GetStringSlice("headers", []string{}) + sync := request.GetBool("sync", true) + + // Prepare record + record := &kgo.Record{ + Topic: topicName, + Value: []byte(value), + } + + // Add key if provided + if key != "" { + record.Key = []byte(key) + } + + // Add headers if provided + if len(headers) > 0 { + for _, headerStr := range headers { + parts := strings.SplitN(headerStr, "=", 2) + if len(parts) == 2 { + record.Headers = append(record.Headers, kgo.RecordHeader{ + Key: parts[0], + Value: []byte(parts[1]), + }) + } + } + } + + // Handle schema encoding if available + if schemaReady { + var jsonValue interface{} + if err := json.Unmarshal([]byte(value), &jsonValue); err == nil { + encodedValue, err := serde.Encode(jsonValue) + if err != nil { + return b.handleError("encode value with schema", err), nil + } + record.Value = encodedValue + } + } + + // Produce the message based on sync parameter + if sync { + results := kafkaClient.ProduceSync(timeoutCtx, record) + if len(results) > 0 && results[0].Err != nil { + return b.handleError("produce message", results[0].Err), nil + } + } else { + kafkaClient.Produce(timeoutCtx, record, func(_ *kgo.Record, _ error) { + // Log async errors but don't fail since we're async + // In the future, this could be enhanced with proper async result handling + }) + } + + // Create result + response := map[string]interface{}{ + "status": "success", + "topic": record.Topic, + "timestamp": time.Now().Format(time.RFC3339), + } + + if len(record.Key) > 0 { + response["key"] = string(record.Key) + } + + if record.Partition != -1 { + response["partition"] = record.Partition + } + + return b.marshalResponse(response) + } +} + +// Helper functions + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *KafkaProduceToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *KafkaProduceToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/kafka/produce_test.go b/pkg/mcp/builders/kafka/produce_test.go new file mode 100644 index 0000000..777a16f --- /dev/null +++ b/pkg/mcp/builders/kafka/produce_test.go @@ -0,0 +1,94 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "testing" + + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestKafkaProduceToolBuilder(t *testing.T) { + builder := NewKafkaProduceToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "kafka_produce", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "kafka-client") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-client"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_client_produce", tools[0].Tool.Name) + assert.NotNil(t, tools[0].Handler) + }) + + t.Run("BuildTools_ReadOnlyMode", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"kafka-client"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) // Should skip in read-only mode + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"kafka-client"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} diff --git a/pkg/mcp/builders/kafka/schema_registry.go b/pkg/mcp/builders/kafka/schema_registry.go new file mode 100644 index 0000000..bb4056f --- /dev/null +++ b/pkg/mcp/builders/kafka/schema_registry.go @@ -0,0 +1,501 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strconv" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/sr" +) + +// KafkaSchemaRegistryToolBuilder implements the ToolBuilder interface for Kafka Schema Registry +// /nolint:revive +type KafkaSchemaRegistryToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewKafkaSchemaRegistryToolBuilder creates a new Kafka Schema Registry tool builder instance +func NewKafkaSchemaRegistryToolBuilder() *KafkaSchemaRegistryToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_schema_registry", + Version: "1.0.0", + Description: "Kafka Schema Registry administration tools", + Category: "kafka_admin", + Tags: []string{"kafka", "schema", "registry", "admin"}, + } + + features := []string{ + "kafka-admin-schema-registry", + "all", + "all-kafka", + "kafka-admin", + } + + return &KafkaSchemaRegistryToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka Schema Registry tool list +func (b *KafkaSchemaRegistryToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaSchemaRegistryTool() + handler := b.buildKafkaSchemaRegistryHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaSchemaRegistryTool builds the Kafka Schema Registry MCP tool definition +func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryTool() mcp.Tool { + resourceDesc := "Resource to operate on. Available resources:\n" + + "- subjects: Collection of all schema subjects in the Schema Registry\n" + + "- subject: A specific schema subject (a named schema that can have multiple versions)\n" + + "- versions: Collection of all versions for a specific subject\n" + + "- version: A specific version of a subject's schema\n" + + "- compatibility: Compatibility settings that control schema evolution rules\n" + + "- types: Supported schema format types (like AVRO, JSON, PROTOBUF)" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all subjects, versions for a subject, or supported schema types\n" + + "- get: Get a subject's latest schema, a specific version, or compatibility setting\n" + + "- set: Set compatibility level for global or subject-specific schema evolution\n" + + "- create: Register a new schema for a subject\n" + + "- delete: Delete a schema subject or a specific version" + + toolDesc := "Unified tool for managing Apache Kafka Schema Registry.\n" + + "Schema Registry provides a centralized repository for managing and validating schemas for Kafka data.\n" + + "It enables schema evolution while maintaining compatibility between producers and consumers.\n\n" + + "Key concepts:\n" + + "- Subject: A named schema that can have multiple versions\n" + + "- Version: A specific instance of a schema for a subject\n" + + "- Compatibility: Rules that govern how schemas can evolve\n" + + "- Schema Types: Format types like AVRO, JSON Schema, and Protocol Buffers\n\n" + + "Compatibility levels:\n" + + "- BACKWARD: New schema can read data written with previous schema\n" + + "- FORWARD: Previous schema can read data written with new schema\n" + + "- FULL: Both backward and forward compatibility\n" + + "- NONE: No compatibility enforcement\n\n" + + "Usage Examples:\n\n" + + "1. List all schema subjects:\n" + + " resource: \"subjects\"\n" + + " operation: \"list\"\n\n" + + "2. Get the latest schema for a subject:\n" + + " resource: \"subject\"\n" + + " operation: \"get\"\n" + + " subject: \"user-events-value\"\n\n" + + "3. Register a new schema:\n" + + " resource: \"subject\"\n" + + " operation: \"create\"\n" + + " subject: \"user-events-value\"\n" + + " schema: {...}\n" + + " schemaType: \"AVRO\"\n\n" + + "4. Set compatibility level:\n" + + " resource: \"compatibility\"\n" + + " operation: \"set\"\n" + + " subject: \"user-events-value\"\n" + + " compatibility: \"BACKWARD\"\n\n" + + "This tool requires appropriate Schema Registry permissions." + + return mcp.NewTool("kafka_admin_sr", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("subject", + mcp.Description("The name of the schema subject. "+ + "Required for operations on 'subject', 'versions', 'version', and subject-specific 'compatibility' resources. "+ + "Subject names typically follow the pattern '-key' or '-value'.")), + mcp.WithString("version", + mcp.Description("The version number or 'latest' for the most recent version. "+ + "Required for 'version' resource operations.")), + mcp.WithString("compatibility", + mcp.Description("The compatibility level to set. "+ + "Valid values: BACKWARD, FORWARD, FULL, NONE. "+ + "Required for 'set' operation on 'compatibility' resource.")), + mcp.WithString("schemaType", + mcp.Description("The schema format type. "+ + "Valid values: AVRO, JSON, PROTOBUF. "+ + "Required for 'create' operation on 'subject' resource.")), + mcp.WithObject("schema", + mcp.Description("The schema definition as a JSON object. "+ + "Required for 'create' operation on 'subject' resource. "+ + "The structure depends on the schema type (AVRO, JSON Schema, or Protocol Buffers).")), + ) +} + +// buildKafkaSchemaRegistryHandler builds the Kafka Schema Registry handler function +func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return b.handleError("get resource", err), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "delete" || operation == "set") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Schema Registry client + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + client, err := session.GetSchemaRegistryClient() + if err != nil { + return b.handleError("get Schema Registry client", err), nil + } + + // Dispatch based on resource and operation + switch resource { + case "subjects": + switch operation { + case "list": + return b.handleSchemaSubjectsList(ctx, client, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subjects': %s", operation)), nil + } + case "subject": + switch operation { + case "get": + return b.handleSchemaSubjectGet(ctx, client, request) + case "create": + return b.handleSchemaSubjectCreate(ctx, client, request) + case "delete": + return b.handleSchemaSubjectDelete(ctx, client, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subject': %s", operation)), nil + } + case "versions": + switch operation { + case "list": + return b.handleSchemaVersionsList(ctx, client, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'versions': %s", operation)), nil + } + case "version": + switch operation { + case "get": + return b.handleSchemaVersionGet(ctx, client, request) + case "delete": + return b.handleSchemaVersionDelete(ctx, client, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'version': %s", operation)), nil + } + case "compatibility": + switch operation { + case "get": + return b.handleSchemaCompatibilityGet(ctx, client, request) + case "set": + return b.handleSchemaCompatibilitySet(ctx, client, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'compatibility': %s", operation)), nil + } + case "types": + switch operation { + case "list": + return b.handleSchemaTypesList(ctx, client, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'types': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: subjects, subject, versions, version, compatibility, types", resource)), nil + } + } +} + +// Utility functions + +// handleError provides unified error handling +func (b *KafkaSchemaRegistryToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *KafkaSchemaRegistryToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Specific operation handler functions + +// handleSchemaSubjectsList handles listing all schema subjects +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectsList(ctx context.Context, client *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subjects, err := client.Subjects(ctx) + if err != nil { + return b.handleError("list schema subjects", err), nil + } + return b.marshalResponse(subjects) +} + +// handleSchemaSubjectGet handles getting the latest schema for a subject +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectGet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := request.RequireString("subject") + if err != nil { + return b.handleError("get subject name", err), nil + } + + schema, err := client.SchemaByVersion(ctx, subject, -1) // -1 for latest + if err != nil { + return b.handleError("get schema for subject", err), nil + } + return b.marshalResponse(schema) +} + +// handleSchemaSubjectCreate handles registering a new schema for a subject +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectCreate(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := request.RequireString("subject") + if err != nil { + return b.handleError("get subject name", err), nil + } + + schemaTypeStr, err := request.RequireString("schemaType") + if err != nil { + return b.handleError("get schema type", err), nil + } + + schema, err := request.RequireString("schema") + if err != nil { + return b.handleError("get schema object", err), nil + } + + // Parse schema type + var schemaType sr.SchemaType + err = schemaType.UnmarshalText([]byte(schemaTypeStr)) + if err != nil { + return b.handleError("unmarshal schema type", err), nil + } + + // Create schema + schemaObj := sr.Schema{ + Type: schemaType, + Schema: schema, + } + + result, err := client.CreateSchema(ctx, subject, schemaObj) + if err != nil { + return b.handleError("create schema", err), nil + } + return b.marshalResponse(result) +} + +// handleSchemaSubjectDelete handles deleting a schema subject +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectDelete(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := request.RequireString("subject") + if err != nil { + return b.handleError("get subject name", err), nil + } + + // Delete subject using correct API signature (soft delete by default) + versions, err := client.DeleteSubject(ctx, subject, sr.SoftDelete) + if err != nil { + return b.handleError("delete schema subject", err), nil + } + return b.marshalResponse(versions) +} + +// handleSchemaVersionsList handles listing all versions for a subject +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionsList(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := request.RequireString("subject") + if err != nil { + return b.handleError("get subject name", err), nil + } + + versions, err := client.SubjectVersions(ctx, subject) + if err != nil { + return b.handleError("list schema versions", err), nil + } + return b.marshalResponse(versions) +} + +// handleSchemaVersionGet handles getting a specific version of a schema +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionGet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := request.RequireString("subject") + if err != nil { + return b.handleError("get subject name", err), nil + } + + versionStr, err := request.RequireString("version") + if err != nil { + return b.handleError("get version", err), nil + } + + var version int + if versionStr == "latest" { + version = -1 + } else { + var parseErr error + version, parseErr = strconv.Atoi(versionStr) + if parseErr != nil { + return b.handleError("parse version number", parseErr), nil + } + } + + schema, err := client.SchemaByVersion(ctx, subject, version) + if err != nil { + return b.handleError("get schema version", err), nil + } + return b.marshalResponse(schema) +} + +// handleSchemaVersionDelete handles deleting a specific version of a schema +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionDelete(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject, err := request.RequireString("subject") + if err != nil { + return b.handleError("get subject name", err), nil + } + + versionStr, err := request.RequireString("version") + if err != nil { + return b.handleError("get version", err), nil + } + + version, err := strconv.Atoi(versionStr) + if err != nil { + return b.handleError("parse version number", err), nil + } + + // Delete schema version using correct API signature (soft delete by default) + err = client.DeleteSchema(ctx, subject, version, sr.SoftDelete) + if err != nil { + return b.handleError("delete schema version", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Schema version %d for subject %s deleted successfully", version, subject)), nil +} + +// handleSchemaCompatibilityGet handles getting compatibility setting +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilityGet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + subject := request.GetString("subject", "") // Optional for global compatibility + + var results []sr.CompatibilityResult + if subject != "" { + // Get compatibility for specific subject + results = client.Compatibility(ctx, subject) + } else { + // Get global compatibility + results = client.Compatibility(ctx) + } + + // Check for errors in results + for _, result := range results { + if result.Err != nil { + return b.handleError("get compatibility setting", result.Err), nil + } + } + + // Return the first result (there should only be one) + if len(results) > 0 { + return b.marshalResponse(map[string]string{"compatibility": results[0].Level.String()}) + } + + return mcp.NewToolResultError("No compatibility result returned"), nil +} + +// handleSchemaCompatibilitySet handles setting compatibility level +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilitySet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + compatibilityStr, err := request.RequireString("compatibility") + if err != nil { + return b.handleError("get compatibility level", err), nil + } + + subject := request.GetString("subject", "") // Optional for global compatibility + + // Parse compatibility level + var compatibility sr.CompatibilityLevel + switch strings.ToUpper(compatibilityStr) { + case "BACKWARD": + compatibility = sr.CompatBackward + case "FORWARD": + compatibility = sr.CompatForward + case "FULL": + compatibility = sr.CompatFull + case "NONE": + compatibility = sr.CompatNone + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid compatibility level: %s. Valid levels: BACKWARD, FORWARD, FULL, NONE", compatibilityStr)), nil + } + + // Create SetCompatibility request + setCompat := sr.SetCompatibility{ + Level: compatibility, + } + + var results []sr.CompatibilityResult + if subject != "" { + // Set compatibility for specific subject + results = client.SetCompatibility(ctx, setCompat, subject) + } else { + // Set global compatibility + results = client.SetCompatibility(ctx, setCompat) + } + + // Check for errors in results + for _, result := range results { + if result.Err != nil { + return b.handleError("set compatibility level", result.Err), nil + } + } + + return mcp.NewToolResultText(fmt.Sprintf("Compatibility level set to %s", compatibilityStr)), nil +} + +// handleSchemaTypesList handles listing supported schema types +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaTypesList(_ context.Context, _ *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + types := []string{"AVRO", "JSON", "PROTOBUF"} + return b.marshalResponse(types) +} diff --git a/pkg/mcp/builders/kafka/topics.go b/pkg/mcp/builders/kafka/topics.go new file mode 100644 index 0000000..7fbcbeb --- /dev/null +++ b/pkg/mcp/builders/kafka/topics.go @@ -0,0 +1,370 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kadm" +) + +// KafkaTopicsToolBuilder implements the ToolBuilder interface for Kafka Topics +// /nolint:revive +type KafkaTopicsToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewKafkaTopicsToolBuilder creates a new Kafka Topics tool builder instance +func NewKafkaTopicsToolBuilder() *KafkaTopicsToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_topics", + Version: "1.0.0", + Description: "Kafka Topics administration tools", + Category: "kafka_admin", + Tags: []string{"kafka", "topics", "admin"}, + } + + features := []string{ + "kafka-admin", + "all", + "all-kafka", + } + + return &KafkaTopicsToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka Topics tool list +func (b *KafkaTopicsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaTopicsTool() + handler := b.buildKafkaTopicsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaTopicsTool builds the Kafka Topics MCP tool definition +func (b *KafkaTopicsToolBuilder) buildKafkaTopicsTool() mcp.Tool { + resourceDesc := "Resource to operate on. Available resources:\n" + + "- topic: A single Kafka topic for operations on individual topics (create, get, delete)\n" + + "- topics: Collection of Kafka topics for bulk operations (list)" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all topics in the Kafka cluster, optionally including internal topics\n" + + "- get: Get detailed configuration for a specific topic\n" + + "- create: Create a new topic with specified partitions, replication factor, and optional configs\n" + + "- delete: Delete an existing topic\n" + + "- metadata: Get metadata for a specific topic\n" + + toolDesc := "Unified tool for managing Apache Kafka topics.\n" + + "This tool provides access to various Kafka topic operations, including creation, deletion, listing, and configuration retrieval.\n" + + "Kafka topics are the core abstraction for organizing and partitioning data streams. Topics:\n" + + "- Organize messages into categories for producers and consumers\n" + + "- Are divided into partitions for scalability and parallelism\n" + + "- Can be configured with replication factors for fault tolerance\n" + + "- Support various configuration options for retention, compression, and more\n\n" + + "Usage Examples:\n\n" + + "1. List all topics (excluding internal Kafka topics):\n" + + " resource: \"topics\"\n" + + " operation: \"list\"\n\n" + + "2. List all topics including internal ones:\n" + + " resource: \"topics\"\n" + + " operation: \"list\"\n" + + " includeInternal: true\n\n" + + "3. Create a new topic with default settings:\n" + + " resource: \"topic\"\n" + + " operation: \"create\"\n" + + " name: \"user-events\"\n" + + " partitions: 3\n" + + " replicationFactor: 2\n\n" + + "4. Create a topic with custom configuration:\n" + + " resource: \"topic\"\n" + + " operation: \"create\"\n" + + " name: \"log-aggregation\"\n" + + " partitions: 6\n" + + " replicationFactor: 3\n" + + " configs: {\n" + + " \"retention.ms\": \"604800000\",\n" + + " \"compression.type\": \"gzip\",\n" + + " \"cleanup.policy\": \"compact\"\n" + + " }\n\n" + + "5. Get detailed information about a topic:\n" + + " resource: \"topic\"\n" + + " operation: \"get\"\n" + + " name: \"user-events\"\n\n" + + "6. Get metadata for a topic:\n" + + " resource: \"topic\"\n" + + " operation: \"metadata\"\n" + + " name: \"user-events\"\n\n" + + "7. Delete a topic:\n" + + " resource: \"topic\"\n" + + " operation: \"delete\"\n" + + " name: \"old-topic\"\n\n" + + "This tool requires appropriate Kafka permissions for topic management." + + return mcp.NewTool("kafka_admin_topics", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("name", + mcp.Description("The name of the Kafka topic to operate on. "+ + "Required for 'get', 'create', 'delete', and 'metadata' operations on the 'topic' resource. "+ + "Topic names should follow Kafka naming conventions (alphanumeric, dots, underscores, and hyphens).")), + mcp.WithNumber("partitions", + mcp.Description("The number of partitions for the topic. Required for 'create' operation. "+ + "Partitions determine the parallelism and scalability of the topic. "+ + "More partitions allow more concurrent consumers and higher throughput.")), + mcp.WithNumber("replicationFactor", + mcp.Description("The replication factor for the topic. Required for 'create' operation. "+ + "Replication factor determines fault tolerance - it should be at least 2 for production use. "+ + "Cannot exceed the number of available brokers in the cluster.")), + mcp.WithObject("configs", + mcp.Description("Optional configuration parameters for the topic during 'create' operation. "+ + "Common configurations include:\n"+ + "- retention.ms: How long to retain messages (milliseconds)\n"+ + "- compression.type: Compression algorithm (none, gzip, snappy, lz4, zstd)\n"+ + "- cleanup.policy: Log cleanup policy (delete, compact, compact,delete)\n"+ + "- segment.ms: Time before a new log segment is rolled out\n"+ + "- max.message.bytes: Maximum size of a message batch")), + mcp.WithBoolean("includeInternal", + mcp.Description("Whether to include internal Kafka topics in the 'list' operation. "+ + "Internal topics are used by Kafka itself (e.g., __consumer_offsets, __transaction_state). "+ + "Default: false")), + ) +} + +// buildKafkaTopicsHandler builds the Kafka Topics handler function +func (b *KafkaTopicsToolBuilder) buildKafkaTopicsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return b.handleError("get resource", err), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Kafka admin client + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + admin, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Dispatch based on resource and operation + switch resource { + case "topics": + switch operation { + case "list": + return b.handleKafkaTopicsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topics': %s", operation)), nil + } + case "topic": + switch operation { + case "get": + return b.handleKafkaTopicGet(ctx, admin, request) + case "create": + return b.handleKafkaTopicCreate(ctx, admin, request) + case "delete": + return b.handleKafkaTopicDelete(ctx, admin, request) + case "metadata": + return b.handleKafkaTopicMetadata(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topic': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: topics, topic", resource)), nil + } + } +} + +// Utility functions + +// handleError provides unified error handling +func (b *KafkaTopicsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *KafkaTopicsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleKafkaTopicsList handles listing all topics +func (b *KafkaTopicsToolBuilder) handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + includeInternal := request.GetBool("includeInternal", false) + + topics, err := admin.ListTopics(ctx) + if err != nil { + return b.handleError("list Kafka topics", err), nil + } + + // Filter out internal topics if not requested + if !includeInternal { + filteredTopics := make(kadm.TopicDetails) + for name, details := range topics { + if !strings.HasPrefix(name, "__") { + filteredTopics[name] = details + } + } + topics = filteredTopics + } + + return b.marshalResponse(topics) +} + +// handleKafkaTopicGet handles getting detailed information about a specific topic +func (b *KafkaTopicsToolBuilder) handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + topicName, err := request.RequireString("name") + if err != nil { + return b.handleError("get topic name", err), nil + } + + topics, err := admin.ListTopics(ctx, topicName) + if err != nil { + return b.handleError("get Kafka topic", err), nil + } + + return b.marshalResponse(topics) +} + +// handleKafkaTopicCreate handles creating a new topic +func (b *KafkaTopicsToolBuilder) handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + topicName, err := request.RequireString("name") + if err != nil { + return b.handleError("get topic name", err), nil + } + + partitionsNum, err := request.RequireInt("partitions") + if err != nil { + return b.handleError("get partitions", err), nil + } + + replicationFactorNum, err := request.RequireInt("replicationFactor") + if err != nil { + return b.handleError("get replication factor", err), nil + } + + ///nolint:gosec + partitions := int32(partitionsNum) + ///nolint:gosec + replicationFactor := int16(replicationFactorNum) + + // Parse optional configs + var configs map[string]*string + arguments := request.GetArguments() + if configsParam, exists := arguments["configs"]; exists { + if configsMap, ok := configsParam.(map[string]interface{}); ok { + configs = make(map[string]*string) + for key, value := range configsMap { + if strValue, ok := value.(string); ok { + configs[key] = &strValue + } else { + // Convert non-string values to strings + strValue := fmt.Sprintf("%v", value) + configs[key] = &strValue + } + } + } + } + + // Create topic using the correct CreateTopics API + results, err := admin.CreateTopics(ctx, partitions, replicationFactor, configs, topicName) + if err != nil { + return b.handleError("create Kafka topic", err), nil + } + + return b.marshalResponse(results) +} + +// handleKafkaTopicDelete handles deleting a topic +func (b *KafkaTopicsToolBuilder) handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + topicName, err := request.RequireString("name") + if err != nil { + return b.handleError("get topic name", err), nil + } + + results, err := admin.DeleteTopics(ctx, topicName) + if err != nil { + return b.handleError("delete Kafka topic", err), nil + } + + return b.marshalResponse(results) +} + +// handleKafkaTopicMetadata handles getting metadata for a topic +func (b *KafkaTopicsToolBuilder) handleKafkaTopicMetadata(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + topicName, err := request.RequireString("name") + if err != nil { + return b.handleError("get topic name", err), nil + } + + metadata, err := admin.Metadata(ctx, topicName) + if err != nil { + return b.handleError("get Kafka topic metadata", err), nil + } + + return b.marshalResponse(metadata) +} diff --git a/pkg/mcp/builders/pulsar/brokers.go b/pkg/mcp/builders/pulsar/brokers.go new file mode 100644 index 0000000..0ab60a5 --- /dev/null +++ b/pkg/mcp/builders/pulsar/brokers.go @@ -0,0 +1,376 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminBrokersToolBuilder implements the ToolBuilder interface for Pulsar admin brokers +// /nolint:revive +type PulsarAdminBrokersToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminBrokersToolBuilder creates a new Pulsar admin brokers tool builder instance +func NewPulsarAdminBrokersToolBuilder() *PulsarAdminBrokersToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_brokers", + Version: "1.0.0", + Description: "Pulsar admin brokers management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "brokers"}, + } + + features := []string{ + "pulsar-admin-brokers", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminBrokersToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin brokers tool list +func (b *PulsarAdminBrokersToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildPulsarAdminBrokersTool() + handler := b.buildPulsarAdminBrokersHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildPulsarAdminBrokersTool builds the Pulsar admin brokers MCP tool definition +func (b *PulsarAdminBrokersToolBuilder) buildPulsarAdminBrokersTool() mcp.Tool { + return mcp.NewTool("pulsar_admin_brokers", + mcp.WithDescription("Unified tool for managing Apache Pulsar broker resources. This tool integrates multiple broker management functions, including:\n"+ + "1. List active brokers in a cluster (resource=brokers, operation=list)\n"+ + "2. Check broker health status (resource=health, operation=get)\n"+ + "3. Manage broker configurations (resource=config, operation=get/update/delete)\n"+ + "4. View namespaces owned by a broker (resource=namespaces, operation=get)\n\n"+ + "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n"+ + "Example: {\"resource\": \"config\", \"operation\": \"get\", \"configType\": \"dynamic\"} retrieves all dynamic configuration names.\n"+ + "This tool requires Pulsar super-user permissions."), + mcp.WithString("resource", mcp.Required(), + mcp.Description("Type of resource to access, available options:\n"+ + "- brokers: Manage broker listings\n"+ + "- health: Check broker health status\n"+ + "- config: Manage broker configurations\n"+ + "- namespaces: Manage namespaces owned by a broker"), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description("Operation to perform, available options:\n"+ + "- list: List resources (used with brokers)\n"+ + "- get: Retrieve resource information (used with health, config, namespaces)\n"+ + "- update: Update a resource (used with config)\n"+ + "- delete: Delete a resource (used with config)"), + ), + mcp.WithString("clusterName", + mcp.Description("Pulsar cluster name, required for these operations:\n"+ + "- When resource=brokers, operation=list\n"+ + "- When resource=namespaces, operation=get"), + ), + mcp.WithString("brokerUrl", + mcp.Description("Broker URL, such as '127.0.0.1:8080', required for these operations:\n"+ + "- When resource=namespaces, operation=get"), + ), + mcp.WithString("configType", + mcp.Description("Configuration type, required when resource=config, operation=get, available options:\n"+ + "- dynamic: Get list of dynamically modifiable configuration names\n"+ + "- runtime: Get all runtime configurations (including static and dynamic configs)\n"+ + "- internal: Get internal configuration information\n"+ + "- all_dynamic: Get all dynamic configurations and their current values"), + ), + mcp.WithString("configName", + mcp.Description("Configuration parameter name, required for these operations:\n"+ + "- When resource=config, operation=update\n"+ + "- When resource=config, operation=delete"), + ), + mcp.WithString("configValue", + mcp.Description("Configuration parameter value, required for these operations:\n"+ + "- When resource=config, operation=update"), + ), + ) +} + +// buildPulsarAdminBrokersHandler builds the Pulsar admin brokers handler function +func (b *PulsarAdminBrokersToolBuilder) buildPulsarAdminBrokersHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Get admin client + client, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError("Missing required resource parameter. " + + "Please specify one of: brokers, health, config, namespaces."), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError("Missing required operation parameter. " + + "Please specify one of: list, get, update, delete based on the resource type."), nil + } + + // Validate if the parameter combination is valid + validCombination, errMsg := b.validateResourceOperation(resource, operation) + if !validCombination { + return mcp.NewToolResultError(errMsg), nil + } + + // Process request based on resource type + switch resource { + case "brokers": + return b.handleBrokersResource(client, operation, request) + case "health": + return b.handleHealthResource(client, operation, request) + case "config": + // Check write operation permissions + if (operation == "update" || operation == "delete") && readOnly { + return mcp.NewToolResultError("Configuration update/delete operations not allowed in read-only mode. " + + "Please contact your administrator if you need to modify broker configurations."), nil + } + return b.handleConfigResource(client, operation, request) + case "namespaces": + return b.handleNamespacesResource(client, operation, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: brokers, health, config, namespaces.", resource)), nil + } + } +} + +// Helper functions + +// validateResourceOperation validates if the resource and operation combination is valid +func (b *PulsarAdminBrokersToolBuilder) validateResourceOperation(resource, operation string) (bool, string) { + validCombinations := map[string][]string{ + "brokers": {"list"}, + "health": {"get"}, + "config": {"get", "update", "delete"}, + "namespaces": {"get"}, + } + + if operations, ok := validCombinations[resource]; ok { + for _, op := range operations { + if op == operation { + return true, "" + } + } + return false, fmt.Sprintf("Invalid operation '%s' for resource '%s'. Valid operations are: %v", + operation, resource, validCombinations[resource]) + } + + return false, fmt.Sprintf("Invalid resource '%s'. Valid resources are: brokers, health, config, namespaces", resource) +} + +// handleBrokersResource handles brokers resource +func (b *PulsarAdminBrokersToolBuilder) handleBrokersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + clusterName, err := request.RequireString("clusterName") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'clusterName'. " + + "Please provide the name of the Pulsar cluster to list brokers for."), nil + } + + brokers, err := client.Brokers().GetActiveBrokers(clusterName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get active brokers: %v. "+ + "Please verify the cluster name and ensure the Pulsar service is running.", err)), nil + } + + brokersJSON, err := json.Marshal(brokers) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers list: %v", err)), nil + } + + return mcp.NewToolResultText(string(brokersJSON)), nil + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for brokers resource. "+ + "The only supported operation is 'list'.", operation)), nil + } +} + +// handleHealthResource handles health resource +func (b *PulsarAdminBrokersToolBuilder) handleHealthResource(client cmdutils.Client, operation string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + //nolint:staticcheck + err := client.Brokers().HealthCheck() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Broker health check failed: %v. "+ + "The broker might be down or experiencing issues.", err)), nil + } + return mcp.NewToolResultText("ok"), nil + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for health resource. "+ + "The only supported operation is 'get'.", operation)), nil + } +} + +// handleConfigResource handles config resource +func (b *PulsarAdminBrokersToolBuilder) handleConfigResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + configType, err := request.RequireString("configType") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'configType'. " + + "Please specify one of: dynamic, runtime, internal, all_dynamic."), nil + } + + var result interface{} + var fetchErr error + + switch configType { + case "dynamic": + result, fetchErr = client.Brokers().GetDynamicConfigurationNames() + case "runtime": + result, fetchErr = client.Brokers().GetRuntimeConfigurations() + case "internal": + result, fetchErr = client.Brokers().GetInternalConfigurationData() + case "all_dynamic": + result, fetchErr = client.Brokers().GetAllDynamicConfigurations() + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid config type: '%s'. "+ + "Valid types are: dynamic, runtime, internal, all_dynamic.", configType)), nil + } + + if fetchErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get %s configuration: %v", configType, fetchErr)), nil + } + + resultJSON, err := json.Marshal(result) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize configuration: %v", err)), nil + } + + return mcp.NewToolResultText(string(resultJSON)), nil + + case "update": + configName, err := request.RequireString("configName") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'configName'. " + + "Please provide the name of the configuration parameter to update."), nil + } + + configValue, err := request.RequireString("configValue") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'configValue'. " + + "Please provide the new value for the configuration parameter."), nil + } + + err = client.Brokers().UpdateDynamicConfiguration(configName, configValue) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update configuration: %v. "+ + "Please verify the configuration name is valid and the value is of the correct type.", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' updated successfully to '%s'", + configName, configValue)), nil + + case "delete": + configName, err := request.RequireString("configName") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'configName'. " + + "Please provide the name of the configuration parameter to delete."), nil + } + + err = client.Brokers().DeleteDynamicConfiguration(configName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete configuration: %v. "+ + "Please verify the configuration name is valid and exists.", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' deleted successfully", configName)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for config resource. "+ + "Supported operations are: get, update, delete.", operation)), nil + } +} + +// handleNamespacesResource handles namespaces resource +func (b *PulsarAdminBrokersToolBuilder) handleNamespacesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + clusterName, err := request.RequireString("clusterName") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'clusterName'. " + + "Please provide the name of the Pulsar cluster."), nil + } + + brokerURL, err := request.RequireString("brokerUrl") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'brokerUrl'. " + + "Please provide the URL of the broker (e.g., '127.0.0.1:8080')."), nil + } + + namespaces, err := client.Brokers().GetOwnedNamespaces(clusterName, brokerURL) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get owned namespaces: %v. "+ + "Please verify the cluster name and broker URL are correct.", err)), nil + } + + namespacesJSON, err := json.Marshal(namespaces) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespaces: %v", err)), nil + } + + return mcp.NewToolResultText(string(namespacesJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for namespaces resource. "+ + "The only supported operation is 'get'.", operation)), nil + } +} diff --git a/pkg/mcp/builders/pulsar/brokers_stats.go b/pkg/mcp/builders/pulsar/brokers_stats.go new file mode 100644 index 0000000..8ee1b9e --- /dev/null +++ b/pkg/mcp/builders/pulsar/brokers_stats.go @@ -0,0 +1,220 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminBrokerStatsToolBuilder implements the ToolBuilder interface for Pulsar Broker Statistics +// /nolint:revive +type PulsarAdminBrokerStatsToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminBrokerStatsToolBuilder creates a new Pulsar Admin Broker Stats tool builder instance +func NewPulsarAdminBrokerStatsToolBuilder() *PulsarAdminBrokerStatsToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_broker_stats", + Version: "1.0.0", + Description: "Pulsar Broker Statistics administration tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "broker", "stats", "admin", "monitoring"}, + } + + features := []string{ + "pulsar-admin-brokers-status", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminBrokerStatsToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Broker Stats tool list +func (b *PulsarAdminBrokerStatsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildBrokerStatsTool() + handler := b.buildBrokerStatsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildBrokerStatsTool builds the Pulsar Admin Broker Stats MCP tool definition +func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsTool() mcp.Tool { + resourceDesc := "Type of broker stats resource to access, available options:\n" + + "- monitoring_metrics: Metrics for the broker's monitoring system\n" + + "- mbeans: JVM MBeans statistics\n" + + "- topics: Statistics about all topics managed by the broker\n" + + "- allocator_stats: Memory allocator statistics (requires allocator_name parameter)\n" + + "- load_report: Broker load information" + + toolDesc := "Unified tool for retrieving Apache Pulsar broker statistics.\n" + + "This tool provides access to various broker stats resources, including:\n" + + "1. Monitoring metrics (resource=monitoring_metrics): Metrics for the broker's monitoring system\n" + + "2. MBean stats (resource=mbeans): JVM MBeans statistics\n" + + "3. Topics stats (resource=topics): Statistics about all topics managed by the broker\n" + + "4. Allocator stats (resource=allocator_stats): Memory allocator statistics for specific allocator\n" + + "5. Load report (resource=load_report): Broker load information, sometimes the load report is not available, so suggest to use other resources to get the broker metrics\n\n" + + "Example: {\"resource\": \"monitoring_metrics\"} retrieves all monitoring metrics\n" + + "Example: {\"resource\": \"allocator_stats\", \"allocator_name\": \"default\"} retrieves stats for the default allocator\n" + + "This tool requires Pulsar super-user permissions." + + return mcp.NewTool("pulsar_admin_broker_stats", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("allocator_name", + mcp.Description("The name of the allocator to get statistics for. Required only when resource=allocator_stats"), + ), + ) +} + +// buildBrokerStatsHandler builds the Pulsar Admin Broker Stats handler function +func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsHandler(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar admin client + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + client, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Get required resource parameter + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'resource'. " + + "Please specify one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report."), nil + } + + // Process request based on resource type + switch resource { + case "monitoring_metrics": + return b.handleMonitoringMetrics(client) + case "mbeans": + return b.handleMBeans(client) + case "topics": + return b.handleTopics(client) + case "allocator_stats": + allocatorName, err := request.RequireString("allocator_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'allocator_name' for allocator_stats resource. " + + "Please provide the name of the allocator to get statistics for."), nil + } + return b.handleAllocatorStats(client, allocatorName) + case "load_report": + return b.handleLoadReport(client) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.", resource)), nil + } + } +} + +// Utility functions + +// handleError provides unified error handling +func (b *PulsarAdminBrokerStatsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminBrokerStatsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Specific operation handler functions + +// handleMonitoringMetrics handles retrieving monitoring metrics +func (b *PulsarAdminBrokerStatsToolBuilder) handleMonitoringMetrics(client cmdutils.Client) (*mcp.CallToolResult, error) { + stats, err := client.BrokerStats().GetMetrics() + if err != nil { + return b.handleError("get monitoring metrics", err), nil + } + return b.marshalResponse(stats) +} + +// handleMBeans handles retrieving MBeans statistics +func (b *PulsarAdminBrokerStatsToolBuilder) handleMBeans(client cmdutils.Client) (*mcp.CallToolResult, error) { + stats, err := client.BrokerStats().GetMBeans() + if err != nil { + return b.handleError("get MBeans", err), nil + } + return b.marshalResponse(stats) +} + +// handleTopics handles retrieving topics statistics +func (b *PulsarAdminBrokerStatsToolBuilder) handleTopics(client cmdutils.Client) (*mcp.CallToolResult, error) { + stats, err := client.BrokerStats().GetTopics() + if err != nil { + return b.handleError("get topics stats", err), nil + } + return b.marshalResponse(stats) +} + +// handleAllocatorStats handles retrieving allocator statistics +func (b *PulsarAdminBrokerStatsToolBuilder) handleAllocatorStats(client cmdutils.Client, allocatorName string) (*mcp.CallToolResult, error) { + stats, err := client.BrokerStats().GetAllocatorStats(allocatorName) + if err != nil { + return b.handleError("get allocator stats", err), nil + } + return b.marshalResponse(stats) +} + +// handleLoadReport handles retrieving load report +func (b *PulsarAdminBrokerStatsToolBuilder) handleLoadReport(client cmdutils.Client) (*mcp.CallToolResult, error) { + stats, err := client.BrokerStats().GetLoadReport() + if err != nil { + return b.handleError("get load report", err), nil + } + return b.marshalResponse(stats) +} diff --git a/pkg/mcp/builders/pulsar/cluster.go b/pkg/mcp/builders/pulsar/cluster.go new file mode 100644 index 0000000..cf53a92 --- /dev/null +++ b/pkg/mcp/builders/pulsar/cluster.go @@ -0,0 +1,561 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminClusterToolBuilder implements the ToolBuilder interface for Pulsar Admin Cluster tools +// It provides functionality to build Pulsar cluster management tools +// /nolint:revive +type PulsarAdminClusterToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminClusterToolBuilder creates a new Pulsar Admin Cluster tool builder instance +func NewPulsarAdminClusterToolBuilder() *PulsarAdminClusterToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_cluster", + Version: "1.0.0", + Description: "Pulsar Admin cluster management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "cluster", "admin"}, + } + + features := []string{ + "pulsar-admin-clusters", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminClusterToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Cluster tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminClusterToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildClusterTool() + handler := b.buildClusterHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildClusterTool builds the Pulsar Admin Cluster MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminClusterToolBuilder) buildClusterTool() mcp.Tool { + toolDesc := "Unified tool for managing Apache Pulsar clusters.\n" + + "This tool provides access to various cluster resources and operations, including:\n" + + "1. Manage clusters (resource=cluster): List, get, create, update, delete clusters\n" + + "2. Manage peer clusters (resource=peer_clusters): Get, update peer clusters\n" + + "3. Manage failure domains (resource=failure_domain): List, get, create, update, delete failure domains\n\n" + + "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n\n" + + "Examples:\n" + + "- {\"resource\": \"cluster\", \"operation\": \"list\"} lists all clusters\n" + + "- {\"resource\": \"cluster\", \"operation\": \"get\", \"cluster_name\": \"my-cluster\"} gets cluster configuration\n" + + "- {\"resource\": \"failure_domain\", \"operation\": \"list\", \"cluster_name\": \"my-cluster\"} lists failure domains\n" + + "This tool requires Pulsar super-user permissions." + + resourceDesc := "Type of cluster resource to access, available options:\n" + + "- cluster: Pulsar cluster configuration\n" + + "- peer_clusters: Peer clusters for geo-replication\n" + + "- failure_domain: Failure domains for fault tolerance" + + operationDesc := "Operation to perform, available options (depend on resource):\n" + + "- list: List resources (used with cluster, failure_domain)\n" + + "- get: Retrieve resource information (used with cluster, peer_clusters, failure_domain)\n" + + "- create: Create a new resource (used with cluster, failure_domain)\n" + + "- update: Update an existing resource (used with cluster, peer_clusters, failure_domain)\n" + + "- delete: Delete a resource (used with cluster, failure_domain)" + + return mcp.NewTool("pulsar_admin_cluster", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("cluster_name", + mcp.Description("Name of the Pulsar cluster, required for all operations except 'list' with resource=cluster"), + ), + mcp.WithString("domain_name", + mcp.Description("Name of the failure domain, required when resource=failure_domain and operation is get, create, update, or delete"), + ), + mcp.WithString("service_url", + mcp.Description("Pulsar cluster web service URL (e.g., http://example.pulsar.io:8080), used when resource=cluster and operation is create or update"), + ), + mcp.WithString("service_url_tls", + mcp.Description("Pulsar cluster TLS secured web service URL (e.g., https://example.pulsar.io:8443), used when resource=cluster and operation is create or update"), + ), + mcp.WithString("broker_service_url", + mcp.Description("Pulsar cluster broker service URL (e.g., pulsar://example.pulsar.io:6650), used when resource=cluster and operation is create or update"), + ), + mcp.WithString("broker_service_url_tls", + mcp.Description("Pulsar cluster TLS secured broker service URL (e.g., pulsar+ssl://example.pulsar.io:6651), used when resource=cluster and operation is create or update"), + ), + mcp.WithArray("peer_cluster_names", + mcp.Description("List of clusters to be registered as peer-clusters, used when:\n"+ + "- resource=cluster and operation is create or update\n"+ + "- resource=peer_clusters and operation is update"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "peer cluster name", + }, + ), + ), + mcp.WithArray("brokers", + mcp.Description("List of broker names to include in a failure domain, required when resource=failure_domain and operation is create or update"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "broker", + }, + ), + ), + ) +} + +// buildClusterHandler builds the Pulsar Admin Cluster handler function +// Migrated from the original handler logic +func (b *PulsarAdminClusterToolBuilder) buildClusterHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError("Missing required resource parameter. " + + "Please specify one of: cluster, peer_clusters, failure_domain."), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError("Missing required operation parameter. " + + "Please specify one of: list, get, create, update, delete based on the resource type."), nil + } + + // Validate if the parameter combination is valid + validCombination, errMsg := b.validateClusterResourceOperation(resource, operation) + if !validCombination { + return mcp.NewToolResultError(errMsg), nil + } + + // Check write operation permissions + if (operation == "create" || operation == "update" || operation == "delete") && readOnly { + return mcp.NewToolResultError("Create/update/delete operations not allowed in read-only mode. " + + "Please contact your administrator if you need to modify cluster resources."), nil + } + + // Process request based on resource type + switch resource { + case "cluster": + return b.handleClusterResource(client, operation, request) + case "peer_clusters": + return b.handlePeerClustersResource(client, operation, request) + case "failure_domain": + return b.handleFailureDomainResource(client, operation, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: cluster, peer_clusters, failure_domain.", resource)), nil + } + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminClusterToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminClusterToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Validate if the resource and operation combination is valid +func (b *PulsarAdminClusterToolBuilder) validateClusterResourceOperation(resource, operation string) (bool, string) { + validCombinations := map[string][]string{ + "cluster": {"list", "get", "create", "update", "delete"}, + "peer_clusters": {"get", "update"}, + "failure_domain": {"list", "get", "create", "update", "delete"}, + } + + if operations, ok := validCombinations[resource]; ok { + for _, op := range operations { + if op == operation { + return true, "" + } + } + return false, fmt.Sprintf("Invalid operation '%s' for resource '%s'. Valid operations are: %v", + operation, resource, validCombinations[resource]) + } + + return false, fmt.Sprintf("Invalid resource '%s'. Valid resources are: cluster, peer_clusters, failure_domain", resource) +} + +// Handle cluster resource operations +func (b *PulsarAdminClusterToolBuilder) handleClusterResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + return b.handleClusterList(client) + case "get": + clusterName, err := request.RequireString("cluster_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to get information for."), nil + } + return b.getClusterData(client, clusterName) + case "create": + return b.createCluster(client, request) + case "update": + return b.updateCluster(client, request) + case "delete": + clusterName, err := request.RequireString("cluster_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to delete."), nil + } + return b.deleteCluster(client, clusterName) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported cluster operation: %s", operation)), nil + } +} + +// Handle peer clusters resource operations +func (b *PulsarAdminClusterToolBuilder) handlePeerClustersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := request.RequireString("cluster_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster for peer clusters operation."), nil + } + + switch operation { + case "get": + return b.getPeerClusters(client, clusterName) + case "update": + return b.updatePeerClusters(client, clusterName, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported peer_clusters operation: %s", operation)), nil + } +} + +// Handle failure domain resource operations +func (b *PulsarAdminClusterToolBuilder) handleFailureDomainResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := request.RequireString("cluster_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster for failure domain operation."), nil + } + + switch operation { + case "list": + return b.listFailureDomains(client, clusterName) + case "get": + domainName, err := request.RequireString("domain_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain."), nil + } + return b.getFailureDomain(client, clusterName, domainName) + case "create": + return b.createFailureDomain(client, clusterName, request) + case "update": + return b.updateFailureDomain(client, clusterName, request) + case "delete": + domainName, err := request.RequireString("domain_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain to delete."), nil + } + return b.deleteFailureDomain(client, clusterName, domainName) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported failure_domain operation: %s", operation)), nil + } +} + +func (b *PulsarAdminClusterToolBuilder) handleClusterList(client cmdutils.Client) (*mcp.CallToolResult, error) { + // Get cluster list + clusters, err := client.Clusters().List() + if err != nil { + return b.handleError("get cluster list", err), nil + } + + return b.marshalResponse(clusters) +} + +func (b *PulsarAdminClusterToolBuilder) getClusterData(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + // Get cluster data + clusterData, err := client.Clusters().Get(clusterName) + if err != nil { + return b.handleError("get cluster data", err), nil + } + + return b.marshalResponse(clusterData) +} + +func (b *PulsarAdminClusterToolBuilder) createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := request.RequireString("cluster_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to create."), nil + } + + // Initialize cluster data + clusterData := utils.ClusterData{ + Name: clusterName, + } + + // Set optional parameters if provided + if serviceURL := request.GetString("service_url", ""); serviceURL != "" { + clusterData.ServiceURL = serviceURL + } + if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { + clusterData.ServiceURLTls = serviceURLTls + } + if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { + clusterData.BrokerServiceURL = brokerServiceURL + } + if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { + clusterData.BrokerServiceURLTls = brokerServiceURLTls + } + if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { + clusterData.PeerClusterNames = peerClusters + } + + // Create cluster + err = client.Clusters().Create(clusterData) + if err != nil { + return b.handleError("create cluster", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Cluster %s created successfully", clusterName)), nil +} + +func (b *PulsarAdminClusterToolBuilder) updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusterName, err := request.RequireString("cluster_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + + "Please provide the name of the cluster to update."), nil + } + + // Initialize cluster data + clusterData := utils.ClusterData{ + Name: clusterName, + } + + // Set optional parameters if provided + if serviceURL := request.GetString("service_url", ""); serviceURL != "" { + clusterData.ServiceURL = serviceURL + } + if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { + clusterData.ServiceURLTls = serviceURLTls + } + if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { + clusterData.BrokerServiceURL = brokerServiceURL + } + if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { + clusterData.BrokerServiceURLTls = brokerServiceURLTls + } + if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { + clusterData.PeerClusterNames = peerClusters + } + + // Update cluster + err = client.Clusters().Update(clusterData) + if err != nil { + return b.handleError("update cluster", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Cluster %s updated successfully", clusterName)), nil +} + +func (b *PulsarAdminClusterToolBuilder) deleteCluster(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + // Delete cluster + err := client.Clusters().Delete(clusterName) + if err != nil { + return b.handleError("delete cluster", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Cluster %s deleted successfully", clusterName)), nil +} + +func (b *PulsarAdminClusterToolBuilder) getPeerClusters(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + // Get peer clusters + peerClusters, err := client.Clusters().GetPeerClusters(clusterName) + if err != nil { + return b.handleError("get peer clusters", err), nil + } + + return b.marshalResponse(peerClusters) +} + +func (b *PulsarAdminClusterToolBuilder) updatePeerClusters(client cmdutils.Client, clusterName string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + peerClusters, err := request.RequireStringSlice("peer_cluster_names") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'peer_cluster_names'. " + + "Please provide an array of peer cluster names to set."), nil + } + + // Update peer clusters + err = client.Clusters().UpdatePeerClusters(clusterName, peerClusters) + if err != nil { + return b.handleError("update peer clusters", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Peer clusters for %s updated successfully", clusterName)), nil +} + +func (b *PulsarAdminClusterToolBuilder) listFailureDomains(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { + // Get failure domains list + failureDomains, err := client.Clusters().ListFailureDomains(clusterName) + if err != nil { + return b.handleError("list failure domains", err), nil + } + + return b.marshalResponse(failureDomains) +} + +func (b *PulsarAdminClusterToolBuilder) getFailureDomain(client cmdutils.Client, clusterName, domainName string) (*mcp.CallToolResult, error) { + // Get failure domain + failureDomain, err := client.Clusters().GetFailureDomain(clusterName, domainName) + if err != nil { + return b.handleError("get failure domain", err), nil + } + + return b.marshalResponse(failureDomain) +} + +func (b *PulsarAdminClusterToolBuilder) createFailureDomain(client cmdutils.Client, clusterName string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + domainName, err := request.RequireString("domain_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain to create."), nil + } + + brokers, err := request.RequireStringSlice("brokers") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'brokers'. " + + "Please provide an array of broker names to include in this failure domain."), nil + } + + // Create failure domain data + failureDomainData := utils.FailureDomainData{ + ClusterName: clusterName, + DomainName: domainName, + BrokerList: brokers, + } + + // Create failure domain + err = client.Clusters().CreateFailureDomain(failureDomainData) + if err != nil { + return b.handleError("create failure domain", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Failure domain %s created successfully in cluster %s", domainName, clusterName)), nil +} + +func (b *PulsarAdminClusterToolBuilder) updateFailureDomain(client cmdutils.Client, clusterName string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + domainName, err := request.RequireString("domain_name") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + + "Please provide the name of the failure domain to update."), nil + } + + brokers, err := request.RequireStringSlice("brokers") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'brokers'. " + + "Please provide an array of broker names to include in this failure domain."), nil + } + + // Create failure domain data + failureDomainData := utils.FailureDomainData{ + ClusterName: clusterName, + DomainName: domainName, + BrokerList: brokers, + } + + // Update failure domain + err = client.Clusters().UpdateFailureDomain(failureDomainData) + if err != nil { + return b.handleError("update failure domain", err), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Failure domain %s updated successfully in cluster %s", domainName, clusterName)), nil +} + +func (b *PulsarAdminClusterToolBuilder) deleteFailureDomain(client cmdutils.Client, clusterName, domainName string) (*mcp.CallToolResult, error) { + // Create failure domain data for deletion + failureDomainData := utils.FailureDomainData{ + ClusterName: clusterName, + DomainName: domainName, + } + + // Delete failure domain + err := client.Clusters().DeleteFailureDomain(failureDomainData) + if err != nil { + return b.handleError("delete failure domain", err), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Failure domain %s deleted successfully from cluster %s", domainName, clusterName)), nil +} diff --git a/pkg/mcp/builders/pulsar/consume.go b/pkg/mcp/builders/pulsar/consume.go new file mode 100644 index 0000000..5cff2d2 --- /dev/null +++ b/pkg/mcp/builders/pulsar/consume.go @@ -0,0 +1,323 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarClientConsumeToolBuilder implements the ToolBuilder interface for Pulsar Client Consumer tools +// It provides functionality to build Pulsar message consumption tools +// /nolint:revive +type PulsarClientConsumeToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarClientConsumeToolBuilder creates a new Pulsar Client Consumer tool builder instance +func NewPulsarClientConsumeToolBuilder() *PulsarClientConsumeToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_client_consume", + Version: "1.0.0", + Description: "Pulsar Client message consumption tools", + Category: "pulsar_client", + Tags: []string{"pulsar", "consume", "client", "messaging"}, + } + + features := []string{ + "pulsar-client", + "all", + "all-pulsar", + } + + return &PulsarClientConsumeToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Client Consumer tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarClientConsumeToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildConsumeTool() + handler := b.buildConsumeHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildConsumeTool builds the Pulsar Client Consumer MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarClientConsumeToolBuilder) buildConsumeTool() mcp.Tool { + toolDesc := "Consume messages from a Pulsar topic. " + + "This tool allows you to consume messages from a specified Pulsar topic with various options " + + "to control the subscription behavior, message processing, and display format. " + + "Pulsar supports multiple subscription types (Exclusive, Shared, Failover, Key_Shared) and modes " + + "(Durable, Non-Durable) to accommodate different messaging patterns. " + + "The tool provides comprehensive control over consumption parameters including subscription position, " + + "timeout settings, and message display options. " + + "Do not use this tool for Kafka protocol operations. Use 'kafka_client_consume' instead." + + return mcp.NewTool("pulsar_client_consume", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name to consume from (format: [persistent|non-persistent]://tenant/namespace/topic). "+ + "For partitioned topics, you can consume from all partitions by specifying the base topic name "+ + "or from a specific partition by appending -partition-N to the topic name."), + ), + mcp.WithString("subscription-name", mcp.Required(), + mcp.Description("The subscription name for this consumer. "+ + "A subscription represents a named cursor for tracking message consumption progress. "+ + "Multiple consumers can share the same subscription name to form a consumer group."), + ), + mcp.WithString("subscription-type", + mcp.Description("Subscription type controlling message distribution among consumers:\\n"+ + "- exclusive: Only one consumer can consume from the subscription at a time\\n"+ + "- shared: Messages are distributed across all consumers in a round-robin fashion\\n"+ + "- failover: Only one active consumer, others act as backups\\n"+ + "- key_shared: Messages with the same key are delivered to the same consumer (default: exclusive)"), + ), + mcp.WithString("subscription-mode", + mcp.Description("Subscription durability mode:\\n"+ + "- durable: Subscription persists even when all consumers disconnect\\n"+ + "- non-durable: Subscription is deleted when all consumers disconnect (default: durable)"), + ), + mcp.WithString("initial-position", + mcp.Description("Initial cursor position for new subscriptions:\\n"+ + "- latest: Start consuming from the latest (most recent) message\\n"+ + "- earliest: Start consuming from the earliest (oldest available) message (default: latest)"), + ), + mcp.WithNumber("num-messages", + mcp.Description("Maximum number of messages to consume in this session. "+ + "Set to 0 for unlimited consumption until timeout. (default: 10)"), + ), + mcp.WithNumber("timeout", + mcp.Description("Maximum time to wait for messages in seconds. "+ + "The consumer will stop after this timeout even if fewer messages were received. (default: 30)"), + ), + mcp.WithBoolean("show-properties", + mcp.Description("Include message properties in the output. "+ + "Message properties are key-value pairs attached to messages for metadata purposes. (default: false)"), + ), + mcp.WithBoolean("hide-payload", + mcp.Description("Exclude message payload from the output. "+ + "Useful when you only need message metadata or are dealing with large payloads. (default: false)"), + ), + ) +} + +// buildConsumeHandler builds the Pulsar Client Consumer handler function +// Migrated from the original handler logic +func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract required parameters with validation + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + subscriptionName, err := request.RequireString("subscription-name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + // Set default values and extract optional parameters + subscriptionType := request.GetString("subscription-type", "exclusive") + subscriptionMode := request.GetString("subscription-mode", "durable") + initialPosition := request.GetString("initial-position", "latest") + numMessages := int(request.GetFloat("num-messages", 10)) + timeout := int(request.GetFloat("timeout", 30)) + showProperties := request.GetBool("show-properties", false) + hidePayload := request.GetBool("hide-payload", false) + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Setup client + client, err := session.GetPulsarClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + } + defer client.Close() + + // Prepare consumer options + consumerOpts := pulsar.ConsumerOptions{ + Name: "snmcp-consumer", + Topic: topic, + SubscriptionName: subscriptionName, + } + + // Set subscription type + switch strings.ToLower(subscriptionType) { + case "exclusive": + consumerOpts.Type = pulsar.Exclusive + case "shared": + consumerOpts.Type = pulsar.Shared + case "failover": + consumerOpts.Type = pulsar.Failover + case "key_shared": + consumerOpts.Type = pulsar.KeyShared + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription type: %s. Valid types: exclusive, shared, failover, key_shared", subscriptionType)), nil + } + + // Set subscription mode + switch strings.ToLower(subscriptionMode) { + case "durable": + consumerOpts.SubscriptionMode = pulsar.Durable + case "non-durable": + consumerOpts.SubscriptionMode = pulsar.NonDurable + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription mode: %s. Valid modes: durable, non-durable", subscriptionMode)), nil + } + + // Set initial position + switch strings.ToLower(initialPosition) { + case "latest": + consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionLatest + case "earliest": + consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionEarliest + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid initial position: %s. Valid positions: latest, earliest", initialPosition)), nil + } + + // Create consumer + consumer, err := client.Subscribe(consumerOpts) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create consumer: %v", err)), nil + } + defer consumer.Close() + + // Set up timeout context + timeoutDuration := time.Duration(timeout) * time.Second + consumeCtx, cancelConsume := context.WithTimeout(ctx, timeoutDuration) + defer cancelConsume() + + // Container for messages + type MessageData struct { + ID string `json:"id"` + PublishTime string `json:"publish_time"` + Properties map[string]string `json:"properties,omitempty"` + Key string `json:"key,omitempty"` + Data string `json:"data,omitempty"` + MessageCount int `json:"message_count"` + } + + messages := []MessageData{} + messageCount := 0 + + // Consume messages + for { + // Check if we've consumed the requested number of messages + if numMessages > 0 && messageCount >= numMessages { + break + } + + // Receive message with timeout + msg, err := consumer.Receive(consumeCtx) + if err != nil { + if err == context.DeadlineExceeded || err == context.Canceled { + break + } + return mcp.NewToolResultError(fmt.Sprintf("Error receiving message: %v", err)), nil + } + + // Process the message + messageCount++ + + // Create message data + messageData := MessageData{ + ID: msg.ID().String(), + PublishTime: msg.PublishTime().Format(time.RFC3339), + MessageCount: messageCount, + } + + // Add properties if requested + if showProperties { + messageData.Properties = msg.Properties() + } + + // Add key if present + if msg.Key() != "" { + messageData.Key = msg.Key() + } + + // Add payload unless hidden + if !hidePayload { + messageData.Data = string(msg.Payload()) + } + + messages = append(messages, messageData) + + // Acknowledge the message + _ = consumer.Ack(msg) + } + + // Prepare response + response := map[string]interface{}{ + "topic": topic, + "subscription_name": subscriptionName, + "messages_consumed": messageCount, + "messages": messages, + } + + return b.marshalResponse(response) + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarClientConsumeToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarClientConsumeToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/pulsar/functions.go b/pkg/mcp/builders/pulsar/functions.go new file mode 100644 index 0000000..253e5fd --- /dev/null +++ b/pkg/mcp/builders/pulsar/functions.go @@ -0,0 +1,647 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminFunctionsToolBuilder implements the ToolBuilder interface for Pulsar admin functions operations +// It provides functionality to build Pulsar functions management tools +// /nolint:revive +type PulsarAdminFunctionsToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminFunctionsToolBuilder creates a new Pulsar admin functions tool builder instance +func NewPulsarAdminFunctionsToolBuilder() *PulsarAdminFunctionsToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_functions", + Version: "1.0.0", + Description: "Pulsar admin functions management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "functions"}, + } + + features := []string{ + "pulsar-admin-functions", + "pulsar-admin", + "all", + "all-pulsar", + } + + return &PulsarAdminFunctionsToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin functions tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminFunctionsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildPulsarAdminFunctionsTool() + handler := b.buildPulsarAdminFunctionsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildPulsarAdminFunctionsTool builds the Pulsar admin functions MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar Functions for stream processing. " + + "Pulsar Functions are lightweight compute processes that can consume messages from one or more Pulsar topics, " + + "apply user-defined processing logic, and produce results to another topic. " + + "Functions support Java, Python, and Go runtimes, enabling complex event processing, " + + "data transformations, filtering, and integration with external systems. " + + "Functions follow the tenant/namespace/name hierarchy for organization, " + + "can maintain state, and can scale through parallelism configuration. " + + "This tool provides complete lifecycle management including deployment, monitoring, scaling, " + + "state management, and triggering. Functions require proper permissions to access their topics." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all functions under a specific tenant and namespace\n" + + "- get: Get the configuration of a function\n" + + "- status: Get the runtime status of a function (instances, metrics)\n" + + "- stats: Get detailed statistics of a function (throughput, processing latency)\n" + + "- querystate: Query state stored by a stateful function for a specific key\n" + + "- create: Deploy a new function with specified parameters\n" + + "- update: Update the configuration of an existing function\n" + + "- delete: Delete a function\n" + + "- start: Start a stopped function\n" + + "- stop: Stop a running function\n" + + "- restart: Restart a function\n" + + "- putstate: Store state in a function's state store\n" + + "- trigger: Manually trigger a function with a specific value" + + return mcp.NewTool("pulsar_admin_functions", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc)), + mcp.WithString("tenant", mcp.Required(), + mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ + "providing multi-tenancy and resource isolation. Functions deployed within a tenant "+ + "inherit its permissions and resource quotas.")), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name. Namespaces are logical groupings of topics and functions "+ + "within a tenant. They encapsulate configuration policies and access control. "+ + "Functions in a namespace typically process topics within the same namespace.")), + mcp.WithString("name", + mcp.Description("The function name. Required for all operations except 'list'. "+ + "Names should be descriptive of the function's purpose and must be unique within a namespace. "+ + "Function names are used in metrics, logs, and when addressing the function via APIs.")), + // Additional parameters for specific operations + mcp.WithString("classname", + mcp.Description("The fully qualified class name implementing the function. Required for 'create' operation, optional for 'update'. "+ + "For Java functions, this should be the class that implements pulsar function interfaces. "+ + "For Python, this MUST be in format of `.` - for example: "+ + "if file is '/path/to/exclamation.py' with class 'ExclamationFunction', classname must be 'exclamation.ExclamationFunction'; "+ + "if file is '/path/to/double_number.py' with class 'DoubleNumber', classname must be 'double_number.DoubleNumber'. "+ + "Common error: using just the class name 'DoubleNumber' (without filename prefix) will cause function creation to fail. "+ + "Go functions should specify the 'main' function of the binary.")), + mcp.WithArray("inputs", + mcp.Description("The input topics for the function (array of strings). Optional for 'create' and 'update' operations. "+ + "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ + "Functions can consume from multiple topics, each with potentially different serialization types. "+ + "All input topics should exist before the function is created."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "input topic", + }, + ), + ), + mcp.WithString("output", + mcp.Description("The output topic for the function results. Optional for 'create' and 'update' operations. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "If not set, the function will not produce any output to topics. "+ + "The output topic will be automatically created if it doesn't exist.")), + mcp.WithString("jar", + mcp.Description("Path to the JAR file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Java functions, this should contain all dependencies for the function. "+ + "The jar file must be compatible with the Pulsar Functions API.")), + mcp.WithString("py", + mcp.Description("Path to the Python file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Python functions, this should be the file path to the Python file, in format of `.py`, `.zip`, or `.whl`. "+ + "The Python file must be compatible with the Pulsar Functions API.")), + mcp.WithString("go", + mcp.Description("Path to the Go file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Go functions, this should be the file path to the Go file, in format of executable binary. "+ + "The Go file must be compatible with the Pulsar Functions API.")), + mcp.WithNumber("parallelism", + mcp.Description("The parallelism factor of the function. Optional for 'create' and 'update' operations. "+ + "Determines how many instances of the function will run concurrently. "+ + "Higher values improve throughput but require more resources. "+ + "For stateful functions, consider how parallelism affects state consistency. "+ + "Default is 1 (single instance).")), + mcp.WithObject("userConfig", + mcp.Description("User-defined config key/values. Optional for 'create' and 'update' operations. "+ + "Provides configuration parameters accessible to the function at runtime. "+ + "Specify as a JSON object with string, number, or boolean values. "+ + "Common configs include connection parameters, batch sizes, or feature toggles. "+ + "Example: {\"maxBatchSize\": 100, \"connectionString\": \"host:port\", \"debugMode\": true}")), + mcp.WithString("key", + mcp.Description("The state key. Required for 'querystate' and 'putstate' operations. "+ + "Keys are used to identify values in the function's state store. "+ + "They should be reasonable in length and follow a consistent pattern. "+ + "State keys are typically limited to 128 characters.")), + mcp.WithString("value", + mcp.Description("The state value. Required for 'putstate' operation. "+ + "Values are stored in the function's state system. "+ + "For simple values, specify as a string. For complex objects, use JSON-serialized strings. "+ + "State values are typically limited to 1MB in size.")), + mcp.WithString("topic", + mcp.Description("The specific topic name that the function should consume from. Optional for 'trigger' operation. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "Used when triggering a function that consumes from multiple topics. "+ + "If not provided, the first input topic will be used.")), + mcp.WithString("triggerValue", + mcp.Description("The value with which to trigger the function. Required for 'trigger' operation. "+ + "This value will be passed to the function as if it were a message from the input topic. "+ + "String values are sent as is; for typed values, ensure proper formatting based on function expectations. "+ + "The function processes this value just like a normal message.")), + ) +} + +// buildPulsarAdminFunctionsHandler builds the Pulsar admin functions handler function +// Migrated from the original handler logic +func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Create Pulsar client with API version V3 + client := cmdutils.NewPulsarClientWithAPIVersion(config.V3) + + // Extract and validate operation parameter + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Check if the operation is valid + validOperations := map[string]bool{ + "list": true, "get": true, "status": true, "stats": true, "querystate": true, + "create": true, "update": true, "delete": true, "start": true, "stop": true, + "restart": true, "putstate": true, "trigger": true, + } + + if !validOperations[operation] { + return b.handleError("validate operation", fmt.Errorf("invalid operation: '%s'. Supported operations: list, get, status, stats, querystate, create, update, delete, start, stop, restart, putstate, trigger", operation)), nil + } + + // Check write permissions for write operations + writeOperations := map[string]bool{ + "create": true, "update": true, "delete": true, "start": true, + "stop": true, "restart": true, "putstate": true, "trigger": true, + } + + if readOnly && writeOperations[operation] { + return b.handleError("check permissions", fmt.Errorf("operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Functions", operation)), nil + } + + // Extract common parameters + tenant, err := request.RequireString("tenant") + if err != nil { + return b.handleError("get tenant", fmt.Errorf("missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations", err)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return b.handleError("get namespace", fmt.Errorf("missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations", err)), nil + } + + // For all operations except 'list', name is required + var name string + if operation != "list" { + name, err = request.RequireString("name") + if err != nil { + return b.handleError("get name", fmt.Errorf("missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation", operation, err)), nil + } + } + + // Handle operation using delegated handlers + switch operation { + case "list": + return b.handleFunctionList(ctx, client, tenant, namespace) + case "get": + return b.handleFunctionGet(ctx, client, tenant, namespace, name) + case "status": + return b.handleFunctionStatus(ctx, client, tenant, namespace, name) + case "stats": + return b.handleFunctionStats(ctx, client, tenant, namespace, name) + case "querystate": + key, err := request.RequireString("key") + if err != nil { + return b.handleError("get key", fmt.Errorf("missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store", err)), nil + } + return b.handleFunctionQuerystate(ctx, client, tenant, namespace, name, key) + case "create": + return b.handleFunctionCreate(ctx, client, tenant, namespace, name, request) + case "update": + return b.handleFunctionUpdate(ctx, client, tenant, namespace, name, request) + case "delete": + return b.handleFunctionDelete(ctx, client, tenant, namespace, name) + case "start": + return b.handleFunctionStart(ctx, client, tenant, namespace, name) + case "stop": + return b.handleFunctionStop(ctx, client, tenant, namespace, name) + case "restart": + return b.handleFunctionRestart(ctx, client, tenant, namespace, name) + case "putstate": + key, err := request.RequireString("key") + if err != nil { + return b.handleError("get key", fmt.Errorf("missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store", err)), nil + } + value, err := request.RequireString("value") + if err != nil { + return b.handleError("get value", fmt.Errorf("missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store", err)), nil + } + return b.handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) + case "trigger": + triggerValue, err := request.RequireString("triggerValue") + if err != nil { + return b.handleError("get triggerValue", fmt.Errorf("missing required parameter 'triggerValue' for operation 'trigger': %v. A trigger value is required to manually trigger the function", err)), nil + } + topic := request.GetString("topic", "") + return b.handleFunctionTrigger(ctx, client, tenant, namespace, name, triggerValue, topic) + default: + return b.handleError("handle operation", fmt.Errorf("unsupported operation: %s", operation)), nil + } + } +} + +// Helper functions - delegated operation handlers + +// handleFunctionList handles the list operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionList(_ context.Context, client cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + functions, err := admin.GetFunctions(tenant, namespace) + if err != nil { + return b.handleError("list functions", err), nil + } + + return b.marshalResponse(map[string]interface{}{ + "functions": functions, + "tenant": tenant, + "namespace": namespace, + }) +} + +// handleFunctionGet handles the get operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionGet(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + functionConfig, err := admin.GetFunction(tenant, namespace, name) + if err != nil { + return b.handleError("get function config", err), nil + } + + return b.marshalResponse(functionConfig) +} + +// handleFunctionStatus handles the status operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStatus(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + status, err := admin.GetFunctionStatus(tenant, namespace, name) + if err != nil { + return b.handleError("get function status", err), nil + } + + return b.marshalResponse(status) +} + +// handleFunctionStats handles the stats operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStats(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + stats, err := admin.GetFunctionStats(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", + name, tenant, namespace, err)), nil + } + + return b.marshalResponse(stats) +} + +// handleFunctionQuerystate handles the querystate operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + state, err := admin.GetFunctionState(tenant, namespace, name, key) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to query state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v. Verify the function exists and has state enabled.", + key, name, tenant, namespace, err)), nil + } + + return b.marshalResponse(map[string]interface{}{ + "key": key, + "value": state, + "function": map[string]string{ + "tenant": tenant, + "namespace": namespace, + "name": name, + }, + }) +} + +// handleFunctionCreate handles the create operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Build function configuration from request parameters to validate + functionConfig, err := b.buildFunctionConfig(tenant, namespace, name, request, false) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v. Please verify all required parameters are provided correctly.", + name, tenant, namespace, err)), nil + } + + admin := client.Functions() + packagePath := "" + //nolint:gocritic + if functionConfig.Jar != nil { + packagePath = *functionConfig.Jar + } else if functionConfig.Py != nil { + packagePath = *functionConfig.Py + } else if functionConfig.Go != nil { + packagePath = *functionConfig.Go + } + + err = admin.CreateFuncWithURL(functionConfig, packagePath) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify the function configuration is valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been created.", + name, tenant, namespace)), nil +} + +// handleFunctionUpdate handles the update operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + admin := client.Functions() + + // Build function configuration from request parameters + config, err := b.buildFunctionConfig(tenant, namespace, name, request, true) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v. Please verify all parameters are provided correctly.", + name, tenant, namespace, err)), nil + } + + // Update the function + updateOptions := &utils.UpdateOptions{ + UpdateAuthData: true, + } + err = admin.UpdateFunction(config, "", updateOptions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and the configuration is valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Updated function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been modified.", + name, tenant, namespace)), nil +} + +// handleFunctionDelete handles the delete operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionDelete(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.DeleteFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and you have deletion permissions.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted function '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + name, tenant, namespace)), nil +} + +// handleFunctionStart handles the start operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.StartFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to start function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is not already running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Started function '%s' successfully in tenant '%s' namespace '%s'. The function instances are now processing messages.", + name, tenant, namespace)), nil +} + +// handleFunctionStop handles the stop operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStop(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.StopFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to stop function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is currently running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Stopped function '%s' successfully in tenant '%s' namespace '%s'. The function will no longer process messages until restarted.", + name, tenant, namespace)), nil +} + +// handleFunctionRestart handles the restart operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionRestart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.RestartFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Restarted function '%s' successfully in tenant '%s' namespace '%s'. All function instances have been restarted.", + name, tenant, namespace)), nil +} + +// handleFunctionPutstate handles the putstate operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionPutstate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key, value string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.PutFunctionState(tenant, namespace, name, utils.FunctionState{ + Key: key, + StringValue: value, + }) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to put state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v. Verify the function exists and has state enabled.", + key, name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully stored state for key '%s' in function '%s' (tenant '%s' namespace '%s'). State value has been updated.", + key, name, tenant, namespace)), nil +} + +// handleFunctionTrigger handles the trigger operation +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionTrigger(_ context.Context, client cmdutils.Client, tenant, namespace, name, triggerValue, topic string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + var err error + var result string + if topic != "" { + // Trigger with specific topic + result, err = admin.TriggerFunction(tenant, namespace, name, topic, triggerValue, "") + } else { + // Trigger without specific topic (uses first input topic) + result, err = admin.TriggerFunction(tenant, namespace, name, "", triggerValue, "") + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", + name, tenant, namespace, err)), nil + } + + var message string + if topic != "" { + message = fmt.Sprintf("Successfully triggered function '%s' in tenant '%s' namespace '%s' with topic '%s'. Result: %s", + name, tenant, namespace, topic, result) + } else { + message = fmt.Sprintf("Successfully triggered function '%s' in tenant '%s' namespace '%s'. Result: %s", + name, tenant, namespace, result) + } + + return mcp.NewToolResultText(message), nil +} + +// Helper functions + +// buildFunctionConfig builds a Pulsar Function configuration from MCP request parameters +func (b *PulsarAdminFunctionsToolBuilder) buildFunctionConfig(tenant, namespace, name string, request mcp.CallToolRequest, isUpdate bool) (*utils.FunctionConfig, error) { + config := &utils.FunctionConfig{ + Tenant: tenant, + Namespace: namespace, + Name: name, + } + + // Get required classname parameter (for create operations) + if !isUpdate { + classname, err := request.RequireString("classname") + if err != nil { + return nil, fmt.Errorf("missing required parameter 'classname': %v", err) + } + config.ClassName = classname + } else { + // For update, classname is optional + if classname := request.GetString("classname", ""); classname != "" { + config.ClassName = classname + } + } + + // Get inputs parameter (array of strings) + args := request.GetArguments() + if inputsInterface, exists := args["inputs"]; exists && inputsInterface != nil { + if inputsArray, ok := inputsInterface.([]interface{}); ok { + inputSpecs := make(map[string]utils.ConsumerConfig) + for _, input := range inputsArray { + if inputStr, ok := input.(string); ok { + inputSpecs[inputStr] = utils.ConsumerConfig{ + SerdeClassName: "", + SchemaType: "", + } + } + } + if len(inputSpecs) > 0 { + config.InputSpecs = inputSpecs + } + } + } + + // Get optional output parameter + if output := request.GetString("output", ""); output != "" { + config.Output = output + } + + // Get optional parallelism parameter + if parallelismInterface, exists := args["parallelism"]; exists && parallelismInterface != nil { + if parallelismFloat, ok := parallelismInterface.(float64); ok { + config.Parallelism = int(parallelismFloat) + } + } + + // Set default parallelism if not specified + if config.Parallelism <= 0 { + config.Parallelism = 1 + } + + // Get optional jar parameter + if jar := request.GetString("jar", ""); jar != "" { + config.Jar = &jar + } + + // Get optional py parameter + if py := request.GetString("py", ""); py != "" { + config.Py = &py + } + + // Get optional go parameter + if goFile := request.GetString("go", ""); goFile != "" { + config.Go = &goFile + } + + // Get optional userConfig parameter (JSON object) + if userConfigInterface, exists := args["userConfig"]; exists && userConfigInterface != nil { + if userConfigMap, ok := userConfigInterface.(map[string]interface{}); ok { + config.UserConfig = userConfigMap + } + } + + return config, nil +} + +// handleError provides unified error handling +func (b *PulsarAdminFunctionsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminFunctionsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/pulsar/functions_test.go b/pkg/mcp/builders/pulsar/functions_test.go new file mode 100644 index 0000000..df7f903 --- /dev/null +++ b/pkg/mcp/builders/pulsar/functions_test.go @@ -0,0 +1,83 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminFunctionsToolBuilder(t *testing.T) { + builder := NewPulsarAdminFunctionsToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_functions", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-functions") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-functions"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_functions", tools[0].Tool.Name) + assert.NotNil(t, tools[0].Handler) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-functions"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} diff --git a/pkg/mcp/builders/pulsar/functions_worker.go b/pkg/mcp/builders/pulsar/functions_worker.go new file mode 100644 index 0000000..3259375 --- /dev/null +++ b/pkg/mcp/builders/pulsar/functions_worker.go @@ -0,0 +1,226 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminFunctionsWorkerToolBuilder implements the ToolBuilder interface for Pulsar Admin Functions Worker tools +// It provides functionality to build Pulsar functions worker monitoring and management tools +// /nolint:revive +type PulsarAdminFunctionsWorkerToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminFunctionsWorkerToolBuilder creates a new Pulsar Admin Functions Worker tool builder instance +func NewPulsarAdminFunctionsWorkerToolBuilder() *PulsarAdminFunctionsWorkerToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_functions_worker", + Version: "1.0.0", + Description: "Pulsar Admin functions worker management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "functions", "worker", "admin", "monitoring"}, + } + + features := []string{ + "pulsar-admin-functions-worker", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminFunctionsWorkerToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Functions Worker tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminFunctionsWorkerToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildFunctionsWorkerTool() + handler := b.buildFunctionsWorkerHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildFunctionsWorkerTool builds the Pulsar Admin Functions Worker MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminFunctionsWorkerToolBuilder) buildFunctionsWorkerTool() mcp.Tool { + toolDesc := "Unified tool for managing Apache Pulsar Functions Worker resources. " + + "Pulsar Functions is a serverless compute framework that allows you to process messages in a streaming fashion. " + + "The Functions Worker is the runtime environment that executes and manages Pulsar Functions. " + + "This tool provides comprehensive access to functions worker resources including function statistics, " + + "monitoring metrics, cluster information, leader election status, and function assignments across the cluster. " + + "Functions workers can be deployed in multiple modes (standalone, cluster) and this tool helps monitor " + + "and manage the worker cluster state, performance metrics, and function distribution. " + + "Most operations require Pulsar super-user permissions for security reasons." + + resourceDesc := "Type of functions worker resource to access. Available resources:\\n" + + "- function_stats: Statistics for all functions running on the functions worker, including processing rates, error counts, and resource usage\\n" + + "- monitoring_metrics: Comprehensive metrics for monitoring function workers, including JVM metrics, resource utilization, and performance indicators\\n" + + "- cluster: Information about all workers in the functions worker cluster, including their status, capabilities, and workload distribution\\n" + + "- cluster_leader: Information about the leader of the functions worker cluster, essential for understanding cluster coordination\\n" + + "- function_assignments: Current assignments of functions across the functions worker cluster, showing which functions are running on which workers" + + return mcp.NewTool("pulsar_admin_functions_worker", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + ) +} + +// buildFunctionsWorkerHandler builds the Pulsar Admin Functions Worker handler function +// Migrated from the original handler logic +func (b *PulsarAdminFunctionsWorkerToolBuilder) buildFunctionsWorkerHandler(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get required resource parameter + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'resource'. " + + "Please specify one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments"), nil + } + + // Process request based on resource type + switch resource { + case "function_stats": + return b.handleFunctionsWorkerFunctionStats(admin) + case "monitoring_metrics": + return b.handleFunctionsWorkerMonitoringMetrics(admin) + case "cluster": + return b.handleFunctionsWorkerGetCluster(admin) + case "cluster_leader": + return b.handleFunctionsWorkerGetClusterLeader(admin) + case "function_assignments": + return b.handleFunctionsWorkerGetFunctionAssignments(admin) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ + "Please use one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments", resource)), nil + } + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminFunctionsWorkerToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Operation handler functions - migrated from the original implementation + +// handleFunctionsWorkerFunctionStats handles retrieving function statistics +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerFunctionStats(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get function stats + stats, err := admin.FunctionsWorker().GetFunctionsStats() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get functions stats: %v", err)), nil + } + + return b.marshalResponse(stats) +} + +// handleFunctionsWorkerMonitoringMetrics handles retrieving monitoring metrics +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerMonitoringMetrics(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get monitoring metrics + metrics, err := admin.FunctionsWorker().GetMetrics() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get monitoring metrics: %v", err)), nil + } + + return b.marshalResponse(metrics) +} + +// handleFunctionsWorkerGetCluster handles retrieving cluster information +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetCluster(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get cluster info + cluster, err := admin.FunctionsWorker().GetCluster() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster: %v", err)), nil + } + + return b.marshalResponse(cluster) +} + +// handleFunctionsWorkerGetClusterLeader handles retrieving cluster leader information +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetClusterLeader(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get cluster leader + leader, err := admin.FunctionsWorker().GetClusterLeader() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster leader: %v", err)), nil + } + + return b.marshalResponse(leader) +} + +// handleFunctionsWorkerGetFunctionAssignments handles retrieving function assignments +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetFunctionAssignments(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get function assignments + assignments, err := admin.FunctionsWorker().GetAssignments() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get function assignments: %v", err)), nil + } + + return b.marshalResponse(assignments) +} diff --git a/pkg/mcp/builders/pulsar/namespace.go b/pkg/mcp/builders/pulsar/namespace.go new file mode 100644 index 0000000..1cb0f25 --- /dev/null +++ b/pkg/mcp/builders/pulsar/namespace.go @@ -0,0 +1,472 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strconv" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminNamespaceToolBuilder implements the ToolBuilder interface for Pulsar Admin Namespace tools +// It provides functionality to build Pulsar namespace management tools +// /nolint:revive +type PulsarAdminNamespaceToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminNamespaceToolBuilder creates a new Pulsar Admin Namespace tool builder instance +func NewPulsarAdminNamespaceToolBuilder() *PulsarAdminNamespaceToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_namespace", + Version: "1.0.0", + Description: "Pulsar Admin namespace management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "namespace", "admin"}, + } + + features := []string{ + "pulsar-admin-namespaces", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminNamespaceToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Namespace tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminNamespaceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildNamespaceTool() + handler := b.buildNamespaceHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildNamespaceTool builds the Pulsar Admin Namespace MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminNamespaceToolBuilder) buildNamespaceTool() mcp.Tool { + toolDesc := "Manage Pulsar namespaces with various operations. " + + "This tool provides functionality to work with namespaces in Apache Pulsar, " + + "including listing, creating, deleting, and performing various operations on namespaces." + + operationDesc := "Operation to perform on namespaces. Available operations:\n" + + "- list: List all namespaces for a tenant\n" + + "- get_topics: Get all topics within a namespace\n" + + "- create: Create a new namespace\n" + + "- delete: Delete an existing namespace\n" + + "- clear_backlog: Clear backlog for all topics in a namespace\n" + + "- unsubscribe: Unsubscribe from a subscription for all topics in a namespace\n" + + "- unload: Unload a namespace from the current serving broker\n" + + "- split_bundle: Split a namespace bundle" + + return mcp.NewTool("pulsar_admin_namespace", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("tenant", + mcp.Description("The tenant name. Required for 'list' operation."), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in format 'tenant/namespace'. Required for all operations except 'list'."), + ), + mcp.WithString("bundles", + mcp.Description("Number of bundles to activate when creating a namespace (default: 0 for default number of bundles). Used with 'create' operation."), + ), + mcp.WithArray("clusters", + mcp.Description("List of clusters to assign when creating a namespace. Used with 'create' operation."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "Cluster name", + }, + ), + ), + mcp.WithString("subscription", + mcp.Description("Subscription name. Required for 'unsubscribe' operation, optional for 'clear_backlog'."), + ), + mcp.WithString("bundle", + mcp.Description("Bundle name or range. Required for 'split_bundle' operation, optional for 'clear_backlog', 'unsubscribe', and 'unload'."), + ), + mcp.WithString("force", + mcp.Description("Force clear backlog (true/false). Used with 'clear_backlog' operation."), + ), + mcp.WithString("unload", + mcp.Description("Unload newly split bundles after splitting (true/false). Used with 'split_bundle' operation."), + ), + ) +} + +// buildNamespaceHandler builds the Pulsar Admin Namespace handler function +// Migrated from the original handler logic +func (b *PulsarAdminNamespaceToolBuilder) buildNamespaceHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get operation parameter + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create Pulsar client + client, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Route to appropriate handler based on operation + switch operation { + case "list": + return b.handleNamespaceList(ctx, client, request) + case "get_topics": + return b.handleNamespaceGetTopics(ctx, client, request) + case "create", "delete", "clear_backlog", "unsubscribe", "unload", "split_bundle": + // Check if write operations are allowed + if readOnly { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode", operation)), nil + } + + // Route to appropriate write operation handler + switch operation { + case "create": + return b.handleNamespaceCreate(ctx, client, request) + case "delete": + return b.handleNamespaceDelete(ctx, client, request) + case "clear_backlog": + return b.handleClearBacklog(ctx, client, request) + case "unsubscribe": + return b.handleUnsubscribe(ctx, client, request) + case "unload": + return b.handleUnload(ctx, client, request) + case "split_bundle": + return b.handleSplitBundle(ctx, client, request) + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s. Supported operations: list, get_topics, create, delete, clear_backlog, unsubscribe, unload, split_bundle", operation)), nil + } + + // Should not reach here + return mcp.NewToolResultError("Unexpected error: operation not handled"), nil + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminNamespaceToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminNamespaceToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Operation handler functions - migrated from the original implementation + +// handleNamespaceList handles listing namespaces for a tenant +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + // Get namespace list + namespaces, err := client.Namespaces().GetNamespaces(tenant) + if err != nil { + return b.handleError("list namespaces", err), nil + } + + return b.marshalResponse(namespaces) +} + +// handleNamespaceGetTopics handles getting topics for a namespace +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get topics list + topics, err := client.Namespaces().GetTopics(namespace) + if err != nil { + return b.handleError("get topics", err), nil + } + + return b.marshalResponse(topics) +} + +// handleNamespaceCreate handles creating a new namespace +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional parameters + bundlesStr := request.GetString("bundles", "") + bundles := 0 + if bundlesStr != "" { + bundlesInt, err := strconv.Atoi(bundlesStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid bundles value, must be an integer: %v", err)), nil + } + bundles = bundlesInt + } + + clusters := request.GetStringSlice("clusters", []string{}) + + // Prepare policies + policies := utils.NewDefaultPolicies() + + // Set bundles if provided + if bundles > 0 { + if bundles < 0 || bundles > int(^uint32(0)) { // MaxInt32 + return mcp.NewToolResultError( + fmt.Sprintf("Invalid number of bundles. Number of bundles has to be in the range of (0, %d].", int(^uint32(0))), + ), nil + } + policies.Bundles = utils.NewBundlesDataWithNumBundles(bundles) + } + + // Set clusters if provided + if len(clusters) > 0 { + policies.ReplicationClusters = clusters + } + + // Create namespace + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + err = client.Namespaces().CreateNsWithPolices(ns.String(), *policies) + if err != nil { + return b.handleError("create namespace", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created %s successfully", namespace)), nil +} + +// handleNamespaceDelete handles deleting a namespace +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Delete namespace + err = client.Namespaces().DeleteNamespace(namespace) + if err != nil { + return b.handleError("delete namespace", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted %s successfully", namespace)), nil +} + +// handleClearBacklog handles clearing the backlog for all topics in a namespace +func (b *PulsarAdminNamespaceToolBuilder) handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional parameters + subscription := request.GetString("subscription", "") + bundle := request.GetString("bundle", "") + force := request.GetString("force", "") + forceFlag := force == "true" + + // If not forced, return an error requiring explicit force flag + if !forceFlag { + return mcp.NewToolResultError( + "Clear backlog operation requires explicit confirmation. Please set force=true to proceed.", + ), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Handle different backlog clearing scenarios + var clearErr error + //nolint:gocritic + if subscription != "" { + if bundle != "" { + clearErr = client.Namespaces().ClearNamespaceBundleBacklogForSubscription(*ns, bundle, subscription) + } else { + clearErr = client.Namespaces().ClearNamespaceBacklogForSubscription(*ns, subscription) + } + } else if bundle != "" { + clearErr = client.Namespaces().ClearNamespaceBundleBacklog(*ns, bundle) + } else { + clearErr = client.Namespaces().ClearNamespaceBacklog(*ns) + } + + if clearErr != nil { + return b.handleError("clear backlog", clearErr), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully cleared backlog for all topics in namespace %s", namespace), + ), nil +} + +// handleUnsubscribe handles unsubscribing the specified subscription for all topics of a namespace +func (b *PulsarAdminNamespaceToolBuilder) handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + subscription, err := request.RequireString("subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + // Get optional bundle + bundle := request.GetString("bundle", "") + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Unsubscribe namespace + var unsubErr error + if bundle == "" { + unsubErr = client.Namespaces().UnsubscribeNamespace(*ns, subscription) + } else { + unsubErr = client.Namespaces().UnsubscribeNamespaceBundle(*ns, bundle, subscription) + } + + if unsubErr != nil { + return b.handleError("unsubscribe", unsubErr), nil + } + + if bundle == "" { + return mcp.NewToolResultText( + fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s", + subscription, namespace), + ), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s with bundle range %s", + subscription, namespace, bundle), + ), nil +} + +// handleUnload handles unloading a namespace from the current serving broker +func (b *PulsarAdminNamespaceToolBuilder) handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional bundle + bundle := request.GetString("bundle", "") + + // Unload namespace + var unloadErr error + if bundle == "" { + unloadErr = client.Namespaces().Unload(namespace) + } else { + unloadErr = client.Namespaces().UnloadNamespaceBundle(namespace, bundle) + } + + if unloadErr != nil { + return b.handleError("unload namespace", unloadErr), nil + } + + if bundle == "" { + return mcp.NewToolResultText( + fmt.Sprintf("Unloaded namespace %s successfully", namespace), + ), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Unloaded namespace %s with bundle %s successfully", namespace, bundle), + ), nil +} + +// handleSplitBundle handles splitting a namespace bundle +func (b *PulsarAdminNamespaceToolBuilder) handleSplitBundle(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + bundle, err := request.RequireString("bundle") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle: %v", err)), nil + } + + // Get optional unload flag + unload := request.GetString("unload", "") == "true" + + // Split namespace bundle + err = client.Namespaces().SplitNamespaceBundle(namespace, bundle, unload) + if err != nil { + return b.handleError("split namespace bundle", err), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Split namespace bundle %s successfully", bundle), + ), nil +} diff --git a/pkg/mcp/builders/pulsar/namespace_policy.go b/pkg/mcp/builders/pulsar/namespace_policy.go new file mode 100644 index 0000000..f60b327 --- /dev/null +++ b/pkg/mcp/builders/pulsar/namespace_policy.go @@ -0,0 +1,647 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strconv" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + pulsarctlutils "github.com/streamnative/pulsarctl/pkg/ctl/utils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminNamespacePolicyToolBuilder implements the ToolBuilder interface for Pulsar admin namespace policies +// /nolint:revive +type PulsarAdminNamespacePolicyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminNamespacePolicyToolBuilder creates a new Pulsar admin namespace policy tool builder instance +func NewPulsarAdminNamespacePolicyToolBuilder() *PulsarAdminNamespacePolicyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_namespace_policy", + Version: "1.0.0", + Description: "Pulsar admin namespace policy management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "namespace_policy"}, + } + + features := []string{ + "pulsar-admin-namespace-policy", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminNamespacePolicyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin namespace policy tool list +func (b *PulsarAdminNamespacePolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tools := []server.ServerTool{} + + // Always add get policies tool + getTool := b.buildNamespaceGetPoliciesTool() + getHandler := b.buildNamespaceGetPoliciesHandler() + tools = append(tools, server.ServerTool{ + Tool: getTool, + Handler: getHandler, + }) + + // Add write operations if not in read-only mode + if !config.ReadOnly { + // Add set policy tool + setTool := b.buildNamespaceSetPolicyTool() + setHandler := b.buildNamespaceSetPolicyHandler() + tools = append(tools, server.ServerTool{ + Tool: setTool, + Handler: setHandler, + }) + + // Add remove policy tool + removeTool := b.buildNamespaceRemovePolicyTool() + removeHandler := b.buildNamespaceRemovePolicyHandler() + tools = append(tools, server.ServerTool{ + Tool: removeTool, + Handler: removeHandler, + }) + } + + return tools, nil +} + +// buildNamespaceGetPoliciesTool builds the get policies tool +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceGetPoliciesTool() mcp.Tool { + toolDesc := "Get the configuration policies of a namespace. " + + "Returns a comprehensive view of all policies applied to the namespace. " + + "The response includes the following fields:" + + "\n* bundles: Namespace bundle configuration, including boundaries and number of bundles" + + "\n* persistence: Message persistence configuration" + + "\n* retention_policies: Message retention policies defining how long messages are retained" + + "\n* schema_validation_enforced: Whether schema validation is enforced" + + "\n* deduplicationEnabled: Whether message deduplication is enabled" + + "\n* deleted: Whether the namespace is marked as deleted" + + "\n* encryption_required: Whether message encryption is required" + + "\n* message_ttl_in_seconds: Time-to-live for messages in seconds, after which unacknowledged messages are deleted" + + "\n* max_producers_per_topic: Maximum number of producers allowed per topic" + + "\n* max_consumers_per_topic: Maximum number of consumers allowed per topic" + + "\n* max_consumers_per_subscription: Maximum number of consumers allowed per subscription" + + "\n* compaction_threshold: Threshold for topic compaction in bytes" + + "\n* offload_threshold: Threshold for offloading data to tiered storage in bytes" + + "\n* offload_deletion_lag_ms: Time lag in milliseconds for retaining offloaded data in hot storage" + + "\n* antiAffinityGroup: Anti-affinity group for distribution across brokers" + + "\n* replication_clusters: List of clusters to which data is replicated" + + "\n* latency_stats_sample_rate: Rate at which latency statistics are collected" + + "\n* backlog_quota_map: Backlog quota settings controlling behavior when quotas are exceeded" + + "\n* topicDispatchRate: Rate limiting for topic message dispatch" + + "\n* subscriptionDispatchRate: Rate limiting for subscription message dispatch" + + "\n* replicatorDispatchRate: Rate limiting for replicator message dispatch" + + "\n* publishMaxMessageRate: Maximum rate for publishing messages" + + "\n* clusterSubscribeRate: Rate limiting for subscriptions per cluster" + + "\n* autoTopicCreationOverride: Settings for automatic topic creation" + + "\n* schema_auto_update_compatibility_strategy: Strategy for schema auto-updates" + + "\n* auth_policies: Authorization policies for the namespace" + + "\n* subscription_auth_mode: Authentication mode for subscriptions" + + "\n* is_allow_auto_update_schema: Whether automatic schema updates are allowed" + + "\nRequires tenant admin permissions." + + return mcp.NewTool("pulsar_admin_namespace_policy_get", + mcp.WithDescription(toolDesc), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name (tenant/namespace) to get policies for"), + ), + ) +} + +// buildNamespaceSetPolicyTool builds the set policy tool +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceSetPolicyTool() mcp.Tool { + toolDesc := "Set a policy for a namespace. " + + "This is a unified tool for setting different types of policies on a namespace. " + + "The policy type determines which specific policy will be set, and the required parameters " + + "vary based on the policy type. " + + "Requires appropriate admin permissions based on the policy being modified.\n\n" + + "Available policy types and their required parameters:\n" + + "1. message-ttl: Sets time to live for messages\n" + + " - Required: namespace, ttl (in seconds)\n\n" + + "2. retention: Sets retention policy for messages\n" + + " - Required: namespace\n" + + " - Optional: time (retention time in minutes, 0=no retention, -1=infinite), " + + "size (e.g., 10M, 16G, 3T, 0=no retention, -1=infinite)\n\n" + + "3. permission: Grants permissions to a role\n" + + " - Required: namespace, role, actions (array of permissions: produce, consume)\n\n" + + "4. replication-clusters: Sets clusters to replicate to\n" + + " - Required: namespace, clusters (array of cluster names)\n\n" + + "5. backlog-quota: Sets backlog quota policy\n" + + " - Required: namespace, limit-size (e.g., 10M, 16G), policy (producer_request_hold, producer_exception, consumer_backlog_eviction)\n" + + " - Optional: limit-time (seconds, -1=infinite), type (destination_storage, message_age)\n\n" + + "Additional policy types: topic-auto-creation, schema-validation, schema-auto-update, auto-update-schema, " + + "offload-threshold, offload-deletion-lag, compaction-threshold, max-producers-per-topic, max-consumers-per-topic, " + + "max-consumers-per-subscription, anti-affinity-group, persistence, deduplication, encryption-required, " + + "subscription-auth-mode, subscription-permission, dispatch-rate, replicator-dispatch-rate, subscribe-rate, " + + "subscription-dispatch-rate, publish-rate" + + return mcp.NewTool("pulsar_admin_namespace_policy_set", + mcp.WithDescription(toolDesc), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name (tenant/namespace) to set the policy for"), + ), + mcp.WithString("policy", mcp.Required(), + mcp.Description("Type of policy to set. Available options: "+ + "message-ttl, retention, permission, replication-clusters, backlog-quota, "+ + "topic-auto-creation, schema-validation, schema-auto-update, auto-update-schema, "+ + "offload-threshold, offload-deletion-lag, compaction-threshold, "+ + "max-producers-per-topic, max-consumers-per-topic, max-consumers-per-subscription, "+ + "anti-affinity-group, persistence, deduplication, encryption-required, "+ + "subscription-auth-mode, subscription-permission, dispatch-rate, "+ + "replicator-dispatch-rate, subscribe-rate, subscription-dispatch-rate, publish-rate"), + ), + // Generic policy parameters - specific ones will be used based on the policy type + mcp.WithString("role", + mcp.Description("Role name for permission policies"), + ), + mcp.WithArray("actions", + mcp.Description("Actions to grant for permission policies (e.g., produce, consume)"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "action", + }, + ), + ), + mcp.WithArray("clusters", + mcp.Description("List of clusters for replication policies"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "cluster", + }, + ), + ), + mcp.WithArray("roles", + mcp.Description("List of roles for subscription permission policies"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "role", + }, + ), + ), + mcp.WithString("ttl", + mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), + ), + mcp.WithString("time", + mcp.Description("Retention time in minutes, or special values: 0 (no retention) or -1 (infinite retention)"), + ), + mcp.WithString("size", + mcp.Description("Retention size limit (e.g., 10M, 16G, 3T), or special values: 0 (no retention) or -1 (infinite size retention)"), + ), + mcp.WithString("limit-size", + mcp.Description("Size limit for backlog quota (e.g., 10M, 16G)"), + ), + mcp.WithString("limit-time", + mcp.Description("Time limit in seconds for backlog quota. Default is -1 (infinite)"), + ), + mcp.WithString("policy", + mcp.Description("Retention policy for backlog quota (valid options: producer_request_hold, producer_exception, consumer_backlog_eviction)"), + ), + // Add more parameters as needed + ) +} + +// buildNamespaceRemovePolicyTool builds the remove policy tool +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceRemovePolicyTool() mcp.Tool { + toolDesc := "Remove a policy from a namespace. " + + "This is a unified tool for removing different types of policies from a namespace. " + + "The policy type determines which specific policy will be removed. " + + "Requires appropriate admin permissions based on the policy being modified.\n\n" + + "Available policy types to remove and their required parameters:\n" + + "1. backlog-quota: Removes the backlog quota policies\n" + + " - Required: namespace\n" + + " - Optional: type (destination_storage, message_age)\n\n" + + "2. topic-auto-creation: Removes topic auto-creation config\n" + + " - Required: namespace\n\n" + + "3. offload-deletion-lag: Clears the offload deletion lag configuration\n" + + " - Required: namespace\n\n" + + "4. anti-affinity-group: Removes the namespace from its anti-affinity group\n" + + " - Required: namespace\n\n" + + "5. permission: Revokes all permissions from a role\n" + + " - Required: namespace, role\n\n" + + "6. subscription-permission: Revokes permission from a role to access a subscription\n" + + " - Required: namespace, subscription, role" + + return mcp.NewTool("pulsar_admin_namespace_policy_remove", + mcp.WithDescription(toolDesc), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name (tenant/namespace) to remove the policy from"), + ), + mcp.WithString("policy", mcp.Required(), + mcp.Description("Type of policy to remove. Available options: "+ + "backlog-quota, topic-auto-creation, offload-deletion-lag, anti-affinity-group, "+ + "permission, subscription-permission"), + ), + mcp.WithString("role", + mcp.Description("Role name for permission policies"), + ), + mcp.WithString("subscription", + mcp.Description("Subscription name for subscription permission policies"), + ), + mcp.WithString("type", + mcp.Description("Type of backlog quota to remove"), + ), + ) +} + +// buildNamespaceGetPoliciesHandler builds the get policies handler +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceGetPoliciesHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get policies + policies, err := client.Namespaces().GetPolicies(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policies: %v", err)), nil + } + + return b.marshalResponse(policies) + } +} + +// buildNamespaceSetPolicyHandler builds the set policy handler +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceSetPolicyHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + policy, err := request.RequireString("policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + } + + // Handle different policy types + switch policy { + case "message-ttl": + return b.handleSetMessageTTL(ctx, client, namespace, request) + case "retention": + return b.handleSetRetention(ctx, client, namespace, request) + case "permission": + return b.handleGrantPermission(ctx, client, namespace, request) + case "replication-clusters": + return b.handleSetReplicationClusters(ctx, client, namespace, request) + case "backlog-quota": + return b.handleSetBacklogQuota(ctx, client, namespace, request) + // Add more policy types as needed + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported policy type: %s", policy)), nil + } + } +} + +// buildNamespaceRemovePolicyHandler builds the remove policy handler +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceRemovePolicyHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + policy, err := request.RequireString("policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + } + + // Handle different policy types + switch policy { + case "permission": + return b.handleRevokePermission(ctx, client, namespace, request) + case "backlog-quota": + return b.handleRemoveBacklogQuota(ctx, client, namespace, request) + // Add more policy types as needed + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported policy type for removal: %s", policy)), nil + } + } +} + +// Utility functions +func (b *PulsarAdminNamespacePolicyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +func (b *PulsarAdminNamespacePolicyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Policy-specific handler functions + +// handleSetMessageTTL handles setting message TTL for a namespace +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetMessageTTL(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + ttlStr, err := request.RequireString("ttl") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil + } + + ttl, err := strconv.ParseInt(ttlStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid TTL value, must be an integer: %v", err)), nil + } + + // Set message TTL + err = client.Namespaces().SetNamespaceMessageTTL(namespace, int(ttl)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set message TTL: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Set message TTL for %s to %d seconds", namespace, ttl)), nil +} + +// handleSetRetention handles setting retention for a namespace +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetRetention(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + timeStr := request.GetString("time", "") + sizeStr := request.GetString("size", "") + + if timeStr == "" && sizeStr == "" { + return mcp.NewToolResultError("At least one of 'time' or 'size' must be specified"), nil + } + + // Parse retention time + var retentionTimeInMin int + if timeStr != "" { + // Parse relative time in seconds from the input string + retentionTime, err := pulsarctlutils.ParseRelativeTimeInSeconds(timeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid retention time format: %v", err)), nil + } + + if retentionTime != -1 { + // Convert seconds to minutes + retentionTimeInMin = int(retentionTime.Minutes()) + } else { + retentionTimeInMin = -1 // Infinite time retention + } + } else { + retentionTimeInMin = -1 // Default to infinite time retention + } + + // Parse retention size + var retentionSizeInMB int + if sizeStr != "" { + if sizeStr == "-1" { + retentionSizeInMB = -1 // Infinite size retention + } else { + // Parse size string (e.g., "10M", "16G", "3T") + sizeInBytes, err := pulsarctlutils.ValidateSizeString(sizeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid retention size format: %v", err)), nil + } + + if sizeInBytes != -1 { + // Convert bytes to MB + retentionSizeInMB = int(sizeInBytes / (1024 * 1024)) + if retentionSizeInMB < 1 { + return mcp.NewToolResultError("Retention size must be at least 1MB"), nil + } + } else { + retentionSizeInMB = -1 // Infinite size retention + } + } + } else { + retentionSizeInMB = -1 // Default to infinite size retention + } + + // Create retention policy + retention := utils.NewRetentionPolicies(retentionTimeInMin, retentionSizeInMB) + + // Set retention + err := client.Namespaces().SetRetention(namespace, retention) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set retention: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Set retention for %s successfully", namespace)), nil +} + +// handleGrantPermission handles granting permissions on a namespace +func (b *PulsarAdminNamespacePolicyToolBuilder) handleGrantPermission(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + role, err := request.RequireString("role") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + } + + actions, err := request.RequireStringSlice("actions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil + } + + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + a, err := b.parseActions(actions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse actions: %v", err)), nil + } + + // Grant permissions + err = client.Namespaces().GrantNamespacePermission(*ns, role, a) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to grant permission: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Granted %v permission(s) to role %s on %s", actions, role, namespace)), nil +} + +// handleRevokePermission handles revoking permissions from a namespace +func (b *PulsarAdminNamespacePolicyToolBuilder) handleRevokePermission(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + role, err := request.RequireString("role") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + } + + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Revoke permissions + err = client.Namespaces().RevokeNamespacePermission(*ns, role) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke permission: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Revoked all permissions from role %s on %s", role, namespace)), nil +} + +// handleSetReplicationClusters handles setting replication clusters for a namespace +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetReplicationClusters(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + clusters, err := request.RequireStringSlice("clusters") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get clusters: %v", err)), nil + } + + if len(clusters) == 0 { + return mcp.NewToolResultError("At least one cluster must be specified"), nil + } + + // Set replication clusters + err = client.Namespaces().SetNamespaceReplicationClusters(namespace, clusters) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set replication clusters: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Set replication clusters for %s to %s", namespace, strings.Join(clusters, ", "))), nil +} + +// handleSetBacklogQuota handles setting backlog quota for a namespace +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetBacklogQuota(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + limitSizeStr, err := request.RequireString("limit-size") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get limit size: %v", err)), nil + } + + policyStr, err := request.RequireString("policy") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil + } + + // Parse backlog size limit + limitSize, err := pulsarctlutils.ValidateSizeString(limitSizeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid limit size format: %v", err)), nil + } + + // Parse backlog quota policy using the ParseRetentionPolicy function + policy, err := utils.ParseRetentionPolicy(policyStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid backlog quota policy: %s. Valid options: producer_request_hold, producer_exception, consumer_backlog_eviction", policyStr)), nil + } + + // Get optional time limit + limitTimeStr := request.GetString("limit-time", "-1") + limitTime, err := strconv.ParseInt(limitTimeStr, 10, 64) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid limit time: %v", err)), nil + } + + // Parse quota type (optional, default to destination_storage) + quotaTypeStr := request.GetString("type", "destination_storage") + quotaType := utils.DestinationStorage // Default + if quotaTypeStr != "" { + parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid backlog quota type: %v", err)), nil + } + quotaType = parsedType + } + + // Create and set backlog quota + backlogQuota := utils.NewBacklogQuota(limitSize, limitTime, policy) + err = client.Namespaces().SetBacklogQuota(namespace, backlogQuota, quotaType) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set backlog quota: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Set backlog quota for %s successfully", namespace)), nil +} + +// handleRemoveBacklogQuota handles removing backlog quota for a namespace +func (b *PulsarAdminNamespacePolicyToolBuilder) handleRemoveBacklogQuota(_ context.Context, client cmdutils.Client, namespace string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Remove backlog quota (API doesn't require quota type for removal) + err := client.Namespaces().RemoveBacklogQuota(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to remove backlog quota: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Removed backlog quota for %s successfully", namespace)), nil +} + +// parseActions parses action strings into AuthAction enums +func (b *PulsarAdminNamespacePolicyToolBuilder) parseActions(actions []string) ([]utils.AuthAction, error) { + r := make([]utils.AuthAction, 0) + for _, v := range actions { + a, err := utils.ParseAuthAction(v) + if err != nil { + return nil, err + } + r = append(r, a) + } + return r, nil +} diff --git a/pkg/mcp/builders/pulsar/nsisolationpolicy.go b/pkg/mcp/builders/pulsar/nsisolationpolicy.go new file mode 100644 index 0000000..b983a04 --- /dev/null +++ b/pkg/mcp/builders/pulsar/nsisolationpolicy.go @@ -0,0 +1,363 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/common" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminNsIsolationPolicyToolBuilder implements the ToolBuilder interface for Pulsar admin namespace isolation policies +// /nolint:revive +type PulsarAdminNsIsolationPolicyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminNsIsolationPolicyToolBuilder creates a new Pulsar admin namespace isolation policy tool builder instance +func NewPulsarAdminNsIsolationPolicyToolBuilder() *PulsarAdminNsIsolationPolicyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_nsisolationpolicy", + Version: "1.0.0", + Description: "Pulsar admin namespace isolation policy management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "nsisolationpolicy"}, + } + + features := []string{ + "pulsar-admin-nsisolationpolicy", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminNsIsolationPolicyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin namespace isolation policy tool list +func (b *PulsarAdminNsIsolationPolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildNsIsolationPolicyTool() + handler := b.buildNsIsolationPolicyHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildNsIsolationPolicyTool builds the Pulsar admin namespace isolation policy MCP tool definition +func (b *PulsarAdminNsIsolationPolicyToolBuilder) buildNsIsolationPolicyTool() mcp.Tool { + toolDesc := "Manage namespace isolation policies in a Pulsar cluster. " + + "Allows viewing, creating, updating, and deleting namespace isolation policies. " + + "Some operations require super-user permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- policy: Namespace isolation policy\n" + + "- broker: Broker with namespace isolation policies\n" + + "- brokers: All brokers with namespace isolation policies" + + operationDesc := "Operation to perform. Available operations:\n" + + "- get: Get resource details\n" + + "- list: List all instances of the resource\n" + + "- set: Create or update a resource (requires super-user permissions)\n" + + "- delete: Delete a resource (requires super-user permissions)" + + return mcp.NewTool("pulsar_admin_nsisolationpolicy", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("cluster", mcp.Required(), + mcp.Description("Cluster name"), + ), + mcp.WithString("name", + mcp.Description("Name of the policy or broker to operate on, based on resource type.\n"+ + "Required for: policy.get, policy.delete, policy.set, broker.get"), + ), + mcp.WithArray("namespaces", + mcp.Description("List of namespaces to apply the isolation policy. Required for policy.set"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "namespace", + }, + ), + ), + mcp.WithArray("primary", + mcp.Description("List of primary brokers for the namespaces. Required for policy.set"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "primary broker", + }, + ), + ), + mcp.WithArray("secondary", + mcp.Description("List of secondary brokers for the namespaces. Optional for policy.set"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "secondary broker", + }, + ), + ), + mcp.WithString("autoFailoverPolicyType", + mcp.Description("Auto failover policy type (e.g., min_available). Optional for policy.set"), + ), + mcp.WithObject("autoFailoverPolicyParams", + mcp.Description("Auto failover policy parameters as an object (e.g., {'min_limit': '1', 'usage_threshold': '100'}). Optional for policy.set"), + ), + ) +} + +// buildNsIsolationPolicyHandler builds the Pulsar admin namespace isolation policy handler function +func (b *PulsarAdminNsIsolationPolicyToolBuilder) buildNsIsolationPolicyHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + cluster, err := request.RequireString("cluster") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "set" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Dispatch based on resource type + switch resource { + case "policy": + return b.handlePolicyResource(client, operation, cluster, request) + case "broker": + return b.handleBrokerResource(client, operation, cluster, request) + case "brokers": + return b.handleNsIsolationBrokersResource(client, operation, cluster, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: policy, broker, brokers", resource)), nil + } + } +} + +// Helper functions + +// handlePolicyResource handles operations on the "policy" resource +func (b *PulsarAdminNsIsolationPolicyToolBuilder) handlePolicyResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.get: %v", err)), nil + } + + // Get namespace isolation policy + policyInfo, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicy(cluster, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace isolation policy: %v", err)), nil + } + + // Convert result to JSON string + policyInfoJSON, err := json.Marshal(policyInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policy: %v", err)), nil + } + + return mcp.NewToolResultText(string(policyInfoJSON)), nil + + case "list": + // Get namespace isolation policies + policies, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicies(cluster) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list namespace isolation policies: %v", err)), nil + } + + // Convert result to JSON string + policiesJSON, err := json.Marshal(policies) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policies: %v", err)), nil + } + + return mcp.NewToolResultText(string(policiesJSON)), nil + + case "delete": + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.delete: %v", err)), nil + } + + // Delete namespace isolation policy + err = client.NsIsolationPolicy().DeleteNamespaceIsolationPolicy(cluster, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete namespace isolation policy: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Delete namespace isolation policy %s successfully", name)), nil + + case "set": + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.set: %v", err)), nil + } + + namespaces, err := request.RequireStringSlice("namespaces") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespaces' for policy.set: %v", err)), nil + } + + primary, err := request.RequireStringSlice("primary") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'primary' for policy.set: %v", err)), nil + } + + secondary := request.GetStringSlice("secondary", []string{}) + autoFailoverPolicyType := request.GetString("autoFailoverPolicyType", "") + + // Parse autoFailoverPolicyParams as a map + autoFailoverPolicyParamsRaw, ok := common.OptionalParamObject(request.GetArguments(), "autoFailoverPolicyParams") + if !ok { + return mcp.NewToolResultError("Failed to extract autoFailoverPolicyParams"), nil + } + + autoFailoverPolicyParams := make(map[string]string) + for k, v := range autoFailoverPolicyParamsRaw { + if strVal, ok := v.(string); ok { + autoFailoverPolicyParams[k] = strVal + } + } + + // Create namespace isolation policy data + nsIsolationData, err := utils.CreateNamespaceIsolationData(namespaces, primary, secondary, + autoFailoverPolicyType, autoFailoverPolicyParams) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create namespace isolation data: %v", err)), nil + } + + // Create/update namespace isolation policy + err = client.NsIsolationPolicy().CreateNamespaceIsolationPolicy(cluster, name, *nsIsolationData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create/update namespace isolation policy: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Create/Update namespace isolation policy %s successfully", name)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'policy': %s. Available operations: get, list, delete, set", operation)), nil + } +} + +// handleBrokerResource handles operations on the "broker" resource +func (b *PulsarAdminNsIsolationPolicyToolBuilder) handleBrokerResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "get": + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for broker.get: %v", err)), nil + } + + // Get broker with policies + brokerInfo, err := client.NsIsolationPolicy().GetBrokerWithNamespaceIsolationPolicy(cluster, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get broker with namespace isolation policy: %v", err)), nil + } + + // Convert result to JSON string + brokerInfoJSON, err := json.Marshal(brokerInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize broker information: %v", err)), nil + } + + return mcp.NewToolResultText(string(brokerInfoJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'broker': %s. Available operations: get", operation)), nil + } +} + +// handleNsIsolationBrokersResource handles operations on the "brokers" resource for namespace isolation policies +func (b *PulsarAdminNsIsolationPolicyToolBuilder) handleNsIsolationBrokersResource(client cmdutils.Client, operation, cluster string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + // Get all brokers with policies + brokersInfo, err := client.NsIsolationPolicy().GetBrokersWithNamespaceIsolationPolicy(cluster) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get brokers with namespace isolation policy: %v", err)), nil + } + + // Convert result to JSON string + brokersInfoJSON, err := json.Marshal(brokersInfo) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers information: %v", err)), nil + } + + return mcp.NewToolResultText(string(brokersInfoJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'brokers': %s. Available operations: list", operation)), nil + } +} diff --git a/pkg/mcp/builders/pulsar/packages.go b/pkg/mcp/builders/pulsar/packages.go new file mode 100644 index 0000000..f025551 --- /dev/null +++ b/pkg/mcp/builders/pulsar/packages.go @@ -0,0 +1,344 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminPackagesToolBuilder implements the ToolBuilder interface for Pulsar admin packages +// /nolint:revive +type PulsarAdminPackagesToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminPackagesToolBuilder creates a new Pulsar admin packages tool builder instance +func NewPulsarAdminPackagesToolBuilder() *PulsarAdminPackagesToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_packages", + Version: "1.0.0", + Description: "Pulsar admin packages management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "packages"}, + } + + features := []string{ + "pulsar-admin-packages", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminPackagesToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin packages tool list +func (b *PulsarAdminPackagesToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildPackagesTool() + handler := b.buildPackagesHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildPackagesTool builds the Pulsar admin packages MCP tool definition +func (b *PulsarAdminPackagesToolBuilder) buildPackagesTool() mcp.Tool { + toolDesc := "Manage packages in Apache Pulsar. Support package scheme: `function://`, `source://`, `sink://`" + + "Allows listing, viewing, updating, downloading and uploading packages. " + + "Some operations require super-user permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- package: A specific package\n" + + "- packages: All packages of a specific type" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all packages of a specific type or versions of a package\n" + + "- get: Get metadata of a package\n" + + "- update: Update metadata of a package (requires super-user permissions)\n" + + "- delete: Delete a package (requires super-user permissions)\n" + + "- download: Download a package (requires super-user permissions)\n" + + "- upload: Upload a package (requires super-user permissions)" + + return mcp.NewTool("pulsar_admin_package", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("packageName", + mcp.Description("Name of the package to operate on. "+ + "Required for operations on a specific package: get, update, delete, download, upload"), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name. Required for listing packages of a specific type"), + ), + mcp.WithString("type", + mcp.Description("Package type (function, source, sink). Required for listing packages of a specific type"), + ), + mcp.WithString("description", + mcp.Description("Description of the package. Required for update and upload operations"), + ), + mcp.WithString("contact", + mcp.Description("Contact information for the package. Optional for update and upload operations"), + ), + mcp.WithString("path", + mcp.Description("Path to download a package to or upload a package from. Required for download and upload operations"), + ), + mcp.WithObject("properties", + mcp.Description("Additional properties for the package as key-value pairs. Optional for update and upload operations"), + ), + ) +} + +// buildPackagesHandler builds the Pulsar admin packages handler function +func (b *PulsarAdminPackagesToolBuilder) buildPackagesHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "update" || operation == "delete" || operation == "download" || operation == "upload") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminV3Client() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + } + + // Dispatch based on resource type + switch resource { + case "package": + return b.handlePackageResource(client, operation, request) + case "packages": + return b.handlePackagesResource(client, operation, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: package, packages", resource)), nil + } + } +} + +// Helper functions + +// handlePackageResource handles operations on a specific package +func (b *PulsarAdminPackagesToolBuilder) handlePackageResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + packageName, err := request.RequireString("packageName") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'packageName' for package operations: %v", err)), nil + } + + switch operation { + case "list": + // Get package versions + packageVersions, err := client.Packages().ListVersions(packageName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list package versions: %v", err)), nil + } + + // Convert result to JSON string + packageVersionsJSON, err := json.Marshal(packageVersions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package versions: %v", err)), nil + } + + return mcp.NewToolResultText(string(packageVersionsJSON)), nil + + case "get": + // Get package metadata + metadata, err := client.Packages().GetMetadata(packageName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get package metadata: %v", err)), nil + } + + // Convert result to JSON string + metadataJSON, err := json.Marshal(metadata) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package metadata: %v", err)), nil + } + + return mcp.NewToolResultText(string(metadataJSON)), nil + + case "update": + description, err := request.RequireString("description") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.update: %v", err)), nil + } + + contact := request.GetString("contact", "") + properties := b.extractProperties(request.GetArguments()) + + // Update package metadata + err = client.Packages().UpdateMetadata(packageName, description, contact, properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update package metadata: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("The metadata of the package '%s' updated successfully", packageName)), nil + + case "delete": + // Delete package + err = client.Packages().Delete(packageName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete package: %v", err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("The package '%s' deleted successfully", packageName)), nil + + case "download": + path, err := request.RequireString("path") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.download: %v", err)), nil + } + + // Download package + err = client.Packages().Download(packageName, path) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to download package: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("The package '%s' downloaded to path '%s' successfully", packageName, path), + ), nil + + case "upload": + path, err := request.RequireString("path") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.upload: %v", err)), nil + } + + description, err := request.RequireString("description") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.upload: %v", err)), nil + } + + contact := request.GetString("contact", "") + properties := b.extractProperties(request.GetArguments()) + + // Upload package + err = client.Packages().Upload(packageName, path, description, contact, properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to upload package: %v", err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("The package '%s' uploaded from path '%s' successfully", packageName, path), + ), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'package': %s. Available operations: list, get, update, delete, download, upload", operation)), nil + } +} + +// handlePackagesResource handles operations on multiple packages +func (b *PulsarAdminPackagesToolBuilder) handlePackagesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + switch operation { + case "list": + packageType, err := request.RequireString("type") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'type' for packages.list: %v", err)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for packages.list: %v", err)), nil + } + + // Get package list + packages, err := client.Packages().List(packageType, namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list packages: %v", err)), nil + } + + // Convert result to JSON string + packagesJSON, err := json.Marshal(packages) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package list: %v", err)), nil + } + + return mcp.NewToolResultText(string(packagesJSON)), nil + + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'packages': %s. Available operations: list", operation)), nil + } +} + +// extractProperties extracts properties from request arguments +func (b *PulsarAdminPackagesToolBuilder) extractProperties(args map[string]interface{}) map[string]string { + var properties map[string]string + propsObj, ok := args["properties"] + if ok && propsObj != nil { + // Convert to map[string]string + if propsMap, isMap := propsObj.(map[string]interface{}); isMap { + properties = make(map[string]string) + for k, v := range propsMap { + if strVal, ok := v.(string); ok { + properties[k] = strVal + } else { + properties[k] = fmt.Sprintf("%v", v) + } + } + } + } + return properties +} diff --git a/pkg/mcp/builders/pulsar/produce.go b/pkg/mcp/builders/pulsar/produce.go new file mode 100644 index 0000000..e4f45ae --- /dev/null +++ b/pkg/mcp/builders/pulsar/produce.go @@ -0,0 +1,351 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarClientProduceToolBuilder implements the ToolBuilder interface for Pulsar Client Producer tools +// It provides functionality to build Pulsar message production tools +// /nolint:revive +type PulsarClientProduceToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarClientProduceToolBuilder creates a new Pulsar Client Producer tool builder instance +func NewPulsarClientProduceToolBuilder() *PulsarClientProduceToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_client_produce", + Version: "1.0.0", + Description: "Pulsar Client message production tools", + Category: "pulsar_client", + Tags: []string{"pulsar", "produce", "client", "messaging"}, + } + + features := []string{ + "pulsar-client", + "all", + "all-pulsar", + } + + return &PulsarClientProduceToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Client Producer tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarClientProduceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildProduceTool() + handler := b.buildProduceHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildProduceTool builds the Pulsar Client Producer MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarClientProduceToolBuilder) buildProduceTool() mcp.Tool { + toolDesc := "Produce messages to a Pulsar topic. " + + "This tool allows you to send messages to a specified Pulsar topic with various options " + + "to control message format, batching, rate limiting, and properties. " + + "Pulsar supports message batching for improved throughput, chunking for large messages, " + + "and message properties for metadata attachment. " + + "You can send single or multiple messages, control the production rate, and add custom properties. " + + "The tool supports message partitioning through keys and provides detailed feedback on sent messages. " + + "Do not use this tool for Kafka protocol operations. Use 'kafka_client_produce' instead." + + return mcp.NewTool("pulsar_client_produce", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name to produce to (format: [persistent|non-persistent]://tenant/namespace/topic). "+ + "For partitioned topics, messages will be distributed across partitions based on the partitioning scheme. "+ + "If a message key is provided, messages with the same key will go to the same partition."), + ), + mcp.WithArray("messages", + mcp.Description("List of message content to send. Each array element represents one message payload. "+ + "IMPORTANT: Use this parameter to provide message content. Multiple messages can be sent in a single operation. "+ + "Each message will be sent according to the specified num-produce parameter."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "Individual message content to be sent to the topic", + }, + ), + ), + mcp.WithNumber("num-produce", + mcp.Description("Number of times to send the entire message set. "+ + "If you have 3 messages and set num-produce to 2, a total of 6 messages will be sent. (default: 1)"), + ), + mcp.WithNumber("rate", + mcp.Description("Rate limiting in messages per second. Controls the maximum speed of message production. "+ + "Set to 0 to produce messages as fast as possible without rate limiting. "+ + "Higher rates may be limited by broker capacity and network bandwidth. (default: 0)"), + ), + mcp.WithBoolean("disable-batching", + mcp.Description("Disable message batching. When false (default), Pulsar batches multiple messages "+ + "to improve throughput and reduce network overhead. Set to true to send each message individually. "+ + "Disabling batching may reduce throughput but provides lower latency. (default: false)"), + ), + mcp.WithBoolean("chunking", + mcp.Description("Enable message chunking for large messages. When true, messages larger than "+ + "the maximum allowed size will be automatically split into smaller chunks and reassembled on consumption. "+ + "This allows sending messages that exceed broker size limits. (default: false)"), + ), + mcp.WithString("separator", + mcp.Description("Character or string to split message content on. When specified, each message "+ + "in the messages array will be split by this separator to create additional individual messages. "+ + "Useful for sending multiple messages from a single delimited string. (default: none)"), + ), + mcp.WithArray("properties", + mcp.Description("Message properties in key=value format. Properties are metadata key-value pairs "+ + "attached to messages for filtering, routing, or application-specific processing. "+ + "Example: ['priority=high', 'source=api', 'version=1.0']. Multiple properties can be specified."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "Property in key=value format", + }, + ), + ), + mcp.WithString("key", + mcp.Description("Partitioning key for message routing. Messages with the same key will be sent "+ + "to the same partition in partitioned topics, ensuring ordering for related messages. "+ + "The key is also available to consumers for processing logic. Leave empty for round-robin partitioning."), + ), + ) +} + +// buildProduceHandler builds the Pulsar Client Producer handler function +// Migrated from the original handler logic +func (b *PulsarClientProduceToolBuilder) buildProduceHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Check read-only mode - producing is a write operation + if readOnly { + return mcp.NewToolResultError("Message production is not allowed in read-only mode"), nil + } + + // Extract required parameters with validation + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Set default values and extract optional parameters + messages := request.GetStringSlice("messages", []string{}) + if len(messages) == 0 { + return mcp.NewToolResultError("Please supply message content with 'messages' parameter"), nil + } + + numProduce := int(request.GetFloat("num-produce", 1)) + if numProduce < 1 { + return mcp.NewToolResultError("num-produce must be at least 1"), nil + } + + rate := request.GetFloat("rate", 0) + if rate < 0 { + return mcp.NewToolResultError("rate must be non-negative"), nil + } + + disableBatching := request.GetBool("disable-batching", false) + chunkingAllowed := request.GetBool("chunking", false) + separator := request.GetString("separator", "") + properties := request.GetStringSlice("properties", []string{}) + key := request.GetString("key", "") + + // Split messages by separator if needed + if separator != "" && len(messages) > 0 { + var splitMessages []string + for _, msg := range messages { + parts := strings.Split(msg, separator) + for _, part := range parts { + if part != "" { + splitMessages = append(splitMessages, part) + } + } + } + messages = splitMessages + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Setup client + client, err := session.GetPulsarClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + } + defer client.Close() + + // Prepare producer options + producerOpts := pulsar.ProducerOptions{ + Topic: topic, + } + + // Set batching and chunking options + if chunkingAllowed { + producerOpts.EnableChunking = true + producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond + } else if disableBatching { + producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond + } + + producer, err := client.CreateProducer(producerOpts) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create producer: %v", err)), nil + } + defer producer.Close() + + // Generate message bodies from messages + messagePayloads, err := b.generateMessagePayloads(messages) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to generate message payloads: %v", err)), nil + } + + // Parse properties + propMap, err := b.parseProperties(properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse properties: %v", err)), nil + } + + // Setup rate limiter + var limiter *time.Ticker + if rate > 0 { + interval := time.Duration(1000/rate) * time.Millisecond + limiter = time.NewTicker(interval) + defer limiter.Stop() + } + + // Send messages + numMessagesSent := 0 + var lastMessageID pulsar.MessageID + + for range numProduce { + for _, payload := range messagePayloads { + // Apply rate limiting if enabled + if limiter != nil { + <-limiter.C + } + + // Create message to send + msg := &pulsar.ProducerMessage{ + Payload: payload, + } + + // Add properties if specified + if len(propMap) > 0 { + msg.Properties = propMap + } + + // Add key if specified + if key != "" { + msg.Key = key + } + + // Send the message + msgID, err := producer.Send(ctx, msg) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil + } + + lastMessageID = msgID + numMessagesSent++ + } + } + + // Prepare response + response := map[string]interface{}{ + "topic": topic, + "messages_sent": numMessagesSent, + "last_message_id": fmt.Sprintf("%v", lastMessageID), + "success": true, + } + + return b.marshalResponse(response) + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarClientProduceToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarClientProduceToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// generateMessagePayloads generates message payloads from message strings +func (b *PulsarClientProduceToolBuilder) generateMessagePayloads(messages []string) ([][]byte, error) { + var payloads [][]byte + + // Add message strings + for _, msg := range messages { + payloads = append(payloads, []byte(msg)) + } + + return payloads, nil +} + +// parseProperties parses property strings in key=value format +func (b *PulsarClientProduceToolBuilder) parseProperties(properties []string) (map[string]string, error) { + propMap := make(map[string]string) + for _, prop := range properties { + parts := strings.SplitN(prop, "=", 2) + if len(parts) != 2 { + return nil, fmt.Errorf("invalid property format '%s', expected key=value", prop) + } + propMap[parts[0]] = parts[1] + } + return propMap, nil +} diff --git a/pkg/mcp/builders/pulsar/resourcequotas.go b/pkg/mcp/builders/pulsar/resourcequotas.go new file mode 100644 index 0000000..6bc4bae --- /dev/null +++ b/pkg/mcp/builders/pulsar/resourcequotas.go @@ -0,0 +1,341 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminResourceQuotasToolBuilder implements the ToolBuilder interface for Pulsar admin resource quotas +// /nolint:revive +type PulsarAdminResourceQuotasToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminResourceQuotasToolBuilder creates a new Pulsar admin resource quotas tool builder instance +func NewPulsarAdminResourceQuotasToolBuilder() *PulsarAdminResourceQuotasToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_resourcequotas", + Version: "1.0.0", + Description: "Pulsar admin resource quotas management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "resourcequotas"}, + } + + features := []string{ + "pulsar-admin-resourcequotas", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminResourceQuotasToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin resource quotas tool list +func (b *PulsarAdminResourceQuotasToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildResourceQuotasTool() + handler := b.buildResourceQuotasHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildResourceQuotasTool builds the Pulsar admin resource quotas MCP tool definition +func (b *PulsarAdminResourceQuotasToolBuilder) buildResourceQuotasTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar resource quotas for brokers, namespaces and bundles. " + + "Resource quotas define limits for resource usage such as message rates, bandwidth, and memory. " + + "These quotas help prevent resource abuse and ensure fair resource allocation across the Pulsar cluster. " + + "Operations include getting, setting, and resetting quotas. " + + "Requires super-user permissions for all operations." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- quota: The resource quota configuration for a specific namespace bundle or the default quota" + + operationDesc := "Operation to perform. Available operations:\n" + + "- get: Get the resource quota for a specified namespace bundle or default quota\n" + + "- set: Set the resource quota for a specified namespace bundle or default quota (requires super-user permissions)\n" + + "- reset: Reset a namespace bundle's resource quota to default value (requires super-user permissions)" + + return mcp.NewTool("pulsar_admin_resourcequota", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in the format 'tenant/namespace'. "+ + "Optional for 'get' and 'set' operations (to get/set default quota if omitted). "+ + "Required for 'reset' operation."), + ), + mcp.WithString("bundle", + mcp.Description("The bundle range in the format '{start-boundary}_{end-boundary}'. "+ + "Must be specified together with namespace. Bundle is a hash range of the topic names belonging to a namespace."), + ), + mcp.WithNumber("msgRateIn", + mcp.Description("Expected incoming messages per second. Required for 'set' operation. "+ + "This defines the maximum rate of incoming messages allowed for the namespace or bundle."), + ), + mcp.WithNumber("msgRateOut", + mcp.Description("Expected outgoing messages per second. Required for 'set' operation. "+ + "This defines the maximum rate of outgoing messages allowed for the namespace or bundle."), + ), + mcp.WithNumber("bandwidthIn", + mcp.Description("Expected inbound bandwidth in bytes per second. Required for 'set' operation. "+ + "This defines the maximum rate of incoming bytes allowed for the namespace or bundle."), + ), + mcp.WithNumber("bandwidthOut", + mcp.Description("Expected outbound bandwidth in bytes per second. Required for 'set' operation. "+ + "This defines the maximum rate of outgoing bytes allowed for the namespace or bundle."), + ), + mcp.WithNumber("memory", + mcp.Description("Expected memory usage in Mbytes. Required for 'set' operation. "+ + "This defines the maximum memory allowed for storing messages for the namespace or bundle."), + ), + mcp.WithBoolean("dynamic", + mcp.Description("Whether to allow quota to be dynamically re-calculated. Optional for 'set' operation. "+ + "If true, the broker can dynamically adjust the quota based on the current usage patterns."), + ), + ) +} + +// buildResourceQuotasHandler builds the Pulsar admin resource quotas handler function +func (b *PulsarAdminResourceQuotasToolBuilder) buildResourceQuotasHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "set" || operation == "reset") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "quota" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'quota' is supported", resource)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "get": + return b.handleQuotaGet(admin, request) + case "set": + return b.handleQuotaSet(admin, request) + case "reset": + return b.handleQuotaReset(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: get, set, reset", operation)), nil + } + } +} + +// Helper functions + +// handleQuotaGet handles getting a resource quota +func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get optional parameters + namespace := request.GetString("namespace", "") + bundle := request.GetString("bundle", "") + + // Check if both namespace and bundle are provided or neither is provided + if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { + return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil + } + + var ( + resourceQuotaData *utils.ResourceQuota + getErr error + ) + + if namespace == "" && bundle == "" { + // Get default resource quota + resourceQuotaData, getErr = admin.ResourceQuotas().GetDefaultResourceQuota() + if getErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get default resource quota: %v", getErr)), nil + } + } else { + // Get namespace bundle resource quota + nsName, getErr := utils.GetNamespaceName(namespace) + if getErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, getErr)), nil + } + resourceQuotaData, getErr = admin.ResourceQuotas().GetNamespaceBundleResourceQuota(nsName.String(), bundle) + if getErr != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, getErr)), nil + } + } + + // Format the output + jsonBytes, err := json.Marshal(resourceQuotaData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal resource quota data: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleQuotaSet handles setting a resource quota +func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters for set operation + msgRateIn, err := request.RequireFloat("msgRateIn") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateIn' for quota.set: %v", err)), nil + } + + msgRateOut, err := request.RequireFloat("msgRateOut") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateOut' for quota.set: %v", err)), nil + } + + bandwidthIn, err := request.RequireFloat("bandwidthIn") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthIn' for quota.set: %v", err)), nil + } + + bandwidthOut, err := request.RequireFloat("bandwidthOut") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthOut' for quota.set: %v", err)), nil + } + + memory, err := request.RequireFloat("memory") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'memory' for quota.set: %v", err)), nil + } + + // Get optional parameters + namespace := request.GetString("namespace", "") + bundle := request.GetString("bundle", "") + dynamic := request.GetBool("dynamic", false) + + // Check if both namespace and bundle are provided or neither is provided + if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { + return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil + } + + // Create resource quota object + quota := utils.NewResourceQuota() + quota.MsgRateIn = msgRateIn + quota.MsgRateOut = msgRateOut + quota.BandwidthIn = bandwidthIn + quota.BandwidthOut = bandwidthOut + quota.Memory = memory + quota.Dynamic = dynamic + + var resultMsg string + if namespace == "" && bundle == "" { + // Set default resource quota + err = admin.ResourceQuotas().SetDefaultResourceQuota(*quota) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set default resource quota: %v", err)), nil + } + resultMsg = "Default resource quota set successfully" + } else { + // Set namespace bundle resource quota + err = admin.ResourceQuotas().SetNamespaceBundleResourceQuota(namespace, bundle, *quota) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to set resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, err)), nil + } + resultMsg = fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' set successfully", namespace, bundle) + } + + return mcp.NewToolResultText(resultMsg), nil +} + +// handleQuotaReset handles resetting a resource quota +func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaReset(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters for reset operation + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for quota.reset: %v", err)), nil + } + + bundle, err := request.RequireString("bundle") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bundle' for quota.reset: %v", err)), nil + } + + // Parse namespace name + nsName, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + } + + // Reset namespace bundle resource quota + err = admin.ResourceQuotas().ResetNamespaceBundleResourceQuota(nsName.String(), bundle) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to reset resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' reset to default successfully", + namespace, bundle)), nil +} diff --git a/pkg/mcp/builders/pulsar/schema.go b/pkg/mcp/builders/pulsar/schema.go new file mode 100644 index 0000000..b63d70f --- /dev/null +++ b/pkg/mcp/builders/pulsar/schema.go @@ -0,0 +1,299 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "os" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminSchemaToolBuilder implements the ToolBuilder interface for Pulsar Admin Schema tools +// It provides functionality to build Pulsar schema management tools +// /nolint:revive +type PulsarAdminSchemaToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSchemaToolBuilder creates a new Pulsar Admin Schema tool builder instance +func NewPulsarAdminSchemaToolBuilder() *PulsarAdminSchemaToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_schema", + Version: "1.0.0", + Description: "Pulsar Admin schema management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "schema", "admin"}, + } + + features := []string{ + "pulsar-admin-schemas", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSchemaToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Schema tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminSchemaToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildSchemaTool() + handler := b.buildSchemaHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildSchemaTool builds the Pulsar Admin Schema MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminSchemaToolBuilder) buildSchemaTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar schemas for topics. " + + "Schemas in Pulsar define the structure of message data, enabling data validation, evolution, and interoperability. " + + "Pulsar supports multiple schema types including AVRO, JSON, PROTOBUF, etc., allowing strong typing of message content. " + + "Schema versioning ensures backward/forward compatibility as data structures evolve over time. " + + "Operations include getting, uploading, and deleting schemas. " + + "Requires namespace admin permissions for all operations." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- schema: The schema configuration for a specific topic" + + operationDesc := "Operation to perform. Available operations:\n" + + "- get: Get the schema for a topic (optionally by version)\n" + + "- upload: Upload a new schema for a topic (requires namespace admin permissions)\n" + + "- delete: Delete the schema for a topic (requires namespace admin permissions)" + + return mcp.NewTool("pulsar_admin_schema", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ + "A schema is always associated with a specific topic. The schema will be enforced for all producers "+ + "and consumers of this topic."), + ), + mcp.WithNumber("version", + mcp.Description("The schema version (optional for 'get' operation). "+ + "Pulsar maintains a versioned history of schemas. If not specified, the latest schema version will be returned. "+ + "Use this parameter to retrieve a specific historical version of the schema."), + ), + mcp.WithString("filename", + mcp.Description("The file path of the schema definition (required for 'upload' operation). "+ + "The file should contain a JSON object with 'type', 'schema', and optionally 'properties' fields. "+ + "Supported schema types include: AVRO, JSON, PROTOBUF, PROTOBUF_NATIVE, KEY_VALUE, BYTES, STRING, INT8, INT16, INT32, INT64, FLOAT, DOUBLE, BOOLEAN, NONE."), + ), + ) +} + +// buildSchemaHandler builds the Pulsar Admin Schema handler function +// Migrated from the original handler logic +func (b *PulsarAdminSchemaToolBuilder) buildSchemaHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "upload" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "schema" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'schema' is supported", resource)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "get": + return b.handleSchemaGet(admin, topic, request) + case "upload": + return b.handleSchemaUpload(admin, topic, request) + case "delete": + return b.handleSchemaDelete(admin, topic) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + } + } +} + +// Unified error handling and utility functions + +// prettyPrint formats JSON bytes with indentation +func (b *PulsarAdminSchemaToolBuilder) prettyPrint(data []byte) ([]byte, error) { + var out bytes.Buffer + err := json.Indent(&out, data, "", " ") + return out.Bytes(), err +} + +// Operation handler functions - migrated from the original implementation + +// handleSchemaGet handles getting a schema +func (b *PulsarAdminSchemaToolBuilder) handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get optional version parameter + version := request.GetFloat("version", 0) + + // Get schema info + if version != 0 { + // Get schema by version + info, err := admin.Schemas().GetSchemaInfoByVersion(topic, int64(version)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema version %v for topic '%s': %v", + version, topic, err)), nil + } + + jsonBytes, err := json.Marshal(info) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema information: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil + } + // Get latest schema + schemaInfoWithVersion, err := admin.Schemas().GetSchemaInfoWithVersion(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get latest schema for topic '%s': %v", + topic, err)), nil + } + + // Format the output + var output bytes.Buffer + name, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema name: %v", err)), nil + } + + schemaType, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Type) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema type: %v", err)), nil + } + + properties, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema properties: %v", err)), nil + } + + schema, err := b.prettyPrint(schemaInfoWithVersion.SchemaInfo.Schema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to format schema definition: %v", err)), nil + } + + fmt.Fprintf(&output, "{\n name: %s \n schema: %s\n type: %s \n properties: %s\n version: %d\n}", + string(name), string(schema), string(schemaType), string(properties), schemaInfoWithVersion.Version) + + return mcp.NewToolResultText(output.String()), nil +} + +// handleSchemaUpload handles uploading a schema +func (b *PulsarAdminSchemaToolBuilder) handleSchemaUpload(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + filename, err := request.RequireString("filename") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'filename' for schema.upload. Please provide the path to the schema definition file: %v", err)), nil + } + + // Read and parse the schema file + var payload utils.PostSchemaPayload + file, err := os.ReadFile(filename) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to read schema file '%s': %v", filename, err)), nil + } + + err = json.Unmarshal(file, &payload) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse schema file '%s'. The file must contain valid JSON with 'type', 'schema', and optionally 'properties' fields: %v", + filename, err)), nil + } + + // Upload the schema + err = admin.Schemas().CreateSchemaByPayload(topic, payload) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to upload schema for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Schema uploaded successfully for topic '%s'", topic)), nil +} + +// handleSchemaDelete handles deleting a schema +func (b *PulsarAdminSchemaToolBuilder) handleSchemaDelete(admin cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Delete the schema + err := admin.Schemas().DeleteSchema(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete schema for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Schema deleted successfully for topic '%s'", topic)), nil +} diff --git a/pkg/mcp/builders/pulsar/sinks.go b/pkg/mcp/builders/pulsar/sinks.go new file mode 100644 index 0000000..93616fd --- /dev/null +++ b/pkg/mcp/builders/pulsar/sinks.go @@ -0,0 +1,681 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminSinksToolBuilder implements the ToolBuilder interface for Pulsar admin sinks +// /nolint:revive +type PulsarAdminSinksToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSinksToolBuilder creates a new Pulsar admin sinks tool builder instance +func NewPulsarAdminSinksToolBuilder() *PulsarAdminSinksToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_sinks", + Version: "1.0.0", + Description: "Pulsar admin sinks management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "sinks"}, + } + + features := []string{ + "pulsar-admin-sinks", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSinksToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin sinks tool list +func (b *PulsarAdminSinksToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildSinksTool() + handler := b.buildSinksHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildSinksTool builds the Pulsar admin sinks MCP tool definition +func (b *PulsarAdminSinksToolBuilder) buildSinksTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar Sinks for data movement and integration. " + + "Pulsar Sinks are connectors that export data from Pulsar topics to external systems such as databases, " + + "storage services, messaging systems, and third-party applications. " + + "Sinks consume messages from one or more Pulsar topics, transform the data if needed, " + + "and write it to external systems in a format compatible with the target destination. " + + "Built-in sink connectors are available for common systems like Kafka, JDBC, Elasticsearch, and cloud storage. " + + "Sinks follow the tenant/namespace/name hierarchy for organization and access control, " + + "can scale through parallelism configuration, and support configurable subscription types. " + + "This tool provides complete lifecycle management including deployment, configuration, " + + "monitoring, and runtime control. Sinks require proper permissions to access their input topics." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all sinks under a specific tenant and namespace\n" + + "- get: Get the configuration of a sink\n" + + "- status: Get the runtime status of a sink (instances, metrics)\n" + + "- create: Deploy a new sink with specified parameters\n" + + "- update: Update the configuration of an existing sink\n" + + "- delete: Delete a sink\n" + + "- start: Start a stopped sink\n" + + "- stop: Stop a running sink\n" + + "- restart: Restart a sink\n" + + "- list-built-in: List all built-in sink connectors available in the system" + + return mcp.NewTool("pulsar_admin_sinks", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc)), + mcp.WithString("tenant", + mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ + "providing multi-tenancy and resource isolation. Sinks deployed within a tenant "+ + "inherit its permissions and resource quotas. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("namespace", + mcp.Description("The namespace name. Namespaces are logical groupings of topics and sinks "+ + "within a tenant. They encapsulate configuration policies and access control. "+ + "Sinks in a namespace typically process topics within the same namespace. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("name", + mcp.Description("The sink name. Required for all operations except 'list' and 'list-built-in'. "+ + "Names should be descriptive of the sink's purpose and must be unique within a namespace. "+ + "Sink names are used in metrics, logs, and when addressing the sink via APIs.")), + mcp.WithString("archive", + mcp.Description("Path to the archive file containing the sink code. Optional for 'create' and 'update' operations. "+ + "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ + "The archive should contain all dependencies for the sink connector. "+ + "Either archive or sink-type must be specified, but not both.")), + mcp.WithString("sink-type", + mcp.Description("The built-in sink connector type to use. Optional for 'create' and 'update' operations. "+ + "Specifies which built-in connector to use, such as 'jdbc', 'elastic-search', 'kafka', etc. "+ + "Use 'list-built-in' operation to see available sink types. "+ + "Either sink-type or archive must be specified, but not both.")), + mcp.WithArray("inputs", + mcp.Description("The sink's input topics (array of strings). Optional for 'create' and 'update' operations. "+ + "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ + "Sinks can consume from multiple topics, but they should have compatible schemas. "+ + "All input topics should exist before the sink is created. "+ + "Either inputs or topics-pattern must be specified."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "input topic", + }, + ), + ), + mcp.WithString("topics-pattern", + mcp.Description("TopicsPattern to consume from list of topics that match the pattern. Optional for 'create' and 'update' operations. "+ + "Specified as a regular expression, e.g., 'persistent://tenant/namespace/prefix.*'. "+ + "This allows the sink to automatically consume from topics that match the pattern, "+ + "including topics created after the sink is deployed. "+ + "Either topics-pattern or inputs must be specified.")), + mcp.WithString("subs-name", + mcp.Description("Pulsar subscription name for input topic consumer. Optional for 'create' and 'update' operations. "+ + "Defines the subscription name used by the sink to consume from input topics. "+ + "If not specified, a default subscription name will be generated. "+ + "The subscription type used is Shared by default.")), + mcp.WithNumber("parallelism", + mcp.Description("The parallelism factor of the sink. Optional for 'create' and 'update' operations. "+ + "Determines how many instances of the sink will run concurrently. "+ + "Higher values improve throughput but require more resources. "+ + "Default is 1 (single instance). Recommended to align with topic partition count "+ + "when consuming from partitioned topics.")), + mcp.WithObject("sink-config", + mcp.Description("User-defined sink config key/values. Optional for 'create' and 'update' operations. "+ + "Provides configuration parameters specific to the sink connector being used. "+ + "For example, JDBC connection strings, Elasticsearch indices, S3 bucket details, etc. "+ + "Specify as a JSON object with configuration properties required by the specific sink type. "+ + "Example: {\"jdbcUrl\": \"jdbc:postgresql://localhost:5432/database\", \"tableName\": \"events\"}")), + ) +} + +// buildSinksHandler builds the Pulsar admin sinks handler function +func (b *PulsarAdminSinksToolBuilder) buildSinksHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract and validate operation parameter + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil + } + + // Check if the operation is valid + validOperations := map[string]bool{ + "list": true, "get": true, "status": true, "create": true, "update": true, + "delete": true, "start": true, "stop": true, "restart": true, "list-built-in": true, + } + + if !validOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil + } + + // Check write permissions for write operations + writeOperations := map[string]bool{ + "create": true, "update": true, "delete": true, "start": true, + "stop": true, "restart": true, + } + + if readOnly && writeOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sinks.", operation)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + admin, err := session.GetAdminV3Client() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + } + + // List built-in sinks doesn't require tenant, namespace or name + if operation == "list-built-in" { + return b.handleListBuiltInSinks(ctx, admin) + } + + // Extract common parameters (all operations except list-built-in require tenant and namespace) + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil + } + + // For all operations except 'list', name is required + var name string + if operation != "list" { + name, err = request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The sink name must be specified for this operation.", operation, err)), nil + } + } + + // Handle operations + switch operation { + case "list": + return b.handleSinkList(ctx, admin, tenant, namespace) + case "get": + return b.handleSinkGet(ctx, admin, tenant, namespace, name) + case "status": + return b.handleSinkStatus(ctx, admin, tenant, namespace, name) + case "create": + return b.handleSinkCreate(ctx, admin, request) + case "update": + return b.handleSinkUpdate(ctx, admin, request) + case "delete": + return b.handleSinkDelete(ctx, admin, tenant, namespace, name) + case "start": + return b.handleSinkStart(ctx, admin, tenant, namespace, name) + case "stop": + return b.handleSinkStop(ctx, admin, tenant, namespace, name) + case "restart": + return b.handleSinkRestart(ctx, admin, tenant, namespace, name) + default: + // This should never happen due to the valid operations check above + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + } + } +} + +// Helper functions + +// handleSinkList handles listing all sinks under a namespace +func (b *PulsarAdminSinksToolBuilder) handleSinkList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { + sinks, err := admin.Sinks().ListSinks(tenant, namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list sinks in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", + tenant, namespace, err)), nil + } + + // Convert result to JSON string + sinksJSON, err := json.Marshal(sinks) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink list: %v", err)), nil + } + + return mcp.NewToolResultText(string(sinksJSON)), nil +} + +// handleSinkGet handles getting information about a sink +func (b *PulsarAdminSinksToolBuilder) handleSinkGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + sink, err := admin.Sinks().GetSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have proper permissions.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + sinkJSON, err := json.Marshal(sink) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink info: %v", err)), nil + } + + return mcp.NewToolResultText(string(sinkJSON)), nil +} + +// handleSinkStatus handles getting the status of a sink +func (b *PulsarAdminSinksToolBuilder) handleSinkStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + status, err := admin.Sinks().GetSinkStatus(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + statusJSON, err := json.Marshal(status) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink status: %v", err)), nil + } + + return mcp.NewToolResultText(string(statusJSON)), nil +} + +// handleSinkCreate handles creating a new sink +func (b *PulsarAdminSinksToolBuilder) handleSinkCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SinkData object + sinkData := &utils.SinkData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SinkConf: &utils.SinkConfig{}, + } + + // Get optional parameters + archive := request.GetString("archive", "") + if archive != "" { + sinkData.Archive = archive + } + + sinkType := request.GetString("sink-type", "") + if sinkType != "" { + sinkData.SinkType = sinkType + } + + inputsArray := request.GetStringSlice("inputs", []string{}) + if len(inputsArray) > 0 { + sinkData.Inputs = strings.Join(inputsArray, ",") + } + + topicsPattern := request.GetString("topics-pattern", "") + if topicsPattern != "" { + sinkData.TopicsPattern = topicsPattern + } + + subsName := request.GetString("subs-name", "") + if subsName != "" { + sinkData.SubsName = subsName + } + + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { + sinkData.Parallelism = int(parallelismFloat) + } + + // Get sink config if available + var sinkConfigMap map[string]interface{} + sinkConfigObj, ok := request.GetArguments()["sink-config"] + if ok && sinkConfigObj != nil { + if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { + sinkConfigMap = configMap + // Convert to JSON string + sinkConfigJSON, err := json.Marshal(sinkConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil + } + sinkData.SinkConfigString = string(sinkConfigJSON) + } + } + + // Validate inputs + if sinkData.Archive == "" && sinkData.SinkType == "" { + return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'sink-type' must be specified for sink creation. Use 'archive' for custom connectors or 'sink-type' for built-in connectors."), nil + } + + if sinkData.Archive != "" && sinkData.SinkType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil + } + + if sinkData.Inputs == "" && sinkData.TopicsPattern == "" { + return mcp.NewToolResultError("Missing required parameter: Either 'inputs' or 'topics-pattern' must be specified. The sink needs a source of data to consume from Pulsar."), nil + } + + // Process the arguments + err = b.processArguments(sinkData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create the sink + if sinkData.Archive != "" && b.isPackageURLSupported(sinkData.Archive) { + err = admin.Sinks().CreateSinkWithURL(sinkData.SinkConf, sinkData.Archive) + } else { + err = admin.Sinks().CreateSink(sinkData.SinkConf, sinkData.Archive) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create sink '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created sink '%s' successfully in tenant '%s' namespace '%s'. The sink will start consuming from its input topics and writing to the configured destination.", + name, tenant, namespace)), nil +} + +// handleSinkUpdate handles updating an existing sink +func (b *PulsarAdminSinksToolBuilder) handleSinkUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SinkData object + sinkData := &utils.SinkData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SinkConf: &utils.SinkConfig{}, + } + + // Get optional parameters + archive := request.GetString("archive", "") + if archive != "" { + sinkData.Archive = archive + } + + sinkType := request.GetString("sink-type", "") + if sinkType != "" { + sinkData.SinkType = sinkType + } + + inputsArray := request.GetStringSlice("inputs", []string{}) + if len(inputsArray) > 0 { + sinkData.Inputs = strings.Join(inputsArray, ",") + } + + topicsPattern := request.GetString("topics-pattern", "") + if topicsPattern != "" { + sinkData.TopicsPattern = topicsPattern + } + + subsName := request.GetString("subs-name", "") + if subsName != "" { + sinkData.SubsName = subsName + } + + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { + sinkData.Parallelism = int(parallelismFloat) + } + + // Get sink config if available + var sinkConfigMap map[string]interface{} + sinkConfigObj, ok := request.GetArguments()["sink-config"] + if ok && sinkConfigObj != nil { + if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { + sinkConfigMap = configMap + // Convert to JSON string + sinkConfigJSON, err := json.Marshal(sinkConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil + } + sinkData.SinkConfigString = string(sinkConfigJSON) + } + } + + // Validate inputs if both are specified + if sinkData.Archive != "" && sinkData.SinkType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil + } + + // Process the arguments + err = b.processArguments(sinkData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create update options + updateOptions := &utils.UpdateOptions{ + UpdateAuthData: true, + } + + // Update the sink + if sinkData.Archive != "" && b.isPackageURLSupported(sinkData.Archive) { + err = admin.Sinks().UpdateSinkWithURL(sinkData.SinkConf, sinkData.Archive, updateOptions) + } else { + err = admin.Sinks().UpdateSink(sinkData.SinkConf, sinkData.Archive, updateOptions) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and all parameters are valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Updated sink '%s' successfully in tenant '%s' namespace '%s'. The sink may need to be restarted to apply all changes.", + name, tenant, namespace)), nil +} + +// handleSinkDelete handles deleting a sink +func (b *PulsarAdminSinksToolBuilder) handleSinkDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().DeleteSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have deletion permissions.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted sink '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + name, tenant, namespace)), nil +} + +// handleSinkStart handles starting a sink +func (b *PulsarAdminSinksToolBuilder) handleSinkStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().StartSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to start sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is not already running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Started sink '%s' successfully in tenant '%s' namespace '%s'. The sink will begin consuming from its input topics.", + name, tenant, namespace)), nil +} + +// handleSinkStop handles stopping a sink +func (b *PulsarAdminSinksToolBuilder) handleSinkStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().StopSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to stop sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is currently running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Stopped sink '%s' successfully in tenant '%s' namespace '%s'. The sink will no longer consume messages until restarted.", + name, tenant, namespace)), nil +} + +// handleSinkRestart handles restarting a sink +func (b *PulsarAdminSinksToolBuilder) handleSinkRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sinks().RestartSink(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Restarted sink '%s' successfully in tenant '%s' namespace '%s'. All sink instances have been restarted.", + name, tenant, namespace)), nil +} + +// handleListBuiltInSinks handles listing all built-in sink connectors +func (b *PulsarAdminSinksToolBuilder) handleListBuiltInSinks(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { + sinks, err := admin.Sinks().GetBuiltInSinks() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sinks: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil + } + + // Convert result to JSON string + sinksJSON, err := json.Marshal(sinks) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sinks: %v", err)), nil + } + + return mcp.NewToolResultText(string(sinksJSON)), nil +} + +// processArguments is a simplified version of the pulsarctl function to process sink arguments +func (b *PulsarAdminSinksToolBuilder) processArguments(sinkData *utils.SinkData) error { + // Initialize config if needed + if sinkData.SinkConf == nil { + sinkData.SinkConf = new(utils.SinkConfig) + } + + // Set basic config values + sinkData.SinkConf.Tenant = sinkData.Tenant + sinkData.SinkConf.Namespace = sinkData.Namespace + sinkData.SinkConf.Name = sinkData.Name + + // Set inputs if provided + if sinkData.Inputs != "" { + inputTopics := strings.Split(sinkData.Inputs, ",") + sinkData.SinkConf.Inputs = inputTopics + } + + // Set topics pattern if provided + if sinkData.TopicsPattern != "" { + sinkData.SinkConf.TopicsPattern = &sinkData.TopicsPattern + } + + // Set subscription name if provided + if sinkData.SubsName != "" { + sinkData.SinkConf.SourceSubscriptionName = sinkData.SubsName + } + + // Set parallelism if provided + if sinkData.Parallelism != 0 { + sinkData.SinkConf.Parallelism = sinkData.Parallelism + } else if sinkData.SinkConf.Parallelism <= 0 { + sinkData.SinkConf.Parallelism = 1 + } + + // Handle archive and sink-type + if sinkData.Archive != "" && sinkData.SinkType != "" { + return fmt.Errorf("cannot specify both archive and sink-type") + } + + if sinkData.Archive != "" { + sinkData.SinkConf.Archive = sinkData.Archive + } + + if sinkData.SinkType != "" { + // In a real implementation, we would validate the sink type here + sinkData.SinkConf.Archive = sinkData.SinkType + } + + // Parse sink config if provided + if sinkData.SinkConfigString != "" { + var configs map[string]interface{} + if err := json.Unmarshal([]byte(sinkData.SinkConfigString), &configs); err != nil { + return fmt.Errorf("failed to parse sink config: %v", err) + } + sinkData.SinkConf.Configs = configs + } + + return nil +} + +// isPackageURLSupported checks if the package URL is supported +// Validates URLs for Pulsar sink packages +func (b *PulsarAdminSinksToolBuilder) isPackageURLSupported(archive string) bool { + if archive == "" { + return false + } + + // Check for supported URL schemes for Pulsar sink packages + supportedSchemes := []string{ + "http://", + "https://", + "file://", + "function://", // Pulsar function package URL + "sink://", // Pulsar sink package URL + } + + for _, scheme := range supportedSchemes { + if strings.HasPrefix(archive, scheme) { + return true + } + } + + // Also check if it's a local file path (not a URL) + return !strings.Contains(archive, "://") +} diff --git a/pkg/mcp/builders/pulsar/sources.go b/pkg/mcp/builders/pulsar/sources.go new file mode 100644 index 0000000..8bc8879 --- /dev/null +++ b/pkg/mcp/builders/pulsar/sources.go @@ -0,0 +1,711 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminSourcesToolBuilder implements the ToolBuilder interface for Pulsar admin sources +// /nolint:revive +type PulsarAdminSourcesToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSourcesToolBuilder creates a new Pulsar admin sources tool builder instance +func NewPulsarAdminSourcesToolBuilder() *PulsarAdminSourcesToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_sources", + Version: "1.0.0", + Description: "Pulsar admin sources management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "sources"}, + } + + features := []string{ + "pulsar-admin-sources", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSourcesToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin sources tool list +func (b *PulsarAdminSourcesToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildSourcesTool() + handler := b.buildSourcesHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildSourcesTool builds the Pulsar admin sources MCP tool definition +func (b *PulsarAdminSourcesToolBuilder) buildSourcesTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar Sources for data ingestion and integration. " + + "Pulsar Sources are connectors that import data from external systems into Pulsar topics. " + + "Sources connect to external systems such as databases, messaging platforms, storage services, " + + "and real-time data streams to pull data and publish it to Pulsar topics. " + + "Built-in source connectors are available for common systems like Kafka, JDBC, AWS services, and more. " + + "Sources follow the tenant/namespace/name hierarchy for organization and access control, " + + "can scale through parallelism configuration, and support various processing guarantees. " + + "This tool provides complete lifecycle management including deployment, configuration, " + + "monitoring, and runtime control. Sources use schema types to ensure data compatibility." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all sources under a specific tenant and namespace\n" + + "- get: Get the configuration of a source\n" + + "- status: Get the runtime status of a source (instances, metrics)\n" + + "- create: Deploy a new source with specified parameters\n" + + "- update: Update the configuration of an existing source\n" + + "- delete: Delete a source\n" + + "- start: Start a stopped source\n" + + "- stop: Stop a running source\n" + + "- restart: Restart a source\n" + + "- list-built-in: List all built-in source connectors available in the system" + + return mcp.NewTool("pulsar_admin_sources", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc)), + mcp.WithString("tenant", + mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ + "providing multi-tenancy and resource isolation. Sources deployed within a tenant "+ + "inherit its permissions and resource quotas. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("namespace", + mcp.Description("The namespace name. Namespaces are logical groupings of topics and sources "+ + "within a tenant. They encapsulate configuration policies and access control. "+ + "Sources in a namespace typically publish to topics within the same namespace. "+ + "Required for all operations except 'list-built-in'.")), + mcp.WithString("name", + mcp.Description("The source name. Required for all operations except 'list' and 'list-built-in'. "+ + "Names should be descriptive of the source's purpose and must be unique within a namespace. "+ + "Source names are used in metrics, logs, and when addressing the source via APIs.")), + mcp.WithString("archive", + mcp.Description("Path to the archive file containing the source code. Optional for 'create' and 'update' operations. "+ + "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ + "The archive should contain all dependencies for the source connector. "+ + "Either archive or source-type must be specified, but not both.")), + mcp.WithString("source-type", + mcp.Description("The built-in source connector type to use. Optional for 'create' and 'update' operations. "+ + "Specifies which built-in connector to use, such as 'kafka', 'jdbc', 'file', etc. "+ + "Use 'list-built-in' operation to see available source types. "+ + "Either source-type or archive must be specified, but not both.")), + mcp.WithString("destination-topic-name", + mcp.Description("The Pulsar topic to which data is published. Required for 'create' operation, optional for 'update'. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "This is the topic where the source will send the data it extracts from the external system. "+ + "The topic will be automatically created if it doesn't exist.")), + mcp.WithString("deserialization-classname", + mcp.Description("The SerDe (Serialization/Deserialization) classname for the source. Optional for 'create' and 'update'. "+ + "Specifies how to convert data from the external system into Pulsar messages. "+ + "Common SerDe classes include AvroSchema, JsonSchema, StringSchema, etc. "+ + "If not specified, the source will use the default SerDe for the connector type.")), + mcp.WithString("schema-type", + mcp.Description("The schema type to be used to encode messages emitted from the source. Optional for 'create' and 'update'. "+ + "Available schema types include: 'avro', 'json', 'protobuf', 'string', etc. "+ + "Schema types ensure data compatibility and enable schema evolution. "+ + "The schema type should match the format of data being ingested.")), + mcp.WithString("classname", + mcp.Description("The source's class name if archive is a file-url-path (file://...). Optional for 'create' and 'update'. "+ + "This specifies the fully qualified class name that implements the source connector. "+ + "Only needed when using a custom source implementation in a JAR file. "+ + "Built-in connectors don't require this parameter.")), + mcp.WithString("processing-guarantees", + mcp.Description("The processing guarantees (delivery semantics) applied to the source. Optional for 'create' and 'update'. "+ + "Available options: 'atleast_once', 'atmost_once', 'effectively_once'. "+ + "Controls how data is delivered in failure scenarios. "+ + "'atleast_once' is the most common and ensures no data loss but may have duplicates. "+ + "Default is 'atleast_once'.")), + mcp.WithNumber("parallelism", + mcp.Description("The parallelism factor of the source. Optional for 'create' and 'update' operations. "+ + "Determines how many instances of the source will run concurrently. "+ + "Higher values improve throughput but require more resources. "+ + "Default is 1 (single instance). Recommended to align with both source capacity "+ + "and destination topic partition count.")), + mcp.WithObject("source-config", + mcp.Description("User-defined source config key/values. Optional for 'create' and 'update' operations. "+ + "Provides configuration parameters specific to the source connector being used. "+ + "For example, database connection details, Kafka bootstrap servers, credentials, etc. "+ + "Specify as a JSON object with configuration properties required by the specific source type. "+ + "Example: {\"topic\": \"external-kafka-topic\", \"bootstrapServers\": \"kafka:9092\"}")), + ) +} + +// buildSourcesHandler builds the Pulsar admin sources handler function +func (b *PulsarAdminSourcesToolBuilder) buildSourcesHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract and validate operation parameter + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil + } + + // Check if the operation is valid + validOperations := map[string]bool{ + "list": true, "get": true, "status": true, "create": true, "update": true, + "delete": true, "start": true, "stop": true, "restart": true, "list-built-in": true, + } + + if !validOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil + } + + // Check write permissions for write operations + writeOperations := map[string]bool{ + "create": true, "update": true, "delete": true, "start": true, + "stop": true, "restart": true, + } + + if readOnly && writeOperations[operation] { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sources.", operation)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + admin, err := session.GetAdminV3Client() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + } + + // List built-in sources doesn't require tenant, namespace or name + if operation == "list-built-in" { + return b.handleListBuiltInSources(ctx, admin) + } + + // Extract common parameters (all operations except list-built-in require tenant and namespace) + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil + } + + // For all operations except 'list', name is required + var name string + if operation != "list" { + name, err = request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The source name must be specified for this operation.", operation, err)), nil + } + } + + // Handle operations + switch operation { + case "list": + return b.handleSourceList(ctx, admin, tenant, namespace) + case "get": + return b.handleSourceGet(ctx, admin, tenant, namespace, name) + case "status": + return b.handleSourceStatus(ctx, admin, tenant, namespace, name) + case "create": + return b.handleSourceCreate(ctx, admin, request) + case "update": + return b.handleSourceUpdate(ctx, admin, request) + case "delete": + return b.handleSourceDelete(ctx, admin, tenant, namespace, name) + case "start": + return b.handleSourceStart(ctx, admin, tenant, namespace, name) + case "stop": + return b.handleSourceStop(ctx, admin, tenant, namespace, name) + case "restart": + return b.handleSourceRestart(ctx, admin, tenant, namespace, name) + default: + // This should never happen due to the valid operations check above + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + } + } +} + +// Helper functions + +// handleSourceList handles listing all sources under a namespace +func (b *PulsarAdminSourcesToolBuilder) handleSourceList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { + sources, err := admin.Sources().ListSources(tenant, namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list sources in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", + tenant, namespace, err)), nil + } + + // Convert result to JSON string + sourcesJSON, err := json.Marshal(sources) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source list: %v", err)), nil + } + + return mcp.NewToolResultText(string(sourcesJSON)), nil +} + +// handleSourceGet handles getting information about a source +func (b *PulsarAdminSourcesToolBuilder) handleSourceGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + source, err := admin.Sources().GetSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have proper permissions.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + sourceJSON, err := json.Marshal(source) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source info: %v", err)), nil + } + + return mcp.NewToolResultText(string(sourceJSON)), nil +} + +// handleSourceStatus handles getting the status of a source +func (b *PulsarAdminSourcesToolBuilder) handleSourceStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + status, err := admin.Sources().GetSourceStatus(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + // Convert result to JSON string + statusJSON, err := json.Marshal(status) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source status: %v", err)), nil + } + + return mcp.NewToolResultText(string(statusJSON)), nil +} + +// handleSourceCreate handles creating a new source +func (b *PulsarAdminSourcesToolBuilder) handleSourceCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SourceData object + sourceData := &utils.SourceData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SourceConf: &utils.SourceConfig{}, + } + + // Get optional parameters + archive := request.GetString("archive", "") + if archive != "" { + sourceData.Archive = archive + } + + sourceType := request.GetString("source-type", "") + if sourceType != "" { + sourceData.SourceType = sourceType + } + + destTopic := request.GetString("destination-topic-name", "") + if destTopic != "" { + sourceData.DestinationTopicName = destTopic + } + + deserializationClassName := request.GetString("deserialization-classname", "") + if deserializationClassName != "" { + sourceData.DeserializationClassName = deserializationClassName + } + + schemaType := request.GetString("schema-type", "") + if schemaType != "" { + sourceData.SchemaType = schemaType + } + + className := request.GetString("classname", "") + if className != "" { + sourceData.ClassName = className + } + + processingGuarantees := request.GetString("processing-guarantees", "") + if processingGuarantees != "" { + sourceData.ProcessingGuarantees = processingGuarantees + } + + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { + sourceData.Parallelism = int(parallelismFloat) + } + + // Get source config if available + var sourceConfigMap map[string]interface{} + sourceConfigObj, ok := request.GetArguments()["source-config"] + if ok && sourceConfigObj != nil { + if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { + sourceConfigMap = configMap + // Convert to JSON string + sourceConfigJSON, err := json.Marshal(sourceConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil + } + sourceData.SourceConfigString = string(sourceConfigJSON) + } + } + + // Validate inputs + if sourceData.Archive == "" && sourceData.SourceType == "" { + return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'source-type' must be specified for source creation. Use 'archive' for custom connectors or 'source-type' for built-in connectors."), nil + } + + if sourceData.Archive != "" && sourceData.SourceType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil + } + + if sourceData.DestinationTopicName == "" { + return mcp.NewToolResultError("Missing required parameter: 'destination-topic-name' must be specified. This is the Pulsar topic where the source will publish data."), nil + } + + // Process the arguments + err = b.processSourceArguments(sourceData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create the source + if sourceData.Archive != "" && b.isPackageURLSupported(sourceData.Archive) { + err = admin.Sources().CreateSourceWithURL(sourceData.SourceConf, sourceData.Archive) + } else { + err = admin.Sources().CreateSource(sourceData.SourceConf, sourceData.Archive) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create source '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created source '%s' successfully in tenant '%s' namespace '%s'. The source will start pulling data from the external system and publishing to the destination topic.", + name, tenant, namespace)), nil +} + +// handleSourceUpdate handles updating an existing source +func (b *PulsarAdminSourcesToolBuilder) handleSourceUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + } + + name, err := request.RequireString("name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil + } + + // Create a new SourceData object + sourceData := &utils.SourceData{ + Tenant: tenant, + Namespace: namespace, + Name: name, + SourceConf: &utils.SourceConfig{}, + } + + // Get optional parameters + archive := request.GetString("archive", "") + if archive != "" { + sourceData.Archive = archive + } + + sourceType := request.GetString("source-type", "") + if sourceType != "" { + sourceData.SourceType = sourceType + } + + destTopic := request.GetString("destination-topic-name", "") + if destTopic != "" { + sourceData.DestinationTopicName = destTopic + } + + deserializationClassName := request.GetString("deserialization-classname", "") + if deserializationClassName != "" { + sourceData.DeserializationClassName = deserializationClassName + } + + schemaType := request.GetString("schema-type", "") + if schemaType != "" { + sourceData.SchemaType = schemaType + } + + className := request.GetString("classname", "") + if className != "" { + sourceData.ClassName = className + } + + processingGuarantees := request.GetString("processing-guarantees", "") + if processingGuarantees != "" { + sourceData.ProcessingGuarantees = processingGuarantees + } + + parallelismFloat := request.GetFloat("parallelism", 1) + if parallelismFloat >= 0 { + sourceData.Parallelism = int(parallelismFloat) + } + + // Get source config if available + var sourceConfigMap map[string]interface{} + sourceConfigObj, ok := request.GetArguments()["source-config"] + if ok && sourceConfigObj != nil { + if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { + sourceConfigMap = configMap + // Convert to JSON string + sourceConfigJSON, err := json.Marshal(sourceConfigMap) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil + } + sourceData.SourceConfigString = string(sourceConfigJSON) + } + } + + // Validate inputs if both are specified + if sourceData.Archive != "" && sourceData.SourceType != "" { + return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil + } + + // Process the arguments + err = b.processSourceArguments(sourceData) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + } + + // Create update options + updateOptions := &utils.UpdateOptions{ + UpdateAuthData: true, + } + + // Update the source + if sourceData.Archive != "" && b.isPackageURLSupported(sourceData.Archive) { + err = admin.Sources().UpdateSourceWithURL(sourceData.SourceConf, sourceData.Archive, updateOptions) + } else { + err = admin.Sources().UpdateSource(sourceData.SourceConf, sourceData.Archive, updateOptions) + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and all parameters are valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Updated source '%s' successfully in tenant '%s' namespace '%s'. The source may need to be restarted to apply all changes.", + name, tenant, namespace)), nil +} + +// handleSourceDelete handles deleting a source +func (b *PulsarAdminSourcesToolBuilder) handleSourceDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().DeleteSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have deletion permissions.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted source '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + name, tenant, namespace)), nil +} + +// handleSourceStart handles starting a source +func (b *PulsarAdminSourcesToolBuilder) handleSourceStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().StartSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to start source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is not already running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Started source '%s' successfully in tenant '%s' namespace '%s'. The source will begin pulling data from the external system.", + name, tenant, namespace)), nil +} + +// handleSourceStop handles stopping a source +func (b *PulsarAdminSourcesToolBuilder) handleSourceStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().StopSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to stop source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is currently running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Stopped source '%s' successfully in tenant '%s' namespace '%s'. The source will no longer pull data until restarted.", + name, tenant, namespace)), nil +} + +// handleSourceRestart handles restarting a source +func (b *PulsarAdminSourcesToolBuilder) handleSourceRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + err := admin.Sources().RestartSource(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Restarted source '%s' successfully in tenant '%s' namespace '%s'. All source instances have been restarted.", + name, tenant, namespace)), nil +} + +// handleListBuiltInSources handles listing all built-in source connectors +func (b *PulsarAdminSourcesToolBuilder) handleListBuiltInSources(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { + sources, err := admin.Sources().GetBuiltInSources() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sources: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil + } + + // Convert result to JSON string + sourcesJSON, err := json.Marshal(sources) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sources: %v", err)), nil + } + + return mcp.NewToolResultText(string(sourcesJSON)), nil +} + +// processSourceArguments is a simplified version of the pulsarctl function to process source arguments +func (b *PulsarAdminSourcesToolBuilder) processSourceArguments(sourceData *utils.SourceData) error { + // Initialize config if needed + if sourceData.SourceConf == nil { + sourceData.SourceConf = new(utils.SourceConfig) + } + + // Set basic config values + sourceData.SourceConf.Tenant = sourceData.Tenant + sourceData.SourceConf.Namespace = sourceData.Namespace + sourceData.SourceConf.Name = sourceData.Name + + // Set destination topic if provided + if sourceData.DestinationTopicName != "" { + sourceData.SourceConf.TopicName = sourceData.DestinationTopicName + } + + // Set deserialization class name if provided + if sourceData.DeserializationClassName != "" { + sourceData.SourceConf.SerdeClassName = sourceData.DeserializationClassName + } + + // Set schema type if provided + if sourceData.SchemaType != "" { + sourceData.SourceConf.SchemaType = sourceData.SchemaType + } + + // Set class name if provided + if sourceData.ClassName != "" { + sourceData.SourceConf.ClassName = sourceData.ClassName + } + + // Set processing guarantees if provided + if sourceData.ProcessingGuarantees != "" { + sourceData.SourceConf.ProcessingGuarantees = sourceData.ProcessingGuarantees + } + + // Set parallelism if provided + if sourceData.Parallelism != 0 { + sourceData.SourceConf.Parallelism = sourceData.Parallelism + } else if sourceData.SourceConf.Parallelism <= 0 { + sourceData.SourceConf.Parallelism = 1 + } + + // Handle archive and source-type + if sourceData.Archive != "" && sourceData.SourceType != "" { + return fmt.Errorf("cannot specify both archive and source-type") + } + + if sourceData.Archive != "" { + sourceData.SourceConf.Archive = sourceData.Archive + } + + if sourceData.SourceType != "" { + // In a real implementation, we would validate the source type here + sourceData.SourceConf.Archive = sourceData.SourceType + } + + // Parse source config if provided + if sourceData.SourceConfigString != "" { + var configs map[string]interface{} + if err := json.Unmarshal([]byte(sourceData.SourceConfigString), &configs); err != nil { + return fmt.Errorf("failed to parse source config: %v", err) + } + sourceData.SourceConf.Configs = configs + } + + return nil +} + +// isPackageURLSupported checks if the package URL is supported +// Validates URLs for Pulsar source packages +func (b *PulsarAdminSourcesToolBuilder) isPackageURLSupported(archive string) bool { + if archive == "" { + return false + } + + // Check for supported URL schemes for Pulsar source packages + supportedSchemes := []string{ + "http://", + "https://", + "file://", + "function://", // Pulsar function package URL + "source://", // Pulsar source package URL + } + + for _, scheme := range supportedSchemes { + if strings.HasPrefix(archive, scheme) { + return true + } + } + + // Also check if it's a local file path (not a URL) + return !strings.Contains(archive, "://") +} diff --git a/pkg/mcp/builders/pulsar/subscription.go b/pkg/mcp/builders/pulsar/subscription.go new file mode 100644 index 0000000..7105510 --- /dev/null +++ b/pkg/mcp/builders/pulsar/subscription.go @@ -0,0 +1,423 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminSubscriptionToolBuilder implements the ToolBuilder interface for Pulsar Admin Subscription tools +// It provides functionality to build Pulsar subscription management tools +// /nolint:revive +type PulsarAdminSubscriptionToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSubscriptionToolBuilder creates a new Pulsar Admin Subscription tool builder instance +func NewPulsarAdminSubscriptionToolBuilder() *PulsarAdminSubscriptionToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_subscription", + Version: "1.0.0", + Description: "Pulsar Admin subscription management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "subscription", "admin"}, + } + + features := []string{ + "pulsar-admin-subscriptions", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSubscriptionToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Subscription tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminSubscriptionToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildSubscriptionTool() + handler := b.buildSubscriptionHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildSubscriptionTool builds the Pulsar Admin Subscription MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar subscriptions on topics. " + + "Subscriptions are named entities representing consumer groups that maintain their position in a topic. " + + "Pulsar supports multiple subscription modes (Exclusive, Shared, Failover, Key_Shared) to accommodate different messaging patterns. " + + "Each subscription tracks message acknowledgments independently, allowing multiple consumers to process messages at their own pace. " + + "Subscriptions persist even when all consumers disconnect, maintaining state and preventing message loss. " + + "Operations include listing, creating, deleting, and manipulating message cursors within subscriptions. " + + "Most operations require namespace admin permissions plus produce/consume permissions on the topic." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- subscription: A subscription on a topic representing a consumer group" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all subscriptions for a topic\n" + + "- create: Create a new subscription on a topic\n" + + "- delete: Delete a subscription from a topic\n" + + "- skip: Skip a specified number of messages for a subscription\n" + + "- expire: Expire messages older than specified time for a subscription\n" + + "- reset-cursor: Reset the cursor position for a subscription to a specific message ID" + + return mcp.NewTool("pulsar_admin_subscription", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ + "For partitioned topics, you can either specify the base topic name (to apply the operation across all partitions) "+ + "or a specific partition in the format 'topicName-partition-N'."), + ), + mcp.WithString("subscription", + mcp.Description("The subscription name. Required for all operations except 'list'. "+ + "A subscription name is a logical identifier for a durable position in a topic. "+ + "Multiple consumers can attach to the same subscription to implement different messaging patterns."), + ), + mcp.WithString("messageId", + mcp.Description("Message ID for positioning the subscription cursor. Used in 'create' and 'reset-cursor' operations. "+ + "Values can be:\n"+ + "- 'latest': Position at the latest (most recent) message\n"+ + "- 'earliest': Position at the earliest (oldest available) message\n"+ + "- specific position in 'ledgerId:entryId' format for precise positioning"), + ), + mcp.WithNumber("count", + mcp.Description("The number of messages to skip (required for 'skip' operation). "+ + "This moves the subscription cursor forward by the specified number of messages without processing them."), + ), + mcp.WithNumber("expireTimeInSeconds", + mcp.Description("Expire messages older than the specified seconds (required for 'expire' operation). "+ + "This moves the subscription cursor to skip all messages published before the specified time."), + ), + mcp.WithBoolean("force", + mcp.Description("Force deletion of subscription (optional for 'delete' operation). "+ + "When true, all consumers will be forcefully disconnected and the subscription will be deleted. "+ + "Use with caution as it can interrupt active message processing."), + ), + ) +} + +// buildSubscriptionHandler builds the Pulsar Admin Subscription handler function +// Migrated from the original handler logic +func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation != "list") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "subscription" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'subscription' is supported", resource)), nil + } + + // Parse topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "list": + return b.handleSubsList(admin, topicName) + case "create": + return b.handleSubsCreate(admin, topicName, request) + case "delete": + return b.handleSubsDelete(admin, topicName, request) + case "skip": + return b.handleSubsSkip(admin, topicName, request) + case "expire": + return b.handleSubsExpire(admin, topicName, request) + case "reset-cursor": + return b.handleSubsResetCursor(admin, topicName, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + } + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminSubscriptionToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminSubscriptionToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Operation handler functions - migrated from the original implementation + +// handleSubsList handles listing all subscriptions for a topic +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsList(admin cmdutils.Client, topicName *utils.TopicName) (*mcp.CallToolResult, error) { + // List subscriptions + subscriptions, err := admin.Subscriptions().List(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list subscriptions for topic '%s': %v", + topicName.String(), err)), nil + } + + return b.marshalResponse(subscriptions) +} + +// handleSubsCreate handles creating a new subscription +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameter + subscription, err := request.RequireString("subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.create: %v", err)), nil + } + + // Get optional messageID parameter (default is "latest") + messageID := request.GetString("messageId", "latest") + + // Parse messageId + var messageIDObj utils.MessageID + switch messageID { + case "latest": + messageIDObj = utils.Latest + case "earliest": + messageIDObj = utils.Earliest + default: + s := strings.Split(messageID, ":") + if len(s) != 2 { + return mcp.NewToolResultError(fmt.Sprintf( + "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil + } + msgID, err := utils.ParseMessageID(messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil + } + messageIDObj = *msgID + } + + // Create subscription + err = admin.Subscriptions().Create(*topicName, subscription, messageIDObj) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created subscription '%s' on topic '%s' from position '%s' successfully", + subscription, topicName.String(), messageID)), nil +} + +// handleSubsDelete handles deleting a subscription +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameter + subscription, err := request.RequireString("subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.delete: %v", err)), nil + } + + // Get optional force parameter (default is false) + force := request.GetBool("force", false) + + // Delete subscription + if force { + err = admin.Subscriptions().ForceDelete(*topicName, subscription) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to forcefully delete subscription '%s' from topic '%s': %v", + subscription, topicName.String(), err)), nil + } + } else { + err = admin.Subscriptions().Delete(*topicName, subscription) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete subscription '%s' from topic '%s': %v", + subscription, topicName.String(), err)), nil + } + } + + forceStr := "" + if force { + forceStr = " forcefully" + } + return mcp.NewToolResultText(fmt.Sprintf("Deleted subscription '%s' from topic '%s'%s successfully", + subscription, topicName.String(), forceStr)), nil +} + +// handleSubsSkip handles skipping messages for a subscription +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + subscription, err := request.RequireString("subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.skip: %v", err)), nil + } + + count, err := request.RequireFloat("count") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'count' for subscription.skip: %v", err)), nil + } + + // Skip messages + err = admin.Subscriptions().SkipMessages(*topicName, subscription, int64(count)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to skip messages for subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Skipped %d messages for subscription '%s' on topic '%s' successfully", + int(count), subscription, topicName.String())), nil +} + +// handleSubsExpire handles expiring messages for a subscription +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + subscription, err := request.RequireString("subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.expire: %v", err)), nil + } + + expireTime, err := request.RequireFloat("expireTimeInSeconds") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'expireTimeInSeconds' for subscription.expire: %v", err)), nil + } + + // Expire messages + err = admin.Subscriptions().ExpireMessages(*topicName, subscription, int64(expireTime)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to expire messages for subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Expired messages older than %d seconds for subscription '%s' on topic '%s' successfully", + int(expireTime), subscription, topicName.String()), + ), nil +} + +// handleSubsResetCursor handles resetting a subscription cursor +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsResetCursor(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + subscription, err := request.RequireString("subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.reset-cursor: %v", err)), nil + } + + messageID, err := request.RequireString("messageId") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for subscription.reset-cursor: %v", err)), nil + } + + // Parse messageId + var messageIDObj utils.MessageID + switch messageID { + case "latest": + messageIDObj = utils.Latest + case "earliest": + messageIDObj = utils.Earliest + default: + s := strings.Split(messageID, ":") + if len(s) != 2 { + return mcp.NewToolResultError(fmt.Sprintf( + "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil + } + msgID, err := utils.ParseMessageID(messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil + } + messageIDObj = *msgID + } + + // Reset cursor + err = admin.Subscriptions().ResetCursorToMessageID(*topicName, subscription, messageIDObj) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to reset cursor for subscription '%s' on topic '%s': %v", + subscription, topicName.String(), err)), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Reset cursor for subscription '%s' on topic '%s' to position '%s' successfully", + subscription, topicName.String(), messageID), + ), nil +} diff --git a/pkg/mcp/builders/pulsar/tenant.go b/pkg/mcp/builders/pulsar/tenant.go new file mode 100644 index 0000000..ec30bf9 --- /dev/null +++ b/pkg/mcp/builders/pulsar/tenant.go @@ -0,0 +1,336 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminTenantToolBuilder implements the ToolBuilder interface for Pulsar Admin Tenant tools +// It provides functionality to build Pulsar tenant management tools +// /nolint:revive +type PulsarAdminTenantToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminTenantToolBuilder creates a new Pulsar Admin Tenant tool builder instance +func NewPulsarAdminTenantToolBuilder() *PulsarAdminTenantToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_tenant", + Version: "1.0.0", + Description: "Pulsar Admin tenant management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "tenant", "admin"}, + } + + features := []string{ + "pulsar-admin-tenants", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminTenantToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Tenant tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminTenantToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildTenantTool() + handler := b.buildTenantHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildTenantTool builds the Pulsar Admin Tenant MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminTenantToolBuilder) buildTenantTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar tenants. " + + "Tenants are the highest level administrative unit in Pulsar's multi-tenancy hierarchy. " + + "Each tenant can contain multiple namespaces, allowing for logical isolation of applications. " + + "Tenant configuration controls admin access and cluster availability across organizations. " + + "Tenants provide isolation boundaries for topics, security policies, and resource quotas. " + + "Proper tenant management is essential for multi-tenant Pulsar deployments to ensure data isolation, " + + "appropriate access controls, and effective resource sharing. " + + "All tenant operations require super-user permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- tenant: A tenant in the Pulsar instance" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all tenants in the Pulsar instance\n" + + "- get: Get configuration details for a specific tenant\n" + + "- create: Create a new tenant with specified configuration\n" + + "- update: Update configuration for an existing tenant\n" + + "- delete: Delete an existing tenant (must not have any active namespaces)" + + return mcp.NewTool("pulsar_admin_tenant", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("tenant", + mcp.Description("The tenant name to operate on. Required for all operations except 'list'. "+ + "Tenant names are unique identifiers and form the root of the topic naming hierarchy. "+ + "A valid tenant name must be comprised of alphanumeric characters and/or the following special characters: "+ + "'-', '_', '.', ':'. Ensure the tenant name follows your organization's naming conventions."), + ), + mcp.WithArray("adminRoles", + mcp.Description("List of auth principals (users or roles) allowed to administrate the tenant. "+ + "Required for 'create' and 'update' operations. These roles can create, update, or delete any "+ + "namespaces within the tenant, and can manage topic configurations. "+ + "Format: array of role strings, e.g., ['admin1', 'orgAdmin']. "+ + "Use empty array [] to remove all admin roles."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "role", + }, + ), + ), + mcp.WithArray("allowedClusters", + mcp.Description("List of clusters that this tenant can access. Required for 'create' and 'update' operations. "+ + "Restricts the tenant to only use specified clusters, enabling geographic or infrastructure isolation. "+ + "Format: array of cluster names, e.g., ['us-west', 'us-east']. "+ + "An empty list means no clusters are accessible to this tenant."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "cluster", + }, + ), + ), + ) +} + +// buildTenantHandler builds the Pulsar Admin Tenant handler function +// Migrated from the original handler logic +func (b *PulsarAdminTenantToolBuilder) buildTenantHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate resource + if resource != "tenant" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'tenant' is supported.", resource)), nil + } + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "update" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "list": + return b.handleTenantsList(admin) + case "get": + return b.handleTenantGet(admin, request) + case "create": + return b.handleTenantCreate(admin, request) + case "update": + return b.handleTenantUpdate(admin, request) + case "delete": + return b.handleTenantDelete(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + } + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminTenantToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminTenantToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Operation handler functions - migrated from the original implementation + +// handleTenantsList handles listing all tenants +func (b *PulsarAdminTenantToolBuilder) handleTenantsList(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get tenants list + tenants, err := admin.Tenants().List() + if err != nil { + return b.handleError("list tenants", err), nil + } + + return b.marshalResponse(tenants) +} + +// handleTenantGet handles getting tenant configuration +func (b *PulsarAdminTenantToolBuilder) handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + // Get tenant info + tenantInfo, err := admin.Tenants().Get(tenant) + if err != nil { + return b.handleError("get tenant", err), nil + } + + return b.marshalResponse(tenantInfo) +} + +// handleTenantCreate handles creating a new tenant +func (b *PulsarAdminTenantToolBuilder) handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + adminRoles, err := request.RequireStringSlice("adminRoles") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin roles: %v", err)), nil + } + + allowedClusters, err := request.RequireStringSlice("allowedClusters") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get allowed clusters: %v", err)), nil + } + + // Create tenant data + tenantData := utils.TenantData{ + Name: tenant, + AdminRoles: adminRoles, + AllowedClusters: allowedClusters, + } + + // Create tenant + err = admin.Tenants().Create(tenantData) + if err != nil { + return b.handleError("create tenant", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Tenant %s created successfully", tenant)), nil +} + +// handleTenantUpdate handles updating tenant configuration +func (b *PulsarAdminTenantToolBuilder) handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + adminRoles, err := request.RequireStringSlice("adminRoles") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin roles: %v", err)), nil + } + + allowedClusters, err := request.RequireStringSlice("allowedClusters") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get allowed clusters: %v", err)), nil + } + + // Create tenant data + tenantData := utils.TenantData{ + Name: tenant, + AdminRoles: adminRoles, + AllowedClusters: allowedClusters, + } + + // Update tenant + err = admin.Tenants().Update(tenantData) + if err != nil { + return b.handleError("update tenant", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Tenant %s updated successfully", tenant)), nil +} + +// handleTenantDelete handles deleting a tenant +func (b *PulsarAdminTenantToolBuilder) handleTenantDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + // Delete tenant + err = admin.Tenants().Delete(tenant) + if err != nil { + return b.handleError("delete tenant", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Tenant %s deleted successfully", tenant)), nil +} diff --git a/pkg/mcp/builders/pulsar/topic.go b/pkg/mcp/builders/pulsar/topic.go new file mode 100644 index 0000000..ef6691f --- /dev/null +++ b/pkg/mcp/builders/pulsar/topic.go @@ -0,0 +1,797 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminTopicToolBuilder implements the ToolBuilder interface for Pulsar Admin Topic tools +// It provides functionality to build Pulsar topic management tools +// /nolint:revive +type PulsarAdminTopicToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminTopicToolBuilder creates a new Pulsar Admin Topic tool builder instance +func NewPulsarAdminTopicToolBuilder() *PulsarAdminTopicToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_topic", + Version: "1.0.0", + Description: "Pulsar Admin topic management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "topic", "admin"}, + } + + features := []string{ + "pulsar-admin-topics", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminTopicToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Topic tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminTopicToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildTopicTool() + handler := b.buildTopicHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildTopicTool builds the Pulsar Admin Topic MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminTopicToolBuilder) buildTopicTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar topics. " + + "Topics are the core messaging entities in Pulsar that store and transmit messages. " + + "Pulsar supports two types of topics: persistent (durable storage with guaranteed delivery) " + + "and non-persistent (in-memory with at-most-once delivery). " + + "Topics can be partitioned for parallel processing and higher throughput, where each partition " + + "functions as an independent topic with its own message log. " + + "Topics follow a hierarchical naming structure: persistent://tenant/namespace/topic. " + + "This tool supports various operations on topics including creation, deletion, lookup, compaction, " + + "offloading, and retrieving statistics. " + + "Do not use this tool for Kafka protocol operations. Use 'kafka_admin_topics' instead." + + "Most operations require namespace admin permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- topic: A Pulsar topic\n" + + "- topics: Multiple topics within a namespace" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all topics in a namespace\n" + + "- get: Get metadata for a topic\n" + + "- create: Create a new topic with optional partitions\n" + + "- delete: Delete a topic\n" + + "- stats: Get stats for a topic\n" + + "- lookup: Look up the broker serving a topic\n" + + "- internal-stats: Get internal stats for a topic\n" + + "- internal-info: Get internal info for a topic\n" + + "- bundle-range: Get the bundle range of a topic\n" + + "- last-message-id: Get the last message ID of a topic\n" + + "- status: Get the status of a topic\n" + + "- unload: Unload a topic\n" + + "- terminate: Terminate a topic\n" + + "- compact: Trigger compaction on a topic\n" + + "- update: Update a topic partitions\n" + + "- offload: Offload data from a topic to long-term storage\n" + + "- offload-status: Check the status of data offloading for a topic" + + return mcp.NewTool("pulsar_admin_topic", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", + mcp.Description("The fully qualified topic name (format: [persistent|non-persistent]://tenant/namespace/topic). "+ + "Required for all operations except 'list'. "+ + "For partitioned topics, reference the base topic name without the partition suffix. "+ + "To operate on a specific partition, append -partition-N to the topic name."), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in the format 'tenant/namespace'. "+ + "Required for the 'list' operation. "+ + "A namespace is a logical grouping of topics within a tenant."), + ), + mcp.WithNumber("partitions", + mcp.Description("The number of partitions for the topic. Required for 'create' and 'update' operations. "+ + "Set to 0 for a non-partitioned topic. "+ + "Partitioned topics provide higher throughput by dividing message traffic across multiple brokers. "+ + "Each partition is an independent unit with its own retention and cursor positions."), + ), + mcp.WithBoolean("force", + mcp.Description("Force operation even if it disrupts producers or consumers. Optional for 'delete' operation. "+ + "When true, all producers and consumers will be forcefully disconnected. "+ + "Use with caution as it can interrupt active message processing."), + ), + mcp.WithBoolean("non-partitioned", + mcp.Description("Operate on a non-partitioned topic. Optional for 'delete' operation. "+ + "When true and operating on a partitioned topic name, only deletes the non-partitioned topic "+ + "with the same name, if it exists."), + ), + mcp.WithBoolean("partitioned", + mcp.Description("Get stats for a partitioned topic. Optional for 'stats' operation. "+ + "It has to be true if the topic is partitioned. Leave it empty or false for non-partitioned topic."), + ), + mcp.WithBoolean("per-partition", + mcp.Description("Include per-partition stats. Optional for 'stats' operation. "+ + "When true, returns statistics for each partition separately. "+ + "Requires 'partitioned' parameter to be true."), + ), + mcp.WithString("config", + mcp.Description("JSON configuration for the topic. Required for 'update' operation. "+ + "Set various policies like retention, compaction, deduplication, etc. "+ + "Use a JSON object format, e.g., '{\"deduplicationEnabled\": true, \"replication_clusters\": [\"us-west\", \"us-east\"]}'"), + ), + mcp.WithString("messageId", + mcp.Description("Message ID for operations that require a position. Required for 'offload' operation. "+ + "Format is 'ledgerId:entryId' representing a position in the topic's message log. "+ + "For offload operations, specifies the message up to which data should be moved to long-term storage."), + ), + ) +} + +// buildTopicHandler builds the Pulsar Admin Topic handler function +// Migrated from the original handler logic +func (b *PulsarAdminTopicToolBuilder) buildTopicHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "delete" || operation == "unload" || + operation == "terminate" || operation == "compact" || operation == "update" || operation == "offload") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "topic": + switch operation { + case "get": + return b.handleTopicGet(admin, request) + case "create": + return b.handleTopicCreate(admin, request) + case "delete": + return b.handleTopicDelete(admin, request) + case "stats": + return b.handleTopicStats(admin, request) + case "lookup": + return b.handleTopicLookup(admin, request) + case "internal-stats": + return b.handleTopicInternalStats(admin, request) + case "internal-info": + return b.handleTopicInternalInfo(admin, request) + case "bundle-range": + return b.handleTopicBundleRange(admin, request) + case "last-message-id": + return b.handleTopicLastMessageID(admin, request) + case "status": + return b.handleTopicStatus(admin, request) + case "unload": + return b.handleTopicUnload(admin, request) + case "terminate": + return b.handleTopicTerminate(admin, request) + case "compact": + return b.handleTopicCompact(admin, request) + case "update": + return b.handleTopicUpdate(admin, request) + case "offload": + return b.handleTopicOffload(admin, request) + case "offload-status": + return b.handleTopicOffloadStatus(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown topic operation: %s", operation)), nil + } + case "topics": + switch operation { + case "list": + return b.handleTopicsList(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown topics operation: %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown resource: %s", resource)), nil + } + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminTopicToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminTopicToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsList lists all existing topics under the specified namespace +func (b *PulsarAdminTopicToolBuilder) handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for topics.list: %v", err)), nil + } + + // Get namespace name + namespaceName, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + } + + // List topics + partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", + namespace, err)), nil + } + + // Format the output + result := struct { + PartitionedTopics []string `json:"partitionedTopics"` + NonPartitionedTopics []string `json:"nonPartitionedTopics"` + }{ + PartitionedTopics: partitionedTopics, + NonPartitionedTopics: nonPartitionedTopics, + } + + return b.marshalResponse(result) +} + +// handleTopicGet gets the metadata of an existing topic +func (b *PulsarAdminTopicToolBuilder) handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.get: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get topic metadata + metadata, err := admin.Topics().GetMetadata(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get metadata for topic '%s': %v", + topic, err)), nil + } + + return b.marshalResponse(metadata) +} + +// handleTopicStats gets the stats for an existing topic +func (b *PulsarAdminTopicToolBuilder) handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.stats: %v", err)), nil + } + + // Get optional parameters + partitioned := request.GetBool("partitioned", false) + perPartition := request.GetBool("per-partition", false) + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + namespaceName, err := utils.GetNamespaceName(topicName.GetTenant() + "/" + topicName.GetNamespace()) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // List topics to determine if this topic is partitioned + partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", + namespaceName, err)), nil + } + + if slices.Contains(partitionedTopics, topicName.String()) { + partitioned = true + } + if slices.Contains(nonPartitionedTopics, topicName.String()) { + partitioned = false + } + + var data interface{} + if partitioned { + // Get partitioned topic stats + stats, err := admin.Topics().GetPartitionedStats(*topicName, perPartition) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for partitioned topic '%s': %v", + topic, err)), nil + } + data = stats + } else { + // Get topic stats + stats, err := admin.Topics().GetStats(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for topic '%s': %v", + topic, err)), nil + } + data = stats + } + + return b.marshalResponse(data) +} + +// handleTopicLookup looks up the owner broker of a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.lookup: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Lookup topic + lookup, err := admin.Topics().Lookup(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to lookup topic '%s': %v", + topic, err)), nil + } + + return b.marshalResponse(lookup) +} + +// handleTopicCreate creates a topic with the specified number of partitions +func (b *PulsarAdminTopicToolBuilder) handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.create: %v", err)), nil + } + + partitions, err := request.RequireFloat("partitions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.create: %v", err)), nil + } + + // Validate partitions + if partitions < 0 { + return mcp.NewToolResultError("Invalid partitions number: must be non-negative. Use 0 for a non-partitioned topic."), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Create topic + err = admin.Topics().Create(*topicName, int(partitions)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create topic '%s' with %d partitions: %v", + topic, int(partitions), err)), nil + } + + if int(partitions) == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Successfully created non-partitioned topic '%s'", + topicName.String())), nil + } + return mcp.NewToolResultText(fmt.Sprintf("Successfully created topic '%s' with %d partitions", + topicName.String(), int(partitions))), nil +} + +// handleTopicDelete deletes a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.delete: %v", err)), nil + } + + // Get optional parameters + force := request.GetBool("force", false) + nonPartitioned := request.GetBool("non-partitioned", false) + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Delete topic + err = admin.Topics().Delete(*topicName, force, nonPartitioned) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete topic '%s': %v", topic, err)), nil + } + + forceStr := "" + if force { + forceStr = " forcefully" + } + + nonPartitionedStr := "" + if nonPartitioned { + nonPartitionedStr = " (non-partitioned)" + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully deleted topic '%s'%s%s", + topicName.String(), forceStr, nonPartitionedStr)), nil +} + +// handleTopicUnload unloads a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.unload: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Unload topic + err = admin.Topics().Unload(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unload topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully unloaded topic '%s'", topicName.String())), nil +} + +// handleTopicTerminate terminates a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.terminate: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Terminate topic + messageID, err := admin.Topics().Terminate(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to terminate topic '%s': %v", topic, err)), nil + } + + // Convert message ID to string + msgIDStr := fmt.Sprintf("%d:%d", messageID.LedgerID, messageID.EntryID) + + return mcp.NewToolResultText(fmt.Sprintf("Successfully terminated topic '%s' at message %s. "+ + "No more messages can be published to this topic.", + topicName.String(), msgIDStr)), nil +} + +// handleTopicCompact triggers compaction on a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.compact: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Compact topic + err = admin.Topics().Compact(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger compaction for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered compaction for topic '%s'. "+ + "Run 'topic.status' to check compaction status.", topicName.String())), nil +} + +// handleTopicInternalStats gets the internal stats for a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-stats: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get internal stats + stats, err := admin.Topics().GetInternalStats(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal stats for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(stats) +} + +// handleTopicInternalInfo gets the internal info for a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-info: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get internal info + info, err := admin.Topics().GetInternalInfo(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal info for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(info) +} + +// handleTopicBundleRange gets the bundle range of a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.bundle-range: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get bundle range + bundle, err := admin.Topics().GetBundleRange(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle range for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Bundle range for topic '%s': %s", topicName.String(), bundle)), nil +} + +// handleTopicLastMessageID gets the last message ID of a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.last-message-id: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get last message ID + messageID, err := admin.Topics().GetLastMessageID(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get last message ID for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(messageID) +} + +// handleTopicStatus gets the status of a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.status: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get topic metadata for status check + metadata, err := admin.Topics().GetMetadata(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for topic '%s': %v", topic, err)), nil + } + + // Create status object with available information + status := struct { + Metadata interface{} `json:"metadata"` + Active bool `json:"active"` + }{ + Metadata: metadata, + Active: true, // If metadata retrieval succeeded, topic is active + } + + return b.marshalResponse(status) +} + +// handleTopicUpdate updates a topic configuration +func (b *PulsarAdminTopicToolBuilder) handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.update: %v", err)), nil + } + + partitions, err := request.RequireFloat("partitions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.update: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + err = admin.Topics().Update(*topicName, int(partitions)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully updated topic '%s' partitions to %d", + topicName.String(), int(partitions))), nil +} + +// handleTopicOffload offloads data from a topic to long-term storage +func (b *PulsarAdminTopicToolBuilder) handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload: %v", err)), nil + } + + messageIDStr, err := request.RequireString("messageId") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for topic.offload: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Parse message ID from format "ledgerId:entryId" + var ledgerID, entryID int64 + if _, err := fmt.Sscanf(messageIDStr, "%d:%d", &ledgerID, &entryID); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message ID format (expected 'ledgerId:entryId'): %v. "+ + "Valid examples: '123:456'", err)), nil + } + + // Create MessageID object + messageID := utils.MessageID{ + LedgerID: ledgerID, + EntryID: entryID, + } + + // Offload topic + err = admin.Topics().Offload(*topicName, messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger offload for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered offload for topic '%s' up to message %s. "+ + "Use 'topic.offload-status' to check the offload progress.", + topicName.String(), messageIDStr)), nil +} + +// handleTopicOffloadStatus checks the status of data offloading for a topic +func (b *PulsarAdminTopicToolBuilder) handleTopicOffloadStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload-status: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get offload status + status, err := admin.Topics().OffloadStatus(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get offload status for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(status) +} diff --git a/pkg/mcp/builders/pulsar/topic_policy.go b/pkg/mcp/builders/pulsar/topic_policy.go new file mode 100644 index 0000000..db70f33 --- /dev/null +++ b/pkg/mcp/builders/pulsar/topic_policy.go @@ -0,0 +1,689 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strconv" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminTopicPolicyToolBuilder implements the ToolBuilder interface for Pulsar admin topic policies +// /nolint:revive +type PulsarAdminTopicPolicyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminTopicPolicyToolBuilder creates a new Pulsar admin topic policy tool builder instance +func NewPulsarAdminTopicPolicyToolBuilder() *PulsarAdminTopicPolicyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_topic_policy", + Version: "1.0.0", + Description: "Pulsar admin topic policy management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "topic_policy"}, + } + + features := []string{ + "pulsar-admin-topic-policy", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminTopicPolicyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin topic policy tool list +func (b *PulsarAdminTopicPolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildTopicPolicyTool() + handler := b.buildTopicPolicyHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildTopicPolicyTool builds the Pulsar Admin Topic Policy MCP tool definition +func (b *PulsarAdminTopicPolicyToolBuilder) buildTopicPolicyTool() mcp.Tool { + toolDesc := "Manage Pulsar topic policies including retention, TTL, compaction, and subscription policies. " + + "This tool provides functionality to get, set, and remove various topic-level policies in Apache Pulsar." + + operationDesc := "Operation to perform on topic policies. Available operations:\n" + + "- get_retention: Get message retention policy for a topic\n" + + "- set_retention: Set message retention policy for a topic\n" + + "- remove_retention: Remove message retention policy for a topic\n" + + "- get_ttl: Get message TTL policy for a topic\n" + + "- set_ttl: Set message TTL policy for a topic\n" + + "- remove_ttl: Remove message TTL policy for a topic\n" + + "- get_compaction: Get compaction policy for a topic\n" + + "- set_compaction: Set compaction policy for a topic\n" + + "- remove_compaction: Remove compaction policy for a topic\n" + + "- get_subscription_types: Get allowed subscription types for a topic\n" + + "- set_subscription_types: Set allowed subscription types for a topic\n" + + "- remove_subscription_types: Remove subscription types restriction for a topic" + + return mcp.NewTool("pulsar_admin_topic_policy", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", mcp.Required(), + mcp.Description("Topic name in format 'persistent://tenant/namespace/topic' or 'tenant/namespace/topic'"), + ), + mcp.WithString("retention_size", + mcp.Description("Retention size policy (e.g., '100MB', '1GB') - used with retention operations"), + ), + mcp.WithString("retention_time", + mcp.Description("Retention time policy (e.g., '1d', '24h', '1440m') - used with retention operations"), + ), + mcp.WithNumber("ttl_seconds", + mcp.Description("TTL in seconds - used with TTL operations"), + ), + mcp.WithNumber("compaction_threshold", + mcp.Description("Compaction threshold in bytes - used with compaction operations"), + ), + mcp.WithArray("subscription_types", + mcp.Description("List of allowed subscription types - used with subscription type operations"), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "subscription type: Exclusive, Shared, Failover, Key_Shared", + }, + ), + ), + ) +} + +// buildTopicPolicyHandler builds the Pulsar Admin Topic Policy handler function +func (b *PulsarAdminTopicPolicyToolBuilder) buildTopicPolicyHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Get required parameters + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError("Missing required operation parameter"), nil + } + + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError("Missing required topic parameter"), nil + } + + // Check write operation permissions + writeOps := []string{"set_retention", "remove_retention", "set_ttl", "remove_ttl", + "set_compaction", "remove_compaction", "set_subscription_types", "remove_subscription_types"} + isWriteOp := false + for _, op := range writeOps { + if operation == op { + isWriteOp = true + break + } + } + + if isWriteOp && readOnly { + return mcp.NewToolResultError("Write operations not allowed in read-only mode"), nil + } + + // Handle operations + switch operation { + case "get_retention": + return b.handleGetTopicRetention(client, topic) + case "set_retention": + return b.handleSetTopicRetention(client, topic, request) + case "remove_retention": + return b.handleRemoveTopicRetention(client, topic) + case "get_ttl": + return b.handleGetTopicTTL(client, topic) + case "set_ttl": + return b.handleSetTopicTTL(client, topic, request) + case "remove_ttl": + return b.handleRemoveTopicTTL(client, topic) + case "get_compaction": + return b.handleGetTopicCompaction(client, topic) + case "set_compaction": + return b.handleSetTopicCompaction(client, topic, request) + case "remove_compaction": + return b.handleRemoveTopicCompaction(client, topic) + case "get_subscription_types": + return b.handleGetTopicSubscriptionTypes(client, topic) + case "set_subscription_types": + return b.handleSetTopicSubscriptionTypes(client, topic, request) + case "remove_subscription_types": + return b.handleRemoveTopicSubscriptionTypes(client, topic) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + } + } +} + +// Utility functions +func (b *PulsarAdminTopicPolicyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +func (b *PulsarAdminTopicPolicyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Topic policy operation handlers +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicRetention(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Get retention policy + retention, err := client.Topics().GetRetention(*topicName, false) + if err != nil { + return b.handleError("get topic retention policy", err), nil + } + + // If no retention policy is defined + if retention == nil { + return mcp.NewToolResultText(fmt.Sprintf("No retention policy found for topic %s", topicName.String())), nil + } + + // Format the output + var retentionTime string + if retention.RetentionTimeInMinutes <= 0 { + retentionTime = "infinite time" + } else { + retentionTime = fmt.Sprintf("%d minutes", retention.RetentionTimeInMinutes) + } + + var retentionSize string + if retention.RetentionSizeInMB <= 0 { + retentionSize = "infinite size" + } else { + retentionSize = fmt.Sprintf("%d MB", retention.RetentionSizeInMB) + } + + return mcp.NewToolResultText(fmt.Sprintf("Retention policy for topic %s: %s and %s", + topicName.String(), retentionTime, retentionSize)), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicRetention(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Parse retention parameters + var retentionTimeInMinutes int64 = -1 + var retentionSizeInMB int64 = -1 + + // /nolint:revive + if retentionTime := request.GetString("retention_time", ""); retentionTime != "" { + if parsed, err := b.parseRetentionTime(retentionTime); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid retention time format: %v", err)), nil + } else { + retentionTimeInMinutes = parsed + } + } + + // /nolint:revive + if retentionSize := request.GetString("retention_size", ""); retentionSize != "" { + if parsed, err := b.parseRetentionSize(retentionSize); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid retention size format: %v", err)), nil + } else { + retentionSizeInMB = parsed + } + } + + // Create retention policy + retentionPolicy := utils.RetentionPolicies{ + RetentionTimeInMinutes: int(retentionTimeInMinutes), + RetentionSizeInMB: int64(retentionSizeInMB), + } + + // Set retention policy + err = client.Topics().SetRetention(*topicName, retentionPolicy) + if err != nil { + return b.handleError("set topic retention policy", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Retention policy set for topic %s", topicName.String())), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicRetention(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Remove retention policy + err = client.Topics().RemoveRetention(*topicName) + if err != nil { + return b.handleError("remove topic retention policy", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Retention policy removed for topic %s", topicName.String())), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicTTL(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Get message TTL + ttl, err := client.Topics().GetMessageTTL(*topicName) + if err != nil { + return b.handleError("get topic message TTL", err), nil + } + + // Check if TTL is set + if ttl == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Message TTL is not configured for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Message TTL for topic %s is %d seconds", topicName.String(), ttl)), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicTTL(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Get TTL seconds parameter + ttlSeconds, err := request.RequireFloat("ttl_seconds") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'ttl_seconds'"), nil + } + + if ttlSeconds < 0 { + return mcp.NewToolResultError("TTL seconds must be non-negative"), nil + } + + // Set message TTL + err = client.Topics().SetMessageTTL(*topicName, int(ttlSeconds)) + if err != nil { + return b.handleError("set topic message TTL", err), nil + } + + if ttlSeconds == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Message TTL disabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Message TTL set to %d seconds for topic %s", int(ttlSeconds), topicName.String())), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicTTL(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Remove message TTL + err = client.Topics().RemoveMessageTTL(*topicName) + if err != nil { + return b.handleError("remove topic message TTL", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Message TTL removed for topic %s", topicName.String())), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicCompaction(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Get compaction threshold + threshold, err := client.Topics().GetCompactionThreshold(*topicName, false) + if err != nil { + return b.handleError("get topic compaction threshold", err), nil + } + + // Format the result + if threshold == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Automatic compaction is disabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("The compaction threshold of the topic %s is %d byte(s)", + topicName.String(), threshold)), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicCompaction(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Get compaction threshold parameter + thresholdNum, err := request.RequireFloat("compaction_threshold") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'compaction_threshold'"), nil + } + + if thresholdNum < 0 { + return mcp.NewToolResultError("Compaction threshold must be non-negative"), nil + } + + threshold := int64(thresholdNum) + + // Set compaction threshold + err = client.Topics().SetCompactionThreshold(*topicName, threshold) + if err != nil { + return b.handleError("set topic compaction threshold", err), nil + } + + if threshold == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Automatic compaction disabled for topic %s", topicName.String())), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Compaction threshold set to %d bytes for topic %s", threshold, topicName.String())), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicCompaction(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Remove compaction threshold + err = client.Topics().RemoveCompactionThreshold(*topicName) + if err != nil { + return b.handleError("remove topic compaction threshold", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Compaction threshold removed for topic %s", topicName.String())), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicSubscriptionTypes(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Check if the API supports subscription types management + // Some versions of pulsarctl may not have this functionality + topicsClient := client.Topics() + + // Try to use reflection or type assertion to check if the method exists + type SubscriptionTypesGetter interface { + GetSubscriptionTypesEnabled(utils.TopicName) ([]string, error) + } + + if getter, ok := topicsClient.(SubscriptionTypesGetter); ok { + subscriptionTypes, err := getter.GetSubscriptionTypesEnabled(*topicName) + if err != nil { + return b.handleError("get topic subscription types", err), nil + } + + if len(subscriptionTypes) == 0 { + return mcp.NewToolResultText(fmt.Sprintf("No subscription type restrictions configured for topic %s (all types allowed)", topicName.String())), nil + } + + return b.marshalResponse(map[string]interface{}{ + "topic": topicName.String(), + "subscriptionTypes": subscriptionTypes, + }) + } + + // Fallback: API not available in current version + return mcp.NewToolResultError("Subscription types policy management is not available in the current pulsarctl API version. " + + "This feature may require a newer version of Pulsar or pulsarctl."), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicSubscriptionTypes(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Get subscription types parameter + subscriptionTypes, err := request.RequireStringSlice("subscription_types") + if err != nil { + return mcp.NewToolResultError("Missing required parameter 'subscription_types'. " + + "Please provide an array of subscription types: Exclusive, Shared, Failover, Key_Shared"), nil + } + + // Validate subscription types + validTypes := map[string]bool{ + "Exclusive": true, + "Shared": true, + "Failover": true, + "Key_Shared": true, + } + + var validatedTypes []string + for _, subType := range subscriptionTypes { + if !validTypes[subType] { + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription type: %s. Valid types are: Exclusive, Shared, Failover, Key_Shared", subType)), nil + } + validatedTypes = append(validatedTypes, subType) + } + + if len(validatedTypes) == 0 { + return mcp.NewToolResultError("At least one valid subscription type must be specified"), nil + } + + // Check if the API supports subscription types management + topicsClient := client.Topics() + + // Try to use reflection or type assertion to check if the method exists + type SubscriptionTypesSetter interface { + SetSubscriptionTypesEnabled(utils.TopicName, []string) error + } + + if setter, ok := topicsClient.(SubscriptionTypesSetter); ok { + err := setter.SetSubscriptionTypesEnabled(*topicName, validatedTypes) + if err != nil { + return b.handleError("set topic subscription types", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Subscription types set for topic %s: %s", + topicName.String(), strings.Join(validatedTypes, ", "))), nil + } + + // Fallback: API not available in current version + return mcp.NewToolResultError("Subscription types policy management is not available in the current pulsarctl API version. " + + "This feature may require a newer version of Pulsar or pulsarctl."), nil +} + +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicSubscriptionTypes(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return b.handleError("parse topic name", err), nil + } + + // Check if the API supports subscription types management + topicsClient := client.Topics() + + // Try to use reflection or type assertion to check if the method exists + type SubscriptionTypesRemover interface { + RemoveSubscriptionTypesEnabled(utils.TopicName) error + } + + if remover, ok := topicsClient.(SubscriptionTypesRemover); ok { + err := remover.RemoveSubscriptionTypesEnabled(*topicName) + if err != nil { + return b.handleError("remove topic subscription types policy", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Subscription types policy removed for topic %s (all types now allowed)", topicName.String())), nil + } + + // Fallback: API not available in current version + return mcp.NewToolResultError("Subscription types policy management is not available in the current pulsarctl API version. " + + "This feature may require a newer version of Pulsar or pulsarctl."), nil +} + +// Utility functions for parsing retention parameters + +// parseRetentionTime parses retention time strings like "1d", "24h", "1440m" and returns minutes +func (b *PulsarAdminTopicPolicyToolBuilder) parseRetentionTime(retentionTime string) (int64, error) { + if retentionTime == "" { + return -1, nil + } + + retentionTime = strings.TrimSpace(retentionTime) + if retentionTime == "0" { + return 0, nil + } + if retentionTime == "-1" { + return -1, nil + } + + // Parse time unit + if len(retentionTime) < 2 { + return -1, fmt.Errorf("invalid retention time format: %s", retentionTime) + } + + valueStr := retentionTime[:len(retentionTime)-1] + unit := retentionTime[len(retentionTime)-1:] + + value, err := strconv.ParseFloat(valueStr, 64) + if err != nil { + return -1, fmt.Errorf("invalid retention time value: %s", valueStr) + } + + switch unit { + case "m": + return int64(value), nil + case "h": + return int64(value * 60), nil + case "d": + return int64(value * 60 * 24), nil + default: + return -1, fmt.Errorf("invalid retention time unit: %s (use m, h, or d)", unit) + } +} + +// parseRetentionSize parses retention size strings like "100MB", "1GB" and returns MB +func (b *PulsarAdminTopicPolicyToolBuilder) parseRetentionSize(retentionSize string) (int64, error) { + if retentionSize == "" { + return -1, nil + } + + retentionSize = strings.TrimSpace(strings.ToUpper(retentionSize)) + if retentionSize == "0" { + return 0, nil + } + if retentionSize == "-1" { + return -1, nil + } + + // Parse size unit + var value float64 + var unit string + var err error + // /nolint:gocritic + if strings.HasSuffix(retentionSize, "TB") || strings.HasSuffix(retentionSize, "T") { + if strings.HasSuffix(retentionSize, "TB") { + valueStr := retentionSize[:len(retentionSize)-2] + value, err = strconv.ParseFloat(valueStr, 64) + unit = "TB" + } else { + valueStr := retentionSize[:len(retentionSize)-1] + value, err = strconv.ParseFloat(valueStr, 64) + unit = "T" + } + } else if strings.HasSuffix(retentionSize, "GB") || strings.HasSuffix(retentionSize, "G") { + if strings.HasSuffix(retentionSize, "GB") { + valueStr := retentionSize[:len(retentionSize)-2] + value, err = strconv.ParseFloat(valueStr, 64) + unit = "GB" + } else { + valueStr := retentionSize[:len(retentionSize)-1] + value, err = strconv.ParseFloat(valueStr, 64) + unit = "G" + } + } else if strings.HasSuffix(retentionSize, "MB") || strings.HasSuffix(retentionSize, "M") { + if strings.HasSuffix(retentionSize, "MB") { + valueStr := retentionSize[:len(retentionSize)-2] + value, err = strconv.ParseFloat(valueStr, 64) + unit = "MB" + } else { + valueStr := retentionSize[:len(retentionSize)-1] + value, err = strconv.ParseFloat(valueStr, 64) + unit = "M" + } + } else { + return -1, fmt.Errorf("invalid retention size format: %s (use MB, GB, or TB)", retentionSize) + } + + if err != nil { + return -1, fmt.Errorf("invalid retention size value: %v", err) + } + + switch unit { + case "MB", "M": + return int64(value), nil + case "GB", "G": + return int64(value * 1024), nil + case "TB", "T": + return int64(value * 1024 * 1024), nil + default: + return -1, fmt.Errorf("invalid retention size unit: %s", unit) + } +} diff --git a/pkg/mcp/builders/registry.go b/pkg/mcp/builders/registry.go new file mode 100644 index 0000000..4bdbe0d --- /dev/null +++ b/pkg/mcp/builders/registry.go @@ -0,0 +1,246 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package builders + +import ( + "context" + "fmt" + "sort" + "sync" + + "github.com/mark3labs/mcp-go/server" +) + +// ToolRegistry manages the registration and building of all tool builders +// It provides centralized management for tool builder registration and tool construction +type ToolRegistry struct { + mu sync.RWMutex + builders map[string]ToolBuilder + metadata map[string]ToolMetadata +} + +// NewToolRegistry creates a new tool registry instance +func NewToolRegistry() *ToolRegistry { + return &ToolRegistry{ + builders: make(map[string]ToolBuilder), + metadata: make(map[string]ToolMetadata), + } +} + +// Register registers a tool builder +// Returns an error if the builder already exists +func (r *ToolRegistry) Register(builder ToolBuilder) error { + r.mu.Lock() + defer r.mu.Unlock() + + name := builder.GetName() + if _, exists := r.builders[name]; exists { + return fmt.Errorf("builder %s already registered", name) + } + + r.builders[name] = builder + + // Try to get metadata if the builder supports it + // Use interface method instead of type assertion + if metadataProvider, ok := builder.(interface{ GetMetadata() ToolMetadata }); ok { + r.metadata[name] = metadataProvider.GetMetadata() + } + + return nil +} + +// MustRegister registers a tool builder and panics if it fails +func (r *ToolRegistry) MustRegister(builder ToolBuilder) { + if err := r.Register(builder); err != nil { + panic(fmt.Sprintf("failed to register builder: %v", err)) + } +} + +// GetBuilder retrieves the tool builder with the specified name +func (r *ToolRegistry) GetBuilder(name string) (ToolBuilder, bool) { + r.mu.RLock() + defer r.mu.RUnlock() + + builder, exists := r.builders[name] + return builder, exists +} + +// ListBuilders returns a list of all registered builder names +func (r *ToolRegistry) ListBuilders() []string { + r.mu.RLock() + defer r.mu.RUnlock() + + names := make([]string, 0, len(r.builders)) + for name := range r.builders { + names = append(names, name) + } + + // Sort to ensure consistent output + sort.Strings(names) + return names +} + +// GetMetadata retrieves the metadata for the specified builder +func (r *ToolRegistry) GetMetadata(name string) (ToolMetadata, bool) { + r.mu.RLock() + defer r.mu.RUnlock() + + metadata, exists := r.metadata[name] + return metadata, exists +} + +// ListMetadata returns metadata for all registered builders +func (r *ToolRegistry) ListMetadata() map[string]ToolMetadata { + r.mu.RLock() + defer r.mu.RUnlock() + + result := make(map[string]ToolMetadata, len(r.metadata)) + for name, metadata := range r.metadata { + result[name] = metadata + } + return result +} + +// BuildAll builds tools for all specified configurations +// Returns all successfully built tools and any errors encountered +func (r *ToolRegistry) BuildAll(configs map[string]ToolBuildConfig) ([]server.ServerTool, error) { + r.mu.RLock() + defer r.mu.RUnlock() + + var allTools []server.ServerTool + var errors []error + + for name, config := range configs { + if builder, exists := r.builders[name]; exists { + if err := builder.Validate(config); err != nil { + errors = append(errors, fmt.Errorf("validation failed for %s: %w", name, err)) + continue + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + errors = append(errors, fmt.Errorf("build failed for %s: %w", name, err)) + continue + } + + allTools = append(allTools, tools...) + } else { + errors = append(errors, fmt.Errorf("builder %s not found", name)) + } + } + + if len(errors) > 0 { + return allTools, fmt.Errorf("build errors: %v", errors) + } + + return allTools, nil +} + +// BuildSingle builds tools for a single tool builder +func (r *ToolRegistry) BuildSingle(name string, config ToolBuildConfig) ([]server.ServerTool, error) { + r.mu.RLock() + builder, exists := r.builders[name] + r.mu.RUnlock() + + if !exists { + return nil, fmt.Errorf("builder %s not found", name) + } + + if err := builder.Validate(config); err != nil { + return nil, fmt.Errorf("validation failed: %w", err) + } + + return builder.BuildTools(context.Background(), config) +} + +// BuildAllWithFeatures builds all relevant tools based on the feature list +// Automatically creates configuration for each builder +func (r *ToolRegistry) BuildAllWithFeatures(readOnly bool, features []string) ([]server.ServerTool, error) { + r.mu.RLock() + builders := make(map[string]ToolBuilder, len(r.builders)) + for name, builder := range r.builders { + builders[name] = builder + } + r.mu.RUnlock() + + var allTools []server.ServerTool + var errors []error + + for name, builder := range builders { + config := ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + // Check if the builder needs these features + // Use interface method instead of type assertion + if featureChecker, ok := builder.(interface{ HasAnyRequiredFeature([]string) bool }); ok { + if !featureChecker.HasAnyRequiredFeature(features) { + continue // Skip builders that don't need these features + } + } + + if err := builder.Validate(config); err != nil { + // Validation failure is not an error, just skip + continue + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + errors = append(errors, fmt.Errorf("build failed for %s: %w", name, err)) + continue + } + + allTools = append(allTools, tools...) + } + + if len(errors) > 0 { + return allTools, fmt.Errorf("build errors: %v", errors) + } + + return allTools, nil +} + +// Count returns the number of registered builders +func (r *ToolRegistry) Count() int { + r.mu.RLock() + defer r.mu.RUnlock() + return len(r.builders) +} + +// Clear removes all registered builders +func (r *ToolRegistry) Clear() { + r.mu.Lock() + defer r.mu.Unlock() + + r.builders = make(map[string]ToolBuilder) + r.metadata = make(map[string]ToolMetadata) +} + +// Unregister removes the specified tool builder +func (r *ToolRegistry) Unregister(name string) bool { + r.mu.Lock() + defer r.mu.Unlock() + + if _, exists := r.builders[name]; exists { + delete(r.builders, name) + delete(r.metadata, name) + return true + } + return false +} diff --git a/pkg/mcp/builders/registry_test.go b/pkg/mcp/builders/registry_test.go new file mode 100644 index 0000000..3e3b325 --- /dev/null +++ b/pkg/mcp/builders/registry_test.go @@ -0,0 +1,345 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package builders + +import ( + "context" + "fmt" + "testing" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +// MockToolBuilder is a mock builder for testing purposes +type MockToolBuilder struct { + name string + features []string + tools []server.ServerTool + err error + metadata ToolMetadata +} + +func NewMockToolBuilder(name string, features []string) *MockToolBuilder { + return &MockToolBuilder{ + name: name, + features: features, + metadata: ToolMetadata{ + Name: name, + Version: "1.0.0", + Description: fmt.Sprintf("Mock tool builder for %s", name), + Category: "test", + }, + tools: []server.ServerTool{ + { + Tool: mcp.NewTool(name, + mcp.WithDescription(fmt.Sprintf("Mock tool %s", name)), + ), + Handler: func(_ context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return mcp.NewToolResultText(fmt.Sprintf("Mock response from %s", name)), nil + }, + }, + }, + } +} + +func (m *MockToolBuilder) GetName() string { + return m.name +} + +func (m *MockToolBuilder) GetRequiredFeatures() []string { + return m.features +} + +func (m *MockToolBuilder) BuildTools(_ context.Context, _ ToolBuildConfig) ([]server.ServerTool, error) { + if m.err != nil { + return nil, m.err + } + return m.tools, nil +} + +func (m *MockToolBuilder) Validate(config ToolBuildConfig) error { + // Simple validation: check if any required feature is present + for _, required := range m.features { + for _, provided := range config.Features { + if required == provided { + return nil + } + } + } + return fmt.Errorf("no matching features found") +} + +func (m *MockToolBuilder) GetMetadata() ToolMetadata { + return m.metadata +} + +func (m *MockToolBuilder) SetError(err error) { + m.err = err +} + +func TestToolRegistry(t *testing.T) { + t.Run("NewToolRegistry", func(t *testing.T) { + registry := NewToolRegistry() + assert.NotNil(t, registry) + assert.Equal(t, 0, registry.Count()) + }) + + t.Run("Register_Success", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("test_tool", []string{"test_feature"}) + + ///nolint:errcheck + err := registry.Register(builder) + assert.NoError(t, err) + assert.Equal(t, 1, registry.Count()) + }) + + t.Run("Register_Duplicate", func(t *testing.T) { + registry := NewToolRegistry() + builder1 := NewMockToolBuilder("duplicate_tool", []string{"feature1"}) + builder2 := NewMockToolBuilder("duplicate_tool", []string{"feature2"}) + + err1 := registry.Register(builder1) + err2 := registry.Register(builder2) + + assert.NoError(t, err1) + assert.Error(t, err2) + assert.Contains(t, err2.Error(), "already registered") + assert.Equal(t, 1, registry.Count()) + }) + + t.Run("MustRegister_Success", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("must_register_tool", []string{"feature"}) + + assert.NotPanics(t, func() { + registry.MustRegister(builder) + }) + assert.Equal(t, 1, registry.Count()) + }) + + t.Run("MustRegister_Panic", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("panic_tool", []string{"feature"}) + + ///nolint:errcheck + registry.Register(builder) // First registration + assert.Panics(t, func() { + registry.MustRegister(builder) // Duplicate registration should panic + }) + }) + + t.Run("GetBuilder_Success", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("get_test_tool", []string{"feature"}) + ///nolint:errcheck + registry.Register(builder) + + retrieved, exists := registry.GetBuilder("get_test_tool") + assert.True(t, exists) + assert.Equal(t, builder, retrieved) + }) + + t.Run("GetBuilder_NotFound", func(t *testing.T) { + registry := NewToolRegistry() + + _, exists := registry.GetBuilder("nonexistent_tool") + assert.False(t, exists) + }) + + t.Run("ListBuilders", func(t *testing.T) { + registry := NewToolRegistry() + builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) + builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) + + ///nolint:errcheck + registry.Register(builder1) + ///nolint:errcheck + registry.Register(builder2) + + names := registry.ListBuilders() + assert.Len(t, names, 2) + assert.Contains(t, names, "tool1") + assert.Contains(t, names, "tool2") + // Should be sorted + assert.Equal(t, []string{"tool1", "tool2"}, names) + }) + + t.Run("GetMetadata", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("metadata_tool", []string{"feature"}) + ///nolint:errcheck + registry.Register(builder) + + metadata, exists := registry.GetMetadata("metadata_tool") + assert.True(t, exists) + assert.Equal(t, "metadata_tool", metadata.Name) + assert.Equal(t, "1.0.0", metadata.Version) + }) + + t.Run("ListMetadata", func(t *testing.T) { + registry := NewToolRegistry() + builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) + builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) + + ///nolint:errcheck + registry.Register(builder1) + ///nolint:errcheck + registry.Register(builder2) + + metadata := registry.ListMetadata() + assert.Len(t, metadata, 2) + assert.Contains(t, metadata, "tool1") + assert.Contains(t, metadata, "tool2") + }) + + t.Run("BuildSingle_Success", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("single_tool", []string{"test_feature"}) + ///nolint:errcheck + registry.Register(builder) + + config := ToolBuildConfig{ + Features: []string{"test_feature"}, + } + + tools, err := registry.BuildSingle("single_tool", config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "single_tool", tools[0].Tool.Name) + }) + + t.Run("BuildSingle_NotFound", func(t *testing.T) { + registry := NewToolRegistry() + + config := ToolBuildConfig{ + Features: []string{"test_feature"}, + } + + _, err := registry.BuildSingle("nonexistent_tool", config) + assert.Error(t, err) + assert.Contains(t, err.Error(), "not found") + }) + + t.Run("BuildSingle_ValidationFailed", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("validation_tool", []string{"required_feature"}) + ///nolint:errcheck + registry.Register(builder) + + config := ToolBuildConfig{ + Features: []string{"wrong_feature"}, + } + + _, err := registry.BuildSingle("validation_tool", config) + assert.Error(t, err) + assert.Contains(t, err.Error(), "validation failed") + }) + + t.Run("BuildAll_Success", func(t *testing.T) { + registry := NewToolRegistry() + builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) + builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) + + ///nolint:errcheck + registry.Register(builder1) + ///nolint:errcheck + registry.Register(builder2) + + configs := map[string]ToolBuildConfig{ + "tool1": {Features: []string{"feature1"}}, + "tool2": {Features: []string{"feature2"}}, + } + + tools, err := registry.BuildAll(configs) + require.NoError(t, err) + assert.Len(t, tools, 2) + }) + + t.Run("BuildAll_WithErrors", func(t *testing.T) { + registry := NewToolRegistry() + builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) + builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) + + builder2.SetError(fmt.Errorf("build error")) + + ///nolint:errcheck + registry.Register(builder1) + ///nolint:errcheck + registry.Register(builder2) + + configs := map[string]ToolBuildConfig{ + "tool1": {Features: []string{"feature1"}}, + "tool2": {Features: []string{"feature2"}}, + } + + tools, err := registry.BuildAll(configs) + assert.Error(t, err) + assert.Len(t, tools, 1) // Only tool1 should succeed + }) + + t.Run("BuildAllWithFeatures", func(t *testing.T) { + registry := NewToolRegistry() + builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) + builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) + builder3 := NewMockToolBuilder("tool3", []string{"feature3"}) + + ///nolint:errcheck + registry.Register(builder1) + ///nolint:errcheck + registry.Register(builder2) + ///nolint:errcheck + registry.Register(builder3) + + // Only provide feature1 and feature2 + tools, err := registry.BuildAllWithFeatures(false, []string{"feature1", "feature2"}) + require.NoError(t, err) + assert.Len(t, tools, 2) // tool3 should be skipped + }) + + t.Run("Clear", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("clear_tool", []string{"feature"}) + ///nolint:errcheck + registry.Register(builder) + + assert.Equal(t, 1, registry.Count()) + + registry.Clear() + assert.Equal(t, 0, registry.Count()) + }) + + t.Run("Unregister", func(t *testing.T) { + registry := NewToolRegistry() + builder := NewMockToolBuilder("unregister_tool", []string{"feature"}) + ///nolint:errcheck + registry.Register(builder) + + assert.Equal(t, 1, registry.Count()) + + removed := registry.Unregister("unregister_tool") + assert.True(t, removed) + assert.Equal(t, 0, registry.Count()) + + removed = registry.Unregister("nonexistent_tool") + assert.False(t, removed) + }) +} diff --git a/pkg/mcp/context.go b/pkg/mcp/context.go deleted file mode 100644 index e258bf3..0000000 --- a/pkg/mcp/context.go +++ /dev/null @@ -1,44 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -package mcp - -var McpContextPulsarInstance *string -var McpContextPulsarCluster *string -var McpContextOrganization *string - -func SetMcpContext(instance, cluster, organization string) { - McpContextPulsarInstance = &instance - McpContextPulsarCluster = &cluster - McpContextOrganization = &organization -} - -// GetMcpContext returns the currently configured StreamNative Cloud context. -// If the context has not been fully configured, it returns empty strings. -func GetMcpContext() (string, string, string) { - if McpContextPulsarInstance == nil || McpContextPulsarCluster == nil || McpContextOrganization == nil { - return "", "", "" - } - - return *McpContextPulsarInstance, *McpContextPulsarCluster, *McpContextOrganization -} - -func ResetMcpContext() { - McpContextPulsarInstance = nil - McpContextPulsarCluster = nil - McpContextOrganization = nil -} diff --git a/pkg/mcp/context_test.go b/pkg/mcp/context_test.go deleted file mode 100644 index 3bfeaef..0000000 --- a/pkg/mcp/context_test.go +++ /dev/null @@ -1,20 +0,0 @@ -package mcp - -import "testing" - -func TestGetMcpContextUnset(t *testing.T) { - ResetMcpContext() - instance, cluster, org := GetMcpContext() - if instance != "" || cluster != "" || org != "" { - t.Fatalf("expected empty context when unset, got %q %q %q", instance, cluster, org) - } -} - -func TestGetMcpContextSet(t *testing.T) { - ResetMcpContext() - SetMcpContext("inst", "cluster", "org") - instance, cluster, org := GetMcpContext() - if instance != "inst" || cluster != "cluster" || org != "org" { - t.Fatalf("expected context to be returned, got %q %q %q", instance, cluster, org) - } -} diff --git a/pkg/mcp/ctx.go b/pkg/mcp/ctx.go new file mode 100644 index 0000000..6589694 --- /dev/null +++ b/pkg/mcp/ctx.go @@ -0,0 +1,70 @@ +package mcp + +import ( + "context" + + "github.com/streamnative/streamnative-mcp-server/pkg/config" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + internalContext "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// WithSNCloudOrganization sets the SNCloud organization in the context +func WithSNCloudOrganization(ctx context.Context, organization string) context.Context { + return internalContext.WithSNCloudOrganization(ctx, organization) +} + +// WithSNCloudInstance sets the SNCloud instance in the context +func WithSNCloudInstance(ctx context.Context, instance string) context.Context { + return internalContext.WithSNCloudInstance(ctx, instance) +} + +// WithSNCloudCluster sets the SNCloud cluster in the context +func WithSNCloudCluster(ctx context.Context, cluster string) context.Context { + return internalContext.WithSNCloudCluster(ctx, cluster) +} + +// WithSNCloudSession sets the SNCloud session in the context +func WithSNCloudSession(ctx context.Context, session *config.Session) context.Context { + return internalContext.WithSNCloudSession(ctx, session) +} + +// WithPulsarSession sets the Pulsar session in the context +func WithPulsarSession(ctx context.Context, session *pulsar.Session) context.Context { + return internalContext.WithPulsarSession(ctx, session) +} + +// WithKafkaSession sets the Kafka session in the context +func WithKafkaSession(ctx context.Context, session *kafka.Session) context.Context { + return internalContext.WithKafkaSession(ctx, session) +} + +// GetSNCloudOrganization gets the SNCloud organization from the context +func GetSNCloudOrganization(ctx context.Context) string { + return internalContext.GetSNCloudOrganization(ctx) +} + +// GetSNCloudInstance gets the SNCloud instance from the context +func GetSNCloudInstance(ctx context.Context) string { + return internalContext.GetSNCloudInstance(ctx) +} + +// GetSNCloudCluster gets the SNCloud cluster from the context +func GetSNCloudCluster(ctx context.Context) string { + return internalContext.GetSNCloudCluster(ctx) +} + +// GetSNCloudSession gets the SNCloud session from the context +func GetSNCloudSession(ctx context.Context) *config.Session { + return internalContext.GetSNCloudSession(ctx) +} + +// GetPulsarSession gets the Pulsar session from the context +func GetPulsarSession(ctx context.Context) *pulsar.Session { + return internalContext.GetPulsarSession(ctx) +} + +// GetKafkaSession gets the Kafka session from the context +func GetKafkaSession(ctx context.Context) *kafka.Session { + return internalContext.GetKafkaSession(ctx) +} diff --git a/pkg/mcp/internal/context/ctx.go b/pkg/mcp/internal/context/ctx.go new file mode 100644 index 0000000..8f25e36 --- /dev/null +++ b/pkg/mcp/internal/context/ctx.go @@ -0,0 +1,124 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package context + +import ( + "context" + + "github.com/streamnative/streamnative-mcp-server/pkg/config" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +type contextKey string + +const ( + SNCloudOrganizationContextKey contextKey = "sncloud_organization" + SNCloudInstanceContextKey contextKey = "sncloud_instance" + SNCloudClusterContextKey contextKey = "sncloud_cluster" + SNCloudSessionContextKey contextKey = "sncloud_session" + PulsarSessionContextKey contextKey = "pulsar_session" + KafkaSessionContextKey contextKey = "kafka_session" +) + +// WithSNCloudOrganization sets the SNCloud organization in the context +func WithSNCloudOrganization(ctx context.Context, organization string) context.Context { + return context.WithValue(ctx, SNCloudOrganizationContextKey, organization) +} + +// WithSNCloudInstance sets the SNCloud instance in the context +func WithSNCloudInstance(ctx context.Context, instance string) context.Context { + return context.WithValue(ctx, SNCloudInstanceContextKey, instance) +} + +// WithSNCloudCluster sets the SNCloud cluster in the context +func WithSNCloudCluster(ctx context.Context, cluster string) context.Context { + return context.WithValue(ctx, SNCloudClusterContextKey, cluster) +} + +// WithSNCloudSession sets the SNCloud session in the context +func WithSNCloudSession(ctx context.Context, session *config.Session) context.Context { + return context.WithValue(ctx, SNCloudSessionContextKey, session) +} + +// WithPulsarSession sets the Pulsar session in the context +func WithPulsarSession(ctx context.Context, session *pulsar.Session) context.Context { + return context.WithValue(ctx, PulsarSessionContextKey, session) +} + +// WithKafkaSession sets the Kafka session in the context +func WithKafkaSession(ctx context.Context, session *kafka.Session) context.Context { + return context.WithValue(ctx, KafkaSessionContextKey, session) +} + +// GetSNCloudOrganization gets the SNCloud organization from the context +func GetSNCloudOrganization(ctx context.Context) string { + if val := ctx.Value(SNCloudOrganizationContextKey); val != nil { + if str, ok := val.(string); ok { + return str + } + } + return "" +} + +// GetSNCloudInstance gets the SNCloud instance from the context +func GetSNCloudInstance(ctx context.Context) string { + if val := ctx.Value(SNCloudInstanceContextKey); val != nil { + if str, ok := val.(string); ok { + return str + } + } + return "" +} + +// GetSNCloudCluster gets the SNCloud cluster from the context +func GetSNCloudCluster(ctx context.Context) string { + if val := ctx.Value(SNCloudClusterContextKey); val != nil { + if str, ok := val.(string); ok { + return str + } + } + return "" +} + +// GetSNCloudSession gets the SNCloud session from the context +func GetSNCloudSession(ctx context.Context) *config.Session { + session, ok := ctx.Value(SNCloudSessionContextKey).(*config.Session) + if !ok { + return nil + } + return session +} + +// GetPulsarSession gets the Pulsar session from the context +func GetPulsarSession(ctx context.Context) *pulsar.Session { + session, ok := ctx.Value(PulsarSessionContextKey).(*pulsar.Session) + if !ok { + return nil + } + return session +} + +// GetKafkaSession gets the Kafka session from the context +func GetKafkaSession(ctx context.Context) *kafka.Session { + session, ok := ctx.Value(KafkaSessionContextKey).(*kafka.Session) + if !ok { + return nil + } + return session +} diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go index a5ad24f..7ca9d84 100644 --- a/pkg/mcp/kafka_admin_connect_tools.go +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -19,390 +19,28 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) func KafkaAdminAddKafkaConnectTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeatureKafkaAdminKafkaConnect)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) && !slices.Contains(features, string(FeatureKafkaAdmin)) { - return - } - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- kafka-connect-cluster: A single Kafka Connect cluster that manages connectors and tasks.\n" + - "- connector: A single Kafka Connect connector instance that moves data between Kafka and external systems.\n" + - "- connectors: Collection of all Kafka Connect connectors in a cluster.\n" + - "- connector-plugins: Collection of all Kafka Connect connector plugins, StreamNative Cloud provides a set of built-in connectors via this resource." - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all connectors or connector plugins in a cluster.\n" + - "- get: Retrieve detailed information about a Kafka Connect cluster or specific connector.\n" + - "- create: Create a new connector with specified configuration.\n" + - "- update: Modify an existing connector's configuration.\n" + - "- delete: Remove a connector from the Kafka Connect cluster.\n" + - "- restart: Restart a running connector (useful after failures or configuration changes).\n" + - "- pause: Temporarily stop a connector from processing data.\n" + - "- resume: Continue processing with a previously paused connector." - - toolDesc := "Unified tool for managing Apache Kafka Connect.\n" + - "Kafka Connect is a framework for connecting Kafka with external systems such as databases, key-value stores, search indexes, and file systems. " + - "It provides a standardized way to stream data in and out of Kafka, without requiring custom integration code.\n\n" + - "Key concepts in Kafka Connect:\n\n" + - "- Connectors: The high-level abstraction that coordinates data streaming by managing tasks\n" + - "- Tasks: The implementation of how data is copied to or from Kafka\n" + - "- Workers: The running processes that execute connectors and tasks\n" + - "- Plugins: Reusable connector implementations for specific external systems\n" + - "- Source Connectors: Import data from external systems into Kafka topics\n" + - "- Sink Connectors: Export data from Kafka topics to external systems\n\n" + - "Kafka Connect simplifies data integration, enables scalable and reliable streaming pipelines, " + - "and reduces the operational burden of managing data flows.\n\n" + - "Usage Examples:\n\n" + - "1. List all connectors in the Kafka Connect cluster:\n" + - " resource: \"connectors\"\n" + - " operation: \"list\"\n\n" + - "2. Get information about a specific connector:\n" + - " resource: \"connector\"\n" + - " operation: \"get\"\n" + - " name: \"my-jdbc-source\"\n\n" + - "3. Create a new JDBC source connector:\n" + - " resource: \"connector\"\n" + - " operation: \"create\"\n" + - " name: \"my-jdbc-source\"\n" + - " config: {\n" + - " \"connector.class\": \"io.confluent.connect.jdbc.JdbcSourceConnector\",\n" + - " \"connection.url\": \"jdbc:mysql://mysql:3306/mydb\",\n" + - " \"connection.user\": \"user\",\n" + - " \"connection.password\": \"password\",\n" + - " \"topic.prefix\": \"mysql-\",\n" + - " \"table.whitelist\": \"users,orders\",\n" + - " \"mode\": \"incrementing\",\n" + - " \"incrementing.column.name\": \"id\",\n" + - " \"tasks.max\": \"1\"\n" + - " }\n\n" + - "4. Update an existing connector's configuration:\n" + - " resource: \"connector\"\n" + - " operation: \"update\"\n" + - " name: \"my-jdbc-source\"\n" + - " config: {\n" + - " \"connector.class\": \"io.confluent.connect.jdbc.JdbcSourceConnector\",\n" + - " \"tasks.max\": \"2\",\n" + - " \"table.whitelist\": \"users,orders,products\"\n" + - " }\n\n" + - "5. Delete a connector:\n" + - " resource: \"connector\"\n" + - " operation: \"delete\"\n" + - " name: \"my-jdbc-source\"\n\n" + - "6. Restart a connector after configuration changes or errors:\n" + - " resource: \"connector\"\n" + - " operation: \"restart\"\n" + - " name: \"my-jdbc-source\"\n\n" + - "7. Pause a connector temporarily:\n" + - " resource: \"connector\"\n" + - " operation: \"pause\"\n" + - " name: \"my-jdbc-source\"\n\n" + - "8. Resume a paused connector:\n" + - " resource: \"connector\"\n" + - " operation: \"resume\"\n" + - " name: \"my-jdbc-source\"\n\n" + - "9. List all available connector plugins:\n" + - " resource: \"connector-plugins\"\n" + - " operation: \"list\"\n\n" + - "10. Get information about the Kafka Connect cluster:\n" + - " resource: \"kafka-connect-cluster\"\n" + - " operation: \"get\"\n\n" + - "This tool requires appropriate Kafka Connect permissions." - - kafkaConnectTool := mcp.NewTool("kafka_admin_connect", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("name", - mcp.Description("The name of the Kafka Connect connector to operate on. "+ - "Required for 'get', 'create', 'update', 'delete', 'restart', 'pause', and 'resume' operations on the 'connector' resource. "+ - "Must be unique within the Kafka Connect cluster. "+ - "Should be descriptive of the connector's purpose, such as 'mysql-inventory-source' or 'elasticsearch-logs-sink'.")), - mcp.WithObject("config", - mcp.Description("The configuration settings for the connector. "+ - "Required for 'create' and 'update' operations on the 'connector' resource. "+ - "Must include 'connector.class' which specifies the connector implementation. "+ - "Common configurations include:\n"+ - "- connector.class: The Java class implementing the connector\n"+ - "- tasks.max: Maximum number of tasks to use for this connector\n"+ - "- topics/topic.regex/topic.prefix: Topic specification (varies by connector)\n"+ - "- key.converter/value.converter: Data format converters\n"+ - "- transforms: Optional transformations to apply to data\n"+ - "Additional fields depend on the specific connector type being used.")), - ) - - s.AddTool(kafkaConnectTool, handleKafkaConnectTool(readOnly)) -} - -func handleKafkaConnectTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "create" || operation == "update" || operation == "delete" || operation == "restart" || operation == "pause" || operation == "resume") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Create the admin client - admin, err := kafka.GetKafkaConnectClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on resource and operation - switch resource { - case "kafka-connect-cluster": - switch operation { - case "get": - return handleKafkaConnectClusterGet(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'kafka-connect-cluster': %s", operation)), nil - } - case "connectors": - switch operation { - case "list": - return handleKafkaConnectorsList(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connectors': %s", operation)), nil - } - case "connector": - switch operation { - case "get": - return handleKafkaConnectorGet(ctx, admin, request) - case "create": - return handleKafkaConnectorCreate(ctx, admin, request) - case "update": - return handleKafkaConnectorUpdate(ctx, admin, request) - case "delete": - return handleKafkaConnectorDelete(ctx, admin, request) - case "restart": - return handleKafkaConnectorRestart(ctx, admin, request) - case "pause": - return handleKafkaConnectorPause(ctx, admin, request) - case "resume": - return handleKafkaConnectorResume(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connector': %s", operation)), nil - } - case "connector-plugins": - switch operation { - case "list": - return handleKafkaConnectorPluginsList(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'connector-plugins': %s", operation)), nil - } - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: kafka-connect-cluster, connectors, connector, connector-plugins", resource)), nil - } - } -} - -func handleKafkaConnectClusterGet(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get the Kafka Connect cluster - cluster, err := admin.GetInfo(ctx) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect cluster: %v", err)), nil - } - - jsonBytes, err := json.Marshal(cluster) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect cluster: %v", err)), nil + // Use the new builder pattern + builder := kafkabuilders.NewKafkaConnectToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaConnectorsList(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get all connectors - connectors, err := admin.ListConnectors(ctx) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect connectors: %v", err)), nil - } - - jsonBytes, err := json.Marshal(connectors) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connectors: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaConnectorGet(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get a specific connector - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil - } - - connector, err := admin.GetConnector(ctx, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect connector: %v", err)), nil - } - - jsonBytes, err := json.Marshal(connector) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaConnectorCreate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create a new connector - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil - } - - configMap, err := common.RequiredParamObject(request.GetArguments(), "config") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil - } - - config := common.ConvertToMapString(configMap) - - config["name"] = name - - connector, err := admin.CreateConnector(ctx, name, config) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka Connect connector: %v", err)), nil - } - - jsonBytes, err := json.Marshal(connector) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaConnectorUpdate(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Update a connector - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil - } - - configMap, err := common.RequiredParamObject(request.GetArguments(), "config") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get config: %v", err)), nil - } - - config := common.ConvertToMapString(configMap) - - config["name"] = name - - connector, err := admin.UpdateConnector(ctx, name, config) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update Kafka Connect connector: %v", err)), nil - } - - jsonBytes, err := json.Marshal(connector) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaConnectorDelete(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Delete a connector - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil - } - - err = admin.DeleteConnector(ctx, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete Kafka Connect connector: %v", err)), nil - } - - return mcp.NewToolResultText("Connector deleted successfully"), nil -} - -func handleKafkaConnectorRestart(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Restart a connector - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil - } - - err = admin.RestartConnector(ctx, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to restart Kafka Connect connector: %v", err)), nil - } - - return mcp.NewToolResultText("Connector restarted successfully"), nil -} - -func handleKafkaConnectorPause(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Pause a connector - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil - } - - err = admin.PauseConnector(ctx, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to pause Kafka Connect connector: %v", err)), nil - } - - return mcp.NewToolResultText("Connector paused successfully"), nil -} - -func handleKafkaConnectorResume(ctx context.Context, admin kafka.Connect, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Resume a connector - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get connector name: %v", err)), nil - } - - err = admin.ResumeConnector(ctx, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to resume Kafka Connect connector: %v", err)), nil - } - - return mcp.NewToolResultText("Connector resumed successfully"), nil -} - -func handleKafkaConnectorPluginsList(ctx context.Context, admin kafka.Connect, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // List all connector plugins - plugins, err := admin.ListPlugins(ctx) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Kafka Connect connector plugins: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - jsonBytes, err := json.Marshal(plugins) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal Kafka Connect connector plugins: %v", err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index 66a7c38..145bafc 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -19,330 +19,28 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" - "github.com/twmb/franz-go/pkg/kadm" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeatureKafkaAdmin)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { - return - } - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members, set-offset, delete-offset)\n" + - "- groups: Collection of Kafka Consumer Groups for bulk operations (list)" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all Kafka Consumer Groups in the cluster\n" + - "- describe: Get detailed information about a specific Consumer Group, including members, offsets, and lag\n" + - "- remove-members: Remove specific members from a Consumer Group to force rebalancing or troubleshoot issues\n" + - "- offsets: Get offsets for a specific consumer group\n" + - "- delete-offset: Delete a specific offset for a consumer group of a topic\n" + - "- set-offset: Set a specific offset for a consumer group's topic-partition" - - toolDesc := "Unified tool for managing Apache Kafka Consumer Groups.\n" + - "This tool provides access to Kafka consumer group operations including listing, describing, and managing group membership.\n" + - "Kafka Consumer Groups are a key concept for scalable consumption of Kafka topics. A consumer group consists of multiple consumer instances\n" + - "that collaborate to consume data from topic partitions. Kafka ensures that:\n" + - "- Each partition is consumed by exactly one consumer in the group\n" + - "- When consumers join or leave, Kafka triggers a 'rebalance' to redistribute partitions\n" + - "- Consumer groups track consumption progress through committed offsets\n\n" + - "Usage Examples:\n\n" + - "1. List all Kafka Consumer Groups in the cluster:\n" + - " resource: \"groups\"\n" + - " operation: \"list\"\n\n" + - "2. Describe a specific Kafka Consumer Group to see its members and consumption details:\n" + - " resource: \"group\"\n" + - " operation: \"describe\"\n" + - " group: \"my-consumer-group\"\n\n" + - "3. Remove specific members from a Kafka Consumer Group to trigger rebalancing:\n" + - " resource: \"group\"\n" + - " operation: \"remove-members\"\n" + - " group: \"my-consumer-group\"\n" + - " members: \"consumer-instance-1,consumer-instance-2\"\n\n" + - "4. Get offsets for a specific consumer group:\n" + - " resource: \"group\"\n" + - " operation: \"offsets\"\n" + - " group: \"my-consumer-group\"\n\n" + - "5. Delete a specific offset for a consumer group of a topic:\n" + - " resource: \"group\"\n" + - " operation: \"delete-offset\"\n" + - " group: \"my-consumer-group\"\n" + - " topic: \"my-topic\"\n\n" + - "6. Set a specific offset for a consumer group's topic-partition:\n" + - " resource: \"group\"\n" + - " operation: \"set-offset\"\n" + - " group: \"my-consumer-group\"\n" + - " topic: \"my-topic\"\n" + - " partition: 0\n" + - " offset: 1000\n\n" + - "This tool requires Kafka super-user permissions." - - kafkaGroupsTool := mcp.NewTool("kafka_admin_groups", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("group", - mcp.Description("The name of the Kafka Consumer Group to operate on. "+ - "Required for the 'describe' and 'remove-members' operations. "+ - "Must be an existing consumer group name in the Kafka cluster. "+ - "Consumer Group names are case-sensitive and typically follow a naming convention like 'application-name'.")), - mcp.WithString("members", - mcp.Description("The members to remove from the Kafka Consumer Group. "+ - "Required for the 'remove-members' operation. "+ - "Specify as a comma-separated list of member instance IDs (no spaces). "+ - "Removing members will trigger a consumer group rebalance. "+ - "Example: 'consumer-instance-1,consumer-instance-2'.")), - mcp.WithString("topic", - mcp.Description("The name of the Kafka topic to operate on. "+ - "Required for the 'delete' operation. "+ - "Must be an existing topic name in the Kafka cluster.")), - mcp.WithNumber("partition", - mcp.Description("The partition number to set offset for. "+ - "Required for the 'set-offset' operation. "+ - "Must be a valid partition number for the specified topic.")), - mcp.WithNumber("offset", - mcp.Description("The offset value to set. "+ - "Required for the 'set-offset' operation. "+ - "Use -1 for earliest offset, -2 for latest offset, or a specific positive value.")), - ) - - s.AddTool(kafkaGroupsTool, handleKafkaGroupsTool(readOnly)) -} - -func handleKafkaGroupsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "remove-members" || operation == "delete-offset") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Create the admin client - admin, err := kafka.GetKafkaAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on resource and operation - switch resource { - case "group": - switch operation { - case "describe": - return handleKafkaGroupDescribe(ctx, admin, request) - case "remove-members": - return handleKafkaGroupRemoveMembers(ctx, admin, request) - case "offsets": - return handleKafkaGroupOffsets(ctx, admin, request) - case "delete-offset": - return handleKafkaGroupDeleteOffset(ctx, admin, request) - case "set-offset": - return handleKafkaGroupSetOffset(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'group': %s", operation)), nil - } - case "groups": - switch operation { - case "list": - return handleKafkaGroupsList(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'groups': %s", operation)), nil - } - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: group, groups", resource)), nil - } - } -} - -func handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil - } - - response, err := admin.DescribeGroups(ctx, groupName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to describe group: %v", err)), nil - } - - lags, err := admin.Lag(ctx, groupName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get lag: %v", err)), nil - } - - result := map[string]interface{}{ - "group": response, - "lag": lags, - } - - jsonBytes, err := json.Marshal(result) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil - } - - members, err := request.RequireString("members") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get members: %v", err)), nil - } - builder := kadm.LeaveGroup(groupName).InstanceIDs(strings.Split(members, ",")...) - response, err := admin.LeaveGroup(ctx, builder) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove members: %v", err)), nil - } - - jsonBytes, err := json.Marshal(response) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaGroupsList(ctx context.Context, admin *kadm.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - response, err := admin.ListGroups(ctx) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list groups: %v", err)), nil - } - - jsonBytes, err := json.Marshal(response) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + // Use the new builder pattern + builder := kafkabuilders.NewKafkaGroupsToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil - } - - response, err := admin.FetchOffsets(ctx, groupName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list offsets: %v", err)), nil - } - - jsonBytes, err := json.Marshal(response) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil - } - - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - // Create a TopicsSet with the specified topic - // This will target all partitions for the given topic - topicsSet := make(kadm.TopicsSet) - topicsSet.Add(topic) - - // Call DeleteOffsets to delete the offsets for the specified topic - responses, err := admin.DeleteOffsets(ctx, groupName, topicsSet) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete offsets: %v", err)), nil - } - - // Check for errors in the response - if err := responses.Error(); err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Errors occurred during offset deletion: %v", err)), nil - } - - jsonBytes, err := json.Marshal(responses) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - groupName, err := request.RequireString("group") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get group name: %v", err)), nil - } - - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - partition, err := request.RequireFloat("partition") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get partition number: %v", err)), nil - } - partitionInt := int32(partition) - - offset, err := request.RequireFloat("offset") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get offset value: %v", err)), nil - } - offsetInt := int64(offset) - - // Create Offsets object with the specified topic, partition, and offset - offsets := make(kadm.Offsets) - offsets.AddOffset(topic, partitionInt, offsetInt, -1) // Using -1 for leaderEpoch as it's optional - - // Commit the offsets - responses, err := admin.CommitOffsets(ctx, groupName, offsets) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to commit offsets: %v", err)), nil - } - - // Check for errors in the response - if err := responses.Error(); err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Errors occurred during offset commit: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - jsonBytes, err := json.Marshal(responses) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/mcp/kafka_admin_partitions_tools.go b/pkg/mcp/kafka_admin_partitions_tools.go index a1a3eb5..c8377ec 100644 --- a/pkg/mcp/kafka_admin_partitions_tools.go +++ b/pkg/mcp/kafka_admin_partitions_tools.go @@ -19,134 +19,28 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" - "github.com/twmb/franz-go/pkg/kadm" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) func KafkaAdminAddPartitionsTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeatureKafkaAdmin)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { - return - } - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- partition: A single Kafka Partition of a Kafka topic. Partitions are the basic unit of parallelism and data distribution in Kafka." - - operationDesc := "Operation to perform. Available operations:\n" + - "- update: Update the number of partitions for an existing Kafka topic. This operation can only increase the number of partitions, not decrease them." - - toolDesc := "Unified tool for managing Apache Kafka partitions.\n" + - "This tool provides access to Kafka partition operations, particularly adding partitions to existing topics.\n" + - "Kafka partitions are the fundamental unit of parallelism and scalability in Kafka. Each partition is an ordered, " + - "immutable sequence of records that is continually appended to. Partitions can be distributed across multiple brokers " + - "to enable parallel processing of a topic.\n\n" + - "Important notes:\n" + - "- You can only increase the number of partitions, never decrease them\n" + - "- Adding partitions may change the mapping of keys to partitions\n" + - "- Maximum number of partitions is limited by broker configuration\n\n" + - "Usage Examples:\n\n" + - "1. Update the number of partitions for an existing Kafka topic from 1 to 3:\n" + - " resource: \"partition\"\n" + - " operation: \"update\"\n" + - " topic: \"my-topic\"\n" + - " new-total: 3\n\n" + - "This tool requires Kafka super-user permissions.\n" + - "If you want to list or describe partitions of a topic, please use the `kafka_admin_topics` tool's `metadata` operation instead." - - kafkaPartitionsTool := mcp.NewTool("kafka_admin_partitions", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", - mcp.Description("The name of the Kafka topic to operate on. "+ - "Required for the 'update' operation. "+ - "Must be an existing topic name in the Kafka cluster. "+ - "The topic must be in a healthy state for partition updates to succeed.")), - mcp.WithNumber("new-total", - mcp.Description("The new total number of partitions for the Kafka topic. "+ - "Required for the 'update' operation. "+ - "Must be greater than the current number of partitions (cannot decrease partitions). "+ - "A larger number of partitions can help increase parallelism and throughput, but may also "+ - "increase resource utilization on the brokers. "+ - "Consider Kafka cluster capacity when setting this value.")), - ) - - s.AddTool(kafkaPartitionsTool, handleKafkaPartitionsTool(readOnly)) -} - -func handleKafkaPartitionsTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "update") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Create the admin client - admin, err := kafka.GetKafkaAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on resource and operation - switch resource { - case "partition": - switch operation { - case "update": - return handleKafkaPartitionUpdate(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'partition': %s", operation)), nil - } - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: partition", resource)), nil - } - } -} - -func handleKafkaPartitionUpdate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - topicName, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil + // Use the new builder pattern + builder := kafkabuilders.NewKafkaPartitionsToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - newTotal, err := request.RequireInt("new-total") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get new total: %v", err)), nil - } - - response, err := admin.UpdatePartitions(ctx, newTotal, topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update partitions: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - jsonBytes, err := json.Marshal(response) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index 35093d3..72618f4 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -19,407 +19,28 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" - "github.com/twmb/franz-go/pkg/sr" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeatureKafkaAdminSchemaRegistry)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) && !slices.Contains(features, string(FeatureKafkaAdmin)) { - return - } - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- subjects: Collection of all schema subjects in the Schema Registry\n" + - "- subject: A specific schema subject (a named schema that can have multiple versions)\n" + - "- versions: Collection of all versions for a specific subject\n" + - "- version: A specific version of a subject's schema\n" + - "- compatibility: Compatibility settings that control schema evolution rules\n" + - "- types: Supported schema format types (like AVRO, JSON, PROTOBUF)" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all subjects, versions for a subject, or supported schema types\n" + - "- get: Get a subject's latest schema, a specific version, or compatibility setting\n" + - "- set: Set compatibility level for global or subject-specific schema evolution\n" + - "- create: Register a new schema for a subject\n" + - "- delete: Delete a schema subject or a specific version" - - toolDesc := "Unified tool for managing Apache Kafka Schema Registry.\n" + - "Schema Registry is a component that stores and manages schemas for Kafka message data. " + - "It enforces schema compatibility during evolution, enabling safe, backward-compatible changes to data structures. " + - "Key concepts in Schema Registry:\n\n" + - "- Subject: A named schema, typically following the pattern '-key' or '-value'\n" + - "- Version: Each schema evolution creates a new numbered version\n" + - "- Schema: The actual data structure definition (in AVRO, JSON Schema, or Protobuf format)\n" + - "- Compatibility: Rules that control how schemas can evolve (BACKWARD, FORWARD, FULL, NONE)\n\n" + - "Schema Registry helps ensure data consistency, enables schema evolution governance, " + - "and reduces payload sizes by transmitting schema IDs instead of full schemas.\n\n" + - "Usage Examples:\n\n" + - "1. List all schema subjects in the registry:\n" + - " resource: \"subjects\"\n" + - " operation: \"list\"\n\n" + - "2. List all versions for a specific subject:\n" + - " resource: \"versions\"\n" + - " operation: \"list\"\n" + - " subject: \"my-topic-value\"\n\n" + - "3. List all supported schema types:\n" + - " resource: \"types\"\n" + - " operation: \"list\"\n\n" + - "4. Get the latest schema for a subject:\n" + - " resource: \"subject\"\n" + - " operation: \"get\"\n" + - " subject: \"my-topic-value\"\n\n" + - "5. Get a specific schema version:\n" + - " resource: \"version\"\n" + - " operation: \"get\"\n" + - " subject: \"my-topic-value\"\n" + - " version: 1\n\n" + - "6. Get compatibility level for a subject:\n" + - " resource: \"compatibility\"\n" + - " operation: \"get\"\n" + - " subject: \"my-topic-value\"\n\n" + - "7. Set compatibility level for a subject:\n" + - " resource: \"compatibility\"\n" + - " operation: \"set\"\n" + - " subject: \"my-topic-value\"\n" + - " compatibility: \"BACKWARD\"\n\n" + - "8. Register a new AVRO schema for a subject:\n" + - " resource: \"subject\"\n" + - " operation: \"create\"\n" + - " subject: \"my-topic-value\"\n" + - " type: \"AVRO\"\n" + - " schema: \"{\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"MyRecord\\\",\\\"fields\\\":[{\\\"name\\\":\\\"id\\\",\\\"type\\\":\\\"int\\\"},{\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\"}]}\"\n\n" + - "9. Delete a subject (all versions):\n" + - " resource: \"subject\"\n" + - " operation: \"delete\"\n" + - " subject: \"my-topic-value\"\n\n" + - "This tool requires appropriate Schema Registry permissions." - - kafkaSchemaRegistryTool := mcp.NewTool("kafka_admin_sr", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("subject", - mcp.Description("The name of the Schema Registry subject to operate on. "+ - "Required for operations on specific subjects, versions, and compatibility settings. "+ - "Typically follows the pattern '-key' for key schemas or '-value' for value schemas. "+ - "Case-sensitive and must match exactly with the subject in Schema Registry.")), - mcp.WithString("compatibility", - mcp.Description("The compatibility level to set for schema evolution. "+ - "Required for the 'set' operation on 'compatibility' resource. "+ - "Valid values are:\n"+ - "- BACKWARD: New schema can read data written with previous schema (default)\n"+ - "- FORWARD: Previous schema can read data written with new schema\n"+ - "- FULL: Both backward and forward compatibility\n"+ - "- NONE: No compatibility checks enforced")), - mcp.WithString("schema", - mcp.Description("The schema definition to register. "+ - "Required for the 'create' operation on 'subject' resource. "+ - "Must be a valid schema according to the specified 'type' (AVRO, JSON, or PROTOBUF). "+ - "For AVRO, use JSON format with escaped quotes. "+ - "Example: '{\\\"type\\\":\\\"record\\\",\\\"fields\\\":[{\\\"name\\\":\\\"id\\\",\\\"type\\\":\\\"int\\\"}]}'")), - mcp.WithString("version", - mcp.Description("The schema version to retrieve or delete. "+ - "Required for 'get' operation on 'version' resource and optional for 'delete' operation on 'subject' resource. "+ - "An integer specifying the version number, where 1 is the first version. "+ - "Use 'latest' or -1 to reference the most recent version.")), - mcp.WithString("type", - mcp.Description("The schema format type. "+ - "Required for the 'create' operation on 'subject' resource. "+ - "Must be one of:\n"+ - "- AVRO: Apache Avro schema format\n"+ - "- JSON: JSON Schema format\n"+ - "- PROTOBUF: Protocol Buffers schema format\n"+ - "The format must match the provided schema definition.")), - ) - - s.AddTool(kafkaSchemaRegistryTool, handleKafkaSchemaRegistryTool(readOnly)) -} - -func handleKafkaSchemaRegistryTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "set" || operation == "create" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Create the admin client - admin, err := kafka.GetKafkaSchemaRegistryClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on resource and operation - switch resource { - case "subjects": - switch operation { - case "list": - return handleKafkaSubjectsList(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subjects': %s", operation)), nil - } - case "versions": - switch operation { - case "list": - return handleKafkaVersionsList(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'versions': %s", operation)), nil - } - case "types": - switch operation { - case "list": - return handleKafkaTypesList(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'types': %s", operation)), nil - } - case "subject": - switch operation { - case "get": - return handleKafkaSubjectGet(ctx, admin, request) - case "create": - return handleKafkaSubjectCreate(ctx, admin, request) - case "delete": - return handleKafkaSubjectDelete(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subject': %s", operation)), nil - } - case "version": - switch operation { - case "get": - return handleKafkaVersionGet(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'version': %s", operation)), nil - } - case "compatibility": - switch operation { - case "get": - return handleKafkaCompatibilityGet(ctx, admin, request) - case "set": - return handleKafkaCompatibilitySet(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'compatibility': %s", operation)), nil - } - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: subjects, subject, versions, version, compatibility, types", resource)), nil - } - } -} - -func handleKafkaSubjectsList(ctx context.Context, admin *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subjects, err := admin.Subjects(ctx) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subjects: %v", err)), nil - } - - jsonBytes, err := json.Marshal(subjects) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaVersionsList(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil - } - - versions, err := admin.SubjectVersions(ctx, subject) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get versions: %v", err)), nil - } - - jsonBytes, err := json.Marshal(versions) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaTypesList(ctx context.Context, admin *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - types, err := admin.SupportedTypes(ctx) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get types: %v", err)), nil - } - - jsonBytes, err := json.Marshal(types) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaSubjectGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil + // Use the new builder pattern + builder := kafkabuilders.NewKafkaSchemaRegistryToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - schemas, err := admin.Schemas(ctx, subject) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schemas: %v", err)), nil - } - - jsonBytes, err := json.Marshal(schemas) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaSubjectCreate(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil - } - - schema, err := request.RequireString("schema") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil - } - - typeString, err := request.RequireString("type") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema type: %v", err)), nil - } - - var schemaType sr.SchemaType - err = schemaType.UnmarshalText([]byte(typeString)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to unmarshal schema type: %v", err)), nil - } - - schemaData := sr.Schema{ - Schema: schema, - Type: schemaType, - } - - createdSchema, err := admin.CreateSchema(ctx, subject, schemaData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create schema: %v", err)), nil - } - - jsonBytes, err := json.Marshal(createdSchema) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaSubjectDelete(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil - } - - version, err := request.RequireInt("version") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil - } - - err = admin.DeleteSchema(ctx, subject, version, sr.SoftDelete) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete schema: %v", err)), nil - } - - return mcp.NewToolResultText("Schema deleted successfully"), nil -} - -func handleKafkaVersionGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil - } - - version, err := request.RequireInt("version") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get version: %v", err)), nil - } - - schema, err := admin.SchemaByVersion(ctx, subject, version) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil - } - - jsonBytes, err := json.Marshal(schema) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaCompatibilityGet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil - } - - compatibility := admin.Compatibility(ctx, subject) - - jsonBytes, err := json.Marshal(compatibility) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaCompatibilitySet(ctx context.Context, admin *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subject: %v", err)), nil - } - - compatibility, err := request.RequireString("compatibility") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - var compatibilityLevel sr.CompatibilityLevel - err = compatibilityLevel.UnmarshalText([]byte(compatibility)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to unmarshal compatibility: %v", err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - response := admin.SetCompatibility(ctx, sr.SetCompatibility{ - Level: compatibilityLevel, - }, subject) - - jsonBytes, err := json.Marshal(response) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal response: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go index 5ea1f75..ed1822c 100644 --- a/pkg/mcp/kafka_admin_topics_tools.go +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -19,285 +19,28 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" - "github.com/twmb/franz-go/pkg/kadm" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) func KafkaAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeatureKafkaAdmin)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { - return - } - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- topic: A single Kafka topic for operations on individual topics (create, get, delete)\n" + - "- topics: Collection of Kafka topics for bulk operations (list)" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all topics in the Kafka cluster, optionally including internal topics\n" + - "- get: Get detailed configuration for a specific topic\n" + - "- create: Create a new topic with specified partitions, replication factor, and optional configs\n" + - "- delete: Delete an existing topic\n" + - "- metadata: Get metadata for a specific topic\n" - - toolDesc := "Unified tool for managing Apache Kafka topics.\n" + - "This tool provides access to various Kafka topic operations, including creation, deletion, listing, and configuration retrieval.\n" + - "Kafka topics are distributed append-only logs that store ordered, immutable records. Topics can be partitioned for parallel processing.\n\n" + - "Do not use this tool for Pulsar protocol operations. Use 'pulsar_admin_topics' instead." + - "Usage Examples:\n\n" + - "1. List all topics:\n" + - " resource: \"topics\"\n" + - " operation: \"list\"\n" + - " include-internal: false\n\n" + - "2. Get topic configuration:\n" + - " resource: \"topic\"\n" + - " operation: \"get\"\n" + - " name: \"my-topic\"\n\n" + - "3. Create a new topic with 3 partitions and replication factor 2:\n" + - " resource: \"topic\"\n" + - " operation: \"create\"\n" + - " name: \"new-topic\"\n" + - " partitions: 3\n" + - " replication-factor: 2\n" + - " configs: [\"cleanup.policy=compact\", \"retention.ms=604800000\"]\n\n" + - "4. Delete a topic:\n" + - " resource: \"topic\"\n" + - " operation: \"delete\"\n" + - " name: \"topic-to-delete\"\n\n" + - "5. Get full metadata including topic and broker information for a specific topic:\n" + - " resource: \"topic\"\n" + - " operation: \"metadata\"\n" + - " name: \"my-topic\"\n\n" + - "This tool requires Kafka super-user permissions." - - kafkaTopicTool := mcp.NewTool("kafka_admin_topics", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithBoolean("include-internal", - mcp.Description("Whether to include internal Kafka topics (those starting with an underscore) in the results. "+ - "Only applicable for the 'list' operation on the 'topics' resource. "+ - "Default: false."), - ), - mcp.WithString("name", - mcp.Description("The name of the Kafka topic to operate on. "+ - "Required for 'get', 'create', and 'delete' operations on the 'topic' resource. "+ - "Must be a valid Kafka topic name."), - ), - mcp.WithNumber("partitions", - mcp.Description("The number of partitions to create for the topic. "+ - "Only applicable for the 'create' operation on the 'topic' resource. "+ - "Should be a positive integer. More partitions enable higher throughput but require more brokers. "+ - "Default: 1."), - ), - mcp.WithNumber("replication-factor", - mcp.Description("The replication factor for the topic, determining how many copies of data are maintained across brokers. "+ - "Only applicable for the 'create' operation on the 'topic' resource. "+ - "Should be a positive integer, not exceeding the number of available brokers. "+ - "Higher values increase fault tolerance but consume more storage. "+ - "Default: 1."), - ), - mcp.WithArray("configs", - mcp.Description("Topic configuration overrides as an array of key-value strings. "+ - "Only applicable for the 'create' operation on the 'topic' resource. "+ - "Each entry should be in the format 'key=value'. "+ - "Example configs include 'cleanup.policy', 'retention.ms', 'compression.type'. "+ - "Optional."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "config entry", - }, - ), - ), - ) - s.AddTool(kafkaTopicTool, handleKafkaTopicTool(readOnly)) -} - -func handleKafkaTopicTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "create" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Create the admin client - admin, err := kafka.GetKafkaAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on resource and operation - switch resource { - case "topic": - switch operation { - case "get": - return handleKafkaTopicGet(ctx, admin, request) - case "create": - return handleKafkaTopicCreate(ctx, admin, request) - case "delete": - return handleKafkaTopicDelete(ctx, admin, request) - case "metadata": - return handleKafkaTopicMetadata(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topic': %s", operation)), nil - } - case "topics": - switch operation { - case "list": - return handleKafkaTopicsList(ctx, admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topics': %s", operation)), nil - } - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: topic, topics", resource)), nil - } - } -} - -func handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topicName, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - // Get topic configs - configs, err := admin.DescribeTopicConfigs(ctx, topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic configs: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(configs) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic configs: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topicName, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - // Get optional parameters - partitions := request.GetFloat("partitions", 1) - - replicationFactor := request.GetFloat("replication-factor", 1) - - // Get configs if provided - var configEntries map[string]*string - configsArray := request.GetStringSlice("configs", []string{}) - if len(configsArray) > 0 { - configEntries, err = common.ParseMessageConfigs(configsArray) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse configs: %v", err)), nil - } - } - - // Create the topic - _, err = admin.CreateTopic(ctx, int32(partitions), int16(replicationFactor), configEntries, topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create topic: %v", err)), nil - } - - return mcp.NewToolResultText("Topic created successfully"), nil -} - -func handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topicName, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - // Delete the topic - _, err = admin.DeleteTopic(ctx, topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete topic: %v", err)), nil - } - - return mcp.NewToolResultText("Topic deleted successfully"), nil -} - -func handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - includeInternal := request.GetBool("include-internal", false) - - var topics kadm.TopicDetails - var err error - // List topics - if !includeInternal { - topics, err = admin.ListTopics(ctx) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics: %v", err)), nil - } - } else { - topics, err = admin.ListTopicsWithInternal(ctx) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics: %v", err)), nil - } - } - topicNames := []string{} - for topicName := range topics { - topicNames = append(topicNames, topicName) + // Use the new builder pattern + builder := kafkabuilders.NewKafkaTopicsToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Format the output - jsonBytes, err := json.Marshal(topicNames) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic names: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -func handleKafkaTopicMetadata(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topicName, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - topicDetails, err := admin.Metadata(ctx, topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic metadata: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - jsonBytes, err := json.Marshal(topicDetails) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic metadata: %v", err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go index d8401d5..fd2f9da 100644 --- a/pkg/mcp/kafka_client_consume_tools.go +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -19,238 +19,33 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "time" - "github.com/hamba/avro/v2" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/sirupsen/logrus" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" - "github.com/twmb/franz-go/pkg/kgo" - "github.com/twmb/franz-go/pkg/sr" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) -var logger *logrus.Logger - // KafkaClientAddConsumeTools adds Kafka client consume tools to the MCP server func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logrus.Logger, features []string) { - if !slices.Contains(features, string(FeatureKafkaClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { - return - } - - toolDesc := "Consume messages from a Kafka topic.\n" + - "This tool allows you to read messages from Kafka topics, specifying various consumption parameters.\n\n" + - "Kafka Consumer Concepts:\n" + - "- Consumers read data from Kafka topics, which can be spread across multiple partitions\n" + - "- Consumer Groups enable multiple consumers to cooperatively process messages from the same topic\n" + - "- Offsets track the position of consumers in each partition, allowing resumption after failures\n" + - "- Partitions are independent ordered sequences of messages that enable parallel processing\n\n" + - "This tool provides a temporary consumer instance for diagnostic and testing purposes. " + - "It does not commit offsets back to Kafka unless the 'group' parameter is explicitly specified. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_consume' instead.\n\n" + - "Usage Examples:\n\n" + - "1. Basic consumption - Get 10 earliest messages from a topic:\n" + - " topic: \"my-topic\"\n" + - " max-messages: 10\n\n" + - "2. Consumer group - Join an existing consumer group and resume from committed offset:\n" + - " topic: \"my-topic\"\n" + - " offset: \"atstart\"\n" + - " max-messages: 20\n\n" + - "3. Consumer group - Join an existing consumer group and resume from committed offset:\n" + - " topic: \"my-topic\"\n" + - " group: \"my-consumer-group\"\n" + - " offset: \"atcommitted\"\n\n" + - "4. Time-limited consumption - Set a longer timeout for slow topics:\n" + - " topic: \"my-topic\"\n" + - " max-messages: 100\n" + - " timeout: 30\n\n" + - "This tool requires Kafka consumer permissions on the specified topic." - - // Add consume tool - consumeTool := mcp.NewTool("kafka_client_consume", - mcp.WithDescription(toolDesc), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The name of the Kafka topic to consume messages from. "+ - "Must be an existing topic that the user has read permissions for. "+ - "For partitioned topics, this will consume from all partitions unless a specific partition is specified."), - ), - mcp.WithString("group", - mcp.Description("The consumer group ID to use for consumption. "+ - "Optional. If provided, the consumer will join this consumer group and track offsets with Kafka. "+ - "If not provided, a random group ID will be generated, and offsets won't be committed back to Kafka. "+ - "Using a meaningful group ID is important when you want to resume consumption later or coordinate multiple consumers."), - ), - mcp.WithString("offset", - mcp.Description("The offset position to start consuming from. "+ - "Optional. Must be one of these values:\n"+ - "- 'atstart': Begin from the earliest available message in the topic/partition\n"+ - "- 'atend': Begin from the next message that arrives after the consumer starts\n"+ - "- 'atcommitted': Begin from the last committed offset (only works with specified 'group')\n"+ - "Default: 'atstart'"), - ), - mcp.WithNumber("max-messages", - mcp.Description("Maximum number of messages to consume in this request. "+ - "Optional. Limits the total number of messages returned, across all partitions if no specific partition is specified. "+ - "Higher values retrieve more data but may increase response time and size. "+ - "Default: 10"), - ), - mcp.WithNumber("timeout", - mcp.Description("Maximum time in seconds to wait for messages. "+ - "Optional. The consumer will wait up to this long to collect the requested number of messages. "+ - "If fewer than 'max-messages' are available within this time, the available messages are returned. "+ - "Longer timeouts are useful for low-volume topics or when consuming with 'atend'. "+ - "Default: 10 seconds"), - ), - ) - s.AddTool(consumeTool, handleKafkaConsume) - if logrusLogger != nil { - logger = logrusLogger - } -} - -// handleKafkaConsume handles consuming messages from a Kafka topic -func handleKafkaConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - opts := []kgo.Opt{} - // Get required parameters - topicName, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - opts = append(opts, kgo.ConsumeTopics(topicName)) - - opts = append(opts, kgo.FetchIsolationLevel(kgo.ReadUncommitted())) - opts = append(opts, kgo.KeepRetryableFetchErrors()) - w := logger.Writer() - opts = append(opts, kgo.WithLogger(kgo.BasicLogger(w, kgo.LogLevelInfo, nil))) - maxMessages := request.GetFloat("max-messages", 10) - - timeoutSec := request.GetFloat("timeout", 10) - - group := request.GetString("group", "") - if group != "" { - opts = append(opts, kgo.ConsumerGroup(group)) - } - - offsetStr := request.GetString("offset", "atstart") - - var offset kgo.Offset - switch offsetStr { - case "atstart": - offset = kgo.NewOffset().AtStart() - case "atend": - offset = kgo.NewOffset().AtEnd() - case "atcommitted": - offset = kgo.NewOffset().AtCommitted() - default: - offset = kgo.NewOffset().AtStart() + // Use the new builder pattern + builder := kafkabuilders.NewKafkaConsumeToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: features, + Options: map[string]interface{}{ + "logger": logrusLogger, + }, } - opts = append(opts, kgo.ConsumeResetOffset(offset)) - logger.Infof("Consuming from topic: %s, group: %s, max-messages: %d, timeout: %d", topicName, group, int(maxMessages), int(timeoutSec)) - // Create Kafka client using the new Kafka package - kafkaClient, err := kafka.GetKafkaClient(opts...) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka client: %v", err)), nil - } - defer kafkaClient.Close() - - srClient, err := kafka.GetKafkaSchemaRegistryClient() - schemaReady := false - var serde sr.Serde - if err == nil && srClient != nil { - schemaReady = true - } - - // Set timeout - timeoutCtx, cancel := context.WithTimeout(ctx, time.Duration(timeoutSec)*time.Second) - defer cancel() - - if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster - return mcp.NewToolResultError(fmt.Sprintf("Failed to ping Kafka cluster: %v", err)), nil - } - - if schemaReady { - subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil - } - logger.Infof("Schema ID: %d", subjSchema.ID) - switch subjSchema.Type { - case sr.TypeAvro: - avroSchema, err := avro.Parse(subjSchema.Schema.Schema) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse avro schema: %v", err)), nil - } - serde.Register( - subjSchema.ID, - map[string]any{}, - sr.EncodeFn(func(v any) ([]byte, error) { - return avro.Marshal(avroSchema, v) - }), - sr.DecodeFn(func(data []byte, v any) error { - return avro.Unmarshal(avroSchema, data, v) - }), - ) - case sr.TypeJSON: - serde.Register( - subjSchema.ID, - map[string]any{}, - sr.EncodeFn(json.Marshal), - sr.DecodeFn(json.Unmarshal), - ) - case sr.TypeProtobuf: - default: - // TODO: support other schema types - logger.Infof("Unsupported schema type: %s", subjSchema.Type) - schemaReady = false - } - } - - results := make([]any, 0) -consumerLoop: - for { - fetches := kafkaClient.PollRecords(timeoutCtx, int(maxMessages)) - iter := fetches.RecordIter() - logger.Infof("NumRecords: %d\n", fetches.NumRecords()) - - for _, fetchErr := range fetches.Errors() { - logger.Infof("error consuming from topic: topic=%s, partition=%d, err=%v\n", - fetchErr.Topic, fetchErr.Partition, fetchErr.Err) - break consumerLoop - } - - for !iter.Done() { - record := iter.Next() - if schemaReady { - var value map[string]any - err := serde.Decode(record.Value, &value) - if err != nil { - logger.Infof("Failed to decode value: %v", err) - results = append(results, record.Value) - } else { - results = append(results, value) - } - } else { - results = append(results, record.Value) - } - if len(results) >= int(maxMessages) { - break consumerLoop - } - } - } - - err = kafkaClient.CommitUncommittedOffsets(timeoutCtx) - if err != nil { - if err != context.Canceled { - logger.Infof("Failed to commit offsets: %v", err) - } + // Log error but don't fail - this maintains backward compatibility + return } - jsonResults, err := json.Marshal(results) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal results: %v", err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - return mcp.NewToolResultText(string(jsonResults)), nil } diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index 7ae1a6f..1a6d688 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -19,266 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "time" - "github.com/hamba/avro/v2" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/kafka" - "github.com/twmb/franz-go/pkg/kgo" - "github.com/twmb/franz-go/pkg/sr" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) // KafkaClientAddProduceTools adds Kafka client produce tools to the MCP server func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []string) { - // Skip registration if in read-only mode - if readOnly { - return - } - - if !slices.Contains(features, string(FeatureKafkaClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllKafka)) { - return - } - - toolDesc := "Produce messages to a Kafka topic.\n" + - "This tool allows you to send messages to Kafka topics with various options for message creation.\n\n" + - "Kafka Producer Concepts:\n" + - "- Producers write data to Kafka topics, which can be spread across multiple partitions\n" + - "- Messages can include a key, which determines the partition assignment (consistent hashing)\n" + - "- Headers can be added to messages to include metadata without affecting the message payload\n" + - "- Partitions enable parallel processing and ordered delivery within a single partition\n\n" + - "This tool provides a simple producer instance for diagnostic and testing purposes. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_produce' instead.\n\n" + - "Usage Examples:\n\n" + - "1. Basic message production - Send a simple message to a topic:\n" + - " topic: \"my-topic\"\n" + - " value: \"Hello, Kafka!\"\n\n" + - "2. Keyed message - Send a message with a key for consistent partition routing:\n" + - " topic: \"my-topic\"\n" + - " key: \"user-123\"\n" + - " value: \"User activity data\"\n\n" + - "3. Multiple messages - Send several messages in one request:\n" + - " topic: \"my-topic\"\n" + - " messages: [{\"key\": \"key1\", \"value\": \"value1\"}, {\"key\": \"key2\", \"value\": \"value2\"}]\n\n" + - "4. Message with headers - Include metadata with your message:\n" + - " topic: \"my-topic\"\n" + - " value: \"Message with headers\"\n" + - " headers: [\"source=mcp-tool\", \"timestamp=2023-06-01\"]\n\n" + - "5. Specific partition - Send to a particular partition:\n" + - " topic: \"my-topic\"\n" + - " value: \"Targeted message\"\n" + - " partition: 2\n\n" + - "This tool requires Kafka producer permissions on the specified topic." - - // Add produce tool - produceTool := mcp.NewTool("kafka_client_produce", - mcp.WithDescription(toolDesc), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The name of the Kafka topic to produce messages to. "+ - "Must be an existing topic that the user has write permissions for."), - ), - mcp.WithString("key", - mcp.Description("The key for the message. "+ - "Optional. Keys are used for partition assignment and maintaining order for related messages. "+ - "Messages with the same key will be sent to the same partition."), - ), - mcp.WithString("value", - mcp.Required(), - mcp.Description("The value/content of the message to send. "+ - "This is the actual payload that will be delivered to consumers. It can be a JSON string, and the system will automatically serialize it to the appropriate format based on the schema registry if it is available."), - ), - mcp.WithArray("headers", - mcp.Description("Message headers in the format of [\"key=value\"]. "+ - "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ - "They are passed along with the message to consumers."), - mcp.Items(map[string]interface{}{ - "type": "string", - "description": "key value pair in the format of \"key=value\"", - }), - ), - mcp.WithBoolean("sync", - mcp.Description("Whether to wait for server acknowledgment before returning. "+ - "Optional. Default is true. When true, ensures the message was successfully written "+ - "to the topic before the tool returns a success response."), - ), - ) - s.AddTool(produceTool, handleKafkaProduce) -} - -// handleKafkaProduce handles producing messages to a Kafka topic -func handleKafkaProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topicName, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - // Handle single message case - // Get value from parameter or file - value, err := request.RequireString("value") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get value: %v", err)), nil + // Use the new builder pattern + builder := kafkabuilders.NewKafkaProduceToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Get optional parameters - key := request.GetString("key", "") - headers := request.GetStringSlice("headers", []string{}) - sync := request.GetBool("sync", true) - - // Create Kafka client - kafkaClient, err := kafka.GetKafkaClient() + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Kafka client: %v", err)), nil - } - defer kafkaClient.Close() - - srClient, err := kafka.GetKafkaSchemaRegistryClient() - schemaReady := false - var serde sr.Serde - if err == nil && srClient != nil { - schemaReady = true - } - - if schemaReady { - // Set timeout - timeoutCtx, cancel := context.WithTimeout(ctx, 10*time.Second) - defer cancel() - subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema: %v", err)), nil - } - logger.Infof("Schema ID: %d", subjSchema.ID) - switch subjSchema.Type { - case sr.TypeAvro: - avroSchema, err := avro.Parse(subjSchema.Schema.Schema) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse avro schema: %v", err)), nil - } - serde.Register( - subjSchema.ID, - map[string]any{}, - sr.EncodeFn(func(v any) ([]byte, error) { - return avro.Marshal(avroSchema, v) - }), - sr.DecodeFn(func(data []byte, v any) error { - return avro.Unmarshal(avroSchema, data, v) - }), - ) - case sr.TypeJSON: - serde.Register( - subjSchema.ID, - map[string]any{}, - sr.EncodeFn(json.Marshal), - sr.DecodeFn(json.Unmarshal), - ) - case sr.TypeProtobuf: - default: - // TODO: support other schema types - logger.Infof("Unsupported schema type: %s", subjSchema.Type) - schemaReady = false - } - } - - // Prepare record - record := &kgo.Record{ - Topic: topicName, - Value: []byte(value), - } - - // Add key if provided - if key != "" { - record.Key = []byte(key) - } - - // Add headers if provided - if len(headers) > 0 { - headerEntries, err := common.ParseMessageConfigs(headers) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse headers: %v", err)), nil - } - record.Headers = parseHeaders(headerEntries) - } - - if schemaReady { - var structValue map[string]any - if err := json.Unmarshal([]byte(value), &structValue); err == nil { - record.Value, err = serde.Encode(structValue) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to encode value: %v", err)), nil - } - } else { - return mcp.NewToolResultError(fmt.Sprintf("Failed to unmarshal value: %v", err)), nil - } - } - - // Produce the message - result, err := produceRecord(ctx, kafkaClient, record, sync) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to produce message: %v", err)), nil - } - - return result, nil -} - -// parseHeaders converts the headers array to kgo.RecordHeader format -func parseHeaders(headers map[string]*string) []kgo.RecordHeader { - var recordHeaders []kgo.RecordHeader - - for key, value := range headers { - if value == nil { - recordHeaders = append(recordHeaders, kgo.RecordHeader{ - Key: key, - Value: []byte{}, - }) - } else { - recordHeaders = append(recordHeaders, kgo.RecordHeader{ - Key: key, - Value: []byte(*value), - }) - } - } - - return recordHeaders -} - -// produceRecord sends a single record to Kafka -func produceRecord(ctx context.Context, client *kgo.Client, record *kgo.Record, sync bool) (*mcp.CallToolResult, error) { - if sync { - results := client.ProduceSync(ctx, record) - if len(results) > 0 && results[0].Err != nil { - return nil, results[0].Err - } - } else { - client.Produce(ctx, record, func(_ *kgo.Record, err error) { - if err != nil { - // Log the error but continue since we're async - fmt.Printf("Async produce error: %v\n", err) - } - }) - } - - // Create result - result := map[string]interface{}{ - "status": "success", - "topic": record.Topic, - "timestamp": time.Now().Format(time.RFC3339), - } - - if len(record.Key) > 0 { - result["key"] = string(record.Key) + // Log error but don't fail - this maintains backward compatibility + return } - if record.Partition != -1 { - result["partition"] = record.Partition + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - jsonBytes, err := json.Marshal(result) - if err != nil { - return nil, fmt.Errorf("failed to create result: %v", err) - } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/pftools/circuit_breaker.go b/pkg/mcp/pftools/circuit_breaker.go similarity index 100% rename from pkg/pftools/circuit_breaker.go rename to pkg/mcp/pftools/circuit_breaker.go diff --git a/pkg/pftools/errors.go b/pkg/mcp/pftools/errors.go similarity index 100% rename from pkg/pftools/errors.go rename to pkg/mcp/pftools/errors.go diff --git a/pkg/pftools/invocation.go b/pkg/mcp/pftools/invocation.go similarity index 93% rename from pkg/pftools/invocation.go rename to pkg/mcp/pftools/invocation.go index fd8542e..951bf32 100644 --- a/pkg/pftools/invocation.go +++ b/pkg/mcp/pftools/invocation.go @@ -27,7 +27,7 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/mark3labs/mcp-go/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/schema" ) @@ -259,20 +259,20 @@ func (fi *FunctionInvoker) unregisterResultChannel(messageID string) { func isCorrelationInputTopic(correlationInputTopic string, inputTopic string) bool { // remove the partition index from the input topic - if strings.Contains(correlationInputTopic, cliutils.PARTITIONEDTOPICSUFFIX) { - correlationInputTopic = strings.Split(correlationInputTopic, cliutils.PARTITIONEDTOPICSUFFIX)[0] + if strings.Contains(correlationInputTopic, utils.PARTITIONEDTOPICSUFFIX) { + correlationInputTopic = strings.Split(correlationInputTopic, utils.PARTITIONEDTOPICSUFFIX)[0] } // remove the partition index from the input topic - if strings.Contains(inputTopic, cliutils.PARTITIONEDTOPICSUFFIX) { - inputTopic = strings.Split(inputTopic, cliutils.PARTITIONEDTOPICSUFFIX)[0] + if strings.Contains(inputTopic, utils.PARTITIONEDTOPICSUFFIX) { + inputTopic = strings.Split(inputTopic, utils.PARTITIONEDTOPICSUFFIX)[0] } - correlationInputTopicName, err := cliutils.GetTopicName(correlationInputTopic) + correlationInputTopicName, err := utils.GetTopicName(correlationInputTopic) if err != nil { return false } - inputTopicName, err := cliutils.GetTopicName(inputTopic) + inputTopicName, err := utils.GetTopicName(inputTopic) if err != nil { return false } diff --git a/pkg/pftools/manager.go b/pkg/mcp/pftools/manager.go similarity index 88% rename from pkg/pftools/manager.go rename to pkg/mcp/pftools/manager.go index 91fb014..3aac526 100644 --- a/pkg/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -26,16 +26,16 @@ import ( "sync" "time" - "github.com/apache/pulsar-client-go/pulsar" + pulsarclient "github.com/apache/pulsar-client-go/pulsar" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/rest" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/google/go-cmp/cmp" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" - pulsarutils "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" "github.com/streamnative/streamnative-mcp-server/pkg/schema" ) @@ -49,15 +49,28 @@ var DefaultStringSchemaInfo = &SchemaInfo{ Definition: map[string]interface{}{ "type": "string", }, - PulsarSchemaInfo: &cliutils.SchemaInfo{ + PulsarSchemaInfo: &utils.SchemaInfo{ Type: "STRING", }, } +// Server is imported directly to avoid circular dependency +type Server struct { + MCPServer *server.MCPServer + KafkaSession *kafka.Session + PulsarSession *pulsar.Session + Logger interface{} +} + // NewPulsarFunctionManager creates a new PulsarFunctionManager -func NewPulsarFunctionManager(mcpServer *server.MCPServer, readOnly bool, options *ManagerOptions) (*PulsarFunctionManager, error) { +func NewPulsarFunctionManager(snServer *Server, readOnly bool, options *ManagerOptions, sessionID string) (*PulsarFunctionManager, error) { // Get Pulsar client and admin client - pulsarClient, err := pulsarutils.GetPulsarClient() + if snServer.PulsarSession == nil { + return nil, fmt.Errorf("Pulsar session not found in context") + } + + // Get Pulsar client from session using type-safe interface + pulsarClient, err := snServer.PulsarSession.GetPulsarClient() if err != nil { return nil, fmt.Errorf("failed to get Pulsar client: %w", err) } @@ -75,17 +88,18 @@ func NewPulsarFunctionManager(mcpServer *server.MCPServer, readOnly bool, option pulsarClient: pulsarClient, fnToToolMap: make(map[string]*FunctionTool), mutex: sync.RWMutex{}, - producerCache: make(map[string]pulsar.Producer), + producerCache: make(map[string]pulsarclient.Producer), producerMutex: sync.RWMutex{}, pollInterval: options.PollInterval, stopCh: make(chan struct{}), callInProgressMap: make(map[string]context.CancelFunc), - mcpServer: mcpServer, + mcpServer: snServer.MCPServer, readOnly: readOnly, defaultTimeout: options.DefaultTimeout, circuitBreakers: make(map[string]*CircuitBreaker), tenantNamespaces: options.TenantNamespaces, strictExport: options.StrictExport, + sessionID: sessionID, } return manager, nil @@ -106,7 +120,7 @@ func (m *PulsarFunctionManager) Stop() { log.Printf("Closing producer for topic: %s", topic) producer.Close() } - m.producerCache = make(map[string]pulsar.Producer) + m.producerCache = make(map[string]pulsarclient.Producer) log.Println("All cached producers closed and cache cleared.") } @@ -179,9 +193,23 @@ func (m *PulsarFunctionManager) updateFunctions() { } if changed { - m.mcpServer.DeleteTools(fnTool.Tool.Name) + if m.sessionID != "" { + err := m.mcpServer.DeleteSessionTools(m.sessionID, fnTool.Tool.Name) + if err != nil { + log.Printf("Failed to delete tool %s from session %s: %v", fnTool.Tool.Name, m.sessionID, err) + } + } else { + m.mcpServer.DeleteTools(fnTool.Tool.Name) + } + } + if m.sessionID != "" { + err := m.mcpServer.AddSessionTool(m.sessionID, fnTool.Tool, m.handleToolCall(fnTool)) + if err != nil { + log.Printf("Failed to add tool %s to session %s: %v", fnTool.Tool.Name, m.sessionID, err) + } + } else { + m.mcpServer.AddTool(fnTool.Tool, m.handleToolCall(fnTool)) } - m.mcpServer.AddTool(fnTool.Tool, m.handleToolCall(fnTool)) // Add function to map m.mutex.Lock() @@ -199,7 +227,14 @@ func (m *PulsarFunctionManager) updateFunctions() { m.mutex.Lock() for fullName, fnTool := range m.fnToToolMap { if !seenFunctions[fullName] { - m.mcpServer.DeleteTools(fnTool.Tool.Name) + if m.sessionID != "" { + err := m.mcpServer.DeleteSessionTools(m.sessionID, fnTool.Tool.Name) + if err != nil { + log.Printf("Failed to delete tool %s from session %s: %v", fnTool.Tool.Name, m.sessionID, err) + } + } else { + m.mcpServer.DeleteTools(fnTool.Tool.Name) + } delete(m.fnToToolMap, fullName) log.Printf("Removed function %s from MCP tools [%s]", fullName, fnTool.Tool.Name) } @@ -498,7 +533,7 @@ func retrieveToolDescription(fn *utils.FunctionConfig) string { } // GetProducer retrieves a producer from the cache or creates a new one if not found. -func (m *PulsarFunctionManager) GetProducer(topic string) (pulsar.Producer, error) { +func (m *PulsarFunctionManager) GetProducer(topic string) (pulsarclient.Producer, error) { m.producerMutex.RLock() producer, found := m.producerCache[topic] m.producerMutex.RUnlock() @@ -515,7 +550,7 @@ func (m *PulsarFunctionManager) GetProducer(topic string) (pulsar.Producer, erro return producer, nil } - newProducer, err := m.pulsarClient.CreateProducer(pulsar.ProducerOptions{ + newProducer, err := m.pulsarClient.CreateProducer(pulsarclient.ProducerOptions{ Topic: topic, }) if err != nil { diff --git a/pkg/pftools/schema.go b/pkg/mcp/pftools/schema.go similarity index 97% rename from pkg/pftools/schema.go rename to pkg/mcp/pftools/schema.go index 2c8c725..f013450 100644 --- a/pkg/pftools/schema.go +++ b/pkg/mcp/pftools/schema.go @@ -22,7 +22,7 @@ import ( "fmt" "github.com/apache/pulsar-client-go/pulsar" - cliutils "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/mark3labs/mcp-go/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" ) @@ -42,7 +42,7 @@ func GetSchemaFromTopic(admin cmdutils.Client, topic string) (*SchemaInfo, error if admin == nil { return nil, fmt.Errorf("failed to get schema from topic '%s': mcp server is not initialized", topic) } - topicName, err := cliutils.GetTopicName(topic) + topicName, err := utils.GetTopicName(topic) if err != nil { return nil, fmt.Errorf("failed to get topic name from topic '%s': %w", topic, err) } diff --git a/pkg/pftools/types.go b/pkg/mcp/pftools/types.go similarity index 99% rename from pkg/pftools/types.go rename to pkg/mcp/pftools/types.go index d856a75..c44356e 100644 --- a/pkg/pftools/types.go +++ b/pkg/mcp/pftools/types.go @@ -47,6 +47,7 @@ type PulsarFunctionManager struct { circuitBreakers map[string]*CircuitBreaker tenantNamespaces []string strictExport bool + sessionID string } type FunctionTool struct { diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go index 28252f3..1dca62b 100644 --- a/pkg/mcp/prompts.go +++ b/pkg/mcp/prompts.go @@ -26,7 +26,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/config" + context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" "k8s.io/utils/ptr" ) @@ -65,7 +65,7 @@ var ( func RegisterPrompts(s *server.MCPServer) { s.AddPrompt(mcp.NewPrompt("list-sncloud-clusters", mcp.WithPromptDescription("List all clusters from the StreamNative Cloud"), - ), handleListPulsarClusters) + ), HandleListPulsarClusters) s.AddPrompt(mcp.NewPrompt("read-sncloud-cluster", mcp.WithPromptDescription("Read a cluster from the StreamNative Cloud"), mcp.WithArgument("name", mcp.RequiredArgument(), mcp.ArgumentDescription("The name of the cluster")), @@ -81,14 +81,19 @@ func RegisterPrompts(s *server.MCPServer) { ) } -func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { - options := common.GetOptions(ctx) - apiClient, err := config.GetAPIClient() +func HandleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { + // Get API client from session + session := context2.GetSNCloudSession(ctx) + if session == nil { + return nil, fmt.Errorf("failed to get StreamNative Cloud session") + } + + apiClient, err := session.GetAPIClient() if err != nil { return nil, fmt.Errorf("failed to get API client: %v", err) } - clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, options.Organization).Execute() + clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, session.Ctx.Organization).Execute() if err != nil { return nil, fmt.Errorf("failed to list pulsar clusters: %v", err) } @@ -105,7 +110,7 @@ func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp Text: fmt.Sprintf( "There are %d Pulsar clusters in the StreamNative Cloud from organization %s:", len(clusters.Items), - options.Organization, + session.Ctx.Organization, ), }, Role: mcp.RoleUser, @@ -142,14 +147,19 @@ func handleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp } return &mcp.GetPromptResult{ - Description: fmt.Sprintf("Pulsar clusters from StreamNative Cloud organization %s, you can use `sncloud_context_use_cluster` tool to switch to selected cluster, and use pulsar and kafka tools to interact with the cluster.", options.Organization), + Description: fmt.Sprintf("Pulsar clusters from StreamNative Cloud organization %s, you can use `sncloud_context_use_cluster` tool to switch to selected cluster, and use pulsar and kafka tools to interact with the cluster.", session.Ctx.Organization), Messages: messages, }, nil } func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { - options := common.GetOptions(ctx) - apiClient, err := config.GetAPIClient() + // Get API client from session + session := context2.GetSNCloudSession(ctx) + if session == nil { + return nil, fmt.Errorf("failed to get StreamNative Cloud session") + } + + apiClient, err := session.GetAPIClient() if err != nil { return nil, fmt.Errorf("failed to get API client: %v", err) } @@ -159,7 +169,7 @@ func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) return nil, fmt.Errorf("failed to get name: %v", err) } - clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, options.Organization).Execute() + clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, session.Ctx.Organization).Execute() if err != nil { return nil, fmt.Errorf("failed to list pulsar clusters: %v", err) } @@ -205,8 +215,13 @@ func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) } func handleBuildServerlessPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { - options := common.GetOptions(ctx) - apiClient, err := config.GetAPIClient() + // Get API client from session + session := context2.GetSNCloudSession(ctx) + if session == nil { + return nil, fmt.Errorf("failed to get StreamNative Cloud session") + } + + apiClient, err := session.GetAPIClient() if err != nil { return nil, fmt.Errorf("failed to get API client: %v", err) } @@ -232,7 +247,7 @@ func handleBuildServerlessPulsarCluster(ctx context.Context, request mcp.GetProm } } - poolOptions, poolOptionsBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, options.Organization).Execute() + poolOptions, poolOptionsBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx, session.Ctx.Organization).Execute() if err != nil { return nil, fmt.Errorf("failed to list pool options: %v", err) } @@ -274,7 +289,7 @@ func handleBuildServerlessPulsarCluster(ctx context.Context, request mcp.GetProm inst.Kind = ptr.To("PulsarInstance") inst.Metadata = &sncloud.V1ObjectMeta{ Name: &instanceName, - Namespace: &options.Organization, + Namespace: &session.Ctx.Organization, Labels: &map[string]string{ "managed-by": "streamnative-mcp", }, @@ -290,7 +305,7 @@ func handleBuildServerlessPulsarCluster(ctx context.Context, request mcp.GetProm clus.Kind = ptr.To("PulsarCluster") clus.Metadata = &sncloud.V1ObjectMeta{ Name: ptr.To(""), - Namespace: &options.Organization, + Namespace: &session.Ctx.Organization, Labels: &map[string]string{ "managed-by": "streamnative-mcp", }, diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go index 7e4f811..be44829 100644 --- a/pkg/mcp/pulsar_admin_brokers_stats_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -19,168 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddBrokerStatsTools adds broker-stats related tools to the MCP server func PulsarAdminAddBrokerStatsTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminBrokersStatus)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - // Unified broker stats tool - brokerStatsTool := mcp.NewTool("pulsar_admin_broker_stats", - mcp.WithDescription("Unified tool for retrieving Apache Pulsar broker statistics.\n"+ - "This tool provides access to various broker stats resources, including:\n"+ - "1. Monitoring metrics (resource=monitoring_metrics): Metrics for the broker's monitoring system\n"+ - "2. MBean stats (resource=mbeans): JVM MBeans statistics\n"+ - "3. Topics stats (resource=topics): Statistics about all topics managed by the broker\n"+ - "4. Allocator stats (resource=allocator_stats): Memory allocator statistics for specific allocator\n"+ - "5. Load report (resource=load_report): Broker load information, sometimes the load report is not available, so suggest to use other resources to get the broker metrics\n\n"+ - "Example: {\"resource\": \"monitoring_metrics\"} retrieves all monitoring metrics\n"+ - "Example: {\"resource\": \"allocator_stats\", \"allocator_name\": \"default\"} retrieves stats for the default allocator\n"+ - "This tool requires Pulsar super-user permissions."), - mcp.WithString("resource", mcp.Required(), - mcp.Description("Type of broker stats resource to access, available options:\n"+ - "- monitoring_metrics: Metrics for the broker's monitoring system\n"+ - "- mbeans: JVM MBeans statistics\n"+ - "- topics: Statistics about all topics managed by the broker\n"+ - "- allocator_stats: Memory allocator statistics (requires allocator_name parameter)\n"+ - "- load_report: Broker load information"), - ), - mcp.WithString("allocator_name", - mcp.Description("The name of the allocator to get statistics for. Required only when resource=allocator_stats"), - ), - ) - s.AddTool(brokerStatsTool, handleBrokerStats(readOnly)) -} - -// handleBrokerStats returns a function to handle broker stats requests -func handleBrokerStats(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get required resource parameter - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + - "Please specify one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.")), nil - } - - // Process request based on resource type - switch resource { - case "monitoring_metrics": - return handleMonitoringMetrics(client) - case "mbeans": - return handleMBeans(client) - case "topics": - return handleTopics(client) - case "allocator_stats": - allocatorName, err := request.RequireString("allocator_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'allocator_name' for allocator_stats resource. " + - "Please provide the name of the allocator to get statistics for.")), nil - } - return handleAllocatorStats(client, allocatorName) - case "load_report": - return handleLoadReport(client) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.", resource)), nil - } - } -} - -// handleMonitoringMetrics handles retrieving monitoring metrics -func handleMonitoringMetrics(client cmdutils.Client) (*mcp.CallToolResult, error) { - // Get monitoring metrics - metrics, err := client.BrokerStats().GetMetrics() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get monitoring metrics: %v", err)), nil - } - - // Convert result to JSON string - metricsJSON, err := json.Marshal(metrics) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize monitoring metrics: %v", err)), nil - } - - return mcp.NewToolResultText(string(metricsJSON)), nil -} - -// handleMBeans handles retrieving mbean stats -func handleMBeans(client cmdutils.Client) (*mcp.CallToolResult, error) { - // Get mbean stats - mbeans, err := client.BrokerStats().GetMBeans() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get mbean stats: %v", err)), nil - } - - // Convert result to JSON string - mbeansJSON, err := json.Marshal(mbeans) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize mbean stats: %v", err)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminBrokerStatsToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - return mcp.NewToolResultText(string(mbeansJSON)), nil -} - -// handleTopics handles retrieving topics stats -func handleTopics(client cmdutils.Client) (*mcp.CallToolResult, error) { - // Get topics stats - topics, err := client.BrokerStats().GetTopics() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topics stats: %v", err)), nil - } - - // Convert result to JSON string - topicsJSON, err := json.Marshal(topics) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize topics stats: %v", err)), nil - } - - return mcp.NewToolResultText(string(topicsJSON)), nil -} - -// handleAllocatorStats handles retrieving allocator stats -func handleAllocatorStats(client cmdutils.Client, allocatorName string) (*mcp.CallToolResult, error) { - // Get allocator stats - stats, err := client.BrokerStats().GetAllocatorStats(allocatorName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get allocator stats: %v", err)), nil - } - - // Convert result to JSON string - statsJSON, err := json.Marshal(stats) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize allocator stats: %v", err)), nil - } - - return mcp.NewToolResultText(string(statsJSON)), nil -} - -// handleLoadReport handles retrieving broker load report -func handleLoadReport(client cmdutils.Client) (*mcp.CallToolResult, error) { - // Get load report - loadReport, err := client.BrokerStats().GetLoadReport() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get broker load report: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - // Convert result to JSON string - loadReportJSON, err := json.Marshal(loadReport) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize broker load report: %v", err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(loadReportJSON)), nil } diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go index 70d404c..d61b712 100644 --- a/pkg/mcp/pulsar_admin_brokers_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -19,302 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddBrokersTools adds broker-related tools to the MCP server func PulsarAdminAddBrokersTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminBrokers)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - // Create a single unified broker tool to replace multiple individual tools - brokersTool := mcp.NewTool("pulsar_admin_brokers", - mcp.WithDescription("Unified tool for managing Apache Pulsar broker resources. This tool integrates multiple broker management functions, including:\n"+ - "1. List active brokers in a cluster (resource=brokers, operation=list)\n"+ - "2. Check broker health status (resource=health, operation=get)\n"+ - "3. Manage broker configurations (resource=config, operation=get/update/delete)\n"+ - "4. View namespaces owned by a broker (resource=namespaces, operation=get)\n\n"+ - "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n"+ - "Example: {\"resource\": \"config\", \"operation\": \"get\", \"configType\": \"dynamic\"} retrieves all dynamic configuration names.\n"+ - "This tool requires Pulsar super-user permissions."), - mcp.WithString("resource", mcp.Required(), - mcp.Description("Type of resource to access, available options:\n"+ - "- brokers: Manage broker listings\n"+ - "- health: Check broker health status\n"+ - "- config: Manage broker configurations\n"+ - "- namespaces: Manage namespaces owned by a broker"), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description("Operation to perform, available options:\n"+ - "- list: List resources (used with brokers)\n"+ - "- get: Retrieve resource information (used with health, config, namespaces)\n"+ - "- update: Update a resource (used with config)\n"+ - "- delete: Delete a resource (used with config)"), - ), - mcp.WithString("clusterName", - mcp.Description("Pulsar cluster name, required for these operations:\n"+ - "- When resource=brokers, operation=list\n"+ - "- When resource=namespaces, operation=get"), - ), - mcp.WithString("brokerUrl", - mcp.Description("Broker URL, such as '127.0.0.1:8080', required for these operations:\n"+ - "- When resource=namespaces, operation=get"), - ), - mcp.WithString("configType", - mcp.Description("Configuration type, required when resource=config, operation=get, available options:\n"+ - "- dynamic: Get list of dynamically modifiable configuration names\n"+ - "- runtime: Get all runtime configurations (including static and dynamic configs)\n"+ - "- internal: Get internal configuration information\n"+ - "- all_dynamic: Get all dynamic configurations and their current values"), - ), - mcp.WithString("configName", - mcp.Description("Configuration parameter name, required for these operations:\n"+ - "- When resource=config, operation=update\n"+ - "- When resource=config, operation=delete"), - ), - mcp.WithString("configValue", - mcp.Description("Configuration parameter value, required for these operations:\n"+ - "- When resource=config, operation=update"), - ), - ) - s.AddTool(brokersTool, handleBrokerTool(readOnly)) -} - -// Return a handler function, with readOnly state captured in closure -func handleBrokerTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + - "Please specify one of: brokers, health, config, namespaces.")), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + - "Please specify one of: list, get, update, delete based on the resource type.")), nil - } - - // Validate if the parameter combination is valid - validCombination, errMsg := validateResourceOperation(resource, operation) - if !validCombination { - return mcp.NewToolResultError(errMsg), nil - } - - // Process request based on resource type - switch resource { - case "brokers": - return handleBrokersResource(client, operation, request) - case "health": - return handleHealthResource(client, operation, request) - case "config": - // Check write operation permissions - if (operation == "update" || operation == "delete") && readOnly { - return mcp.NewToolResultError("Configuration update/delete operations not allowed in read-only mode. " + - "Please contact your administrator if you need to modify broker configurations."), nil - } - return handleConfigResource(client, operation, request) - case "namespaces": - return handleNamespacesResource(client, operation, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: brokers, health, config, namespaces.", resource)), nil - } - } -} - -// Validate if the resource and operation combination is valid -func validateResourceOperation(resource, operation string) (bool, string) { - validCombinations := map[string][]string{ - "brokers": {"list"}, - "health": {"get"}, - "config": {"get", "update", "delete"}, - "namespaces": {"get"}, - } - - if operations, ok := validCombinations[resource]; ok { - for _, op := range operations { - if op == operation { - return true, "" - } - } - return false, fmt.Sprintf("Invalid operation '%s' for resource '%s'. Valid operations are: %v", - operation, resource, validCombinations[resource]) - } - - return false, fmt.Sprintf("Invalid resource '%s'. Valid resources are: brokers, health, config, namespaces", resource) -} - -// Handle brokers resource -func handleBrokersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "list": - clusterName, err := request.RequireString("clusterName") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + - "Please provide the name of the Pulsar cluster to list brokers for.")), nil - } - - brokers, err := client.Brokers().GetActiveBrokers(clusterName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get active brokers: %v. "+ - "Please verify the cluster name and ensure the Pulsar service is running.", err)), nil - } - - brokersJSON, err := json.Marshal(brokers) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers list: %v", err)), nil - } - - return mcp.NewToolResultText(string(brokersJSON)), nil - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for brokers resource. "+ - "The only supported operation is 'list'.", operation)), nil - } -} - -// Handle health resource -func handleHealthResource(client cmdutils.Client, operation string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "get": - //nolint:staticcheck - err := client.Brokers().HealthCheck() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Broker health check failed: %v. "+ - "The broker might be down or experiencing issues.", err)), nil - } - return mcp.NewToolResultText("ok"), nil - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for health resource. "+ - "The only supported operation is 'get'.", operation)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminBrokersToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } -} - -// Handle config resource -func handleConfigResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "get": - configType, err := request.RequireString("configType") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configType'. " + - "Please specify one of: dynamic, runtime, internal, all_dynamic.")), nil - } - - var result interface{} - var fetchErr error - - switch configType { - case "dynamic": - result, fetchErr = client.Brokers().GetDynamicConfigurationNames() - case "runtime": - result, fetchErr = client.Brokers().GetRuntimeConfigurations() - case "internal": - result, fetchErr = client.Brokers().GetInternalConfigurationData() - case "all_dynamic": - result, fetchErr = client.Brokers().GetAllDynamicConfigurations() - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid config type: '%s'. "+ - "Valid types are: dynamic, runtime, internal, all_dynamic.", configType)), nil - } - - if fetchErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get %s configuration: %v", configType, fetchErr)), nil - } - - resultJSON, err := json.Marshal(result) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize configuration: %v", err)), nil - } - - return mcp.NewToolResultText(string(resultJSON)), nil - - case "update": - configName, err := request.RequireString("configName") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + - "Please provide the name of the configuration parameter to update.")), nil - } - - configValue, err := request.RequireString("configValue") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configValue'. " + - "Please provide the new value for the configuration parameter.")), nil - } - - err = client.Brokers().UpdateDynamicConfiguration(configName, configValue) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update configuration: %v. "+ - "Please verify the configuration name is valid and the value is of the correct type.", err)), nil - } - return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' updated successfully to '%s'", - configName, configValue)), nil - - case "delete": - configName, err := request.RequireString("configName") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'configName'. " + - "Please provide the name of the configuration parameter to delete.")), nil - } - - err = client.Brokers().DeleteDynamicConfiguration(configName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete configuration: %v. "+ - "Please verify the configuration name is valid and exists.", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' deleted successfully", configName)), nil - - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for config resource. "+ - "Supported operations are: get, update, delete.", operation)), nil + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + // Log error but don't fail - this maintains backward compatibility + return } -} - -// Handle namespaces resource -func handleNamespacesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "get": - clusterName, err := request.RequireString("clusterName") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'clusterName'. " + - "Please provide the name of the Pulsar cluster.")), nil - } - - brokerURL, err := request.RequireString("brokerUrl") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokerUrl'. " + - "Please provide the URL of the broker (e.g., '127.0.0.1:8080').")), nil - } - - namespaces, err := client.Brokers().GetOwnedNamespaces(clusterName, brokerURL) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get owned namespaces: %v. "+ - "Please verify the cluster name and broker URL are correct.", err)), nil - } - - namespacesJSON, err := json.Marshal(namespaces) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespaces: %v", err)), nil - } - - return mcp.NewToolResultText(string(namespacesJSON)), nil - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for namespaces resource. "+ - "The only supported operation is 'get'.", operation)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } } diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index 7f526a4..b7a9ba2 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -19,505 +19,34 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddClusterTools adds cluster-related tools to the MCP server -func PulsarAdminAddClusterTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminClusters)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - // Create a single unified cluster tool - clusterTool := mcp.NewTool("pulsar_admin_cluster", - mcp.WithDescription("Unified tool for managing Apache Pulsar clusters.\n"+ - "This tool provides access to various cluster resources and operations, including:\n"+ - "1. Manage clusters (resource=cluster): List, get, create, update, delete clusters\n"+ - "2. Manage peer clusters (resource=peer_clusters): Get, update peer clusters\n"+ - "3. Manage failure domains (resource=failure_domain): List, get, create, update, delete failure domains\n\n"+ - "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n\n"+ - "Examples:\n"+ - "- {\"resource\": \"cluster\", \"operation\": \"list\"} lists all clusters\n"+ - "- {\"resource\": \"cluster\", \"operation\": \"get\", \"cluster_name\": \"my-cluster\"} gets cluster configuration\n"+ - "- {\"resource\": \"failure_domain\", \"operation\": \"list\", \"cluster_name\": \"my-cluster\"} lists failure domains\n"+ - "This tool requires Pulsar super-user permissions."), - mcp.WithString("resource", mcp.Required(), - mcp.Description("Type of cluster resource to access, available options:\n"+ - "- cluster: Pulsar cluster configuration\n"+ - "- peer_clusters: Peer clusters for geo-replication\n"+ - "- failure_domain: Failure domains for fault tolerance"), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description("Operation to perform, available options (depend on resource):\n"+ - "- list: List resources (used with cluster, failure_domain)\n"+ - "- get: Retrieve resource information (used with cluster, peer_clusters, failure_domain)\n"+ - "- create: Create a new resource (used with cluster, failure_domain)\n"+ - "- update: Update an existing resource (used with cluster, peer_clusters, failure_domain)\n"+ - "- delete: Delete a resource (used with cluster, failure_domain)"), - ), - mcp.WithString("cluster_name", - mcp.Description("Name of the Pulsar cluster, required for all operations except 'list' with resource=cluster"), - ), - mcp.WithString("domain_name", - mcp.Description("Name of the failure domain, required when resource=failure_domain and operation is get, create, update, or delete"), - ), - mcp.WithString("service_url", - mcp.Description("Pulsar cluster web service URL (e.g., http://example.pulsar.io:8080), used when resource=cluster and operation is create or update"), - ), - mcp.WithString("service_url_tls", - mcp.Description("Pulsar cluster TLS secured web service URL (e.g., https://example.pulsar.io:8443), used when resource=cluster and operation is create or update"), - ), - mcp.WithString("broker_service_url", - mcp.Description("Pulsar cluster broker service URL (e.g., pulsar://example.pulsar.io:6650), used when resource=cluster and operation is create or update"), - ), - mcp.WithString("broker_service_url_tls", - mcp.Description("Pulsar cluster TLS secured broker service URL (e.g., pulsar+ssl://example.pulsar.io:6651), used when resource=cluster and operation is create or update"), - ), - mcp.WithArray("peer_cluster_names", - mcp.Description("List of clusters to be registered as peer-clusters, used when:\n"+ - "- resource=cluster and operation is create or update\n"+ - "- resource=peer_clusters and operation is update"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "peer cluster name", - }, - ), - ), - mcp.WithArray("brokers", - mcp.Description("List of broker names to include in a failure domain, required when resource=failure_domain and operation is create or update"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "broker", - }, - ), - ), - ) - s.AddTool(clusterTool, handleClusterTool(readOnly)) -} - -// handleClusterTool returns a function to handle cluster tool requests -func handleClusterTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required resource parameter. " + - "Please specify one of: cluster, peer_clusters, failure_domain.")), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required operation parameter. " + - "Please specify one of: list, get, create, update, delete based on the resource type.")), nil - } - - // Validate if the parameter combination is valid - validCombination, errMsg := validateClusterResourceOperation(resource, operation) - if !validCombination { - return mcp.NewToolResultError(errMsg), nil - } - - // Check write operation permissions - if (operation == "create" || operation == "update" || operation == "delete") && readOnly { - return mcp.NewToolResultError("Create/update/delete operations not allowed in read-only mode. " + - "Please contact your administrator if you need to modify cluster resources."), nil - } - - // Process request based on resource type - switch resource { - case "cluster": - return handleClusterResource(client, operation, request) - case "peer_clusters": - return handlePeerClustersResource(client, operation, request) - case "failure_domain": - return handleFailureDomainResource(client, operation, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: cluster, peer_clusters, failure_domain.", resource)), nil - } - } -} - -// Validate if the resource and operation combination is valid -func validateClusterResourceOperation(resource, operation string) (bool, string) { - validCombinations := map[string][]string{ - "cluster": {"list", "get", "create", "update", "delete"}, - "peer_clusters": {"get", "update"}, - "failure_domain": {"list", "get", "create", "update", "delete"}, - } - - if operations, ok := validCombinations[resource]; ok { - for _, op := range operations { - if op == operation { - return true, "" - } - } - return false, fmt.Sprintf("Invalid operation '%s' for resource '%s'. Valid operations are: %v", - operation, resource, validCombinations[resource]) - } - - return false, fmt.Sprintf("Invalid resource '%s'. Valid resources are: cluster, peer_clusters, failure_domain", resource) -} - -// Handle cluster resource operations -func handleClusterResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "list": - return handleClusterList(client) - case "get": - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to get information for.")), nil - } - return getClusterData(client, clusterName) - case "create": - return createCluster(client, request) - case "update": - return updateCluster(client, request) - case "delete": - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to delete.")), nil - } - return deleteCluster(client, clusterName) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for cluster resource. "+ - "Supported operations are: list, get, create, update, delete.", operation)), nil - } -} - -// Handle peer_clusters resource operations -func handlePeerClustersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to operate on.")), nil - } - - switch operation { - case "get": - return getPeerClusters(client, clusterName) - case "update": - peerClusters, err := request.RequireStringSlice("peer_cluster_names") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'peer_cluster_names'. " + - "Please provide an array of peer cluster names to set.")), nil - } - return updatePeerClusters(client, clusterName, peerClusters) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for peer_clusters resource. "+ - "Supported operations are: get, update.", operation)), nil - } -} - -// Handle failure_domain resource operations -func handleFailureDomainResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to operate on.")), nil - } - - switch operation { - case "list": - return listFailureDomains(client, clusterName) - case "get": - domainName, err := request.RequireString("domain_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain to get.")), nil - } - return getFailureDomain(client, clusterName, domainName) - case "create": - return createFailureDomain(client, request) - case "update": - return updateFailureDomain(client, request) - case "delete": - domainName, err := request.RequireString("domain_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain to delete.")), nil - } - return deleteFailureDomain(client, clusterName, domainName) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for failure_domain resource. "+ - "Supported operations are: list, get, create, update, delete.", operation)), nil - } -} - -// handleClusterList handles listing all clusters -func handleClusterList(client cmdutils.Client) (*mcp.CallToolResult, error) { - // Get cluster list - clusters, err := client.Clusters().List() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster list: %v", err)), nil - } - - // Convert result to JSON string - clustersJSON, err := json.Marshal(clusters) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize cluster list: %v", err)), nil - } - - return mcp.NewToolResultText(string(clustersJSON)), nil -} - -// getClusterData gets the cluster data -func getClusterData(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { - clusterData, err := client.Clusters().Get(clusterName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster data: %v", err)), nil - } - - // Convert result to JSON string - clusterDataJSON, err := json.Marshal(clusterData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize cluster data: %v", err)), nil - } - - return mcp.NewToolResultText(string(clusterDataJSON)), nil -} - -// createCluster creates a new Pulsar cluster -func createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to create.")), nil - } - - clusterData := utils.ClusterData{ - Name: clusterName, - } - - // Set optional parameters if provided - if serviceURL := request.GetString("service_url", ""); serviceURL != "" { - clusterData.ServiceURL = serviceURL - } - if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { - clusterData.ServiceURLTls = serviceURLTls - } - if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { - clusterData.BrokerServiceURL = brokerServiceURL - } - if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { - clusterData.BrokerServiceURLTls = brokerServiceURLTls - } - if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { - clusterData.PeerClusterNames = peerClusters - } - - err = client.Clusters().Create(clusterData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create cluster: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Cluster %s created successfully", clusterName)), nil -} - -// updateCluster updates an existing Pulsar cluster -func updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to update.")), nil - } - - clusterData := utils.ClusterData{ - Name: clusterName, - } - - // Set optional parameters if provided - if serviceURL := request.GetString("service_url", ""); serviceURL != "" { - clusterData.ServiceURL = serviceURL - } - if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { - clusterData.ServiceURLTls = serviceURLTls - } - if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { - clusterData.BrokerServiceURL = brokerServiceURL - } - if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { - clusterData.BrokerServiceURLTls = brokerServiceURLTls - } - if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { - clusterData.PeerClusterNames = peerClusters - } - - err = client.Clusters().Update(clusterData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update cluster: %v", err)), nil +// PulsarAdminClusterTools creates Pulsar Admin Cluster tool list using the new builder pattern +func PulsarAdminClusterTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarAdminClusterToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - return mcp.NewToolResultText(fmt.Sprintf("Cluster %s updated successfully", clusterName)), nil -} - -// deleteCluster deletes an existing Pulsar cluster -func deleteCluster(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { - err := client.Clusters().Delete(clusterName) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete cluster: %v", err)), nil + // In production environment, this should use proper logging + return nil } - return mcp.NewToolResultText(fmt.Sprintf("Cluster %s deleted successfully", clusterName)), nil + return tools } -// getPeerClusters gets the peer clusters for a specified cluster -func getPeerClusters(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { - peerClusters, err := client.Clusters().GetPeerClusters(clusterName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get peer clusters: %v", err)), nil - } - - // Convert result to JSON string - peerClustersJSON, err := json.Marshal(peerClusters) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize peer clusters: %v", err)), nil - } - - return mcp.NewToolResultText(string(peerClustersJSON)), nil -} - -// updatePeerClusters updates the peer clusters for a specified cluster -func updatePeerClusters(client cmdutils.Client, clusterName string, peerClusters []string) (*mcp.CallToolResult, error) { - err := client.Clusters().UpdatePeerClusters(clusterName, peerClusters) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update peer clusters: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Peer clusters for %s updated successfully", clusterName)), nil -} - -// getFailureDomain gets the configuration of a specific failure domain -func getFailureDomain(client cmdutils.Client, clusterName string, domainName string) (*mcp.CallToolResult, error) { - failureDomain, err := client.Clusters().GetFailureDomain(clusterName, domainName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get failure domain: %v", err)), nil - } - - // Convert result to JSON string - failureDomainJSON, err := json.Marshal(failureDomain) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize failure domain: %v", err)), nil - } - - return mcp.NewToolResultText(string(failureDomainJSON)), nil -} - -// listFailureDomains gets the list of failure domains for a specified cluster -func listFailureDomains(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { - failureDomains, err := client.Clusters().ListFailureDomains(clusterName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list failure domains: %v", err)), nil - } - - // Convert result to JSON string - failureDomainsJSON, err := json.Marshal(failureDomains) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize failure domains: %v", err)), nil - } - - return mcp.NewToolResultText(string(failureDomainsJSON)), nil -} - -// createFailureDomain creates a new failure domain in the specified cluster -func createFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster.")), nil - } - - domainName, err := request.RequireString("domain_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain to create.")), nil - } - - brokers, err := request.RequireStringSlice("brokers") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + - "Please provide an array of broker names to include in this failure domain.")), nil - } - - failureDomain := utils.FailureDomainData{ - ClusterName: clusterName, - DomainName: domainName, - BrokerList: brokers, - } - - err = client.Clusters().CreateFailureDomain(failureDomain) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create failure domain: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Failure domain %s created successfully in cluster %s", domainName, clusterName)), nil -} - -// updateFailureDomain updates an existing failure domain in the specified cluster -func updateFailureDomain(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster.")), nil - } - - domainName, err := request.RequireString("domain_name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain to update.")), nil - } - - brokers, err := request.RequireStringSlice("brokers") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'brokers'. " + - "Please provide an array of broker names to include in this failure domain.")), nil - } - - failureDomain := utils.FailureDomainData{ - ClusterName: clusterName, - DomainName: domainName, - BrokerList: brokers, - } - - err = client.Clusters().UpdateFailureDomain(failureDomain) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update failure domain: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Failure domain %s updated successfully in cluster %s", domainName, clusterName), - ), nil -} - -// deleteFailureDomain deletes a failure domain from the specified cluster -func deleteFailureDomain(client cmdutils.Client, clusterName string, domainName string) (*mcp.CallToolResult, error) { - failureDomain := utils.FailureDomainData{ - ClusterName: clusterName, - DomainName: domainName, - } +// PulsarAdminAddClusterTools adds cluster-related tools to the MCP server +func PulsarAdminAddClusterTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarAdminClusterTools(readOnly, features) - err := client.Clusters().DeleteFailureDomain(failureDomain) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete failure domain: %v", err)), nil + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(fmt.Sprintf( - "Failure domain %s deleted successfully from cluster %s", domainName, clusterName)), nil } diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index 0a3c798..6a59754 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -19,590 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddFunctionsTools adds a unified function-related tool to the MCP server func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminFunctions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - // Create a single unified tool for all function operations - toolDesc := "Manage Apache Pulsar Functions for stream processing. " + - "Pulsar Functions are lightweight compute processes that can consume messages from one or more Pulsar topics, " + - "apply user-defined processing logic, and produce results to another topic. " + - "Functions support Java, Python, and Go runtimes, enabling complex event processing, " + - "data transformations, filtering, and integration with external systems. " + - "Functions follow the tenant/namespace/name hierarchy for organization, " + - "can maintain state, and can scale through parallelism configuration. " + - "This tool provides complete lifecycle management including deployment, monitoring, scaling, " + - "state management, and triggering. Functions require proper permissions to access their topics." - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all functions under a specific tenant and namespace\n" + - "- get: Get the configuration of a function\n" + - "- status: Get the runtime status of a function (instances, metrics)\n" + - "- stats: Get detailed statistics of a function (throughput, processing latency)\n" + - "- querystate: Query state stored by a stateful function for a specific key\n" + - "- create: Deploy a new function with specified parameters\n" + - "- update: Update the configuration of an existing function\n" + - "- delete: Delete a function\n" + - "- start: Start a stopped function\n" + - "- stop: Stop a running function\n" + - "- restart: Restart a function\n" + - "- putstate: Store state in a function's state store\n" + - "- trigger: Manually trigger a function with a specific value" - - functionsTool := mcp.NewTool("pulsar_admin_functions", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc)), - mcp.WithString("tenant", mcp.Required(), - mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ - "providing multi-tenancy and resource isolation. Functions deployed within a tenant "+ - "inherit its permissions and resource quotas.")), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name. Namespaces are logical groupings of topics and functions "+ - "within a tenant. They encapsulate configuration policies and access control. "+ - "Functions in a namespace typically process topics within the same namespace.")), - mcp.WithString("name", - mcp.Description("The function name. Required for all operations except 'list'. "+ - "Names should be descriptive of the function's purpose and must be unique within a namespace. "+ - "Function names are used in metrics, logs, and when addressing the function via APIs.")), - // Additional parameters for specific operations - mcp.WithString("classname", - mcp.Description("The fully qualified class name implementing the function. Required for 'create' operation, optional for 'update'. "+ - "For Java functions, this should be the class that implements pulsar function interfaces. "+ - "For Python, this MUST be in format of `.` - for example: "+ - "if file is '/path/to/exclamation.py' with class 'ExclamationFunction', classname must be 'exclamation.ExclamationFunction'; "+ - "if file is '/path/to/double_number.py' with class 'DoubleNumber', classname must be 'double_number.DoubleNumber'. "+ - "Common error: using just the class name 'DoubleNumber' (without filename prefix) will cause function creation to fail. "+ - "Go functions should specify the 'main' function of the binary.")), - mcp.WithArray("inputs", - mcp.Description("The input topics for the function (array of strings). Optional for 'create' and 'update' operations. "+ - "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ - "Functions can consume from multiple topics, each with potentially different serialization types. "+ - "All input topics should exist before the function is created."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "input topic", - }, - ), - ), - mcp.WithString("output", - mcp.Description("The output topic for the function results. Optional for 'create' and 'update' operations. "+ - "Specified in the format 'persistent://tenant/namespace/topic'. "+ - "If not set, the function will not produce any output to topics. "+ - "The output topic will be automatically created if it doesn't exist.")), - mcp.WithString("jar", - mcp.Description("Path to the JAR file containing the function code. Optional for 'create' and 'update' operations. "+ - "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ - "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ - "For Java functions, this should contain all dependencies for the function. "+ - "The jar file must be compatible with the Pulsar Functions API.")), - mcp.WithString("py", - mcp.Description("Path to the Python file containing the function code. Optional for 'create' and 'update' operations. "+ - "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ - "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ - "For Python functions, this should be the file path to the Python file, in format of `.py`, `.zip`, or `.whl`. "+ - "The Python file must be compatible with the Pulsar Functions API.")), - mcp.WithString("go", - mcp.Description("Path to the Go file containing the function code. Optional for 'create' and 'update' operations. "+ - "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ - "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ - "For Go functions, this should be the file path to the Go file, in format of executable binary. "+ - "The Go file must be compatible with the Pulsar Functions API.")), - mcp.WithNumber("parallelism", - mcp.Description("The parallelism factor of the function. Optional for 'create' and 'update' operations. "+ - "Determines how many instances of the function will run concurrently. "+ - "Higher values improve throughput but require more resources. "+ - "For stateful functions, consider how parallelism affects state consistency. "+ - "Default is 1 (single instance).")), - mcp.WithObject("userConfig", - mcp.Description("User-defined config key/values. Optional for 'create' and 'update' operations. "+ - "Provides configuration parameters accessible to the function at runtime. "+ - "Specify as a JSON object with string, number, or boolean values. "+ - "Common configs include connection parameters, batch sizes, or feature toggles. "+ - "Example: {\"maxBatchSize\": 100, \"connectionString\": \"host:port\", \"debugMode\": true}")), - mcp.WithString("key", - mcp.Description("The state key. Required for 'querystate' and 'putstate' operations. "+ - "Keys are used to identify values in the function's state store. "+ - "They should be reasonable in length and follow a consistent pattern. "+ - "State keys are typically limited to 128 characters.")), - mcp.WithString("value", - mcp.Description("The state value. Required for 'putstate' operation. "+ - "Values are stored in the function's state system. "+ - "For simple values, specify as a string. For complex objects, use JSON-serialized strings. "+ - "State values are typically limited to 1MB in size.")), - mcp.WithString("topic", - mcp.Description("The specific topic name that the function should consume from. Optional for 'trigger' operation. "+ - "Specified in the format 'persistent://tenant/namespace/topic'. "+ - "Used when triggering a function that consumes from multiple topics. "+ - "If not provided, the first input topic will be used.")), - mcp.WithString("triggerValue", - mcp.Description("The value with which to trigger the function. Required for 'trigger' operation. "+ - "This value will be passed to the function as if it were a message from the input topic. "+ - "String values are sent as is; for typed values, ensure proper formatting based on function expectations. "+ - "The function processes this value just like a normal message.")), - ) - - // Add the tool with the handler that captures readOnly state - s.AddTool(functionsTool, handleFunctionsTool(readOnly)) -} - -// handleFunctionsTool returns a handler function for the unified functions tool -func handleFunctionsTool(readOnly bool) func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client with API version V3 - client := cmdutils.NewPulsarClientWithAPIVersion(config.V3) - - // Extract and validate operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil - } - - // Check if the operation is valid - validOperations := map[string]bool{ - "list": true, "get": true, "status": true, "stats": true, "querystate": true, - "create": true, "update": true, "delete": true, "start": true, "stop": true, - "restart": true, "putstate": true, "trigger": true, - } - - if !validOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, stats, querystate, create, update, delete, start, stop, restart, putstate, trigger", operation)), nil - } - - // Check write permissions for write operations - writeOperations := map[string]bool{ - "create": true, "update": true, "delete": true, "start": true, - "stop": true, "restart": true, "putstate": true, "trigger": true, - } - - if readOnly && writeOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Functions.", operation)), nil - } - - // Extract common parameters - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations.", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations.", err)), nil - } - - // For all operations except 'list', name is required - var name string - if operation != "list" { - name, err = request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation.", operation, err)), nil - } - } - - // Handle operation - switch operation { - case "list": - return handleFunctionList(ctx, client, tenant, namespace) - case "get": - return handleFunctionGet(ctx, client, tenant, namespace, name) - case "status": - return handleFunctionStatus(ctx, client, tenant, namespace, name) - case "stats": - return handleFunctionStats(ctx, client, tenant, namespace, name) - case "querystate": - key, err := request.RequireString("key") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store.", err)), nil - } - return handleFunctionQuerystate(ctx, client, tenant, namespace, name, key) - case "create": - return handleFunctionCreate(ctx, client, tenant, namespace, name, request) - case "update": - return handleFunctionUpdate(ctx, client, tenant, namespace, name, request) - case "delete": - return handleFunctionDelete(ctx, client, tenant, namespace, name) - case "start": - return handleFunctionStart(ctx, client, tenant, namespace, name) - case "stop": - return handleFunctionStop(ctx, client, tenant, namespace, name) - case "restart": - return handleFunctionRestart(ctx, client, tenant, namespace, name) - case "putstate": - key, err := request.RequireString("key") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store.", err)), nil - } - value, err := request.RequireString("value") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store.", err)), nil - } - return handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) - case "trigger": - topic := request.GetString("topic", "") - triggerValue := request.GetString("triggerValue", "") - return handleFunctionTrigger(ctx, client, tenant, namespace, name, topic, triggerValue) - default: - // This should never happen due to the valid operations check above - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil - } - } -} - -// handleFunctionList handles listing all functions under a namespace -func handleFunctionList(_ context.Context, client cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { - // Get function list - functions, err := client.Functions().GetFunctions(tenant, namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list functions in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", - tenant, namespace, err)), nil - } - - // Convert result to JSON string - functionsJSON, err := json.Marshal(functions) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function list: %v", err)), nil - } - - return mcp.NewToolResultText(string(functionsJSON)), nil -} - -// handleFunctionGet handles getting information about a function -func handleFunctionGet(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - // Get function info - functionConfig, err := client.Functions().GetFunction(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and you have proper permissions.", - name, tenant, namespace, err)), nil - } - - // Convert result to JSON string - functionJSON, err := json.Marshal(functionConfig) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function info: %v", err)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminFunctionsToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - return mcp.NewToolResultText(string(functionJSON)), nil -} - -// handleFunctionStatus handles getting the status of a function -func handleFunctionStatus(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - // Get function status - status, err := client.Functions().GetFunctionStatus(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is properly deployed.", - name, tenant, namespace, err)), nil - } - - // Convert result to JSON string - statusJSON, err := json.Marshal(status) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function status: %v", err)), nil - } - - return mcp.NewToolResultText(string(statusJSON)), nil -} - -// handleFunctionStats handles getting the statistics of a function -func handleFunctionStats(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - // Get function stats - stats, err := client.Functions().GetFunctionStats(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for function '%s' in tenant '%s' namespace '%s': %v. The function must be running to retrieve statistics.", - name, tenant, namespace, err)), nil - } - - // Convert result to JSON string - statsJSON, err := json.Marshal(stats) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize function stats: %v", err)), nil - } - - return mcp.NewToolResultText(string(statsJSON)), nil -} - -// handleFunctionQuerystate handles querying the state of a function -func handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key string) (*mcp.CallToolResult, error) { - // Query function state - state, err := client.Functions().GetFunctionState(tenant, namespace, name, key) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to query state for function '%s' in tenant '%s' namespace '%s' with key '%s': %v. Verify the function exists and has state storage enabled.", - name, tenant, namespace, key, err)), nil - } - - // Convert to JSON for display - stateJSON, err := json.Marshal(state) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize state: %v", err)), nil - } - - return mcp.NewToolResultText(string(stateJSON)), nil -} - -// handleFunctionCreate handles creating a new function -func handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Extract required parameters - classname, err := request.RequireString("classname") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get classname (required for function creation): %v. The classname must specify the fully qualified class implementing the function.", err)), nil - } - - // Extract optional parameters - inputTopics := request.GetStringSlice("inputs", []string{}) - output := request.GetString("output", "") - jar := request.GetString("jar", "") - py := request.GetString("py", "") - goPath := request.GetString("go", "") - parallelismFloat := request.GetFloat("parallelism", 1) - parallelism := int(parallelismFloat) - - // Get user config if available - var userConfigMap map[string]interface{} - userConfigObj, ok := request.GetArguments()["userConfig"] - if ok && userConfigObj != nil { - if configMap, isMap := userConfigObj.(map[string]interface{}); isMap { - userConfigMap = configMap - } - } - - // Create function config - functionConfig := &utils.FunctionConfig{ - Tenant: tenant, - Namespace: namespace, - Name: name, - ClassName: classname, - Output: output, - Parallelism: parallelism, - } - - fileName := "" - // Set jar if provided - switch { - case jar != "": - jarPtr := jar - functionConfig.Jar = &jarPtr - fileName = jar - case py != "": - pyPtr := py - functionConfig.Py = &pyPtr - fileName = py - case goPath != "": - goPtr := goPath - functionConfig.Go = &goPtr - fileName = goPath - default: - return mcp.NewToolResultError("No file path provided for function creation. Please provide a valid file path for the function creation operation."), nil - } - - // Set inputs - if len(inputTopics) > 0 { - functionConfig.Inputs = inputTopics - } else { - return mcp.NewToolResultError("At least one input topic should be specified for function creation. Use the 'inputs' parameter with an array of topic names."), nil - } - - // Set user config if available - if userConfigMap != nil { - functionConfig.UserConfig = userConfigMap - } - - if IsPackageURLSupported(fileName) { - err = client.Functions().CreateFuncWithURL(functionConfig, fileName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", - name, tenant, namespace, err)), nil - } - } else { - // Create function - err = client.Functions().CreateFunc(functionConfig, fileName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", - name, tenant, namespace, err)), nil - } - } - - return mcp.NewToolResultText(fmt.Sprintf("Created function '%s' successfully in tenant '%s' namespace '%s'. The function will start processing messages from input topics.", - name, tenant, namespace)), nil -} - -// handleFunctionUpdate handles updating an existing function -func handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Extract optional parameters - classname := request.GetString("classname", "") - inputTopics := request.GetStringSlice("inputs", []string{}) - output := request.GetString("output", "") - jar := request.GetString("jar", "") - py := request.GetString("py", "") - goPath := request.GetString("go", "") - parallelismFloat := request.GetFloat("parallelism", 1) - parallelism := int(parallelismFloat) - - // Get user config if available - var userConfigMap map[string]interface{} - userConfigObj, ok := request.GetArguments()["userConfig"] - if ok && userConfigObj != nil { - if configMap, isMap := userConfigObj.(map[string]interface{}); isMap { - userConfigMap = configMap - } - } - - // Create function config - functionConfig := &utils.FunctionConfig{ - Tenant: tenant, - Namespace: namespace, - Name: name, - ClassName: classname, - Output: output, - Parallelism: parallelism, - } - - fileName := "" - // Set jar if provided - switch { - case jar != "": - jarPtr := jar - functionConfig.Jar = &jarPtr - fileName = jar - case py != "": - pyPtr := py - functionConfig.Py = &pyPtr - fileName = py - case goPath != "": - goPtr := goPath - functionConfig.Go = &goPtr - fileName = goPath - default: - return mcp.NewToolResultError("No file path provided for function update. Please provide a valid file path for the function update operation."), nil - } - - // Set inputs - if len(inputTopics) > 0 { - functionConfig.Inputs = inputTopics - } - - // Set user config if available - if userConfigMap != nil { - functionConfig.UserConfig = userConfigMap - } - - // Create update options - updateOptions := &utils.UpdateOptions{ - UpdateAuthData: true, - } - - // Update function - var err error - if IsPackageURLSupported(fileName) { - err = client.Functions().UpdateFunctionWithURL(functionConfig, fileName, updateOptions) - } else { - err = client.Functions().UpdateFunction(functionConfig, fileName, updateOptions) - } - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and all parameters are valid.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Updated function '%s' successfully in tenant '%s' namespace '%s'. The function may need to be restarted to apply all changes.", - name, tenant, namespace)), nil -} - -// handleFunctionDelete handles deleting a function -func handleFunctionDelete(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - // Delete function - err := client.Functions().DeleteFunction(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and you have deletion permissions.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Deleted function '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", - name, tenant, namespace)), nil -} - -// handleFunctionStart handles starting a function -func handleFunctionStart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - // Start function - err := client.Functions().StartFunction(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to start function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is not already running.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Started function '%s' successfully in tenant '%s' namespace '%s'. The function will begin processing messages from its input topics.", - name, tenant, namespace)), nil -} - -// handleFunctionStop handles stopping a function -func handleFunctionStop(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - // Stop function - err := client.Functions().StopFunction(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to stop function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is currently running.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Stopped function '%s' successfully in tenant '%s' namespace '%s'. The function will no longer process messages until restarted.", - name, tenant, namespace)), nil -} - -// handleFunctionRestart handles restarting a function -func handleFunctionRestart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - // Restart function - err := client.Functions().RestartFunction(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to restart function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is properly deployed.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Restarted function '%s' successfully in tenant '%s' namespace '%s'. All function instances have been restarted.", - name, tenant, namespace)), nil -} - -// handleFunctionPutstate handles putting state into the state store of a function -func handleFunctionPutstate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key, value string) (*mcp.CallToolResult, error) { - // Create function state - state := utils.FunctionState{ - Key: key, - StringValue: value, - } - - // Put function state - err := client.Functions().PutFunctionState(tenant, namespace, name, state) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to put state for function '%s' in tenant '%s' namespace '%s' with key '%s': %v. Verify the function exists and has state storage enabled.", - name, tenant, namespace, key, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Put state for function '%s' with key '%s' successfully in tenant '%s' namespace '%s'. The state is now stored and available to the function instances.", - name, key, tenant, namespace)), nil -} - -// handleFunctionTrigger handles triggering a function -func handleFunctionTrigger(_ context.Context, client cmdutils.Client, tenant, namespace, name, topic, triggerValue string) (*mcp.CallToolResult, error) { - // Trigger function - result, err := client.Functions().TriggerFunction(tenant, namespace, name, topic, triggerValue, "") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", - name, tenant, namespace, err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - if result == "" { - return mcp.NewToolResultText(fmt.Sprintf("Triggered function '%s' successfully in tenant '%s' namespace '%s', but it did not return any output. The function was executed with the provided value.", - name, tenant, namespace)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(fmt.Sprintf("Triggered function '%s' successfully in tenant '%s' namespace '%s'. Function output: %s", - name, tenant, namespace, result)), nil } diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go index fa7a0fd..bdb8141 100644 --- a/pkg/mcp/pulsar_admin_functions_worker_tools.go +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -19,159 +19,38 @@ package mcp import ( "context" - "encoding/json" "fmt" - "slices" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddFunctionsWorkerTools adds functions worker-related tools to the MCP server -func PulsarAdminAddFunctionsWorkerTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminFunctionsWorker)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - // Create a single unified functions worker tool - functionsWorkerTool := mcp.NewTool("pulsar_admin_functions_worker", - mcp.WithDescription("Unified tool for managing Apache Pulsar Functions Worker resources.\n"+ - "This tool provides access to various functions worker resources, including:\n"+ - "1. Function statistics (resource=function_stats): Get statistics for all functions running on this functions worker\n"+ - "2. Monitoring metrics (resource=monitoring_metrics): Get metrics for monitoring function workers\n"+ - "3. Cluster information (resource=cluster): Get information about the function worker cluster\n"+ - "4. Cluster leader (resource=cluster_leader): Get the leader of the worker cluster\n"+ - "5. Function assignments (resource=function_assignments): Get the assignments of functions across the worker cluster\n\n"+ - "Examples:\n"+ - "- {\"resource\": \"function_stats\"} returns statistics for all functions\n"+ - "- {\"resource\": \"cluster\"} returns all workers in the cluster\n"+ - "This tool requires Pulsar super-user permissions."), - mcp.WithString("resource", mcp.Required(), - mcp.Description("Type of functions worker resource to access, available options:\n"+ - "- function_stats: Statistics for all functions running on the functions worker\n"+ - "- monitoring_metrics: Metrics for monitoring function workers\n"+ - "- cluster: Information about all workers in the functions worker cluster\n"+ - "- cluster_leader: Information about the leader of the functions worker cluster\n"+ - "- function_assignments: Assignments of functions across the functions worker cluster"), - ), - ) - s.AddTool(functionsWorkerTool, handleFunctionsWorkerTool(readOnly)) -} - -// handleFunctionsWorkerTool returns a function to handle functions worker tool requests -func handleFunctionsWorkerTool(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create the admin client - admin := pulsar.AdminClient - - // Get required resource parameter - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'resource'. " + - "Please specify one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments.")), nil - } - - // Process request based on resource type - switch resource { - case "function_stats": - return handleFunctionsWorkerFunctionStats(admin) - case "monitoring_metrics": - return handleFunctionsWorkerMonitoringMetrics(admin) - case "cluster": - return handleFunctionsWorkerGetCluster(admin) - case "cluster_leader": - return handleFunctionsWorkerGetClusterLeader(admin) - case "function_assignments": - return handleFunctionsWorkerGetFunctionAssignments(admin) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments.", resource)), nil - } - } -} - -// handleFunctionsWorkerFunctionStats handles retrieving function statistics -func handleFunctionsWorkerFunctionStats(admin cmdutils.Client) (*mcp.CallToolResult, error) { - // Get function stats - stats, err := admin.FunctionsWorker().GetFunctionsStats() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get functions stats: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(stats) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal functions stats: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleFunctionsWorkerMonitoringMetrics handles retrieving monitoring metrics -func handleFunctionsWorkerMonitoringMetrics(admin cmdutils.Client) (*mcp.CallToolResult, error) { - // Get monitoring metrics - metrics, err := admin.FunctionsWorker().GetMetrics() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get monitoring metrics: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(metrics) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal monitoring metrics: %v", err)), nil +// PulsarAdminFunctionsWorkerTools creates Pulsar Admin Functions Worker tool list using the new builder pattern +func PulsarAdminFunctionsWorkerTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarAdminFunctionsWorkerToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleFunctionsWorkerGetCluster handles retrieving cluster information -func handleFunctionsWorkerGetCluster(admin cmdutils.Client) (*mcp.CallToolResult, error) { - // Get cluster info - cluster, err := admin.FunctionsWorker().GetCluster() + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster: %v", err)), nil + // In production environment, this should use proper logging + fmt.Printf("Failed to build Pulsar Admin Functions Worker tools: %v\n", err) + return nil } - // Format the output - jsonBytes, err := json.Marshal(cluster) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal worker cluster info: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil + return tools } -// handleFunctionsWorkerGetClusterLeader handles retrieving cluster leader information -func handleFunctionsWorkerGetClusterLeader(admin cmdutils.Client) (*mcp.CallToolResult, error) { - // Get cluster leader - leader, err := admin.FunctionsWorker().GetClusterLeader() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster leader: %v", err)), nil - } +// PulsarAdminAddFunctionsWorkerTools adds functions worker-related tools to the MCP server +func PulsarAdminAddFunctionsWorkerTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarAdminFunctionsWorkerTools(readOnly, features) - // Format the output - jsonBytes, err := json.Marshal(leader) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal worker cluster leader info: %v", err)), nil + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(jsonBytes)), nil } -// handleFunctionsWorkerGetFunctionAssignments handles retrieving function assignments -func handleFunctionsWorkerGetFunctionAssignments(admin cmdutils.Client) (*mcp.CallToolResult, error) { - // Get function assignments - assignments, err := admin.FunctionsWorker().GetAssignments() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get function assignments: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(assignments) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal function assignments: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} +// handleFunctionsWorkerTool returns a function to handle functions worker tool requests diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index 13a018e..a52b39d 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -19,1914 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strconv" - "strings" - "time" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - pulsarctlutils "github.com/streamnative/pulsarctl/pkg/ctl/utils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddNamespacePolicyTools adds namespace policy-related tools to the MCP server func PulsarAdminAddNamespacePolicyTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminNamespacePolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - namespaceGetPoliciesTool := mcp.NewTool("pulsar_admin_namespace_policy_get", - mcp.WithDescription("Get the configuration policies of a namespace. "+ - "Returns a comprehensive view of all policies applied to the namespace. "+ - "The response includes the following fields:"+ - "\n* bundles: Namespace bundle configuration, including boundaries and number of bundles"+ - "\n* persistence: Message persistence configuration"+ - "\n* retention_policies: Message retention policies defining how long messages are retained"+ - "\n* schema_validation_enforced: Whether schema validation is enforced"+ - "\n* deduplicationEnabled: Whether message deduplication is enabled"+ - "\n* deleted: Whether the namespace is marked as deleted"+ - "\n* encryption_required: Whether message encryption is required"+ - "\n* message_ttl_in_seconds: Time-to-live for messages in seconds, after which unacknowledged messages are deleted"+ - "\n* max_producers_per_topic: Maximum number of producers allowed per topic"+ - "\n* max_consumers_per_topic: Maximum number of consumers allowed per topic"+ - "\n* max_consumers_per_subscription: Maximum number of consumers allowed per subscription"+ - "\n* compaction_threshold: Threshold for topic compaction in bytes"+ - "\n* offload_threshold: Threshold for offloading data to tiered storage in bytes"+ - "\n* offload_deletion_lag_ms: Time lag in milliseconds for retaining offloaded data in hot storage"+ - "\n* antiAffinityGroup: Anti-affinity group for distribution across brokers"+ - "\n* replication_clusters: List of clusters to which data is replicated"+ - "\n* latency_stats_sample_rate: Rate at which latency statistics are collected"+ - "\n* backlog_quota_map: Backlog quota settings controlling behavior when quotas are exceeded"+ - "\n* topicDispatchRate: Rate limiting for topic message dispatch"+ - "\n* subscriptionDispatchRate: Rate limiting for subscription message dispatch"+ - "\n* replicatorDispatchRate: Rate limiting for replicator message dispatch"+ - "\n* publishMaxMessageRate: Maximum rate for publishing messages"+ - "\n* clusterSubscribeRate: Rate limiting for subscriptions per cluster"+ - "\n* autoTopicCreationOverride: Settings for automatic topic creation"+ - "\n* schema_auto_update_compatibility_strategy: Strategy for schema auto-updates"+ - "\n* auth_policies: Authorization policies for the namespace"+ - "\n* subscription_auth_mode: Authentication mode for subscriptions"+ - "\n* is_allow_auto_update_schema: Whether automatic schema updates are allowed"+ - "\nRequires tenant admin permissions."), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name (tenant/namespace) to get policies for"), - ), - ) - s.AddTool(namespaceGetPoliciesTool, handleNamespaceGetPolicies) - - // Only add write operations if not in read-only mode - if !readOnly { - // Add a unified namespace set policy tool - namespaceSetPolicyTool := mcp.NewTool("pulsar_admin_namespace_policy_set", - mcp.WithDescription("Set a policy for a namespace. "+ - "This is a unified tool for setting different types of policies on a namespace. "+ - "The policy type determines which specific policy will be set, and the required parameters "+ - "vary based on the policy type. "+ - "Requires appropriate admin permissions based on the policy being modified.\n\n"+ - "Available policy types and their required parameters:\n"+ - "1. message-ttl: Sets time to live for messages\n"+ - " - Required: namespace, ttl (in seconds)\n\n"+ - "2. retention: Sets retention policy for messages\n"+ - " - Required: namespace\n"+ - " - Optional: time (retention time in minutes, 0=no retention, -1=infinite), "+ - "size (e.g., 10M, 16G, 3T, 0=no retention, -1=infinite)\n\n"+ - "3. permission: Grants permissions to a role\n"+ - " - Required: namespace, role, actions (array of permissions: produce, consume)\n\n"+ - "4. replication-clusters: Sets clusters to replicate to\n"+ - " - Required: namespace, clusters (array of cluster names)\n\n"+ - "5. backlog-quota: Sets backlog quota policy\n"+ - " - Required: namespace, limit-size (e.g., 10M, 16G), policy (producer_request_hold, producer_exception, consumer_backlog_eviction)\n"+ - " - Optional: limit-time (seconds, -1=infinite), type (destination_storage, message_age)\n\n"+ - "6. topic-auto-creation: Configures automatic topic creation\n"+ - " - Required: namespace\n"+ - " - Optional: disable (true/false), type (partitioned, non-partitioned), partitions (integer)\n\n"+ - "7. schema-validation: Sets schema validation enforcement\n"+ - " - Required: namespace\n"+ - " - Optional: disable (true/false)\n\n"+ - "8. schema-auto-update: Sets schema auto-update strategy\n"+ - " - Required: namespace, compatibility (e.g., Backward, Forward, Full, AlwaysCompatible)\n\n"+ - "9. auto-update-schema: Controls if schemas can be automatically updated\n"+ - " - Required: namespace\n"+ - " - Optional: enable (true/false), disable (true/false)\n\n"+ - "10. offload-threshold: Sets threshold for data offloading\n"+ - " - Required: namespace, threshold (e.g., 10M, 16G, 3T, -1 to disable)\n\n"+ - "11. offload-deletion-lag: Sets time to wait before deleting offloaded data\n"+ - " - Required: namespace, lag (e.g., 1s, 1m, 1h)\n\n"+ - "12. compaction-threshold: Sets threshold for topic compaction\n"+ - " - Required: namespace, threshold (e.g., 10M, 16G, 3T, 0 to disable)\n\n"+ - "13. max-producers-per-topic: Limits producers per topic\n"+ - " - Required: namespace, max (integer > 0)\n\n"+ - "14. max-consumers-per-topic: Limits consumers per topic\n"+ - " - Required: namespace, max (integer > 0)\n\n"+ - "15. max-consumers-per-subscription: Limits consumers per subscription\n"+ - " - Required: namespace, max (integer > 0)\n\n"+ - "16. anti-affinity-group: Sets anti-affinity group for isolation\n"+ - " - Required: namespace, group (group name)\n\n"+ - "17. persistence: Sets persistence configuration\n"+ - " - Required: namespace, ensemble-size, write-quorum-size, ack-quorum-size\n"+ - " - Optional: ml-mark-delete-max-rate\n\n"+ - "18. deduplication: Controls message deduplication\n"+ - " - Required: namespace\n"+ - " - Optional: enable (true/false), disable (true/false)\n\n"+ - "19. encryption-required: Controls message encryption\n"+ - " - Required: namespace\n"+ - " - Optional: disable (true/false)\n\n"+ - "20. subscription-auth-mode: Sets subscription auth mode\n"+ - " - Required: namespace, mode (e.g., None, Prefix)\n\n"+ - "21. subscription-permission: Grants permissions to access a subscription\n"+ - " - Required: namespace, subscription, roles (array of role names)\n\n"+ - "22. dispatch-rate: Sets message dispatch rate\n"+ - " - Required: namespace\n"+ - " - Optional: dispatchThrottlingRateInMsg, dispatchThrottlingRateInByte, ratePeriodInSecond\n\n"+ - "23. replicator-dispatch-rate: Sets replicator dispatch rate\n"+ - " - Required: namespace\n"+ - " - Optional: dispatchThrottlingRateInMsg, dispatchThrottlingRateInByte, ratePeriodInSecond\n\n"+ - "24. subscribe-rate: Sets subscribe rate per consumer\n"+ - " - Required: namespace\n"+ - " - Optional: subscribeThrottlingRatePerConsumer, ratePeriodInSecond\n\n"+ - "25. subscription-dispatch-rate: Sets subscription dispatch rate\n"+ - " - Required: namespace\n"+ - " - Optional: dispatchThrottlingRateInMsg, dispatchThrottlingRateInByte, ratePeriodInSecond\n\n"+ - "26. publish-rate: Sets maximum message publish rate\n"+ - " - Required: namespace\n"+ - " - Optional: publishThrottlingRateInMsg, publishThrottlingRateInByte"), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name (tenant/namespace) to set the policy for"), - ), - mcp.WithString("policy", mcp.Required(), - mcp.Description("Type of policy to set. Available options: "+ - "message-ttl, retention, permission, replication-clusters, backlog-quota, "+ - "topic-auto-creation, schema-validation, schema-auto-update, auto-update-schema, "+ - "offload-threshold, offload-deletion-lag, compaction-threshold, "+ - "max-producers-per-topic, max-consumers-per-topic, max-consumers-per-subscription, "+ - "anti-affinity-group, persistence, deduplication, encryption-required, "+ - "subscription-auth-mode, subscription-permission, dispatch-rate, "+ - "replicator-dispatch-rate, subscribe-rate, subscription-dispatch-rate, publish-rate"), - ), - // Generic policy parameters - specific ones will be used based on the policy type - mcp.WithString("role", - mcp.Description("Role name for permission policies"), - ), - mcp.WithArray("actions", - mcp.Description("Actions to grant for permission policies (e.g., produce, consume)"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "action", - }, - ), - ), - mcp.WithArray("clusters", - mcp.Description("List of clusters for replication policies"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "cluster", - }, - ), - ), - mcp.WithArray("roles", - mcp.Description("List of roles for subscription permission policies"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "role", - }, - ), - ), - mcp.WithString("ttl", - mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), - ), - mcp.WithString("time", - mcp.Description("Retention time in minutes, or special values: 0 (no retention) or -1 (infinite retention)"), - ), - mcp.WithString("size", - mcp.Description("Retention size limit (e.g., 10M, 16G, 3T), or special values: 0 (no retention) or -1 (infinite size retention)"), - ), - mcp.WithString("limit-size", - mcp.Description("Size limit for backlog quota (e.g., 10M, 16G)"), - ), - mcp.WithString("limit-time", - mcp.Description("Time limit in seconds for backlog quota. Default is -1 (infinite)"), - ), - mcp.WithString("policy", - mcp.Description("Retention policy for backlog quota (valid options: producer_request_hold, producer_exception, consumer_backlog_eviction)"), - ), - mcp.WithString("type", - mcp.Description("Type parameter whose meaning depends on the policy type being set"), - ), - mcp.WithString("disable", - mcp.Description("Disable flag for various policies (true/false)"), - ), - mcp.WithString("enable", - mcp.Description("Enable flag for various policies (true/false)"), - ), - mcp.WithString("partitions", - mcp.Description("Number of partitions for topic auto-creation policy"), - ), - mcp.WithString("compatibility", - mcp.Description("Compatibility level for schema auto-update (e.g., BACKWARD, FORWARD, FULL)"), - ), - mcp.WithString("threshold", - mcp.Description("Threshold value for compaction or offload policies"), - ), - mcp.WithString("lag", - mcp.Description("Lag duration for offload deletion (e.g., 1h, 2d)"), - ), - mcp.WithString("max", - mcp.Description("Maximum value for producer/consumer limit policies"), - ), - mcp.WithString("group", - mcp.Description("Group name for anti-affinity policies"), - ), - mcp.WithString("ensemble-size", - mcp.Description("Number of bookies to use for a topic in persistence policy"), - ), - mcp.WithString("write-quorum-size", - mcp.Description("How many writes to make of each entry in persistence policy"), - ), - mcp.WithString("ack-quorum-size", - mcp.Description("Number of acks to wait for each entry in persistence policy"), - ), - mcp.WithString("ml-mark-delete-max-rate", - mcp.Description("Throttling rate of mark-delete operation in persistence policy"), - ), - mcp.WithString("mode", - mcp.Description("Mode for subscription auth policy (e.g., None, Prefix)"), - ), - mcp.WithString("subscription", - mcp.Description("Subscription name for subscription permission policies"), - ), - mcp.WithString("dispatchThrottlingRateInMsg", - mcp.Description("Message dispatch/throttling rate in messages per second"), - ), - mcp.WithString("dispatchThrottlingRateInByte", - mcp.Description("Message dispatch/throttling rate in bytes per second"), - ), - mcp.WithString("ratePeriodInSecond", - mcp.Description("Rate period in seconds for rate limiting policies"), - ), - mcp.WithString("subscribeThrottlingRatePerConsumer", - mcp.Description("Subscribe rate in subscriptions per consumer per second"), - ), - mcp.WithString("publishThrottlingRateInMsg", - mcp.Description("Message publish rate in messages per second"), - ), - mcp.WithString("publishThrottlingRateInByte", - mcp.Description("Message publish rate in bytes per second"), - ), - ) - s.AddTool(namespaceSetPolicyTool, handleNamespaceSetPolicy) - - // Add a unified namespace remove policy tool - namespaceRemovePolicyTool := mcp.NewTool("pulsar_admin_namespace_policy_remove", - mcp.WithDescription("Remove a policy from a namespace. "+ - "This is a unified tool for removing different types of policies from a namespace. "+ - "The policy type determines which specific policy will be removed. "+ - "Requires appropriate admin permissions based on the policy being modified.\n\n"+ - "Available policy types to remove and their required parameters:\n"+ - "1. backlog-quota: Removes the backlog quota policies\n"+ - " - Required: namespace\n"+ - " - Optional: type (destination_storage, message_age)\n\n"+ - "2. topic-auto-creation: Removes topic auto-creation config\n"+ - " - Required: namespace\n\n"+ - "3. offload-deletion-lag: Clears the offload deletion lag configuration\n"+ - " - Required: namespace\n\n"+ - "4. anti-affinity-group: Removes the namespace from its anti-affinity group\n"+ - " - Required: namespace\n\n"+ - "5. permission: Revokes all permissions from a role\n"+ - " - Required: namespace, role\n\n"+ - "6. subscription-permission: Revokes permission from a role to access a subscription\n"+ - " - Required: namespace, subscription, role"), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name (tenant/namespace) to remove the policy from"), - ), - mcp.WithString("policy", mcp.Required(), - mcp.Description("Type of policy to remove. Available options: "+ - "backlog-quota, topic-auto-creation, offload-deletion-lag, anti-affinity-group, "+ - "permission, subscription-permission"), - ), - mcp.WithString("role", - mcp.Description("Role name for permission policies"), - ), - mcp.WithString("subscription", - mcp.Description("Subscription name for subscription permission policies"), - ), - mcp.WithString("type", - mcp.Description("Type of backlog quota to remove"), - ), - ) - s.AddTool(namespaceRemovePolicyTool, handleNamespaceRemovePolicy) - } -} - -// handleNamespaceGetPolicies handles getting policies for a namespace -func handleNamespaceGetPolicies(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get policies - policies, err := client.Namespaces().GetPolicies(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policies: %v", err)), nil - } - - // Convert result to JSON string - policiesJSON, err := json.Marshal(policies) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize policies: %v", err)), nil - } - - return mcp.NewToolResultText(string(policiesJSON)), nil -} - -// handleSetMessageTTL handles setting message TTL for a namespace -func handleSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - ttlStr, err := request.RequireString("ttl") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil - } - - ttl, err := strconv.ParseInt(ttlStr, 10, 64) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid TTL value, must be an integer: %v", err)), nil - } - - // Set message TTL - err = client.Namespaces().SetNamespaceMessageTTL(namespace, int(ttl)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set message TTL: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Set message TTL for %s to %d seconds", namespace, ttl)), nil -} - -// handleSetRetention handles setting retention for a namespace -func handleSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - timeStr := request.GetString("time", "") - sizeStr := request.GetString("size", "") - - if timeStr == "" && sizeStr == "" { - return mcp.NewToolResultError("At least one of 'time' or 'size' must be specified"), nil - } - - // Parse retention time - var retentionTimeInMin int - if timeStr != "" { - // Parse relative time in seconds from the input string - retentionTime, err := pulsarctlutils.ParseRelativeTimeInSeconds(timeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid retention time format: %v", err)), nil - } - - if retentionTime != -1 { - // Convert seconds to minutes - retentionTimeInMin = int(retentionTime.Minutes()) - } else { - retentionTimeInMin = -1 // Infinite time retention - } - } else { - retentionTimeInMin = -1 // Default to infinite time retention - } - - // Parse retention size - var retentionSizeInMB int - if sizeStr != "" { - if sizeStr == "-1" { - retentionSizeInMB = -1 // Infinite size retention - } else { - // Parse size string (e.g., "10M", "16G", "3T") - sizeInBytes, err := pulsarctlutils.ValidateSizeString(sizeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid retention size format: %v", err)), nil - } - - if sizeInBytes != -1 { - // Convert bytes to MB - retentionSizeInMB = int(sizeInBytes / (1024 * 1024)) - if retentionSizeInMB < 1 { - return mcp.NewToolResultError("Retention size must be at least 1MB"), nil - } - } else { - retentionSizeInMB = -1 // Infinite size retention - } - } - } else { - retentionSizeInMB = -1 // Default to infinite size retention - } - - // Create retention policy - retention := utils.NewRetentionPolicies(retentionTimeInMin, retentionSizeInMB) - - // Set retention - err = client.Namespaces().SetRetention(namespace, retention) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set retention: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Set retention for %s successfully. ", namespace), - ), nil -} - -// handleGrantPermission handles granting permissions on a namespace -func handleGrantPermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - role, err := request.RequireString("role") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil - } - - actions, err := request.RequireStringSlice("actions") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil - } - - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - a, err := parseActions(actions) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse actions: %v", err)), nil - } - - // Grant permissions - err = client.Namespaces().GrantNamespacePermission(*ns, role, a) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to grant permission: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Granted %v permission(s) to role %s on %s", actions, role, namespace)), nil -} - -func parseActions(actions []string) ([]utils.AuthAction, error) { - r := make([]utils.AuthAction, 0) - for _, v := range actions { - a, err := utils.ParseAuthAction(v) - if err != nil { - return nil, err - } - r = append(r, a) - } - return r, nil -} - -// handleRevokePermission handles revoking permissions from a namespace -func handleRevokePermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - role, err := request.RequireString("role") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil - } - - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Revoke permissions - err = client.Namespaces().RevokeNamespacePermission(*ns, role) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke permission: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Revoked all permissions from role %s on %s", role, namespace)), nil -} - -// handleSetReplicationClusters handles setting replication clusters for a namespace -func handleSetReplicationClusters(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - clusters, err := request.RequireStringSlice("clusters") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get clusters: %v", err)), nil - } - - if len(clusters) == 0 { - return mcp.NewToolResultError("At least one cluster must be specified"), nil - } - - // Set replication clusters - err = client.Namespaces().SetNamespaceReplicationClusters(namespace, clusters) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set replication clusters: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Set replication clusters for %s to %s", namespace, strings.Join(clusters, ", ")), - ), nil -} - -// handleSetBacklogQuota handles setting backlog quota for a namespace -func handleSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - limitSizeStr, err := request.RequireString("limit-size") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get limit size: %v", err)), nil - } - - policyStr, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil - } - - // Parse size limit - sizeLimit, err := pulsarctlutils.ValidateSizeString(limitSizeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid size limit format: %v", err)), nil - } - - // Parse time limit (optional) - limitTimeStr := request.GetString("limit-time", "") - var limitTime int64 = -1 // Default to -1 (infinite) - if limitTimeStr != "" { - limitTimeVal, err := strconv.ParseInt(limitTimeStr, 10, 64) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid time limit format: %v", err)), nil - } - limitTime = limitTimeVal - } - - // Parse policy - var policy utils.RetentionPolicy - switch policyStr { - case "producer_request_hold": - policy = utils.ProducerRequestHold - case "producer_exception": - policy = utils.ProducerException - case "consumer_backlog_eviction": - policy = utils.ConsumerBacklogEviction - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid retention policy type: %v", policyStr)), nil - } - - // Parse quota type (optional) - quotaTypeStr := request.GetString("type", "") - quotaType := utils.DestinationStorage // Default - if quotaTypeStr != "" { - parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid backlog quota type: %v", err)), nil - } - quotaType = parsedType - } - - // Set backlog quota - backlogQuota := utils.NewBacklogQuota(sizeLimit, limitTime, policy) - err = client.Namespaces().SetBacklogQuota(namespace, backlogQuota, quotaType) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set backlog quota: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Set backlog quota successfully for [%s]", namespace)), nil -} - -// handleRemoveBacklogQuota handles removing backlog quota from a namespace -func handleRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Remove backlog quota - err = client.Namespaces().RemoveBacklogQuota(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove backlog quota: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Remove backlog quota successfully for [%s]", namespace)), nil -} - -// handleSetTopicAutoCreation handles setting topic auto-creation for a namespace -func handleSetTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get namespace - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Check if disabled - disableStr := request.GetString("disable", "") - disable := false - if disableStr == "true" { - disable = true - } - - // Create config - config := utils.TopicAutoCreationConfig{ - Allow: !disable, - } - - // Only set topic type and partitions if not disabled - if !disable { - // Get topic type (optional) - topicTypeStr := request.GetString("type", "") - if topicTypeStr != "" { - parsedType, err := utils.ParseTopicType(topicTypeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic type: %v", err)), nil - } - config.Type = parsedType - } - - // Get partitions (optional) - partitionsStr := request.GetString("partitions", "") - if partitionsStr != "" { - partitions, err := strconv.Atoi(partitionsStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid partitions value: %v", err)), nil - } - config.Partitions = &partitions - } - } - - // Set topic auto-creation - err = client.Namespaces().SetTopicAutoCreation(*ns, config) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic auto-creation: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Set topic auto-creation config successfully for [%s]", namespace)), nil -} - -// handleRemoveTopicAutoCreation handles removing topic auto-creation config from a namespace -func handleRemoveTopicAutoCreation(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get namespace - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Remove topic auto-creation - err = client.Namespaces().RemoveTopicAutoCreation(*ns) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic auto-creation: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Removed topic auto-creation config successfully for [%s]", namespace)), nil -} - -// handleSetSchemaValidationEnforced handles setting schema validation enforced status for a namespace -func handleSetSchemaValidationEnforced(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Check if disabled - disableStr := request.GetString("disable", "") - disable := false - if disableStr == "true" { - disable = true - } - - // Set schema validation enforced - err = client.Namespaces().SetSchemaValidationEnforced(*ns, !disable) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set schema validation enforced: %v", err)), nil - } - - action := "enabled" - if disable { - action = "disabled" - } - return mcp.NewToolResultText(fmt.Sprintf("Schema validation enforced is %s for [%s]", action, namespace)), nil -} - -// handleSetSchemaAutoUpdateStrategy handles setting schema auto-update strategy for a namespace -func handleSetSchemaAutoUpdateStrategy(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - strategyStr, err := request.RequireString("compatibility") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get compatibility strategy: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Parse strategy - strategy, err := utils.ParseSchemaAutoUpdateCompatibilityStrategy(strategyStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid schema auto-update strategy: %v", err)), nil - } - - // Set schema auto-update strategy - err = client.Namespaces().SetSchemaAutoUpdateCompatibilityStrategy(*ns, strategy) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set schema auto-update strategy: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Set schema auto-update strategy to %s for [%s]", strategy.String(), namespace), - ), nil -} - -// handleSetIsAllowAutoUpdateSchema handles setting auto update schema allowance for a namespace -func handleSetIsAllowAutoUpdateSchema(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Check if enabled or disabled - enableStr := request.GetString("enable", "") - disableStr := request.GetString("disable", "") - - if (enableStr == "true") && (disableStr == "true") { - return mcp.NewToolResultError("Specify only one of 'enable' or 'disable'"), nil - } - - var isAllowUpdateSchema bool - //nolint:gocritic - if enableStr == "true" { - isAllowUpdateSchema = true - } else if disableStr == "true" { - isAllowUpdateSchema = false - } else if enableStr == "" && disableStr == "" { - return mcp.NewToolResultError("You must specify either 'enable=true' or 'disable=true'"), nil - } - - // Set is allow auto update schema - err = client.Namespaces().SetIsAllowAutoUpdateSchema(*ns, isAllowUpdateSchema) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set auto update schema allowance: %v", err)), nil - } - - action := "enabled" - if !isAllowUpdateSchema { - action = "disabled" - } - return mcp.NewToolResultText(fmt.Sprintf("Auto update schema is %s for [%s]", action, namespace)), nil -} - -// handleSetOffloadThreshold handles setting offload threshold for a namespace -func handleSetOffloadThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - thresholdStr, err := request.RequireString("threshold") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Parse size threshold - threshold, err := pulsarctlutils.ValidateSizeString(thresholdStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid threshold format: %v", err)), nil - } - - // Set offload threshold - err = client.Namespaces().SetOffloadThreshold(*ns, threshold) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set offload threshold: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set offload threshold for %s to %s", namespace, thresholdStr), - ), nil -} - -// handleSetOffloadDeletionLag handles setting offload deletion lag for a namespace -func handleSetOffloadDeletionLag(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - lagStr, err := request.RequireString("lag") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get lag: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Parse duration string - duration, err := time.ParseDuration(lagStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid duration format: %v", err)), nil - } - - // Convert duration to milliseconds - lagMs := duration.Milliseconds() - - // Set offload deletion lag - err = client.Namespaces().SetOffloadDeleteLag(*ns, lagMs) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set offload deletion lag: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set offload deletion lag for %s to %s", namespace, lagStr), - ), nil -} - -// handleClearOffloadDeletionLag handles clearing offload deletion lag for a namespace -func handleClearOffloadDeletionLag(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Clear offload deletion lag - err = client.Namespaces().ClearOffloadDeleteLag(*ns) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to clear offload deletion lag: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully cleared offload deletion lag for %s", namespace), - ), nil -} - -// handleSetCompactionThreshold handles setting compaction threshold for a namespace -func handleSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - thresholdStr, err := request.RequireString("threshold") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Parse size threshold - threshold, err := pulsarctlutils.ValidateSizeString(thresholdStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid threshold format: %v", err)), nil - } - - // Set compaction threshold - err = client.Namespaces().SetCompactionThreshold(*ns, threshold) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set compaction threshold: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set compaction threshold for %s to %s", namespace, thresholdStr), - ), nil -} - -// handleSetMaxProducersPerTopic handles setting max producers per topic for a namespace -func handleSetMaxProducersPerTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - maxStr, err := request.RequireString("max") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil - } - - // Parse maxVal value - maxVal, err := strconv.Atoi(maxStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid max value, must be an integer: %v", err)), nil - } - - if maxVal <= 0 { - return mcp.NewToolResultError("Max producers per topic must be greater than 0"), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Set max producers per topic - err = client.Namespaces().SetMaxProducersPerTopic(*ns, maxVal) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set max producers per topic: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set max producers per topic for %s to %d", namespace, maxVal), - ), nil -} - -// handleSetMaxConsumersPerTopic handles setting max consumers per topic for a namespace -func handleSetMaxConsumersPerTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - maxStr, err := request.RequireString("max") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil - } - - // Parse maxVal value - maxVal, err := strconv.Atoi(maxStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid max value, must be an integer: %v", err)), nil - } - - if maxVal <= 0 { - return mcp.NewToolResultError("Max consumers per topic must be greater than 0"), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Set max consumers per topic - err = client.Namespaces().SetMaxConsumersPerTopic(*ns, maxVal) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set max consumers per topic: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set max consumers per topic for %s to %d", namespace, maxVal), - ), nil -} - -// handleSetMaxConsumersPerSubscription handles setting max consumers per subscription for a namespace -func handleSetMaxConsumersPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - maxStr, err := request.RequireString("max") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get max value: %v", err)), nil - } - - // Parse maxVal value - maxVal, err := strconv.Atoi(maxStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid max value, must be an integer: %v", err)), nil - } - - if maxVal <= 0 { - return mcp.NewToolResultError("Max consumers per subscription must be greater than 0"), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Set max consumers per subscription - err = client.Namespaces().SetMaxConsumersPerSubscription(*ns, maxVal) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set max consumers per subscription: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set max consumers per subscription for %s to %d", namespace, maxVal), - ), nil -} - -// handleSetAntiAffinityGroup handles setting the anti-affinity group for a namespace -func handleSetAntiAffinityGroup(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - group, err := request.RequireString("group") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get anti-affinity group: %v", err)), nil - } - - // Set anti-affinity group - err = client.Namespaces().SetNamespaceAntiAffinityGroup(namespace, group) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set anti-affinity group: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set anti-affinity group '%s' for namespace %s", group, namespace), - ), nil -} - -// handleDeleteAntiAffinityGroup handles deleting the anti-affinity group of a namespace -func handleDeleteAntiAffinityGroup(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Delete anti-affinity group - err = client.Namespaces().DeleteNamespaceAntiAffinityGroup(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete anti-affinity group: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully deleted anti-affinity group for namespace %s", namespace), - ), nil -} - -// handleSetPersistence handles setting persistence policy for a namespace -func handleSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - ensembleSizeStr, err := request.RequireString("ensemble-size") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensemble size: %v", err)), nil - } - - writeQuorumSizeStr, err := request.RequireString("write-quorum-size") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get write quorum size: %v", err)), nil - } - - ackQuorumSizeStr, err := request.RequireString("ack-quorum-size") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get ack quorum size: %v", err)), nil - } - - // Parse integer parameters - ensembleSize, err := strconv.Atoi(ensembleSizeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid ensemble size, must be an integer: %v", err)), nil - } - - writeQuorumSize, err := strconv.Atoi(writeQuorumSizeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid write quorum size, must be an integer: %v", err)), nil - } - - ackQuorumSize, err := strconv.Atoi(ackQuorumSizeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid ack quorum size, must be an integer: %v", err)), nil - } - - // Check Bookkeeper constraints - if ensembleSize < writeQuorumSize || writeQuorumSize < ackQuorumSize { - return mcp.NewToolResultError("Bookkeeper ensemble size must be >= write quorum size >= ack quorum size"), nil - } - - // Parse optional rate parameter - markDeleteMaxRate := 0.0 - markDeleteMaxRateStr := request.GetString("ml-mark-delete-max-rate", "") - if markDeleteMaxRateStr != "" { - rate, err := strconv.ParseFloat(markDeleteMaxRateStr, 64) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid mark delete max rate, must be a number: %v", err)), nil - } - markDeleteMaxRate = rate - } - - // Create persistence policy - persistencePolicies := utils.NewPersistencePolicies(ensembleSize, writeQuorumSize, ackQuorumSize, markDeleteMaxRate) - - // Set persistence policy - err = client.Namespaces().SetPersistence(namespace, persistencePolicies) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set persistence policy: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set persistence policy for %s", namespace), - ), nil -} - -// handleSetDeduplication handles setting the deduplication status for a namespace -func handleSetDeduplication(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get enable flag, default to false if not specified - enable := request.GetString("enable", "") - enableBool := false - if enable == "true" { - enableBool = true - } - - // Set deduplication status - err = client.Namespaces().SetDeduplicationStatus(namespace, enableBool) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set deduplication status: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set deduplication status to [%v] for %s", enableBool, namespace), - ), nil -} - -// handleSetEncryptionRequired handles setting whether encryption is required for a namespace -func handleSetEncryptionRequired(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get disable flag, default to false if not specified - disable := request.GetString("disable", "") - disableFlag := disable == "true" - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Set encryption required status (note: API expects !disable) - err = client.Namespaces().SetEncryptionRequiredStatus(*ns, !disableFlag) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set encryption required status: %v", err)), nil - } - - status := "Enable" - if disableFlag { - status = "Disable" - } - - return mcp.NewToolResultText( - fmt.Sprintf("%s messages encryption for namespace %s", status, namespace), - ), nil -} - -// handleSetSubscriptionAuthMode handles setting the default subscription auth mode for a namespace -func handleSetSubscriptionAuthMode(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - mode, err := request.RequireString("mode") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription auth mode: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Parse subscription auth mode - authMode, err := utils.ParseSubscriptionAuthMode(mode) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription auth mode: %v", err)), nil - } - - // Set subscription auth mode - err = client.Namespaces().SetSubscriptionAuthMode(*ns, authMode) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set subscription auth mode: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set the default subscription auth mode of namespace %s to %s", - namespace, authMode.String()), - ), nil -} - -// handleGrantSubscriptionPermission handles granting subscription permissions to roles -func handleGrantSubscriptionPermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - subscription, err := request.RequireString("subscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil - } - - roles, err := request.RequireStringSlice("roles") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get roles: %v", err)), nil - } - - if len(roles) == 0 { - return mcp.NewToolResultError("At least one role must be specified"), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Grant subscription permission - err = client.Namespaces().GrantSubPermission(*ns, subscription, roles) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to grant subscription permission: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Granted client roles %v to access the subscription %s of the namespace %s", - roles, subscription, namespace), - ), nil -} - -// handleRevokeSubscriptionPermission handles revoking subscription permissions from a role -func handleRevokeSubscriptionPermission(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - subscription, err := request.RequireString("subscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil - } - - role, err := request.RequireString("role") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Revoke subscription permission - err = client.Namespaces().RevokeSubPermission(*ns, subscription, role) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke subscription permission: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Revoked client role %s permissions from subscription %s of namespace %s", - role, subscription, namespace), - ), nil -} - -// handleSetDispatchRate handles setting the default message dispatch rate for a namespace -func handleSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get rate parameters - msgRateStr := request.GetString("dispatchThrottlingRateInMsg", "") - msgRate := -1 // Default value - if msgRateStr != "" { - parsedMsgRate, err := strconv.Atoi(msgRateStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate parameter: %v", err)), nil - } - msgRate = parsedMsgRate - } - - byteRateStr := request.GetString("dispatchThrottlingRateInByte", "") - byteRate := int64(-1) // Default value - if byteRateStr != "" { - parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate parameter: %v", err)), nil - } - byteRate = parsedByteRate - } - - ratePeriodStr := request.GetString("ratePeriodInSecond", "") - ratePeriod := 1 // Default value - if ratePeriodStr != "" { - parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period parameter: %v", err)), nil - } - ratePeriod = parsedRatePeriod - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Create dispatch rate object - rate := utils.DispatchRate{ - DispatchThrottlingRateInMsg: msgRate, - DispatchThrottlingRateInByte: byteRate, - RatePeriodInSecond: ratePeriod, - } - - // Set dispatch rate - err = client.Namespaces().SetDispatchRate(*ns, rate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set dispatch rate: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set the default message dispatch rate of namespace %s to %+v", namespace, rate), - ), nil -} - -// handleSetReplicatorDispatchRate handles setting the default replicator message dispatch rate for a namespace -func handleSetReplicatorDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get rate parameters - msgRateStr := request.GetString("dispatchThrottlingRateInMsg", "") - msgRate := -1 // Default value - if msgRateStr != "" { - parsedMsgRate, err := strconv.Atoi(msgRateStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate parameter: %v", err)), nil - } - msgRate = parsedMsgRate - } - - byteRateStr := request.GetString("dispatchThrottlingRateInByte", "") - byteRate := int64(-1) // Default value - if byteRateStr != "" { - parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate parameter: %v", err)), nil - } - byteRate = parsedByteRate - } - - ratePeriodStr := request.GetString("ratePeriodInSecond", "") - ratePeriod := 1 // Default value - if ratePeriodStr != "" { - parsedRatePeriod, err := strconv.Atoi(ratePeriodStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period parameter: %v", err)), nil - } - ratePeriod = parsedRatePeriod - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Create dispatch rate object - rate := utils.DispatchRate{ - DispatchThrottlingRateInMsg: msgRate, - DispatchThrottlingRateInByte: byteRate, - RatePeriodInSecond: ratePeriod, - } - - // Set replicator dispatch rate - err = client.Namespaces().SetReplicatorDispatchRate(*ns, rate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set replicator dispatch rate: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set the default replicator message dispatch rate of namespace %s to %+v", namespace, rate), - ), nil -} - -// handleSetSubscribeRate handles setting the default subscribe rate per consumer for a namespace -func handleSetSubscribeRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get rate parameters - subRateStr := request.GetString("subscribeThrottlingRatePerConsumer", "") - subRate := -1 // Default value - if subRateStr != "" { - parsedSubRate, err := strconv.Atoi(subRateStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid subscribe rate value: %v", err)), nil - } - subRate = parsedSubRate - } - - periodStr := request.GetString("ratePeriodInSecond", "") - period := 30 // Default value - if periodStr != "" { - parsedPeriod, err := strconv.Atoi(periodStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period value: %v", err)), nil - } - period = parsedPeriod - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Create subscription rate object - rate := utils.SubscribeRate{ - SubscribeThrottlingRatePerConsumer: subRate, - RatePeriodInSecond: period, - } - - // Set subscribe rate - err = client.Namespaces().SetSubscribeRate(*ns, rate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set subscribe rate: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully set subscribe rate for namespace %s", namespace)), nil -} - -// handleSetSubscriptionDispatchRate handles setting the default subscription message dispatch rate for a namespace -func handleSetSubscriptionDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get rate parameters - msgRateStr := request.GetString("dispatchThrottlingRateInMsg", "") - msgRate := -1 // Default value - if msgRateStr != "" { - parsedMsgRate, err := strconv.Atoi(msgRateStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate value: %v", err)), nil - } - msgRate = parsedMsgRate - } - - byteRateStr := request.GetString("dispatchThrottlingRateInByte", "") - byteRate := int64(-1) // Default value - if byteRateStr != "" { - parsedByteRate, err := strconv.ParseInt(byteRateStr, 10, 64) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate value: %v", err)), nil - } - byteRate = parsedByteRate - } - - periodStr := request.GetString("ratePeriodInSecond", "") - period := 1 // Default value - if periodStr != "" { - parsedPeriod, err := strconv.Atoi(periodStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid rate period value: %v", err)), nil - } - period = parsedPeriod - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Create dispatch rate object - rate := utils.DispatchRate{ - DispatchThrottlingRateInMsg: msgRate, - DispatchThrottlingRateInByte: byteRate, - RatePeriodInSecond: period, - } - - // Set subscription dispatch rate - err = client.Namespaces().SetSubscriptionDispatchRate(*ns, rate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set subscription dispatch rate: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set subscription dispatch rate for namespace %s", namespace), - ), nil -} - -// handleSetPublishRate handles setting the default message publish rate of a namespace -func handleSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Parse namespace - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Initialize publish rate with defaults - rate := utils.PublishRate{ - PublishThrottlingRateInMsg: -1, - PublishThrottlingRateInByte: -1, - } - - // Get message rate if provided - msgRateStr := request.GetString("publishThrottlingRateInMsg", "") - if msgRateStr != "" { - msgRate, err := strconv.Atoi(msgRateStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid message rate: %v", err)), nil - } - rate.PublishThrottlingRateInMsg = msgRate - } - - // Get byte rate if provided - byteRateStr := request.GetString("publishThrottlingRateInByte", "") - if byteRateStr != "" { - byteRate, err := strconv.ParseInt(byteRateStr, 10, 64) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid byte rate: %v", err)), nil - } - rate.PublishThrottlingRateInByte = byteRate - } - - // Set publish rate - err = client.Namespaces().SetPublishRate(*ns, rate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set publish rate: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully set the default message publish rate for namespace %s", namespace), - ), nil -} - -// handleNamespaceSetPolicy handles setting policies for a namespace using the unified tool -func handleNamespaceSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - _, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - policyType, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil - } - - // Route to the appropriate handler based on the policy type - switch policyType { - case "message-ttl": - return handleSetMessageTTL(ctx, request) - case "retention": - return handleSetRetention(ctx, request) - case "permission": - return handleGrantPermission(ctx, request) - case "replication-clusters": - return handleSetReplicationClusters(ctx, request) - case "backlog-quota": - return handleSetBacklogQuota(ctx, request) - case "topic-auto-creation": - return handleSetTopicAutoCreation(ctx, request) - case "schema-validation": - return handleSetSchemaValidationEnforced(ctx, request) - case "schema-auto-update": - return handleSetSchemaAutoUpdateStrategy(ctx, request) - case "auto-update-schema": - return handleSetIsAllowAutoUpdateSchema(ctx, request) - case "offload-threshold": - return handleSetOffloadThreshold(ctx, request) - case "offload-deletion-lag": - return handleSetOffloadDeletionLag(ctx, request) - case "compaction-threshold": - return handleSetCompactionThreshold(ctx, request) - case "max-producers-per-topic": - return handleSetMaxProducersPerTopic(ctx, request) - case "max-consumers-per-topic": - return handleSetMaxConsumersPerTopic(ctx, request) - case "max-consumers-per-subscription": - return handleSetMaxConsumersPerSubscription(ctx, request) - case "anti-affinity-group": - return handleSetAntiAffinityGroup(ctx, request) - case "persistence": - return handleSetPersistence(ctx, request) - case "deduplication": - return handleSetDeduplication(ctx, request) - case "encryption-required": - return handleSetEncryptionRequired(ctx, request) - case "subscription-auth-mode": - return handleSetSubscriptionAuthMode(ctx, request) - case "subscription-permission": - return handleGrantSubscriptionPermission(ctx, request) - case "dispatch-rate": - return handleSetDispatchRate(ctx, request) - case "replicator-dispatch-rate": - return handleSetReplicatorDispatchRate(ctx, request) - case "subscribe-rate": - return handleSetSubscribeRate(ctx, request) - case "subscription-dispatch-rate": - return handleSetSubscriptionDispatchRate(ctx, request) - case "publish-rate": - return handleSetPublishRate(ctx, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil - } -} - -// handleNamespaceRemovePolicy handles removing policies from a namespace using the unified tool -func handleNamespaceRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - _, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminNamespacePolicyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - policyType, err := request.RequireString("policy") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - // Route to the appropriate handler based on the policy type - switch policyType { - case "backlog-quota": - return handleRemoveBacklogQuota(ctx, request) - case "topic-auto-creation": - return handleRemoveTopicAutoCreation(ctx, request) - case "offload-deletion-lag": - return handleClearOffloadDeletionLag(ctx, request) - case "anti-affinity-group": - return handleDeleteAntiAffinityGroup(ctx, request) - case "permission": - return handleRevokePermission(ctx, request) - case "subscription-permission": - return handleRevokeSubscriptionPermission(ctx, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown or unsupported removable policy type: %s", policyType)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } } diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index 5f7bb2d..29f969d 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -19,390 +19,36 @@ package mcp import ( "context" - "encoding/json" "fmt" - "slices" - "strconv" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddNamespaceTools adds namespace-related tools to the MCP server -func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminNamespaces)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Create a unified namespace tool with resource+operation parameters - namespaceTool := mcp.NewTool("pulsar_admin_namespace", - mcp.WithDescription("Manage Pulsar namespaces with various operations. "+ - "This tool provides functionality to work with namespaces in Apache Pulsar, "+ - "including listing, creating, deleting, and performing various operations on namespaces."), - mcp.WithString("operation", mcp.Required(), - mcp.Description("Operation to perform on namespaces. Available operations:\n"+ - "- list: List all namespaces for a tenant\n"+ - "- get_topics: Get all topics within a namespace\n"+ - "- create: Create a new namespace\n"+ - "- delete: Delete an existing namespace\n"+ - "- clear_backlog: Clear backlog for all topics in a namespace\n"+ - "- unsubscribe: Unsubscribe from a subscription for all topics in a namespace\n"+ - "- unload: Unload a namespace from the current serving broker\n"+ - "- split_bundle: Split a namespace bundle"), - ), - mcp.WithString("tenant", - mcp.Description("The tenant name. Required for 'list' operation."), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name in format 'tenant/namespace'. Required for all operations except 'list'."), - ), - mcp.WithString("bundles", - mcp.Description("Number of bundles to activate when creating a namespace (default: 0 for default number of bundles). Used with 'create' operation."), - ), - mcp.WithArray("clusters", - mcp.Description("List of clusters to assign when creating a namespace. Used with 'create' operation."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "Cluster name", - }, - ), - ), - mcp.WithString("subscription", - mcp.Description("Subscription name. Required for 'unsubscribe' operation, optional for 'clear_backlog'."), - ), - mcp.WithString("bundle", - mcp.Description("Bundle name or range. Required for 'split_bundle' operation, optional for 'clear_backlog', 'unsubscribe', and 'unload'."), - ), - mcp.WithString("force", - mcp.Description("Force clear backlog (true/false). Used with 'clear_backlog' operation."), - ), - mcp.WithString("unload", - mcp.Description("Unload newly split bundles after splitting (true/false). Used with 'split_bundle' operation."), - ), - ) - - // Add the unified tool with the handler closure that captures readOnly status - s.AddTool(namespaceTool, handleNamespace(readOnly)) -} - -// handleNamespace returns a handler function for the namespace tool that captures the readOnly status -func handleNamespace(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Route to appropriate handler based on operation - switch operation { - case "list": - return handleNamespaceList(ctx, client, request) - case "get_topics": - return handleNamespaceGetTopics(ctx, client, request) - case "create", "delete", "clear_backlog", "unsubscribe", "unload", "split_bundle": - // Check if write operations are allowed - if readOnly { - return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode", operation)), nil - } - - // Route to appropriate write operation handler - switch operation { - case "create": - return handleNamespaceCreate(ctx, client, request) - case "delete": - return handleNamespaceDelete(ctx, client, request) - case "clear_backlog": - return handleClearBacklog(ctx, client, request) - case "unsubscribe": - return handleUnsubscribe(ctx, client, request) - case "unload": - return handleUnload(ctx, client, request) - case "split_bundle": - return handleSplitBundle(ctx, client, request) - } - default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s. Supported operations: list, get_topics, create, delete, clear_backlog, unsubscribe, unload, split_bundle", operation)), nil - } - - // Should not reach here - return mcp.NewToolResultError("Unexpected error: operation not handled"), nil - } -} - -// handleNamespaceList handles listing namespaces for a tenant -func handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil - } - - // Get namespace list - namespaces, err := client.Namespaces().GetNamespaces(tenant) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list namespaces: %v", err)), nil - } - - // Convert result to JSON string - namespacesJSON, err := json.Marshal(namespaces) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace list: %v", err)), nil - } - - return mcp.NewToolResultText(string(namespacesJSON)), nil -} - -// handleNamespaceGetTopics handles getting topics for a namespace -func handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get topics list - topics, err := client.Namespaces().GetTopics(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topics: %v", err)), nil - } - - // Convert result to JSON string - topicsJSON, err := json.Marshal(topics) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize topics list: %v", err)), nil - } - - return mcp.NewToolResultText(string(topicsJSON)), nil -} - -// handleNamespaceCreate handles creating a new namespace -func handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get optional parameters - bundlesStr := request.GetString("bundles", "") - bundles := 0 - if bundlesStr != "" { - bundlesInt, err := strconv.Atoi(bundlesStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid bundles value, must be an integer: %v", err)), nil - } - bundles = bundlesInt - } - - clusters := request.GetStringSlice("clusters", []string{}) - - // Prepare policies - policies := utils.NewDefaultPolicies() - - // Set bundles if provided - if bundles > 0 { - if bundles < 0 || bundles > int(^uint32(0)) { // MaxInt32 - return mcp.NewToolResultError( - fmt.Sprintf("Invalid number of bundles. Number of bundles has to be in the range of (0, %d].", int(^uint32(0))), - ), nil - } - policies.Bundles = utils.NewBundlesDataWithNumBundles(bundles) - } - - // Set clusters if provided - if len(clusters) > 0 { - policies.ReplicationClusters = clusters - } - - // Create namespace - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - err = client.Namespaces().CreateNsWithPolices(ns.String(), *policies) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create namespace: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Created %s successfully", namespace)), nil -} - -// handleNamespaceDelete handles deleting a namespace -func handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil +// PulsarAdminNamespaceTools creates Pulsar Admin Namespace tool list using the new builder pattern +func PulsarAdminNamespaceTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarAdminNamespaceToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Delete namespace - err = client.Namespaces().DeleteNamespace(namespace) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete namespace: %v", err)), nil + // In production environment, this should use proper logging + fmt.Printf("Failed to build Pulsar Admin Namespace tools: %v\n", err) + return nil } - return mcp.NewToolResultText(fmt.Sprintf("Deleted %s successfully", namespace)), nil + return tools } -// handleClearBacklog handles clearing the backlog for all topics in a namespace -func handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get optional parameters - subscription := request.GetString("subscription", "") - bundle := request.GetString("bundle", "") - force := request.GetString("force", "") - forceFlag := force == "true" - - // If not forced, return an error requiring explicit force flag - if !forceFlag { - return mcp.NewToolResultError( - "Clear backlog operation requires explicit confirmation. Please set force=true to proceed.", - ), nil - } - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Handle different backlog clearing scenarios - var clearErr error - //nolint:gocritic - if subscription != "" { - if bundle != "" { - clearErr = client.Namespaces().ClearNamespaceBundleBacklogForSubscription(*ns, bundle, subscription) - } else { - clearErr = client.Namespaces().ClearNamespaceBacklogForSubscription(*ns, subscription) - } - } else if bundle != "" { - clearErr = client.Namespaces().ClearNamespaceBundleBacklog(*ns, bundle) - } else { - clearErr = client.Namespaces().ClearNamespaceBacklog(*ns) - } - - if clearErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to clear backlog: %v", clearErr)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully cleared backlog for all topics in namespace %s", namespace), - ), nil -} - -// handleUnsubscribe handles unsubscribing the specified subscription for all topics of a namespace -func handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - subscription, err := request.RequireString("subscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil - } - - // Get optional bundle - bundle := request.GetString("bundle", "") - - // Get namespace name - ns, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil - } - - // Unsubscribe namespace - var unsubErr error - if bundle == "" { - unsubErr = client.Namespaces().UnsubscribeNamespace(*ns, subscription) - } else { - unsubErr = client.Namespaces().UnsubscribeNamespaceBundle(*ns, bundle, subscription) - } - - if unsubErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to unsubscribe: %v", unsubErr)), nil - } - - if bundle == "" { - return mcp.NewToolResultText( - fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s", - subscription, namespace), - ), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s with bundle range %s", - subscription, namespace, bundle), - ), nil -} - -// handleUnload handles unloading a namespace from the current serving broker -func handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - // Get optional bundle - bundle := request.GetString("bundle", "") - - // Unload namespace - var unloadErr error - if bundle == "" { - unloadErr = client.Namespaces().Unload(namespace) - } else { - unloadErr = client.Namespaces().UnloadNamespaceBundle(namespace, bundle) - } - - if unloadErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to unload namespace: %v", unloadErr)), nil - } - - if bundle == "" { - return mcp.NewToolResultText( - fmt.Sprintf("Unloaded namespace %s successfully", namespace), - ), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Unloaded namespace %s with bundle %s successfully", namespace, bundle), - ), nil -} - -// handleSplitBundle handles splitting a namespace bundle -func handleSplitBundle(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil - } - - bundle, err := request.RequireString("bundle") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle: %v", err)), nil - } - - // Get optional unload flag - unload := request.GetString("unload", "") == "true" +// PulsarAdminAddNamespaceTools adds namespace-related tools to the MCP server +func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarAdminNamespaceTools(readOnly, features) - // Split namespace bundle - err = client.Namespaces().SplitNamespaceBundle(namespace, bundle, unload) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to split namespace bundle: %v", err)), nil + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText( - fmt.Sprintf("Split namespace bundle %s successfully", bundle), - ), nil } diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index 68bc744..3a79227 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -19,292 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddNsIsolationPolicyTools adds namespace isolation policy related tools to the MCP server func PulsarAdminAddNsIsolationPolicyTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminNsIsolationPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Add unified namespace isolation policy tool - toolDesc := "Manage namespace isolation policies in a Pulsar cluster. " + - "Allows viewing, creating, updating, and deleting namespace isolation policies. " + - "Some operations require super-user permissions." - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- policy: Namespace isolation policy\n" + - "- broker: Broker with namespace isolation policies\n" + - "- brokers: All brokers with namespace isolation policies" - - operationDesc := "Operation to perform. Available operations:\n" + - "- get: Get resource details\n" + - "- list: List all instances of the resource\n" + - "- set: Create or update a resource (requires super-user permissions)\n" + - "- delete: Delete a resource (requires super-user permissions)" - - nsIsolationPolicyTool := mcp.NewTool("pulsar_admin_nsisolationpolicy", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("cluster", mcp.Required(), - mcp.Description("Cluster name"), - ), - mcp.WithString("name", - mcp.Description("Name of the policy or broker to operate on, based on resource type.\n"+ - "Required for: policy.get, policy.delete, policy.set, broker.get"), - ), - mcp.WithArray("namespaces", - mcp.Description("List of namespaces to apply the isolation policy. Required for policy.set"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "namespace", - }, - ), - ), - mcp.WithArray("primary", - mcp.Description("List of primary brokers for the namespaces. Required for policy.set"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "primary broker", - }, - ), - ), - mcp.WithArray("secondary", - mcp.Description("List of secondary brokers for the namespaces. Optional for policy.set"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "secondary broker", - }, - ), - ), - mcp.WithString("autoFailoverPolicyType", - mcp.Description("Auto failover policy type (e.g., min_available). Optional for policy.set"), - ), - mcp.WithObject("autoFailoverPolicyParams", - mcp.Description("Auto failover policy parameters as an object (e.g., {'min_limit': '1', 'usage_threshold': '100'}). Optional for policy.set"), - ), - ) - s.AddTool(nsIsolationPolicyTool, handleNsIsolationPolicy(readOnly)) -} - -// handleNsIsolationPolicy returns a function that handles namespace isolation policy operations -func handleNsIsolationPolicy(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client - client, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - cluster, err := request.RequireString("cluster") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "set" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Dispatch based on resource type - switch resource { - case "policy": - return handlePolicyResource(client, operation, cluster, request) - case "broker": - return handleBrokerResource(client, operation, cluster, request) - case "brokers": - return handleNsIsolationBrokersResource(client, operation, cluster, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: policy, broker, brokers", resource)), nil - } - } -} - -// handlePolicyResource handles operations on the "policy" resource -func handlePolicyResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "get": - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.get: %v", err)), nil - } - - // Get namespace isolation policy - policyInfo, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicy(cluster, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace isolation policy: %v", err)), nil - } - - // Convert result to JSON string - policyInfoJSON, err := json.Marshal(policyInfo) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policy: %v", err)), nil - } - - return mcp.NewToolResultText(string(policyInfoJSON)), nil - - case "list": - // Get namespace isolation policies - policies, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicies(cluster) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list namespace isolation policies: %v", err)), nil - } - - // Convert result to JSON string - policiesJSON, err := json.Marshal(policies) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policies: %v", err)), nil - } - - return mcp.NewToolResultText(string(policiesJSON)), nil - - case "delete": - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.delete: %v", err)), nil - } - - // Delete namespace isolation policy - err = client.NsIsolationPolicy().DeleteNamespaceIsolationPolicy(cluster, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete namespace isolation policy: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Delete namespace isolation policy %s successfully", name)), nil - - case "set": - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.set: %v", err)), nil - } - - namespaces, err := request.RequireStringSlice("namespaces") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespaces' for policy.set: %v", err)), nil - } - - primary, err := request.RequireStringSlice("primary") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'primary' for policy.set: %v", err)), nil - } - - secondary := request.GetStringSlice("secondary", []string{}) - autoFailoverPolicyType := request.GetString("autoFailoverPolicyType", "") - - // Parse autoFailoverPolicyParams as a map - autoFailoverPolicyParamsRaw, ok := common.OptionalParamObject(request.GetArguments(), "autoFailoverPolicyParams") - if !ok { - return mcp.NewToolResultError("Failed to extract autoFailoverPolicyParams"), nil - } - - autoFailoverPolicyParams := make(map[string]string) - for k, v := range autoFailoverPolicyParamsRaw { - if strVal, ok := v.(string); ok { - autoFailoverPolicyParams[k] = strVal - } - } - - // Create namespace isolation policy data - nsIsolationData, err := utils.CreateNamespaceIsolationData(namespaces, primary, secondary, - autoFailoverPolicyType, autoFailoverPolicyParams) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create namespace isolation data: %v", err)), nil - } - - // Create/update namespace isolation policy - err = client.NsIsolationPolicy().CreateNamespaceIsolationPolicy(cluster, name, *nsIsolationData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create/update namespace isolation policy: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Create/Update namespace isolation policy %s successfully", name)), nil - - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'policy': %s. Available operations: get, list, delete, set", operation)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminNsIsolationPolicyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } -} - -// handleBrokerResource handles operations on the "broker" resource -func handleBrokerResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "get": - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for broker.get: %v", err)), nil - } - - // Get broker with policies - brokerInfo, err := client.NsIsolationPolicy().GetBrokerWithNamespaceIsolationPolicy(cluster, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get broker with namespace isolation policy: %v", err)), nil - } - - // Convert result to JSON string - brokerInfoJSON, err := json.Marshal(brokerInfo) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize broker information: %v", err)), nil - } - - return mcp.NewToolResultText(string(brokerInfoJSON)), nil - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'broker': %s. Available operations: get", operation)), nil + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + // Log error but don't fail - this maintains backward compatibility + return } -} - -// handleNsIsolationBrokersResource handles operations on the "brokers" resource for namespace isolation policies -func handleNsIsolationBrokersResource(client cmdutils.Client, operation, cluster string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "list": - // Get all brokers with policies - brokersInfo, err := client.NsIsolationPolicy().GetBrokersWithNamespaceIsolationPolicy(cluster) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get brokers with namespace isolation policy: %v", err)), nil - } - - // Convert result to JSON string - brokersInfoJSON, err := json.Marshal(brokersInfo) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers information: %v", err)), nil - } - - return mcp.NewToolResultText(string(brokersInfoJSON)), nil - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'brokers': %s. Available operations: list", operation)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } } diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index dea0ba7..df94072 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -19,15 +19,11 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" "strings" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) const ( @@ -53,260 +49,21 @@ func IsPackageURLSupported(functionPkgURL string) bool { // PulsarAdminAddPackagesTools adds package-related tools to the MCP server func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminPackages)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminPackagesToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Add unified package management tool - toolDesc := "Manage packages in Apache Pulsar. Support package scheme: `function://`, `source://`, `sink://`" + - "Allows listing, viewing, updating, downloading and uploading packages. " + - "Some operations require super-user permissions." - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- package: A specific package\n" + - "- packages: All packages of a specific type" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all packages of a specific type or versions of a package\n" + - "- get: Get metadata of a package\n" + - "- update: Update metadata of a package (requires super-user permissions)\n" + - "- delete: Delete a package (requires super-user permissions)\n" + - "- download: Download a package (requires super-user permissions)\n" + - "- upload: Upload a package (requires super-user permissions)" - - packageTool := mcp.NewTool("pulsar_admin_package", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("packageName", - mcp.Description("Name of the package to operate on. "+ - "Required for operations on a specific package: get, update, delete, download, upload"), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name. Required for listing packages of a specific type"), - ), - mcp.WithString("type", - mcp.Description("Package type (function, source, sink). Required for listing packages of a specific type"), - ), - mcp.WithString("description", - mcp.Description("Description of the package. Required for update and upload operations"), - ), - mcp.WithString("contact", - mcp.Description("Contact information for the package. Optional for update and upload operations"), - ), - mcp.WithString("path", - mcp.Description("Path to download a package to or upload a package from. Required for download and upload operations"), - ), - mcp.WithObject("properties", - mcp.Description("Additional properties for the package as key-value pairs. Optional for update and upload operations"), - ), - ) - s.AddTool(packageTool, handlePackageTool(readOnly)) -} - -// handlePackageTool returns a function that handles package-related operations -func handlePackageTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "update" || operation == "delete" || operation == "download" || operation == "upload") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Create Pulsar client with API version V3 - client, err := pulsar.GetAdminV3Client() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil - } - - // Dispatch based on resource type - switch resource { - case "package": - return handlePackageResource(client, operation, request) - case "packages": - return handlePackagesResource(client, operation, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: package, packages", resource)), nil - } - } -} - -// handlePackageResource handles operations on a specific package -func handlePackageResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - packageName, err := request.RequireString("packageName") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'packageName' for package operations: %v", err)), nil - } - - switch operation { - case "list": - // Get package versions - packageVersions, err := client.Packages().ListVersions(packageName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list package versions: %v", err)), nil - } - - // Convert result to JSON string - packageVersionsJSON, err := json.Marshal(packageVersions) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package versions: %v", err)), nil - } - - return mcp.NewToolResultText(string(packageVersionsJSON)), nil - - case "get": - // Get package metadata - metadata, err := client.Packages().GetMetadata(packageName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get package metadata: %v", err)), nil - } - - // Convert result to JSON string - metadataJSON, err := json.Marshal(metadata) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package metadata: %v", err)), nil - } - - return mcp.NewToolResultText(string(metadataJSON)), nil - - case "update": - description, err := request.RequireString("description") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.update: %v", err)), nil - } - - contact := request.GetString("contact", "") - properties := extractProperties(request.GetArguments()) - - // Update package metadata - err = client.Packages().UpdateMetadata(packageName, description, contact, properties) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update package metadata: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("The metadata of the package '%s' updated successfully", packageName)), nil - - case "delete": - // Delete package - err = client.Packages().Delete(packageName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete package: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("The package '%s' deleted successfully", packageName)), nil - - case "download": - path, err := request.RequireString("path") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.download: %v", err)), nil - } - - // Download package - err = client.Packages().Download(packageName, path) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to download package: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("The package '%s' downloaded to path '%s' successfully", packageName, path), - ), nil - - case "upload": - path, err := request.RequireString("path") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.upload: %v", err)), nil - } - - description, err := request.RequireString("description") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.upload: %v", err)), nil - } - - contact := request.GetString("contact", "") - properties := extractProperties(request.GetArguments()) - - // Upload package - err = client.Packages().Upload(packageName, path, description, contact, properties) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to upload package: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("The package '%s' uploaded from path '%s' successfully", packageName, path), - ), nil - - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'package': %s. Available operations: list, get, update, delete, download, upload", operation)), nil - } -} - -// handlePackagesResource handles operations on multiple packages -func handlePackagesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - switch operation { - case "list": - packageType, err := request.RequireString("type") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'type' for packages.list: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for packages.list: %v", err)), nil - } - - // Get package list - packages, err := client.Packages().List(packageType, namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list packages: %v", err)), nil - } - - // Convert result to JSON string - packagesJSON, err := json.Marshal(packages) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package list: %v", err)), nil - } - - return mcp.NewToolResultText(string(packagesJSON)), nil - - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'packages': %s. Available operations: list", operation)), nil + // Log error but don't fail - this maintains backward compatibility + return } -} -// extractProperties extracts properties from request arguments -func extractProperties(args map[string]interface{}) map[string]string { - var properties map[string]string - propsObj, ok := args["properties"] - if ok && propsObj != nil { - // Convert to map[string]string - if propsMap, isMap := propsObj.(map[string]interface{}); isMap { - properties = make(map[string]string) - for k, v := range propsMap { - if strVal, ok := v.(string); ok { - properties[k] = strVal - } else { - properties[k] = fmt.Sprintf("%v", v) - } - } - } + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - return properties } diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go index 65eac50..25b5d51 100644 --- a/pkg/mcp/pulsar_admin_resourcequotas_tools.go +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -19,269 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddResourceQuotasTools adds resource quotas-related tools to the MCP server func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminResourceQuotas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminResourceQuotasToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Add unified resource quotas management tool - toolDesc := "Manage Apache Pulsar resource quotas for brokers, namespaces and bundles. " + - "Resource quotas define limits for resource usage such as message rates, bandwidth, and memory. " + - "These quotas help prevent resource abuse and ensure fair resource allocation across the Pulsar cluster. " + - "Operations include getting, setting, and resetting quotas. " + - "Requires super-user permissions for all operations." - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- quota: The resource quota configuration for a specific namespace bundle or the default quota" - - operationDesc := "Operation to perform. Available operations:\n" + - "- get: Get the resource quota for a specified namespace bundle or default quota\n" + - "- set: Set the resource quota for a specified namespace bundle or default quota (requires super-user permissions)\n" + - "- reset: Reset a namespace bundle's resource quota to default value (requires super-user permissions)" - - resourceQuotasTool := mcp.NewTool("pulsar_admin_resourcequota", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name in the format 'tenant/namespace'. "+ - "Optional for 'get' and 'set' operations (to get/set default quota if omitted). "+ - "Required for 'reset' operation."), - ), - mcp.WithString("bundle", - mcp.Description("The bundle range in the format '{start-boundary}_{end-boundary}'. "+ - "Must be specified together with namespace. Bundle is a hash range of the topic names belonging to a namespace."), - ), - mcp.WithNumber("msgRateIn", - mcp.Description("Expected incoming messages per second. Required for 'set' operation. "+ - "This defines the maximum rate of incoming messages allowed for the namespace or bundle."), - ), - mcp.WithNumber("msgRateOut", - mcp.Description("Expected outgoing messages per second. Required for 'set' operation. "+ - "This defines the maximum rate of outgoing messages allowed for the namespace or bundle."), - ), - mcp.WithNumber("bandwidthIn", - mcp.Description("Expected inbound bandwidth in bytes per second. Required for 'set' operation. "+ - "This defines the maximum rate of incoming bytes allowed for the namespace or bundle."), - ), - mcp.WithNumber("bandwidthOut", - mcp.Description("Expected outbound bandwidth in bytes per second. Required for 'set' operation. "+ - "This defines the maximum rate of outgoing bytes allowed for the namespace or bundle."), - ), - mcp.WithNumber("memory", - mcp.Description("Expected memory usage in Mbytes. Required for 'set' operation. "+ - "This defines the maximum memory allowed for storing messages for the namespace or bundle."), - ), - mcp.WithBoolean("dynamic", - mcp.Description("Whether to allow quota to be dynamically re-calculated. Optional for 'set' operation. "+ - "If true, the broker can dynamically adjust the quota based on the current usage patterns."), - ), - ) - s.AddTool(resourceQuotasTool, handleResourceQuotaTool(readOnly)) -} - -// handleResourceQuotaTool returns a function that handles resource quota operations -func handleResourceQuotaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "set" || operation == "reset") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Verify resource type - if resource != "quota" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'quota' is supported", resource)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on operation - switch operation { - case "get": - return handleQuotaGet(admin, request) - case "set": - return handleQuotaSet(admin, request) - case "reset": - return handleQuotaReset(admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: get, set, reset", operation)), nil - } - } -} - -// handleQuotaGet handles getting a resource quota -func handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get optional parameters - namespace := request.GetString("namespace", "") - bundle := request.GetString("bundle", "") - // Check if both namespace and bundle are provided or neither is provided - if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { - return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil - } - - var ( - resourceQuotaData *utils.ResourceQuota - getErr error - ) - - if namespace == "" && bundle == "" { - // Get default resource quota - resourceQuotaData, getErr = admin.ResourceQuotas().GetDefaultResourceQuota() - if getErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get default resource quota: %v", getErr)), nil - } - } else { - // Get namespace bundle resource quota - nsName, getErr := utils.GetNamespaceName(namespace) - if getErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, getErr)), nil - } - resourceQuotaData, getErr = admin.ResourceQuotas().GetNamespaceBundleResourceQuota(nsName.String(), bundle) - if getErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource quota for namespace '%s' bundle '%s': %v", - namespace, bundle, getErr)), nil - } - } - - // Format the output - jsonBytes, err := json.Marshal(resourceQuotaData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal resource quota data: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleQuotaSet handles setting a resource quota -func handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters for set operation - msgRateIn, err := request.RequireFloat("msgRateIn") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateIn' for quota.set: %v", err)), nil - } - - msgRateOut, err := request.RequireFloat("msgRateOut") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateOut' for quota.set: %v", err)), nil - } - - bandwidthIn, err := request.RequireFloat("bandwidthIn") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthIn' for quota.set: %v", err)), nil - } - - bandwidthOut, err := request.RequireFloat("bandwidthOut") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthOut' for quota.set: %v", err)), nil - } - - memory, err := request.RequireFloat("memory") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'memory' for quota.set: %v", err)), nil - } - - // Get optional parameters - namespace := request.GetString("namespace", "") - bundle := request.GetString("bundle", "") - dynamic := request.GetBool("dynamic", false) - - // Check if both namespace and bundle are provided or neither is provided - if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { - return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil - } - - // Create resource quota object - quota := utils.NewResourceQuota() - quota.MsgRateIn = msgRateIn - quota.MsgRateOut = msgRateOut - quota.BandwidthIn = bandwidthIn - quota.BandwidthOut = bandwidthOut - quota.Memory = memory - quota.Dynamic = dynamic - - var resultMsg string - if namespace == "" && bundle == "" { - // Set default resource quota - err = admin.ResourceQuotas().SetDefaultResourceQuota(*quota) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set default resource quota: %v", err)), nil - } - resultMsg = "Default resource quota set successfully" - } else { - // Set namespace bundle resource quota - err = admin.ResourceQuotas().SetNamespaceBundleResourceQuota(namespace, bundle, *quota) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set resource quota for namespace '%s' bundle '%s': %v", - namespace, bundle, err)), nil - } - resultMsg = fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' set successfully", namespace, bundle) - } - - return mcp.NewToolResultText(resultMsg), nil -} - -// handleQuotaReset handles resetting a resource quota -func handleQuotaReset(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters for reset operation - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for quota.reset: %v", err)), nil - } - - bundle, err := request.RequireString("bundle") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bundle' for quota.reset: %v", err)), nil - } - - // Parse namespace name - nsName, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - // Reset namespace bundle resource quota - err = admin.ResourceQuotas().ResetNamespaceBundleResourceQuota(nsName.String(), bundle) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to reset resource quota for namespace '%s' bundle '%s': %v", - namespace, bundle, err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' reset to default successfully", - namespace, bundle)), nil } diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go index d159f2a..39460fb 100644 --- a/pkg/mcp/pulsar_admin_schemas_tools.go +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -18,222 +18,37 @@ package mcp import ( - "bytes" "context" - "encoding/json" "fmt" - "os" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddSchemasTools adds schema-related tools to the MCP server -func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSchemas)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Add unified schema management tool - toolDesc := "Manage Apache Pulsar schemas for topics. " + - "Schemas in Pulsar define the structure of message data, enabling data validation, evolution, and interoperability. " + - "Pulsar supports multiple schema types including AVRO, JSON, PROTOBUF, etc., allowing strong typing of message content. " + - "Schema versioning ensures backward/forward compatibility as data structures evolve over time. " + - "Operations include getting, uploading, and deleting schemas. " + - "Requires namespace admin permissions for all operations." - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- schema: The schema configuration for a specific topic" - - operationDesc := "Operation to perform. Available operations:\n" + - "- get: Get the schema for a topic (optionally by version)\n" + - "- upload: Upload a new schema for a topic (requires namespace admin permissions)\n" + - "- delete: Delete the schema for a topic (requires namespace admin permissions)" - - schemasTool := mcp.NewTool("pulsar_admin_schema", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ - "A schema is always associated with a specific topic. The schema will be enforced for all producers "+ - "and consumers of this topic."), - ), - mcp.WithNumber("version", - mcp.Description("The schema version (optional for 'get' operation). "+ - "Pulsar maintains a versioned history of schemas. If not specified, the latest schema version will be returned. "+ - "Use this parameter to retrieve a specific historical version of the schema."), - ), - mcp.WithString("filename", - mcp.Description("The file path of the schema definition (required for 'upload' operation). "+ - "The file should contain a JSON object with 'type', 'schema', and optionally 'properties' fields. "+ - "Supported schema types include: AVRO, JSON, PROTOBUF, PROTOBUF_NATIVE, KEY_VALUE, BYTES, STRING, INT8, INT16, INT32, INT64, FLOAT, DOUBLE, BOOLEAN, NONE."), - ), - ) - s.AddTool(schemasTool, handleSchemaTool(readOnly)) -} - -// handleSchemaTool returns a function that handles schema operations -func handleSchemaTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "upload" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Verify resource type - if resource != "schema" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'schema' is supported", resource)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on operation - switch operation { - case "get": - return handleSchemaGet(admin, topic, request) - case "upload": - return handleSchemaUpload(admin, topic, request) - case "delete": - return handleSchemaDelete(admin, topic) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: get, upload, delete", operation)), nil - } - } -} - -// handleSchemaGet handles getting a schema -func handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get optional version parameter - version := request.GetFloat("version", 0) - - // Get schema info - if version != 0 { - // Get schema by version - info, err := admin.Schemas().GetSchemaInfoByVersion(topic, int64(version)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema version %v for topic '%s': %v", - version, topic, err)), nil - } - - jsonBytes, err := json.Marshal(info) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema information: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil - } - // Get latest schema - schemaInfoWithVersion, err := admin.Schemas().GetSchemaInfoWithVersion(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get latest schema for topic '%s': %v", - topic, err)), nil - } - - // Format the output - var output bytes.Buffer - name, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema name: %v", err)), nil +// PulsarAdminSchemaTools creates Pulsar Admin Schema tool list using the new builder pattern +func PulsarAdminSchemaTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarAdminSchemaToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - schemaType, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Type) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema type: %v", err)), nil + // In production environment, this should use proper logging + fmt.Printf("Failed to build Pulsar Admin Schema tools: %v\n", err) + return nil } - properties, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Properties) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema properties: %v", err)), nil - } - - schema, err := prettyPrint(schemaInfoWithVersion.SchemaInfo.Schema) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to format schema definition: %v", err)), nil - } - - fmt.Fprintf(&output, "{\n name: %s \n schema: %s\n type: %s \n properties: %s\n version: %d\n}", - string(name), string(schema), string(schemaType), string(properties), schemaInfoWithVersion.Version) - - return mcp.NewToolResultText(output.String()), nil - + return tools } -// handleSchemaUpload handles uploading a schema -func handleSchemaUpload(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - filename, err := request.RequireString("filename") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'filename' for schema.upload. Please provide the path to the schema definition file: %v", err)), nil - } - - // Read and parse the schema file - var payload utils.PostSchemaPayload - file, err := os.ReadFile(filename) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to read schema file '%s': %v", filename, err)), nil - } - - err = json.Unmarshal(file, &payload) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse schema file '%s'. The file must contain valid JSON with 'type', 'schema', and optionally 'properties' fields: %v", - filename, err)), nil - } - - // Upload the schema - err = admin.Schemas().CreateSchemaByPayload(topic, payload) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to upload schema for topic '%s': %v", topic, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Schema uploaded successfully for topic '%s'", topic)), nil -} +// PulsarAdminAddSchemasTools adds schema-related tools to the MCP server +func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarAdminSchemaTools(readOnly, features) -// handleSchemaDelete handles deleting a schema -func handleSchemaDelete(admin cmdutils.Client, topic string) (*mcp.CallToolResult, error) { - // Delete the schema - err := admin.Schemas().DeleteSchema(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete schema for topic '%s': %v", topic, err)), nil + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(fmt.Sprintf("Schema deleted successfully for topic '%s'", topic)), nil -} - -func prettyPrint(b []byte) ([]byte, error) { - var out bytes.Buffer - err := json.Indent(&out, b, "", " ") - return out.Bytes(), err } diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index a780678..56f7f04 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -19,583 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddSinksTools adds a unified sink-related tool to the MCP server func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSinks)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Create a single unified tool for all sink operations - toolDesc := "Manage Apache Pulsar Sinks for data movement and integration. " + - "Pulsar Sinks are connectors that export data from Pulsar topics to external systems such as databases, " + - "storage services, messaging systems, and third-party applications. " + - "Sinks consume messages from one or more Pulsar topics, transform the data if needed, " + - "and write it to external systems in a format compatible with the target destination. " + - "Built-in sink connectors are available for common systems like Kafka, JDBC, Elasticsearch, and cloud storage. " + - "Sinks follow the tenant/namespace/name hierarchy for organization and access control, " + - "can scale through parallelism configuration, and support configurable subscription types. " + - "This tool provides complete lifecycle management including deployment, configuration, " + - "monitoring, and runtime control. Sinks require proper permissions to access their input topics." - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all sinks under a specific tenant and namespace\n" + - "- get: Get the configuration of a sink\n" + - "- status: Get the runtime status of a sink (instances, metrics)\n" + - "- create: Deploy a new sink with specified parameters\n" + - "- update: Update the configuration of an existing sink\n" + - "- delete: Delete a sink\n" + - "- start: Start a stopped sink\n" + - "- stop: Stop a running sink\n" + - "- restart: Restart a sink\n" + - "- list-built-in: List all built-in sink connectors available in the system" - - sinkTool := mcp.NewTool("pulsar_admin_sinks", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc)), - mcp.WithString("tenant", - mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ - "providing multi-tenancy and resource isolation. Sinks deployed within a tenant "+ - "inherit its permissions and resource quotas. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("namespace", - mcp.Description("The namespace name. Namespaces are logical groupings of topics and sinks "+ - "within a tenant. They encapsulate configuration policies and access control. "+ - "Sinks in a namespace typically process topics within the same namespace. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("name", - mcp.Description("The sink name. Required for all operations except 'list' and 'list-built-in'. "+ - "Names should be descriptive of the sink's purpose and must be unique within a namespace. "+ - "Sink names are used in metrics, logs, and when addressing the sink via APIs.")), - mcp.WithString("archive", - mcp.Description("Path to the archive file containing the sink code. Optional for 'create' and 'update' operations. "+ - "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ - "The archive should contain all dependencies for the sink connector. "+ - "Either archive or sink-type must be specified, but not both.")), - mcp.WithString("sink-type", - mcp.Description("The built-in sink connector type to use. Optional for 'create' and 'update' operations. "+ - "Specifies which built-in connector to use, such as 'jdbc', 'elastic-search', 'kafka', etc. "+ - "Use 'list-built-in' operation to see available sink types. "+ - "Either sink-type or archive must be specified, but not both.")), - mcp.WithArray("inputs", - mcp.Description("The sink's input topics (array of strings). Optional for 'create' and 'update' operations. "+ - "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ - "Sinks can consume from multiple topics, but they should have compatible schemas. "+ - "All input topics should exist before the sink is created. "+ - "Either inputs or topics-pattern must be specified."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "input topic", - }, - ), - ), - mcp.WithString("topics-pattern", - mcp.Description("TopicsPattern to consume from list of topics that match the pattern. Optional for 'create' and 'update' operations. "+ - "Specified as a regular expression, e.g., 'persistent://tenant/namespace/prefix.*'. "+ - "This allows the sink to automatically consume from topics that match the pattern, "+ - "including topics created after the sink is deployed. "+ - "Either topics-pattern or inputs must be specified.")), - mcp.WithString("subs-name", - mcp.Description("Pulsar subscription name for input topic consumer. Optional for 'create' and 'update' operations. "+ - "Defines the subscription name used by the sink to consume from input topics. "+ - "If not specified, a default subscription name will be generated. "+ - "The subscription type used is Shared by default.")), - mcp.WithNumber("parallelism", - mcp.Description("The parallelism factor of the sink. Optional for 'create' and 'update' operations. "+ - "Determines how many instances of the sink will run concurrently. "+ - "Higher values improve throughput but require more resources. "+ - "Default is 1 (single instance). Recommended to align with topic partition count "+ - "when consuming from partitioned topics.")), - mcp.WithObject("sink-config", - mcp.Description("User-defined sink config key/values. Optional for 'create' and 'update' operations. "+ - "Provides configuration parameters specific to the sink connector being used. "+ - "For example, JDBC connection strings, Elasticsearch indices, S3 bucket details, etc. "+ - "Specify as a JSON object with configuration properties required by the specific sink type. "+ - "Example: {\"jdbcUrl\": \"jdbc:postgresql://localhost:5432/database\", \"tableName\": \"events\"}")), - ) - - // Add the tool with the handler that captures readOnly state - s.AddTool(sinkTool, handleSinksTool(readOnly)) -} - -// handleSinksTool returns a handler function for the unified sinks tool -func handleSinksTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Extract and validate operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil - } - - // Check if the operation is valid - validOperations := map[string]bool{ - "list": true, "get": true, "status": true, "create": true, "update": true, - "delete": true, "start": true, "stop": true, "restart": true, "list-built-in": true, - } - - if !validOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil - } - - // Check write permissions for write operations - writeOperations := map[string]bool{ - "create": true, "update": true, "delete": true, "start": true, - "stop": true, "restart": true, - } - - if readOnly && writeOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sinks.", operation)), nil - } - - // Create admin client - admin := cmdutils.NewPulsarClientWithAPIVersion(config.V3) - - // List built-in sinks doesn't require tenant, namespace or name - if operation == "list-built-in" { - return handleListBuiltInSinks(ctx, admin) - } - - // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil - } - - // For all operations except 'list', name is required - var name string - if operation != "list" { - name, err = request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The sink name must be specified for this operation.", operation, err)), nil - } - } - - // Handle operations - switch operation { - case "list": - return handleSinkList(ctx, admin, tenant, namespace) - case "get": - return handleSinkGet(ctx, admin, tenant, namespace, name) - case "status": - return handleSinkStatus(ctx, admin, tenant, namespace, name) - case "create": - return handleSinkCreate(ctx, admin, request) - case "update": - return handleSinkUpdate(ctx, admin, request) - case "delete": - return handleSinkDelete(ctx, admin, tenant, namespace, name) - case "start": - return handleSinkStart(ctx, admin, tenant, namespace, name) - case "stop": - return handleSinkStop(ctx, admin, tenant, namespace, name) - case "restart": - return handleSinkRestart(ctx, admin, tenant, namespace, name) - default: - // This should never happen due to the valid operations check above - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil - } - } -} - -// handleSinkList handles listing all sinks under a namespace -func handleSinkList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { - sinks, err := admin.Sinks().ListSinks(tenant, namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list sinks in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", - tenant, namespace, err)), nil - } - - // Convert result to JSON string - sinksJSON, err := json.Marshal(sinks) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink list: %v", err)), nil - } - - return mcp.NewToolResultText(string(sinksJSON)), nil -} - -// handleSinkGet handles getting information about a sink -func handleSinkGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - sink, err := admin.Sinks().GetSink(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have proper permissions.", - name, tenant, namespace, err)), nil - } - - // Convert result to JSON string - sinkJSON, err := json.Marshal(sink) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink info: %v", err)), nil - } - - return mcp.NewToolResultText(string(sinkJSON)), nil -} - -// handleSinkStatus handles getting the status of a sink -func handleSinkStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - status, err := admin.Sinks().GetSinkStatus(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", - name, tenant, namespace, err)), nil - } - - // Convert result to JSON string - statusJSON, err := json.Marshal(status) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink status: %v", err)), nil - } - - return mcp.NewToolResultText(string(statusJSON)), nil -} - -// handleSinkCreate handles creating a new sink -func handleSinkCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil - } - - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - - // Create a new SinkData object - sinkData := &utils.SinkData{ - Tenant: tenant, - Namespace: namespace, - Name: name, - SinkConf: &utils.SinkConfig{}, - } - - // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { - sinkData.Archive = archive - } - - sinkType := request.GetString("sink-type", "") - if sinkType != "" { - sinkData.SinkType = sinkType - } - - inputsArray := request.GetStringSlice("inputs", []string{}) - if len(inputsArray) > 0 { - sinkData.Inputs = strings.Join(inputsArray, ",") - } - - topicsPattern := request.GetString("topics-pattern", "") - if topicsPattern != "" { - sinkData.TopicsPattern = topicsPattern - } - - subsName := request.GetString("subs-name", "") - if subsName != "" { - sinkData.SubsName = subsName - } - - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sinkData.Parallelism = int(parallelismFloat) - } - - // Get sink config if available - var sinkConfigMap map[string]interface{} - sinkConfigObj, ok := request.GetArguments()["sink-config"] - if ok && sinkConfigObj != nil { - if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { - sinkConfigMap = configMap - // Convert to JSON string - sinkConfigJSON, err := json.Marshal(sinkConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil - } - sinkData.SinkConfigString = string(sinkConfigJSON) - } - } - - // Validate inputs - if sinkData.Archive == "" && sinkData.SinkType == "" { - return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'sink-type' must be specified for sink creation. Use 'archive' for custom connectors or 'sink-type' for built-in connectors."), nil - } - - if sinkData.Archive != "" && sinkData.SinkType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil - } - - if sinkData.Inputs == "" && sinkData.TopicsPattern == "" { - return mcp.NewToolResultError("Missing required parameter: Either 'inputs' or 'topics-pattern' must be specified. The sink needs a source of data to consume from Pulsar."), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminSinksToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Process the arguments - err = processArguments(sinkData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil - } - - // Create the sink - if sinkData.Archive != "" && IsPackageURLSupported(sinkData.Archive) { - err = admin.Sinks().CreateSinkWithURL(sinkData.SinkConf, sinkData.Archive) - } else { - err = admin.Sinks().CreateSink(sinkData.SinkConf, sinkData.Archive) - } - - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create sink '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Created sink '%s' successfully in tenant '%s' namespace '%s'. The sink will start consuming from its input topics and writing to the configured destination.", - name, tenant, namespace)), nil -} - -// handleSinkUpdate handles updating an existing sink -func handleSinkUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil - } - - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - - // Create a new SinkData object - sinkData := &utils.SinkData{ - Tenant: tenant, - Namespace: namespace, - Name: name, - SinkConf: &utils.SinkConfig{}, - } - - // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { - sinkData.Archive = archive - } - - sinkType := request.GetString("sink-type", "") - if sinkType != "" { - sinkData.SinkType = sinkType - } - - inputsArray := request.GetStringSlice("inputs", []string{}) - if len(inputsArray) > 0 { - sinkData.Inputs = strings.Join(inputsArray, ",") - } - - topicsPattern := request.GetString("topics-pattern", "") - if topicsPattern != "" { - sinkData.TopicsPattern = topicsPattern - } - - subsName := request.GetString("subs-name", "") - if subsName != "" { - sinkData.SubsName = subsName - } - - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sinkData.Parallelism = int(parallelismFloat) - } - - // Get sink config if available - var sinkConfigMap map[string]interface{} - sinkConfigObj, ok := request.GetArguments()["sink-config"] - if ok && sinkConfigObj != nil { - if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { - sinkConfigMap = configMap - // Convert to JSON string - sinkConfigJSON, err := json.Marshal(sinkConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil - } - sinkData.SinkConfigString = string(sinkConfigJSON) - } - } - - // Validate inputs if both are specified - if sinkData.Archive != "" && sinkData.SinkType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil - } - - // Process the arguments - err = processArguments(sinkData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil - } - - // Create update options - updateOptions := &utils.UpdateOptions{ - UpdateAuthData: true, - } - - // Update the sink - if sinkData.Archive != "" && IsPackageURLSupported(sinkData.Archive) { - err = admin.Sinks().UpdateSinkWithURL(sinkData.SinkConf, sinkData.Archive, updateOptions) - } else { - err = admin.Sinks().UpdateSink(sinkData.SinkConf, sinkData.Archive, updateOptions) - } - - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and all parameters are valid.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Updated sink '%s' successfully in tenant '%s' namespace '%s'. The sink may need to be restarted to apply all changes.", - name, tenant, namespace)), nil -} - -// handleSinkDelete handles deleting a sink -func handleSinkDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sinks().DeleteSink(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have deletion permissions.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Deleted sink '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", - name, tenant, namespace)), nil -} - -// handleSinkStart handles starting a sink -func handleSinkStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sinks().StartSink(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to start sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is not already running.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Started sink '%s' successfully in tenant '%s' namespace '%s'. The sink will begin consuming from its input topics.", - name, tenant, namespace)), nil -} - -// handleSinkStop handles stopping a sink -func handleSinkStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sinks().StopSink(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to stop sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is currently running.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Stopped sink '%s' successfully in tenant '%s' namespace '%s'. The sink will no longer consume messages until restarted.", - name, tenant, namespace)), nil -} - -// handleSinkRestart handles restarting a sink -func handleSinkRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sinks().RestartSink(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to restart sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Restarted sink '%s' successfully in tenant '%s' namespace '%s'. All sink instances have been restarted.", - name, tenant, namespace)), nil -} - -// handleListBuiltInSinks handles listing all built-in sink connectors -func handleListBuiltInSinks(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { - sinks, err := admin.Sinks().GetBuiltInSinks() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sinks: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil - } - - // Convert result to JSON string - sinksJSON, err := json.Marshal(sinks) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sinks: %v", err)), nil - } - - return mcp.NewToolResultText(string(sinksJSON)), nil -} - -// processArguments is a simplified version of the pulsarctl function to process sink arguments -func processArguments(sinkData *utils.SinkData) error { - // Initialize config if needed - if sinkData.SinkConf == nil { - sinkData.SinkConf = new(utils.SinkConfig) - } - - // Set basic config values - sinkData.SinkConf.Tenant = sinkData.Tenant - sinkData.SinkConf.Namespace = sinkData.Namespace - sinkData.SinkConf.Name = sinkData.Name - - // Set inputs if provided - if sinkData.Inputs != "" { - inputTopics := strings.Split(sinkData.Inputs, ",") - sinkData.SinkConf.Inputs = inputTopics - } - - // Set topics pattern if provided - if sinkData.TopicsPattern != "" { - sinkData.SinkConf.TopicsPattern = &sinkData.TopicsPattern - } - - // Set subscription name if provided - if sinkData.SubsName != "" { - sinkData.SinkConf.SourceSubscriptionName = sinkData.SubsName - } - - // Set parallelism if provided - if sinkData.Parallelism != 0 { - sinkData.SinkConf.Parallelism = sinkData.Parallelism - } else if sinkData.SinkConf.Parallelism <= 0 { - sinkData.SinkConf.Parallelism = 1 - } - - // Handle archive and sink-type - if sinkData.Archive != "" && sinkData.SinkType != "" { - return fmt.Errorf("cannot specify both archive and sink-type") - } - - if sinkData.Archive != "" { - sinkData.SinkConf.Archive = sinkData.Archive - } - - if sinkData.SinkType != "" { - // In a real implementation, we would validate the sink type here - sinkData.SinkConf.Archive = sinkData.SinkType + // Log error but don't fail - this maintains backward compatibility + return } - // Parse sink config if provided - if sinkData.SinkConfigString != "" { - var configs map[string]interface{} - if err := json.Unmarshal([]byte(sinkData.SinkConfigString), &configs); err != nil { - return fmt.Errorf("failed to parse sink config: %v", err) - } - sinkData.SinkConf.Configs = configs + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return nil } diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index 48b0615..e4af45a 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -19,612 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddSourcesTools adds a unified source-related tool to the MCP server func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSources)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Create a single unified tool for all source operations - toolDesc := "Manage Apache Pulsar Sources for data ingestion and integration. " + - "Pulsar Sources are connectors that import data from external systems into Pulsar topics. " + - "Sources connect to external systems such as databases, messaging platforms, storage services, " + - "and real-time data streams to pull data and publish it to Pulsar topics. " + - "Built-in source connectors are available for common systems like Kafka, JDBC, AWS services, and more. " + - "Sources follow the tenant/namespace/name hierarchy for organization and access control, " + - "can scale through parallelism configuration, and support various processing guarantees. " + - "This tool provides complete lifecycle management including deployment, configuration, " + - "monitoring, and runtime control. Sources use schema types to ensure data compatibility." - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all sources under a specific tenant and namespace\n" + - "- get: Get the configuration of a source\n" + - "- status: Get the runtime status of a source (instances, metrics)\n" + - "- create: Deploy a new source with specified parameters\n" + - "- update: Update the configuration of an existing source\n" + - "- delete: Delete a source\n" + - "- start: Start a stopped source\n" + - "- stop: Stop a running source\n" + - "- restart: Restart a source\n" + - "- list-built-in: List all built-in source connectors available in the system" - - sourceTool := mcp.NewTool("pulsar_admin_sources", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc)), - mcp.WithString("tenant", - mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ - "providing multi-tenancy and resource isolation. Sources deployed within a tenant "+ - "inherit its permissions and resource quotas. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("namespace", - mcp.Description("The namespace name. Namespaces are logical groupings of topics and sources "+ - "within a tenant. They encapsulate configuration policies and access control. "+ - "Sources in a namespace typically publish to topics within the same namespace. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("name", - mcp.Description("The source name. Required for all operations except 'list' and 'list-built-in'. "+ - "Names should be descriptive of the source's purpose and must be unique within a namespace. "+ - "Source names are used in metrics, logs, and when addressing the source via APIs.")), - mcp.WithString("archive", - mcp.Description("Path to the archive file containing the source code. Optional for 'create' and 'update' operations. "+ - "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ - "The archive should contain all dependencies for the source connector. "+ - "Either archive or source-type must be specified, but not both.")), - mcp.WithString("source-type", - mcp.Description("The built-in source connector type to use. Optional for 'create' and 'update' operations. "+ - "Specifies which built-in connector to use, such as 'kafka', 'jdbc', 'file', etc. "+ - "Use 'list-built-in' operation to see available source types. "+ - "Either source-type or archive must be specified, but not both.")), - mcp.WithString("destination-topic-name", - mcp.Description("The Pulsar topic to which data is published. Required for 'create' operation, optional for 'update'. "+ - "Specified in the format 'persistent://tenant/namespace/topic'. "+ - "This is the topic where the source will send the data it extracts from the external system. "+ - "The topic will be automatically created if it doesn't exist.")), - mcp.WithString("deserialization-classname", - mcp.Description("The SerDe (Serialization/Deserialization) classname for the source. Optional for 'create' and 'update'. "+ - "Specifies how to convert data from the external system into Pulsar messages. "+ - "Common SerDe classes include AvroSchema, JsonSchema, StringSchema, etc. "+ - "If not specified, the source will use the default SerDe for the connector type.")), - mcp.WithString("schema-type", - mcp.Description("The schema type to be used to encode messages emitted from the source. Optional for 'create' and 'update'. "+ - "Available schema types include: 'avro', 'json', 'protobuf', 'string', etc. "+ - "Schema types ensure data compatibility and enable schema evolution. "+ - "The schema type should match the format of data being ingested.")), - mcp.WithString("classname", - mcp.Description("The source's class name if archive is a file-url-path (file://...). Optional for 'create' and 'update'. "+ - "This specifies the fully qualified class name that implements the source connector. "+ - "Only needed when using a custom source implementation in a JAR file. "+ - "Built-in connectors don't require this parameter.")), - mcp.WithString("processing-guarantees", - mcp.Description("The processing guarantees (delivery semantics) applied to the source. Optional for 'create' and 'update'. "+ - "Available options: 'atleast_once', 'atmost_once', 'effectively_once'. "+ - "Controls how data is delivered in failure scenarios. "+ - "'atleast_once' is the most common and ensures no data loss but may have duplicates. "+ - "Default is 'atleast_once'.")), - mcp.WithNumber("parallelism", - mcp.Description("The parallelism factor of the source. Optional for 'create' and 'update' operations. "+ - "Determines how many instances of the source will run concurrently. "+ - "Higher values improve throughput but require more resources. "+ - "Default is 1 (single instance). Recommended to align with both source capacity "+ - "and destination topic partition count.")), - mcp.WithObject("source-config", - mcp.Description("User-defined source config key/values. Optional for 'create' and 'update' operations. "+ - "Provides configuration parameters specific to the source connector being used. "+ - "For example, database connection details, Kafka bootstrap servers, credentials, etc. "+ - "Specify as a JSON object with configuration properties required by the specific source type. "+ - "Example: {\"topic\": \"external-kafka-topic\", \"bootstrapServers\": \"kafka:9092\"}")), - ) - - // Add the tool with the handler that captures readOnly state - s.AddTool(sourceTool, handleSourcesTool(readOnly)) -} - -// handleSourcesTool returns a handler function for the unified sources tool -func handleSourcesTool(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Extract and validate operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil - } - - // Check if the operation is valid - validOperations := map[string]bool{ - "list": true, "get": true, "status": true, "create": true, "update": true, - "delete": true, "start": true, "stop": true, "restart": true, "list-built-in": true, - } - - if !validOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil - } - - // Check write permissions for write operations - writeOperations := map[string]bool{ - "create": true, "update": true, "delete": true, "start": true, - "stop": true, "restart": true, - } - - if readOnly && writeOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sources.", operation)), nil - } - - // Create admin client - admin := cmdutils.NewPulsarClientWithAPIVersion(config.V3) - - // List built-in sources doesn't require tenant, namespace or name - if operation == "list-built-in" { - return handleListBuiltInSources(ctx, admin) - } - - // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil - } - - // For all operations except 'list', name is required - var name string - if operation != "list" { - name, err = request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The source name must be specified for this operation.", operation, err)), nil - } - } - - // Handle operations - switch operation { - case "list": - return handleSourceList(ctx, admin, tenant, namespace) - case "get": - return handleSourceGet(ctx, admin, tenant, namespace, name) - case "status": - return handleSourceStatus(ctx, admin, tenant, namespace, name) - case "create": - return handleSourceCreate(ctx, admin, request) - case "update": - return handleSourceUpdate(ctx, admin, request) - case "delete": - return handleSourceDelete(ctx, admin, tenant, namespace, name) - case "start": - return handleSourceStart(ctx, admin, tenant, namespace, name) - case "stop": - return handleSourceStop(ctx, admin, tenant, namespace, name) - case "restart": - return handleSourceRestart(ctx, admin, tenant, namespace, name) - default: - // This should never happen due to the valid operations check above - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil - } - } -} - -// handleSourceList handles listing all sources under a namespace -func handleSourceList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { - sources, err := admin.Sources().ListSources(tenant, namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list sources in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", - tenant, namespace, err)), nil - } - - // Convert result to JSON string - sourcesJSON, err := json.Marshal(sources) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source list: %v", err)), nil - } - - return mcp.NewToolResultText(string(sourcesJSON)), nil -} - -// handleSourceGet handles getting information about a source -func handleSourceGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - source, err := admin.Sources().GetSource(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have proper permissions.", - name, tenant, namespace, err)), nil - } - - // Convert result to JSON string - sourceJSON, err := json.Marshal(source) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source info: %v", err)), nil - } - - return mcp.NewToolResultText(string(sourceJSON)), nil -} - -// handleSourceStatus handles getting the status of a source -func handleSourceStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - status, err := admin.Sources().GetSourceStatus(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", - name, tenant, namespace, err)), nil - } - - // Convert result to JSON string - statusJSON, err := json.Marshal(status) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source status: %v", err)), nil - } - - return mcp.NewToolResultText(string(statusJSON)), nil -} - -// handleSourceCreate handles creating a new source -func handleSourceCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminSourcesToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - name, err := request.RequireString("name") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - - // Create a new SourceData object - sourceData := &utils.SourceData{ - Tenant: tenant, - Namespace: namespace, - Name: name, - SourceConf: &utils.SourceConfig{}, - } - - // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { - sourceData.Archive = archive - } - - sourceType := request.GetString("source-type", "") - if sourceType != "" { - sourceData.SourceType = sourceType - } - - destTopic := request.GetString("destination-topic-name", "") - if destTopic != "" { - sourceData.DestinationTopicName = destTopic - } - - deserializationClassName := request.GetString("deserialization-classname", "") - if deserializationClassName != "" { - sourceData.DeserializationClassName = deserializationClassName - } - - schemaType := request.GetString("schema-type", "") - if schemaType != "" { - sourceData.SchemaType = schemaType - } - - className := request.GetString("classname", "") - if className != "" { - sourceData.ClassName = className - } - - processingGuarantees := request.GetString("processing-guarantees", "") - if processingGuarantees != "" { - sourceData.ProcessingGuarantees = processingGuarantees - } - - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sourceData.Parallelism = int(parallelismFloat) - } - - // Get source config if available - var sourceConfigMap map[string]interface{} - sourceConfigObj, ok := request.GetArguments()["source-config"] - if ok && sourceConfigObj != nil { - if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { - sourceConfigMap = configMap - // Convert to JSON string - sourceConfigJSON, err := json.Marshal(sourceConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil - } - sourceData.SourceConfigString = string(sourceConfigJSON) - } - } - - // Validate inputs - if sourceData.Archive == "" && sourceData.SourceType == "" { - return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'source-type' must be specified for source creation. Use 'archive' for custom connectors or 'source-type' for built-in connectors."), nil - } - - if sourceData.Archive != "" && sourceData.SourceType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil - } - - if sourceData.DestinationTopicName == "" { - return mcp.NewToolResultError("Missing required parameter: 'destination-topic-name' must be specified. This is the Pulsar topic where the source will publish data."), nil - } - - // Process the arguments - err = processSourceArguments(sourceData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil - } - - // Create the source - if sourceData.Archive != "" && IsPackageURLSupported(sourceData.Archive) { - err = admin.Sources().CreateSourceWithURL(sourceData.SourceConf, sourceData.Archive) - } else { - err = admin.Sources().CreateSource(sourceData.SourceConf, sourceData.Archive) - } - - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create source '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Created source '%s' successfully in tenant '%s' namespace '%s'. The source will start pulling data from the external system and publishing to the destination topic.", - name, tenant, namespace)), nil -} - -// handleSourceUpdate handles updating an existing source -func handleSourceUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil - } - - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - - // Create a new SourceData object - sourceData := &utils.SourceData{ - Tenant: tenant, - Namespace: namespace, - Name: name, - SourceConf: &utils.SourceConfig{}, - } - - // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { - sourceData.Archive = archive - } - - sourceType := request.GetString("source-type", "") - if sourceType != "" { - sourceData.SourceType = sourceType - } - - destTopic := request.GetString("destination-topic-name", "") - if destTopic != "" { - sourceData.DestinationTopicName = destTopic - } - - deserializationClassName := request.GetString("deserialization-classname", "") - if deserializationClassName != "" { - sourceData.DeserializationClassName = deserializationClassName - } - - schemaType := request.GetString("schema-type", "") - if schemaType != "" { - sourceData.SchemaType = schemaType - } - - className := request.GetString("classname", "") - if className != "" { - sourceData.ClassName = className - } - - processingGuarantees := request.GetString("processing-guarantees", "") - if processingGuarantees != "" { - sourceData.ProcessingGuarantees = processingGuarantees - } - - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sourceData.Parallelism = int(parallelismFloat) - } - - // Get source config if available - var sourceConfigMap map[string]interface{} - sourceConfigObj, ok := request.GetArguments()["source-config"] - if ok && sourceConfigObj != nil { - if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { - sourceConfigMap = configMap - // Convert to JSON string - sourceConfigJSON, err := json.Marshal(sourceConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil - } - sourceData.SourceConfigString = string(sourceConfigJSON) - } - } - - // Validate inputs if both are specified - if sourceData.Archive != "" && sourceData.SourceType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil - } - - // Process the arguments - err = processSourceArguments(sourceData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil - } - - // Create update options - updateOptions := &utils.UpdateOptions{ - UpdateAuthData: true, - } - - // Update the source - if sourceData.Archive != "" && IsPackageURLSupported(sourceData.Archive) { - err = admin.Sources().UpdateSourceWithURL(sourceData.SourceConf, sourceData.Archive, updateOptions) - } else { - err = admin.Sources().UpdateSource(sourceData.SourceConf, sourceData.Archive, updateOptions) - } - - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and all parameters are valid.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Updated source '%s' successfully in tenant '%s' namespace '%s'. The source may need to be restarted to apply all changes.", - name, tenant, namespace)), nil -} - -// handleSourceDelete handles deleting a source -func handleSourceDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sources().DeleteSource(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have deletion permissions.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Deleted source '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", - name, tenant, namespace)), nil -} - -// handleSourceStart handles starting a source -func handleSourceStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sources().StartSource(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to start source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is not already running.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Started source '%s' successfully in tenant '%s' namespace '%s'. The source will begin pulling data from the external system.", - name, tenant, namespace)), nil -} - -// handleSourceStop handles stopping a source -func handleSourceStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sources().StopSource(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to stop source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is currently running.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Stopped source '%s' successfully in tenant '%s' namespace '%s'. The source will no longer pull data until restarted.", - name, tenant, namespace)), nil -} - -// handleSourceRestart handles restarting a source -func handleSourceRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { - err := admin.Sources().RestartSource(tenant, namespace, name) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to restart source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", - name, tenant, namespace, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Restarted source '%s' successfully in tenant '%s' namespace '%s'. All source instances have been restarted.", - name, tenant, namespace)), nil -} - -// handleListBuiltInSources handles listing all built-in source connectors -func handleListBuiltInSources(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { - sources, err := admin.Sources().GetBuiltInSources() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sources: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil - } - - // Convert result to JSON string - sourcesJSON, err := json.Marshal(sources) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sources: %v", err)), nil - } - - return mcp.NewToolResultText(string(sourcesJSON)), nil -} - -// processSourceArguments is a simplified version of the pulsarctl function to process source arguments -func processSourceArguments(sourceData *utils.SourceData) error { - // Initialize config if needed - if sourceData.SourceConf == nil { - sourceData.SourceConf = new(utils.SourceConfig) - } - - // Set basic config values - sourceData.SourceConf.Tenant = sourceData.Tenant - sourceData.SourceConf.Namespace = sourceData.Namespace - sourceData.SourceConf.Name = sourceData.Name - - // Set destination topic if provided - if sourceData.DestinationTopicName != "" { - sourceData.SourceConf.TopicName = sourceData.DestinationTopicName - } - - // Set deserialization class name if provided - if sourceData.DeserializationClassName != "" { - sourceData.SourceConf.SerdeClassName = sourceData.DeserializationClassName - } - - // Set schema type if provided - if sourceData.SchemaType != "" { - sourceData.SourceConf.SchemaType = sourceData.SchemaType - } - - // Set class name if provided - if sourceData.ClassName != "" { - sourceData.SourceConf.ClassName = sourceData.ClassName - } - - // Set processing guarantees if provided - if sourceData.ProcessingGuarantees != "" { - sourceData.SourceConf.ProcessingGuarantees = sourceData.ProcessingGuarantees - } - - // Set parallelism if provided - if sourceData.Parallelism != 0 { - sourceData.SourceConf.Parallelism = sourceData.Parallelism - } else if sourceData.SourceConf.Parallelism <= 0 { - sourceData.SourceConf.Parallelism = 1 - } - - // Handle archive and source-type - if sourceData.Archive != "" && sourceData.SourceType != "" { - return fmt.Errorf("cannot specify both archive and source-type") - } - - if sourceData.Archive != "" { - sourceData.SourceConf.Archive = sourceData.Archive - } - - if sourceData.SourceType != "" { - // In a real implementation, we would validate the source type here - sourceData.SourceConf.Archive = sourceData.SourceType + // Log error but don't fail - this maintains backward compatibility + return } - // Parse source config if provided - if sourceData.SourceConfigString != "" { - var configs map[string]interface{} - if err := json.Unmarshal([]byte(sourceData.SourceConfigString), &configs); err != nil { - return fmt.Errorf("failed to parse source config: %v", err) - } - sourceData.SourceConf.Configs = configs + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return nil } diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go index 10fc26f..76444c0 100644 --- a/pkg/mcp/pulsar_admin_subscription_tools.go +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -19,337 +19,36 @@ package mcp import ( "context" - "encoding/json" "fmt" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddSubscriptionTools adds subscription-related tools to the MCP server -func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminSubscriptions)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Add unified subscription management tool - toolDesc := "Manage Apache Pulsar subscriptions on topics. " + - "Subscriptions are named entities representing consumer groups that maintain their position in a topic. " + - "Pulsar supports multiple subscription modes (Exclusive, Shared, Failover, Key_Shared) to accommodate different messaging patterns. " + - "Each subscription tracks message acknowledgments independently, allowing multiple consumers to process messages at their own pace. " + - "Subscriptions persist even when all consumers disconnect, maintaining state and preventing message loss. " + - "Operations include listing, creating, deleting, and manipulating message cursors within subscriptions. " + - "Most operations require namespace admin permissions plus produce/consume permissions on the topic." - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- subscription: A subscription on a topic representing a consumer group" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all subscriptions for a topic\n" + - "- create: Create a new subscription on a topic\n" + - "- delete: Delete a subscription from a topic\n" + - "- skip: Skip a specified number of messages for a subscription\n" + - "- expire: Expire messages older than specified time for a subscription\n" + - "- reset-cursor: Reset the cursor position for a subscription to a specific message ID" - - subscriptionTool := mcp.NewTool("pulsar_admin_subscription", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ - "For partitioned topics, you can either specify the base topic name (to apply the operation across all partitions) "+ - "or a specific partition in the format 'topicName-partition-N'."), - ), - mcp.WithString("subscription", - mcp.Description("The subscription name. Required for all operations except 'list'. "+ - "A subscription name is a logical identifier for a durable position in a topic. "+ - "Multiple consumers can attach to the same subscription to implement different messaging patterns."), - ), - mcp.WithString("messageId", - mcp.Description("Message ID for positioning the subscription cursor. Used in 'create' and 'reset-cursor' operations. "+ - "Values can be:\n"+ - "- 'latest': Position at the latest (most recent) message\n"+ - "- 'earliest': Position at the earliest (oldest available) message\n"+ - "- specific position in 'ledgerId:entryId' format for precise positioning"), - ), - mcp.WithNumber("count", - mcp.Description("The number of messages to skip (required for 'skip' operation). "+ - "This moves the subscription cursor forward by the specified number of messages without processing them."), - ), - mcp.WithNumber("expireTimeInSeconds", - mcp.Description("Expire messages older than the specified seconds (required for 'expire' operation). "+ - "This moves the subscription cursor to skip all messages published before the specified time."), - ), - mcp.WithBoolean("force", - mcp.Description("Force deletion of subscription (optional for 'delete' operation). "+ - "When true, all consumers will be forcefully disconnected and the subscription will be deleted. "+ - "Use with caution as it can interrupt active message processing."), - ), - ) - s.AddTool(subscriptionTool, handleSubscriptionTool(readOnly)) -} - -// handleSubscriptionTool returns a function that handles subscription operations -func handleSubscriptionTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation != "list") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Verify resource type - if resource != "subscription" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'subscription' is supported", resource)), nil - } - - // Parse topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on operation - switch operation { - case "list": - return handleSubsList(admin, topicName) - case "create": - return handleSubsCreate(admin, topicName, request) - case "delete": - return handleSubsDelete(admin, topicName, request) - case "skip": - return handleSubsSkip(admin, topicName, request) - case "expire": - return handleSubsExpire(admin, topicName, request) - case "reset-cursor": - return handleSubsResetCursor(admin, topicName, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: list, create, delete, skip, expire, reset-cursor", operation)), nil - } - } -} - -// handleSubsList handles listing all subscriptions for a topic -func handleSubsList(admin cmdutils.Client, topicName *utils.TopicName) (*mcp.CallToolResult, error) { - // List subscriptions - subscriptions, err := admin.Subscriptions().List(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list subscriptions for topic '%s': %v", - topicName.String(), err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(subscriptions) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process subscription data: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleSubsCreate handles creating a new subscription -func handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameter - subscription, err := request.RequireString("subscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.create: %v", err)), nil - } - - // Get optional messageID parameter (default is "latest") - messageID := request.GetString("messageId", "latest") - - // Parse messageId - var messageIDObj utils.MessageID - switch messageID { - case "latest": - messageIDObj = utils.Latest - case "earliest": - messageIDObj = utils.Earliest - default: - s := strings.Split(messageID, ":") - if len(s) != 2 { - return mcp.NewToolResultError(fmt.Sprintf( - "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil - } - msgID, err := utils.ParseMessageID(messageID) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil - } - messageIDObj = *msgID - } - - // Create subscription - err = admin.Subscriptions().Create(*topicName, subscription, messageIDObj) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Created subscription '%s' on topic '%s' from position '%s' successfully", - subscription, topicName.String(), messageID)), nil -} - -// handleSubsDelete handles deleting a subscription -func handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameter - subscription, err := request.RequireString("subscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.delete: %v", err)), nil - } - - // Get optional force parameter (default is false) - force := request.GetBool("force", false) - - // Delete subscription - if force { - err = admin.Subscriptions().ForceDelete(*topicName, subscription) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to forcefully delete subscription '%s' from topic '%s': %v", - subscription, topicName.String(), err)), nil - } - } else { - err = admin.Subscriptions().Delete(*topicName, subscription) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete subscription '%s' from topic '%s': %v", - subscription, topicName.String(), err)), nil - } +// PulsarAdminSubscriptionTools creates Pulsar Admin Subscription tool list using the new builder pattern +func PulsarAdminSubscriptionTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarAdminSubscriptionToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - forceStr := "" - if force { - forceStr = " forcefully" - } - return mcp.NewToolResultText(fmt.Sprintf("Deleted subscription '%s' from topic '%s'%s successfully", - subscription, topicName.String(), forceStr)), nil -} - -// handleSubsSkip handles skipping messages for a subscription -func handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - subscription, err := request.RequireString("subscription") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.skip: %v", err)), nil + // In production environment, this should use proper logging + fmt.Printf("Failed to build Pulsar Admin Subscription tools: %v\n", err) + return nil } - count, err := request.RequireFloat("count") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'count' for subscription.skip: %v", err)), nil - } - - // Skip messages - err = admin.Subscriptions().SkipMessages(*topicName, subscription, int64(count)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to skip messages for subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Skipped %d messages for subscription '%s' on topic '%s' successfully", - int(count), subscription, topicName.String())), nil + return tools } -// handleSubsExpire handles expiring messages for a subscription -func handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - subscription, err := request.RequireString("subscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.expire: %v", err)), nil - } - - expireTime, err := request.RequireFloat("expireTimeInSeconds") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'expireTimeInSeconds' for subscription.expire: %v", err)), nil - } - - // Expire messages - err = admin.Subscriptions().ExpireMessages(*topicName, subscription, int64(expireTime)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to expire messages for subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Expired messages older than %d seconds for subscription '%s' on topic '%s' successfully", - int(expireTime), subscription, topicName.String()), - ), nil -} - -// handleSubsResetCursor handles resetting a subscription cursor -func handleSubsResetCursor(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - subscription, err := request.RequireString("subscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.reset-cursor: %v", err)), nil - } - - messageID, err := request.RequireString("messageId") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for subscription.reset-cursor: %v", err)), nil - } - - // Parse messageId - var messageIDObj utils.MessageID - switch messageID { - case "latest": - messageIDObj = utils.Latest - case "earliest": - messageIDObj = utils.Earliest - default: - s := strings.Split(messageID, ":") - if len(s) != 2 { - return mcp.NewToolResultError(fmt.Sprintf( - "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil - } - msgID, err := utils.ParseMessageID(messageID) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil - } - messageIDObj = *msgID - } +// PulsarAdminAddSubscriptionTools adds subscription-related tools to the MCP server +func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarAdminSubscriptionTools(readOnly, features) - // Reset cursor - err = admin.Subscriptions().ResetCursorToMessageID(*topicName, subscription, messageIDObj) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to reset cursor for subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText( - fmt.Sprintf("Reset cursor for subscription '%s' on topic '%s' to position '%s' successfully", - subscription, topicName.String(), messageID), - ), nil } diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index 75097c6..a73662f 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -19,283 +19,28 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddTenantTools adds tenant-related tools to the MCP server func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminTenants)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Add unified tenant management tool - toolDesc := "Manage Apache Pulsar tenants. " + - "Tenants are the highest level administrative unit in Pulsar's multi-tenancy hierarchy. " + - "Each tenant can contain multiple namespaces, allowing for logical isolation of applications. " + - "Tenant configuration controls admin access and cluster availability across organizations. " + - "Tenants provide isolation boundaries for topics, security policies, and resource quotas. " + - "Proper tenant management is essential for multi-tenant Pulsar deployments to ensure data isolation, " + - "appropriate access controls, and effective resource sharing. " + - "All tenant operations require super-user permissions." - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- tenant: A tenant in the Pulsar instance" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all tenants in the Pulsar instance\n" + - "- get: Get configuration details for a specific tenant\n" + - "- create: Create a new tenant with specified configuration\n" + - "- update: Update configuration for an existing tenant\n" + - "- delete: Delete an existing tenant (must not have any active namespaces)" - - tenantTool := mcp.NewTool("pulsar_admin_tenant", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("tenant", - mcp.Description("The tenant name to operate on. Required for all operations except 'list'. "+ - "Tenant names are unique identifiers and form the root of the topic naming hierarchy. "+ - "A valid tenant name must be comprised of alphanumeric characters and/or the following special characters: "+ - "'-', '_', '.', ':'. Ensure the tenant name follows your organization's naming conventions."), - ), - mcp.WithArray("adminRoles", - mcp.Description("List of auth principals (users or roles) allowed to administrate the tenant. "+ - "Required for 'create' and 'update' operations. These roles can create, update, or delete any "+ - "namespaces within the tenant, and can manage topic configurations. "+ - "Format: array of role strings, e.g., ['admin1', 'orgAdmin']. "+ - "Use empty array [] to remove all admin roles."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "role", - }, - ), - ), - mcp.WithArray("allowedClusters", - mcp.Description("List of clusters that this tenant can access. Required for 'create' and 'update' operations. "+ - "Restricts the tenant to only use specified clusters, enabling geographic or infrastructure isolation. "+ - "Format: array of cluster names, e.g., ['us-west', 'us-east']. "+ - "An empty list means no clusters are accessible to this tenant."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "cluster", - }, - ), - ), - ) - s.AddTool(tenantTool, handleTenantTool(readOnly)) -} - -// handleTenantTool returns a function that handles tenant operations -func handleTenantTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "create" || operation == "update" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Verify resource type - if resource != "tenant" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'tenant' is supported", resource)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on operation - switch operation { - case "list": - return handleTenantsList(admin) - case "get": - return handleTenantGet(admin, request) - case "create": - return handleTenantCreate(admin, request) - case "update": - return handleTenantUpdate(admin, request) - case "delete": - return handleTenantDelete(admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: list, get, create, update, delete", operation)), nil - } - } -} - -// handleTenantsList handles listing all tenants -func handleTenantsList(admin cmdutils.Client) (*mcp.CallToolResult, error) { - // Get tenant list - tenants, err := admin.Tenants().List() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list tenants: %v", err)), nil - } - - // Convert result to JSON string - tenantsJSON, err := json.Marshal(tenants) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process tenant list: %v", err)), nil - } - - return mcp.NewToolResultText(string(tenantsJSON)), nil -} - -// handleTenantGet handles getting a tenant's configuration -func handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.get: %v", err)), nil - } - - // Get tenant info - tenantInfo, err := admin.Tenants().Get(tenant) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant '%s' configuration: %v", tenant, err)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminTenantToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Convert result to JSON string - tenantInfoJSON, err := json.Marshal(tenantInfo) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process tenant info: %v", err)), nil - } - - return mcp.NewToolResultText(string(tenantInfoJSON)), nil -} - -// handleTenantCreate handles creating a new tenant -func handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.create: %v", err)), nil - } - - adminRoles := request.GetStringSlice("adminRoles", []string{}) - - allowedClusters := request.GetStringSlice("allowedClusters", []string{}) - - // Create tenant data struct - tenantData := utils.TenantData{ - Name: tenant, - AdminRoles: adminRoles, - AllowedClusters: allowedClusters, - } - - // Create tenant - err = admin.Tenants().Create(tenantData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create tenant '%s': %v", tenant, err)), nil - } - - // Prepare result message with details - adminRolesStr := "none" - if len(adminRoles) > 0 { - adminRolesStr = fmt.Sprintf("'%s'", strings.Join(adminRoles, "', '")) - } - - allowedClustersStr := "none" - if len(allowedClusters) > 0 && allowedClusters[0] != "" { - allowedClustersStr = fmt.Sprintf("'%s'", strings.Join(allowedClusters, "', '")) - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully created tenant '%s' with admin roles: %s, allowed clusters: %s", - tenant, adminRolesStr, allowedClustersStr)), nil -} - -// handleTenantUpdate handles updating an existing tenant -func handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.update: %v", err)), nil - } - - // Get current tenant info to ensure it exists and to show changes - currentTenantInfo, err := admin.Tenants().Get(tenant) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to verify tenant '%s' exists: %v", tenant, err)), nil - } - - // Get update parameters - adminRoles := request.GetStringSlice("adminRoles", []string{}) - allowedClusters := request.GetStringSlice("allowedClusters", []string{}) - - // If parameters not provided, keep existing values - if len(adminRoles) == 0 { - adminRoles = currentTenantInfo.AdminRoles - } - - if len(allowedClusters) == 0 { - allowedClusters = currentTenantInfo.AllowedClusters - } - - // Create tenant data struct with updated values - tenantData := utils.TenantData{ - Name: tenant, - AdminRoles: adminRoles, - AllowedClusters: allowedClusters, - } - - // Update tenant - err = admin.Tenants().Update(tenantData) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update tenant '%s': %v", tenant, err)), nil - } - - // Prepare result message with details - adminRolesStr := "none" - if len(adminRoles) > 0 { - adminRolesStr = fmt.Sprintf("'%s'", strings.Join(adminRoles, "', '")) - } - - allowedClustersStr := "none" - if len(allowedClusters) > 0 && allowedClusters[0] != "" { - allowedClustersStr = fmt.Sprintf("'%s'", strings.Join(allowedClusters, "', '")) - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully updated tenant '%s' with admin roles: %s, allowed clusters: %s", - tenant, adminRolesStr, allowedClustersStr)), nil -} - -// handleTenantDelete handles deleting an existing tenant -func handleTenantDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant' for tenant.delete: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - // Delete tenant - err = admin.Tenants().Delete(tenant) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete tenant '%s': %v. Note that a tenant cannot be deleted if it has active namespaces.", tenant, err)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully deleted tenant '%s'", tenant)), nil } diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index a67aec8..32f24e6 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -19,2406 +19,29 @@ package mcp import ( "context" - "encoding/json" - "fmt" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddTopicPolicyTools adds topic policy-related tools to the MCP server func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminTopicPolicy)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Add unified topic policy get tool - topicGetPolicyTool := mcp.NewTool("pulsar_admin_topic_policy_get", - mcp.WithDescription("Get a policy configuration for a topic. "+ - "This is a unified tool for retrieving different types of policies on a topic. "+ - "The policy type determines which specific policy will be retrieved. "+ - "Required permissions vary based on the policy being queried.\n\n"+ - "Available policy types and their parameters:\n"+ - "1. publish-rate: Gets the publish rate configuration limiting the maximum rate at which producers can publish messages\n"+ - " - Required: topic, policy\n"+ - " - Returns: publishThrottlingRateInMsg (maximum message rate per second), publishThrottlingRateInByte (maximum byte rate per second)\n\n"+ - "2. permissions: Gets permissions on a topic showing which roles have which actions (produce/consume) allowed\n"+ - " - Required: topic, policy\n"+ - " - Returns: Map of roles to their allowed actions\n\n"+ - "3. message-ttl: Gets time to live for messages in seconds, after which unacknowledged messages are deleted\n"+ - " - Required: topic, policy\n"+ - " - Returns: TTL value in seconds, or null if not set\n\n"+ - "4. max-producers: Gets maximum number of producers allowed on this topic\n"+ - " - Required: topic, policy\n"+ - " - Returns: Maximum number of producers allowed, or -1 if unlimited\n\n"+ - "5. max-consumers: Gets maximum number of consumers allowed on this topic\n"+ - " - Required: topic, policy\n"+ - " - Returns: Maximum number of consumers allowed, or -1 if unlimited\n\n"+ - "6. max-unack-messages-per-consumer: Gets maximum number of unacknowledged messages allowed per consumer\n"+ - " - Required: topic, policy\n"+ - " - Returns: Maximum number of unacked messages per consumer, or -1 if unlimited\n\n"+ - "7. max-unack-messages-per-subscription: Gets maximum number of unacknowledged messages allowed per subscription\n"+ - " - Required: topic, policy\n"+ - " - Returns: Maximum number of unacked messages per subscription, or -1 if unlimited\n\n"+ - "8. persistence: Gets persistence policy defining how messages are persisted on this topic\n"+ - " - Required: topic, policy\n"+ - " - Returns: ensemble size, write quorum size, ack quorum size, and optional mark-delete rate\n\n"+ - "9. delayed-delivery: Gets delayed delivery policy for the topic\n"+ - " - Required: topic, policy\n"+ - " - Returns: tickTime (delay precision in ms) and active status\n\n"+ - "10. dispatch-rate: Gets the message dispatch rate limiting policy\n"+ - " - Required: topic, policy\n"+ - " - Returns: dispatchThrottlingRateInMsg (maximum message rate), dispatchThrottlingRateInByte (maximum byte rate), ratePeriodInSecond\n\n"+ - "11. deduplication-status: Gets whether producer-side message deduplication is enabled\n"+ - " - Required: topic, policy\n"+ - " - Returns: enabled/disabled status\n\n"+ - "12. retention: Gets message retention policy defining how long messages are retained\n"+ - " - Required: topic, policy\n"+ - " - Returns: retention size limit and retention time limit\n\n"+ - "13. backlog-quota: Gets backlog quota policies for this topic\n"+ - " - Required: topic, policy\n"+ - " - Returns: size limits, time limits, and enforcement policy\n\n"+ - "14. compaction-threshold: Gets the threshold in bytes for when compaction is triggered\n"+ - " - Required: topic, policy\n"+ - " - Returns: threshold size in bytes, or 0 if disabled\n\n"+ - "15. inactive-topic: Gets inactive topic policy for automatic topic cleanup\n"+ - " - Required: topic, policy\n"+ - " - Returns: inactivity duration, deletion mode (delete_when_no_subscriptions/delete_when_subscriptions_caught_up)\n\n"+ - "This tool requires appropriate topic admin or read permissions. The response format is JSON."), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The topic name to get policy for (persistent://tenant/namespace/topic)"), - ), - mcp.WithString("policy", mcp.Required(), - mcp.Description("Type of policy to get. Available options: "+ - "publish-rate, permissions, message-ttl, max-producers, max-consumers, "+ - "max-unack-messages-per-consumer, max-unack-messages-per-subscription, persistence, "+ - "delayed-delivery, dispatch-rate, deduplication-status, retention, backlog-quota, "+ - "compaction-threshold, inactive-topic"), - ), - ) - s.AddTool(topicGetPolicyTool, handleTopicGetPolicy) - - // Only add write operations if not in read-only mode - if !readOnly { - // Add unified topic set policy tool - topicSetPolicyTool := mcp.NewTool("pulsar_admin_topic_policy_set", - mcp.WithDescription("Set a policy for a topic. "+ - "This is a unified tool for setting different types of policies on a topic. "+ - "The policy type determines which specific policy will be set, and the required parameters "+ - "vary based on the policy type. "+ - "Requires appropriate admin permissions based on the policy being modified.\n\n"+ - "Available policy types and their required parameters:\n"+ - "1. publish-rate: Sets maximum rate at which producers can publish messages\n"+ - " - Required: topic, policy\n"+ - " - Optional: publishThrottlingRateInMsg (messages per second, -1 for unlimited), "+ - "publishThrottlingRateInByte (bytes per second, -1 for unlimited)\n\n"+ - "2. permissions: Grants permissions to a role\n"+ - " - Required: topic, policy, role, actions (array of permissions: produce, consume)\n"+ - " - Example: actions=[\"produce\", \"consume\"] to allow both producing and consuming\n\n"+ - "3. message-ttl: Sets time to live for messages\n"+ - " - Required: topic, policy, ttl (in seconds, 0 to disable)\n"+ - " - After TTL expires, unacknowledged messages are deleted\n\n"+ - "4. max-producers: Sets maximum number of producers allowed\n"+ - " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ - " - New producers will be rejected once limit is reached\n\n"+ - "5. max-consumers: Sets maximum number of consumers allowed\n"+ - " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ - " - New consumers will be rejected once limit is reached\n\n"+ - "6. max-unack-messages-per-consumer: Sets maximum unacked messages per consumer\n"+ - " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ - " - Consumer will be blocked from receiving more messages until acknowledgment\n\n"+ - "7. max-unack-messages-per-subscription: Sets maximum unacked messages per subscription\n"+ - " - Required: topic, policy, max (integer > 0, or -1 for unlimited)\n"+ - " - All consumers on the subscription will be blocked from receiving more messages until acknowledgment\n\n"+ - "8. persistence: Sets persistence configuration\n"+ - " - Required: topic, policy, ensemble-size, write-quorum-size, ack-quorum-size\n"+ - " - Optional: ml-mark-delete-max-rate\n"+ - " - Ensemble size must be >= write quorum size >= ack quorum size\n\n"+ - "9. delayed-delivery: Configures delayed message delivery\n"+ - " - Required: topic, policy\n"+ - " - Optional: tickTime (precision in ms), delay-enabled (true/false)\n\n"+ - "10. dispatch-rate: Sets message dispatch rate\n"+ - " - Required: topic, policy\n"+ - " - Optional: dispatchThrottlingRateInMsg (messages per second), dispatchThrottlingRateInByte (bytes per second), ratePeriodInSecond\n\n"+ - "11. deduplication-status: Sets message deduplication status\n"+ - " - Required: topic, policy\n"+ - " - Optional: enable (true/false)\n\n"+ - "12. retention: Sets retention policy for messages\n"+ - " - Required: topic, policy\n"+ - " - Optional: time (retention time in minutes, 0=no retention, -1=infinite), "+ - "size (e.g., 10M, 16G, 3T, 0=no retention, -1=infinite)\n\n"+ - "13. backlog-quota: Sets backlog quota policy\n"+ - " - Required: topic, policy, limit-size (e.g., 10M, 16G), policy (producer_request_hold, producer_exception, consumer_backlog_eviction)\n"+ - " - Optional: limit-time (seconds, -1=infinite), type (destination_storage, message_age)\n\n"+ - "14. compaction-threshold: Sets threshold for topic compaction\n"+ - " - Required: topic, policy, threshold (e.g., 10M, 16G, 3T, 0 to disable)\n"+ - " - Compaction runs when the topic reaches this size\n\n"+ - "15. inactive-topic: Sets inactive topic policy\n"+ - " - Required: topic, policy\n"+ - " - Optional: inactive-time-seconds, deletion-mode (delete_when_no_subscriptions/delete_when_subscriptions_caught_up)\n"+ - " - Controls automatic cleanup of unused topics\n\n"+ - "This tool requires appropriate topic admin permissions. The response will confirm successful application of the policy."), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The topic name to set policy for (persistent://tenant/namespace/topic)"), - ), - mcp.WithString("policy", mcp.Required(), - mcp.Description("Type of policy to set. Available options: "+ - "publish-rate, permissions, message-ttl, max-producers, max-consumers, "+ - "max-unack-messages-per-consumer, max-unack-messages-per-subscription, persistence, "+ - "delayed-delivery, dispatch-rate, deduplication-status, retention, backlog-quota, "+ - "compaction-threshold, inactive-topic"), - ), - // Generic policy parameters - specific ones will be used based on the policy type - mcp.WithString("role", - mcp.Description("Role name for permission policies (e.g., 'admin', 'client', 'producer', 'consumer')"), - ), - mcp.WithArray("actions", - mcp.Description("Actions to grant for permission policies. Valid values are: produce, consume"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "action", - }, - ), - ), - mcp.WithString("ttl", - mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), - ), - mcp.WithString("max", - mcp.Description("Maximum value for producer/consumer/unacked message limit policies. Use -1 for unlimited."), - ), - mcp.WithString("time", - mcp.Description("Retention time in minutes, or special values: 0 (no retention) or -1 (infinite retention)"), - ), - mcp.WithString("size", - mcp.Description("Retention size limit (e.g., 10M, 16G, 3T), or special values: 0 (no retention) or -1 (infinite size retention)"), - ), - mcp.WithString("limit-size", - mcp.Description("Size limit for backlog quota (e.g., 10M, 16G)"), - ), - mcp.WithString("limit-time", - mcp.Description("Time limit in seconds for backlog quota. Default is -1 (infinite)"), - ), - mcp.WithString("policy", - mcp.Description("Retention policy for backlog quota (valid options: producer_request_hold, producer_exception, consumer_backlog_eviction)"), - ), - mcp.WithString("type", - mcp.Description("Type parameter whose meaning depends on the policy type being set (e.g., backlog quota type)"), - ), - mcp.WithString("ensemble-size", - mcp.Description("Number of bookies to use for a topic in persistence policy"), - ), - mcp.WithString("write-quorum-size", - mcp.Description("How many writes to make of each entry in persistence policy"), - ), - mcp.WithString("ack-quorum-size", - mcp.Description("Number of acks to wait for each entry in persistence policy"), - ), - mcp.WithString("ml-mark-delete-max-rate", - mcp.Description("Throttling rate of mark-delete operation in persistence policy"), - ), - mcp.WithString("dispatchThrottlingRateInMsg", - mcp.Description("Message dispatch/throttling rate in messages per second"), - ), - mcp.WithString("dispatchThrottlingRateInByte", - mcp.Description("Message dispatch/throttling rate in bytes per second"), - ), - mcp.WithString("ratePeriodInSecond", - mcp.Description("Rate period in seconds for rate limiting policies"), - ), - mcp.WithString("publishThrottlingRateInMsg", - mcp.Description("Message publish rate in messages per second"), - ), - mcp.WithString("publishThrottlingRateInByte", - mcp.Description("Message publish rate in bytes per second"), - ), - mcp.WithString("tickTime", - mcp.Description("Tick time for delayed message delivery precision in milliseconds"), - ), - mcp.WithString("delay-enabled", - mcp.Description("Whether delayed delivery is enabled (true/false)"), - ), - mcp.WithString("enable", - mcp.Description("Enable flag for various policies (true/false)"), - ), - mcp.WithString("threshold", - mcp.Description("Threshold value for compaction in bytes (e.g., 10M, 16G, 3T, 0 to disable)"), - ), - mcp.WithString("inactive-time-seconds", - mcp.Description("Time in seconds after which an inactive topic will be cleaned up"), - ), - mcp.WithString("deletion-mode", - mcp.Description("Mode for inactive topic deletion (delete_when_no_subscriptions or delete_when_subscriptions_caught_up)"), - ), - ) - s.AddTool(topicSetPolicyTool, handleTopicSetPolicy) - - // Add unified topic remove policy tool - topicRemovePolicyTool := mcp.NewTool("pulsar_admin_topic_policy_remove", - mcp.WithDescription("Remove a policy from a topic. "+ - "This is a unified tool for removing different types of policies from a topic. "+ - "The policy type determines which specific policy will be removed. "+ - "Requires appropriate admin permissions based on the policy being removed.\n\n"+ - "Available policy types to remove and their required parameters:\n"+ - "1. publish-rate: Removes the publish rate limiting policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level publish rate limits if configured\n\n"+ - "2. permissions: Revokes all permissions from a role\n"+ - " - Required: topic, policy, role\n"+ - " - The specified role will no longer have any access to the topic\n\n"+ - "3. message-ttl: Removes the message TTL policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level TTL policy if configured\n\n"+ - "4. max-producers: Removes the maximum producers limit\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level limit if configured\n\n"+ - "5. max-consumers: Removes the maximum consumers limit\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level limit if configured\n\n"+ - "6. max-unack-messages-per-consumer: Removes the unacked messages per consumer limit\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level limit if configured\n\n"+ - "7. max-unack-messages-per-subscription: Removes the unacked messages per subscription limit\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level limit if configured\n\n"+ - "8. persistence: Removes custom persistence policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level persistence policy\n\n"+ - "9. delayed-delivery: Removes delayed delivery policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level delayed delivery policy if configured\n\n"+ - "10. dispatch-rate: Removes the dispatch rate limiting policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level dispatch rate limits if configured\n\n"+ - "11. deduplication-status: Removes the deduplication status policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level deduplication policy if configured\n\n"+ - "12. retention: Removes the retention policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level retention policy if configured\n\n"+ - "13. backlog-quota: Removes the backlog quota policy\n"+ - " - Required: topic, policy\n"+ - " - Optional: type (destination_storage, message_age)\n"+ - " - Topic will inherit namespace-level backlog quota policy if configured\n\n"+ - "14. compaction-threshold: Removes the compaction threshold policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level compaction threshold if configured\n\n"+ - "15. inactive-topic: Removes the inactive topic policy\n"+ - " - Required: topic, policy\n"+ - " - Topic will inherit namespace-level inactive topic policy if configured\n\n"+ - "After removing a topic-level policy, the topic will inherit the corresponding namespace-level policy (if any). "+ - "This tool requires appropriate topic admin permissions. The response will confirm successful removal of the policy."), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The topic name to remove the policy from (persistent://tenant/namespace/topic)"), - ), - mcp.WithString("policy", mcp.Required(), - mcp.Description("Type of policy to remove. Available options: "+ - "publish-rate, permissions, message-ttl, max-producers, max-consumers, "+ - "max-unack-messages-per-consumer, max-unack-messages-per-subscription, persistence, "+ - "delayed-delivery, dispatch-rate, deduplication-status, retention, backlog-quota, "+ - "compaction-threshold, inactive-topic"), - ), - mcp.WithString("role", - mcp.Description("Role name for revoking permissions"), - ), - mcp.WithString("type", - mcp.Description("Type of backlog quota to remove (destination_storage or message_age)"), - ), - ) - s.AddTool(topicRemovePolicyTool, handleTopicRemovePolicy) - } -} - -// handleTopicsGetPublishRate gets the publish rate for a topic -func handleTopicsGetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get publish rate - publishRate, err := admin.Topics().GetPublishRate(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic publish rate: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(publishRate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic publish rate: %v", err)), nil - } - - // Check if publish rate is disabled/unlimited - if publishRate.PublishThrottlingRateInMsg < 0 && publishRate.PublishThrottlingRateInByte < 0 { - return mcp.NewToolResultText(fmt.Sprintf("Publish rate is unlimited for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicsSetPublishRate sets the publish rate for a topic -func handleTopicsSetPublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Default values for publish rate - publishRateInMsg := int64(-1) // unlimited - publishRateInByte := int64(-1) // unlimited - - // Get publish rate in messages if provided - msgRateParam := request.GetFloat("publishThrottlingRateInMsg", -1) - if msgRateParam != -1 { - publishRateInMsg = int64(msgRateParam) - } - - // Get publish rate in bytes if provided - byteRateParam := request.GetFloat("publishThrottlingRateInByte", -1) - if byteRateParam != -1 { - publishRateInByte = int64(byteRateParam) - } - - // Create publish rate policy - publishRate := utils.PublishRateData{ - PublishThrottlingRateInMsg: publishRateInMsg, - PublishThrottlingRateInByte: publishRateInByte, - } - - // Set publish rate - err = admin.Topics().SetPublishRate(*topicName, publishRate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic publish rate: %v", err)), nil - } - - // Format the response message - if publishRateInMsg < 0 && publishRateInByte < 0 { - return mcp.NewToolResultText(fmt.Sprintf("Publish rate set to unlimited for topic %s", topicName.String())), nil - } - - var msgText string - if publishRateInMsg < 0 { - msgText = "unlimited messages" - } else { - msgText = fmt.Sprintf("%d messages", publishRateInMsg) - } - - var byteText string - if publishRateInByte < 0 { - byteText = "unlimited bytes" - } else { - byteText = fmt.Sprintf("%d bytes", publishRateInByte) - } - - return mcp.NewToolResultText(fmt.Sprintf("Publish rate set for topic %s: %s and %s per second", - topicName.String(), msgText, byteText)), nil -} - -// handleTopicsRemovePublishRate removes the publish rate for a topic -func handleTopicsRemovePublishRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove publish rate - err = admin.Topics().RemovePublishRate(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic publish rate: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Publish rate removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetPermissions gets the permissions on a topic -func handleTopicsGetPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get permissions - permissions, err := admin.Topics().GetPermissions(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic permissions: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(permissions) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic permissions: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicsGrantPermissions grants a new permission to a role on a topic -func handleTopicsGrantPermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - role, err := request.RequireString("role") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil - } - - actions, err := request.RequireStringSlice("actions") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - var validActions []string - for _, action := range actions { - actionStr := strings.ToLower(action) - switch actionStr { - case "produce", "consume": - validActions = append(validActions, actionStr) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid action: %s (must be 'produce' or 'consume')", actionStr)), nil - } - } - - if len(validActions) == 0 { - return mcp.NewToolResultError("No valid actions specified"), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Grant permissions - err = grantTopicPermission(admin, *topicName, role, validActions) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to grant permissions: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully granted %s permissions on topic %s to role %s", - strings.Join(validActions, ", "), topicName.String(), role)), nil -} - -// handleTopicsRevokePermissions revokes all permissions for a role on a topic -func handleTopicsRevokePermissions(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - role, err := request.RequireString("role") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Revoke permissions - err = admin.Topics().RevokePermission(*topicName, role) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke permissions: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully revoked all permissions on topic %s from role %s", - topicName.String(), role)), nil -} - -func grantTopicPermission(admin interface{}, topicName utils.TopicName, role string, actions []string) error { - authActions := make([]utils.AuthAction, len(actions)) - for i, action := range actions { - authActions[i] = utils.AuthAction(action) - } - - type TopicsProvider interface { - Topics() interface { - GrantPermission(utils.TopicName, string, []utils.AuthAction) error - } - } - - if provider, ok := admin.(TopicsProvider); ok { - return provider.Topics().GrantPermission(topicName, role, authActions) - } - - return fmt.Errorf("admin client does not implement the required interface") -} - -// handleTopicsGetMessageTTL gets the message TTL for a topic -func handleTopicsGetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get message TTL - ttl, err := admin.Topics().GetMessageTTL(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic message TTL: %v", err)), nil - } - - // Format the result - if ttl == 0 { - return mcp.NewToolResultText("Message TTL is not set for topic " + topicName.String()), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Message TTL for topic %s is %d seconds", topicName.String(), ttl)), nil -} - -// handleTopicsSetMessageTTL sets the message TTL for a topic -func handleTopicsSetMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - ttl, err := request.RequireFloat("ttl") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil - } - - // Validate TTL - if ttl < 0 { - return mcp.NewToolResultError("TTL must be a non-negative value"), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set message TTL - err = admin.Topics().SetMessageTTL(*topicName, int(ttl)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic message TTL: %v", err)), nil - } - - // Format the result based on whether TTL was enabled or disabled - if ttl == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Message TTL disabled for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Message TTL for topic %s set to %d seconds", topicName.String(), int(ttl)), - ), nil -} - -// handleTopicsRemoveMessageTTL removes the message TTL for a topic -func handleTopicsRemoveMessageTTL(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove message TTL - err = admin.Topics().RemoveMessageTTL(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic message TTL: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Message TTL removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetMaxProducers gets the maximum number of producers allowed for a topic -func handleTopicsGetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get max producers - maxProducers, err := admin.Topics().GetMaxProducers(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max producers: %v", err)), nil - } - - // Format the result - if maxProducers == 0 { - return mcp.NewToolResultText("Maximum number of producers is unlimited for topic " + topicName.String()), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum number of producers allowed for topic %s is %d", - topicName.String(), maxProducers)), nil -} - -// handleTopicsSetMaxProducers sets the maximum number of producers allowed for a topic -func handleTopicsSetMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - maxProducers, err := request.RequireFloat("maxProducers") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxProducers: %v", err)), nil - } - - // Validate maxProducers - if maxProducers < 0 { - return mcp.NewToolResultError("Maximum number of producers must be a non-negative value"), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set max producers - err = admin.Topics().SetMaxProducers(*topicName, int(maxProducers)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max producers: %v", err)), nil - } - - // Format the result based on whether the limit was set or removed - if maxProducers == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Maximum number of producers set to unlimited for topic %s", - topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum number of producers allowed for topic %s set to %d", - topicName.String(), int(maxProducers))), nil -} - -// handleTopicsRemoveMaxProducers removes the maximum producers limit for a topic -func handleTopicsRemoveMaxProducers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove max producers limit - err = admin.Topics().RemoveMaxProducers(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic max producers limit: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum producers limit removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetMaxConsumers gets the maximum number of consumers allowed for a topic -func handleTopicsGetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get max consumers - maxConsumers, err := admin.Topics().GetMaxConsumers(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max consumers: %v", err)), nil - } - - // Format the result - if maxConsumers == 0 { - return mcp.NewToolResultText("Maximum number of consumers is unlimited for topic " + topicName.String()), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum number of consumers allowed for topic %s is %d", - topicName.String(), maxConsumers)), nil -} - -// handleTopicsSetMaxConsumers sets the maximum number of consumers allowed for a topic -func handleTopicsSetMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - maxConsumers, err := request.RequireFloat("maxConsumers") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxConsumers: %v", err)), nil - } - - // Validate maxConsumers - if maxConsumers < 0 { - return mcp.NewToolResultError("Maximum number of consumers must be a non-negative value"), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set max consumers - err = admin.Topics().SetMaxConsumers(*topicName, int(maxConsumers)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max consumers: %v", err)), nil - } - - // Format the result based on whether the limit was set or removed - if maxConsumers == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Maximum number of consumers set to unlimited for topic %s", - topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum number of consumers allowed for topic %s set to %d", - topicName.String(), int(maxConsumers))), nil -} - -// handleTopicsRemoveMaxConsumers removes the maximum consumers limit for a topic -func handleTopicsRemoveMaxConsumers(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove max consumers limit - err = admin.Topics().RemoveMaxConsumers(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic max consumers limit: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum consumers limit removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetMaxUnackMessagesPerConsumer -// gets the maximum number of unacknowledged messages allowed for a consumer on a topic -func handleTopicsGetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get max unack messages per consumer - maxUnack, err := admin.Topics().GetMaxUnackMessagesPerConsumer(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max unack messages per consumer: %v", err)), nil - } - - // Format the result - if maxUnack == 0 { - return mcp.NewToolResultText( - "Maximum unacknowledged messages per consumer is unlimited for topic " + topicName.String(), - ), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum unacknowledged messages per consumer for topic %s is %d", - topicName.String(), maxUnack)), nil -} - -// handleTopicsSetMaxUnackMessagesPerConsumer -// sets the maximum number of unacknowledged messages allowed for a consumer on a topic -func handleTopicsSetMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - maxUnack, err := request.RequireFloat("maxUnackMessagesPerConsumer") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerConsumer: %v", err)), nil - } - - // Validate maxUnack - if maxUnack < 0 { - return mcp.NewToolResultError("Maximum unacknowledged messages per consumer must be a non-negative value"), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set max unack messages per consumer - err = admin.Topics().SetMaxUnackMessagesPerConsumer(*topicName, int(maxUnack)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max unack messages per consumer: %v", err)), nil - } - - // Format the result based on whether the limit was set or unlimited - if maxUnack == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Maximum unacknowledged messages per consumer set to unlimited for topic %s", - topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Maximum unacknowledged messages per consumer for topic %s set to %d", - topicName.String(), int(maxUnack))), nil -} - -// handleTopicsRemoveMaxUnackMessagesPerConsumer -// removes the maximum unacknowledged messages per consumer limit for a topic -func handleTopicsRemoveMaxUnackMessagesPerConsumer(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove max unack messages per consumer limit - err = admin.Topics().RemoveMaxUnackMessagesPerConsumer(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf( - "Failed to remove topic max unacknowledged messages per consumer limit: %v", err), - ), nil - } - - return mcp.NewToolResultText(fmt.Sprintf( - "Maximum unacknowledged messages per consumer limit removed for topic %s", - topicName.String(), - )), nil -} - -// handleTopicsGetMaxUnackMessagesPerSubscription -// gets the maximum number of unacknowledged messages allowed for a subscription on a topic -func handleTopicsGetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get max unack messages per subscription - maxUnack, err := admin.Topics().GetMaxUnackMessagesPerSubscription(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic max unack messages per subscription: %v", err)), nil - } - - // Format the result - if maxUnack == 0 { - return mcp.NewToolResultText( - "Maximum unacknowledged messages per subscription is unlimited for topic " + topicName.String(), - ), nil - } - - return mcp.NewToolResultText(fmt.Sprintf( - "Maximum unacknowledged messages per subscription for topic %s is %d", - topicName.String(), maxUnack, - )), nil -} - -// handleTopicsSetMaxUnackMessagesPerSubscription -// sets the maximum number of unacknowledged messages allowed for a subscription on a topic -func handleTopicsSetMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - maxUnack, err := request.RequireFloat("maxUnackMessagesPerSubscription") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxUnackMessagesPerSubscription: %v", err)), nil - } - - // Validate maxUnack - if maxUnack < 0 { - return mcp.NewToolResultError("Maximum unacknowledged messages per subscription must be a non-negative value"), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set max unack messages per subscription - err = admin.Topics().SetMaxUnackMessagesPerSubscription(*topicName, int(maxUnack)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic max unack messages per subscription: %v", err)), nil - } - - // Format the result based on whether the limit was set or unlimited - if maxUnack == 0 { - return mcp.NewToolResultText(fmt.Sprintf( - "Maximum unacknowledged messages per subscription set to unlimited for topic %s", - topicName.String(), - )), nil - } - - return mcp.NewToolResultText(fmt.Sprintf( - "Maximum unacknowledged messages per subscription for topic %s set to %d", - topicName.String(), int(maxUnack), - )), nil -} - -// handleTopicsRemoveMaxUnackMessagesPerSubscription -// removes the maximum unacknowledged messages per subscription limit for a topic -func handleTopicsRemoveMaxUnackMessagesPerSubscription(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove max unack messages per subscription limit - err = admin.Topics().RemoveMaxUnackMessagesPerSubscription(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf( - "Failed to remove topic max unacknowledged messages per subscription limit: %v", err), - ), nil - } - - return mcp.NewToolResultText(fmt.Sprintf( - "Maximum unacknowledged messages per subscription limit removed for topic %s", - topicName.String(), - )), nil -} - -// handleTopicsGetPersistence gets the persistence policy for a topic -func handleTopicsGetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get persistence policy - persistence, err := admin.Topics().GetPersistence(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic persistence policy: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(persistence) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic persistence policy: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicsSetPersistence sets the persistence policy for a topic -func handleTopicsSetPersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - ensembleSize, err := request.RequireFloat("ensembleSize") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get ensembleSize: %v", err)), nil - } - - writeQuorum, err := request.RequireFloat("writeQuorum") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get writeQuorum: %v", err)), nil - } - - ackQuorum, err := request.RequireFloat("ackQuorum") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get ackQuorum: %v", err)), nil - } - - // Validate values - if ensembleSize <= 0 || writeQuorum <= 0 || ackQuorum <= 0 { - return mcp.NewToolResultError("All persistence values must be positive"), nil - } - - // Validate quorum relationships - if writeQuorum > ensembleSize { - return mcp.NewToolResultError("Write quorum cannot be greater than ensemble size"), nil - } - - if ackQuorum > writeQuorum { - return mcp.NewToolResultError("Ack quorum cannot be greater than write quorum"), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Create persistence policy as PersistenceData (required by SetPersistence) - persistence := utils.PersistenceData{ - BookkeeperEnsemble: int64(ensembleSize), - BookkeeperWriteQuorum: int64(writeQuorum), - BookkeeperAckQuorum: int64(ackQuorum), - ManagedLedgerMaxMarkDeleteRate: 0.0, - } - - // Set persistence policy - err = admin.Topics().SetPersistence(*topicName, persistence) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic persistence policy: %v", err)), nil - } - - return mcp.NewToolResultText( - fmt.Sprintf("Set persistence policy for topic %s with ensemble size: %d, write quorum: %d, ack quorum: %d", - topicName.String(), int(ensembleSize), int(writeQuorum), int(ackQuorum))), nil -} - -// handleTopicsRemovePersistence removes the persistence policy for a topic -func handleTopicsRemovePersistence(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove persistence policy - err = admin.Topics().RemovePersistence(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic persistence policy: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Persistence policy removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetDelayedDelivery gets the delayed delivery policy for a topic -func handleTopicsGetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get delayed delivery policy - delayedDelivery, err := admin.Topics().GetDelayedDelivery(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic delayed delivery policy: %v", err)), nil - } - - // Format the output - if delayedDelivery.Active { - return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery is enabled for topic %s with tick time of %d ms", - topicName.String(), int(delayedDelivery.TickTime))), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery is disabled for topic %s", topicName.String())), nil -} - -// handleTopicsSetDelayedDelivery sets the delayed delivery policy for a topic -func handleTopicsSetDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - delayInMillis, err := request.RequireFloat("delayInMillis") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get delayInMillis: %v", err)), nil - } - - // Validate delay - if delayInMillis < 0 { - return mcp.NewToolResultError("Delay time must be a non-negative value"), nil - } - - // Default tick time is 1 second (1000ms) - tickTime := 1000.0 - tickTimeParam := request.GetFloat("tickTime", 0) - if tickTimeParam > 0 { - tickTime = tickTimeParam - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Create delayed delivery policy - delayedDelivery := utils.DelayedDeliveryData{ - TickTime: tickTime, - Active: delayInMillis > 0, - } - - // Set delayed delivery policy - err = admin.Topics().SetDelayedDelivery(*topicName, delayedDelivery) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic delayed delivery policy: %v", err)), nil - } - - // Format the result based on whether delayed delivery was enabled or disabled - if delayInMillis == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery disabled for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery enabled for topic %s with tick time of %d ms", - topicName.String(), int(tickTime))), nil -} - -// handleTopicsRemoveDelayedDelivery removes the delayed delivery policy for a topic -func handleTopicsRemoveDelayedDelivery(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove delayed delivery policy - err = admin.Topics().RemoveDelayedDelivery(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic delayed delivery policy: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Delayed delivery policy removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetDispatchRate gets the message dispatch rate for a topic -func handleTopicsGetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get dispatch rate - dispatchRate, err := admin.Topics().GetDispatchRate(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic dispatch rate: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(dispatchRate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic dispatch rate: %v", err)), nil - } - - // Check if dispatch rate is disabled/unlimited - if dispatchRate.DispatchThrottlingRateInMsg < 0 && dispatchRate.DispatchThrottlingRateInByte < 0 { - return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate is unlimited for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicsSetDispatchRate sets the message dispatch rate for a topic -func handleTopicsSetDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Default values for dispatch rate - dispatchRateInMsg := int64(-1) // unlimited - dispatchRateInByte := int64(-1) // unlimited - ratePeriodInSecond := int64(1) // default 1 second - - // Get dispatch rate in messages if provided - msgRateParam := request.GetFloat("dispatchThrottlingRateInMsg", -1) - if msgRateParam != -1 { - dispatchRateInMsg = int64(msgRateParam) - } - - // Get dispatch rate in bytes if provided - byteRateParam := request.GetFloat("dispatchThrottlingRateInByte", -1) - if byteRateParam != -1 { - dispatchRateInByte = int64(byteRateParam) - } - - // Get rate period if provided - ratePeriodParam := request.GetFloat("ratePeriodInSecond", 0) - if ratePeriodParam > 0 { - ratePeriodInSecond = int64(ratePeriodParam) - } else if ratePeriodParam <= 0 { - return mcp.NewToolResultError("Rate period must be positive"), nil - } - - // Create dispatch rate policy - dispatchRate := utils.DispatchRateData{ - DispatchThrottlingRateInMsg: dispatchRateInMsg, - DispatchThrottlingRateInByte: dispatchRateInByte, - RatePeriodInSecond: ratePeriodInSecond, - RelativeToPublishRate: false, - } - - // Set dispatch rate - err = admin.Topics().SetDispatchRate(*topicName, dispatchRate) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic dispatch rate: %v", err)), nil - } - - // Format the response message - if dispatchRateInMsg < 0 && dispatchRateInByte < 0 { - return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate set to unlimited for topic %s", topicName.String())), nil - } - - var msgText string - if dispatchRateInMsg < 0 { - msgText = "unlimited messages" - } else { - msgText = fmt.Sprintf("%d messages", dispatchRateInMsg) - } - - var byteText string - if dispatchRateInByte < 0 { - byteText = "unlimited bytes" - } else { - byteText = fmt.Sprintf("%d bytes", dispatchRateInByte) - } - - return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate set for topic %s: %s and %s per %d second(s)", - topicName.String(), msgText, byteText, ratePeriodInSecond)), nil -} - -// handleTopicsRemoveDispatchRate removes the message dispatch rate for a topic -func handleTopicsRemoveDispatchRate(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove dispatch rate - err = admin.Topics().RemoveDispatchRate(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic dispatch rate: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Dispatch rate removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetDeduplicationStatus gets the deduplication status for a topic -func handleTopicsGetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get deduplication status - enabled, err := admin.Topics().GetDeduplicationStatus(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic deduplication status: %v", err)), nil - } - - // Format the result - if enabled { - return mcp.NewToolResultText(fmt.Sprintf("Deduplication is enabled for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Deduplication is disabled for topic %s", topicName.String())), nil -} - -// handleTopicsSetDeduplicationStatus sets the deduplication status for a topic -func handleTopicsSetDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - enabled, err := request.RequireBool("enabled") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get enabled parameter: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set deduplication status - err = admin.Topics().SetDeduplicationStatus(*topicName, enabled) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic deduplication status: %v", err)), nil - } - - // Format the result - if enabled { - return mcp.NewToolResultText(fmt.Sprintf("Deduplication enabled for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Deduplication disabled for topic %s", topicName.String())), nil -} - -// handleTopicsRemoveDeduplicationStatus removes the deduplication status for a topic -func handleTopicsRemoveDeduplicationStatus(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove deduplication status - err = admin.Topics().RemoveDeduplicationStatus(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic deduplication status: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Deduplication status removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetRetention gets the retention policy for a topic -func handleTopicsGetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Check if applied policies should be included - applied := false - appliedParam := request.GetBool("applied", false) - if appliedParam { - applied = appliedParam - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get retention policy - retention, err := admin.Topics().GetRetention(*topicName, applied) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic retention policy: %v", err)), nil + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminTopicPolicyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // If no retention policy is defined - if retention == nil { - if applied { - return mcp.NewToolResultText(fmt.Sprintf("No retention policy found for topic %s (including namespace level)", - topicName.String())), nil - } - return mcp.NewToolResultText(fmt.Sprintf("No retention policy found for topic %s", topicName.String())), nil - } - - // Format the output - var retentionTime string - if retention.RetentionTimeInMinutes <= 0 { - retentionTime = "infinite time" - } else { - retentionTime = fmt.Sprintf("%d minutes", retention.RetentionTimeInMinutes) - } - - var retentionSize string - if retention.RetentionSizeInMB <= 0 { - retentionSize = "infinite size" - } else { - retentionSize = fmt.Sprintf("%d MB", retention.RetentionSizeInMB) - } - - var source string - if applied { - source = " (may include namespace level policy)" - } - - return mcp.NewToolResultText(fmt.Sprintf("Retention policy for topic %s%s: %s and %s", - topicName.String(), source, retentionTime, retentionSize)), nil -} - -// handleTopicsSetRetention sets the retention policy for a topic -func handleTopicsSetRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - retentionTimeInMinutes, err := request.RequireFloat("retentionTimeInMinutes") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionTimeInMinutes: %v", err)), nil - } - - retentionSizeInMB, err := request.RequireFloat("retentionSizeInMB") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get retentionSizeInMB: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Create retention policy - retention := utils.RetentionPolicies{ - RetentionTimeInMinutes: int(retentionTimeInMinutes), - RetentionSizeInMB: int64(retentionSizeInMB), - } - - // Set retention policy - err = admin.Topics().SetRetention(*topicName, retention) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic retention policy: %v", err)), nil - } - - // Format the result - var timeText, sizeText string - - //nolint:gocritic - if retention.RetentionTimeInMinutes < 0 { - timeText = "disabled time retention" - } else if retention.RetentionTimeInMinutes == 0 { - timeText = "infinite time retention" - } else { - timeText = fmt.Sprintf("%d minutes time retention", retention.RetentionTimeInMinutes) - } - - //nolint:gocritic - if retention.RetentionSizeInMB < 0 { - sizeText = "disabled size retention" - } else if retention.RetentionSizeInMB == 0 { - sizeText = "infinite size retention" - } else { - sizeText = fmt.Sprintf("%d MB size retention", retention.RetentionSizeInMB) - } - - return mcp.NewToolResultText(fmt.Sprintf("Set retention policy for topic %s with %s and %s", - topicName.String(), timeText, sizeText)), nil -} - -// handleTopicsRemoveRetention removes the retention policy for a topic -func handleTopicsRemoveRetention(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove retention policy - err = admin.Topics().RemoveRetention(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic retention policy: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Retention policy removed for topic %s", topicName.String())), nil -} - -// handleTopicsGetBacklogQuota gets the backlog quota policy for a topic -func handleTopicsGetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Check if applied policies should be included - applied := false - appliedParam := request.GetBool("applied", false) - if appliedParam { - applied = appliedParam - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get backlog quota - backlogQuotaMap, err := admin.Topics().GetBacklogQuotaMap(*topicName, applied) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic backlog quota: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(backlogQuotaMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic backlog quota: %v", err)), nil - } - - if len(backlogQuotaMap) == 0 { - return mcp.NewToolResultText(fmt.Sprintf("No backlog quota policy found for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicsSetBacklogQuota sets the backlog quota policy for a topic -func handleTopicsSetBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - limitSize, err := request.RequireFloat("limitSize") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get limitSize: %v", err)), nil - } - - policy, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Default values for optional parameters - limitTime := int64(-1) // unlimited by default - - // Get limit time if provided - limitTimeParam := request.GetFloat("limitTime", -1) - if limitTimeParam != -1 { - limitTime = int64(limitTimeParam) - } - - // Parse retention policy - retentionPolicy, err := utils.ParseRetentionPolicy(policy) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse policy: %v", err)), nil - } - - // Default backlog quota type is destination_storage - backlogQuotaType := utils.DestinationStorage - - // Get quota type if provided - quotaTypeStr := request.GetString("type", "") - if quotaTypeStr != "" { - parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse quota type: %v", err)), nil - } - backlogQuotaType = parsedType - } - - // Create backlog quota - backlogQuota := utils.NewBacklogQuota(int64(limitSize), limitTime, retentionPolicy) - - // Set backlog quota - err = admin.Topics().SetBacklogQuota(*topicName, backlogQuota, backlogQuotaType) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic backlog quota: %v", err)), nil - } - - // Format the result - return mcp.NewToolResultText(fmt.Sprintf("Successfully set backlog quota for topic %s", topicName.String())), nil -} - -// handleTopicsRemoveBacklogQuota removes the backlog quota policy from a topic -func handleTopicsRemoveBacklogQuota(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Default backlog quota type is destination_storage - backlogQuotaType := utils.DestinationStorage - - // Get quota type if provided - quotaTypeStr := request.GetString("type", "") - if quotaTypeStr != "" { - parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse quota type: %v", err)), nil - } - backlogQuotaType = parsedType - } - - // Remove backlog quota - err = admin.Topics().RemoveBacklogQuota(*topicName, backlogQuotaType) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic backlog quota: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully removed backlog quota from topic %s", topicName.String())), nil -} - -// handleTopicsGetCompactionThreshold gets the compaction threshold for a topic -func handleTopicsGetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Check if applied policies should be included - applied := false - appliedParam := request.GetBool("applied", false) - if appliedParam { - applied = appliedParam - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get compaction threshold - threshold, err := admin.Topics().GetCompactionThreshold(*topicName, applied) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic compaction threshold: %v", err)), nil - } - - // Format the result - if threshold == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Automatic compaction is disabled for topic %s", topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("The compaction threshold of the topic %s is %d byte(s)", - topicName.String(), threshold)), nil -} - -// handleTopicsSetCompactionThreshold sets the compaction threshold for a topic -func handleTopicsSetCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - threshold, err := request.RequireFloat("threshold") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get threshold: %v", err)), nil - } - - // Validate threshold - if threshold < 0 { - return mcp.NewToolResultError("Threshold must be a non-negative value"), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set compaction threshold - err = admin.Topics().SetCompactionThreshold(*topicName, int64(threshold)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic compaction threshold: %v", err)), nil - } - - // Format the result based on whether automatic compaction was enabled or disabled - if threshold == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Successfully disabled automatic compaction for topic %s", - topicName.String())), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully set compaction threshold to %d byte(s) for topic %s", - int64(threshold), topicName.String())), nil -} - -// handleTopicsRemoveCompactionThreshold removes the compaction threshold for a topic -func handleTopicsRemoveCompactionThreshold(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove compaction threshold - err = admin.Topics().RemoveCompactionThreshold(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic compaction threshold: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully removed compaction threshold for topic %s", - topicName.String())), nil -} - -// handleTopicsGetInactiveTopic gets the inactive topic policies for a topic -func handleTopicsGetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Check if applied policies should be included - applied := false - appliedParam := request.GetBool("applied", false) - if appliedParam { - applied = appliedParam - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Get inactive topic policies - policies, err := admin.Topics().GetInactiveTopicPolicies(*topicName, applied) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic inactive policies: %v", err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(policies) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal topic inactive policies: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicsSetInactiveTopic sets the inactive topic policies for a topic -func handleTopicsSetInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - enableDelete, err := request.RequireBool("enableDeleteWhileInactive") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get enableDeleteWhileInactive: %v", err)), nil - } - - maxInactiveDuration, err := request.RequireFloat("maxInactiveDurationSeconds") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get maxInactiveDurationSeconds: %v", err)), nil - } - - deleteModeStr, err := request.RequireString("deleteMode") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get deleteMode: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Validate maxInactiveDuration - if maxInactiveDuration <= 0 { - return mcp.NewToolResultError("Max inactive duration must be positive"), nil - } - - // Parse delete mode - deleteMode, err := utils.ParseInactiveTopicDeleteMode(deleteModeStr) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid delete mode: %v", err)), nil - } - - // Create inactive topic policies - inactiveTopicPolicies := utils.NewInactiveTopicPolicies( - &deleteMode, - int(maxInactiveDuration), - enableDelete, - ) - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Set inactive topic policies - err = admin.Topics().SetInactiveTopicPolicies(*topicName, inactiveTopicPolicies) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set topic inactive policies: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully set inactive topic policies for topic %s", - topicName.String())), nil -} - -// handleTopicsRemoveInactiveTopic removes the inactive topic policies from a topic -func handleTopicsRemoveInactiveTopic(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name: %v", err)), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Remove inactive topic policies - err = admin.Topics().RemoveInactiveTopicPolicies(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove topic inactive policies: %v", err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully removed inactive topic policies from topic %s", - topicName.String())), nil -} - -// handleTopicGetPolicy handles getting policies for a topic using the unified tool -func handleTopicGetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - _, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - policyType, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil - } - - // Route to the appropriate handler based on the policy type - switch policyType { - case "publish-rate": - return handleTopicsGetPublishRate(ctx, request) - case "permissions": - return handleTopicsGetPermissions(ctx, request) - case "message-ttl": - return handleTopicsGetMessageTTL(ctx, request) - case "max-producers": - return handleTopicsGetMaxProducers(ctx, request) - case "max-consumers": - return handleTopicsGetMaxConsumers(ctx, request) - case "max-unack-messages-per-consumer": - return handleTopicsGetMaxUnackMessagesPerConsumer(ctx, request) - case "max-unack-messages-per-subscription": - return handleTopicsGetMaxUnackMessagesPerSubscription(ctx, request) - case "persistence": - return handleTopicsGetPersistence(ctx, request) - case "delayed-delivery": - return handleTopicsGetDelayedDelivery(ctx, request) - case "dispatch-rate": - return handleTopicsGetDispatchRate(ctx, request) - case "deduplication": - return handleTopicsGetDeduplicationStatus(ctx, request) - case "retention": - return handleTopicsGetRetention(ctx, request) - case "backlog-quota": - return handleTopicsGetBacklogQuota(ctx, request) - case "compaction-threshold": - return handleTopicsGetCompactionThreshold(ctx, request) - case "inactive-topic": - return handleTopicsGetInactiveTopic(ctx, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil - } -} - -// handleTopicSetPolicy handles setting policies for a topic using the unified tool -func handleTopicSetPolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - _, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - policyType, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil - } - - // Route to the appropriate handler based on the policy type - switch policyType { - case "publish-rate": - return handleTopicsSetPublishRate(ctx, request) - case "permissions": - return handleTopicsGrantPermissions(ctx, request) - case "message-ttl": - return handleTopicsSetMessageTTL(ctx, request) - case "max-producers": - return handleTopicsSetMaxProducers(ctx, request) - case "max-consumers": - return handleTopicsSetMaxConsumers(ctx, request) - case "max-unack-messages-per-consumer": - return handleTopicsSetMaxUnackMessagesPerConsumer(ctx, request) - case "max-unack-messages-per-subscription": - return handleTopicsSetMaxUnackMessagesPerSubscription(ctx, request) - case "persistence": - return handleTopicsSetPersistence(ctx, request) - case "delayed-delivery": - return handleTopicsSetDelayedDelivery(ctx, request) - case "dispatch-rate": - return handleTopicsSetDispatchRate(ctx, request) - case "deduplication": - return handleTopicsSetDeduplicationStatus(ctx, request) - case "retention": - return handleTopicsSetRetention(ctx, request) - case "backlog-quota": - return handleTopicsSetBacklogQuota(ctx, request) - case "compaction-threshold": - return handleTopicsSetCompactionThreshold(ctx, request) - case "inactive-topic": - return handleTopicsSetInactiveTopic(ctx, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil - } -} - -// handleTopicRemovePolicy handles removing policies for a topic using the unified tool -func handleTopicRemovePolicy(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - _, err := request.RequireString("topic") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic name: %v", err)), nil - } - - policyType, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + // Log error but don't fail - this maintains backward compatibility + return } - // Route to the appropriate handler based on the policy type - switch policyType { - case "publish-rate": - return handleTopicsRemovePublishRate(ctx, request) - case "permissions": - return handleTopicsRevokePermissions(ctx, request) - case "message-ttl": - return handleTopicsRemoveMessageTTL(ctx, request) - case "max-producers": - return handleTopicsRemoveMaxProducers(ctx, request) - case "max-consumers": - return handleTopicsRemoveMaxConsumers(ctx, request) - case "max-unack-messages-per-consumer": - return handleTopicsRemoveMaxUnackMessagesPerConsumer(ctx, request) - case "max-unack-messages-per-subscription": - return handleTopicsRemoveMaxUnackMessagesPerSubscription(ctx, request) - case "persistence": - return handleTopicsRemovePersistence(ctx, request) - case "delayed-delivery": - return handleTopicsRemoveDelayedDelivery(ctx, request) - case "dispatch-rate": - return handleTopicsRemoveDispatchRate(ctx, request) - case "deduplication": - return handleTopicsRemoveDeduplicationStatus(ctx, request) - case "retention": - return handleTopicsRemoveRetention(ctx, request) - case "backlog-quota": - return handleTopicsRemoveBacklogQuota(ctx, request) - case "compaction-threshold": - return handleTopicsRemoveCompactionThreshold(ctx, request) - case "inactive-topic": - return handleTopicsRemoveInactiveTopic(ctx, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown policy type: %s", policyType)), nil + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } } diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index 9bf561b..c6b41dc 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -19,779 +19,36 @@ package mcp import ( "context" - "encoding/json" "fmt" - "slices" - "strings" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddTopicTools adds topic-related tools to the MCP server -func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarAdminTopics)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) && !slices.Contains(features, string(FeaturePulsarAdmin)) { - return - } - - // Add unified topic management tool - toolDesc := "Manage Apache Pulsar topics. " + - "Topics are the core messaging entities in Pulsar that store and transmit messages. " + - "Pulsar supports two types of topics: persistent (durable storage with guaranteed delivery) " + - "and non-persistent (in-memory with at-most-once delivery). " + - "Topics can be partitioned for parallel processing and higher throughput, where each partition " + - "functions as an independent topic with its own message log. " + - "Topics follow a hierarchical naming structure: persistent://tenant/namespace/topic. " + - "This tool supports various operations on topics including creation, deletion, lookup, compaction, " + - "offloading, and retrieving statistics. " + - "Do not use this tool for Kafka protocol operations. Use 'kafka_admin_topics' instead." + - "Most operations require namespace admin permissions." - - resourceDesc := "Resource to operate on. Available resources:\n" + - "- topic: A Pulsar topic\n" + - "- topics: Multiple topics within a namespace" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all topics in a namespace\n" + - "- get: Get metadata for a topic\n" + - "- create: Create a new topic with optional partitions\n" + - "- delete: Delete a topic\n" + - "- stats: Get stats for a topic\n" + - "- lookup: Look up the broker serving a topic\n" + - "- internal-stats: Get internal stats for a topic\n" + - "- internal-info: Get internal info for a topic\n" + - "- bundle-range: Get the bundle range of a topic\n" + - "- last-message-id: Get the last message ID of a topic\n" + - "- status: Get the status of a topic\n" + - "- unload: Unload a topic\n" + - "- terminate: Terminate a topic\n" + - "- compact: Trigger compaction on a topic\n" + - "- update: Update a topic partitions\n" + - "- offload: Offload data from a topic to long-term storage\n" + - "- offload-status: Check the status of data offloading for a topic" - - topicTool := mcp.NewTool("pulsar_admin_topic", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", - mcp.Description("The fully qualified topic name (format: [persistent|non-persistent]://tenant/namespace/topic). "+ - "Required for all operations except 'list'. "+ - "For partitioned topics, reference the base topic name without the partition suffix. "+ - "To operate on a specific partition, append -partition-N to the topic name."), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name in the format 'tenant/namespace'. "+ - "Required for the 'list' operation. "+ - "A namespace is a logical grouping of topics within a tenant."), - ), - mcp.WithNumber("partitions", - mcp.Description("The number of partitions for the topic. Required for 'create' and 'update' operations. "+ - "Set to 0 for a non-partitioned topic. "+ - "Partitioned topics provide higher throughput by dividing message traffic across multiple brokers. "+ - "Each partition is an independent unit with its own retention and cursor positions."), - ), - mcp.WithBoolean("force", - mcp.Description("Force operation even if it disrupts producers or consumers. Optional for 'delete' operation. "+ - "When true, all producers and consumers will be forcefully disconnected. "+ - "Use with caution as it can interrupt active message processing."), - ), - mcp.WithBoolean("non-partitioned", - mcp.Description("Operate on a non-partitioned topic. Optional for 'delete' operation. "+ - "When true and operating on a partitioned topic name, only deletes the non-partitioned topic "+ - "with the same name, if it exists."), - ), - mcp.WithBoolean("partitioned", - mcp.Description("Get stats for a partitioned topic. Optional for 'stats' operation. "+ - "It has to be true if the topic is partitioned. Leave it empty or false for non-partitioned topic."), - ), - mcp.WithBoolean("per-partition", - mcp.Description("Include per-partition stats. Optional for 'stats' operation. "+ - "When true, returns statistics for each partition separately. "+ - "Requires 'partitioned' parameter to be true."), - ), - mcp.WithString("config", - mcp.Description("JSON configuration for the topic. Required for 'update' operation. "+ - "Set various policies like retention, compaction, deduplication, etc. "+ - "Use a JSON object format, e.g., '{\"deduplicationEnabled\": true, \"replication_clusters\": [\"us-west\", \"us-east\"]}'"), - ), - mcp.WithString("messageId", - mcp.Description("Message ID for operations that require a position. Required for 'offload' operation. "+ - "Format is 'ledgerId:entryId' representing a position in the topic's message log. "+ - "For offload operations, specifies the message up to which data should be moved to long-term storage."), - ), - ) - s.AddTool(topicTool, handleTopicTool(readOnly)) -} - -// handleTopicTool returns a function that handles topic operations -func handleTopicTool(readOnly bool) func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(_ context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - - // Validate write operations in read-only mode - if readOnly && (operation == "create" || operation == "delete" || operation == "unload" || - operation == "terminate" || operation == "compact" || operation == "update" || operation == "offload") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil - } - - // Create the admin client - admin, err := pulsar.GetAdminClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil - } - - // Dispatch based on resource and operation - switch resource { - case "topic": - switch operation { - case "get": - return handleTopicGet(admin, request) - case "create": - return handleTopicCreate(admin, request) - case "delete": - return handleTopicDelete(admin, request) - case "stats": - return handleTopicStats(admin, request) - case "lookup": - return handleTopicLookup(admin, request) - case "internal-stats": - return handleTopicInternalStats(admin, request) - case "internal-info": - return handleTopicInternalInfo(admin, request) - case "bundle-range": - return handleTopicBundleRange(admin, request) - case "last-message-id": - return handleTopicLastMessageID(admin, request) - case "status": - return handleTopicStatus(admin, request) - case "unload": - return handleTopicUnload(admin, request) - case "terminate": - return handleTopicTerminate(admin, request) - case "compact": - return handleTopicCompact(admin, request) - case "update": - return handleTopicUpdate(admin, request) - case "offload": - return handleTopicOffload(admin, request) - case "offload-status": - return handleTopicOffloadStatus(admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topic': %s", operation)), nil - } - case "topics": - switch operation { - case "list": - return handleTopicsList(admin, request) - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topics': %s", operation)), nil - } - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: topic, topics", resource)), nil - } - } -} - -// handleTopicsList lists all existing topics under the specified namespace -func handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for topics.list: %v", err)), nil - } - - // Get namespace name - namespaceName, err := utils.GetNamespaceName(namespace) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil - } - - // List topics - partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", - namespace, err)), nil - } - - // Format the output - result := struct { - PartitionedTopics []string `json:"partitionedTopics"` - NonPartitionedTopics []string `json:"nonPartitionedTopics"` - }{ - PartitionedTopics: partitionedTopics, - NonPartitionedTopics: nonPartitionedTopics, - } - - jsonBytes, err := json.Marshal(result) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process topics list: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicGet gets the metadata of an existing topic -func handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.get: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Get topic metadata - metadata, err := admin.Topics().GetMetadata(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get metadata for topic '%s': %v", - topic, err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(metadata) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic metadata: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicStats gets the stats for an existing topic -func handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.stats: %v", err)), nil - } - - // Get optional parameters - partitioned := request.GetBool("partitioned", false) - perPartition := request.GetBool("per-partition", false) - - if !partitioned { - partitioned = false - } - - if !perPartition { - perPartition = false - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - namespaceName, err := utils.GetNamespaceName(topicName.GetTenant() + "/" + topicName.GetNamespace()) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespaceName, err)), nil - } - - // List topics - partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", - namespaceName, err)), nil - } - - if slices.Contains(partitionedTopics, topicName.String()) { - partitioned = true - } - if slices.Contains(nonPartitionedTopics, topicName.String()) { - partitioned = false - } - - var jsonBytes []byte - if partitioned { - // Get partitioned topic stats - stats, err := admin.Topics().GetPartitionedStats(*topicName, perPartition) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for partitioned topic '%s': %v", - topic, err)), nil - } - - // Format the output - jsonBytes, err = json.Marshal(stats) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process partitioned topic stats: %v", err)), nil - } - } else { - // Get topic stats - stats, err := admin.Topics().GetStats(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for topic '%s': %v", - topic, err)), nil - } - - // Format the output - jsonBytes, err = json.Marshal(stats) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic stats: %v", err)), nil - } - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicLookup looks up the owner broker of a topic -func handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.lookup: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Lookup topic - lookup, err := admin.Topics().Lookup(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to lookup topic '%s': %v", - topic, err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(lookup) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic lookup information: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicCreate creates a topic with the specified number of partitions -func handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.create: %v", err)), nil - } - - partitions, err := request.RequireFloat("partitions") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.create: %v", err)), nil - } - - // Validate partitions - if partitions < 0 { - return mcp.NewToolResultError("Invalid partitions number: must be non-negative. Use 0 for a non-partitioned topic."), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Create topic - err = admin.Topics().Create(*topicName, int(partitions)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create topic '%s' with %d partitions: %v", - topic, int(partitions), err)), nil - } - - if int(partitions) == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Successfully created non-partitioned topic '%s'", - topicName.String())), nil - } - return mcp.NewToolResultText(fmt.Sprintf("Successfully created topic '%s' with %d partitions", - topicName.String(), int(partitions))), nil -} - -// handleTopicDelete deletes a topic -func handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.delete: %v", err)), nil - } - - // Get optional parameters - force := request.GetBool("force", false) - nonPartitioned := request.GetBool("non-partitioned", false) - - if !force { - force = false - } - - if !nonPartitioned { - nonPartitioned = false - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Delete topic - err = admin.Topics().Delete(*topicName, force, nonPartitioned) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete topic '%s': %v", topic, err)), nil - } - - forceStr := "" - if force { - forceStr = " forcefully" - } - - nonPartitionedStr := "" - if nonPartitioned { - nonPartitionedStr = " (non-partitioned)" - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully deleted topic '%s'%s%s", - topicName.String(), forceStr, nonPartitionedStr)), nil -} - -// handleTopicUnload unloads a topic -func handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.unload: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Unload topic - err = admin.Topics().Unload(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to unload topic '%s': %v", topic, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully unloaded topic '%s'", topicName.String())), nil -} - -// handleTopicTerminate terminates a topic -func handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.terminate: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Terminate topic - messageID, err := admin.Topics().Terminate(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to terminate topic '%s': %v", topic, err)), nil - } - - // Convert message ID to string - msgIDStr := fmt.Sprintf("%d:%d", messageID.LedgerID, messageID.EntryID) - - return mcp.NewToolResultText(fmt.Sprintf("Successfully terminated topic '%s' at message %s. "+ - "No more messages can be published to this topic.", - topicName.String(), msgIDStr)), nil -} - -// handleTopicCompact triggers compaction on a topic -func handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.compact: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Compact topic - err = admin.Topics().Compact(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger compaction for topic '%s': %v", topic, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered compaction for topic '%s'. "+ - "Run 'topic.status' to check compaction status.", topicName.String())), nil -} - -// handleTopicInternalStats gets the internal stats for a topic -func handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-stats: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Get internal stats - stats, err := admin.Topics().GetInternalStats(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal stats for topic '%s': %v", topic, err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(stats) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic internal stats: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicInternalInfo gets the internal info for a topic -func handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-info: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Get internal info - info, err := admin.Topics().GetInternalInfo(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal info for topic '%s': %v", topic, err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(info) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic internal info: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicBundleRange gets the bundle range of a topic -func handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.bundle-range: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Get bundle range - bundle, err := admin.Topics().GetBundleRange(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle range for topic '%s': %v", topic, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Bundle range for topic '%s': %s", topicName.String(), bundle)), nil -} - -// handleTopicLastMessageID gets the last message ID of a topic -func handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.last-message-id: %v", err)), nil +// PulsarAdminTopicTools creates Pulsar Admin Topic tool list using the new builder pattern +func PulsarAdminTopicTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarAdminTopicToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Get topic name - topicName, err := utils.GetTopicName(topic) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + // In production environment, this should use proper logging + fmt.Printf("Failed to build Pulsar Admin Topic tools: %v\n", err) + return nil } - // Get last message ID - messageID, err := admin.Topics().GetLastMessageID(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get last message ID for topic '%s': %v", topic, err)), nil - } - - // Format the output - jsonBytes, err := json.Marshal(messageID) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process message ID information: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicStatus gets the status of a topic -func handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.status: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Get topic metadata for status check - metadata, err := admin.Topics().GetMetadata(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for topic '%s': %v", topic, err)), nil - } - - // Create status object with available information - status := struct { - Metadata interface{} `json:"metadata"` - Active bool `json:"active"` - }{ - Metadata: metadata, - Active: true, // If metadata retrieval succeeded, topic is active - } - - // Format the output - jsonBytes, err := json.Marshal(status) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process topic status information: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil -} - -// handleTopicUpdate updates a topic configuration -func handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.update: %v", err)), nil - } - - partitions, err := request.RequireFloat("partitions") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.update: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - err = admin.Topics().Update(*topicName, int(partitions)) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update topic '%s': %v", topic, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully updated topic '%s' partitions to %d", - topicName.String(), int(partitions))), nil + return tools } -// handleTopicOffload offloads data from a topic to long-term storage -func handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload: %v", err)), nil - } - - messageIDStr, err := request.RequireString("messageId") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for topic.offload: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Parse message ID from format "ledgerId:entryId" - var ledgerID, entryID int64 - if _, err := fmt.Sscanf(messageIDStr, "%d:%d", &ledgerID, &entryID); err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid message ID format (expected 'ledgerId:entryId'): %v. "+ - "Valid examples: '123:456'", err)), nil - } - - // Create MessageID object - messageID := utils.MessageID{ - LedgerID: ledgerID, - EntryID: entryID, - } - - // Offload topic - err = admin.Topics().Offload(*topicName, messageID) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger offload for topic '%s': %v", topic, err)), nil - } - - return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered offload for topic '%s' up to message %s. "+ - "Use 'topic.offload-status' to check the offload progress.", - topicName.String(), messageIDStr)), nil -} - -// handleTopicOffloadStatus checks the status of data offloading for a topic -func handleTopicOffloadStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload-status: %v", err)), nil - } - - // Get topic name - topicName, err := utils.GetTopicName(topic) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil - } - - // Get offload status - status, err := admin.Topics().OffloadStatus(*topicName) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get offload status for topic '%s': %v", topic, err)), nil - } +// PulsarAdminAddTopicTools adds topic-related tools to the MCP server +func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarAdminTopicTools(readOnly, features) - // Format the output - jsonBytes, err := json.Marshal(status) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process offload status information: %v", err)), nil + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go index 3c9edb3..bc2eca4 100644 --- a/pkg/mcp/pulsar_client_consume_tools.go +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -19,246 +19,36 @@ package mcp import ( "context" - "encoding/json" "fmt" - "slices" - "strings" - "time" - "github.com/apache/pulsar-client-go/pulsar" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarClientAddConsumerTools adds Pulsar client consumer tools to the MCP server -func PulsarClientAddConsumerTools(s *server.MCPServer, _ bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { - return +// PulsarClientConsumeTools creates Pulsar Client Consumer tool list using the new builder pattern +func PulsarClientConsumeTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarClientConsumeToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - // Main consume tool - consumeTool := mcp.NewTool("pulsar_client_consume", - mcp.WithDescription("Consume messages from a Pulsar topic. This tool allows you to consume messages "+ - "from a specified Pulsar topic with various options to control the subscription behavior, "+ - "message processing, and display format. Do not use this tool for Kafka protocol operations. Use 'kafka_client_consume' instead."), - mcp.WithString("topic", mcp.Required(), - mcp.Description("Topic to consume from"), - ), - mcp.WithString("subscription-name", mcp.Required(), - mcp.Description("Subscription name"), - ), - mcp.WithString("subscription-type", - mcp.Description("Subscription type: exclusive, shared, failover, key_shared (default: exclusive)"), - ), - mcp.WithString("subscription-mode", - mcp.Description("Subscription mode: durable, non-durable (default: durable)"), - ), - mcp.WithString("initial-position", - mcp.Description("Initial position: latest (consume from the latest message)"+ - ", earliest (consume from the earliest message) (default: latest)"), - ), - mcp.WithNumber("num-messages", - mcp.Description("Number of messages to consume (default: 10)"), - ), - mcp.WithNumber("timeout", - mcp.Description("Timeout for consuming messages in seconds (default: 30)"), - ), - mcp.WithBoolean("show-properties", - mcp.Description("Show message properties (default: false)"), - ), - mcp.WithBoolean("hide-payload", - mcp.Description("Hide message payload (default: false)"), - ), - ) - s.AddTool(consumeTool, handleClientConsume) -} - -func handleClientConsume(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Extract required parameters with validation - topic, err := request.RequireString("topic") + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - subscriptionName, err := request.RequireString("subscription-name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil - } - - // Set default values and extract optional parameters - subscriptionType := "exclusive" - if val := request.GetString("subscription-type", ""); val != "" { - subscriptionType = val - } - - subscriptionMode := "durable" - if val := request.GetString("subscription-mode", ""); val != "" { - subscriptionMode = val - } - - initialPosition := "latest" - if val := request.GetString("initial-position", ""); val != "" { - initialPosition = val - } - - numMessages := 10 - if val := request.GetFloat("num-messages", 10); val != 0 { - numMessages = int(val) + // In production environment, this should use proper logging + fmt.Printf("Failed to build Pulsar Client Consumer tools: %v\n", err) + return nil } - timeout := 30 - if val := request.GetFloat("timeout", 30); val != 0 { - timeout = int(val) - } - - showProperties := false - if val := request.GetBool("show-properties", false); val { - showProperties = val - } - - hidePayload := false - if val := request.GetBool("hide-payload", false); val { - hidePayload = val - } - - // Setup client - client, err := mcppulsar.GetPulsarClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil - } - defer client.Close() - - // Prepare consumer options - consumerOpts := pulsar.ConsumerOptions{ - Name: "snmcp-consumer", - SubscriptionName: subscriptionName, - } - - consumerOpts.Topic = topic - - // Set subscription type - switch strings.ToLower(subscriptionType) { - case "exclusive": - consumerOpts.Type = pulsar.Exclusive - case "shared": - consumerOpts.Type = pulsar.Shared - case "failover": - consumerOpts.Type = pulsar.Failover - case "key_shared": - consumerOpts.Type = pulsar.KeyShared - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription type: %s", subscriptionType)), nil - } - - // Set subscription mode - switch strings.ToLower(subscriptionMode) { - case "durable": - consumerOpts.SubscriptionMode = pulsar.Durable - case "non-durable": - consumerOpts.SubscriptionMode = pulsar.NonDurable - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription mode: %s", subscriptionMode)), nil - } - - // Set initial position - switch strings.ToLower(initialPosition) { - case "latest": - consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionLatest - case "earliest": - consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionEarliest - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid initial position: %s", initialPosition)), nil - } - - // Create consumer - consumer, err := client.Subscribe(consumerOpts) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create consumer: %v", err)), nil - } - defer consumer.Close() - - // Set up timeout context - timeoutDuration := time.Duration(timeout) * time.Second - consumeCtx, cancelConsume := context.WithTimeout(ctx, timeoutDuration) - defer cancelConsume() - - // Container for messages - type MessageData struct { - ID string `json:"id"` - PublishTime string `json:"publish_time"` - Properties map[string]string `json:"properties,omitempty"` - Key string `json:"key,omitempty"` - Data string `json:"data,omitempty"` - MessageCount int `json:"message_count"` - } - - messages := []MessageData{} - messageCount := 0 - - // Consume messages - for { - // Check if we've consumed the requested number of messages - if numMessages > 0 && messageCount >= numMessages { - break - } - - // Receive message with timeout - msg, err := consumer.Receive(consumeCtx) - if err != nil { - if err == context.DeadlineExceeded { - break - } - if err == context.Canceled { - break - } - return mcp.NewToolResultError(fmt.Sprintf("Error receiving message: %v", err)), nil - } - - // Process the message - messageCount++ - - // Create message data - messageData := MessageData{ - ID: msg.ID().String(), - PublishTime: msg.PublishTime().Format(time.RFC3339), - MessageCount: messageCount, - } - - // Add properties if requested - if showProperties { - messageData.Properties = msg.Properties() - } - - // Add key if present - if msg.Key() != "" { - messageData.Key = msg.Key() - } - - // Add payload unless hidden - if !hidePayload { - messageData.Data = string(msg.Payload()) - } - - messages = append(messages, messageData) - - // Acknowledge the message - _ = consumer.Ack(msg) - } + return tools +} - // Prepare response - response := map[string]interface{}{ - "topic": topic, - "subscription_name": subscriptionName, - "messages_consumed": messageCount, - "messages": messages, - } +// PulsarClientAddConsumerTools adds Pulsar client consumer tools to the MCP server +func PulsarClientAddConsumerTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarClientConsumeTools(readOnly, features) - // Convert to JSON - jsonBytes, err := json.Marshal(response) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to encode result: %v", err)), nil + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return mcp.NewToolResultText(string(jsonBytes)), nil } diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index b7ccae1..d80d7d6 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -19,248 +19,36 @@ package mcp import ( "context" - "encoding/json" "fmt" - "slices" - "strings" - "time" - "github.com/apache/pulsar-client-go/pulsar" - "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - mcppulsar "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarClientAddProducerTools adds Pulsar client producer tools to the MCP server -func PulsarClientAddProducerTools(s *server.MCPServer, _ bool, features []string) { - if !slices.Contains(features, string(FeaturePulsarClient)) && !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureAllPulsar)) { - return - } - - // Main produce tool - produceTool := mcp.NewTool("pulsar_client_produce", - mcp.WithDescription("Produce messages to a Pulsar topic. This tool allows you to send messages "+ - "to a specified Pulsar topic with various options to control message format, "+ - "batching, and properties. Do not use this tool for Kafka protocol operations. Use 'kafka_client_produce' instead."), - mcp.WithString("topic", mcp.Required(), - mcp.Description("Topic to produce to"), - ), - mcp.WithArray("messages", - mcp.Description("Messages to send. Specify multiple times for multiple messages. IMPORTANT: Use this parameter to provide message content."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "message", - }, - ), - ), - mcp.WithNumber("num-produce", - mcp.Description("Number of times to send message(s) (default: 1)"), - ), - mcp.WithNumber("rate", - mcp.Description("Rate (in msg/sec) at which to produce, 0 means produce as fast as possible (default: 0)"), - ), - mcp.WithBoolean("disable-batching", - mcp.Description("Disable batch sending of messages (default: false)"), - ), - mcp.WithBoolean("chunking", - mcp.Description("Should split the message and publish in chunks if message size is larger than allowed max size (default: false)"), - ), - mcp.WithString("separator", - mcp.Description("Character to split messages string on (default: none)"), - ), - mcp.WithArray("properties", - mcp.Description("Properties to add, key=value format. Specify multiple times for multiple properties."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "property", - }, - ), - ), - mcp.WithString("key", - mcp.Description("Partitioning key to add to each message"), - ), - ) - s.AddTool(produceTool, handleClientProduce) -} - -func handleClientProduce(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Extract required parameters with validation - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil - } - - // Set default values and extract optional parameters - messages := []string{} - if val := request.GetStringSlice("messages", []string{}); len(val) > 0 { - messages = val - } - - if len(messages) == 0 { - return mcp.NewToolResultError("Please supply message content with 'messages' parameter."), nil - } - - numProduce := 1 - if val := request.GetFloat("num-produce", 1); val != 0 { - numProduce = int(val) - } - - rate := 0.0 - if val := request.GetFloat("rate", 0); val != 0 { - rate = val - } - - disableBatching := false - if val := request.GetBool("disable-batching", false); val { - disableBatching = val - } - - chunkingAllowed := false - if val := request.GetBool("chunking", false); val { - chunkingAllowed = val - } - - separator := "" - if val := request.GetString("separator", ""); val != "" { - separator = val - } - - properties := []string{} - if val := request.GetStringSlice("properties", []string{}); len(val) > 0 { - properties = val - } - - key := "" - if val := request.GetString("key", ""); val != "" { - key = val - } - - // Split messages by separator if needed - if separator != "" && len(messages) > 0 { - var splitMessages []string - for _, msg := range messages { - parts := strings.Split(msg, separator) - for _, part := range parts { - if part != "" { - splitMessages = append(splitMessages, part) - } - } - } - messages = splitMessages - } - - // Setup client - client, err := mcppulsar.GetPulsarClient() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil - } - defer client.Close() - - // Prepare producer options - producerOpts := pulsar.ProducerOptions{ - Topic: topic, - } - - // Set batching and chunking options - if chunkingAllowed { - producerOpts.EnableChunking = true - producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond - } else if disableBatching { - producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond - } - - producer, err := client.CreateProducer(producerOpts) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create producer: %v", err)), nil +// PulsarClientProduceTools creates Pulsar Client Producer tool list using the new builder pattern +func PulsarClientProduceTools(readOnly bool, features []string) []server.ServerTool { + builder := pulsarBuilders.NewPulsarClientProduceToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, } - defer producer.Close() - // Generate message bodies from messages and files - messagePayloads, err := generateMessagePayloads(messages) + tools, err := builder.BuildTools(context.Background(), config) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to generate message payloads: %v", err)), nil - } - - // Parse properties - propMap := make(map[string]string) - for _, prop := range properties { - parts := strings.SplitN(prop, "=", 2) - if len(parts) == 2 { - propMap[parts[0]] = parts[1] - } + // In production environment, this should use proper logging + fmt.Printf("Failed to build Pulsar Client Producer tools: %v\n", err) + return nil } - // Setup rate limiter - var limiter *time.Ticker - if rate > 0 { - interval := time.Duration(1000/rate) * time.Millisecond - limiter = time.NewTicker(interval) - defer limiter.Stop() - } - - // Send messages - numMessagesSent := 0 - var lastMessageID pulsar.MessageID - for range numProduce { - for _, payload := range messagePayloads { - // Apply rate limiting if enabled - if limiter != nil { - <-limiter.C - } - - // Create message to send - msg := &pulsar.ProducerMessage{ - Payload: payload, - } - - // Add properties if specified - if len(propMap) > 0 { - msg.Properties = propMap - } - - // Standard message - if key != "" { - msg.Key = key - } - - // Send the message - msgID, err := producer.Send(ctx, msg) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil - } - - lastMessageID = msgID - numMessagesSent++ - } - } - - // Prepare response - response := map[string]interface{}{ - "topic": topic, - "messages_sent": numMessagesSent, - "last_message_id": fmt.Sprintf("%v", lastMessageID), - "success": true, - } - - // Convert to JSON - jsonBytes, err := json.Marshal(response) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to encode result: %v", err)), nil - } - - return mcp.NewToolResultText(string(jsonBytes)), nil + return tools } -// generateMessagePayloads generates message payloads from message strings -func generateMessagePayloads(messages []string) ([][]byte, error) { - var payloads [][]byte +// PulsarClientAddProducerTools adds Pulsar client producer tools to the MCP server +func PulsarClientAddProducerTools(s *server.MCPServer, readOnly bool, features []string) { + tools := PulsarClientProduceTools(readOnly, features) - // Add message strings - for _, msg := range messages { - payloads = append(payloads, []byte(msg)) + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) } - - return payloads, nil } diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go index 87d6fa5..7e7e423 100644 --- a/pkg/mcp/pulsar_functions_as_tools.go +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -26,12 +26,11 @@ import ( "sync" "time" - "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/pftools" + pftools2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp/pftools" ) var ( - functionManagers = make(map[string]*pftools.PulsarFunctionManager) + functionManagers = make(map[string]*pftools2.PulsarFunctionManager) functionManagersLock sync.RWMutex ) @@ -52,14 +51,25 @@ func StopAllPulsarFunctionManagers() { log.Println("All Pulsar Function managers stopped") } -func PulsarFunctionManagedMcpTools(s *server.MCPServer, readOnly bool, features []string) { +func (s *Server) PulsarFunctionManagedMcpTools(readOnly bool, features []string, sessionID string) { if !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureFunctionsAsTools)) && !slices.Contains(features, string(FeatureStreamNativeCloud)) { return } - options := pftools.DefaultManagerOptions() + // Validate sessionID + if sessionID == "" { + log.Printf("Skipping Pulsar Functions as MCP Tools because sessionID is empty") + return + } + + options := pftools2.DefaultManagerOptions() + + if s.SNCloudSession.Ctx.Organization == "" || s.SNCloudSession.Ctx.PulsarInstance == "" || s.SNCloudSession.Ctx.PulsarCluster == "" { + log.Printf("Skipping Pulsar Functions as MCP Tools because both organization, pulsar instance and pulsar cluster are not set") + return + } if pollIntervalStr := os.Getenv("FUNCTIONS_AS_TOOLS_POLL_INTERVAL"); pollIntervalStr != "" { if seconds, err := strconv.Atoi(pollIntervalStr); err == nil && seconds > 0 { @@ -99,7 +109,15 @@ func PulsarFunctionManagedMcpTools(s *server.MCPServer, readOnly bool, features log.Printf("Setting Pulsar Functions strict export to %v", options.StrictExport) } - manager, err := pftools.NewPulsarFunctionManager(s, readOnly, options) + // Convert Server to the internal pftools.Server type + pftoolsServer := &pftools2.Server{ + MCPServer: s.MCPServer, + KafkaSession: s.KafkaSession, + PulsarSession: s.PulsarSession, + Logger: s.logger, + } + + manager, err := pftools2.NewPulsarFunctionManager(pftoolsServer, readOnly, options, sessionID) if err != nil { log.Printf("Failed to create Pulsar Function manager: %v", err) return diff --git a/pkg/mcp/server.go b/pkg/mcp/server.go new file mode 100644 index 0000000..079d5f4 --- /dev/null +++ b/pkg/mcp/server.go @@ -0,0 +1,64 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +package mcp + +import ( + "github.com/mark3labs/mcp-go/server" + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/config" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +type Server struct { + MCPServer *server.MCPServer + KafkaSession *kafka.Session + PulsarSession *pulsar.Session + SNCloudSession *config.Session + logger *logrus.Logger +} + +func NewServer(name, version string, logger *logrus.Logger, opts ...server.ServerOption) *Server { + // Create a new MCP server + opts = AddOpts(opts...) + s := server.NewMCPServer(name, version, opts...) + mcpserver := CreateSNCloudMCPServer(s, logger) + return mcpserver +} + +func AddOpts(opts ...server.ServerOption) []server.ServerOption { + defaultOpts := []server.ServerOption{ + server.WithResourceCapabilities(true, true), + server.WithRecovery(), + server.WithLogging(), + } + opts = append(defaultOpts, opts...) + return opts +} + +func CreateSNCloudMCPServer(s *server.MCPServer, logger *logrus.Logger) *Server { + mcpserver := &Server{ + MCPServer: s, + logger: logger, + SNCloudSession: &config.Session{}, + KafkaSession: &kafka.Session{}, + PulsarSession: &pulsar.Session{}, + } + + return mcpserver +} diff --git a/pkg/mcp/context_tools.go b/pkg/mcp/sncontext_tools.go similarity index 92% rename from pkg/mcp/context_tools.go rename to pkg/mcp/sncontext_tools.go index 469e217..3199c64 100644 --- a/pkg/mcp/context_tools.go +++ b/pkg/mcp/sncontext_tools.go @@ -27,13 +27,13 @@ import ( "github.com/mark3labs/mcp-go/server" "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/config" ) -func RegisterContextTools(s *server.MCPServer, features []string) { +func RegisterContextTools(s *server.MCPServer, features []string, skipContextTools bool) { if !slices.Contains(features, string(FeatureStreamNativeCloud)) && !slices.Contains(features, string(FeatureAll)) { return } + // Add whoami tool whoamiTool := mcp.NewTool("sncloud_context_whoami", mcp.WithDescription("Display the currently logged-in service account. "+ @@ -51,7 +51,10 @@ func RegisterContextTools(s *server.MCPServer, features []string) { mcp.Description("The name of the pulsar cluster to use"), ), ) - s.AddTool(setContextTool, handleSetContext) + // Skip registering context tools if context is already provided + if !skipContextTools { + s.AddTool(setContextTool, handleSetContext) + } // Add available-contexts tool availableContextsTool := mcp.NewTool("sncloud_context_available_clusters", @@ -62,7 +65,7 @@ func RegisterContextTools(s *server.MCPServer, features []string) { // handleWhoami handles the whoami tool request func handleWhoami(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - options := ctx.Value(common.OptionsKey).(*config.Options) + options := common.GetOptions(ctx) issuer := options.LoadConfigOrDie().Auth.Issuer() userName, err := options.WhoAmI(issuer.Audience) @@ -91,7 +94,7 @@ func handleWhoami(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResu // handleSetContext handles the set-context tool request func handleSetContext(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - options := ctx.Value(common.OptionsKey).(*config.Options) + options := common.GetOptions(ctx) instanceName, err := request.RequireString("instanceName") if err != nil { @@ -103,9 +106,8 @@ func handleSetContext(ctx context.Context, request mcp.CallToolRequest) (*mcp.Ca return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil } - err = SetContext(options, instanceName, clusterName) + err = SetContext(ctx, options, instanceName, clusterName) if err != nil { - ResetMcpContext() return mcp.NewToolResultError(fmt.Sprintf("Failed to set context: %v", err)), nil } @@ -113,7 +115,7 @@ func handleSetContext(ctx context.Context, request mcp.CallToolRequest) (*mcp.Ca } func handleAvailableContexts(ctx context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - promptResponse, err := handleListPulsarClusters(ctx, mcp.GetPromptRequest{}) + promptResponse, err := HandleListPulsarClusters(ctx, mcp.GetPromptRequest{}) if err != nil || promptResponse == nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to list pulsar clusters: %v", err)), nil } diff --git a/pkg/mcp/context_utils.go b/pkg/mcp/sncontext_utils.go similarity index 84% rename from pkg/mcp/context_utils.go rename to pkg/mcp/sncontext_utils.go index 598d19b..135f330 100644 --- a/pkg/mcp/context_utils.go +++ b/pkg/mcp/sncontext_utils.go @@ -24,21 +24,27 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/config" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) const DefaultKafkaPort = 9093 -func SetContext(options *config.Options, instanceName, clusterName string) error { +func SetContext(ctx context.Context, options *config.Options, instanceName, clusterName string) error { snConfig := options.LoadConfigOrDie() myselfGrant, err := options.AuthOptions.LoadGrant(snConfig.Auth.Audience) - ctx := context.Background() if err != nil || myselfGrant == nil { return fmt.Errorf("failed to auth to StreamNative Cloud: %v", err) } - apiClient, err := config.GetAPIClient() + // Get API client from session + session := context2.GetSNCloudSession(ctx) + if session == nil { + return fmt.Errorf("failed to get StreamNative Cloud session") + } + + apiClient, err := session.GetAPIClient() if err != nil { return fmt.Errorf("failed to get API client: %v", err) } @@ -150,16 +156,20 @@ func SetContext(options *config.Options, instanceName, clusterName string) error return fmt.Errorf("failed to get access token") } - err = pulsar.NewCurrentPulsarContext(pulsar.PulsarContext{ + psession := context2.GetPulsarSession(ctx) + if psession == nil { + return fmt.Errorf("failed to get pulsar session") + } + err = psession.SetPulsarContext(pulsar.PulsarContext{ WebServiceURL: getBasePath(snConfig.ProxyLocation, options.Organization, clusterUID), ServiceURL: getServiceURL(dnsName), Token: accessToken, - }, issuer, &options.AuthOptions.Store) + }) if err != nil { - return fmt.Errorf("failed to set pulsar context: %v", err) + return fmt.Errorf("failed to change pulsar context: %v", err) } - err = kafka.NewCurrentKafkaContext(kafka.KafkaContext{ + kctx := kafka.KafkaContext{ BootstrapServers: fmt.Sprintf("%s:%d", dnsName, DefaultKafkaPort), SchemaRegistryURL: fmt.Sprintf("https://%s/kafka", dnsName), ConnectURL: fmt.Sprintf("%s/admin/kafkaconnect/", snConfig.ProxyLocation), @@ -172,18 +182,20 @@ func SetContext(options *config.Options, instanceName, clusterName string) error SchemaRegistryAuthPass: accessToken, ConnectAuthUser: "public/default", ConnectAuthPass: accessToken, - }) + } + + ksession := context2.GetKafkaSession(ctx) + if ksession == nil { + return fmt.Errorf("failed to get kafka session") + } + err = ksession.SetKafkaContext(kctx) if err != nil { - return fmt.Errorf("failed to set kafka context: %v", err) + return fmt.Errorf("failed to change kafka context: %v", err) } - SetMcpContext(instanceName, clusterName, options.Organization) + // TODO: check if need to set log client + // if issuer != nil && options.AuthOptions.Store != nil { + // } return nil } - -func ResetContext() { - pulsar.ResetCurrentPulsarContext() - kafka.ResetCurrentKafkaContext() - ResetMcpContext() -} diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go index ebc1706..7ae6f04 100644 --- a/pkg/mcp/streamnative_resources_log_tools.go +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -31,8 +31,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/config" + context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) var FunctionConnectorList = []string{"sink", "source", "function", "kafka-connect"} @@ -113,8 +112,12 @@ type LogContent struct { } func handleStreamNativeResourcesLog(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - snConfig := common.GetOptions(ctx) - instance, cluster, organization := GetMcpContext() + // Get log client from session + session := context2.GetSNCloudSession(ctx) + if session == nil { + return nil, fmt.Errorf("failed to get StreamNative Cloud session") + } + instance, cluster, organization := session.Ctx.PulsarInstance, session.Ctx.PulsarCluster, session.Ctx.Organization if instance == "" || cluster == "" || organization == "" { return mcp.NewToolResultError("No context is set, please use `sncloud_context_use_cluster` to set the context first."), nil } @@ -160,7 +163,7 @@ func handleStreamNativeResourcesLog(ctx context.Context, request mcp.CallToolReq } logOptions := &LogOptions{ - ServiceURL: snConfig.LogLocation, + ServiceURL: session.Ctx.LogAPIURL, Organization: organization, Instance: instance, Cluster: cluster, @@ -177,7 +180,7 @@ func handleStreamNativeResourcesLog(ctx context.Context, request mcp.CallToolReq Timestamp: timestampStr, } - client, err := config.GetSNCloudLogClient() + client, err := session.GetLogClient() if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get logging client: %v", err)), nil } diff --git a/pkg/mcp/streamnative_resources_tools.go b/pkg/mcp/streamnative_resources_tools.go index 69007ab..99b7009 100644 --- a/pkg/mcp/streamnative_resources_tools.go +++ b/pkg/mcp/streamnative_resources_tools.go @@ -12,7 +12,7 @@ import ( "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/config" + context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) @@ -89,8 +89,13 @@ func handleStreamNativeResourcesApply(ctx context.Context, request mcp.CallToolR // Get dry_run flag dryRun := request.GetBool("dry_run", false) - // Get API client - apiClient, err := config.GetAPIClient() + // Get API client from session + session := context2.GetSNCloudSession(ctx) + if session == nil { + return nil, fmt.Errorf("failed to get StreamNative Cloud session") + } + + apiClient, err := session.GetAPIClient() if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get API client: %v", err)), nil } @@ -334,7 +339,13 @@ func handleStreamNativeResourcesDelete(ctx context.Context, request mcp.CallTool return mcp.NewToolResultError(fmt.Sprintf("Failed to get type: %v", err)), nil } - apiClient, err := config.GetAPIClient() + // Get API client from session + session := context2.GetSNCloudSession(ctx) + if session == nil { + return nil, fmt.Errorf("failed to get StreamNative Cloud session") + } + + apiClient, err := session.GetAPIClient() if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to get API client: %v", err)), nil } diff --git a/pkg/pulsar/connection.go b/pkg/pulsar/connection.go index 7d6aeda..8e25b36 100644 --- a/pkg/pulsar/connection.go +++ b/pkg/pulsar/connection.go @@ -19,14 +19,12 @@ package pulsar import ( "fmt" + "sync" "time" "github.com/apache/pulsar-client-go/pulsar" pulsaradminconfig "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/auth" - "github.com/streamnative/streamnative-mcp-server/pkg/auth/store" - "github.com/streamnative/streamnative-mcp-server/pkg/config" ) const ( @@ -47,40 +45,41 @@ type PulsarContext struct { TLSKeyFile string } -var CurrentPulsarContext PulsarContext -var CurrentPulsarClientOptions pulsar.ClientOptions -var AdminClient cmdutils.Client -var AdminV3Client cmdutils.Client -var Client pulsar.Client - -func NewCurrentPulsarContext(pc PulsarContext, issuer *auth.Issuer, tokenStore *store.Store) error { - CurrentPulsarContext = pc - if issuer != nil && tokenStore != nil { - _ = config.InitSNCloudLogClient(*issuer, *tokenStore) - } else { - config.ResetSNCloudLogClient() - } - return pc.SetPulsarContext() +// Session represents a Pulsar session +type Session struct { + Ctx PulsarContext + Client pulsar.Client + AdminClient cmdutils.Client + AdminV3Client cmdutils.Client + ClientOptions pulsar.ClientOptions + PulsarCtlConfig *cmdutils.ClusterConfig + mutex sync.RWMutex } -func ResetCurrentPulsarContext() { - CurrentPulsarContext = PulsarContext{} - CurrentPulsarClientOptions = pulsar.ClientOptions{} - AdminClient = nil - AdminV3Client = nil - Client = nil -} +// NewSession creates a new Pulsar session with the given context +// This function dynamically constructs clients without relying on global state +func NewSession(ctx PulsarContext) (*Session, error) { + session := &Session{ + Ctx: ctx, + } + + if err := session.SetPulsarContext(ctx); err != nil { + return nil, fmt.Errorf("failed to set pulsar context: %w", err) + } -func init() { - cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{} + return session, nil } -func (pc *PulsarContext) SetPulsarContext() error { +func (s *Session) SetPulsarContext(ctx PulsarContext) error { + s.mutex.Lock() + defer s.mutex.Unlock() + s.Ctx = ctx + pc := &s.Ctx var err error // Configure pulsarctl with the token switch { case pc.Token != "": - cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ + s.PulsarCtlConfig = &cmdutils.ClusterConfig{ WebServiceURL: pc.WebServiceURL, AuthPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken", AuthParams: fmt.Sprintf("token:%s", pc.Token), @@ -91,8 +90,8 @@ func (pc *PulsarContext) SetPulsarContext() error { TLSKeyFile: pc.TLSKeyFile, } - // Set the global client options - CurrentPulsarClientOptions = pulsar.ClientOptions{ + // Set the client options + s.ClientOptions = pulsar.ClientOptions{ URL: pc.ServiceURL, Authentication: pulsar.NewAuthenticationToken(pc.Token), OperationTimeout: DefaultClientTimeout, @@ -104,7 +103,7 @@ func (pc *PulsarContext) SetPulsarContext() error { TLSKeyFilePath: pc.TLSKeyFile, } case pc.AuthPlugin != "" && pc.AuthParams != "": - cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ + s.PulsarCtlConfig = &cmdutils.ClusterConfig{ WebServiceURL: pc.WebServiceURL, AuthPlugin: pc.AuthPlugin, AuthParams: pc.AuthParams, @@ -119,7 +118,7 @@ func (pc *PulsarContext) SetPulsarContext() error { if err != nil { return fmt.Errorf("failed to create authentication provider: %w", err) } - CurrentPulsarClientOptions = pulsar.ClientOptions{ + s.ClientOptions = pulsar.ClientOptions{ URL: pc.ServiceURL, Authentication: authProvider, OperationTimeout: DefaultClientTimeout, @@ -132,7 +131,7 @@ func (pc *PulsarContext) SetPulsarContext() error { } default: // No authentication provided - cmdutils.PulsarCtlConfig = &cmdutils.ClusterConfig{ + s.PulsarCtlConfig = &cmdutils.ClusterConfig{ WebServiceURL: pc.WebServiceURL, TLSAllowInsecureConnection: pc.TLSAllowInsecureConnection, TLSEnableHostnameVerification: pc.TLSEnableHostnameVerification, @@ -141,8 +140,8 @@ func (pc *PulsarContext) SetPulsarContext() error { TLSKeyFile: pc.TLSKeyFile, } - // Set the global client options without authentication - CurrentPulsarClientOptions = pulsar.ClientOptions{ + // Set the client options without authentication + s.ClientOptions = pulsar.ClientOptions{ URL: pc.ServiceURL, OperationTimeout: DefaultClientTimeout, ConnectionTimeout: DefaultClientTimeout, @@ -154,10 +153,10 @@ func (pc *PulsarContext) SetPulsarContext() error { } } - AdminClient = cmdutils.NewPulsarClient() - AdminV3Client = cmdutils.NewPulsarClientWithAPIVersion(pulsaradminconfig.V3) + s.AdminClient = s.PulsarCtlConfig.Client(pulsaradminconfig.V2) + s.AdminV3Client = s.PulsarCtlConfig.Client(pulsaradminconfig.V3) - Client, err = pulsar.NewClient(CurrentPulsarClientOptions) + s.Client, err = pulsar.NewClient(s.ClientOptions) if err != nil { return fmt.Errorf("failed to create pulsar client: %w", err) } @@ -165,23 +164,32 @@ func (pc *PulsarContext) SetPulsarContext() error { return nil } -func GetAdminClient() (cmdutils.Client, error) { - if cmdutils.PulsarCtlConfig.WebServiceURL == "" { +func (s *Session) GetAdminClient() (cmdutils.Client, error) { + s.mutex.RLock() + defer s.mutex.RUnlock() + + if s.PulsarCtlConfig.WebServiceURL == "" { return nil, fmt.Errorf("err: ContextNotSetErr: Please set the cluster context first") } - return AdminClient, nil + return s.AdminClient, nil } -func GetAdminV3Client() (cmdutils.Client, error) { - if cmdutils.PulsarCtlConfig.WebServiceURL == "" { +func (s *Session) GetAdminV3Client() (cmdutils.Client, error) { + s.mutex.RLock() + defer s.mutex.RUnlock() + + if s.PulsarCtlConfig.WebServiceURL == "" { return nil, fmt.Errorf("err: ContextNotSetErr: Please set the cluster context first") } - return AdminV3Client, nil + return s.AdminV3Client, nil } -func GetPulsarClient() (pulsar.Client, error) { - if CurrentPulsarClientOptions.URL == "" { +func (s *Session) GetPulsarClient() (pulsar.Client, error) { + s.mutex.RLock() + defer s.mutex.RUnlock() + + if s.ClientOptions.URL == "" { return nil, fmt.Errorf("err: ContextNotSetErr: Please set the cluster context first") } - return Client, nil + return s.Client, nil } diff --git a/sdk/sdk-apiserver/go.mod b/sdk/sdk-apiserver/go.mod index c780ba7..fd15566 100644 --- a/sdk/sdk-apiserver/go.mod +++ b/sdk/sdk-apiserver/go.mod @@ -2,7 +2,7 @@ module github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver go 1.21 -toolchain go1.24.3 +toolchain go1.24.4 require golang.org/x/oauth2 v0.25.0 diff --git a/sdk/sdk-apiserver/go.sum b/sdk/sdk-apiserver/go.sum index 74a187d..2d08db8 100644 --- a/sdk/sdk-apiserver/go.sum +++ b/sdk/sdk-apiserver/go.sum @@ -1,2 +1,4 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= +golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= From 8d85aca1a38202f8e000560db827bb64271707ae Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Fri, 8 Aug 2025 15:28:12 +0800 Subject: [PATCH 34/85] Refactor Pulsar client initialization in pftools (#51) --- pkg/mcp/pftools/manager.go | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index 3aac526..651522b 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -27,13 +27,11 @@ import ( "time" pulsarclient "github.com/apache/pulsar-client-go/pulsar" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/rest" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/google/go-cmp/cmp" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" - "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" "github.com/streamnative/streamnative-mcp-server/pkg/schema" @@ -75,8 +73,16 @@ func NewPulsarFunctionManager(snServer *Server, readOnly bool, options *ManagerO return nil, fmt.Errorf("failed to get Pulsar client: %w", err) } - adminClient := cmdutils.NewPulsarClientWithAPIVersion(config.V3) - v2adminClient := cmdutils.NewPulsarClientWithAPIVersion(config.V2) + adminClient, err := snServer.PulsarSession.GetAdminV3Client() + if err != nil { + return nil, fmt.Errorf("failed to get Pulsar admin v3 client: %w", err) + } + + v2adminClient, err := snServer.PulsarSession.GetAdminClient() + if err != nil { + return nil, fmt.Errorf("failed to get Pulsar admin client: %w", err) + } + if options == nil { options = DefaultManagerOptions() } From 91b6080e3745466958176e2bd533cd094a0fbf6c Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Fri, 15 Aug 2025 12:57:53 +0800 Subject: [PATCH 35/85] fix: Pulsar functions admin client retrieval in handler to use session context (#53) Updated the PulsarAdminFunctionsToolBuilder to obtain the Pulsar client from the session context instead of a static configuration. This change enhances error handling by checking for a valid session and returning appropriate error messages if the session is not found or if client retrieval fails. --- pkg/mcp/builders/pulsar/functions.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkg/mcp/builders/pulsar/functions.go b/pkg/mcp/builders/pulsar/functions.go index 253e5fd..11fb0a1 100644 --- a/pkg/mcp/builders/pulsar/functions.go +++ b/pkg/mcp/builders/pulsar/functions.go @@ -22,12 +22,12 @@ import ( "encoding/json" "fmt" - "github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) // PulsarAdminFunctionsToolBuilder implements the ToolBuilder interface for Pulsar admin functions operations @@ -211,8 +211,16 @@ func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsTool() mcp.To // Migrated from the original handler logic func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Create Pulsar client with API version V3 - client := cmdutils.NewPulsarClientWithAPIVersion(config.V3) + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminV3Client() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + } // Extract and validate operation parameter operation, err := request.RequireString("operation") From c2fba3474c84525d29e561685432069c0e974836 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 2 Sep 2025 20:04:44 +0800 Subject: [PATCH 36/85] feat: Add CLAUDE.md and abstract MCP tool builder checker (#54) --- CLAUDE.md | 112 ++++++++++++++++++++++++++++++ pkg/mcp/builders/base.go | 10 +++ pkg/mcp/builders/registry.go | 7 +- pkg/mcp/builders/registry_test.go | 11 +++ 4 files changed, 135 insertions(+), 5 deletions(-) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..9eaaa86 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,112 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Build Commands + +### Build the server binary +```bash +make build +# Or directly: +go build -o bin/snmcp cmd/streamnative-mcp-server/main.go +``` + +### Run tests +```bash +go test -race ./... +# Run a specific test: +go test -race ./pkg/mcp/builders/... +``` + +### Docker operations +```bash +make docker-build # Build local Docker image +make docker-build-push # Build and push multi-platform image +``` + +### License checking +```bash +make license-check # Check license headers +make license-fix # Fix license headers +``` + +## Architecture Overview + +The StreamNative MCP Server implements the Model Context Protocol to enable AI agents to interact with Apache Kafka, Apache Pulsar, and StreamNative Cloud resources. + +### Core Components + +1. **Session Management** (`pkg/config/`, `pkg/kafka/`, `pkg/pulsar/`) + - Three types of sessions: SNCloudSession, KafkaSession, PulsarSession + - Sessions manage client connections and authentication + - Sessions are created and configured based on command-line flags + +2. **MCP Server** (`pkg/mcp/`) + - Central server implementation using `mark3labs/mcp-go` library + - Handles tool registration and request routing + - Features can be enabled/disabled via `--features` flag + +3. **Tool Builders** (`pkg/mcp/builders/`) + - Registry pattern for registering MCP tools + - Separate builders for Kafka and Pulsar operations + - Each builder creates tools with specific operations (admin, client, etc.) + +4. **PFTools** (`pkg/mcp/pftools/`) + - Abstraction layer for Pulsar Functions as MCP tools + - Dynamic tool generation from deployed Pulsar Functions + - Circuit breaker pattern for resilience + - Schema handling for input/output validation + +### Key Design Patterns + +1. **Builder Pattern**: Tool builders (`pkg/mcp/builders/`) register tools dynamically based on enabled features +2. **Session Pattern**: Separate sessions for different services (Kafka, Pulsar, SNCloud) with lazy initialization +3. **Registry Pattern**: Central registry (`pkg/mcp/builders/registry.go`) manages all tool builders +4. **Circuit Breaker**: Used in PFTools for handling function invocation failures + +## Development Guidelines + +### Adding New Tools + +1. Create a new builder in `pkg/mcp/builders/kafka/` or `pkg/mcp/builders/pulsar/` +2. Implement the `Builder` interface with `Build()` method +3. Register the builder in the appropriate tools file (e.g., `kafka_admin_*_tools.go`) +4. Add feature flag support in `pkg/mcp/features.go` + +### Session Context + +The server maintains session context that gets passed to tools via the context: +- Pulsar admin client retrieval: Use `session.GetAdminClient()` or `session.GetAdminV3Client()` +- Kafka client retrieval: Use `session.GetKafkaSession()` methods +- Always check for nil sessions before use + +### Error Handling + +- Use wrapped errors with context: `fmt.Errorf("failed to X: %w", err)` +- Check session availability before operations +- Return meaningful error messages for AI agent consumption + +## Testing + +Tests follow standard Go testing patterns: +- Unit tests alongside source files (`*_test.go`) +- Use `testify` for assertions +- Mock external dependencies where appropriate + +## Important Files + +- `cmd/streamnative-mcp-server/main.go` - Entry point +- `pkg/cmd/mcp/server.go` - Server setup +- `pkg/mcp/server.go` - MCP server implementation +- `pkg/mcp/builders/registry.go` - Tool registration +- `pkg/mcp/pftools/manager.go` - Pulsar Functions management +- `pkg/config/config.go` - Configuration structures + +## Configuration + +The server supports three modes: +1. **StreamNative Cloud**: Requires `--organization` and `--key-file` +2. **External Kafka**: Use `--use-external-kafka` with Kafka connection parameters +3. **External Pulsar**: Use `--use-external-pulsar` with Pulsar connection parameters + +When `--pulsar-instance` and `--pulsar-cluster` are provided together, context management tools are disabled as the context is pre-configured. \ No newline at end of file diff --git a/pkg/mcp/builders/base.go b/pkg/mcp/builders/base.go index d374351..072cfd2 100644 --- a/pkg/mcp/builders/base.go +++ b/pkg/mcp/builders/base.go @@ -26,6 +26,13 @@ import ( "github.com/mark3labs/mcp-go/server" ) +// FeatureChecker defines the interface for checking feature requirements +// It provides methods to determine if required features are available +type FeatureChecker interface { + // HasAnyRequiredFeature checks if any of the required features are present in the provided list + HasAnyRequiredFeature(features []string) bool +} + // ToolBuilder defines the interface that all tool builders must implement // It specifies the methods required for building and managing MCP tools type ToolBuilder interface { @@ -40,6 +47,9 @@ type ToolBuilder interface { // Validate validates the builder configuration Validate(config ToolBuildConfig) error + + // Embed FeatureChecker interface + FeatureChecker } // ToolBuildConfig contains all configuration information needed to build tools diff --git a/pkg/mcp/builders/registry.go b/pkg/mcp/builders/registry.go index 4bdbe0d..c928308 100644 --- a/pkg/mcp/builders/registry.go +++ b/pkg/mcp/builders/registry.go @@ -188,11 +188,8 @@ func (r *ToolRegistry) BuildAllWithFeatures(readOnly bool, features []string) ([ } // Check if the builder needs these features - // Use interface method instead of type assertion - if featureChecker, ok := builder.(interface{ HasAnyRequiredFeature([]string) bool }); ok { - if !featureChecker.HasAnyRequiredFeature(features) { - continue // Skip builders that don't need these features - } + if !builder.HasAnyRequiredFeature(features) { + continue // Skip builders that don't need these features } if err := builder.Validate(config); err != nil { diff --git a/pkg/mcp/builders/registry_test.go b/pkg/mcp/builders/registry_test.go index 3e3b325..815c5ee 100644 --- a/pkg/mcp/builders/registry_test.go +++ b/pkg/mcp/builders/registry_test.go @@ -87,6 +87,17 @@ func (m *MockToolBuilder) Validate(config ToolBuildConfig) error { return fmt.Errorf("no matching features found") } +func (m *MockToolBuilder) HasAnyRequiredFeature(features []string) bool { + for _, required := range m.features { + for _, provided := range features { + if required == provided { + return true + } + } + } + return false +} + func (m *MockToolBuilder) GetMetadata() ToolMetadata { return m.metadata } From bfa468cb97415ea0d2f43aec8f698299711a4f25 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Wed, 3 Sep 2025 23:00:12 +0800 Subject: [PATCH 37/85] feat: Enhance Pulsar Function Manager with cluster error handling (#57) --- pkg/mcp/pftools/errors.go | 15 ++++++++- pkg/mcp/pftools/manager.go | 40 ++++++++++++---------- pkg/mcp/pftools/types.go | 50 +++++++++++++++------------- pkg/mcp/pulsar_functions_as_tools.go | 8 +++++ 4 files changed, 72 insertions(+), 41 deletions(-) diff --git a/pkg/mcp/pftools/errors.go b/pkg/mcp/pftools/errors.go index 7fa0f72..801c1ce 100644 --- a/pkg/mcp/pftools/errors.go +++ b/pkg/mcp/pftools/errors.go @@ -1,8 +1,21 @@ package pftools -import "errors" +import ( + "errors" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/rest" +) var ( ErrFunctionNotFound = errors.New("function not found") ErrNotOurMessage = errors.New("not our message") ) + +// IsClusterUnhealthy checks if an error indicates cluster health issues +func IsClusterUnhealthy(err error) bool { + if restErr, ok := err.(rest.Error); ok { + return restErr.Code == 503 && strings.Contains(restErr.Reason, "no healthy upstream") + } + return false +} diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index 651522b..880723f 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -89,23 +89,24 @@ func NewPulsarFunctionManager(snServer *Server, readOnly bool, options *ManagerO // Create the manager manager := &PulsarFunctionManager{ - adminClient: adminClient, - v2adminClient: v2adminClient, - pulsarClient: pulsarClient, - fnToToolMap: make(map[string]*FunctionTool), - mutex: sync.RWMutex{}, - producerCache: make(map[string]pulsarclient.Producer), - producerMutex: sync.RWMutex{}, - pollInterval: options.PollInterval, - stopCh: make(chan struct{}), - callInProgressMap: make(map[string]context.CancelFunc), - mcpServer: snServer.MCPServer, - readOnly: readOnly, - defaultTimeout: options.DefaultTimeout, - circuitBreakers: make(map[string]*CircuitBreaker), - tenantNamespaces: options.TenantNamespaces, - strictExport: options.StrictExport, - sessionID: sessionID, + adminClient: adminClient, + v2adminClient: v2adminClient, + pulsarClient: pulsarClient, + fnToToolMap: make(map[string]*FunctionTool), + mutex: sync.RWMutex{}, + producerCache: make(map[string]pulsarclient.Producer), + producerMutex: sync.RWMutex{}, + pollInterval: options.PollInterval, + stopCh: make(chan struct{}), + callInProgressMap: make(map[string]context.CancelFunc), + mcpServer: snServer.MCPServer, + readOnly: readOnly, + defaultTimeout: options.DefaultTimeout, + circuitBreakers: make(map[string]*CircuitBreaker), + tenantNamespaces: options.TenantNamespaces, + strictExport: options.StrictExport, + sessionID: sessionID, + clusterErrorHandler: options.ClusterErrorHandler, } return manager, nil @@ -154,6 +155,11 @@ func (m *PulsarFunctionManager) updateFunctions() { functions, err := m.getFunctionsList() if err != nil { log.Printf("Failed to get functions list: %v", err) + + // Check if this is a cluster health error and invoke callback if configured + if IsClusterUnhealthy(err) && m.clusterErrorHandler != nil { + go m.clusterErrorHandler(m, err) + } return } diff --git a/pkg/mcp/pftools/types.go b/pkg/mcp/pftools/types.go index c44356e..cb5080f 100644 --- a/pkg/mcp/pftools/types.go +++ b/pkg/mcp/pftools/types.go @@ -31,23 +31,24 @@ import ( // PulsarFunctionManager manages the lifecycle of Pulsar Functions as MCP tools type PulsarFunctionManager struct { - adminClient cmdutils.Client - v2adminClient cmdutils.Client - pulsarClient pulsar.Client - fnToToolMap map[string]*FunctionTool - mutex sync.RWMutex - producerCache map[string]pulsar.Producer - producerMutex sync.RWMutex - pollInterval time.Duration - stopCh chan struct{} - callInProgressMap map[string]context.CancelFunc - mcpServer *server.MCPServer - readOnly bool - defaultTimeout time.Duration - circuitBreakers map[string]*CircuitBreaker - tenantNamespaces []string - strictExport bool - sessionID string + adminClient cmdutils.Client + v2adminClient cmdutils.Client + pulsarClient pulsar.Client + fnToToolMap map[string]*FunctionTool + mutex sync.RWMutex + producerCache map[string]pulsar.Producer + producerMutex sync.RWMutex + pollInterval time.Duration + stopCh chan struct{} + callInProgressMap map[string]context.CancelFunc + mcpServer *server.MCPServer + readOnly bool + defaultTimeout time.Duration + circuitBreakers map[string]*CircuitBreaker + tenantNamespaces []string + strictExport bool + sessionID string + clusterErrorHandler ClusterErrorHandler } type FunctionTool struct { @@ -84,13 +85,16 @@ const ( StateClosed ) +type ClusterErrorHandler func(*PulsarFunctionManager, error) + type ManagerOptions struct { - PollInterval time.Duration - DefaultTimeout time.Duration - FailureThreshold int - ResetTimeout time.Duration - TenantNamespaces []string - StrictExport bool + PollInterval time.Duration + DefaultTimeout time.Duration + FailureThreshold int + ResetTimeout time.Duration + TenantNamespaces []string + StrictExport bool + ClusterErrorHandler ClusterErrorHandler } func DefaultManagerOptions() *ManagerOptions { diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go index 7e7e423..95f1c13 100644 --- a/pkg/mcp/pulsar_functions_as_tools.go +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -66,6 +66,14 @@ func (s *Server) PulsarFunctionManagedMcpTools(readOnly bool, features []string, options := pftools2.DefaultManagerOptions() + // Configure cluster error handler for graceful cleanup + options.ClusterErrorHandler = func(_ *pftools2.PulsarFunctionManager, err error) { + log.Printf("Cluster health error detected: %v", err) + log.Printf("Consider implementing cleanup logic here (e.g., stopping manager, notifying monitoring systems)") + // The calling service can implement specific cleanup logic here + // For example: stop the manager, send alerts, implement backoff strategies + } + if s.SNCloudSession.Ctx.Organization == "" || s.SNCloudSession.Ctx.PulsarInstance == "" || s.SNCloudSession.Ctx.PulsarCluster == "" { log.Printf("Skipping Pulsar Functions as MCP Tools because both organization, pulsar instance and pulsar cluster are not set") return From db2bf83f4b3abe4869caf2af54589e97cb43fcd7 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Wed, 29 Oct 2025 10:43:10 +0800 Subject: [PATCH 38/85] fix pftools auth error (#58) --- .gitignore | 3 ++- pkg/mcp/pftools/errors.go | 7 +++++++ pkg/mcp/pftools/manager.go | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b32c529..577a846 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ tmp/ # Go vendor .cursor/ -agents/ \ No newline at end of file +agents/ +.serena/ diff --git a/pkg/mcp/pftools/errors.go b/pkg/mcp/pftools/errors.go index 801c1ce..ff93ce5 100644 --- a/pkg/mcp/pftools/errors.go +++ b/pkg/mcp/pftools/errors.go @@ -19,3 +19,10 @@ func IsClusterUnhealthy(err error) bool { } return false } + +func IsAuthError(err error) bool { + if restErr, ok := err.(rest.Error); ok { + return restErr.Code == 403 + } + return false +} diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index 880723f..2317347 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -157,7 +157,7 @@ func (m *PulsarFunctionManager) updateFunctions() { log.Printf("Failed to get functions list: %v", err) // Check if this is a cluster health error and invoke callback if configured - if IsClusterUnhealthy(err) && m.clusterErrorHandler != nil { + if (IsClusterUnhealthy(err) || IsAuthError(err)) && m.clusterErrorHandler != nil { go m.clusterErrorHandler(m, err) } return From 1ccb99a65eca330b19fbe7a5914ac113d6206efc Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Tue, 16 Dec 2025 09:48:47 +0800 Subject: [PATCH 39/85] build(dependencies): update module dependencies (#62) --- go.mod | 24 +- go.sum | 51 +- go.work.sum | 11 +- pkg/schema/avro_core_test.go | 7 +- pkg/schema/avro_test.go | 7 +- pkg/schema/boolean_test.go | 7 +- pkg/schema/json_test.go | 7 +- pkg/schema/number_test.go | 7 +- pkg/schema/string_test.go | 7 +- sdk/sdk-apiserver/api_apis.go | 20 +- .../api_authorization_streamnative_io.go | 20 +- ..._authorization_streamnative_io_v1alpha1.go | 725 +- .../api_billing_streamnative_io.go | 20 +- .../api_billing_streamnative_io_v1alpha1.go | 5384 +++--- .../api_cloud_streamnative_io.go | 20 +- .../api_cloud_streamnative_io_v1alpha1.go | 14348 ++++++++-------- .../api_cloud_streamnative_io_v1alpha2.go | 4082 ++--- .../api_compute_streamnative_io.go | 20 +- .../api_compute_streamnative_io_v1alpha1.go | 1430 +- sdk/sdk-apiserver/api_custom_objects.go | 1467 +- sdk/sdk-apiserver/api_version.go | 20 +- sdk/sdk-apiserver/client.go | 10 +- sdk/sdk-apiserver/configuration.go | 17 +- sdk/sdk-apiserver/go.mod | 4 +- sdk/sdk-apiserver/go.sum | 4 +- ...is_authorization_v1alpha1_cloud_storage.go | 2 - ...g_apis_authorization_v1alpha1_condition.go | 10 +- ...apis_authorization_v1alpha1_iam_account.go | 10 +- ...authorization_v1alpha1_iam_account_list.go | 8 +- ...authorization_v1alpha1_iam_account_spec.go | 10 +- ...thorization_v1alpha1_iam_account_status.go | 2 - ...pis_authorization_v1alpha1_organization.go | 2 - ...rization_v1alpha1_pool_member_reference.go | 4 +- ...is_authorization_v1alpha1_resource_rule.go | 2 - ...kg_apis_authorization_v1alpha1_role_ref.go | 8 +- ...ation_v1alpha1_self_subject_rbac_review.go | 10 +- ..._v1alpha1_self_subject_rbac_review_spec.go | 2 - ...1alpha1_self_subject_rbac_review_status.go | 2 - ...tion_v1alpha1_self_subject_rules_review.go | 10 +- ...v1alpha1_self_subject_rules_review_spec.go | 2 - ...alpha1_self_subject_rules_review_status.go | 2 - ...ation_v1alpha1_self_subject_user_review.go | 6 +- ...1alpha1_self_subject_user_review_status.go | 2 - ...horization_v1alpha1_subject_role_review.go | 10 +- ...ation_v1alpha1_subject_role_review_spec.go | 2 - ...ion_v1alpha1_subject_role_review_status.go | 2 - ...orization_v1alpha1_subject_rules_review.go | 10 +- ...tion_v1alpha1_subject_rules_review_spec.go | 2 - ...on_v1alpha1_subject_rules_review_status.go | 2 - ...kg_apis_authorization_v1alpha1_user_ref.go | 10 +- ...illing_v1alpha1_customer_portal_request.go | 10 +- ...g_v1alpha1_customer_portal_request_spec.go | 6 +- ...v1alpha1_customer_portal_request_status.go | 8 +- ...er_pkg_apis_billing_v1alpha1_offer_item.go | 6 +- ..._apis_billing_v1alpha1_offer_item_price.go | 6 +- ...ing_v1alpha1_offer_item_price_recurring.go | 6 +- ...g_apis_billing_v1alpha1_offer_reference.go | 6 +- ...kg_apis_billing_v1alpha1_payment_intent.go | 10 +- ...is_billing_v1alpha1_payment_intent_list.go | 8 +- ...is_billing_v1alpha1_payment_intent_spec.go | 8 +- ..._billing_v1alpha1_payment_intent_status.go | 2 - ...g_apis_billing_v1alpha1_price_reference.go | 4 +- ...pkg_apis_billing_v1alpha1_private_offer.go | 8 +- ...pis_billing_v1alpha1_private_offer_list.go | 8 +- ...pis_billing_v1alpha1_private_offer_spec.go | 10 +- ...erver_pkg_apis_billing_v1alpha1_product.go | 10 +- ..._pkg_apis_billing_v1alpha1_product_list.go | 8 +- ...pkg_apis_billing_v1alpha1_product_price.go | 4 +- ...apis_billing_v1alpha1_product_reference.go | 4 +- ..._pkg_apis_billing_v1alpha1_product_spec.go | 6 +- ...kg_apis_billing_v1alpha1_product_status.go | 2 - ...s_billing_v1alpha1_product_status_price.go | 4 +- ..._pkg_apis_billing_v1alpha1_public_offer.go | 8 +- ...apis_billing_v1alpha1_public_offer_list.go | 8 +- ...apis_billing_v1alpha1_public_offer_spec.go | 4 +- ..._pkg_apis_billing_v1alpha1_setup_intent.go | 10 +- ...apis_billing_v1alpha1_setup_intent_list.go | 8 +- ...billing_v1alpha1_setup_intent_reference.go | 4 +- ...apis_billing_v1alpha1_setup_intent_spec.go | 4 +- ...is_billing_v1alpha1_setup_intent_status.go | 2 - ...ha1_stripe_customer_portal_request_spec.go | 2 - ...1_stripe_customer_portal_request_status.go | 2 - ..._billing_v1alpha1_stripe_payment_intent.go | 4 +- ...illing_v1alpha1_stripe_price_recurrence.go | 6 +- ...apis_billing_v1alpha1_stripe_price_spec.go | 4 +- ...is_billing_v1alpha1_stripe_product_spec.go | 2 - ...is_billing_v1alpha1_stripe_setup_intent.go | 2 - ...lling_v1alpha1_stripe_subscription_spec.go | 2 - ..._pkg_apis_billing_v1alpha1_subscription.go | 10 +- ...is_billing_v1alpha1_subscription_intent.go | 10 +- ...lling_v1alpha1_subscription_intent_list.go | 8 +- ...lling_v1alpha1_subscription_intent_spec.go | 6 +- ...ing_v1alpha1_subscription_intent_status.go | 10 +- ...apis_billing_v1alpha1_subscription_item.go | 6 +- ...apis_billing_v1alpha1_subscription_list.go | 8 +- ...billing_v1alpha1_subscription_reference.go | 4 +- ...apis_billing_v1alpha1_subscription_spec.go | 12 +- ...is_billing_v1alpha1_subscription_status.go | 6 +- ...1_subscription_status_subscription_item.go | 2 - ...lling_v1alpha1_suger_entitlement_review.go | 10 +- ..._v1alpha1_suger_entitlement_review_spec.go | 2 - ...1alpha1_suger_entitlement_review_status.go | 2 - ...pkg_apis_billing_v1alpha1_suger_product.go | 2 - ...pis_billing_v1alpha1_suger_product_spec.go | 2 - ...v1alpha1_suger_subscription_intent_spec.go | 2 - ...illing_v1alpha1_suger_subscription_spec.go | 2 - ...er_pkg_apis_billing_v1alpha1_test_clock.go | 10 +- ...g_apis_billing_v1alpha1_test_clock_list.go | 8 +- ...g_apis_billing_v1alpha1_test_clock_spec.go | 2 - ...apis_billing_v1alpha1_test_clock_status.go | 4 +- ...i_server_pkg_apis_billing_v1alpha1_tier.go | 2 - ..._server_pkg_apis_cloud_v1alpha1_api_key.go | 10 +- ...er_pkg_apis_cloud_v1alpha1_api_key_list.go | 8 +- ...er_pkg_apis_cloud_v1alpha1_api_key_spec.go | 4 +- ..._pkg_apis_cloud_v1alpha1_api_key_status.go | 4 +- ...erver_pkg_apis_cloud_v1alpha1_audit_log.go | 2 - ...apis_cloud_v1alpha1_auto_scaling_policy.go | 4 +- ...pis_cloud_v1alpha1_aws_cloud_connection.go | 2 - ...pis_cloud_v1alpha1_aws_pool_member_spec.go | 2 - ...kg_apis_cloud_v1alpha1_azure_connection.go | 8 +- ...s_cloud_v1alpha1_azure_pool_member_spec.go | 2 - ...pis_cloud_v1alpha1_billing_account_spec.go | 2 - ...ver_pkg_apis_cloud_v1alpha1_book_keeper.go | 6 +- ...v1alpha1_book_keeper_node_resource_spec.go | 2 - ...loud_v1alpha1_book_keeper_set_reference.go | 4 +- ...cloud_v1alpha1_bookkeeper_node_resource.go | 2 - ...i_server_pkg_apis_cloud_v1alpha1_broker.go | 6 +- ...loud_v1alpha1_broker_node_resource_spec.go | 2 - ...pi_server_pkg_apis_cloud_v1alpha1_chain.go | 4 +- ...kg_apis_cloud_v1alpha1_cloud_connection.go | 10 +- ...is_cloud_v1alpha1_cloud_connection_list.go | 8 +- ...is_cloud_v1alpha1_cloud_connection_spec.go | 10 +- ..._cloud_v1alpha1_cloud_connection_status.go | 4 +- ...g_apis_cloud_v1alpha1_cloud_environment.go | 10 +- ...s_cloud_v1alpha1_cloud_environment_list.go | 8 +- ...s_cloud_v1alpha1_cloud_environment_spec.go | 10 +- ...cloud_v1alpha1_cloud_environment_status.go | 4 +- ...er_pkg_apis_cloud_v1alpha1_cluster_role.go | 10 +- ...pis_cloud_v1alpha1_cluster_role_binding.go | 10 +- ...loud_v1alpha1_cluster_role_binding_list.go | 8 +- ...loud_v1alpha1_cluster_role_binding_spec.go | 4 +- ...ud_v1alpha1_cluster_role_binding_status.go | 2 - ...g_apis_cloud_v1alpha1_cluster_role_list.go | 8 +- ...g_apis_cloud_v1alpha1_cluster_role_spec.go | 2 - ...apis_cloud_v1alpha1_cluster_role_status.go | 2 - ...erver_pkg_apis_cloud_v1alpha1_condition.go | 12 +- ...pkg_apis_cloud_v1alpha1_condition_group.go | 8 +- ...i_server_pkg_apis_cloud_v1alpha1_config.go | 6 +- ...is_cloud_v1alpha1_default_node_resource.go | 2 - ..._api_server_pkg_apis_cloud_v1alpha1_dns.go | 2 - ...i_server_pkg_apis_cloud_v1alpha1_domain.go | 8 +- ...rver_pkg_apis_cloud_v1alpha1_domain_tls.go | 2 - ...pkg_apis_cloud_v1alpha1_encrypted_token.go | 2 - ..._pkg_apis_cloud_v1alpha1_encryption_key.go | 2 - ...pkg_apis_cloud_v1alpha1_endpoint_access.go | 2 - ...ver_pkg_apis_cloud_v1alpha1_exec_config.go | 2 - ...er_pkg_apis_cloud_v1alpha1_exec_env_var.go | 4 +- ..._pkg_apis_cloud_v1alpha1_failed_cluster.go | 2 - ...apis_cloud_v1alpha1_failed_cluster_role.go | 2 - ...ver_pkg_apis_cloud_v1alpha1_failed_role.go | 2 - ...apis_cloud_v1alpha1_failed_role_binding.go | 2 - ...loud_v1alpha1_g_cloud_organization_spec.go | 2 - ...cloud_v1alpha1_g_cloud_pool_member_spec.go | 4 +- ..._server_pkg_apis_cloud_v1alpha1_gateway.go | 4 +- ..._pkg_apis_cloud_v1alpha1_gateway_status.go | 2 - ...pis_cloud_v1alpha1_gcp_cloud_connection.go | 2 - ...cloud_v1alpha1_generic_pool_member_spec.go | 4 +- ...r_pkg_apis_cloud_v1alpha1_identity_pool.go | 10 +- ..._apis_cloud_v1alpha1_identity_pool_list.go | 8 +- ..._apis_cloud_v1alpha1_identity_pool_spec.go | 8 +- ...pis_cloud_v1alpha1_identity_pool_status.go | 2 - ...r_pkg_apis_cloud_v1alpha1_installed_csv.go | 4 +- ...rver_pkg_apis_cloud_v1alpha1_invitation.go | 2 - ...cloud_v1alpha1_lakehouse_storage_config.go | 10 +- ..._apis_cloud_v1alpha1_maintenance_window.go | 6 +- ...ver_pkg_apis_cloud_v1alpha1_master_auth.go | 6 +- ..._server_pkg_apis_cloud_v1alpha1_network.go | 2 - ..._pkg_apis_cloud_v1alpha1_o_auth2_config.go | 2 - ...r_pkg_apis_cloud_v1alpha1_oidc_provider.go | 10 +- ..._apis_cloud_v1alpha1_oidc_provider_list.go | 8 +- ..._apis_cloud_v1alpha1_oidc_provider_spec.go | 4 +- ...pis_cloud_v1alpha1_oidc_provider_status.go | 2 - ...er_pkg_apis_cloud_v1alpha1_organization.go | 10 +- ...g_apis_cloud_v1alpha1_organization_list.go | 8 +- ...g_apis_cloud_v1alpha1_organization_spec.go | 22 +- ...apis_cloud_v1alpha1_organization_status.go | 2 - ...apis_cloud_v1alpha1_organization_stripe.go | 2 - ..._apis_cloud_v1alpha1_organization_suger.go | 2 - ...api_server_pkg_apis_cloud_v1alpha1_pool.go | 10 +- ...erver_pkg_apis_cloud_v1alpha1_pool_list.go | 8 +- ...ver_pkg_apis_cloud_v1alpha1_pool_member.go | 10 +- ...ha1_pool_member_connection_options_spec.go | 2 - ...pha1_pool_member_istio_gateway_selector.go | 2 - ...v1alpha1_pool_member_istio_gateway_spec.go | 4 +- ..._v1alpha1_pool_member_istio_gateway_tls.go | 2 - ...s_cloud_v1alpha1_pool_member_istio_spec.go | 2 - ...kg_apis_cloud_v1alpha1_pool_member_list.go | 8 +- ...s_cloud_v1alpha1_pool_member_monitoring.go | 4 +- ..._cloud_v1alpha1_pool_member_pulsar_spec.go | 2 - ...1alpha1_pool_member_pulsar_spec_catalog.go | 2 - ...1alpha1_pool_member_pulsar_spec_channel.go | 2 - ...is_cloud_v1alpha1_pool_member_reference.go | 4 +- ...kg_apis_cloud_v1alpha1_pool_member_spec.go | 30 +- ..._apis_cloud_v1alpha1_pool_member_status.go | 10 +- ...1alpha1_pool_member_tiered_storage_spec.go | 2 - ...ver_pkg_apis_cloud_v1alpha1_pool_option.go | 10 +- ...kg_apis_cloud_v1alpha1_pool_option_list.go | 8 +- ...pis_cloud_v1alpha1_pool_option_location.go | 4 +- ...kg_apis_cloud_v1alpha1_pool_option_spec.go | 12 +- ..._apis_cloud_v1alpha1_pool_option_status.go | 2 - ...server_pkg_apis_cloud_v1alpha1_pool_ref.go | 4 +- ...erver_pkg_apis_cloud_v1alpha1_pool_spec.go | 10 +- ...ver_pkg_apis_cloud_v1alpha1_pool_status.go | 2 - ...pkg_apis_cloud_v1alpha1_private_service.go | 2 - ..._apis_cloud_v1alpha1_private_service_id.go | 2 - ...kg_apis_cloud_v1alpha1_protocols_config.go | 2 - ..._pkg_apis_cloud_v1alpha1_pulsar_cluster.go | 10 +- ...1alpha1_pulsar_cluster_component_status.go | 2 - ...apis_cloud_v1alpha1_pulsar_cluster_list.go | 8 +- ...apis_cloud_v1alpha1_pulsar_cluster_spec.go | 28 +- ...is_cloud_v1alpha1_pulsar_cluster_status.go | 12 +- ..._pkg_apis_cloud_v1alpha1_pulsar_gateway.go | 10 +- ...apis_cloud_v1alpha1_pulsar_gateway_list.go | 8 +- ...apis_cloud_v1alpha1_pulsar_gateway_spec.go | 8 +- ...is_cloud_v1alpha1_pulsar_gateway_status.go | 2 - ...pkg_apis_cloud_v1alpha1_pulsar_instance.go | 10 +- ...pis_cloud_v1alpha1_pulsar_instance_auth.go | 4 +- ...pis_cloud_v1alpha1_pulsar_instance_list.go | 8 +- ...pis_cloud_v1alpha1_pulsar_instance_spec.go | 4 +- ...s_cloud_v1alpha1_pulsar_instance_status.go | 2 - ...ud_v1alpha1_pulsar_instance_status_auth.go | 4 +- ...ha1_pulsar_instance_status_auth_o_auth2.go | 4 +- ..._cloud_v1alpha1_pulsar_service_endpoint.go | 4 +- ...ver_pkg_apis_cloud_v1alpha1_rbac_status.go | 4 +- ...ver_pkg_apis_cloud_v1alpha1_region_info.go | 6 +- ...api_server_pkg_apis_cloud_v1alpha1_role.go | 10 +- ...er_pkg_apis_cloud_v1alpha1_role_binding.go | 10 +- ...s_cloud_v1alpha1_role_binding_condition.go | 8 +- ...g_apis_cloud_v1alpha1_role_binding_list.go | 8 +- ...g_apis_cloud_v1alpha1_role_binding_spec.go | 8 +- ...apis_cloud_v1alpha1_role_binding_status.go | 2 - ...pkg_apis_cloud_v1alpha1_role_definition.go | 2 - ...erver_pkg_apis_cloud_v1alpha1_role_list.go | 8 +- ...server_pkg_apis_cloud_v1alpha1_role_ref.go | 6 +- ...erver_pkg_apis_cloud_v1alpha1_role_spec.go | 2 - ...ver_pkg_apis_cloud_v1alpha1_role_status.go | 2 - ...i_server_pkg_apis_cloud_v1alpha1_secret.go | 18 +- ...ver_pkg_apis_cloud_v1alpha1_secret_list.go | 8 +- ...kg_apis_cloud_v1alpha1_secret_reference.go | 4 +- ...g_apis_cloud_v1alpha1_self_registration.go | 8 +- ...is_cloud_v1alpha1_self_registration_aws.go | 2 - ...s_cloud_v1alpha1_self_registration_spec.go | 14 +- ..._cloud_v1alpha1_self_registration_suger.go | 2 - ...pkg_apis_cloud_v1alpha1_service_account.go | 6 +- ..._cloud_v1alpha1_service_account_binding.go | 10 +- ...d_v1alpha1_service_account_binding_list.go | 8 +- ...d_v1alpha1_service_account_binding_spec.go | 2 - ...v1alpha1_service_account_binding_status.go | 2 - ...pis_cloud_v1alpha1_service_account_list.go | 8 +- ...s_cloud_v1alpha1_service_account_status.go | 2 - ..._pkg_apis_cloud_v1alpha1_sharing_config.go | 2 - ..._api_server_pkg_apis_cloud_v1alpha1_srn.go | 18 +- ...apis_cloud_v1alpha1_stripe_subscription.go | 10 +- ...cloud_v1alpha1_stripe_subscription_list.go | 8 +- ...cloud_v1alpha1_stripe_subscription_spec.go | 2 - ...oud_v1alpha1_stripe_subscription_status.go | 2 - ..._server_pkg_apis_cloud_v1alpha1_subject.go | 8 +- ...g_apis_cloud_v1alpha1_subscription_item.go | 8 +- ...ud_v1alpha1_support_access_options_spec.go | 4 +- ...pi_server_pkg_apis_cloud_v1alpha1_taint.go | 2 - ...rver_pkg_apis_cloud_v1alpha1_toleration.go | 2 - ...api_server_pkg_apis_cloud_v1alpha1_user.go | 10 +- ...erver_pkg_apis_cloud_v1alpha1_user_list.go | 8 +- ...erver_pkg_apis_cloud_v1alpha1_user_name.go | 4 +- ...erver_pkg_apis_cloud_v1alpha1_user_spec.go | 8 +- ...ver_pkg_apis_cloud_v1alpha1_user_status.go | 2 - ...i_server_pkg_apis_cloud_v1alpha1_window.go | 2 - ...cloud_v1alpha1_zoo_keeper_set_reference.go | 4 +- ...kg_apis_cloud_v1alpha2_aws_subscription.go | 10 +- ...is_cloud_v1alpha2_aws_subscription_list.go | 8 +- ...is_cloud_v1alpha2_aws_subscription_spec.go | 4 +- ..._cloud_v1alpha2_aws_subscription_status.go | 2 - ...loud_v1alpha2_book_keeper_resource_spec.go | 2 - ...pkg_apis_cloud_v1alpha2_book_keeper_set.go | 10 +- ...pis_cloud_v1alpha2_book_keeper_set_list.go | 8 +- ...s_cloud_v1alpha2_book_keeper_set_option.go | 10 +- ...ud_v1alpha2_book_keeper_set_option_list.go | 8 +- ...ud_v1alpha2_book_keeper_set_option_spec.go | 2 - ..._v1alpha2_book_keeper_set_option_status.go | 2 - ...loud_v1alpha2_book_keeper_set_reference.go | 4 +- ...pis_cloud_v1alpha2_book_keeper_set_spec.go | 14 +- ...s_cloud_v1alpha2_book_keeper_set_status.go | 2 - ...cloud_v1alpha2_bookkeeper_node_resource.go | 2 - ...erver_pkg_apis_cloud_v1alpha2_condition.go | 12 +- ...is_cloud_v1alpha2_default_node_resource.go | 2 - ...ver_pkg_apis_cloud_v1alpha2_monitor_set.go | 10 +- ...kg_apis_cloud_v1alpha2_monitor_set_list.go | 8 +- ...kg_apis_cloud_v1alpha2_monitor_set_spec.go | 8 +- ..._apis_cloud_v1alpha2_monitor_set_status.go | 2 - ...is_cloud_v1alpha2_pool_member_reference.go | 4 +- ..._pkg_apis_cloud_v1alpha2_sharing_config.go | 2 - ...cloud_v1alpha2_zoo_keeper_resource_spec.go | 2 - ..._pkg_apis_cloud_v1alpha2_zoo_keeper_set.go | 10 +- ...apis_cloud_v1alpha2_zoo_keeper_set_list.go | 8 +- ...is_cloud_v1alpha2_zoo_keeper_set_option.go | 10 +- ...oud_v1alpha2_zoo_keeper_set_option_list.go | 8 +- ...oud_v1alpha2_zoo_keeper_set_option_spec.go | 2 - ...d_v1alpha2_zoo_keeper_set_option_status.go | 2 - ...cloud_v1alpha2_zoo_keeper_set_reference.go | 4 +- ...apis_cloud_v1alpha2_zoo_keeper_set_spec.go | 12 +- ...is_cloud_v1alpha2_zoo_keeper_set_status.go | 2 - ...rver_pkg_apis_compute_v1alpha1_artifact.go | 32 +- ...ver_pkg_apis_compute_v1alpha1_condition.go | 12 +- ...ver_pkg_apis_compute_v1alpha1_container.go | 14 +- ...pis_compute_v1alpha1_flink_blob_storage.go | 2 - ..._apis_compute_v1alpha1_flink_deployment.go | 10 +- ..._compute_v1alpha1_flink_deployment_list.go | 8 +- ..._compute_v1alpha1_flink_deployment_spec.go | 10 +- ...ompute_v1alpha1_flink_deployment_status.go | 4 +- ...erver_pkg_apis_compute_v1alpha1_logging.go | 8 +- ...r_pkg_apis_compute_v1alpha1_object_meta.go | 2 - ..._pkg_apis_compute_v1alpha1_pod_template.go | 6 +- ...apis_compute_v1alpha1_pod_template_spec.go | 22 +- ..._compute_v1alpha1_pool_member_reference.go | 4 +- ...rver_pkg_apis_compute_v1alpha1_pool_ref.go | 4 +- ...pkg_apis_compute_v1alpha1_resource_spec.go | 2 - ..._apis_compute_v1alpha1_security_context.go | 10 +- ...pkg_apis_compute_v1alpha1_user_metadata.go | 10 +- ...server_pkg_apis_compute_v1alpha1_volume.go | 4 +- ...ute_v1alpha1_vvp_custom_resource_status.go | 8 +- ...compute_v1alpha1_vvp_deployment_details.go | 18 +- ...1alpha1_vvp_deployment_details_template.go | 4 +- ...vp_deployment_details_template_metadata.go | 2 - ...a1_vvp_deployment_details_template_spec.go | 18 +- ...t_details_template_spec_kubernetes_spec.go | 6 +- ...ha1_vvp_deployment_kubernetes_resources.go | 4 +- ..._v1alpha1_vvp_deployment_running_status.go | 4 +- ..._compute_v1alpha1_vvp_deployment_status.go | 8 +- ...1alpha1_vvp_deployment_status_condition.go | 12 +- ...vvp_deployment_status_deployment_status.go | 4 +- ...v1alpha1_vvp_deployment_system_metadata.go | 12 +- ...ompute_v1alpha1_vvp_deployment_template.go | 6 +- ...e_v1alpha1_vvp_deployment_template_spec.go | 6 +- ...s_compute_v1alpha1_vvp_restore_strategy.go | 6 +- ...ver_pkg_apis_compute_v1alpha1_workspace.go | 10 +- ...kg_apis_compute_v1alpha1_workspace_list.go | 8 +- ...kg_apis_compute_v1alpha1_workspace_spec.go | 4 +- ..._apis_compute_v1alpha1_workspace_status.go | 2 - sdk/sdk-apiserver/model_v1_affinity.go | 6 +- sdk/sdk-apiserver/model_v1_api_group.go | 4 +- sdk/sdk-apiserver/model_v1_api_group_list.go | 2 - sdk/sdk-apiserver/model_v1_api_resource.go | 2 - .../model_v1_api_resource_list.go | 2 - sdk/sdk-apiserver/model_v1_condition.go | 2 - .../model_v1_config_map_env_source.go | 2 - .../model_v1_config_map_key_selector.go | 2 - .../model_v1_config_map_volume_source.go | 2 - sdk/sdk-apiserver/model_v1_delete_options.go | 6 +- sdk/sdk-apiserver/model_v1_env_from_source.go | 4 +- sdk/sdk-apiserver/model_v1_env_var.go | 4 +- sdk/sdk-apiserver/model_v1_env_var_source.go | 8 +- sdk/sdk-apiserver/model_v1_exec_action.go | 2 - .../model_v1_group_version_for_discovery.go | 2 - sdk/sdk-apiserver/model_v1_grpc_action.go | 2 - sdk/sdk-apiserver/model_v1_http_get_action.go | 2 - sdk/sdk-apiserver/model_v1_http_header.go | 2 - sdk/sdk-apiserver/model_v1_key_to_path.go | 2 - sdk/sdk-apiserver/model_v1_label_selector.go | 2 - .../model_v1_label_selector_requirement.go | 2 - sdk/sdk-apiserver/model_v1_list_meta.go | 2 - .../model_v1_local_object_reference.go | 2 - .../model_v1_managed_fields_entry.go | 2 - sdk/sdk-apiserver/model_v1_node_affinity.go | 4 +- sdk/sdk-apiserver/model_v1_node_selector.go | 2 - .../model_v1_node_selector_requirement.go | 2 - .../model_v1_node_selector_term.go | 2 - .../model_v1_object_field_selector.go | 2 - sdk/sdk-apiserver/model_v1_object_meta.go | 2 - sdk/sdk-apiserver/model_v1_owner_reference.go | 2 - sdk/sdk-apiserver/model_v1_pod_affinity.go | 2 - .../model_v1_pod_affinity_term.go | 4 +- .../model_v1_pod_anti_affinity.go | 2 - sdk/sdk-apiserver/model_v1_preconditions.go | 2 - .../model_v1_preferred_scheduling_term.go | 2 - sdk/sdk-apiserver/model_v1_probe.go | 12 +- .../model_v1_resource_field_selector.go | 2 - .../model_v1_resource_requirements.go | 2 - .../model_v1_secret_env_source.go | 2 - .../model_v1_secret_key_selector.go | 2 - .../model_v1_secret_volume_source.go | 2 - .../model_v1_server_address_by_client_cidr.go | 2 - sdk/sdk-apiserver/model_v1_status.go | 6 +- sdk/sdk-apiserver/model_v1_status_cause.go | 2 - sdk/sdk-apiserver/model_v1_status_details.go | 2 - .../model_v1_tcp_socket_action.go | 2 - sdk/sdk-apiserver/model_v1_toleration.go | 2 - sdk/sdk-apiserver/model_v1_volume_mount.go | 2 - sdk/sdk-apiserver/model_v1_watch_event.go | 4 +- .../model_v1_weighted_pod_affinity_term.go | 2 - sdk/sdk-apiserver/model_version_info.go | 18 +- sdk/sdk-kafkaconnect/api_default.go | 774 +- sdk/sdk-kafkaconnect/client.go | 153 +- sdk/sdk-kafkaconnect/configuration.go | 17 +- .../model_config_field_definition.go | 8 +- sdk/sdk-kafkaconnect/model_config_info.go | 8 +- sdk/sdk-kafkaconnect/model_config_infos.go | 12 +- sdk/sdk-kafkaconnect/model_config_key_info.go | 28 +- .../model_config_value_info.go | 12 +- sdk/sdk-kafkaconnect/model_connector_info.go | 10 +- .../model_connector_offset.go | 6 +- .../model_connector_offsets.go | 4 +- sdk/sdk-kafkaconnect/model_connector_state.go | 10 +- .../model_connector_state_info.go | 10 +- .../model_connector_task_id.go | 6 +- .../model_create_connector_request.go | 10 +- ...odel_function_mesh_connector_definition.go | 48 +- sdk/sdk-kafkaconnect/model_plugin_info.go | 8 +- sdk/sdk-kafkaconnect/model_server_info.go | 8 +- .../model_sn_connector_offset.go | 6 +- .../model_sn_connector_offsets.go | 4 +- sdk/sdk-kafkaconnect/model_task_info.go | 6 +- sdk/sdk-kafkaconnect/model_task_state.go | 12 +- sdk/sdk-kafkaconnect/utils.go | 2 +- 423 files changed, 15446 insertions(+), 15531 deletions(-) diff --git a/go.mod b/go.mod index 555f782..606d990 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/google/go-cmp v0.7.0 github.com/hamba/avro/v2 v2.28.0 - github.com/mark3labs/mcp-go v0.34.0 + github.com/mark3labs/mcp-go v0.43.2 github.com/mitchellh/go-homedir v1.1.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 @@ -22,7 +22,7 @@ require ( github.com/twmb/franz-go/pkg/kadm v1.16.0 github.com/twmb/franz-go/pkg/sr v1.3.0 github.com/twmb/tlscfg v1.2.1 - golang.org/x/oauth2 v0.25.0 + golang.org/x/oauth2 v0.27.0 gopkg.in/yaml.v2 v2.4.0 k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 ) @@ -33,16 +33,18 @@ require ( github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/DataDog/zstd v1.5.0 // indirect github.com/ardielle/ardielle-go v1.5.2 // indirect + github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bits-and-blooms/bitset v1.4.0 // indirect + github.com/buger/jsonparser v1.1.1 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/dvsekhvalnov/jose2go v1.6.0 // indirect + github.com/dvsekhvalnov/jose2go v1.7.0 // indirect github.com/fatih/color v1.7.0 // indirect github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-viper/mapstructure/v2 v2.3.0 // indirect + github.com/go-viper/mapstructure/v2 v2.4.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.2 // indirect @@ -52,11 +54,13 @@ require ( github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/invopop/jsonschema v0.13.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/compress v1.17.11 // indirect github.com/kris-nova/logger v0.0.0-20181127235838-fd0d87064b06 // indirect github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b // indirect github.com/magiconair/properties v1.8.7 // indirect + github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.2 // indirect github.com/mattn/go-isatty v0.0.8 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect @@ -83,15 +87,15 @@ require ( github.com/stretchr/objx v0.5.2 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect + github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.9.0 // indirect - golang.org/x/crypto v0.36.0 // indirect - golang.org/x/mod v0.23.0 // indirect - golang.org/x/net v0.38.0 // indirect - golang.org/x/sys v0.31.0 // indirect - golang.org/x/term v0.30.0 // indirect - golang.org/x/text v0.23.0 // indirect + golang.org/x/crypto v0.45.0 // indirect + golang.org/x/mod v0.29.0 // indirect + golang.org/x/sys v0.38.0 // indirect + golang.org/x/term v0.37.0 // indirect + golang.org/x/text v0.31.0 // indirect google.golang.org/protobuf v1.36.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index ed804a8..8426de5 100644 --- a/go.sum +++ b/go.sum @@ -21,10 +21,14 @@ github.com/ardielle/ardielle-go v1.5.2 h1:TilHTpHIQJ27R1Tl/iITBzMwiUGSlVfiVhwDNG github.com/ardielle/ardielle-go v1.5.2/go.mod h1:I4hy1n795cUhaVt/ojz83SNVCYIGsAFAONtv2Dr7HUI= github.com/ardielle/ardielle-tools v1.5.4/go.mod h1:oZN+JRMnqGiIhrzkRN9l26Cej9dEx4jeNG6A+AdkShk= github.com/aws/aws-sdk-go v1.32.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0= +github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk= +github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bits-and-blooms/bitset v1.4.0 h1:+YZ8ePm+He2pU3dZlIZiOeAKfrBkXi1lSrXJ/Xzgbu8= github.com/bits-and-blooms/bitset v1.4.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA= +github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs= +github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= @@ -56,8 +60,8 @@ github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= -github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/dvsekhvalnov/jose2go v1.7.0 h1:bnQc8+GMnidJZA8zc6lLEAb4xNrIqHwO+9TzqvtQZPo= +github.com/dvsekhvalnov/jose2go v1.7.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= @@ -75,8 +79,8 @@ github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk= -github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs= +github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= @@ -107,9 +111,12 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/invopop/jsonschema v0.13.0 h1:KvpoAJWEjR3uD9Kbm2HWJmqsEaHt8lBUpd0qHcIi21E= +github.com/invopop/jsonschema v0.13.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0= github.com/jawher/mow.cli v1.0.4/go.mod h1:5hQj2V8g+qYmLUVWqu4Wuja1pI57M83EChYLVZ0sMKk= github.com/jawher/mow.cli v1.2.0/go.mod h1:y+pcA3jBAdo/GIZx/0rFjw/K2bVEODP9rfZOfaiq8Ko= github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= @@ -129,8 +136,10 @@ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= -github.com/mark3labs/mcp-go v0.34.0 h1:eWy7WBGvhk6EyAAyVzivTCprE52iXJwNtvHV6Cv3bR0= -github.com/mark3labs/mcp-go v0.34.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mark3labs/mcp-go v0.43.2 h1:21PUSlWWiSbUPQwXIJ5WKlETixpFpq+WBpbMGDSVy/I= +github.com/mark3labs/mcp-go v0.43.2/go.mod h1:YnJfOL382MIWDx1kMY+2zsRHU/q78dBg9aFb8W6Thdw= github.com/mattn/go-colorable v0.1.2 h1:/bC9yWikZXAL9uJdulbSfyVNIR3n3trXl+v8+1sx8mU= github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8 h1:HLtExJ+uU2HOZ+wI0Tt5DtUDrx8yhUqDcp7fYERX4CE= @@ -247,6 +256,8 @@ github.com/twmb/franz-go/pkg/sr v1.3.0 h1:UlXpZ2suGgylzQBUb6Wn1jzqVShoPGzt7Bbixz github.com/twmb/franz-go/pkg/sr v1.3.0/go.mod h1:gpd2Xl5/prkj3gyugcL+rVzagjaxFqMgvKMYcUlrpDw= github.com/twmb/tlscfg v1.2.1 h1:IU2efmP9utQEIV2fufpZjPq7xgcZK4qu25viD51BB44= github.com/twmb/tlscfg v1.2.1/go.mod h1:GameEQddljI+8Es373JfQEBvtI4dCTLKWGJbqT2kErs= +github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc= +github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= @@ -265,18 +276,18 @@ go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI= go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= -golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= -golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM= -golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q= +golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4= +golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= +golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= -golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= -golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= -golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= +golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= +golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M= +golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -286,16 +297,16 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= -golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= +golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU= +golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= -golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/go.work.sum b/go.work.sum index 30206e5..dc904a4 100644 --- a/go.work.sum +++ b/go.work.sum @@ -9,6 +9,7 @@ cloud.google.com/go/auth/oauth2adapt v0.2.6 h1:V6a6XDu2lTwPZWOawrAa9HUK+DB2zfJyT cloud.google.com/go/auth/oauth2adapt v0.2.6/go.mod h1:AlmsELtlEBnaNTL7jCj8VQFLy6mbZv0s4Q7NGBeQ5E8= cloud.google.com/go/bigquery v1.8.0 h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA= cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/compute/metadata v0.6.0 h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I= cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg= cloud.google.com/go/datastore v1.1.0 h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ= @@ -95,6 +96,8 @@ github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0 h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw= github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= github.com/google/martian/v3 v3.0.0 h1:pMen7vLs8nvgEYhywH3KDWJIJTeEr2ULsVWHWYHQyBs= @@ -120,6 +123,7 @@ github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJ github.com/jawher/mow.cli v1.2.0 h1:e6ViPPy+82A/NFF/cfbq3Lr6q4JHKT9tyHwTCcUQgQw= github.com/jmespath/go-jmespath v0.3.0 h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc= github.com/jonboulle/clockwork v0.4.0/go.mod h1:xgRqUGwRcjKCO1vbZUEtSLrqKoPSsUpK7fnezOII0kc= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/jstemmer/go-junit-report v0.9.1 h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o= @@ -138,8 +142,6 @@ github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+ github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/mark3labs/mcp-go v0.23.1 h1:RzTzZ5kJ+HxwnutKA4rll8N/pKV6Wh5dhCmiJUu5S9I= github.com/mark3labs/mcp-go v0.23.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= -github.com/mark3labs/mcp-go v0.34.0 h1:eWy7WBGvhk6EyAAyVzivTCprE52iXJwNtvHV6Cv3bR0= -github.com/mark3labs/mcp-go v0.34.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= @@ -204,7 +206,10 @@ golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/cr4/aHLv9xU8Kkadrw= +golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= @@ -218,6 +223,8 @@ golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY= golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= +golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ= +golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= google.golang.org/api v0.30.0 h1:yfrXXP61wVuLb0vBcG6qaOoIoqYEzOQS8jum51jkv2w= google.golang.org/api v0.215.0 h1:jdYF4qnyczlEz2ReWIsosNLDuzXyvFHJtI5gcr0J7t0= diff --git a/pkg/schema/avro_core_test.go b/pkg/schema/avro_core_test.go index 58362a4..eeeb615 100644 --- a/pkg/schema/avro_core_test.go +++ b/pkg/schema/avro_core_test.go @@ -1,6 +1,7 @@ package schema import ( + "encoding/json" "testing" "github.com/hamba/avro/v2" @@ -394,9 +395,9 @@ func TestProcessAvroSchemaStringToMCPToolInput(t *testing.T) { var actualTool, expectedTool mcp.Tool actualTool = mcp.NewTool("test", opts...) expectedTool = mcp.NewTool("test", tt.expectedOptions...) - actualToolInputSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() - expectedToolInputSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() - assert.Equal(t, string(expectedToolInputSchemaJSON), string(actualToolInputSchemaJSON), "ToolOption did not produce the same property configuration. Expected: %+v, Got: %+v", expectedTool, actualTool) + actualToolInputSchemaJSON, _ := json.Marshal(actualTool.InputSchema) + expectedToolInputSchemaJSON, _ := json.Marshal(expectedTool.InputSchema) + assert.JSONEq(t, string(expectedToolInputSchemaJSON), string(actualToolInputSchemaJSON), "ToolOption did not produce the same property configuration. Expected: %+v, Got: %+v", expectedTool, actualTool) } }) } diff --git a/pkg/schema/avro_test.go b/pkg/schema/avro_test.go index 82d6248..bb8ce0b 100644 --- a/pkg/schema/avro_test.go +++ b/pkg/schema/avro_test.go @@ -1,6 +1,7 @@ package schema import ( + "encoding/json" "testing" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" @@ -127,9 +128,9 @@ func TestAvroConverter_ToMCPToolInputSchemaProperties(t *testing.T) { var expectedTool, actualTool mcp.Tool expectedTool = mcp.NewTool("test", tt.expectedOptions...) actualTool = mcp.NewTool("test", opts...) - expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() - actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() - assert.Equal(t, expectedToolSchemaJSON, actualToolSchemaJSON, "Tool mismatch") + expectedToolSchemaJSON, _ := json.Marshal(expectedTool.InputSchema) + actualToolSchemaJSON, _ := json.Marshal(actualTool.InputSchema) + assert.JSONEq(t, string(expectedToolSchemaJSON), string(actualToolSchemaJSON), "Tool mismatch") } }) } diff --git a/pkg/schema/boolean_test.go b/pkg/schema/boolean_test.go index 9123a00..f8b2e48 100644 --- a/pkg/schema/boolean_test.go +++ b/pkg/schema/boolean_test.go @@ -1,6 +1,7 @@ package schema import ( + "encoding/json" "fmt" "testing" @@ -58,9 +59,9 @@ func TestBooleanConverter_ToMCPToolInputSchemaProperties(t *testing.T) { var expectedTool, actualTool mcp.Tool expectedTool = mcp.NewTool("test", tt.wantOpts...) actualTool = mcp.NewTool("test", gotOpts...) - expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() - actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() - assert.Equal(t, expectedToolSchemaJSON, actualToolSchemaJSON) + expectedToolSchemaJSON, _ := json.Marshal(expectedTool.InputSchema) + actualToolSchemaJSON, _ := json.Marshal(actualTool.InputSchema) + assert.JSONEq(t, string(expectedToolSchemaJSON), string(actualToolSchemaJSON)) if tt.wantErr && err != nil { assert.Contains(t, err.Error(), "expected BOOLEAN schema, got") } diff --git a/pkg/schema/json_test.go b/pkg/schema/json_test.go index dc48caf..ab13a2e 100644 --- a/pkg/schema/json_test.go +++ b/pkg/schema/json_test.go @@ -1,6 +1,7 @@ package schema import ( + "encoding/json" "testing" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" @@ -102,9 +103,9 @@ func TestJSONConverter_ToMCPToolInputSchemaProperties(t *testing.T) { assert.NoError(t, err) var expectedTool = mcp.NewTool("test", tt.expectedOptions...) var actualTool = mcp.NewTool("test", opts...) - expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() - actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() - assert.Equal(t, expectedToolSchemaJSON, actualToolSchemaJSON, "ToolOptions mismatch") + expectedToolSchemaJSON, _ := json.Marshal(expectedTool.InputSchema) + actualToolSchemaJSON, _ := json.Marshal(actualTool.InputSchema) + assert.JSONEq(t, string(expectedToolSchemaJSON), string(actualToolSchemaJSON), "ToolOptions mismatch") } }) } diff --git a/pkg/schema/number_test.go b/pkg/schema/number_test.go index d8d5e43..647df0a 100644 --- a/pkg/schema/number_test.go +++ b/pkg/schema/number_test.go @@ -1,6 +1,7 @@ package schema import ( + "encoding/json" "fmt" "math" "testing" @@ -93,9 +94,9 @@ func TestNumberConverter_ToMCPToolInputSchemaProperties(t *testing.T) { assert.NoError(t, err) var expectedTool = mcp.NewTool("test", tt.expectedProps...) var actualTool = mcp.NewTool("test", props...) - expectedToolSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() - actualToolSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() - assert.Equal(t, string(expectedToolSchemaJSON), string(actualToolSchemaJSON), "ToolOptions mismatch") + expectedToolSchemaJSON, _ := json.Marshal(expectedTool.InputSchema) + actualToolSchemaJSON, _ := json.Marshal(actualTool.InputSchema) + assert.JSONEq(t, string(expectedToolSchemaJSON), string(actualToolSchemaJSON), "ToolOptions mismatch") } }) } diff --git a/pkg/schema/string_test.go b/pkg/schema/string_test.go index 78a66bb..62a203a 100644 --- a/pkg/schema/string_test.go +++ b/pkg/schema/string_test.go @@ -1,6 +1,7 @@ package schema import ( + "encoding/json" "fmt" "testing" @@ -67,9 +68,9 @@ func TestStringConverter_ToMCPToolInputSchemaProperties(t *testing.T) { } var expectedTool = mcp.NewTool("test", gotOpts...) var actualTool = mcp.NewTool("test", tt.wantOpts...) - expectedToolInputSchemaJSON, _ := expectedTool.InputSchema.MarshalJSON() - actualToolInputSchemaJSON, _ := actualTool.InputSchema.MarshalJSON() - assert.Equal(t, string(expectedToolInputSchemaJSON), string(actualToolInputSchemaJSON)) + expectedToolInputSchemaJSON, _ := json.Marshal(expectedTool.InputSchema) + actualToolInputSchemaJSON, _ := json.Marshal(actualTool.InputSchema) + assert.JSONEq(t, string(expectedToolInputSchemaJSON), string(actualToolInputSchemaJSON)) if tt.wantErr && err != nil { assert.Contains(t, err.Error(), tt.errContain) } diff --git a/sdk/sdk-apiserver/api_apis.go b/sdk/sdk-apiserver/api_apis.go index 58dfe90..4a63eea 100644 --- a/sdk/sdk-apiserver/api_apis.go +++ b/sdk/sdk-apiserver/api_apis.go @@ -35,12 +35,11 @@ import ( "net/url" ) - // ApisApiService ApisApi service type ApisApiService service type ApiGetAPIVersionsRequest struct { - ctx context.Context + ctx context.Context ApiService *ApisApiService } @@ -53,24 +52,25 @@ GetAPIVersions Method for GetAPIVersions get available API versions - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAPIVersionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAPIVersionsRequest */ func (a *ApisApiService) GetAPIVersions(ctx context.Context) ApiGetAPIVersionsRequest { return ApiGetAPIVersionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIGroupList +// +// @return V1APIGroupList func (a *ApisApiService) GetAPIVersionsExecute(r ApiGetAPIVersionsRequest) (*V1APIGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroupList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApisApiService.GetAPIVersions") diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io.go b/sdk/sdk-apiserver/api_authorization_streamnative_io.go index 8cf0788..205b8d7 100644 --- a/sdk/sdk-apiserver/api_authorization_streamnative_io.go +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io.go @@ -35,12 +35,11 @@ import ( "net/url" ) - // AuthorizationStreamnativeIoApiService AuthorizationStreamnativeIoApi service type AuthorizationStreamnativeIoApiService service type ApiGetAuthorizationStreamnativeIoAPIGroupRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthorizationStreamnativeIoApiService } @@ -53,24 +52,25 @@ GetAuthorizationStreamnativeIoAPIGroup Method for GetAuthorizationStreamnativeIo get information of a group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAuthorizationStreamnativeIoAPIGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuthorizationStreamnativeIoAPIGroupRequest */ func (a *AuthorizationStreamnativeIoApiService) GetAuthorizationStreamnativeIoAPIGroup(ctx context.Context) ApiGetAuthorizationStreamnativeIoAPIGroupRequest { return ApiGetAuthorizationStreamnativeIoAPIGroupRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIGroup +// +// @return V1APIGroup func (a *AuthorizationStreamnativeIoApiService) GetAuthorizationStreamnativeIoAPIGroupExecute(r ApiGetAuthorizationStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoApiService.GetAuthorizationStreamnativeIoAPIGroup") diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go index d2c271e..eb8d250 100644 --- a/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go @@ -36,17 +36,16 @@ import ( "strings" ) - // AuthorizationStreamnativeIoV1alpha1ApiService AuthorizationStreamnativeIoV1alpha1Api service type AuthorizationStreamnativeIoV1alpha1ApiService service type ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string fieldManager *string } @@ -82,26 +81,27 @@ CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for CreateA create an IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, namespace string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") @@ -185,13 +185,13 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStrea } type ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string fieldManager *string } @@ -227,28 +227,29 @@ CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for C create status of an IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { return ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") @@ -333,12 +334,12 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStrea } type ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest { @@ -373,24 +374,25 @@ CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview Method for Create create a SelfSubjectRbacReview - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest { return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRbacReview") @@ -473,12 +475,12 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStrea } type ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest { @@ -513,24 +515,25 @@ CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview Method for Creat create a SelfSubjectRulesReview - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest { return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectRulesReview") @@ -613,12 +616,12 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStrea } type ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest { @@ -653,24 +656,25 @@ CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview Method for Create create a SelfSubjectUserReview - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest { return ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReview ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SelfSubjectUserReview") @@ -753,12 +757,12 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStrea } type ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest { @@ -793,24 +797,25 @@ CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview Method for CreateAuth create a SubjectRoleReview - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest { return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SubjectRoleReview") @@ -893,12 +898,12 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStrea } type ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest { @@ -933,24 +938,25 @@ CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview Method for CreateAut create a SubjectRulesReview - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview(ctx context.Context) ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest { return ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewExecute(r ApiCreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.CreateAuthorizationStreamnativeIoV1alpha1SubjectRulesReview") @@ -1033,22 +1039,22 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) CreateAuthorizationStrea } type ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1137,26 +1143,27 @@ DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount Method f delete collection of IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount(ctx context.Context, namespace string) ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest { return ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountExecute(r ApiDeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccountRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.DeleteAuthorizationStreamnativeIoV1alpha1CollectionNamespacedIamAccount") @@ -1264,16 +1271,16 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStrea } type ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1320,28 +1327,29 @@ DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for DeleteA delete an IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") @@ -1429,16 +1437,16 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStrea } type ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1485,28 +1493,29 @@ DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for D delete status of an IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { return ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiDeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.DeleteAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") @@ -1594,7 +1603,7 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) DeleteAuthorizationStrea } type ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthorizationStreamnativeIoV1alpha1ApiService } @@ -1607,24 +1616,25 @@ GetAuthorizationStreamnativeIoV1alpha1APIResources Method for GetAuthorizationSt get available resources - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) GetAuthorizationStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest { return ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIResourceList +// +// @return V1APIResourceList func (a *AuthorizationStreamnativeIoV1alpha1ApiService) GetAuthorizationStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetAuthorizationStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIResourceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.GetAuthorizationStreamnativeIoV1alpha1APIResources") @@ -1693,18 +1703,18 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) GetAuthorizationStreamna } type ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -1776,24 +1786,25 @@ ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces Method for Lis list or watch objects of kind IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces(ctx context.Context) ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest { return ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesExecute(r ApiListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ListAuthorizationStreamnativeIoV1alpha1IamAccountForAllNamespaces") @@ -1892,19 +1903,19 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamn } type ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -1976,26 +1987,27 @@ ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for ListAutho list or watch objects of kind IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, namespace string) ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { return ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ListAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") @@ -2095,15 +2107,15 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ListAuthorizationStreamn } type ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) Body(body map[string]interface{}) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { @@ -2144,28 +2156,29 @@ PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for PatchAut partially update the specified IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") @@ -2253,15 +2266,15 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStream } type ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) Body(body map[string]interface{}) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { @@ -2302,28 +2315,29 @@ PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for Pa partially update status of the specified IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { return ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiPatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.PatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") @@ -2411,11 +2425,11 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) PatchAuthorizationStream } type ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -2433,28 +2447,29 @@ ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for ReadAutho read the specified IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") @@ -2528,11 +2543,11 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamn } type ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -2550,28 +2565,29 @@ ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for Rea read status of the specified IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { return ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReadAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") @@ -2645,13 +2661,13 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReadAuthorizationStreamn } type ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string fieldManager *string } @@ -2687,28 +2703,29 @@ ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount Method for Replac replace the specified IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount(ctx context.Context, name string, namespace string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest { return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountExecute(r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccount") @@ -2793,13 +2810,13 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStre } type ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + pretty *string + dryRun *string fieldManager *string } @@ -2835,28 +2852,29 @@ ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for replace status of the specified IamAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { return ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.ReplaceAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") @@ -2941,20 +2959,20 @@ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) ReplaceAuthorizationStre } type ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest struct { - ctx context.Context - ApiService *AuthorizationStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *AuthorizationStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -3026,28 +3044,29 @@ WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus Method for Wa watch changes to status of an object of kind IamAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IamAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IamAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest */ func (a *AuthorizationStreamnativeIoV1alpha1ApiService) WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus(ctx context.Context, name string, namespace string) ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest { return ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *AuthorizationStreamnativeIoV1alpha1ApiService) WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusExecute(r ApiWatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuthorizationStreamnativeIoV1alpha1ApiService.WatchAuthorizationStreamnativeIoV1alpha1NamespacedIamAccountStatus") diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io.go b/sdk/sdk-apiserver/api_billing_streamnative_io.go index c38046e..171a551 100644 --- a/sdk/sdk-apiserver/api_billing_streamnative_io.go +++ b/sdk/sdk-apiserver/api_billing_streamnative_io.go @@ -35,12 +35,11 @@ import ( "net/url" ) - // BillingStreamnativeIoApiService BillingStreamnativeIoApi service type BillingStreamnativeIoApiService service type ApiGetBillingStreamnativeIoAPIGroupRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoApiService } @@ -53,24 +52,25 @@ GetBillingStreamnativeIoAPIGroup Method for GetBillingStreamnativeIoAPIGroup get information of a group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetBillingStreamnativeIoAPIGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBillingStreamnativeIoAPIGroupRequest */ func (a *BillingStreamnativeIoApiService) GetBillingStreamnativeIoAPIGroup(ctx context.Context) ApiGetBillingStreamnativeIoAPIGroupRequest { return ApiGetBillingStreamnativeIoAPIGroupRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIGroup +// +// @return V1APIGroup func (a *BillingStreamnativeIoApiService) GetBillingStreamnativeIoAPIGroupExecute(r ApiGetBillingStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoApiService.GetBillingStreamnativeIoAPIGroup") diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go index d7c75de..03c84a2 100644 --- a/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go @@ -36,18 +36,17 @@ import ( "strings" ) - // BillingStreamnativeIoV1alpha1ApiService BillingStreamnativeIoV1alpha1Api service type BillingStreamnativeIoV1alpha1ApiService service type ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest) ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest { @@ -82,26 +81,27 @@ CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest Method for Cr create a CustomerPortalRequest - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequestRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedCustomerPortalRequest") @@ -185,12 +185,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string fieldManager *string } @@ -226,26 +226,27 @@ CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for CreateBill create a PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") @@ -329,13 +330,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string fieldManager *string } @@ -371,28 +372,29 @@ CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for Crea create status of a PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") @@ -477,12 +479,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string fieldManager *string } @@ -518,26 +520,27 @@ CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for CreateBilli create a PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") @@ -621,13 +624,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string fieldManager *string } @@ -663,28 +666,29 @@ CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for Creat create status of a PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") @@ -769,12 +773,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string fieldManager *string } @@ -810,26 +814,27 @@ CreateBillingStreamnativeIoV1alpha1NamespacedProduct Method for CreateBillingStr create a Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedProduct") @@ -913,13 +918,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string fieldManager *string } @@ -955,28 +960,29 @@ CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for CreateBill create status of a Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedProductStatus") @@ -1061,12 +1067,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string fieldManager *string } @@ -1102,26 +1108,27 @@ CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for CreateBillin create a SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntent") @@ -1205,13 +1212,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string fieldManager *string } @@ -1247,28 +1254,29 @@ CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for Create create status of a SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") @@ -1353,12 +1361,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string fieldManager *string } @@ -1394,26 +1402,27 @@ CreateBillingStreamnativeIoV1alpha1NamespacedSubscription Method for CreateBilli create a Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscription") @@ -1497,12 +1506,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string fieldManager *string } @@ -1538,26 +1547,27 @@ CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for Creat create a SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") @@ -1641,13 +1651,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string fieldManager *string } @@ -1683,28 +1693,29 @@ CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for create status of a SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") @@ -1789,13 +1800,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string fieldManager *string } @@ -1831,28 +1842,29 @@ CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for Creat create status of a Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") @@ -1937,11 +1949,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string fieldManager *string } @@ -1977,24 +1989,25 @@ CreateBillingStreamnativeIoV1alpha1PublicOffer Method for CreateBillingStreamnat create a PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest { return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1PublicOffer") @@ -2077,12 +2090,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string fieldManager *string } @@ -2118,26 +2131,27 @@ CreateBillingStreamnativeIoV1alpha1PublicOfferStatus Method for CreateBillingStr create status of a PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1PublicOfferStatus") @@ -2221,12 +2235,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview) ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest { @@ -2261,24 +2275,25 @@ CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview Method for CreateBilli create a SugerEntitlementReview - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview(ctx context.Context) ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest { return ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewExecute(r ApiCreateBillingStreamnativeIoV1alpha1SugerEntitlementReviewRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1SugerEntitlementReview") @@ -2361,11 +2376,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string fieldManager *string } @@ -2401,24 +2416,25 @@ CreateBillingStreamnativeIoV1alpha1TestClock Method for CreateBillingStreamnativ create a TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClock(ctx context.Context) ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest { return ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClockExecute(r ApiCreateBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1TestClock") @@ -2501,12 +2517,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string fieldManager *string } @@ -2542,26 +2558,27 @@ CreateBillingStreamnativeIoV1alpha1TestClockStatus Method for CreateBillingStrea create status of a TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest { return ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiCreateBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.CreateBillingStreamnativeIoV1alpha1TestClockStatus") @@ -2645,22 +2662,22 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) CreateBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -2749,26 +2766,27 @@ DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent Method for delete collection of PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPaymentIntent") @@ -2876,22 +2894,22 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -2980,26 +2998,27 @@ DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer Method for D delete collection of PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOfferRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedPrivateOffer") @@ -3107,22 +3126,22 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3211,26 +3230,27 @@ DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct Method for Delete delete collection of Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProductRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedProduct") @@ -3338,22 +3358,22 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3442,26 +3462,27 @@ DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent Method for De delete collection of SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSetupIntent") @@ -3569,22 +3590,22 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3673,26 +3694,27 @@ DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription Method for D delete collection of Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscription") @@ -3800,22 +3822,22 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3904,26 +3926,27 @@ DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent Method delete collection of SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent(ctx context.Context, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionNamespacedSubscriptionIntent") @@ -4031,21 +4054,21 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4134,24 +4157,25 @@ DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer Method for DeleteBillin delete collection of PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer(ctx context.Context) ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionPublicOfferRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionPublicOffer") @@ -4258,21 +4282,21 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4361,24 +4385,25 @@ DeleteBillingStreamnativeIoV1alpha1CollectionTestClock Method for DeleteBillingS delete collection of TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionTestClock(ctx context.Context) ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest { return ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1CollectionTestClockExecute(r ApiDeleteBillingStreamnativeIoV1alpha1CollectionTestClockRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1CollectionTestClock") @@ -4485,16 +4510,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4541,28 +4566,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for DeleteBill delete a PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") @@ -4650,16 +4676,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4706,28 +4732,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for Dele delete status of a PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") @@ -4815,16 +4842,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4871,28 +4898,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for DeleteBilli delete a PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") @@ -4980,16 +5008,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -5036,28 +5064,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for Delet delete status of a PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") @@ -5145,16 +5174,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -5201,28 +5230,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedProduct Method for DeleteBillingStr delete a Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedProduct") @@ -5310,16 +5340,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -5366,28 +5396,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for DeleteBill delete status of a Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedProductStatus") @@ -5475,16 +5506,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -5531,28 +5562,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for DeleteBillin delete a SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntent") @@ -5640,16 +5672,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -5696,28 +5728,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for Delete delete status of a SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") @@ -5805,16 +5838,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -5861,28 +5894,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription Method for DeleteBilli delete a Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscription") @@ -5970,16 +6004,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6026,28 +6060,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for Delet delete a SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") @@ -6135,16 +6170,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6191,28 +6226,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for delete status of a SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") @@ -6300,16 +6336,16 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6356,28 +6392,29 @@ DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for Delet delete status of a Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") @@ -6465,15 +6502,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6520,26 +6557,27 @@ DeleteBillingStreamnativeIoV1alpha1PublicOffer Method for DeleteBillingStreamnat delete a PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest { return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1PublicOffer") @@ -6626,15 +6664,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6681,26 +6719,27 @@ DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus Method for DeleteBillingStr delete status of a PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1PublicOfferStatus") @@ -6787,15 +6826,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6842,26 +6881,27 @@ DeleteBillingStreamnativeIoV1alpha1TestClock Method for DeleteBillingStreamnativ delete a TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest { return ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClockExecute(r ApiDeleteBillingStreamnativeIoV1alpha1TestClockRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1TestClock") @@ -6948,15 +6988,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -7003,26 +7043,27 @@ DeleteBillingStreamnativeIoV1alpha1TestClockStatus Method for DeleteBillingStrea delete status of a TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest { return ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiDeleteBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.DeleteBillingStreamnativeIoV1alpha1TestClockStatus") @@ -7109,7 +7150,7 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) DeleteBillingStreamnativeIoV1a } type ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService } @@ -7122,24 +7163,25 @@ GetBillingStreamnativeIoV1alpha1APIResources Method for GetBillingStreamnativeIo get available resources - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) GetBillingStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest { return ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIResourceList +// +// @return V1APIResourceList func (a *BillingStreamnativeIoV1alpha1ApiService) GetBillingStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetBillingStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIResourceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.GetBillingStreamnativeIoV1alpha1APIResources") @@ -7208,19 +7250,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) GetBillingStreamnativeIoV1alph } type ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -7292,26 +7334,27 @@ ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for ListBillingS list or watch objects of kind PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { return ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") @@ -7411,19 +7454,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -7495,26 +7538,27 @@ ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for ListBillingSt list or watch objects of kind PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { return ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") @@ -7614,19 +7658,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -7698,26 +7742,27 @@ ListBillingStreamnativeIoV1alpha1NamespacedProduct Method for ListBillingStreamn list or watch objects of kind Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest { return ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedProduct") @@ -7817,19 +7862,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -7901,26 +7946,27 @@ ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for ListBillingStr list or watch objects of kind SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { return ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSetupIntent") @@ -8020,19 +8066,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -8104,26 +8150,27 @@ ListBillingStreamnativeIoV1alpha1NamespacedSubscription Method for ListBillingSt list or watch objects of kind Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSubscription") @@ -8223,19 +8270,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -8307,26 +8354,27 @@ ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for ListBil list or watch objects of kind SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, namespace string) ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { return ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") @@ -8426,18 +8474,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -8509,24 +8557,25 @@ ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces Method for ListBi list or watch objects of kind PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest { return ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1PaymentIntentForAllNamespaces") @@ -8625,18 +8674,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -8708,24 +8757,25 @@ ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces Method for ListBil list or watch objects of kind PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest { return ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1PrivateOfferForAllNamespaces") @@ -8824,18 +8874,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -8907,24 +8957,25 @@ ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces Method for ListBillingS list or watch objects of kind Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest { return ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1ProductForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1ProductForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1ProductForAllNamespaces") @@ -9023,18 +9074,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -9106,24 +9157,25 @@ ListBillingStreamnativeIoV1alpha1PublicOffer Method for ListBillingStreamnativeI list or watch objects of kind PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest { return ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiListBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1PublicOffer") @@ -9222,18 +9274,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -9305,24 +9357,25 @@ ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces Method for ListBill list or watch objects of kind SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest { return ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1SetupIntentForAllNamespaces") @@ -9421,18 +9474,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -9504,24 +9557,25 @@ ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces Method for ListBil list or watch objects of kind Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest { return ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1SubscriptionForAllNamespaces") @@ -9620,18 +9674,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -9703,24 +9757,25 @@ ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces Method for L list or watch objects of kind SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest { return ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesExecute(r ApiListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1SubscriptionIntentForAllNamespaces") @@ -9819,18 +9874,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiListBillingStreamnativeIoV1alpha1TestClockRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -9902,24 +9957,25 @@ ListBillingStreamnativeIoV1alpha1TestClock Method for ListBillingStreamnativeIoV list or watch objects of kind TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListBillingStreamnativeIoV1alpha1TestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListBillingStreamnativeIoV1alpha1TestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1TestClock(ctx context.Context) ApiListBillingStreamnativeIoV1alpha1TestClockRequest { return ApiListBillingStreamnativeIoV1alpha1TestClockRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alpha1TestClockExecute(r ApiListBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ListBillingStreamnativeIoV1alpha1TestClock") @@ -10018,15 +10074,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ListBillingStreamnativeIoV1alp } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { @@ -10067,28 +10123,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for PatchBillin partially update the specified PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") @@ -10176,15 +10233,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { @@ -10225,28 +10282,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for Patch partially update status of the specified PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") @@ -10334,15 +10392,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { @@ -10383,28 +10441,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for PatchBilling partially update the specified PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") @@ -10492,15 +10551,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { @@ -10541,28 +10600,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for PatchB partially update status of the specified PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") @@ -10650,15 +10710,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { @@ -10699,28 +10759,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedProduct Method for PatchBillingStrea partially update the specified Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedProduct") @@ -10808,15 +10869,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { @@ -10857,28 +10918,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for PatchBillin partially update status of the specified Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedProductStatus") @@ -10966,15 +11028,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { @@ -11015,28 +11077,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for PatchBillingS partially update the specified SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent") @@ -11124,15 +11187,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { @@ -11173,28 +11236,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for PatchBi partially update status of the specified SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") @@ -11282,15 +11346,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { @@ -11331,28 +11395,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedSubscription Method for PatchBilling partially update the specified Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscription") @@ -11440,15 +11505,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { @@ -11489,28 +11554,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for PatchB partially update the specified SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") @@ -11598,15 +11664,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { @@ -11647,28 +11713,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for partially update status of the specified SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") @@ -11756,15 +11823,15 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { @@ -11805,28 +11872,29 @@ PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for PatchB partially update status of the specified Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") @@ -11914,14 +11982,14 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { @@ -11962,26 +12030,27 @@ PatchBillingStreamnativeIoV1alpha1PublicOffer Method for PatchBillingStreamnativ partially update the specified PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest { return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1PublicOffer") @@ -12068,14 +12137,14 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { @@ -12116,26 +12185,27 @@ PatchBillingStreamnativeIoV1alpha1PublicOfferStatus Method for PatchBillingStrea partially update status of the specified PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1PublicOfferStatus") @@ -12222,14 +12292,14 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { @@ -12270,26 +12340,27 @@ PatchBillingStreamnativeIoV1alpha1TestClock Method for PatchBillingStreamnativeI partially update the specified TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest { return ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClockExecute(r ApiPatchBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1TestClock") @@ -12376,14 +12447,14 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) Body(body map[string]interface{}) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { @@ -12424,26 +12495,27 @@ PatchBillingStreamnativeIoV1alpha1TestClockStatus Method for PatchBillingStreamn partially update status of the specified TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { return ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiPatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.PatchBillingStreamnativeIoV1alpha1TestClockStatus") @@ -12530,11 +12602,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) PatchBillingStreamnativeIoV1al } type ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -12552,28 +12624,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for ReadBillingS read the specified PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") @@ -12647,11 +12720,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -12669,28 +12742,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for ReadBi read status of the specified PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") @@ -12764,11 +12838,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -12786,28 +12860,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for ReadBillingSt read the specified PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") @@ -12881,11 +12956,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -12903,28 +12978,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for ReadBil read status of the specified PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") @@ -12998,11 +13074,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13020,28 +13096,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedProduct Method for ReadBillingStreamn read the specified Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedProduct") @@ -13115,11 +13192,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13137,28 +13214,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for ReadBillingS read status of the specified Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedProductStatus") @@ -13232,11 +13310,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13254,28 +13332,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for ReadBillingStr read the specified SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntent") @@ -13349,11 +13428,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13371,28 +13450,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for ReadBill read status of the specified SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") @@ -13466,11 +13546,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13488,28 +13568,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedSubscription Method for ReadBillingSt read the specified Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscription") @@ -13583,11 +13664,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13605,28 +13686,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for ReadBil read the specified SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") @@ -13700,11 +13782,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13722,28 +13804,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for R read status of the specified SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") @@ -13817,11 +13900,11 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -13839,28 +13922,29 @@ ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for ReadBil read status of the specified Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") @@ -13934,10 +14018,10 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -13955,26 +14039,27 @@ ReadBillingStreamnativeIoV1alpha1PublicOffer Method for ReadBillingStreamnativeI read the specified PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest { return ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiReadBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1PublicOffer") @@ -14047,10 +14132,10 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -14068,26 +14153,27 @@ ReadBillingStreamnativeIoV1alpha1PublicOfferStatus Method for ReadBillingStreamn read status of the specified PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1PublicOfferStatus") @@ -14160,10 +14246,10 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1TestClockRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -14181,26 +14267,27 @@ ReadBillingStreamnativeIoV1alpha1TestClock Method for ReadBillingStreamnativeIoV read the specified TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiReadBillingStreamnativeIoV1alpha1TestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReadBillingStreamnativeIoV1alpha1TestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1TestClockRequest { return ApiReadBillingStreamnativeIoV1alpha1TestClockRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClockExecute(r ApiReadBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1TestClock") @@ -14273,10 +14360,10 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -14294,26 +14381,27 @@ ReadBillingStreamnativeIoV1alpha1TestClockStatus Method for ReadBillingStreamnat read status of the specified TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest { return ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiReadBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReadBillingStreamnativeIoV1alpha1TestClockStatus") @@ -14386,13 +14474,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReadBillingStreamnativeIoV1alp } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string fieldManager *string } @@ -14428,28 +14516,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for ReplaceBi replace the specified PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") @@ -14534,13 +14623,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + pretty *string + dryRun *string fieldManager *string } @@ -14576,28 +14665,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for Rep replace status of the specified PaymentIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") @@ -14682,13 +14772,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string fieldManager *string } @@ -14724,28 +14814,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for ReplaceBil replace the specified PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") @@ -14830,13 +14921,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + pretty *string + dryRun *string fieldManager *string } @@ -14872,28 +14963,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for Repl replace status of the specified PrivateOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") @@ -14978,13 +15070,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string fieldManager *string } @@ -15020,28 +15112,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct Method for ReplaceBillingS replace the specified Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedProduct") @@ -15126,13 +15219,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + pretty *string + dryRun *string fieldManager *string } @@ -15168,28 +15261,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for ReplaceBi replace status of the specified Product - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedProductStatus") @@ -15274,13 +15368,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string fieldManager *string } @@ -15316,28 +15410,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for ReplaceBill replace the specified SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntent") @@ -15422,13 +15517,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + pretty *string + dryRun *string fieldManager *string } @@ -15464,28 +15559,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for Repla replace status of the specified SetupIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") @@ -15570,13 +15666,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string fieldManager *string } @@ -15612,28 +15708,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription Method for ReplaceBil replace the specified Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscription") @@ -15718,13 +15815,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string fieldManager *string } @@ -15760,28 +15857,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for Repl replace the specified SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") @@ -15866,13 +15964,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + pretty *string + dryRun *string fieldManager *string } @@ -15908,28 +16006,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method fo replace status of the specified SubscriptionIntent - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") @@ -16014,13 +16113,13 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + pretty *string + dryRun *string fieldManager *string } @@ -16056,28 +16155,29 @@ ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for Repl replace status of the specified Subscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") @@ -16162,12 +16262,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string fieldManager *string } @@ -16203,26 +16303,27 @@ ReplaceBillingStreamnativeIoV1alpha1PublicOffer Method for ReplaceBillingStreamn replace the specified PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest { return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1PublicOffer") @@ -16306,12 +16407,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + pretty *string + dryRun *string fieldManager *string } @@ -16347,26 +16448,27 @@ ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus Method for ReplaceBillingS replace status of the specified PublicOffer - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1PublicOfferStatus") @@ -16450,12 +16552,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string fieldManager *string } @@ -16491,26 +16593,27 @@ ReplaceBillingStreamnativeIoV1alpha1TestClock Method for ReplaceBillingStreamnat replace the specified TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest { return ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClockExecute(r ApiReplaceBillingStreamnativeIoV1alpha1TestClockRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1TestClock") @@ -16594,12 +16697,12 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock - pretty *string - dryRun *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + pretty *string + dryRun *string fieldManager *string } @@ -16635,26 +16738,27 @@ ReplaceBillingStreamnativeIoV1alpha1TestClockStatus Method for ReplaceBillingStr replace status of the specified TestClock - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest { return ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock +// +// @return ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiReplaceBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.ReplaceBillingStreamnativeIoV1alpha1TestClockStatus") @@ -16738,20 +16842,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) ReplaceBillingStreamnativeIoV1 } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16823,28 +16927,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent Method for WatchBillin watch changes to an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntent") @@ -16945,19 +17050,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -17029,26 +17134,27 @@ WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList Method for WatchBi watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentList") @@ -17148,20 +17254,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -17233,28 +17339,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus Method for Watch watch changes to status of an object of kind PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PaymentIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PaymentIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPaymentIntentStatus") @@ -17355,20 +17462,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -17440,28 +17547,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer Method for WatchBilling watch changes to an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOffer") @@ -17562,19 +17670,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -17646,26 +17754,27 @@ WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList Method for WatchBil watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferList") @@ -17765,20 +17874,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -17850,28 +17959,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus Method for WatchB watch changes to status of an object of kind PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PrivateOffer - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PrivateOffer + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedPrivateOfferStatus") @@ -17972,20 +18082,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18057,28 +18167,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedProduct Method for WatchBillingStrea watch changes to an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProduct(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProduct") @@ -18179,19 +18290,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18263,26 +18374,27 @@ WatchBillingStreamnativeIoV1alpha1NamespacedProductList Method for WatchBillingS watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProductList") @@ -18382,20 +18494,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18467,28 +18579,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus Method for WatchBillin watch changes to status of an object of kind Product. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Product - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Product + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedProductStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedProductStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedProductStatus") @@ -18589,20 +18702,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18674,28 +18787,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent Method for WatchBillingS watch changes to an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntent") @@ -18796,19 +18910,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18880,26 +18994,27 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList Method for WatchBill watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentList") @@ -18999,20 +19114,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -19084,28 +19199,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus Method for WatchBi watch changes to status of an object of kind SetupIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SetupIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SetupIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSetupIntentStatus") @@ -19206,20 +19322,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -19291,28 +19407,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSubscription Method for WatchBilling watch changes to an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscription(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscription") @@ -19413,20 +19530,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -19498,28 +19615,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent Method for WatchB watch changes to an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntent") @@ -19620,19 +19738,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -19704,26 +19822,27 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList Method for Wa watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentList") @@ -19823,20 +19942,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -19908,28 +20027,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus Method for watch changes to status of an object of kind SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the SubscriptionIntent - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the SubscriptionIntent + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionIntentStatus") @@ -20030,19 +20150,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -20114,26 +20234,27 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList Method for WatchBil watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList(ctx context.Context, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionList") @@ -20233,20 +20354,20 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -20318,28 +20439,29 @@ WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus Method for WatchB watch changes to status of an object of kind Subscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Subscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Subscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus(ctx context.Context, name string, namespace string) ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1NamespacedSubscriptionStatus") @@ -20440,18 +20562,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -20523,24 +20645,25 @@ WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces Method for W watch individual changes to a list of PaymentIntent. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest { return ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PaymentIntentListForAllNamespaces") @@ -20639,18 +20762,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -20722,24 +20845,25 @@ WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces Method for Wa watch individual changes to a list of PrivateOffer. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest { return ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PrivateOfferListForAllNamespaces") @@ -20838,18 +20962,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -20921,24 +21045,25 @@ WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces Method for WatchBi watch individual changes to a list of Product. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest { return ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1ProductListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1ProductListForAllNamespaces") @@ -21037,19 +21162,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -21121,26 +21246,27 @@ WatchBillingStreamnativeIoV1alpha1PublicOffer Method for WatchBillingStreamnativ watch changes to an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOffer(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest { return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferExecute(r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PublicOffer") @@ -21240,18 +21366,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -21323,24 +21449,25 @@ WatchBillingStreamnativeIoV1alpha1PublicOfferList Method for WatchBillingStreamn watch individual changes to a list of PublicOffer. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferList(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest { return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferListExecute(r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PublicOfferList") @@ -21439,19 +21566,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -21523,26 +21650,27 @@ WatchBillingStreamnativeIoV1alpha1PublicOfferStatus Method for WatchBillingStrea watch changes to status of an object of kind PublicOffer. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PublicOffer - @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PublicOffer + @return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferStatus(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1PublicOfferStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1PublicOfferStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1PublicOfferStatus") @@ -21642,18 +21770,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -21725,24 +21853,25 @@ WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces Method for Wat watch individual changes to a list of SetupIntent. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest { return ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1SetupIntentListForAllNamespaces") @@ -21841,18 +21970,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -21924,24 +22053,25 @@ WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces Method watch individual changes to a list of SubscriptionIntent. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest { return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1SubscriptionIntentListForAllNamespaces") @@ -22040,18 +22170,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -22123,24 +22253,25 @@ WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces Method for Wa watch individual changes to a list of Subscription. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest { return ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesExecute(r ApiWatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1SubscriptionListForAllNamespaces") @@ -22239,19 +22370,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -22323,26 +22454,27 @@ WatchBillingStreamnativeIoV1alpha1TestClock Method for WatchBillingStreamnativeI watch changes to an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClock(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest { return ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockExecute(r ApiWatchBillingStreamnativeIoV1alpha1TestClockRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1TestClock") @@ -22442,18 +22574,18 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -22525,24 +22657,25 @@ WatchBillingStreamnativeIoV1alpha1TestClockList Method for WatchBillingStreamnat watch individual changes to a list of TestClock. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockList(ctx context.Context) ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest { return ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockListExecute(r ApiWatchBillingStreamnativeIoV1alpha1TestClockListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1TestClockList") @@ -22641,19 +22774,19 @@ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1al } type ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest struct { - ctx context.Context - ApiService *BillingStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *BillingStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -22725,26 +22858,27 @@ WatchBillingStreamnativeIoV1alpha1TestClockStatus Method for WatchBillingStreamn watch changes to status of an object of kind TestClock. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the TestClock - @return ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the TestClock + @return ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest */ func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockStatus(ctx context.Context, name string) ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest { return ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *BillingStreamnativeIoV1alpha1ApiService) WatchBillingStreamnativeIoV1alpha1TestClockStatusExecute(r ApiWatchBillingStreamnativeIoV1alpha1TestClockStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BillingStreamnativeIoV1alpha1ApiService.WatchBillingStreamnativeIoV1alpha1TestClockStatus") diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io.go b/sdk/sdk-apiserver/api_cloud_streamnative_io.go index 7e2aec3..fa840fd 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io.go @@ -35,12 +35,11 @@ import ( "net/url" ) - // CloudStreamnativeIoApiService CloudStreamnativeIoApi service type CloudStreamnativeIoApiService service type ApiGetCloudStreamnativeIoAPIGroupRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoApiService } @@ -53,24 +52,25 @@ GetCloudStreamnativeIoAPIGroup Method for GetCloudStreamnativeIoAPIGroup get information of a group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetCloudStreamnativeIoAPIGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCloudStreamnativeIoAPIGroupRequest */ func (a *CloudStreamnativeIoApiService) GetCloudStreamnativeIoAPIGroup(ctx context.Context) ApiGetCloudStreamnativeIoAPIGroupRequest { return ApiGetCloudStreamnativeIoAPIGroupRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIGroup +// +// @return V1APIGroup func (a *CloudStreamnativeIoApiService) GetCloudStreamnativeIoAPIGroupExecute(r ApiGetCloudStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoApiService.GetCloudStreamnativeIoAPIGroup") diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go index 892af16..12b1ca9 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go @@ -36,16 +36,15 @@ import ( "strings" ) - // CloudStreamnativeIoV1alpha1ApiService CloudStreamnativeIoV1alpha1Api service type CloudStreamnativeIoV1alpha1ApiService service type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string fieldManager *string } @@ -81,24 +80,25 @@ CreateCloudStreamnativeIoV1alpha1ClusterRole Method for CreateCloudStreamnativeI create a ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest { return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRole") @@ -181,11 +181,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -221,24 +221,25 @@ CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for CreateCloudStream create a ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleBinding") @@ -321,12 +322,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -362,26 +363,27 @@ CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for CreateCloud create status of a ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") @@ -465,12 +467,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string fieldManager *string } @@ -506,26 +508,27 @@ CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for CreateCloudStreamn create status of a ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1ClusterRoleStatus") @@ -609,12 +612,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string fieldManager *string } @@ -650,26 +653,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for CreateCloudStreamna create an APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKey") @@ -753,13 +757,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string fieldManager *string } @@ -795,28 +799,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for CreateCloudSt create status of an APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") @@ -901,12 +906,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string fieldManager *string } @@ -942,26 +947,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for CreateClou create a CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnection") @@ -1045,13 +1051,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string fieldManager *string } @@ -1087,28 +1093,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for Crea create status of a CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") @@ -1193,12 +1200,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string fieldManager *string } @@ -1234,26 +1241,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for CreateClo create a CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") @@ -1337,13 +1345,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string fieldManager *string } @@ -1379,28 +1387,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for Cre create status of a CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") @@ -1485,12 +1494,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string fieldManager *string } @@ -1526,26 +1535,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for CreateCloudSt create an IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPool") @@ -1629,13 +1639,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string fieldManager *string } @@ -1671,28 +1681,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for CreateC create status of an IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") @@ -1777,12 +1788,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string fieldManager *string } @@ -1818,26 +1829,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for CreateCloudSt create an OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") @@ -1921,13 +1933,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string fieldManager *string } @@ -1963,28 +1975,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for CreateC create status of an OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") @@ -2069,12 +2082,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string fieldManager *string } @@ -2110,26 +2123,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPool Method for CreateCloudStreamnati create a Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPool") @@ -2213,12 +2227,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string fieldManager *string } @@ -2254,26 +2268,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for CreateCloudStre create a PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMember") @@ -2357,13 +2372,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string fieldManager *string } @@ -2399,28 +2414,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for CreateClo create status of a PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") @@ -2505,12 +2521,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string fieldManager *string } @@ -2546,26 +2562,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for CreateCloudStre create a PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOption") @@ -2649,13 +2666,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string fieldManager *string } @@ -2691,28 +2708,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for CreateClo create status of a PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") @@ -2797,13 +2815,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string fieldManager *string } @@ -2839,28 +2857,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for CreateCloudStre create status of a Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPoolStatus") @@ -2945,12 +2964,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string fieldManager *string } @@ -2986,26 +3005,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for CreateCloudS create a PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") @@ -3089,13 +3109,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string fieldManager *string } @@ -3131,28 +3151,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for Create create status of a PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") @@ -3237,12 +3258,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string fieldManager *string } @@ -3278,26 +3299,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for CreateCloudS create a PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") @@ -3381,13 +3403,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string fieldManager *string } @@ -3423,28 +3445,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for Create create status of a PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") @@ -3529,12 +3552,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string fieldManager *string } @@ -3570,26 +3593,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for CreateCloud create a PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") @@ -3673,13 +3697,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string fieldManager *string } @@ -3715,28 +3739,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for Creat create status of a PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") @@ -3821,12 +3846,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string fieldManager *string } @@ -3862,26 +3887,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedRole Method for CreateCloudStreamnati create a Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRole") @@ -3965,12 +3991,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -4006,26 +4032,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for CreateCloudStr create a RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBinding") @@ -4109,13 +4136,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -4151,28 +4178,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for CreateCl create status of a RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") @@ -4257,13 +4285,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string fieldManager *string } @@ -4299,28 +4327,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for CreateCloudStre create status of a Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedRoleStatus") @@ -4405,12 +4434,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string fieldManager *string } @@ -4446,26 +4475,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedSecret Method for CreateCloudStreamna create a Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedSecret") @@ -4549,13 +4579,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string fieldManager *string } @@ -4591,28 +4621,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for CreateCloudSt create status of a Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedSecretStatus") @@ -4697,12 +4728,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string fieldManager *string } @@ -4738,26 +4769,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for CreateCloud create a ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccount") @@ -4841,12 +4873,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string fieldManager *string } @@ -4882,26 +4914,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for Crea create a ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") @@ -4985,13 +5018,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string fieldManager *string } @@ -5027,28 +5060,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method fo create status of a ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") @@ -5133,13 +5167,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string fieldManager *string } @@ -5175,28 +5209,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for Creat create status of a ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") @@ -5281,12 +5316,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string fieldManager *string } @@ -5322,26 +5357,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for CreateC create a StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") @@ -5425,13 +5461,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string fieldManager *string } @@ -5467,28 +5503,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for C create status of a StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") @@ -5573,12 +5610,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string fieldManager *string } @@ -5614,26 +5651,27 @@ CreateCloudStreamnativeIoV1alpha1NamespacedUser Method for CreateCloudStreamnati create an User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedUser") @@ -5717,13 +5755,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string fieldManager *string } @@ -5759,28 +5797,29 @@ CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for CreateCloudStre create status of an User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1NamespacedUserStatus") @@ -5865,11 +5904,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string fieldManager *string } @@ -5905,24 +5944,25 @@ CreateCloudStreamnativeIoV1alpha1Organization Method for CreateCloudStreamnative create an Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1Organization(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest { return ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiCreateCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1Organization") @@ -6005,12 +6045,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string fieldManager *string } @@ -6046,26 +6086,27 @@ CreateCloudStreamnativeIoV1alpha1OrganizationStatus Method for CreateCloudStream create status of an Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1OrganizationStatus") @@ -6149,12 +6190,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + dryRun *string fieldManager *string - pretty *string + pretty *string } func (r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) Body(body ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration) ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest { @@ -6189,24 +6230,25 @@ CreateCloudStreamnativeIoV1alpha1SelfRegistration Method for CreateCloudStreamna create a SelfRegistration - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1SelfRegistration(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest { return ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha1SelfRegistrationExecute(r ApiCreateCloudStreamnativeIoV1alpha1SelfRegistrationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.CreateCloudStreamnativeIoV1alpha1SelfRegistration") @@ -6289,15 +6331,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) CreateCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6344,26 +6386,27 @@ DeleteCloudStreamnativeIoV1alpha1ClusterRole Method for DeleteCloudStreamnativeI delete a ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest { return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRole") @@ -6450,15 +6493,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6505,26 +6548,27 @@ DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for DeleteCloudStream delete a ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBinding") @@ -6611,15 +6655,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6666,26 +6710,27 @@ DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for DeleteCloud delete status of a ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") @@ -6772,15 +6817,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -6827,26 +6872,27 @@ DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for DeleteCloudStreamn delete status of a ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1ClusterRoleStatus") @@ -6933,21 +6979,21 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -7036,24 +7082,25 @@ DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole Method for DeleteCloudStr delete collection of ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRole") @@ -7160,21 +7207,21 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -7263,24 +7310,25 @@ DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding Method for DeleteC delete collection of ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBindingRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionClusterRoleBinding") @@ -7387,22 +7435,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -7491,26 +7539,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey Method for DeleteClo delete collection of APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKeyRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedAPIKey") @@ -7618,22 +7667,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -7722,26 +7771,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection Method for delete collection of CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnectionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudConnection") @@ -7849,22 +7899,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -7953,26 +8003,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment Method for delete collection of CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironmentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedCloudEnvironment") @@ -8080,22 +8131,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -8184,26 +8235,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool Method for Del delete collection of IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPoolRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedIdentityPool") @@ -8311,22 +8363,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -8415,26 +8467,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider Method for Del delete collection of OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProviderRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedOIDCProvider") @@ -8542,22 +8595,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -8646,26 +8699,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool Method for DeleteCloud delete collection of Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPool") @@ -8773,22 +8827,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -8877,26 +8931,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember Method for Delet delete collection of PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMemberRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolMember") @@ -9004,22 +9059,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -9108,26 +9163,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption Method for Delet delete collection of PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPoolOption") @@ -9235,22 +9291,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -9339,26 +9395,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster Method for De delete collection of PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarClusterRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarCluster") @@ -9466,22 +9523,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -9570,26 +9627,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway Method for De delete collection of PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGatewayRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarGateway") @@ -9697,22 +9755,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -9801,26 +9859,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance Method for D delete collection of PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstanceRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedPulsarInstance") @@ -9928,22 +9987,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -10032,26 +10091,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole Method for DeleteCloud delete collection of Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRole") @@ -10159,22 +10219,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -10263,26 +10323,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding Method for Dele delete collection of RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBindingRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedRoleBinding") @@ -10390,22 +10451,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -10494,26 +10555,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret Method for DeleteClo delete collection of Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecretRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedSecret") @@ -10621,22 +10683,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -10725,26 +10787,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount Method for D delete collection of ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccount") @@ -10852,22 +10915,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -10956,26 +11019,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding Metho delete collection of ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBindingRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedServiceAccountBinding") @@ -11083,22 +11147,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -11187,26 +11251,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription Method f delete collection of StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscriptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedStripeSubscription") @@ -11314,22 +11379,22 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -11418,26 +11483,27 @@ DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser Method for DeleteCloud delete collection of User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUserRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionNamespacedUser") @@ -11545,21 +11611,21 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -11648,24 +11714,25 @@ DeleteCloudStreamnativeIoV1alpha1CollectionOrganization Method for DeleteCloudSt delete collection of Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionOrganization(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest { return ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1CollectionOrganizationExecute(r ApiDeleteCloudStreamnativeIoV1alpha1CollectionOrganizationRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1CollectionOrganization") @@ -11772,16 +11839,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -11828,28 +11895,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for DeleteCloudStreamna delete an APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKey") @@ -11937,16 +12005,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -11993,28 +12061,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for DeleteCloudSt delete status of an APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") @@ -12102,16 +12171,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -12158,28 +12227,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for DeleteClou delete a CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnection") @@ -12267,16 +12337,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -12323,28 +12393,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for Dele delete status of a CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") @@ -12432,16 +12503,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -12488,28 +12559,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for DeleteClo delete a CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") @@ -12597,16 +12669,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -12653,28 +12725,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for Del delete status of a CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") @@ -12762,16 +12835,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -12818,28 +12891,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for DeleteCloudSt delete an IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPool") @@ -12927,16 +13001,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -12983,28 +13057,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for DeleteC delete status of an IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") @@ -13092,16 +13167,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -13148,28 +13223,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for DeleteCloudSt delete an OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") @@ -13257,16 +13333,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -13313,28 +13389,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for DeleteC delete status of an OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") @@ -13422,16 +13499,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -13478,28 +13555,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPool Method for DeleteCloudStreamnati delete a Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPool") @@ -13587,16 +13665,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -13643,28 +13721,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for DeleteCloudStre delete a PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMember") @@ -13752,16 +13831,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -13808,28 +13887,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for DeleteClo delete status of a PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") @@ -13917,16 +13997,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -13973,28 +14053,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for DeleteCloudStre delete a PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOption") @@ -14082,16 +14163,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -14138,28 +14219,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for DeleteClo delete status of a PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") @@ -14247,16 +14329,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -14303,28 +14385,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for DeleteCloudStre delete status of a Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPoolStatus") @@ -14412,16 +14495,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -14468,28 +14551,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for DeleteCloudS delete a PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") @@ -14577,16 +14661,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -14633,28 +14717,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for Delete delete status of a PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") @@ -14742,16 +14827,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -14798,28 +14883,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for DeleteCloudS delete a PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") @@ -14907,16 +14993,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -14963,28 +15049,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for Delete delete status of a PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") @@ -15072,16 +15159,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -15128,28 +15215,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for DeleteCloud delete a PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") @@ -15237,16 +15325,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -15293,28 +15381,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for Delet delete status of a PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") @@ -15402,16 +15491,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -15458,28 +15547,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedRole Method for DeleteCloudStreamnati delete a Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRole") @@ -15567,16 +15657,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -15623,28 +15713,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for DeleteCloudStr delete a RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBinding") @@ -15732,16 +15823,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -15788,28 +15879,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for DeleteCl delete status of a RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") @@ -15897,16 +15989,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -15953,28 +16045,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for DeleteCloudStre delete status of a Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedRoleStatus") @@ -16062,16 +16155,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -16118,28 +16211,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedSecret Method for DeleteCloudStreamna delete a Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedSecret") @@ -16227,16 +16321,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -16283,28 +16377,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for DeleteCloudSt delete status of a Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedSecretStatus") @@ -16392,16 +16487,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -16448,28 +16543,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for DeleteCloud delete a ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccount") @@ -16557,16 +16653,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -16613,28 +16709,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for Dele delete a ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") @@ -16722,16 +16819,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -16778,28 +16875,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method fo delete status of a ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") @@ -16887,16 +16985,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -16943,28 +17041,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for Delet delete status of a ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") @@ -17052,16 +17151,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -17108,28 +17207,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for DeleteC delete a StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") @@ -17217,16 +17317,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -17273,28 +17373,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for D delete status of a StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") @@ -17382,16 +17483,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -17438,28 +17539,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedUser Method for DeleteCloudStreamnati delete an User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedUser") @@ -17547,16 +17649,16 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -17603,28 +17705,29 @@ DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for DeleteCloudStre delete status of an User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1NamespacedUserStatus") @@ -17712,15 +17815,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -17767,26 +17870,27 @@ DeleteCloudStreamnativeIoV1alpha1Organization Method for DeleteCloudStreamnative delete an Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest { return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1Organization") @@ -17873,15 +17977,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -17928,26 +18032,27 @@ DeleteCloudStreamnativeIoV1alpha1OrganizationStatus Method for DeleteCloudStream delete status of an Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.DeleteCloudStreamnativeIoV1alpha1OrganizationStatus") @@ -18034,7 +18139,7 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService } @@ -18047,24 +18152,25 @@ GetCloudStreamnativeIoV1alpha1APIResources Method for GetCloudStreamnativeIoV1al get available resources - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) GetCloudStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest { return ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIResourceList +// +// @return V1APIResourceList func (a *CloudStreamnativeIoV1alpha1ApiService) GetCloudStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetCloudStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIResourceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.GetCloudStreamnativeIoV1alpha1APIResources") @@ -18133,18 +18239,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) GetCloudStreamnativeIoV1alpha1AP } type ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18216,24 +18322,25 @@ ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces Method for ListCloudStream list or watch objects of kind APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1APIKeyForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1APIKeyForAllNamespaces") @@ -18332,18 +18439,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1A } type ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18415,24 +18522,25 @@ ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces Method for ListCl list or watch objects of kind CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1CloudConnectionForAllNamespaces") @@ -18531,18 +18639,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1C } type ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -18614,24 +18722,25 @@ ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces Method for ListC list or watch objects of kind CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1CloudEnvironmentForAllNamespaces") @@ -18730,18 +18839,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1C } type ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -18813,24 +18922,25 @@ ListCloudStreamnativeIoV1alpha1ClusterRole Method for ListCloudStreamnativeIoV1a list or watch objects of kind ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest { return ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiListCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ClusterRole") @@ -18929,18 +19039,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1C } type ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -19012,24 +19122,25 @@ ListCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for ListCloudStreamnati list or watch objects of kind ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { return ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiListCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ClusterRoleBinding") @@ -19128,18 +19239,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1C } type ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -19211,24 +19322,25 @@ ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces Method for ListCloud list or watch objects of kind IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1IdentityPoolForAllNamespaces") @@ -19327,19 +19439,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1I } type ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -19411,26 +19523,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for ListCloudStreamnative list or watch objects of kind APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedAPIKey") @@ -19530,19 +19643,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -19614,26 +19727,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for ListCloudStr list or watch objects of kind CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedCloudConnection") @@ -19733,19 +19847,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -19817,26 +19931,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for ListCloudSt list or watch objects of kind CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") @@ -19936,19 +20051,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -20020,26 +20135,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for ListCloudStream list or watch objects of kind IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedIdentityPool") @@ -20139,19 +20255,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -20223,26 +20339,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for ListCloudStream list or watch objects of kind OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") @@ -20342,19 +20459,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -20426,26 +20543,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedPool Method for ListCloudStreamnativeIo list or watch objects of kind Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPool") @@ -20545,19 +20663,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -20629,26 +20747,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for ListCloudStreamna list or watch objects of kind PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPoolMember") @@ -20748,19 +20867,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -20832,26 +20951,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for ListCloudStreamna list or watch objects of kind PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPoolOption") @@ -20951,19 +21071,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -21035,26 +21155,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for ListCloudStrea list or watch objects of kind PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") @@ -21154,19 +21275,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -21238,26 +21359,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for ListCloudStrea list or watch objects of kind PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") @@ -21357,19 +21479,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -21441,26 +21563,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for ListCloudStre list or watch objects of kind PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") @@ -21560,19 +21683,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -21644,26 +21767,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedRole Method for ListCloudStreamnativeIo list or watch objects of kind Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedRole") @@ -21763,19 +21887,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -21847,26 +21971,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for ListCloudStreamn list or watch objects of kind RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedRoleBinding") @@ -21966,19 +22091,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -22050,26 +22175,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedSecret Method for ListCloudStreamnative list or watch objects of kind Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedSecret") @@ -22169,19 +22295,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -22253,26 +22379,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for ListCloudStre list or watch objects of kind ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccount") @@ -22372,19 +22499,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -22456,26 +22583,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for ListCl list or watch objects of kind ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") @@ -22575,19 +22703,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -22659,26 +22787,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for ListCloud list or watch objects of kind StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") @@ -22778,19 +22907,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -22862,26 +22991,27 @@ ListCloudStreamnativeIoV1alpha1NamespacedUser Method for ListCloudStreamnativeIo list or watch objects of kind User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest { return ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiListCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1NamespacedUser") @@ -22981,18 +23111,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1N } type ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -23064,24 +23194,25 @@ ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces Method for ListCloud list or watch objects of kind OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1OIDCProviderForAllNamespaces") @@ -23180,18 +23311,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1O } type ApiListCloudStreamnativeIoV1alpha1OrganizationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -23263,24 +23394,25 @@ ListCloudStreamnativeIoV1alpha1Organization Method for ListCloudStreamnativeIoV1 list or watch objects of kind Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1OrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1OrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1Organization(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1OrganizationRequest { return ApiListCloudStreamnativeIoV1alpha1OrganizationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiListCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1Organization") @@ -23379,18 +23511,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1O } type ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -23462,24 +23594,25 @@ ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces Method for ListCloudStreamna list or watch objects of kind Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PoolForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PoolForAllNamespaces") @@ -23578,18 +23711,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1P } type ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -23661,24 +23794,25 @@ ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces Method for ListCloudSt list or watch objects of kind PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PoolMemberForAllNamespaces") @@ -23777,18 +23911,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1P } type ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -23860,24 +23994,25 @@ ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces Method for ListCloudSt list or watch objects of kind PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PoolOptionForAllNamespaces") @@ -23976,18 +24111,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1P } type ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -24059,24 +24194,25 @@ ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces Method for ListClou list or watch objects of kind PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PulsarClusterForAllNamespaces") @@ -24175,18 +24311,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1P } type ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -24258,24 +24394,25 @@ ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces Method for ListClou list or watch objects of kind PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PulsarGatewayForAllNamespaces") @@ -24374,18 +24511,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1P } type ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -24457,24 +24594,25 @@ ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces Method for ListClo list or watch objects of kind PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1PulsarInstanceForAllNamespaces") @@ -24573,18 +24711,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1P } type ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -24656,24 +24794,25 @@ ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces Method for ListCloudS list or watch objects of kind RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1RoleBindingForAllNamespaces") @@ -24772,18 +24911,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1R } type ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -24855,24 +24994,25 @@ ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces Method for ListCloudStreamna list or watch objects of kind Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1RoleForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1RoleForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1RoleForAllNamespaces") @@ -24971,18 +25111,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1R } type ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -25054,24 +25194,25 @@ ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces Method for ListCloudStream list or watch objects of kind Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1SecretForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1SecretForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1SecretForAllNamespaces") @@ -25170,18 +25311,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1S } type ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -25253,24 +25394,25 @@ ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces Method for list or watch objects of kind ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ServiceAccountBindingForAllNamespaces") @@ -25369,18 +25511,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1S } type ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -25452,24 +25594,25 @@ ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces Method for ListClo list or watch objects of kind ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1ServiceAccountForAllNamespaces") @@ -25568,18 +25711,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1S } type ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -25651,24 +25794,25 @@ ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces Method for Lis list or watch objects of kind StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1StripeSubscriptionForAllNamespaces") @@ -25767,18 +25911,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1S } type ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -25850,24 +25994,25 @@ ListCloudStreamnativeIoV1alpha1UserForAllNamespaces Method for ListCloudStreamna list or watch objects of kind User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1UserForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1UserForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha1UserForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ListCloudStreamnativeIoV1alpha1UserForAllNamespaces") @@ -25966,14 +26111,14 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ListCloudStreamnativeIoV1alpha1U } type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { @@ -26014,26 +26159,27 @@ PatchCloudStreamnativeIoV1alpha1ClusterRole Method for PatchCloudStreamnativeIoV partially update the specified ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRole") @@ -26120,14 +26266,14 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { @@ -26168,26 +26314,27 @@ PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for PatchCloudStreamna partially update the specified ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleBinding") @@ -26274,14 +26421,14 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { @@ -26322,26 +26469,27 @@ PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for PatchCloudSt partially update status of the specified ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") @@ -26428,14 +26576,14 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { @@ -26476,26 +26624,27 @@ PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for PatchCloudStreamnat partially update status of the specified ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1ClusterRoleStatus") @@ -26582,15 +26731,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { @@ -26631,28 +26780,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for PatchCloudStreamnati partially update the specified APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKey") @@ -26740,15 +26890,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { @@ -26789,28 +26939,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for PatchCloudStre partially update status of the specified APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") @@ -26898,15 +27049,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { @@ -26947,28 +27098,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for PatchCloudS partially update the specified CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection") @@ -27056,15 +27208,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { @@ -27105,28 +27257,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for Patch partially update status of the specified CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") @@ -27214,15 +27367,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { @@ -27263,28 +27416,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for PatchCloud partially update the specified CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") @@ -27372,15 +27526,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { @@ -27421,28 +27575,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for Patc partially update status of the specified CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") @@ -27530,15 +27685,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { @@ -27579,28 +27734,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for PatchCloudStre partially update the specified IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool") @@ -27688,15 +27844,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { @@ -27737,28 +27893,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for PatchClo partially update status of the specified IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") @@ -27846,15 +28003,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { @@ -27895,28 +28052,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for PatchCloudStre partially update the specified OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") @@ -28004,15 +28162,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { @@ -28053,28 +28211,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for PatchClo partially update status of the specified OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") @@ -28162,15 +28321,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { @@ -28211,28 +28370,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPool Method for PatchCloudStreamnative partially update the specified Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPool") @@ -28320,15 +28480,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { @@ -28369,28 +28529,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for PatchCloudStream partially update the specified PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMember") @@ -28478,15 +28639,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { @@ -28527,28 +28688,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for PatchCloud partially update status of the specified PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") @@ -28636,15 +28798,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { @@ -28685,28 +28847,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for PatchCloudStream partially update the specified PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOption") @@ -28794,15 +28957,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { @@ -28843,28 +29006,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for PatchCloud partially update status of the specified PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") @@ -28952,15 +29116,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { @@ -29001,28 +29165,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for PatchCloudStream partially update status of the specified Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus") @@ -29110,15 +29275,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { @@ -29159,28 +29324,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for PatchCloudStr partially update the specified PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") @@ -29268,15 +29434,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { @@ -29317,28 +29483,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for PatchCl partially update status of the specified PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") @@ -29426,15 +29593,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { @@ -29475,28 +29642,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for PatchCloudStr partially update the specified PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") @@ -29584,15 +29752,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { @@ -29633,28 +29801,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for PatchCl partially update status of the specified PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") @@ -29742,15 +29911,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { @@ -29791,28 +29960,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for PatchCloudSt partially update the specified PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") @@ -29900,15 +30070,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { @@ -29949,28 +30119,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for PatchC partially update status of the specified PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") @@ -30058,15 +30229,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { @@ -30107,28 +30278,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedRole Method for PatchCloudStreamnative partially update the specified Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRole") @@ -30216,15 +30388,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { @@ -30265,28 +30437,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for PatchCloudStrea partially update the specified RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding") @@ -30374,15 +30547,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { @@ -30423,28 +30596,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for PatchClou partially update status of the specified RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") @@ -30532,15 +30706,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { @@ -30581,28 +30755,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for PatchCloudStream partially update status of the specified Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus") @@ -30690,15 +30865,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { @@ -30739,28 +30914,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedSecret Method for PatchCloudStreamnati partially update the specified Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedSecret") @@ -30848,15 +31024,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { @@ -30897,28 +31073,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for PatchCloudStre partially update status of the specified Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus") @@ -31006,15 +31183,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { @@ -31055,28 +31232,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for PatchCloudSt partially update the specified ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount") @@ -31164,15 +31342,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { @@ -31213,28 +31391,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for Patch partially update the specified ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") @@ -31322,15 +31501,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { @@ -31371,28 +31550,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for partially update status of the specified ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") @@ -31480,15 +31660,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { @@ -31529,28 +31709,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for PatchC partially update status of the specified ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") @@ -31638,15 +31819,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { @@ -31687,28 +31868,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for PatchClo partially update the specified StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") @@ -31796,15 +31978,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { @@ -31845,28 +32027,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for Pa partially update status of the specified StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") @@ -31954,15 +32137,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { @@ -32003,28 +32186,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedUser Method for PatchCloudStreamnative partially update the specified User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedUser") @@ -32112,15 +32296,15 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { @@ -32161,28 +32345,29 @@ PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for PatchCloudStream partially update status of the specified User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1NamespacedUserStatus") @@ -32270,14 +32455,14 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { @@ -32318,26 +32503,27 @@ PatchCloudStreamnativeIoV1alpha1Organization Method for PatchCloudStreamnativeIo partially update the specified Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest { return ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiPatchCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1Organization") @@ -32424,14 +32610,14 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { @@ -32472,26 +32658,27 @@ PatchCloudStreamnativeIoV1alpha1OrganizationStatus Method for PatchCloudStreamna partially update status of the specified Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.PatchCloudStreamnativeIoV1alpha1OrganizationStatus") @@ -32578,10 +32765,10 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) PatchCloudStreamnativeIoV1alpha1 } type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -32599,26 +32786,27 @@ ReadCloudStreamnativeIoV1alpha1ClusterRole Method for ReadCloudStreamnativeIoV1a read the specified ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest { return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRole") @@ -32691,10 +32879,10 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1C } type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -32712,26 +32900,27 @@ ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for ReadCloudStreamnati read the specified ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleBinding") @@ -32804,10 +32993,10 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1C } type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -32825,26 +33014,27 @@ ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for ReadCloudStre read status of the specified ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") @@ -32917,10 +33107,10 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1C } type ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -32938,26 +33128,27 @@ ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for ReadCloudStreamnativ read status of the specified ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1ClusterRoleStatus") @@ -33030,11 +33221,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1C } type ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33052,28 +33243,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for ReadCloudStreamnative read the specified APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKey") @@ -33147,11 +33339,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33169,28 +33361,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for ReadCloudStream read status of the specified APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") @@ -33264,11 +33457,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33286,28 +33479,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for ReadCloudStr read the specified CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnection") @@ -33381,11 +33575,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33403,28 +33597,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for ReadCl read status of the specified CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") @@ -33498,11 +33693,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33520,28 +33715,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for ReadCloudSt read the specified CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") @@ -33615,11 +33811,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33637,28 +33833,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for ReadC read status of the specified CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") @@ -33732,11 +33929,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33754,28 +33951,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for ReadCloudStream read the specified IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPool") @@ -33849,11 +34047,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33871,28 +34069,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for ReadCloud read status of the specified IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") @@ -33966,11 +34165,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -33988,28 +34187,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for ReadCloudStream read the specified OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") @@ -34083,11 +34283,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34105,28 +34305,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for ReadCloud read status of the specified OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") @@ -34200,11 +34401,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34222,28 +34423,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPool Method for ReadCloudStreamnativeIo read the specified Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPool") @@ -34317,11 +34519,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34339,28 +34541,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for ReadCloudStreamna read the specified PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMember") @@ -34434,11 +34637,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34456,28 +34659,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for ReadCloudSt read status of the specified PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") @@ -34551,11 +34755,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34573,28 +34777,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for ReadCloudStreamna read the specified PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOption") @@ -34668,11 +34873,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34690,28 +34895,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for ReadCloudSt read status of the specified PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") @@ -34785,11 +34991,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34807,28 +35013,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for ReadCloudStreamna read status of the specified Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPoolStatus") @@ -34902,11 +35109,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -34924,28 +35131,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for ReadCloudStrea read the specified PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") @@ -35019,11 +35227,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35041,28 +35249,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for ReadClou read status of the specified PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") @@ -35136,11 +35345,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35158,28 +35367,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for ReadCloudStrea read the specified PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") @@ -35253,11 +35463,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35275,28 +35485,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for ReadClou read status of the specified PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") @@ -35370,11 +35581,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35392,28 +35603,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for ReadCloudStre read the specified PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") @@ -35487,11 +35699,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35509,28 +35721,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for ReadClo read status of the specified PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") @@ -35604,11 +35817,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35626,28 +35839,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedRole Method for ReadCloudStreamnativeIo read the specified Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRole") @@ -35721,11 +35935,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35743,28 +35957,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for ReadCloudStreamn read the specified RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBinding") @@ -35838,11 +36053,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35860,28 +36075,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for ReadCloudS read status of the specified RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") @@ -35955,11 +36171,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -35977,28 +36193,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for ReadCloudStreamna read status of the specified Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedRoleStatus") @@ -36072,11 +36289,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36094,28 +36311,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedSecret Method for ReadCloudStreamnative read the specified Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedSecret") @@ -36189,11 +36407,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36211,28 +36429,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for ReadCloudStream read status of the specified Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedSecretStatus") @@ -36306,11 +36525,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36328,28 +36547,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for ReadCloudStre read the specified ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccount") @@ -36423,11 +36643,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36445,28 +36665,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for ReadCl read the specified ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") @@ -36540,11 +36761,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36562,28 +36783,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for read status of the specified ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") @@ -36657,11 +36879,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36679,28 +36901,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for ReadClo read status of the specified ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") @@ -36774,11 +36997,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36796,28 +37019,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for ReadCloud read the specified StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") @@ -36891,11 +37115,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -36913,28 +37137,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for Rea read status of the specified StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") @@ -37008,11 +37233,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -37030,28 +37255,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedUser Method for ReadCloudStreamnativeIo read the specified User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedUser") @@ -37125,11 +37351,11 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -37147,28 +37373,29 @@ ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for ReadCloudStreamna read status of the specified User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1NamespacedUserStatus") @@ -37242,10 +37469,10 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1N } type ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -37263,26 +37490,27 @@ ReadCloudStreamnativeIoV1alpha1Organization Method for ReadCloudStreamnativeIoV1 read the specified Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest { return ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiReadCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1Organization") @@ -37355,10 +37583,10 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1O } type ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -37376,26 +37604,27 @@ ReadCloudStreamnativeIoV1alpha1OrganizationStatus Method for ReadCloudStreamnati read status of the specified Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest { return ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiReadCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReadCloudStreamnativeIoV1alpha1OrganizationStatus") @@ -37468,12 +37697,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReadCloudStreamnativeIoV1alpha1O } type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string fieldManager *string } @@ -37509,26 +37738,27 @@ ReplaceCloudStreamnativeIoV1alpha1ClusterRole Method for ReplaceCloudStreamnativ replace the specified ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest { return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRole") @@ -37612,12 +37842,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -37653,26 +37883,27 @@ ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for ReplaceCloudStre replace the specified ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBinding") @@ -37756,12 +37987,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -37797,26 +38028,27 @@ ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for ReplaceClo replace status of the specified ClusterRoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") @@ -37900,12 +38132,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + pretty *string + dryRun *string fieldManager *string } @@ -37941,26 +38173,27 @@ ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for ReplaceCloudStrea replace status of the specified ClusterRole - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1ClusterRoleStatus") @@ -38044,13 +38277,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string fieldManager *string } @@ -38086,28 +38319,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for ReplaceCloudStream replace the specified APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKey") @@ -38192,13 +38426,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + pretty *string + dryRun *string fieldManager *string } @@ -38234,28 +38468,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for ReplaceCloud replace status of the specified APIKey - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") @@ -38340,13 +38575,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string fieldManager *string } @@ -38382,28 +38617,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for ReplaceCl replace the specified CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnection") @@ -38488,13 +38724,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + pretty *string + dryRun *string fieldManager *string } @@ -38530,28 +38766,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for Rep replace status of the specified CloudConnection - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") @@ -38636,13 +38873,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string fieldManager *string } @@ -38678,28 +38915,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for ReplaceC replace the specified CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") @@ -38784,13 +39022,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + pretty *string + dryRun *string fieldManager *string } @@ -38826,28 +39064,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for Re replace status of the specified CloudEnvironment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") @@ -38932,13 +39171,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string fieldManager *string } @@ -38974,28 +39213,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for ReplaceCloud replace the specified IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPool") @@ -39080,13 +39320,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + pretty *string + dryRun *string fieldManager *string } @@ -39122,28 +39362,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for Replac replace status of the specified IdentityPool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") @@ -39228,13 +39469,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string fieldManager *string } @@ -39270,28 +39511,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for ReplaceCloud replace the specified OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") @@ -39376,13 +39618,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + pretty *string + dryRun *string fieldManager *string } @@ -39418,28 +39660,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for Replac replace status of the specified OIDCProvider - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") @@ -39524,13 +39767,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string fieldManager *string } @@ -39566,28 +39809,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPool Method for ReplaceCloudStreamna replace the specified Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPool") @@ -39672,13 +39916,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string fieldManager *string } @@ -39714,28 +39958,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for ReplaceCloudSt replace the specified PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMember") @@ -39820,13 +40065,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + pretty *string + dryRun *string fieldManager *string } @@ -39862,28 +40107,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for ReplaceC replace status of the specified PoolMember - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") @@ -39968,13 +40214,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string fieldManager *string } @@ -40010,28 +40256,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for ReplaceCloudSt replace the specified PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOption") @@ -40116,13 +40363,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + pretty *string + dryRun *string fieldManager *string } @@ -40158,28 +40405,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for ReplaceC replace status of the specified PoolOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") @@ -40264,13 +40512,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + pretty *string + dryRun *string fieldManager *string } @@ -40306,28 +40554,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for ReplaceCloudSt replace status of the specified Pool - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPoolStatus") @@ -40412,13 +40661,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string fieldManager *string } @@ -40454,28 +40703,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for ReplaceClou replace the specified PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") @@ -40560,13 +40810,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + pretty *string + dryRun *string fieldManager *string } @@ -40602,28 +40852,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for Repla replace status of the specified PulsarCluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") @@ -40708,13 +40959,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string fieldManager *string } @@ -40750,28 +41001,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for ReplaceClou replace the specified PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") @@ -40856,13 +41108,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + pretty *string + dryRun *string fieldManager *string } @@ -40898,28 +41150,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for Repla replace status of the specified PulsarGateway - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") @@ -41004,13 +41257,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string fieldManager *string } @@ -41046,28 +41299,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for ReplaceClo replace the specified PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") @@ -41152,13 +41406,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + pretty *string + dryRun *string fieldManager *string } @@ -41194,28 +41448,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for Repl replace status of the specified PulsarInstance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") @@ -41300,13 +41555,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string fieldManager *string } @@ -41342,28 +41597,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedRole Method for ReplaceCloudStreamna replace the specified Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRole") @@ -41448,13 +41704,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -41490,28 +41746,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for ReplaceCloudS replace the specified RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBinding") @@ -41596,13 +41853,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + pretty *string + dryRun *string fieldManager *string } @@ -41638,28 +41895,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for Replace replace status of the specified RoleBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") @@ -41744,13 +42002,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + pretty *string + dryRun *string fieldManager *string } @@ -41786,28 +42044,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for ReplaceCloudSt replace status of the specified Role - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedRoleStatus") @@ -41892,13 +42151,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string fieldManager *string } @@ -41934,28 +42193,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret Method for ReplaceCloudStream replace the specified Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecret") @@ -42040,13 +42300,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + pretty *string + dryRun *string fieldManager *string } @@ -42082,28 +42342,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for ReplaceCloud replace status of the specified Secret - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedSecretStatus") @@ -42188,13 +42449,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string fieldManager *string } @@ -42230,28 +42491,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for ReplaceClo replace the specified ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccount") @@ -42336,13 +42598,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string fieldManager *string } @@ -42378,28 +42640,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for Rep replace the specified ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") @@ -42484,13 +42747,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + pretty *string + dryRun *string fieldManager *string } @@ -42526,28 +42789,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method f replace status of the specified ServiceAccountBinding - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") @@ -42632,13 +42896,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + pretty *string + dryRun *string fieldManager *string } @@ -42674,28 +42938,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for Repl replace status of the specified ServiceAccount - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") @@ -42780,13 +43045,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string fieldManager *string } @@ -42822,28 +43087,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for Replac replace the specified StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") @@ -42928,13 +43194,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + pretty *string + dryRun *string fieldManager *string } @@ -42970,28 +43236,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for replace status of the specified StripeSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") @@ -43076,13 +43343,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string fieldManager *string } @@ -43118,28 +43385,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedUser Method for ReplaceCloudStreamna replace the specified User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedUser") @@ -43224,13 +43492,13 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + pretty *string + dryRun *string fieldManager *string } @@ -43266,28 +43534,29 @@ ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for ReplaceCloudSt replace status of the specified User - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1NamespacedUserStatus") @@ -43372,12 +43641,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string fieldManager *string } @@ -43413,26 +43682,27 @@ ReplaceCloudStreamnativeIoV1alpha1Organization Method for ReplaceCloudStreamnati replace the specified Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest { return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1Organization") @@ -43516,12 +43786,12 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + pretty *string + dryRun *string fieldManager *string } @@ -43557,26 +43827,27 @@ ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus Method for ReplaceCloudStre replace status of the specified Organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.ReplaceCloudStreamnativeIoV1alpha1OrganizationStatus") @@ -43660,18 +43931,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -43743,24 +44014,25 @@ WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces Method for WatchCloud watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1APIKeyListForAllNamespaces") @@ -43859,18 +44131,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -43942,24 +44214,25 @@ WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces Method for W watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1CloudConnectionListForAllNamespaces") @@ -44058,18 +44331,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -44141,24 +44414,25 @@ WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces Method for watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1CloudEnvironmentListForAllNamespaces") @@ -44257,19 +44531,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -44341,26 +44615,27 @@ WatchCloudStreamnativeIoV1alpha1ClusterRole Method for WatchCloudStreamnativeIoV watch changes to an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRole(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest { return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRole") @@ -44460,19 +44735,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -44544,26 +44819,27 @@ WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding Method for WatchCloudStreamna watch changes to an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest { return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBinding") @@ -44663,18 +44939,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -44746,24 +45022,25 @@ WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList Method for WatchCloudStre watch individual changes to a list of ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest { return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingList") @@ -44862,19 +45139,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -44946,26 +45223,27 @@ WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus Method for WatchCloudSt watch changes to status of an object of kind ClusterRoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRoleBinding - @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRoleBinding + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleBindingStatus") @@ -45065,18 +45343,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -45148,24 +45426,25 @@ WatchCloudStreamnativeIoV1alpha1ClusterRoleList Method for WatchCloudStreamnativ watch individual changes to a list of ClusterRole. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest { return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleListExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleList") @@ -45264,19 +45543,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -45348,26 +45627,27 @@ WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus Method for WatchCloudStreamnat watch changes to status of an object of kind ClusterRole. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ClusterRole - @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ClusterRole + @return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ClusterRoleStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1ClusterRoleStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ClusterRoleStatus") @@ -45467,18 +45747,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -45550,24 +45830,25 @@ WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces Method for Watc watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1IdentityPoolListForAllNamespaces") @@ -45666,20 +45947,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -45751,28 +46032,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey Method for WatchCloudStreamnati watch changes to an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKey") @@ -45873,19 +46155,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -45957,26 +46239,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList Method for WatchCloudStream watch individual changes to a list of APIKey. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyList") @@ -46076,20 +46359,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -46161,28 +46444,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus Method for WatchCloudStre watch changes to status of an object of kind APIKey. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the APIKey - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the APIKey + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedAPIKeyStatus") @@ -46283,20 +46567,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -46368,28 +46652,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection Method for WatchCloudS watch changes to an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnection") @@ -46490,19 +46775,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -46574,26 +46859,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList Method for WatchCl watch individual changes to a list of CloudConnection. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionList") @@ -46693,20 +46979,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -46778,28 +47064,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus Method for Watch watch changes to status of an object of kind CloudConnection. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudConnection - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudConnection + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudConnectionStatus") @@ -46900,20 +47187,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -46985,28 +47272,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment Method for WatchCloud watch changes to an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironment") @@ -47107,19 +47395,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -47191,26 +47479,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList Method for WatchC watch individual changes to a list of CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentList") @@ -47310,20 +47599,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -47395,28 +47684,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus Method for Watc watch changes to status of an object of kind CloudEnvironment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the CloudEnvironment - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the CloudEnvironment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedCloudEnvironmentStatus") @@ -47517,20 +47807,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -47602,28 +47892,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool Method for WatchCloudStre watch changes to an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPool") @@ -47724,19 +48015,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -47808,26 +48099,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList Method for WatchCloud watch individual changes to a list of IdentityPool. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolList") @@ -47927,20 +48219,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -48012,28 +48304,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus Method for WatchClo watch changes to status of an object of kind IdentityPool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the IdentityPool - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the IdentityPool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedIdentityPoolStatus") @@ -48134,20 +48427,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -48219,28 +48512,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider Method for WatchCloudStre watch changes to an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProvider") @@ -48341,19 +48635,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -48425,26 +48719,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList Method for WatchCloud watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderList") @@ -48544,20 +48839,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -48629,28 +48924,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus Method for WatchClo watch changes to status of an object of kind OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the OIDCProvider - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the OIDCProvider + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedOIDCProviderStatus") @@ -48751,20 +49047,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -48836,28 +49132,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPool Method for WatchCloudStreamnative watch changes to an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPool(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPool") @@ -48958,19 +49255,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -49042,26 +49339,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolList Method for WatchCloudStreamna watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolList") @@ -49161,20 +49459,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -49246,28 +49544,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember Method for WatchCloudStream watch changes to an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMember") @@ -49368,19 +49667,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -49452,26 +49751,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList Method for WatchCloudSt watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberList") @@ -49571,20 +49871,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -49656,28 +49956,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus Method for WatchCloud watch changes to status of an object of kind PoolMember. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolMember - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolMember + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolMemberStatus") @@ -49778,20 +50079,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -49863,28 +50164,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption Method for WatchCloudStream watch changes to an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOption") @@ -49985,19 +50287,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -50069,26 +50371,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList Method for WatchCloudSt watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionList") @@ -50188,20 +50491,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -50273,28 +50576,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus Method for WatchCloud watch changes to status of an object of kind PoolOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PoolOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PoolOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolOptionStatus") @@ -50395,20 +50699,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -50480,28 +50784,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus Method for WatchCloudStream watch changes to status of an object of kind Pool. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Pool - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Pool + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPoolStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPoolStatus") @@ -50602,20 +50907,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -50687,28 +50992,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster Method for WatchCloudStr watch changes to an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarCluster") @@ -50809,19 +51115,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -50893,26 +51199,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList Method for WatchClou watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterList") @@ -51012,20 +51319,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -51097,28 +51404,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus Method for WatchCl watch changes to status of an object of kind PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarCluster - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarCluster + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarClusterStatus") @@ -51219,20 +51527,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -51304,28 +51612,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway Method for WatchCloudStr watch changes to an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGateway") @@ -51426,19 +51735,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -51510,26 +51819,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList Method for WatchClou watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayList") @@ -51629,20 +51939,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -51714,28 +52024,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus Method for WatchCl watch changes to status of an object of kind PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarGateway - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarGateway + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarGatewayStatus") @@ -51836,20 +52147,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -51921,28 +52232,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance Method for WatchCloudSt watch changes to an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstance") @@ -52043,19 +52355,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -52127,26 +52439,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList Method for WatchClo watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceList") @@ -52246,20 +52559,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -52331,28 +52644,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus Method for WatchC watch changes to status of an object of kind PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the PulsarInstance - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the PulsarInstance + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedPulsarInstanceStatus") @@ -52453,20 +52767,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -52538,28 +52852,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedRole Method for WatchCloudStreamnative watch changes to an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRole(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRole") @@ -52660,20 +52975,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -52745,28 +53060,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding Method for WatchCloudStrea watch changes to an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBinding") @@ -52867,19 +53183,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -52951,26 +53267,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList Method for WatchCloudS watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingList") @@ -53070,20 +53387,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -53155,28 +53472,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus Method for WatchClou watch changes to status of an object of kind RoleBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the RoleBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the RoleBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleBindingStatus") @@ -53277,19 +53595,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -53361,26 +53679,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedRoleList Method for WatchCloudStreamna watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleList") @@ -53480,20 +53799,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -53565,28 +53884,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus Method for WatchCloudStream watch changes to status of an object of kind Role. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Role - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Role + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedRoleStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedRoleStatus") @@ -53687,20 +54007,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -53772,28 +54092,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedSecret Method for WatchCloudStreamnati watch changes to an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecret(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecret") @@ -53894,19 +54215,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -53978,26 +54299,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedSecretList Method for WatchCloudStream watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecretList") @@ -54097,20 +54419,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -54182,28 +54504,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus Method for WatchCloudStre watch changes to status of an object of kind Secret. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Secret - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Secret + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedSecretStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedSecretStatus") @@ -54304,20 +54627,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -54389,28 +54712,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount Method for WatchCloudSt watch changes to an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccount") @@ -54511,20 +54835,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -54596,28 +54920,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding Method for Watch watch changes to an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBinding") @@ -54718,19 +55043,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -54802,26 +55127,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList Method for W watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingList") @@ -54921,20 +55247,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -55006,28 +55332,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus Method for watch changes to status of an object of kind ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccountBinding - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccountBinding + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountBindingStatus") @@ -55128,19 +55455,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -55212,26 +55539,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList Method for WatchClo watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountList") @@ -55331,20 +55659,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -55416,28 +55744,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus Method for WatchC watch changes to status of an object of kind ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ServiceAccount - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ServiceAccount + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedServiceAccountStatus") @@ -55538,20 +55867,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -55623,28 +55952,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription Method for WatchClo watch changes to an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscription") @@ -55745,19 +56075,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -55829,26 +56159,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList Method for Watc watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionList") @@ -55948,20 +56279,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -56033,28 +56364,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus Method for Wa watch changes to status of an object of kind StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the StripeSubscription - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the StripeSubscription + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedStripeSubscriptionStatus") @@ -56155,20 +56487,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -56240,28 +56572,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedUser Method for WatchCloudStreamnative watch changes to an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUser(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUser") @@ -56362,19 +56695,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -56446,26 +56779,27 @@ WatchCloudStreamnativeIoV1alpha1NamespacedUserList Method for WatchCloudStreamna watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserListExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUserList") @@ -56565,20 +56899,20 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -56650,28 +56984,29 @@ WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus Method for WatchCloudStream watch changes to status of an object of kind User. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the User - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the User + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1NamespacedUserStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1NamespacedUserStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1NamespacedUserStatus") @@ -56772,18 +57107,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -56855,24 +57190,25 @@ WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces Method for Watc watch individual changes to a list of OIDCProvider. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1OIDCProviderListForAllNamespaces") @@ -56971,19 +57307,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -57055,26 +57391,27 @@ WatchCloudStreamnativeIoV1alpha1Organization Method for WatchCloudStreamnativeIo watch changes to an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1Organization(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest { return ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationExecute(r ApiWatchCloudStreamnativeIoV1alpha1OrganizationRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1Organization") @@ -57174,18 +57511,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -57257,24 +57594,25 @@ WatchCloudStreamnativeIoV1alpha1OrganizationList Method for WatchCloudStreamnati watch individual changes to a list of Organization. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest { return ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationListExecute(r ApiWatchCloudStreamnativeIoV1alpha1OrganizationListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1OrganizationList") @@ -57373,19 +57711,19 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -57457,26 +57795,27 @@ WatchCloudStreamnativeIoV1alpha1OrganizationStatus Method for WatchCloudStreamna watch changes to status of an object of kind Organization. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Organization - @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Organization + @return ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1OrganizationStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha1OrganizationStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1OrganizationStatus") @@ -57576,18 +57915,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -57659,24 +57998,25 @@ WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces Method for WatchCloudSt watch individual changes to a list of Pool. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PoolListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PoolListForAllNamespaces") @@ -57775,18 +58115,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -57858,24 +58198,25 @@ WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces Method for WatchC watch individual changes to a list of PoolMember. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PoolMemberListForAllNamespaces") @@ -57974,18 +58315,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -58057,24 +58398,25 @@ WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces Method for WatchC watch individual changes to a list of PoolOption. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PoolOptionListForAllNamespaces") @@ -58173,18 +58515,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -58256,24 +58598,25 @@ WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces Method for Wat watch individual changes to a list of PulsarCluster. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PulsarClusterListForAllNamespaces") @@ -58372,18 +58715,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -58455,24 +58798,25 @@ WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces Method for Wat watch individual changes to a list of PulsarGateway. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PulsarGatewayListForAllNamespaces") @@ -58571,18 +58915,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -58654,24 +58998,25 @@ WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces Method for Wa watch individual changes to a list of PulsarInstance. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1PulsarInstanceListForAllNamespaces") @@ -58770,18 +59115,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -58853,24 +59198,25 @@ WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces Method for Watch watch individual changes to a list of RoleBinding. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1RoleBindingListForAllNamespaces") @@ -58969,18 +59315,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -59052,24 +59398,25 @@ WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces Method for WatchCloudSt watch individual changes to a list of Role. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1RoleListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1RoleListForAllNamespaces") @@ -59168,18 +59515,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -59251,24 +59598,25 @@ WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces Method for WatchCloud watch individual changes to a list of Secret. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1SecretListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1SecretListForAllNamespaces") @@ -59367,18 +59715,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -59450,24 +59798,25 @@ WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces Method watch individual changes to a list of ServiceAccountBinding. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ServiceAccountBindingListForAllNamespaces") @@ -59566,18 +59915,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -59649,24 +59998,25 @@ WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces Method for Wa watch individual changes to a list of ServiceAccount. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1ServiceAccountListForAllNamespaces") @@ -59765,18 +60115,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -59848,24 +60198,25 @@ WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces Method fo watch individual changes to a list of StripeSubscription. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1StripeSubscriptionListForAllNamespaces") @@ -59964,18 +60315,18 @@ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1 } type ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -60047,24 +60398,25 @@ WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces Method for WatchCloudSt watch individual changes to a list of User. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha1ApiService) WatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha1UserListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha1ApiService.WatchCloudStreamnativeIoV1alpha1UserListForAllNamespaces") diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go index d81e27e..4578bc6 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go @@ -36,16 +36,15 @@ import ( "strings" ) - // CloudStreamnativeIoV1alpha2ApiService CloudStreamnativeIoV1alpha2Api service type CloudStreamnativeIoV1alpha2ApiService service type ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string fieldManager *string } @@ -81,24 +80,25 @@ CreateCloudStreamnativeIoV1alpha2AWSSubscription Method for CreateCloudStreamnat create an AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2AWSSubscription") @@ -181,12 +181,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string fieldManager *string } @@ -222,26 +222,27 @@ CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for CreateCloudStr create status of an AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") @@ -325,12 +326,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -366,26 +367,27 @@ CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for CreateCloudS create a BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") @@ -469,12 +471,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -510,26 +512,27 @@ CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for Create create a BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") @@ -613,13 +616,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -655,28 +658,29 @@ CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for create status of a BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") @@ -761,13 +765,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -803,28 +807,29 @@ CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for Create create status of a BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") @@ -909,12 +914,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string fieldManager *string } @@ -950,26 +955,27 @@ CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for CreateCloudStre create a MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSet") @@ -1053,13 +1059,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string fieldManager *string } @@ -1095,28 +1101,29 @@ CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for CreateClo create status of a MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") @@ -1201,12 +1208,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -1242,26 +1249,27 @@ CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for CreateCloudSt create a ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") @@ -1345,12 +1353,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -1386,26 +1394,27 @@ CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for CreateC create a ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") @@ -1489,13 +1498,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -1531,28 +1540,29 @@ CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for C create status of a ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") @@ -1637,13 +1647,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -1679,28 +1689,29 @@ CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for CreateC create status of a ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { return ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiCreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.CreateCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") @@ -1785,15 +1796,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) CreateCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1840,26 +1851,27 @@ DeleteCloudStreamnativeIoV1alpha2AWSSubscription Method for DeleteCloudStreamnat delete an AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2AWSSubscription") @@ -1946,15 +1958,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -2001,26 +2013,27 @@ DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for DeleteCloudStr delete status of an AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") @@ -2107,21 +2120,21 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -2210,24 +2223,25 @@ DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription Method for DeleteClou delete collection of AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription(ctx context.Context) ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscriptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionAWSSubscription") @@ -2334,22 +2348,22 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -2438,26 +2452,27 @@ DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet Method for De delete collection of BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest { return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSet") @@ -2565,22 +2580,22 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -2669,26 +2684,27 @@ DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption Method delete collection of BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedBookKeeperSetOption") @@ -2796,22 +2812,22 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -2900,26 +2916,27 @@ DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet Method for Delet delete collection of MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest { return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSetRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedMonitorSet") @@ -3027,22 +3044,22 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3131,26 +3148,27 @@ DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet Method for Del delete collection of ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest { return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSet") @@ -3258,22 +3276,22 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3362,26 +3380,27 @@ DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption Method f delete collection of ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption(ctx context.Context, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2CollectionNamespacedZooKeeperSetOption") @@ -3489,16 +3508,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3545,28 +3564,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for DeleteCloudS delete a BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") @@ -3654,16 +3674,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3710,28 +3730,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for Delete delete a BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") @@ -3819,16 +3840,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -3875,28 +3896,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for delete status of a BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") @@ -3984,16 +4006,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4040,28 +4062,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for Delete delete status of a BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") @@ -4149,16 +4172,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4205,28 +4228,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for DeleteCloudStre delete a MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSet") @@ -4314,16 +4338,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4370,28 +4394,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for DeleteClo delete status of a MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") @@ -4479,16 +4504,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4535,28 +4560,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for DeleteCloudSt delete a ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") @@ -4644,16 +4670,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4700,28 +4726,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for DeleteC delete a ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") @@ -4809,16 +4836,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -4865,28 +4892,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for D delete status of a ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") @@ -4974,16 +5002,16 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -5030,28 +5058,29 @@ DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for DeleteC delete status of a ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { return ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiDeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.DeleteCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") @@ -5139,7 +5168,7 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) DeleteCloudStreamnativeIoV1alpha } type ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService } @@ -5152,24 +5181,25 @@ GetCloudStreamnativeIoV1alpha2APIResources Method for GetCloudStreamnativeIoV1al get available resources - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) GetCloudStreamnativeIoV1alpha2APIResources(ctx context.Context) ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest { return ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIResourceList +// +// @return V1APIResourceList func (a *CloudStreamnativeIoV1alpha2ApiService) GetCloudStreamnativeIoV1alpha2APIResourcesExecute(r ApiGetCloudStreamnativeIoV1alpha2APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIResourceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.GetCloudStreamnativeIoV1alpha2APIResources") @@ -5238,18 +5268,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) GetCloudStreamnativeIoV1alpha2AP } type ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -5321,24 +5351,25 @@ ListCloudStreamnativeIoV1alpha2AWSSubscription Method for ListCloudStreamnativeI list or watch objects of kind AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { return ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiListCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2AWSSubscription") @@ -5437,18 +5468,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2A } type ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5520,24 +5551,25 @@ ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces Method for ListClou list or watch objects of kind BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2BookKeeperSetForAllNamespaces") @@ -5636,18 +5668,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2B } type ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5719,24 +5751,25 @@ ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces Method for Li list or watch objects of kind BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2BookKeeperSetOptionForAllNamespaces") @@ -5835,18 +5868,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2B } type ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5918,24 +5951,25 @@ ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces Method for ListCloudSt list or watch objects of kind MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2MonitorSetForAllNamespaces") @@ -6034,19 +6068,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2M } type ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -6118,26 +6152,27 @@ ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for ListCloudStrea list or watch objects of kind BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") @@ -6237,19 +6272,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2N } type ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -6321,26 +6356,27 @@ ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for ListClou list or watch objects of kind BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { return ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") @@ -6440,19 +6476,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2N } type ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -6524,26 +6560,27 @@ ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for ListCloudStreamna list or watch objects of kind MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { return ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedMonitorSet") @@ -6643,19 +6680,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2N } type ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -6727,26 +6764,27 @@ ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for ListCloudStream list or watch objects of kind ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") @@ -6846,19 +6884,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2N } type ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -6930,26 +6968,27 @@ ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for ListCloud list or watch objects of kind ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, namespace string) ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { return ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") @@ -7049,18 +7088,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2N } type ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -7132,24 +7171,25 @@ ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces Method for ListCloud list or watch objects of kind ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2ZooKeeperSetForAllNamespaces") @@ -7248,18 +7288,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2Z } type ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -7331,24 +7371,25 @@ ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces Method for Lis list or watch objects of kind ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces(ctx context.Context) ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest { return ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesExecute(r ApiListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ListCloudStreamnativeIoV1alpha2ZooKeeperSetOptionForAllNamespaces") @@ -7447,14 +7488,14 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ListCloudStreamnativeIoV1alpha2Z } type ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { @@ -7495,26 +7536,27 @@ PatchCloudStreamnativeIoV1alpha2AWSSubscription Method for PatchCloudStreamnativ partially update the specified AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2AWSSubscription") @@ -7601,14 +7643,14 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { @@ -7649,26 +7691,27 @@ PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for PatchCloudStrea partially update status of the specified AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") @@ -7755,15 +7798,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { @@ -7804,28 +7847,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for PatchCloudStr partially update the specified BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") @@ -7913,15 +7957,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { @@ -7962,28 +8006,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for PatchCl partially update the specified BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") @@ -8071,15 +8116,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { @@ -8120,28 +8165,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for P partially update status of the specified BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") @@ -8229,15 +8275,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { @@ -8278,28 +8324,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for PatchCl partially update status of the specified BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") @@ -8387,15 +8434,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { @@ -8436,28 +8483,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for PatchCloudStream partially update the specified MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet") @@ -8545,15 +8593,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { @@ -8594,28 +8642,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for PatchCloud partially update status of the specified MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") @@ -8703,15 +8752,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { @@ -8752,28 +8801,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for PatchCloudStre partially update the specified ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") @@ -8861,15 +8911,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { @@ -8910,28 +8960,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for PatchClo partially update the specified ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") @@ -9019,15 +9070,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { @@ -9068,28 +9119,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for Pa partially update status of the specified ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") @@ -9177,15 +9229,15 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) Body(body map[string]interface{}) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { @@ -9226,28 +9278,29 @@ PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for PatchClo partially update status of the specified ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { return ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiPatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.PatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") @@ -9335,10 +9388,10 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) PatchCloudStreamnativeIoV1alpha2 } type ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -9356,26 +9409,27 @@ ReadCloudStreamnativeIoV1alpha2AWSSubscription Method for ReadCloudStreamnativeI read the specified AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2AWSSubscription") @@ -9448,10 +9502,10 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2A } type ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - pretty *string + name string + pretty *string } // If 'true', then the output is pretty printed. @@ -9469,26 +9523,27 @@ ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for ReadCloudStreamn read status of the specified AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { return ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") @@ -9561,11 +9616,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2A } type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -9583,28 +9638,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for ReadCloudStrea read the specified BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") @@ -9678,11 +9734,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -9700,28 +9756,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for ReadClou read the specified BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") @@ -9795,11 +9852,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -9817,28 +9874,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for Re read status of the specified BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") @@ -9912,11 +9970,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -9934,28 +9992,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for ReadClou read status of the specified BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") @@ -10029,11 +10088,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -10051,28 +10110,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for ReadCloudStreamna read the specified MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSet") @@ -10146,11 +10206,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -10168,28 +10228,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for ReadCloudSt read status of the specified MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") @@ -10263,11 +10324,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -10285,28 +10346,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for ReadCloudStream read the specified ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") @@ -10380,11 +10442,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -10402,28 +10464,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for ReadCloud read the specified ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") @@ -10497,11 +10560,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -10519,28 +10582,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for Rea read status of the specified ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") @@ -10614,11 +10678,11 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -10636,28 +10700,29 @@ ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for ReadCloud read status of the specified ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { return ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReadCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") @@ -10731,12 +10796,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReadCloudStreamnativeIoV1alpha2N } type ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string fieldManager *string } @@ -10772,26 +10837,27 @@ ReplaceCloudStreamnativeIoV1alpha2AWSSubscription Method for ReplaceCloudStreamn replace the specified AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2AWSSubscription") @@ -10875,12 +10941,12 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + pretty *string + dryRun *string fieldManager *string } @@ -10916,26 +10982,27 @@ ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for ReplaceCloudS replace status of the specified AWSSubscription - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") @@ -11019,13 +11086,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -11061,28 +11128,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for ReplaceClou replace the specified BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") @@ -11167,13 +11235,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -11209,28 +11277,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for Repla replace the specified BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") @@ -11315,13 +11384,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -11357,28 +11426,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for replace status of the specified BookKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") @@ -11463,13 +11533,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -11505,28 +11575,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for Repla replace status of the specified BookKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") @@ -11611,13 +11682,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string fieldManager *string } @@ -11653,28 +11724,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for ReplaceCloudSt replace the specified MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSet") @@ -11759,13 +11831,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + pretty *string + dryRun *string fieldManager *string } @@ -11801,28 +11873,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for ReplaceC replace status of the specified MonitorSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") @@ -11907,13 +11980,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -11949,28 +12022,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for ReplaceCloud replace the specified ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") @@ -12055,13 +12129,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -12097,28 +12171,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for Replac replace the specified ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") @@ -12203,13 +12278,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + pretty *string + dryRun *string fieldManager *string } @@ -12245,28 +12320,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for replace status of the specified ZooKeeperSetOption - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") @@ -12351,13 +12427,13 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet - pretty *string - dryRun *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + pretty *string + dryRun *string fieldManager *string } @@ -12393,28 +12469,29 @@ ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for Replac replace status of the specified ZooKeeperSet - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { return ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet +// +// @return ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.ReplaceCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") @@ -12499,19 +12576,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) ReplaceCloudStreamnativeIoV1alph } type ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -12583,26 +12660,27 @@ WatchCloudStreamnativeIoV1alpha2AWSSubscription Method for WatchCloudStreamnativ watch changes to an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscription(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest { return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionExecute(r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscription") @@ -12702,18 +12780,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -12785,24 +12863,25 @@ WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList Method for WatchCloudStreamn watch individual changes to a list of AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest { return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionList") @@ -12901,19 +12980,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -12985,26 +13064,27 @@ WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus Method for WatchCloudStrea watch changes to status of an object of kind AWSSubscription. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the AWSSubscription - @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the AWSSubscription + @return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus(ctx context.Context, name string) ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, + ctx: ctx, + name: name, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2AWSSubscriptionStatus") @@ -13104,18 +13184,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -13187,24 +13267,25 @@ WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces Method for Wat watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2BookKeeperSetListForAllNamespaces") @@ -13303,18 +13384,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -13386,24 +13467,25 @@ WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces Method f watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2BookKeeperSetOptionListForAllNamespaces") @@ -13502,18 +13584,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -13585,24 +13667,25 @@ WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces Method for WatchC watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2MonitorSetListForAllNamespaces") @@ -13701,20 +13784,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -13786,28 +13869,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet Method for WatchCloudStr watch changes to an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSet") @@ -13908,19 +13992,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -13992,26 +14076,27 @@ WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList Method for WatchClou watch individual changes to a list of BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetList") @@ -14111,20 +14196,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -14196,28 +14281,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption Method for WatchCl watch changes to an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOption") @@ -14318,19 +14404,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -14402,26 +14488,27 @@ WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList Method for Wat watch individual changes to a list of BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionList") @@ -14521,20 +14608,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -14606,28 +14693,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus Method for W watch changes to status of an object of kind BookKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetOptionStatus") @@ -14728,20 +14816,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -14813,28 +14901,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus Method for WatchCl watch changes to status of an object of kind BookKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the BookKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the BookKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedBookKeeperSetStatus") @@ -14935,20 +15024,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -15020,28 +15109,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet Method for WatchCloudStream watch changes to an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSet") @@ -15142,19 +15232,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -15226,26 +15316,27 @@ WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList Method for WatchCloudSt watch individual changes to a list of MonitorSet. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetList") @@ -15345,20 +15436,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -15430,28 +15521,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus Method for WatchCloud watch changes to status of an object of kind MonitorSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the MonitorSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the MonitorSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedMonitorSetStatus") @@ -15552,20 +15644,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -15637,28 +15729,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet Method for WatchCloudStre watch changes to an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSet") @@ -15759,19 +15852,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -15843,26 +15936,27 @@ WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList Method for WatchCloud watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetList") @@ -15962,20 +16056,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16047,28 +16141,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption Method for WatchClo watch changes to an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOption") @@ -16169,19 +16264,19 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16253,26 +16348,27 @@ WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList Method for Watc watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList(ctx context.Context, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionList") @@ -16372,20 +16468,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16457,28 +16553,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus Method for Wa watch changes to status of an object of kind ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSetOption - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSetOption + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetOptionStatus") @@ -16579,20 +16676,20 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16664,28 +16761,29 @@ WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus Method for WatchClo watch changes to status of an object of kind ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the ZooKeeperSet - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the ZooKeeperSet + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus(ctx context.Context, name string, namespace string) ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest { return ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusExecute(r ApiWatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2NamespacedZooKeeperSetStatus") @@ -16786,18 +16884,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16869,24 +16967,25 @@ WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces Method for Watc watch individual changes to a list of ZooKeeperSet. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetListForAllNamespaces") @@ -16985,18 +17084,18 @@ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2 } type ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest struct { - ctx context.Context - ApiService *CloudStreamnativeIoV1alpha2ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *CloudStreamnativeIoV1alpha2ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -17068,24 +17167,25 @@ WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces Method fo watch individual changes to a list of ZooKeeperSetOption. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest */ func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces(ctx context.Context) ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest { return ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *CloudStreamnativeIoV1alpha2ApiService) WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesExecute(r ApiWatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudStreamnativeIoV1alpha2ApiService.WatchCloudStreamnativeIoV1alpha2ZooKeeperSetOptionListForAllNamespaces") diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io.go b/sdk/sdk-apiserver/api_compute_streamnative_io.go index 15bd6ac..ef0dc5f 100644 --- a/sdk/sdk-apiserver/api_compute_streamnative_io.go +++ b/sdk/sdk-apiserver/api_compute_streamnative_io.go @@ -35,12 +35,11 @@ import ( "net/url" ) - // ComputeStreamnativeIoApiService ComputeStreamnativeIoApi service type ComputeStreamnativeIoApiService service type ApiGetComputeStreamnativeIoAPIGroupRequest struct { - ctx context.Context + ctx context.Context ApiService *ComputeStreamnativeIoApiService } @@ -53,24 +52,25 @@ GetComputeStreamnativeIoAPIGroup Method for GetComputeStreamnativeIoAPIGroup get information of a group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetComputeStreamnativeIoAPIGroupRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetComputeStreamnativeIoAPIGroupRequest */ func (a *ComputeStreamnativeIoApiService) GetComputeStreamnativeIoAPIGroup(ctx context.Context) ApiGetComputeStreamnativeIoAPIGroupRequest { return ApiGetComputeStreamnativeIoAPIGroupRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIGroup +// +// @return V1APIGroup func (a *ComputeStreamnativeIoApiService) GetComputeStreamnativeIoAPIGroupExecute(r ApiGetComputeStreamnativeIoAPIGroupRequest) (*V1APIGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIGroup ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoApiService.GetComputeStreamnativeIoAPIGroup") diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go index d5aa471..72c0477 100644 --- a/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go @@ -36,17 +36,16 @@ import ( "strings" ) - // ComputeStreamnativeIoV1alpha1ApiService ComputeStreamnativeIoV1alpha1Api service type ComputeStreamnativeIoV1alpha1ApiService service type ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string fieldManager *string } @@ -82,26 +81,27 @@ CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for CreateCo create a FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") @@ -185,13 +185,13 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1a } type ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string fieldManager *string } @@ -227,28 +227,29 @@ CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for Cr create status of a FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { return ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") @@ -333,12 +334,12 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1a } type ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string fieldManager *string } @@ -374,26 +375,27 @@ CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for CreateComputeS create a Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspace") @@ -477,13 +479,13 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1a } type ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string fieldManager *string } @@ -519,28 +521,29 @@ CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for CreateCo create status of a Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { return ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiCreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.CreateComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") @@ -625,22 +628,22 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) CreateComputeStreamnativeIoV1a } type ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -729,26 +732,27 @@ DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment Method fo delete collection of FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment(ctx context.Context, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest { return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentExecute(r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeploymentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedFlinkDeployment") @@ -856,22 +860,22 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1a } type ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - continue_ *string - dryRun *string - fieldSelector *string - gracePeriodSeconds *int32 - labelSelector *string - limit *int32 - orphanDependents *bool - propagationPolicy *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + continue_ *string + dryRun *string + fieldSelector *string + gracePeriodSeconds *int32 + labelSelector *string + limit *int32 + orphanDependents *bool + propagationPolicy *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - body *V1DeleteOptions + timeoutSeconds *int32 + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -960,26 +964,27 @@ DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace Method for Dele delete collection of Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace(ctx context.Context, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest { return ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceExecute(r ApiDeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspaceRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1CollectionNamespacedWorkspace") @@ -1087,16 +1092,16 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1a } type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1143,28 +1148,29 @@ DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for DeleteCo delete a FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") @@ -1252,16 +1258,16 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1a } type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1308,28 +1314,29 @@ DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for De delete status of a FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") @@ -1417,16 +1424,16 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1a } type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1473,28 +1480,29 @@ DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for DeleteComputeS delete a Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspace") @@ -1582,16 +1590,16 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1a } type ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + pretty *string + dryRun *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -1638,28 +1646,29 @@ DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for DeleteCo delete status of a Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { return ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1Status +// +// @return V1Status func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiDeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*V1Status, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1Status + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1Status ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.DeleteComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") @@ -1747,7 +1756,7 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) DeleteComputeStreamnativeIoV1a } type ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest struct { - ctx context.Context + ctx context.Context ApiService *ComputeStreamnativeIoV1alpha1ApiService } @@ -1760,24 +1769,25 @@ GetComputeStreamnativeIoV1alpha1APIResources Method for GetComputeStreamnativeIo get available resources - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) GetComputeStreamnativeIoV1alpha1APIResources(ctx context.Context) ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest { return ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1APIResourceList +// +// @return V1APIResourceList func (a *ComputeStreamnativeIoV1alpha1ApiService) GetComputeStreamnativeIoV1alpha1APIResourcesExecute(r ApiGetComputeStreamnativeIoV1alpha1APIResourcesRequest) (*V1APIResourceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIResourceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.GetComputeStreamnativeIoV1alpha1APIResources") @@ -1846,18 +1856,18 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) GetComputeStreamnativeIoV1alph } type ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -1929,24 +1939,25 @@ ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces Method for List list or watch objects of kind FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces(ctx context.Context) ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest { return ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesExecute(r ApiListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1FlinkDeploymentForAllNamespaces") @@ -2045,19 +2056,19 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alp } type ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -2129,26 +2140,27 @@ ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for ListComput list or watch objects of kind FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, namespace string) ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { return ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiListComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") @@ -2248,19 +2260,19 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alp } type ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -2332,26 +2344,27 @@ ListComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for ListComputeStrea list or watch objects of kind Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, namespace string) ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { return ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiListComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1NamespacedWorkspace") @@ -2451,18 +2464,18 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alp } type ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -2534,24 +2547,25 @@ ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces Method for ListComput list or watch objects of kind Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces(ctx context.Context) ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest { return ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesExecute(r ApiListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespacesRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ListComputeStreamnativeIoV1alpha1WorkspaceForAllNamespaces") @@ -2650,15 +2664,15 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ListComputeStreamnativeIoV1alp } type ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { @@ -2699,28 +2713,29 @@ PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for PatchComp partially update the specified FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") @@ -2808,15 +2823,15 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1al } type ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { @@ -2857,28 +2872,29 @@ PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for Pat partially update status of the specified FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { return ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") @@ -2966,15 +2982,15 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1al } type ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { @@ -3015,28 +3031,29 @@ PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for PatchComputeStr partially update the specified Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspace") @@ -3124,15 +3141,15 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1al } type ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *map[string]interface{} - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *map[string]interface{} + pretty *string + dryRun *string fieldManager *string - force *bool + force *bool } func (r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) Body(body map[string]interface{}) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { @@ -3173,28 +3190,29 @@ PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for PatchComp partially update status of the specified Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { return ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiPatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.PatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") @@ -3282,11 +3300,11 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) PatchComputeStreamnativeIoV1al } type ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { - ctx context.Context + ctx context.Context ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -3304,28 +3322,29 @@ ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for ReadComput read the specified FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") @@ -3399,11 +3418,11 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alp } type ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -3421,28 +3440,29 @@ ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for Read read status of the specified FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { return ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") @@ -3516,11 +3536,11 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alp } type ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { - ctx context.Context + ctx context.Context ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -3538,28 +3558,29 @@ ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for ReadComputeStrea read the specified Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspace") @@ -3633,11 +3654,11 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alp } type ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - pretty *string + name string + namespace string + pretty *string } // If 'true', then the output is pretty printed. @@ -3655,28 +3676,29 @@ ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for ReadComput read status of the specified Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { return ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReadComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") @@ -3750,13 +3772,13 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReadComputeStreamnativeIoV1alp } type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string fieldManager *string } @@ -3792,28 +3814,29 @@ ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for Replace replace the specified FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") @@ -3898,13 +3921,13 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1 } type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + pretty *string + dryRun *string fieldManager *string } @@ -3940,28 +3963,29 @@ ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for R replace status of the specified FlinkDeployment - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") @@ -4046,13 +4070,13 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1 } type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string fieldManager *string } @@ -4088,28 +4112,29 @@ ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for ReplaceComput replace the specified Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspace") @@ -4194,13 +4219,13 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1 } type ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace - pretty *string - dryRun *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + body *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + pretty *string + dryRun *string fieldManager *string } @@ -4236,28 +4261,29 @@ ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for Replace replace status of the specified Workspace - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { return ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace +// +// @return ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.ReplaceComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") @@ -4342,18 +4368,18 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) ReplaceComputeStreamnativeIoV1 } type ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -4425,24 +4451,25 @@ WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces Method for watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces(ctx context.Context) ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest { return ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesExecute(r ApiWatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1FlinkDeploymentListForAllNamespaces") @@ -4541,20 +4568,20 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1al } type ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -4626,28 +4653,29 @@ WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment Method for WatchComp watch changes to an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest { return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeployment") @@ -4748,19 +4776,19 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1al } type ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -4832,26 +4860,27 @@ WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList Method for Watch watch individual changes to a list of FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList(ctx context.Context, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest { return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentList") @@ -4951,20 +4980,20 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1al } type ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5036,28 +5065,29 @@ WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus Method for Wat watch changes to status of an object of kind FlinkDeployment. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the FlinkDeployment - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the FlinkDeployment + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest { return ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedFlinkDeploymentStatus") @@ -5158,20 +5188,20 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1al } type ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5243,28 +5273,29 @@ WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace Method for WatchComputeStr watch changes to an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest { return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspace") @@ -5365,19 +5396,19 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1al } type ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5449,26 +5480,27 @@ WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList Method for WatchComput watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList(ctx context.Context, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest { return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest{ ApiService: a, - ctx: ctx, - namespace: namespace, + ctx: ctx, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceListRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceList") @@ -5568,20 +5600,20 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1al } type ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - name string - namespace string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + name string + namespace string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5653,28 +5685,29 @@ WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus Method for WatchComp watch changes to status of an object of kind Workspace. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param name name of the Workspace - @param namespace object name and auth scope, such as for teams and projects - @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param name name of the Workspace + @param namespace object name and auth scope, such as for teams and projects + @return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus(ctx context.Context, name string, namespace string) ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest { return ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest{ ApiService: a, - ctx: ctx, - name: name, - namespace: namespace, + ctx: ctx, + name: name, + namespace: namespace, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusExecute(r ApiWatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatusRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1NamespacedWorkspaceStatus") @@ -5775,18 +5808,18 @@ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1al } type ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest struct { - ctx context.Context - ApiService *ComputeStreamnativeIoV1alpha1ApiService - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - pretty *string - resourceVersion *string + ctx context.Context + ApiService *ComputeStreamnativeIoV1alpha1ApiService + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + pretty *string + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -5858,24 +5891,25 @@ WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces Method for Watch watch individual changes to a list of Workspace. deprecated: use the 'watch' parameter with a list operation instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest */ func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces(ctx context.Context) ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest { return ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return V1WatchEvent +// +// @return V1WatchEvent func (a *ComputeStreamnativeIoV1alpha1ApiService) WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesExecute(r ApiWatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespacesRequest) (*V1WatchEvent, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1WatchEvent + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1WatchEvent ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ComputeStreamnativeIoV1alpha1ApiService.WatchComputeStreamnativeIoV1alpha1WorkspaceListForAllNamespaces") diff --git a/sdk/sdk-apiserver/api_custom_objects.go b/sdk/sdk-apiserver/api_custom_objects.go index 75e392e..7c538cf 100644 --- a/sdk/sdk-apiserver/api_custom_objects.go +++ b/sdk/sdk-apiserver/api_custom_objects.go @@ -36,20 +36,19 @@ import ( "strings" ) - // CustomObjectsApiService CustomObjectsApi service type CustomObjectsApiService service type ApiCreateClusterCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - body *map[string]interface{} - pretty *string - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string fieldValidation *string } @@ -92,30 +91,31 @@ CreateClusterCustomObject Method for CreateClusterCustomObject Creates a cluster scoped Custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. - @return ApiCreateClusterCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiCreateClusterCustomObjectRequest */ func (a *CustomObjectsApiService) CreateClusterCustomObject(ctx context.Context, group string, version string, plural string) ApiCreateClusterCustomObjectRequest { return ApiCreateClusterCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, + ctx: ctx, + group: group, + version: version, + plural: plural, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) CreateClusterCustomObjectExecute(r ApiCreateClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.CreateClusterCustomObject") @@ -204,16 +204,16 @@ func (a *CustomObjectsApiService) CreateClusterCustomObjectExecute(r ApiCreateCl } type ApiCreateNamespacedCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - body *map[string]interface{} - pretty *string - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + body *map[string]interface{} + pretty *string + dryRun *string + fieldManager *string fieldValidation *string } @@ -256,32 +256,33 @@ CreateNamespacedCustomObject Method for CreateNamespacedCustomObject Creates a namespace scoped Custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @param namespace The custom resource's namespace - @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. - @return ApiCreateNamespacedCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param namespace The custom resource's namespace + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiCreateNamespacedCustomObjectRequest */ func (a *CustomObjectsApiService) CreateNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string) ApiCreateNamespacedCustomObjectRequest { return ApiCreateNamespacedCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) CreateNamespacedCustomObjectExecute(r ApiCreateNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.CreateNamespacedCustomObject") @@ -371,17 +372,17 @@ func (a *CustomObjectsApiService) CreateNamespacedCustomObjectExecute(r ApiCreat } type ApiDeleteClusterCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - name string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - dryRun *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + dryRun *string + body *V1DeleteOptions } // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -422,32 +423,33 @@ DeleteClusterCustomObject Method for DeleteClusterCustomObject Deletes the specified cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiDeleteClusterCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiDeleteClusterCustomObjectRequest */ func (a *CustomObjectsApiService) DeleteClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiDeleteClusterCustomObjectRequest { return ApiDeleteClusterCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) DeleteClusterCustomObjectExecute(r ApiDeleteClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteClusterCustomObject") @@ -534,18 +536,18 @@ func (a *CustomObjectsApiService) DeleteClusterCustomObjectExecute(r ApiDeleteCl } type ApiDeleteCollectionClusterCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - pretty *string - labelSelector *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + pretty *string + labelSelector *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - dryRun *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + dryRun *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -598,30 +600,31 @@ DeleteCollectionClusterCustomObject Method for DeleteCollectionClusterCustomObje Delete collection of cluster scoped custom objects - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. - @return ApiDeleteCollectionClusterCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiDeleteCollectionClusterCustomObjectRequest */ func (a *CustomObjectsApiService) DeleteCollectionClusterCustomObject(ctx context.Context, group string, version string, plural string) ApiDeleteCollectionClusterCustomObjectRequest { return ApiDeleteCollectionClusterCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, + ctx: ctx, + group: group, + version: version, + plural: plural, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) DeleteCollectionClusterCustomObjectExecute(r ApiDeleteCollectionClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteCollectionClusterCustomObject") @@ -713,20 +716,20 @@ func (a *CustomObjectsApiService) DeleteCollectionClusterCustomObjectExecute(r A } type ApiDeleteCollectionNamespacedCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - pretty *string - labelSelector *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + pretty *string + labelSelector *string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - dryRun *string - fieldSelector *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + dryRun *string + fieldSelector *string + body *V1DeleteOptions } // If 'true', then the output is pretty printed. @@ -785,32 +788,33 @@ DeleteCollectionNamespacedCustomObject Method for DeleteCollectionNamespacedCust Delete collection of namespace scoped custom objects - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @param namespace The custom resource's namespace - @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. - @return ApiDeleteCollectionNamespacedCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param namespace The custom resource's namespace + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiDeleteCollectionNamespacedCustomObjectRequest */ func (a *CustomObjectsApiService) DeleteCollectionNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string) ApiDeleteCollectionNamespacedCustomObjectRequest { return ApiDeleteCollectionNamespacedCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) DeleteCollectionNamespacedCustomObjectExecute(r ApiDeleteCollectionNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteCollectionNamespacedCustomObject") @@ -906,18 +910,18 @@ func (a *CustomObjectsApiService) DeleteCollectionNamespacedCustomObjectExecute( } type ApiDeleteNamespacedCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string gracePeriodSeconds *int32 - orphanDependents *bool - propagationPolicy *string - dryRun *string - body *V1DeleteOptions + orphanDependents *bool + propagationPolicy *string + dryRun *string + body *V1DeleteOptions } // The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -958,34 +962,35 @@ DeleteNamespacedCustomObject Method for DeleteNamespacedCustomObject Deletes the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiDeleteNamespacedCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiDeleteNamespacedCustomObjectRequest */ func (a *CustomObjectsApiService) DeleteNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiDeleteNamespacedCustomObjectRequest { return ApiDeleteNamespacedCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) DeleteNamespacedCustomObjectExecute(r ApiDeleteNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.DeleteNamespacedCustomObject") @@ -1073,12 +1078,12 @@ func (a *CustomObjectsApiService) DeleteNamespacedCustomObjectExecute(r ApiDelet } type ApiGetClusterCustomObjectRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomObjectsApiService - group string - version string - plural string - name string + group string + version string + plural string + name string } func (r ApiGetClusterCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -1090,32 +1095,33 @@ GetClusterCustomObject Method for GetClusterCustomObject Returns a cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiGetClusterCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetClusterCustomObjectRequest */ func (a *CustomObjectsApiService) GetClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiGetClusterCustomObjectRequest { return ApiGetClusterCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) GetClusterCustomObjectExecute(r ApiGetClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetClusterCustomObject") @@ -1188,12 +1194,12 @@ func (a *CustomObjectsApiService) GetClusterCustomObjectExecute(r ApiGetClusterC } type ApiGetClusterCustomObjectScaleRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomObjectsApiService - group string - version string - plural string - name string + group string + version string + plural string + name string } func (r ApiGetClusterCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -1205,32 +1211,33 @@ GetClusterCustomObjectScale Method for GetClusterCustomObjectScale read scale of the specified custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiGetClusterCustomObjectScaleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetClusterCustomObjectScaleRequest */ func (a *CustomObjectsApiService) GetClusterCustomObjectScale(ctx context.Context, group string, version string, plural string, name string) ApiGetClusterCustomObjectScaleRequest { return ApiGetClusterCustomObjectScaleRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) GetClusterCustomObjectScaleExecute(r ApiGetClusterCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetClusterCustomObjectScale") @@ -1303,12 +1310,12 @@ func (a *CustomObjectsApiService) GetClusterCustomObjectScaleExecute(r ApiGetClu } type ApiGetClusterCustomObjectStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomObjectsApiService - group string - version string - plural string - name string + group string + version string + plural string + name string } func (r ApiGetClusterCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -1320,32 +1327,33 @@ GetClusterCustomObjectStatus Method for GetClusterCustomObjectStatus read status of the specified cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiGetClusterCustomObjectStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetClusterCustomObjectStatusRequest */ func (a *CustomObjectsApiService) GetClusterCustomObjectStatus(ctx context.Context, group string, version string, plural string, name string) ApiGetClusterCustomObjectStatusRequest { return ApiGetClusterCustomObjectStatusRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) GetClusterCustomObjectStatusExecute(r ApiGetClusterCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetClusterCustomObjectStatus") @@ -1418,10 +1426,10 @@ func (a *CustomObjectsApiService) GetClusterCustomObjectStatusExecute(r ApiGetCl } type ApiGetCustomObjectsAPIResourcesRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomObjectsApiService - group string - version string + group string + version string } func (r ApiGetCustomObjectsAPIResourcesRequest) Execute() (*V1APIResourceList, *http.Response, error) { @@ -1433,28 +1441,29 @@ GetCustomObjectsAPIResources Method for GetCustomObjectsAPIResources get available resources - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @return ApiGetCustomObjectsAPIResourcesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @return ApiGetCustomObjectsAPIResourcesRequest */ func (a *CustomObjectsApiService) GetCustomObjectsAPIResources(ctx context.Context, group string, version string) ApiGetCustomObjectsAPIResourcesRequest { return ApiGetCustomObjectsAPIResourcesRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, + ctx: ctx, + group: group, + version: version, } } // Execute executes the request -// @return V1APIResourceList +// +// @return V1APIResourceList func (a *CustomObjectsApiService) GetCustomObjectsAPIResourcesExecute(r ApiGetCustomObjectsAPIResourcesRequest) (*V1APIResourceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *V1APIResourceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V1APIResourceList ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetCustomObjectsAPIResources") @@ -1525,13 +1534,13 @@ func (a *CustomObjectsApiService) GetCustomObjectsAPIResourcesExecute(r ApiGetCu } type ApiGetNamespacedCustomObjectRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string + group string + version string + namespace string + plural string + name string } func (r ApiGetNamespacedCustomObjectRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -1543,34 +1552,35 @@ GetNamespacedCustomObject Method for GetNamespacedCustomObject Returns a namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiGetNamespacedCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetNamespacedCustomObjectRequest */ func (a *CustomObjectsApiService) GetNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiGetNamespacedCustomObjectRequest { return ApiGetNamespacedCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) GetNamespacedCustomObjectExecute(r ApiGetNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetNamespacedCustomObject") @@ -1644,13 +1654,13 @@ func (a *CustomObjectsApiService) GetNamespacedCustomObjectExecute(r ApiGetNames } type ApiGetNamespacedCustomObjectScaleRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string + group string + version string + namespace string + plural string + name string } func (r ApiGetNamespacedCustomObjectScaleRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -1662,34 +1672,35 @@ GetNamespacedCustomObjectScale Method for GetNamespacedCustomObjectScale read scale of the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiGetNamespacedCustomObjectScaleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetNamespacedCustomObjectScaleRequest */ func (a *CustomObjectsApiService) GetNamespacedCustomObjectScale(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiGetNamespacedCustomObjectScaleRequest { return ApiGetNamespacedCustomObjectScaleRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) GetNamespacedCustomObjectScaleExecute(r ApiGetNamespacedCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetNamespacedCustomObjectScale") @@ -1763,13 +1774,13 @@ func (a *CustomObjectsApiService) GetNamespacedCustomObjectScaleExecute(r ApiGet } type ApiGetNamespacedCustomObjectStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string + group string + version string + namespace string + plural string + name string } func (r ApiGetNamespacedCustomObjectStatusRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -1781,34 +1792,35 @@ GetNamespacedCustomObjectStatus Method for GetNamespacedCustomObjectStatus read status of the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiGetNamespacedCustomObjectStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiGetNamespacedCustomObjectStatusRequest */ func (a *CustomObjectsApiService) GetNamespacedCustomObjectStatus(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiGetNamespacedCustomObjectStatusRequest { return ApiGetNamespacedCustomObjectStatusRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) GetNamespacedCustomObjectStatusExecute(r ApiGetNamespacedCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.GetNamespacedCustomObjectStatus") @@ -1882,21 +1894,21 @@ func (a *CustomObjectsApiService) GetNamespacedCustomObjectStatusExecute(r ApiGe } type ApiListClusterCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -1968,30 +1980,31 @@ ListClusterCustomObject Method for ListClusterCustomObject list or watch cluster scoped custom objects - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. - @return ApiListClusterCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiListClusterCustomObjectRequest */ func (a *CustomObjectsApiService) ListClusterCustomObject(ctx context.Context, group string, version string, plural string) ApiListClusterCustomObjectRequest { return ApiListClusterCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, + ctx: ctx, + group: group, + version: version, + plural: plural, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ListClusterCustomObjectExecute(r ApiListClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ListClusterCustomObject") @@ -2093,21 +2106,21 @@ func (a *CustomObjectsApiService) ListClusterCustomObjectExecute(r ApiListCluste } type ApiListCustomObjectForAllNamespacesRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -2179,30 +2192,31 @@ ListCustomObjectForAllNamespaces Method for ListCustomObjectForAllNamespaces list or watch namespace scoped custom objects - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. - @return ApiListCustomObjectForAllNamespacesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiListCustomObjectForAllNamespacesRequest */ func (a *CustomObjectsApiService) ListCustomObjectForAllNamespaces(ctx context.Context, group string, version string, plural string) ApiListCustomObjectForAllNamespacesRequest { return ApiListCustomObjectForAllNamespacesRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, + ctx: ctx, + group: group, + version: version, + plural: plural, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ListCustomObjectForAllNamespacesExecute(r ApiListCustomObjectForAllNamespacesRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ListCustomObjectForAllNamespaces") @@ -2304,22 +2318,22 @@ func (a *CustomObjectsApiService) ListCustomObjectForAllNamespacesExecute(r ApiL } type ApiListNamespacedCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - pretty *string - allowWatchBookmarks *bool - continue_ *string - fieldSelector *string - labelSelector *string - limit *int32 - resourceVersion *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + pretty *string + allowWatchBookmarks *bool + continue_ *string + fieldSelector *string + labelSelector *string + limit *int32 + resourceVersion *string resourceVersionMatch *string - timeoutSeconds *int32 - watch *bool + timeoutSeconds *int32 + watch *bool } // If 'true', then the output is pretty printed. @@ -2391,32 +2405,33 @@ ListNamespacedCustomObject Method for ListNamespacedCustomObject list or watch namespace scoped custom objects - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group The custom resource's group name - @param version The custom resource's version - @param namespace The custom resource's namespace - @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. - @return ApiListNamespacedCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group The custom resource's group name + @param version The custom resource's version + @param namespace The custom resource's namespace + @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. + @return ApiListNamespacedCustomObjectRequest */ func (a *CustomObjectsApiService) ListNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string) ApiListNamespacedCustomObjectRequest { return ApiListNamespacedCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ListNamespacedCustomObjectExecute(r ApiListNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ListNamespacedCustomObject") @@ -2519,17 +2534,17 @@ func (a *CustomObjectsApiService) ListNamespacedCustomObjectExecute(r ApiListNam } type ApiPatchClusterCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string - force *bool + force *bool } // The JSON schema of the Resource to patch. @@ -2571,32 +2586,33 @@ PatchClusterCustomObject Method for PatchClusterCustomObject patch the specified cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiPatchClusterCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchClusterCustomObjectRequest */ func (a *CustomObjectsApiService) PatchClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiPatchClusterCustomObjectRequest { return ApiPatchClusterCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) PatchClusterCustomObjectExecute(r ApiPatchClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchClusterCustomObject") @@ -2686,17 +2702,17 @@ func (a *CustomObjectsApiService) PatchClusterCustomObjectExecute(r ApiPatchClus } type ApiPatchClusterCustomObjectScaleRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string - force *bool + force *bool } func (r ApiPatchClusterCustomObjectScaleRequest) Body(body map[string]interface{}) ApiPatchClusterCustomObjectScaleRequest { @@ -2737,32 +2753,33 @@ PatchClusterCustomObjectScale Method for PatchClusterCustomObjectScale partially update scale of the specified cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiPatchClusterCustomObjectScaleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchClusterCustomObjectScaleRequest */ func (a *CustomObjectsApiService) PatchClusterCustomObjectScale(ctx context.Context, group string, version string, plural string, name string) ApiPatchClusterCustomObjectScaleRequest { return ApiPatchClusterCustomObjectScaleRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) PatchClusterCustomObjectScaleExecute(r ApiPatchClusterCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchClusterCustomObjectScale") @@ -2852,17 +2869,17 @@ func (a *CustomObjectsApiService) PatchClusterCustomObjectScaleExecute(r ApiPatc } type ApiPatchClusterCustomObjectStatusRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string - force *bool + force *bool } func (r ApiPatchClusterCustomObjectStatusRequest) Body(body map[string]interface{}) ApiPatchClusterCustomObjectStatusRequest { @@ -2903,32 +2920,33 @@ PatchClusterCustomObjectStatus Method for PatchClusterCustomObjectStatus partially update status of the specified cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiPatchClusterCustomObjectStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchClusterCustomObjectStatusRequest */ func (a *CustomObjectsApiService) PatchClusterCustomObjectStatus(ctx context.Context, group string, version string, plural string, name string) ApiPatchClusterCustomObjectStatusRequest { return ApiPatchClusterCustomObjectStatusRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) PatchClusterCustomObjectStatusExecute(r ApiPatchClusterCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchClusterCustomObjectStatus") @@ -3018,18 +3036,18 @@ func (a *CustomObjectsApiService) PatchClusterCustomObjectStatusExecute(r ApiPat } type ApiPatchNamespacedCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string - force *bool + force *bool } // The JSON schema of the Resource to patch. @@ -3071,34 +3089,35 @@ PatchNamespacedCustomObject Method for PatchNamespacedCustomObject patch the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiPatchNamespacedCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchNamespacedCustomObjectRequest */ func (a *CustomObjectsApiService) PatchNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiPatchNamespacedCustomObjectRequest { return ApiPatchNamespacedCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) PatchNamespacedCustomObjectExecute(r ApiPatchNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchNamespacedCustomObject") @@ -3189,18 +3208,18 @@ func (a *CustomObjectsApiService) PatchNamespacedCustomObjectExecute(r ApiPatchN } type ApiPatchNamespacedCustomObjectScaleRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string - force *bool + force *bool } func (r ApiPatchNamespacedCustomObjectScaleRequest) Body(body map[string]interface{}) ApiPatchNamespacedCustomObjectScaleRequest { @@ -3241,34 +3260,35 @@ PatchNamespacedCustomObjectScale Method for PatchNamespacedCustomObjectScale partially update scale of the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiPatchNamespacedCustomObjectScaleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchNamespacedCustomObjectScaleRequest */ func (a *CustomObjectsApiService) PatchNamespacedCustomObjectScale(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiPatchNamespacedCustomObjectScaleRequest { return ApiPatchNamespacedCustomObjectScaleRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) PatchNamespacedCustomObjectScaleExecute(r ApiPatchNamespacedCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchNamespacedCustomObjectScale") @@ -3359,18 +3379,18 @@ func (a *CustomObjectsApiService) PatchNamespacedCustomObjectScaleExecute(r ApiP } type ApiPatchNamespacedCustomObjectStatusRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string - force *bool + force *bool } func (r ApiPatchNamespacedCustomObjectStatusRequest) Body(body map[string]interface{}) ApiPatchNamespacedCustomObjectStatusRequest { @@ -3411,34 +3431,35 @@ PatchNamespacedCustomObjectStatus Method for PatchNamespacedCustomObjectStatus partially update status of the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiPatchNamespacedCustomObjectStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiPatchNamespacedCustomObjectStatusRequest */ func (a *CustomObjectsApiService) PatchNamespacedCustomObjectStatus(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiPatchNamespacedCustomObjectStatusRequest { return ApiPatchNamespacedCustomObjectStatusRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) PatchNamespacedCustomObjectStatusExecute(r ApiPatchNamespacedCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.PatchNamespacedCustomObjectStatus") @@ -3529,15 +3550,15 @@ func (a *CustomObjectsApiService) PatchNamespacedCustomObjectStatusExecute(r Api } type ApiReplaceClusterCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string } @@ -3574,32 +3595,33 @@ ReplaceClusterCustomObject Method for ReplaceClusterCustomObject replace the specified cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiReplaceClusterCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceClusterCustomObjectRequest */ func (a *CustomObjectsApiService) ReplaceClusterCustomObject(ctx context.Context, group string, version string, plural string, name string) ApiReplaceClusterCustomObjectRequest { return ApiReplaceClusterCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ReplaceClusterCustomObjectExecute(r ApiReplaceClusterCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceClusterCustomObject") @@ -3686,15 +3708,15 @@ func (a *CustomObjectsApiService) ReplaceClusterCustomObjectExecute(r ApiReplace } type ApiReplaceClusterCustomObjectScaleRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string } @@ -3730,32 +3752,33 @@ ReplaceClusterCustomObjectScale Method for ReplaceClusterCustomObjectScale replace scale of the specified cluster scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiReplaceClusterCustomObjectScaleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceClusterCustomObjectScaleRequest */ func (a *CustomObjectsApiService) ReplaceClusterCustomObjectScale(ctx context.Context, group string, version string, plural string, name string) ApiReplaceClusterCustomObjectScaleRequest { return ApiReplaceClusterCustomObjectScaleRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ReplaceClusterCustomObjectScaleExecute(r ApiReplaceClusterCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceClusterCustomObjectScale") @@ -3842,15 +3865,15 @@ func (a *CustomObjectsApiService) ReplaceClusterCustomObjectScaleExecute(r ApiRe } type ApiReplaceClusterCustomObjectStatusRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string } @@ -3886,32 +3909,33 @@ ReplaceClusterCustomObjectStatus Method for ReplaceClusterCustomObjectStatus replace status of the cluster scoped specified custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiReplaceClusterCustomObjectStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceClusterCustomObjectStatusRequest */ func (a *CustomObjectsApiService) ReplaceClusterCustomObjectStatus(ctx context.Context, group string, version string, plural string, name string) ApiReplaceClusterCustomObjectStatusRequest { return ApiReplaceClusterCustomObjectStatusRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ReplaceClusterCustomObjectStatusExecute(r ApiReplaceClusterCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceClusterCustomObjectStatus") @@ -3998,16 +4022,16 @@ func (a *CustomObjectsApiService) ReplaceClusterCustomObjectStatusExecute(r ApiR } type ApiReplaceNamespacedCustomObjectRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string } @@ -4044,34 +4068,35 @@ ReplaceNamespacedCustomObject Method for ReplaceNamespacedCustomObject replace the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiReplaceNamespacedCustomObjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceNamespacedCustomObjectRequest */ func (a *CustomObjectsApiService) ReplaceNamespacedCustomObject(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiReplaceNamespacedCustomObjectRequest { return ApiReplaceNamespacedCustomObjectRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectExecute(r ApiReplaceNamespacedCustomObjectRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceNamespacedCustomObject") @@ -4159,16 +4184,16 @@ func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectExecute(r ApiRepl } type ApiReplaceNamespacedCustomObjectScaleRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string } @@ -4204,34 +4229,35 @@ ReplaceNamespacedCustomObjectScale Method for ReplaceNamespacedCustomObjectScale replace scale of the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiReplaceNamespacedCustomObjectScaleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceNamespacedCustomObjectScaleRequest */ func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectScale(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiReplaceNamespacedCustomObjectScaleRequest { return ApiReplaceNamespacedCustomObjectScaleRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectScaleExecute(r ApiReplaceNamespacedCustomObjectScaleRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceNamespacedCustomObjectScale") @@ -4319,16 +4345,16 @@ func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectScaleExecute(r Ap } type ApiReplaceNamespacedCustomObjectStatusRequest struct { - ctx context.Context - ApiService *CustomObjectsApiService - group string - version string - namespace string - plural string - name string - body *map[string]interface{} - dryRun *string - fieldManager *string + ctx context.Context + ApiService *CustomObjectsApiService + group string + version string + namespace string + plural string + name string + body *map[string]interface{} + dryRun *string + fieldManager *string fieldValidation *string } @@ -4364,34 +4390,35 @@ ReplaceNamespacedCustomObjectStatus Method for ReplaceNamespacedCustomObjectStat replace status of the specified namespace scoped custom object - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param group the custom resource's group - @param version the custom resource's version - @param namespace The custom resource's namespace - @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. - @param name the custom object's name - @return ApiReplaceNamespacedCustomObjectStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param group the custom resource's group + @param version the custom resource's version + @param namespace The custom resource's namespace + @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. + @param name the custom object's name + @return ApiReplaceNamespacedCustomObjectStatusRequest */ func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectStatus(ctx context.Context, group string, version string, namespace string, plural string, name string) ApiReplaceNamespacedCustomObjectStatusRequest { return ApiReplaceNamespacedCustomObjectStatusRequest{ ApiService: a, - ctx: ctx, - group: group, - version: version, - namespace: namespace, - plural: plural, - name: name, + ctx: ctx, + group: group, + version: version, + namespace: namespace, + plural: plural, + name: name, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *CustomObjectsApiService) ReplaceNamespacedCustomObjectStatusExecute(r ApiReplaceNamespacedCustomObjectStatusRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomObjectsApiService.ReplaceNamespacedCustomObjectStatus") diff --git a/sdk/sdk-apiserver/api_version.go b/sdk/sdk-apiserver/api_version.go index 92eea19..ab6ee14 100644 --- a/sdk/sdk-apiserver/api_version.go +++ b/sdk/sdk-apiserver/api_version.go @@ -35,12 +35,11 @@ import ( "net/url" ) - // VersionApiService VersionApi service type VersionApiService service type ApiGetCodeVersionRequest struct { - ctx context.Context + ctx context.Context ApiService *VersionApiService } @@ -53,24 +52,25 @@ GetCodeVersion Method for GetCodeVersion get the code version - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetCodeVersionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCodeVersionRequest */ func (a *VersionApiService) GetCodeVersion(ctx context.Context) ApiGetCodeVersionRequest { return ApiGetCodeVersionRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return VersionInfo +// +// @return VersionInfo func (a *VersionApiService) GetCodeVersionExecute(r ApiGetCodeVersionRequest) (*VersionInfo, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VersionInfo + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VersionInfo ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionApiService.GetCodeVersion") diff --git a/sdk/sdk-apiserver/client.go b/sdk/sdk-apiserver/client.go index 1024ac6..df30af0 100644 --- a/sdk/sdk-apiserver/client.go +++ b/sdk/sdk-apiserver/client.go @@ -240,9 +240,9 @@ func (c *APIClient) GetConfig() *Configuration { } type formFile struct { - fileBytes []byte - fileName string - formFileName string + fileBytes []byte + fileName string + formFileName string } // prepareRequest build the request @@ -296,11 +296,11 @@ func (c *APIClient) prepareRequest( w.Boundary() part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) if err != nil { - return nil, err + return nil, err } _, err = part.Write(formFile.fileBytes) if err != nil { - return nil, err + return nil, err } } } diff --git a/sdk/sdk-apiserver/configuration.go b/sdk/sdk-apiserver/configuration.go index a5daffa..c72ccab 100644 --- a/sdk/sdk-apiserver/configuration.go +++ b/sdk/sdk-apiserver/configuration.go @@ -94,9 +94,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 @@ -117,17 +117,16 @@ type Configuration struct { // NewConfiguration returns a new Configuration object func NewConfiguration() *Configuration { cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.0.1/go", - Debug: false, - Servers: ServerConfigurations{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/0.0.1/go", + Debug: false, + Servers: ServerConfigurations{ { - URL: "", + URL: "", Description: "No description provided", }, }, - OperationServers: map[string]ServerConfigurations{ - }, + OperationServers: map[string]ServerConfigurations{}, } return cfg } diff --git a/sdk/sdk-apiserver/go.mod b/sdk/sdk-apiserver/go.mod index fd15566..9bdd735 100644 --- a/sdk/sdk-apiserver/go.mod +++ b/sdk/sdk-apiserver/go.mod @@ -1,9 +1,9 @@ module github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver -go 1.21 +go 1.23.0 toolchain go1.24.4 -require golang.org/x/oauth2 v0.25.0 +require golang.org/x/oauth2 v0.27.0 require github.com/google/go-cmp v0.7.0 // indirect diff --git a/sdk/sdk-apiserver/go.sum b/sdk/sdk-apiserver/go.sum index 2d08db8..c55f307 100644 --- a/sdk/sdk-apiserver/go.sum +++ b/sdk/sdk-apiserver/go.sum @@ -1,4 +1,4 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= -golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M= +golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go index 57d497c..c7cf0be 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go index e86aa98..8e9e033 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go @@ -36,10 +36,10 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition struct { // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` - Message *string `json:"message,omitempty"` - Reason *string `json:"reason,omitempty"` - Status string `json:"status"` - Type string `json:"type"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Condition object @@ -260,5 +260,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go index db5973b..d85cc07 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount s // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go index af9ae4a..0db0216 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccount `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go index 4fd1a35..afbc574 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go @@ -33,10 +33,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec IamAccountSpec defines the desired state of IamAccount type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec struct { - AdditionalCloudStorage []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage `json:"additionalCloudStorage,omitempty"` - CloudStorage *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage `json:"cloudStorage,omitempty"` - DisableIamRoleCreation *bool `json:"disableIamRoleCreation,omitempty"` - PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + AdditionalCloudStorage []ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage `json:"additionalCloudStorage,omitempty"` + CloudStorage *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1CloudStorage `json:"cloudStorage,omitempty"` + DisableIamRoleCreation *bool `json:"disableIamRoleCreation,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1IamAccountSpec object @@ -236,5 +236,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go index d05a79d..c3af3df 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go index 099da02..77bfde7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go index a7910a1..0dffd43 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1PoolMemberReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace string `json:"namespace"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go index e51c36c..486eae7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go @@ -233,5 +233,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go index 7fbd822..203852b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1RoleRef struct { - ApiGroup string `json:"apiGroup"` - Kind string `json:"kind"` - Name string `json:"name"` + ApiGroup string `json:"apiGroup"` + Kind string `json:"kind"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -215,5 +215,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go index 0ed47b7..f7729f7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectR // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReviewStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRbacReview object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go index dc09be6..9f2ad21 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go @@ -128,5 +128,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go index 7b4994c..068e79d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go @@ -128,5 +128,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go index 952fc1f..286a740 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectR // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReviewStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectRulesReview object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go index d32dc85..467cf10 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go @@ -128,5 +128,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go index 32bdea5..c877954 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go @@ -189,5 +189,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go index 07d2427..e6f005d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectU // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ObjectMeta `json:"metadata,omitempty"` // SelfSubjectUserReviewSpec defines the desired state of SelfSubjectUserReview - Spec map[string]interface{} `json:"spec,omitempty"` + Spec map[string]interface{} `json:"spec,omitempty"` Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SelfSubjectUserReviewStatus `json:"status,omitempty"` } @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go index beb8838..072975c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go index ba4678a..d4bc440 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleR // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReviewStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRoleReview object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go index 027ee57..9710000 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go index 2371c0a..22a7eb0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go index ea76a92..e7faf68 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRules // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReviewStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1SubjectRulesReview object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go index d5ae937..669aa65 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go index acdddd4..e8e9c39 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go @@ -189,5 +189,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go index d96f62e..b8ad4a8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go @@ -33,10 +33,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef struct for ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef type ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1UserRef struct { - ApiGroup string `json:"apiGroup"` - Kind string `json:"kind"` - Name string `json:"name"` - Namespace string `json:"namespace"` + ApiGroup string `json:"apiGroup"` + Kind string `json:"kind"` + Name string `json:"name"` + Namespace string `json:"namespace"` Organization ComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1Organization `json:"organization"` } @@ -237,5 +237,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisAuthorizationV1alpha1 v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go index ea63ce9..945610d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequ // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequest object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Custom v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go index 705eaed..a9aff86 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go @@ -34,8 +34,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec CustomerPortalRequestSpec represents the details of the request. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec struct { // The default URL to redirect customers to when they click on the portal’s link to return to your website. - ReturnURL *string `json:"returnURL,omitempty"` - Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec `json:"stripe,omitempty"` + ReturnURL *string `json:"returnURL,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestSpec `json:"stripe,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestSpec object @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Custom v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go index 0830500..860ef1d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go @@ -34,9 +34,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus CustomerPortalRequestStatus defines the observed state of CustomerPortalRequest type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus struct { // Conditions is an array of current observed conditions. - Conditions []V1Condition `json:"conditions,omitempty"` - Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus `json:"stripe,omitempty"` - Url *string `json:"url,omitempty"` + Conditions []V1Condition `json:"conditions,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeCustomerPortalRequestStatus `json:"stripe,omitempty"` + Url *string `json:"url,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1CustomerPortalRequestStatus object @@ -201,5 +201,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Custom v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go index bb8a27a..fa3e890 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go @@ -36,8 +36,8 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem struct { // Key is the item key within the offer and subscription. Key *string `json:"key,omitempty"` // Metadata is an unstructured key value map stored with an item. - Metadata *map[string]string `json:"metadata,omitempty"` - Price *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice `json:"price,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + Price *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice `json:"price,omitempty"` PriceRef *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference `json:"priceRef,omitempty"` // Quantity for this item. Quantity *string `json:"quantity,omitempty"` @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go index 71a5af2..5629be4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go @@ -34,8 +34,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice OfferItemPrice is used to specify a custom price for a given product. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPrice struct { // Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. - Currency *string `json:"currency,omitempty"` - Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` + Currency *string `json:"currency,omitempty"` + Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` Recurring *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring `json:"recurring,omitempty"` // Tiers are Stripes billing tiers like Tiers []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier `json:"tiers,omitempty"` @@ -312,5 +312,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go index 62e64a5..d315563 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go @@ -37,8 +37,8 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecu // Specifies billing frequency. Either `day`, `week`, `month` or `year`. Interval *string `json:"interval,omitempty"` // The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks). - IntervalCount *int64 `json:"intervalCount,omitempty"` - UsageType *string `json:"usageType,omitempty"` + IntervalCount *int64 `json:"intervalCount,omitempty"` + UsageType *string `json:"usageType,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItemPriceRecurring object @@ -238,5 +238,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go index f0e9d8f..4d4a9b7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference OfferReference references an offer object. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference struct { - Kind string `json:"kind"` - Name string `json:"name"` + Kind string `json:"kind"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -186,5 +186,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go index 1456b31..66493b9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent stru // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Paymen v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go index 0275fb8..de1bf06 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntent `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Paymen v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go index 78511c9..24e9a36 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec PaymentIntentSpec defines the desired state of PaymentIntent type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec struct { - Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent `json:"stripe,omitempty"` - SubscriptionName *string `json:"subscriptionName,omitempty"` - Type *string `json:"type,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent `json:"stripe,omitempty"` + SubscriptionName *string `json:"subscriptionName,omitempty"` + Type *string `json:"type,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PaymentIntentSpec object @@ -200,5 +200,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Paymen v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go index 4f6c68f..b62ee8d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Paymen v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go index bed7aba..8c4421f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference PriceReference references a price within a Product object. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceReference struct { // Key is the price key within the product specification. - Key *string `json:"key,omitempty"` + Key *string `json:"key,omitempty"` Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` } @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PriceR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go index 612f4b3..daf7b53 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go @@ -36,9 +36,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer struc // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec `json:"spec,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec `json:"spec,omitempty"` // PrivateOfferStatus defines the observed state of PrivateOffer Status map[string]interface{} `json:"status,omitempty"` } @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Privat v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go index a647970..562eccb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOffer `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Privat v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go index 779041f..17ccb13 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go @@ -35,8 +35,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec PrivateOfferSpec defines the desired state of PrivateOffer type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec struct { // AnchorDate is a timestamp representing the first billing cycle end date. This will be used to anchor future billing periods to that date. For example, setting the anchor date for a subscription starting on Apr 1 to be Apr 12 will send the invoice for the subscription out on Apr 12 and the 12th of every following month for a monthly subscription. It is represented in RFC3339 form and is in UTC. - AnchorDate *time.Time `json:"anchorDate,omitempty"` - Description *string `json:"description,omitempty"` + AnchorDate *time.Time `json:"anchorDate,omitempty"` + Description *string `json:"description,omitempty"` // Duration indicates how long the subscription for this offer should last. The value must greater than 0 Duration *string `json:"duration,omitempty"` // EndDate is a timestamp representing the planned end date of the subscription. It is represented in RFC3339 form and is in UTC. @@ -46,8 +46,8 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec s // Recurring items, each with an attached price. Recurring []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem `json:"recurring,omitempty"` // StartDate is a timestamp representing the planned start date of the subscription. It is represented in RFC3339 form and is in UTC. - StartDate *time.Time `json:"startDate,omitempty"` - Stripe map[string]interface{} `json:"stripe,omitempty"` + StartDate *time.Time `json:"startDate,omitempty"` + Stripe map[string]interface{} `json:"stripe,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PrivateOfferSpec object @@ -387,5 +387,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Privat v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go index 657119f..d057500 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Produc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go index 5af09db..bf7e5d0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Product `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Produc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go index 7858415..53b07e4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice ProductPrice specifies a price for a product. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice struct { // Key is the price key. - Key *string `json:"key,omitempty"` + Key *string `json:"key,omitempty"` Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec `json:"stripe,omitempty"` } @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Produc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go index c822b7a..3d57c84 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference ProductReference references a Product object. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Namespace *string `json:"namespace,omitempty"` } @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Produc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go index b5808dd..dca4d7e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go @@ -38,9 +38,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec struct // Name is the product name. Name *string `json:"name,omitempty"` // Prices associated with the product. - Prices []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice `json:"prices,omitempty"` + Prices []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductPrice `json:"prices,omitempty"` Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeProductSpec `json:"stripe,omitempty"` - Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec `json:"suger,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerProductSpec `json:"suger,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductSpec object @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Produc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go index 7de58b0..24a3409 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Produc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go index 66ce8f3..1b73f68 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductStatusPrice struct { - Key *string `json:"key,omitempty"` + Key *string `json:"key,omitempty"` StripeID *string `json:"stripeID,omitempty"` } @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Produc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go index 2bc8931..59c57a9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go @@ -36,9 +36,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec `json:"spec,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec `json:"spec,omitempty"` // PublicOfferStatus defines the observed state of PublicOffer Status map[string]interface{} `json:"status,omitempty"` } @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Public v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go index 82387f7..83bf535 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOffer `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Public v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go index 305b3aa..f5974b3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go @@ -38,7 +38,7 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec st Once []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem `json:"once,omitempty"` // Recurring items, each with an attached price. Recurring []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferItem `json:"recurring,omitempty"` - Stripe map[string]interface{} `json:"stripe,omitempty"` + Stripe map[string]interface{} `json:"stripe,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1PublicOfferSpec object @@ -238,5 +238,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Public v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go index 3b552af..94e1f43 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go index d60e676..7bef194 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntent `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go index 27c7b6c..7cbda63 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference SetupIntentReference represents a SetupIntent Reference. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Namespace *string `json:"namespace,omitempty"` } @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go index 29f2271..11085b1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec SetupIntentSpec defines the desired state of SetupIntent type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec struct { Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSetupIntent `json:"stripe,omitempty"` - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentSpec object @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go index c34da74..ba5af3b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupI v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go index 03cb722..4f7fc0a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go index 97d086d..f31c3b0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go index 7170ff3..e340470 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent struct { ClientSecret *string `json:"clientSecret,omitempty"` - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePaymentIntent object @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go index 5de5004..3f9b6eb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go @@ -37,8 +37,8 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurre // Interval is how often the price recurs Interval *string `json:"interval,omitempty"` // The number of intervals. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one-year interval is allowed (1 year, 12 months, or 52 weeks). - IntervalCount *int64 `json:"intervalCount,omitempty"` - UsageType *string `json:"usageType,omitempty"` + IntervalCount *int64 `json:"intervalCount,omitempty"` + UsageType *string `json:"usageType,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence object @@ -238,5 +238,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go index 842cdd1..555d613 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go @@ -38,7 +38,7 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceSpec st // Currency is the required three-letter ISO currency code The codes below were generated from https://stripe.com/docs/currencies Currency *string `json:"currency,omitempty"` // Name to be displayed in the Stripe dashboard, hidden from customers - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Recurring *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripePriceRecurrence `json:"recurring,omitempty"` // Tiers are Stripes billing tiers like Tiers []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier `json:"tiers,omitempty"` @@ -350,5 +350,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go index 72207a9..0644f93 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go index bfbb8d8..020f2d7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go index 57c2ea5..975d612 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Stripe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go index 381db73..33eaba1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription struc // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go index 7cecdcc..2915fa0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go index eb537c6..e07ebfc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntent `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go index 1a01422..8151fe3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec SubscriptionIntentSpec defines the desired state of SubscriptionIntent type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentSpec struct { - OfferRef *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference `json:"offerRef,omitempty"` - Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec `json:"suger,omitempty"` + OfferRef *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1OfferReference `json:"offerRef,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionIntentSpec `json:"suger,omitempty"` // The type of the subscription intent. Validate values: stripe, suger Default to stripe. Type *string `json:"type,omitempty"` } @@ -201,5 +201,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go index 51c50ca..f72fd4d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus SubscriptionIntentStatus defines the observed state of SubscriptionIntent type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus struct { // Conditions is an array of current observed conditions. - Conditions []V1Condition `json:"conditions,omitempty"` - PaymentIntentName *string `json:"paymentIntentName,omitempty"` - SetupIntentName *string `json:"setupIntentName,omitempty"` - SubscriptionName *string `json:"subscriptionName,omitempty"` + Conditions []V1Condition `json:"conditions,omitempty"` + PaymentIntentName *string `json:"paymentIntentName,omitempty"` + SetupIntentName *string `json:"setupIntentName,omitempty"` + SubscriptionName *string `json:"subscriptionName,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionIntentStatus object @@ -237,5 +237,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go index 759eb6d..c26daed 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go @@ -36,8 +36,8 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem s // Key is the item key within the subscription. Key *string `json:"key,omitempty"` // Metadata is an unstructured key value map stored with an item. - Metadata *map[string]string `json:"metadata,omitempty"` - Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + Product *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1ProductReference `json:"product,omitempty"` // Quantity for this item. Quantity *string `json:"quantity,omitempty"` } @@ -239,5 +239,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go index 8f1f55b..a9355ee 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscription `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go index 8e11d67..7450dff 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference SubscriptionReference references a Subscription object. type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Namespace *string `json:"namespace,omitempty"` } @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go index a1cdce7..07399f6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go @@ -37,21 +37,21 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionSpec s // AnchorDate is a timestamp representing the first billing cycle end date. It is represented by seconds from the epoch on the Stripe side. AnchorDate *time.Time `json:"anchorDate,omitempty"` // CloudType will validate resources like the consumption unit product are restricted to the correct cloud provider - CloudType *string `json:"cloudType,omitempty"` + CloudType *string `json:"cloudType,omitempty"` Description *string `json:"description,omitempty"` // EndDate is a timestamp representing the date when the subscription will be ended. It is represented in RFC3339 form and is in UTC. EndDate *time.Time `json:"endDate,omitempty"` // Ending balance for a subscription, this value is asynchrnously updated by billing-reporter and directly pulled from stripe's invoice object [1]. Negative at this value means that there are outstanding discount credits left for the customer. Nil implies that billing reporter hasn't run since creation and yet to set the value. [1] https://docs.stripe.com/api/invoices/object#invoice_object-ending_balance EndingBalanceCents *int64 `json:"endingBalanceCents,omitempty"` // One-time items. - Once []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem `json:"once,omitempty"` + Once []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem `json:"once,omitempty"` ParentSubscription *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionReference `json:"parentSubscription,omitempty"` // Recurring items. Recurring []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionItem `json:"recurring,omitempty"` // StartDate is a timestamp representing the start date of the subscription. It is represented in RFC3339 form and is in UTC. - StartDate *time.Time `json:"startDate,omitempty"` - Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec `json:"stripe,omitempty"` - Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec `json:"suger,omitempty"` + StartDate *time.Time `json:"startDate,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1StripeSubscriptionSpec `json:"stripe,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerSubscriptionSpec `json:"suger,omitempty"` // The type of the subscription. Validate values: stripe, suger Default to stripe. Type *string `json:"type,omitempty"` } @@ -533,5 +533,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go index 48c8425..17057f8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go @@ -36,8 +36,8 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus // Conditions is an array of current observed conditions. Conditions []V1Condition `json:"conditions,omitempty"` // the status of the subscription is designed to support billing agents, so it provides product and subscription items. - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem `json:"items,omitempty"` - PendingSetupIntent *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference `json:"pendingSetupIntent,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatusSubscriptionItem `json:"items,omitempty"` + PendingSetupIntent *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SetupIntentReference `json:"pendingSetupIntent,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SubscriptionStatus object @@ -202,5 +202,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go index 40d58c9..acce0dd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go @@ -240,5 +240,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Subscr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go index 6352cb7..1dd5fec 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementRe // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReviewStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerEntitlementReview object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerE v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go index f2af1f3..4059f35 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerE v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go index 1fa8722..0bdd136 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go @@ -240,5 +240,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerE v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go index 1ad325c..ee14372 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go @@ -159,5 +159,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerP v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go index 9447fc6..36d3443 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerP v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go index 0acd6c0..694a984 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go index cb9656b..15a76d2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go @@ -196,5 +196,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1SugerS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go index e75907b..30c6b11 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go index 5f5d437..99830fb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList struct for ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClock `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go index dfecb5f..c40110e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go @@ -160,5 +160,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go index e092a27..7b8a400 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go @@ -35,7 +35,7 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus struct { // Conditions is an array of current observed conditions. Conditions []V1Condition `json:"conditions,omitempty"` - StripeID *string `json:"stripeID,omitempty"` + StripeID *string `json:"stripeID,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestClockStatus object @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1TestCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go index 6d5bd54..b31b86f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisBillingV1alpha1Tier) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go index f930100..407517d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go index 98e11dd..d280503 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKey `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyLi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go index 0dccbca..f8b77da 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go @@ -35,7 +35,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec APIKeySpec defines the desired state of APIKey type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySpec struct { // Description is a user defined description of the key - Description *string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` EncryptionKey *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptionKey `json:"encryptionKey,omitempty"` // Expiration is a duration (as a golang duration string) that defines how long this API key is valid for. This can only be set on initial creation and not updated later ExpirationTime *time.Time `json:"expirationTime,omitempty"` @@ -314,5 +314,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySp v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go index 18811b5..54f0287 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go @@ -35,7 +35,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus APIKeyStatus defines the observed state of ServiceAccount type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeyStatus struct { // Conditions is an array of current observed service account conditions. - Conditions []V1Condition `json:"conditions,omitempty"` + Conditions []V1Condition `json:"conditions,omitempty"` EncryptedToken *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EncryptedToken `json:"encryptedToken,omitempty"` // ExpiresAt is a timestamp of when the key expires ExpiresAt *time.Time `json:"expiresAt,omitempty"` @@ -351,5 +351,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1APIKeySt v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go index 3882c45..092f00c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AuditLog v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go index 3973ee0..b350f36 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy AutoScalingPolicy defines the min/max replicas for component is autoscaling enabled. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScalingPolicy struct { - MaxReplicas int32 `json:"maxReplicas"` + MaxReplicas int32 `json:"maxReplicas"` MinReplicas *int32 `json:"minReplicas,omitempty"` } @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AutoScal v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go index 0d96b3e..d4fe5b8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloud v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go index ee262b8..fc2eb85 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go @@ -300,5 +300,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolM v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go index e87ae13..158ebe1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go @@ -33,10 +33,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection struct { - ClientId string `json:"clientId"` - SubscriptionId string `json:"subscriptionId"` + ClientId string `json:"clientId"` + SubscriptionId string `json:"subscriptionId"` SupportClientId string `json:"supportClientId"` - TenantId string `json:"tenantId"` + TenantId string `json:"tenantId"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection object @@ -208,5 +208,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureCon v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go index ae55346..b7ee6e3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go @@ -272,5 +272,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoo v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go index e794670..ef4018a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go index d75cb9a..2315c29 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go @@ -37,9 +37,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper struct { // Image name is the name of the image to deploy. Image *string `json:"image,omitempty"` // Replicas is the expected size of the bookkeeper cluster. - Replicas int32 `json:"replicas"` + Replicas int32 `json:"replicas"` ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperNodeResourceSpec `json:"resourceSpec,omitempty"` - Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource `json:"resources,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookkeeperNodeResource `json:"resources,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper object @@ -267,5 +267,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go index 47e12b2..8c1414a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go index 245c4c3..6271996 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go index 92b8df0..6928099 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go @@ -300,5 +300,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Bookkeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go index cd97125..3766aee 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go @@ -37,9 +37,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker struct { // Image name is the name of the image to deploy. Image *string `json:"image,omitempty"` // Replicas is the expected size of the broker cluster. - Replicas int32 `json:"replicas"` + Replicas int32 `json:"replicas"` ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNodeResourceSpec `json:"resourceSpec,omitempty"` - Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource `json:"resources,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultNodeResource `json:"resources,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker object @@ -267,5 +267,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go index 42bf764..f91d36a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BrokerNo v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go index 08b7f4e..7f5d4f2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain Chain specifies a named chain for a role definition array. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` RoleChain []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition `json:"roleChain,omitempty"` } @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain) U v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go index fc9b529..46ac616 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection stru // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudCon v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go index 48ac1f1..03e72a7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnection `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudCon v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go index 87ad9e0..7b2b8d2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go @@ -33,10 +33,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec CloudConnectionSpec defines the desired state of CloudConnection type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec struct { - Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection `json:"aws,omitempty"` - Azure *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection `json:"azure,omitempty"` - Gcp *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection `json:"gcp,omitempty"` - Type string `json:"type"` + Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AWSCloudConnection `json:"aws,omitempty"` + Azure *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzureConnection `json:"azure,omitempty"` + Gcp *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloudConnection `json:"gcp,omitempty"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionSpec object @@ -229,5 +229,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudCon v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go index 57740a0..67c8843 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus CloudConnectionStatus defines the observed state of CloudConnection type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudConnectionStatus struct { AvailableLocations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo `json:"availableLocations,omitempty"` - AwsPolicyVersion *string `json:"awsPolicyVersion,omitempty"` + AwsPolicyVersion *string `json:"awsPolicyVersion,omitempty"` // Conditions is an array of current observed conditions. Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` } @@ -201,5 +201,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudCon v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go index 11e8b68..d7c2af9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment str // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go index 3b8979b..03e3604 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironment `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go index 03132d3..bfda422 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec CloudEnvironmentSpec defines the desired state of CloudEnvironment type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentSpec struct { // CloudConnectionName references to the CloudConnection object - CloudConnectionName *string `json:"cloudConnectionName,omitempty"` - DefaultGateway *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway `json:"defaultGateway,omitempty"` - Dns *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS `json:"dns,omitempty"` - Network *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network `json:"network,omitempty"` + CloudConnectionName *string `json:"cloudConnectionName,omitempty"` + DefaultGateway *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway `json:"defaultGateway,omitempty"` + Dns *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS `json:"dns,omitempty"` + Network *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network `json:"network,omitempty"` // Region defines in which region will resources be deployed Region *string `json:"region,omitempty"` // Zone defines in which availability zone will resources be deployed If specified, the cloud environment will be zonal. Default to unspecified and regional cloud environment @@ -311,5 +311,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go index 4c9586e..8fb0034 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus CloudEnvironmentStatus defines the observed state of CloudEnvironment type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnvironmentStatus struct { // Conditions contains details for the current state of underlying resource - Conditions []V1Condition `json:"conditions,omitempty"` + Conditions []V1Condition `json:"conditions,omitempty"` DefaultGateway *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayStatus `json:"defaultGateway,omitempty"` } @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1CloudEnv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go index 74f8f63..4c135a4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go index 73db2f2..478d1bb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding s // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go index e3927a6..738a076 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBinding `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go index 3073803..23d2684 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec ClusterRoleBindingSpec defines the desired state of ClusterRoleBinding type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleBindingSpec struct { - RoleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef `json:"roleRef"` + RoleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef `json:"roleRef"` Subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject `json:"subjects"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go index 15419ee..ff87b41 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go index 07e42dc..fd2f914 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRoleList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterRole `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go index a480985..930feab 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go index 1b9f99e..d346c2a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ClusterR v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go index cdd4d52..37913dc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go @@ -36,12 +36,12 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition struct { // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` - Message *string `json:"message,omitempty"` + Message *string `json:"message,omitempty"` // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` - Reason *string `json:"reason,omitempty"` - Status string `json:"status"` - Type string `json:"type"` + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition object @@ -297,5 +297,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Conditio v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go index 3aa5004..1da134f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup ConditionGroup Deprecated type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup struct { - ConditionGroups []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup `json:"conditionGroups,omitempty"` - Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition `json:"conditions"` - Relation *int32 `json:"relation,omitempty"` + ConditionGroups []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup `json:"conditionGroups,omitempty"` + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition `json:"conditions"` + Relation *int32 `json:"relation,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup object @@ -193,5 +193,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Conditio v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go index 1b5f82c..a0acab3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go @@ -37,9 +37,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config struct { // Custom accepts custom configurations. Custom *map[string]string `json:"custom,omitempty"` // FunctionEnabled controls whether function is enabled. - FunctionEnabled *bool `json:"functionEnabled,omitempty"` + FunctionEnabled *bool `json:"functionEnabled,omitempty"` LakehouseStorage *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig `json:"lakehouseStorage,omitempty"` - Protocols *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig `json:"protocols,omitempty"` + Protocols *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ProtocolsConfig `json:"protocols,omitempty"` // TransactionEnabled controls whether transaction is enabled. TransactionEnabled *bool `json:"transactionEnabled,omitempty"` // WebsocketEnabled controls whether websocket is enabled. @@ -348,5 +348,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go index 466cddb..e42bffd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go @@ -226,5 +226,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DefaultN v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go index 3e40598..123a3c6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DNS) Unm v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go index 1d65ce2..a1dd653 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain struct { - Name string `json:"name"` - Tls *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS `json:"tls,omitempty"` - Type *string `json:"type,omitempty"` + Name string `json:"name"` + Tls *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTLS `json:"tls,omitempty"` + Type *string `json:"type,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain object @@ -193,5 +193,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go index 1f36908..c8c49ab 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1DomainTL v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go index 6c80905..76abdd0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Encrypte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go index acbced3..27f26a7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Encrypti v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go index 01676d8..159d461 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Endpoint v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go index 9c332ab..d6cfaea 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go @@ -233,5 +233,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConf v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go index 42f312d..ff856aa 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar ExecEnvVar is used for setting environment variables when executing an exec-based credential plugin. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvVar struct { - Name string `json:"name"` + Name string `json:"name"` Value string `json:"value"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecEnvV v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go index 192f82b..10f8200 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go @@ -182,5 +182,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go index 05b22fa..7452772 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go @@ -152,5 +152,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go index 266b37d..ec4527b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go @@ -182,5 +182,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRo v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go index 7ea86ad..502c16e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go @@ -182,5 +182,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRo v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go index 3cd7e5b..04d0655 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go index b4fcad5..6a6a774 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go @@ -39,7 +39,7 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec ClusterName *string `json:"clusterName,omitempty"` // Deprecated InitialNodeCount *int32 `json:"initialNodeCount,omitempty"` - Location string `json:"location"` + Location string `json:"location"` // Deprecated MachineType *string `json:"machineType,omitempty"` // Deprecated @@ -343,5 +343,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPo v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go index 7d3cc09..3e52757 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway Gateway defines the access of pulsar cluster endpoint type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway struct { // Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public. - Access *string `json:"access,omitempty"` + Access *string `json:"access,omitempty"` PrivateService *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService `json:"privateService,omitempty"` } @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Gateway) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go index 2202671..fe851df 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GatewayS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go index b97064d..76ebee0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCPCloud v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go index 93ffed7..d3a0d38 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go @@ -36,7 +36,7 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpe // Endpoint is *either* a full URL, or a hostname/port to point to the master Endpoint *string `json:"endpoint,omitempty"` // Location is the location of the cluster. - Location string `json:"location"` + Location string `json:"location"` MasterAuth *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth `json:"masterAuth,omitempty"` // TLSServerName is the SNI header name to set, overridding the default. This is just the hostname and no port TlsServerName *string `json:"tlsServerName,omitempty"` @@ -232,5 +232,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericP v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go index a40c5f1..51ccb54 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Identity v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go index d4b1e14..6699271 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPool `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Identity v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go index 7ec34d1..1521cbc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec IdentityPoolSpec defines the desired state of IdentityPool type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1IdentityPoolSpec struct { - AuthType string `json:"authType"` - Description string `json:"description"` - Expression string `json:"expression"` + AuthType string `json:"authType"` + Description string `json:"description"` + Expression string `json:"expression"` ProviderName string `json:"providerName"` } @@ -208,5 +208,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Identity v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go index 1db3f1b..7253cb3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Identity v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go index 36b3056..ecfd973 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV struct { - Name string `json:"name"` + Name string `json:"name"` Phase string `json:"phase"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Installe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go index f404877..82ca44f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go @@ -153,5 +153,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitati v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go index e9c6371..762232a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go @@ -35,10 +35,10 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig struct { CatalogConnectionUrl string `json:"catalogConnectionUrl"` // todo: maybe we need to support mount secrets as the catalog credentials? - CatalogCredentials string `json:"catalogCredentials"` - CatalogType *string `json:"catalogType,omitempty"` - CatalogWarehouse string `json:"catalogWarehouse"` - LakehouseType *string `json:"lakehouseType,omitempty"` + CatalogCredentials string `json:"catalogCredentials"` + CatalogType *string `json:"catalogType,omitempty"` + CatalogWarehouse string `json:"catalogWarehouse"` + LakehouseType *string `json:"lakehouseType,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1LakehouseStorageConfig object @@ -252,5 +252,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Lakehous v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go index a8fa92f..e0d179f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go @@ -34,8 +34,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow struct { // Recurrence define the maintenance execution cycle, 0~6, to express Monday to Sunday - Recurrence string `json:"recurrence"` - Window ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window `json:"window"` + Recurrence string `json:"recurrence"` + Window ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window `json:"window"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow object @@ -151,5 +151,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Maintena v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go index 658db77..8005283 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go @@ -38,8 +38,8 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAuth struct { // ClientKey is base64-encoded private key used by clients to authenticate to the cluster endpoint. ClientKey *string `json:"clientKey,omitempty"` // ClusterCaCertificate is base64-encoded public certificate that is the root of trust for the cluster. - ClusterCaCertificate *string `json:"clusterCaCertificate,omitempty"` - Exec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig `json:"exec,omitempty"` + ClusterCaCertificate *string `json:"clusterCaCertificate,omitempty"` + Exec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ExecConfig `json:"exec,omitempty"` // Password is the password to use for HTTP basic authentication to the master endpoint. Password *string `json:"password,omitempty"` // Username is the username to use for HTTP basic authentication to the master endpoint. @@ -313,5 +313,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MasterAu v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go index 0eaf460..cb2146e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Network) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go index 6be52a4..c7df009 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Co v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go index f1219b9..87da4c4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go index 0fbbb6e..4a6b833 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProvider `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go index c7e316a..9f8fe9a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec OIDCProviderSpec defines the desired state of OIDCProvider type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProviderSpec struct { - Description string `json:"description"` + Description string `json:"description"` DiscoveryUrl string `json:"discoveryUrl"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go index d7b044f..0fc2e06 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OIDCProv v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go index 2ba6ddf..8c68315 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organiza v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go index a014ae8..79224fc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organization `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organiza v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go index 58a28f8..23ba0d7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go @@ -33,24 +33,24 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec OrganizationSpec defines the desired state of Organization type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec struct { - AwsMarketplaceToken *string `json:"awsMarketplaceToken,omitempty"` - BillingAccount *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec `json:"billingAccount,omitempty"` + AwsMarketplaceToken *string `json:"awsMarketplaceToken,omitempty"` + BillingAccount *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BillingAccountSpec `json:"billingAccount,omitempty"` // Organiztion ID of this org's billing parent. Once set, this org will inherit parent org's subscription, paymentMetthod and have \"inherited\" as billing type BillingParent *string `json:"billingParent,omitempty"` // BillingType indicates the method of subscription that the organization uses. It is primarily consumed by the cloud-manager to be able to distinguish between invoiced subscriptions. BillingType *string `json:"billingType,omitempty"` // CloudFeature indicates features this org wants to enable/disable - CloudFeature *map[string]bool `json:"cloudFeature,omitempty"` + CloudFeature *map[string]bool `json:"cloudFeature,omitempty"` DefaultPoolRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef `json:"defaultPoolRef,omitempty"` // Name to display to our users - DisplayName *string `json:"displayName,omitempty"` - Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` - Gcloud *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec `json:"gcloud,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` + Gcloud *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudOrganizationSpec `json:"gcloud,omitempty"` // Metadata is user-visible (and possibly editable) metadata. - Metadata *map[string]string `json:"metadata,omitempty"` - Stripe *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe `json:"stripe,omitempty"` - Suger *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger `json:"suger,omitempty"` - Type *string `json:"type,omitempty"` + Metadata *map[string]string `json:"metadata,omitempty"` + Stripe *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationStripe `json:"stripe,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSuger `json:"suger,omitempty"` + Type *string `json:"type,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OrganizationSpec object @@ -565,5 +565,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organiza v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go index 49bc7e1..0a11704 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go @@ -240,5 +240,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organiza v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go index e1ac534..239bd93 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organiza v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go index d26d45a..8f50742 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Organiza v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go index 04d3358..7a01ea0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool) Un v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go index d13e4f6..ff124b5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Pool `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolList v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go index 84b13aa..f470ec1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go index 25eb7d6..789c2c6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go index e72e5b3..adb9e81 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go index 86bb246..a86f11b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec struct { Selector ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySelector `json:"selector"` - Tls ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls `json:"tls"` + Tls ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewayTls `json:"tls"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioGatewaySpec object @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go index f178ead..c4c0785 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go @@ -122,5 +122,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go index aa1d96c..4241d80 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go @@ -158,5 +158,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go index 1ead2c2..8702ec9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMember `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go index d20af54..2d11c48 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go @@ -36,7 +36,7 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring // Project is the Google project containing UO components. Project string `json:"project"` // VMTenant identifies the VM tenant to use (accountID or accountID:projectID). - VmTenant string `json:"vmTenant"` + VmTenant string `json:"vmTenant"` VmagentSecretRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference `json:"vmagentSecretRef"` // VMinsertBackendServiceName identifies the backend service for vminsert. VminsertBackendServiceName string `json:"vminsertBackendServiceName"` @@ -211,5 +211,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go index 9263d6f..4fe40c3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go index 9d79a64..015dfc9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go @@ -151,5 +151,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go index 29840a2..80634df 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go index 372f49c..fd6b213 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace string `json:"namespace"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go index aa847ea..2e518ef 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go @@ -33,21 +33,21 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec PoolMemberSpec defines the desired state of PoolMember type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec struct { - Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec `json:"aws,omitempty"` - Azure *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec `json:"azure,omitempty"` + Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AwsPoolMemberSpec `json:"aws,omitempty"` + Azure *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1AzurePoolMemberSpec `json:"azure,omitempty"` ConnectionOptions *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberConnectionOptionsSpec `json:"connectionOptions,omitempty"` - Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` - FunctionMesh *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec `json:"functionMesh,omitempty"` - Gcloud *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec `json:"gcloud,omitempty"` - Generic *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec `json:"generic,omitempty"` - Istio *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec `json:"istio,omitempty"` - Monitoring *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring `json:"monitoring,omitempty"` - PoolName string `json:"poolName"` - Pulsar *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec `json:"pulsar,omitempty"` - SupportAccess *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec `json:"supportAccess,omitempty"` - Taints []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint `json:"taints,omitempty"` - TieredStorage *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec `json:"tieredStorage,omitempty"` - Type string `json:"type"` + Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` + FunctionMesh *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec `json:"functionMesh,omitempty"` + Gcloud *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GCloudPoolMemberSpec `json:"gcloud,omitempty"` + Generic *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1GenericPoolMemberSpec `json:"generic,omitempty"` + Istio *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberIstioSpec `json:"istio,omitempty"` + Monitoring *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberMonitoring `json:"monitoring,omitempty"` + PoolName string `json:"poolName"` + Pulsar *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberPulsarSpec `json:"pulsar,omitempty"` + SupportAccess *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec `json:"supportAccess,omitempty"` + Taints []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint `json:"taints,omitempty"` + TieredStorage *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberTieredStorageSpec `json:"tieredStorage,omitempty"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberSpec object @@ -618,5 +618,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go index 3afae05..721f9d0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go @@ -34,13 +34,13 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus PoolMemberStatus defines the observed state of PoolMember type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus struct { // Conditions is an array of current observed conditions. - Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` - DeploymentType string `json:"deploymentType"` + Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` + DeploymentType string `json:"deploymentType"` // InstalledCSVs shows the name and status of installed operator versions InstalledCSVs []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1InstalledCSV `json:"installedCSVs,omitempty"` // ObservedGeneration is the most recent generation observed by the PoolMember controller. - ObservedGeneration int64 `json:"observedGeneration"` - ServerVersion *string `json:"serverVersion,omitempty"` + ObservedGeneration int64 `json:"observedGeneration"` + ServerVersion *string `json:"serverVersion,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberStatus object @@ -261,5 +261,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go index 05fdf5d..321315c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go @@ -128,5 +128,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go index 7946294..7644b30 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOpti v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go index d257ba2..a3f1d86 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOption `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOpti v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go index 9228c17..d2ab81c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation struct { DisplayName *string `json:"displayName,omitempty"` - Location string `json:"location"` + Location string `json:"location"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation object @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOpti v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go index 77a7d21..2f67d5a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go @@ -33,11 +33,11 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec PoolOptionSpec defines a reference to a Pool type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec struct { - CloudType string `json:"cloudType"` - DeploymentType string `json:"deploymentType"` - Features *map[string]bool `json:"features,omitempty"` - Locations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation `json:"locations"` - PoolRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef `json:"poolRef"` + CloudType string `json:"cloudType"` + DeploymentType string `json:"deploymentType"` + Features *map[string]bool `json:"features,omitempty"` + Locations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionLocation `json:"locations"` + PoolRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef `json:"poolRef"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOptionSpec object @@ -244,5 +244,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOpti v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go index 51559ca..3798c20 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolOpti v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go index 62f0fa4..6cc053b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef PoolRef is a reference to a pool with a given name. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef struct { - Name string `json:"name"` + Name string `json:"name"` Namespace string `json:"namespace"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go index 324f675..f425266 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec struct { // CloudFeature indicates features this pool wants to enable/disable by default for all Pulsar clusters created on it CloudFeature *map[string]bool `json:"cloudFeature,omitempty"` // This feild is used by `cloud-manager` and `cloud-billing-reporter` to potentially charge different rates for our customers. It is imperative that we correctly set this field if a pool is a \"Pro\" tier or no tier. - DeploymentType *string `json:"deploymentType,omitempty"` - Gcloud map[string]interface{} `json:"gcloud,omitempty"` - Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig `json:"sharing,omitempty"` - Type string `json:"type"` + DeploymentType *string `json:"deploymentType,omitempty"` + Gcloud map[string]interface{} `json:"gcloud,omitempty"` + Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingConfig `json:"sharing,omitempty"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec object @@ -267,5 +267,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolSpec v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go index 25a55e4..0c53ad3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolStat v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go index 97f5d77..8430bab 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go index abbfb2f..bc7cae9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go index 801ca3d..e5a7855 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Protocol v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go index 672383d..327872e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go index ce62bd1..92b4226 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go index 579d9d9..ddc037b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go index 30ebd76..1428a82 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go @@ -34,20 +34,20 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec PulsarClusterSpec defines the desired state of PulsarCluster type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec struct { BookKeeperSetRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeperSetReference `json:"bookKeeperSetRef,omitempty"` - Bookkeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper `json:"bookkeeper,omitempty"` - Broker ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker `json:"broker"` - Config *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config `json:"config,omitempty"` + Bookkeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1BookKeeper `json:"bookkeeper,omitempty"` + Broker ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Broker `json:"broker"` + Config *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Config `json:"config,omitempty"` // Name to display to our users - DisplayName *string `json:"displayName,omitempty"` - EndpointAccess []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess `json:"endpointAccess,omitempty"` - InstanceName string `json:"instanceName"` - Location string `json:"location"` - MaintenanceWindow *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow `json:"maintenanceWindow,omitempty"` - PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` - ReleaseChannel *string `json:"releaseChannel,omitempty"` - ServiceEndpoints []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint `json:"serviceEndpoints,omitempty"` - Tolerations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration `json:"tolerations,omitempty"` - ZooKeeperSetRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference `json:"zooKeeperSetRef,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + EndpointAccess []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1EndpointAccess `json:"endpointAccess,omitempty"` + InstanceName string `json:"instanceName"` + Location string `json:"location"` + MaintenanceWindow *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1MaintenanceWindow `json:"maintenanceWindow,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + ReleaseChannel *string `json:"releaseChannel,omitempty"` + ServiceEndpoints []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint `json:"serviceEndpoints,omitempty"` + Tolerations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration `json:"tolerations,omitempty"` + ZooKeeperSetRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference `json:"zooKeeperSetRef,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterSpec object @@ -576,5 +576,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go index 4fbb6c1..d4e4cb3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go @@ -34,16 +34,16 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus PulsarClusterStatus defines the observed state of PulsarCluster type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus struct { Bookkeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"bookkeeper,omitempty"` - Broker *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"broker,omitempty"` + Broker *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"broker,omitempty"` // Conditions is an array of current observed conditions. Conditions []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Condition `json:"conditions,omitempty"` // Deployment type set via associated pool DeploymentType *string `json:"deploymentType,omitempty"` // Instance type, i.e. serverless or default - InstanceType *string `json:"instanceType,omitempty"` - Oxia *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"oxia,omitempty"` - RbacStatus *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus `json:"rbacStatus,omitempty"` - Zookeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"zookeeper,omitempty"` + InstanceType *string `json:"instanceType,omitempty"` + Oxia *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"oxia,omitempty"` + RbacStatus *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus `json:"rbacStatus,omitempty"` + Zookeeper *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterComponentStatus `json:"zookeeper,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarClusterStatus object @@ -383,5 +383,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCl v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go index bc17d3a..0f7a783 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGa v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go index 99d41cc..b9e873a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewayList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGateway `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGa v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go index 1680ab5..8253975 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go @@ -36,9 +36,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGatewaySpec st // Access is the access type of the pulsar gateway, available values are public or private. It is immutable, with the default value public. Access *string `json:"access,omitempty"` // Domains is the list of domain suffix that the pulsar gateway will serve. This is automatically generated based on the PulsarGateway name and PoolMember domain. - Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` - PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` - PrivateService *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService `json:"privateService,omitempty"` + Domains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Domain `json:"domains,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + PrivateService *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PrivateService `json:"privateService,omitempty"` // TopologyAware is the configuration of the topology aware feature of the pulsar gateway. TopologyAware map[string]interface{} `json:"topologyAware,omitempty"` } @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGa v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go index e265ff3..2a94959 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go @@ -196,5 +196,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarGa v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go index c19f697..8e4a4ab 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance struc // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go index 06b75e8..72904d0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth PulsarInstanceAuth defines auth section of PulsarInstance type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceAuth struct { // ApiKey configuration - Apikey map[string]interface{} `json:"apikey,omitempty"` + Apikey map[string]interface{} `json:"apikey,omitempty"` Oauth2 *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1OAuth2Config `json:"oauth2,omitempty"` } @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go index 90af9be..0249606 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go index badc994..82d9d38 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go @@ -37,7 +37,7 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceSpec s // AvailabilityMode decides whether pods of the same type in pulsar should be in one zone or multiple zones AvailabilityMode string `json:"availabilityMode"` // Plan is the subscription plan, will create a stripe subscription if not empty deprecated: 1.16 - Plan *string `json:"plan,omitempty"` + Plan *string `json:"plan,omitempty"` PoolRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolRef `json:"poolRef,omitempty"` // Type defines the instance specialization type: - standard: a standard deployment of Pulsar, BookKeeper, and ZooKeeper. - dedicated: a dedicated deployment of classic engine or ursa engine. - serverless: a serverless deployment of Pulsar, shared BookKeeper, and shared oxia. - byoc: bring your own cloud. Type *string `json:"type,omitempty"` @@ -268,5 +268,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go index 83bd463..3183b65 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go @@ -158,5 +158,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go index bca9476..4222ea8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth struct { Oauth2 ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 `json:"oauth2"` - Type string `json:"type"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuth object @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go index 3282b12..dee532c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstanceStatusAuthOAuth2 struct { - Audience string `json:"audience"` + Audience string `json:"audience"` IssuerURL string `json:"issuerURL"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go index 2fc4404..586c954 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go @@ -36,7 +36,7 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoin DnsName string `json:"dnsName"` // Gateway is the name of the PulsarGateway to use for the endpoint, will be empty if endpointAccess is not configured. Gateway *string `json:"gateway,omitempty"` - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarServiceEndpoint object @@ -194,5 +194,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarSe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go index bf96c32..4b52b64 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go @@ -35,7 +35,7 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus struct { FailedClusterRoles []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedClusterRole `json:"failedClusterRoles,omitempty"` FailedRoleBindings []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRoleBinding `json:"failedRoleBindings,omitempty"` - FailedRoles []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole `json:"failedRoles,omitempty"` + FailedRoles []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1FailedRole `json:"failedRoles,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStatus object @@ -200,5 +200,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RBACStat v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go index 3810507..0779778 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo struct { - Region string `json:"region"` - Zones []string `json:"zones"` + Region string `json:"region"` + Zones []string `json:"zones"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionInfo object @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RegionIn v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go index 03337ab..af9e767 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role) Un v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go index d35e98f..7f8f915 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBind v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go index 2a8298f..503c109 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition RoleBindingCondition Deprecated type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition struct { - Operator *int32 `json:"operator,omitempty"` - Srn *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn `json:"srn,omitempty"` - Type *int32 `json:"type,omitempty"` + Operator *int32 `json:"operator,omitempty"` + Srn *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn `json:"srn,omitempty"` + Type *int32 `json:"type,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingCondition object @@ -200,5 +200,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBind v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go index a700bdf..183c0d0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBinding `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBind v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go index 1956fca..7c03d6c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go @@ -33,10 +33,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec RoleBindingSpec defines the desired state of RoleBinding type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec struct { - Cel *string `json:"cel,omitempty"` + Cel *string `json:"cel,omitempty"` ConditionGroup *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ConditionGroup `json:"conditionGroup,omitempty"` - RoleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef `json:"roleRef"` - Subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject `json:"subjects"` + RoleRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef `json:"roleRef"` + Subjects []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject `json:"subjects"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBindingSpec object @@ -222,5 +222,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBind v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go index 838ba0e..9ea7676 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleBind v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go index 4ea3da5..ca6dcda 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go index 3ff908d..99b1749 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Role `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleList v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go index 02e4b5b..7362d41 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go @@ -34,8 +34,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef struct { ApiGroup string `json:"apiGroup"` - Kind string `json:"kind"` - Name string `json:"name"` + Kind string `json:"kind"` + Name string `json:"name"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef object @@ -179,5 +179,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleRef) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go index 3632047..316a816 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleSpec v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go index 8c15d38..c7fb91d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleStat v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go index 4f6cd97..066a485 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go @@ -36,16 +36,16 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // the value should be base64 encoded - Data *map[string]string `json:"data,omitempty"` - InstanceName string `json:"instanceName"` + Data *map[string]string `json:"data,omitempty"` + InstanceName string `json:"instanceName"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Location string `json:"location"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Kind *string `json:"kind,omitempty"` + Location string `json:"location"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` - Spec map[string]interface{} `json:"spec,omitempty"` - Status map[string]interface{} `json:"status,omitempty"` - Tolerations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration `json:"tolerations,omitempty"` + Spec map[string]interface{} `json:"spec,omitempty"` + Status map[string]interface{} `json:"status,omitempty"` + Tolerations []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Toleration `json:"tolerations,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret object @@ -441,5 +441,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go index 179b225..37c3881 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Secret `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretLi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go index 1f4ecbb..2738c99 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SecretRe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go index f97fd4c..6f92881 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go @@ -36,9 +36,9 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistration str // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec `json:"spec,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec `json:"spec,omitempty"` // SelfRegistrationStatus defines the observed state of SelfRegistration Status map[string]interface{} `json:"status,omitempty"` } @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go index c68c876..93277d6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go index c5fcd9e..c2b7d60 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go @@ -33,12 +33,12 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec SelfRegistrationSpec defines the desired state of SelfRegistration type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec struct { - Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws `json:"aws,omitempty"` - DisplayName string `json:"displayName"` - Metadata *map[string]string `json:"metadata,omitempty"` - Stripe map[string]interface{} `json:"stripe,omitempty"` - Suger *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger `json:"suger,omitempty"` - Type string `json:"type"` + Aws *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationAws `json:"aws,omitempty"` + DisplayName string `json:"displayName"` + Metadata *map[string]string `json:"metadata,omitempty"` + Stripe map[string]interface{} `json:"stripe,omitempty"` + Suger *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSuger `json:"suger,omitempty"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegistrationSpec object @@ -294,5 +294,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go index 27821bd..eb82d4c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SelfRegi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go index acf5c47..6c62908 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount struc // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ObjectMeta `json:"metadata,omitempty"` // ServiceAccountSpec defines the desired state of ServiceAccount - Spec map[string]interface{} `json:"spec,omitempty"` + Spec map[string]interface{} `json:"spec,omitempty"` Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountStatus `json:"status,omitempty"` } @@ -275,5 +275,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go index ad76e59..5bd6fd6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindin // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go index 4a3b502..db64080 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBindingList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountBinding `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go index 1abd398..03a2c58 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go index 4eef837..001da3d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go index bf322f9..6c2c455 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccountList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceAccount `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go index e6aed8c..9beac04 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ServiceA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go index d1f18c4..647bdc4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SharingC v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go index 35c124a..7a055e9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go @@ -33,16 +33,16 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn Srn Deprecated type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn struct { - Cluster *string `json:"cluster,omitempty"` - Instance *string `json:"instance,omitempty"` - Namespace *string `json:"namespace,omitempty"` + Cluster *string `json:"cluster,omitempty"` + Instance *string `json:"instance,omitempty"` + Namespace *string `json:"namespace,omitempty"` Organization *string `json:"organization,omitempty"` - Schema *string `json:"schema,omitempty"` + Schema *string `json:"schema,omitempty"` Subscription *string `json:"subscription,omitempty"` - Tenant *string `json:"tenant,omitempty"` - TopicDomain *string `json:"topicDomain,omitempty"` - TopicName *string `json:"topicName,omitempty"` - Version *string `json:"version,omitempty"` + Tenant *string `json:"tenant,omitempty"` + TopicDomain *string `json:"topicDomain,omitempty"` + TopicName *string `json:"topicName,omitempty"` + Version *string `json:"version,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn object @@ -452,5 +452,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Srn) Unm v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go index 09fdadf..c5f4f5e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription s // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSu v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go index e3ec685..7bca260 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscriptionList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSubscription `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSu v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go index fb770d1..b824e66 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go @@ -196,5 +196,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSu v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go index 58e369e..ab12493 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1StripeSu v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go index 6f104dd..6c88660 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject struct { - ApiGroup string `json:"apiGroup"` - Kind string `json:"kind"` - Name string `json:"name"` + ApiGroup string `json:"apiGroup"` + Kind string `json:"kind"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -215,5 +215,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subject) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go index 7b9c57b..473d560 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go @@ -33,10 +33,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem struct { - NickName string `json:"nickName"` - PriceId string `json:"priceId"` + NickName string `json:"nickName"` + PriceId string `json:"priceId"` SubscriptionId string `json:"subscriptionId"` - Type string `json:"type"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SubscriptionItem object @@ -208,5 +208,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Subscrip v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go index d41b1f3..1b8e470 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportAccessOptionsSpec struct { // A role chain that is provided by name through the CLI to designate which access chain to take when accessing a poolmember. - Chains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain `json:"chains,omitempty"` + Chains []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Chain `json:"chains,omitempty"` RoleChain []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1RoleDefinition `json:"roleChain,omitempty"` } @@ -165,5 +165,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1SupportA v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go index 35b2edf..eed9532 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go @@ -227,5 +227,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Taint) U v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go index e4f350e..3a638e4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go @@ -240,5 +240,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Tolerati v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go index 1f3b056..fe745be 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User) Un v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go index d61f1d0..73a5972 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1User `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserList v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go index 7319631..9460f36 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName struct { First string `json:"first"` - Last string `json:"last"` + Last string `json:"last"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName object @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go index ae11054..d0c080f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go @@ -33,10 +33,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec UserSpec defines the desired state of User type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec struct { - Email string `json:"email"` + Email string `json:"email"` Invitation *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Invitation `json:"invitation,omitempty"` - Name *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + Name *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserName `json:"name,omitempty"` + Type *string `json:"type,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec object @@ -229,5 +229,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserSpec v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go index 879a173..3d92ff3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1UserStat v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go index 7717078..e2ec098 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go @@ -152,5 +152,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1Window) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go index fce6cf2..19ed58b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeeperSetReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go index a0e48c1..9c3d8d1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription stru // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubsc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go index d042703..4406c1a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscription `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubsc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go index 1b7cb2b..5e820c2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec AWSSubscriptionSpec defines the desired state of AWSSubscription type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubscriptionSpec struct { - CustomerID *string `json:"customerID,omitempty"` + CustomerID *string `json:"customerID,omitempty"` ProductCode *string `json:"productCode,omitempty"` } @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubsc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go index e46cd1b..5294e54 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2AWSSubsc v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go index ac271a0..6825586 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go index e6ebb5b..44c4943 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go index e5f3930..a4262e5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSet `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go index a1be286..153c849 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go index c6776b9..83876ff 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOptionList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetOption `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go index d349d14..0aa9a82 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go index 2e216cd..b8d5f7b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go index 7b5a01c..3224ac7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference BookKeeperSetReference is a fully-qualified reference to a BookKeeperSet with a given name. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go index 9594eb0..d4a28be 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go @@ -36,14 +36,14 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec st // AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. AvailabilityMode *string `json:"availabilityMode,omitempty"` // Image name is the name of the image to deploy. - Image *string `json:"image,omitempty"` + Image *string `json:"image,omitempty"` PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` // Replicas is the desired number of BookKeeper servers. If unspecified, defaults to 3. - Replicas *int32 `json:"replicas,omitempty"` - ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec `json:"resourceSpec,omitempty"` - Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource `json:"resources,omitempty"` - Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig `json:"sharing,omitempty"` - ZooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference `json:"zooKeeperSetRef"` + Replicas *int32 `json:"replicas,omitempty"` + ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperResourceSpec `json:"resourceSpec,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookkeeperNodeResource `json:"resources,omitempty"` + Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig `json:"sharing,omitempty"` + ZooKeeperSetRef ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference `json:"zooKeeperSetRef"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeeperSetSpec object @@ -376,5 +376,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go index aeb4460..8b6dc57 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2BookKeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go index 41b2842..96dcc06 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go @@ -195,5 +195,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Bookkeep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go index 5d77408..6f98dc6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go @@ -36,12 +36,12 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition struct { // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` - Message *string `json:"message,omitempty"` + Message *string `json:"message,omitempty"` // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` - Reason *string `json:"reason,omitempty"` - Status string `json:"status"` - Type string `json:"type"` + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Condition object @@ -297,5 +297,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2Conditio v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go index bdc8b15..9ae685c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go @@ -226,5 +226,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultN v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go index c3b0849..e5e17d4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go index 0569468..cbdc6d9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSet `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go index 901a7fb..f37b09d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec MonitorSetSpec defines the desired state of MonitorSet type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorSetSpec struct { // AvailabilityMode decides whether servers should be in one zone or multiple zones If unspecified, defaults to zonal. - AvailabilityMode *string `json:"availabilityMode,omitempty"` - PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` + AvailabilityMode *string `json:"availabilityMode,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` // Replicas is the desired number of monitoring servers. If unspecified, defaults to 1. - Replicas *int32 `json:"replicas,omitempty"` + Replicas *int32 `json:"replicas,omitempty"` Selector *V1LabelSelector `json:"selector,omitempty"` } @@ -238,5 +238,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go index 68e8403..65863e8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2MonitorS v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go index 4891fd0..dbe3aee 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace string `json:"namespace"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemb v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go index f43a8cb..0ed8155 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingC v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go index 75ebf51..3e01c70 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go index e8d9ac1..b4d26c5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet struct // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go index 17cadd8..0705470 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSet `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go index 5f49d91..b2bbb93 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption s // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go index d824783..7fb5ffc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList struct for ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOptionList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetOption `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go index a8e1490..3454a6d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go @@ -121,5 +121,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go index 8d34d7c..058fbd8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go index 2bdd2ae..5eef3b5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference ZooKeeperSetReference is a fully-qualified reference to a ZooKeeperSet with a given name. type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace *string `json:"namespace,omitempty"` } @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go index 5ffbc51..caf1dd5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go @@ -38,13 +38,13 @@ type ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec str // Image name is the name of the image to deploy. Image *string `json:"image,omitempty"` // Image pull policy, one of Always, Never, IfNotPresent, default to Always. - ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` - PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` + ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2PoolMemberReference `json:"poolMemberRef,omitempty"` // Replicas is the desired number of ZooKeeper servers. If unspecified, defaults to 1. - Replicas *int32 `json:"replicas,omitempty"` + Replicas *int32 `json:"replicas,omitempty"` ResourceSpec *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperResourceSpec `json:"resourceSpec,omitempty"` - Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource `json:"resources,omitempty"` - Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig `json:"sharing,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2DefaultNodeResource `json:"resources,omitempty"` + Sharing *ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2SharingConfig `json:"sharing,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeeperSetSpec object @@ -384,5 +384,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go index c881188..306580d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha2ZooKeepe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go index 9831a3c..f206e44 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go @@ -33,22 +33,22 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact Artifact is the artifact configs to deploy. type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact struct { - AdditionalDependencies []string `json:"additionalDependencies,omitempty"` - AdditionalPythonArchives []string `json:"additionalPythonArchives,omitempty"` + AdditionalDependencies []string `json:"additionalDependencies,omitempty"` + AdditionalPythonArchives []string `json:"additionalPythonArchives,omitempty"` AdditionalPythonLibraries []string `json:"additionalPythonLibraries,omitempty"` - ArtifactKind *string `json:"artifactKind,omitempty"` - EntryClass *string `json:"entryClass,omitempty"` - EntryModule *string `json:"entryModule,omitempty"` - FlinkImageRegistry *string `json:"flinkImageRegistry,omitempty"` - FlinkImageRepository *string `json:"flinkImageRepository,omitempty"` - FlinkImageTag *string `json:"flinkImageTag,omitempty"` - FlinkVersion *string `json:"flinkVersion,omitempty"` - JarUri *string `json:"jarUri,omitempty"` - Kind *string `json:"kind,omitempty"` - MainArgs *string `json:"mainArgs,omitempty"` - PythonArtifactUri *string `json:"pythonArtifactUri,omitempty"` - SqlScript *string `json:"sqlScript,omitempty"` - Uri *string `json:"uri,omitempty"` + ArtifactKind *string `json:"artifactKind,omitempty"` + EntryClass *string `json:"entryClass,omitempty"` + EntryModule *string `json:"entryModule,omitempty"` + FlinkImageRegistry *string `json:"flinkImageRegistry,omitempty"` + FlinkImageRepository *string `json:"flinkImageRepository,omitempty"` + FlinkImageTag *string `json:"flinkImageTag,omitempty"` + FlinkVersion *string `json:"flinkVersion,omitempty"` + JarUri *string `json:"jarUri,omitempty"` + Kind *string `json:"kind,omitempty"` + MainArgs *string `json:"mainArgs,omitempty"` + PythonArtifactUri *string `json:"pythonArtifactUri,omitempty"` + SqlScript *string `json:"sqlScript,omitempty"` + Uri *string `json:"uri,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact object @@ -668,5 +668,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifa v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go index d225d76..2b9fe2d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go @@ -36,12 +36,12 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition struct { // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` - Message *string `json:"message,omitempty"` + Message *string `json:"message,omitempty"` // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` - Reason *string `json:"reason,omitempty"` - Status string `json:"status"` - Type string `json:"type"` + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition object @@ -297,5 +297,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condit v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go index 7622cb7..4a0fb40 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go @@ -44,14 +44,14 @@ type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container struct { // Docker image name. Image *string `json:"image,omitempty"` // Image pull policy. Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present - ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` - LivenessProbe *V1Probe `json:"livenessProbe,omitempty"` + ImagePullPolicy *string `json:"imagePullPolicy,omitempty"` + LivenessProbe *V1Probe `json:"livenessProbe,omitempty"` // Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). - Name string `json:"name"` - ReadinessProbe *V1Probe `json:"readinessProbe,omitempty"` - Resources *V1ResourceRequirements `json:"resources,omitempty"` + Name string `json:"name"` + ReadinessProbe *V1Probe `json:"readinessProbe,omitempty"` + Resources *V1ResourceRequirements `json:"resources,omitempty"` SecurityContext *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext `json:"securityContext,omitempty"` - StartupProbe *V1Probe `json:"startupProbe,omitempty"` + StartupProbe *V1Probe `json:"startupProbe,omitempty"` // Pod volumes to mount into the container's filesystem. VolumeMounts []V1VolumeMount `json:"volumeMounts,omitempty"` // Container's working directory. @@ -598,5 +598,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Contai v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go index 2346430..49e1955 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go @@ -166,5 +166,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkB v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go index def113b..a757bbf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment st // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkD v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go index 2e50ec8..fae48e5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeployment `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkD v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go index b4f2491..dd10f37 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go @@ -37,10 +37,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentSpe // CommunityDeploymentTemplate defines the desired state of CommunityDeployment CommunityTemplate map[string]interface{} `json:"communityTemplate,omitempty"` // DefaultPulsarCluster is the default pulsar cluster to use. If not provided, the controller will use the first pulsar cluster from the workspace. - DefaultPulsarCluster *string `json:"defaultPulsarCluster,omitempty"` - Labels *map[string]string `json:"labels,omitempty"` - PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` - Template *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate `json:"template,omitempty"` + DefaultPulsarCluster *string `json:"defaultPulsarCluster,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + PoolMemberRef *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference `json:"poolMemberRef,omitempty"` + Template *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate `json:"template,omitempty"` // WorkspaceName is the reference to the workspace, and is required WorkspaceName string `json:"workspaceName"` } @@ -340,5 +340,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkD v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go index d30c3f3..eb50130 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus FlinkDeploymentStatus defines the observed state of FlinkDeployment type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkDeploymentStatus struct { // Conditions is an array of current observed conditions. - Conditions []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition `json:"conditions,omitempty"` + Conditions []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Condition `json:"conditions,omitempty"` DeploymentStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus `json:"deploymentStatus,omitempty"` // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. ObservedGeneration *int64 `json:"observedGeneration,omitempty"` @@ -202,5 +202,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkD v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go index 0c7e786..8bc7121 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging Logging defines the logging configuration for the Flink deployment. type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging struct { - Log4j2ConfigurationTemplate *string `json:"log4j2ConfigurationTemplate,omitempty"` - Log4jLoggers *map[string]string `json:"log4jLoggers,omitempty"` - LoggingProfile *string `json:"loggingProfile,omitempty"` + Log4j2ConfigurationTemplate *string `json:"log4j2ConfigurationTemplate,omitempty"` + Log4jLoggers *map[string]string `json:"log4jLoggers,omitempty"` + LoggingProfile *string `json:"loggingProfile,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging object @@ -200,5 +200,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Loggin v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go index 7489e13..a727591 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go @@ -240,5 +240,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Object v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go index 90e28b2..6692f79 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate PodTemplate defines the common pod configuration for Pods, including when used in StatefulSets. type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate struct { - Metadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec `json:"spec,omitempty"` + Metadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec `json:"spec,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate object @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTem v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go index 54687e0..b6e3427 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go @@ -33,16 +33,16 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec struct { - Affinity *V1Affinity `json:"affinity,omitempty"` - Containers []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container `json:"containers,omitempty"` - ImagePullSecrets []V1LocalObjectReference `json:"imagePullSecrets,omitempty"` - InitContainers []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container `json:"initContainers,omitempty"` - NodeSelector *map[string]string `json:"nodeSelector,omitempty"` - SecurityContext *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext `json:"securityContext,omitempty"` - ServiceAccountName *string `json:"serviceAccountName,omitempty"` - ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` - Tolerations []V1Toleration `json:"tolerations,omitempty"` - Volumes []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume `json:"volumes,omitempty"` + Affinity *V1Affinity `json:"affinity,omitempty"` + Containers []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container `json:"containers,omitempty"` + ImagePullSecrets []V1LocalObjectReference `json:"imagePullSecrets,omitempty"` + InitContainers []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Container `json:"initContainers,omitempty"` + NodeSelector *map[string]string `json:"nodeSelector,omitempty"` + SecurityContext *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext `json:"securityContext,omitempty"` + ServiceAccountName *string `json:"serviceAccountName,omitempty"` + ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"` + Tolerations []V1Toleration `json:"tolerations,omitempty"` + Volumes []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume `json:"volumes,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplateSpec object @@ -452,5 +452,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTem v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go index e49cd7c..700e062 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference PoolMemberReference is a reference to a pool member with a given name. type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMemberReference struct { - Name string `json:"name"` + Name string `json:"name"` Namespace string `json:"namespace"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolMe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go index ac8741e..dcdadf5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef PoolRef is a reference to a pool with a given name. type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef struct { - Name string `json:"name"` + Name string `json:"name"` Namespace string `json:"namespace"` } @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go index e844db7..faafe88 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go @@ -152,5 +152,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Resour v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go index fb2b1e6..d92c673 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go @@ -35,10 +35,10 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext struct { FsGroup *int64 `json:"fsGroup,omitempty"` // ReadOnlyRootFilesystem specifies whether the container use a read-only filesystem. - ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` - RunAsGroup *int64 `json:"runAsGroup,omitempty"` - RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` - RunAsUser *int64 `json:"runAsUser,omitempty"` + ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"` + RunAsGroup *int64 `json:"runAsGroup,omitempty"` + RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"` + RunAsUser *int64 `json:"runAsUser,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1SecurityContext object @@ -273,5 +273,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Securi v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go index 78d7dfe..6c80fad 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata UserMetadata Specify the metadata for the resource we are deploying. type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata struct { Annotations *map[string]string `json:"annotations,omitempty"` - DisplayName *string `json:"displayName,omitempty"` - Labels *map[string]string `json:"labels,omitempty"` - Name *string `json:"name,omitempty"` - Namespace *string `json:"namespace,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata object @@ -272,5 +272,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMe v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go index d727951..bb395ff 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go @@ -35,7 +35,7 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume struct { ConfigMap *V1ConfigMapVolumeSource `json:"configMap,omitempty"` // Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - Name string `json:"name"` + Name string `json:"name"` Secret *V1SecretVolumeSource `json:"secret,omitempty"` } @@ -194,5 +194,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Volume v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go index 96f37b2..663c355 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus VvpCustomResourceStatus defines the observed state of VvpCustomResource type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus struct { CustomResourceState *string `json:"customResourceState,omitempty"` - DeploymentId *string `json:"deploymentId,omitempty"` + DeploymentId *string `json:"deploymentId,omitempty"` DeploymentNamespace *string `json:"deploymentNamespace,omitempty"` - ObservedSpecState *string `json:"observedSpecState,omitempty"` - StatusState *string `json:"statusState,omitempty"` + ObservedSpecState *string `json:"observedSpecState,omitempty"` + StatusState *string `json:"statusState,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus object @@ -272,5 +272,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCus v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go index bba4e5f..601ce6d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go @@ -33,14 +33,14 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails VvpDeploymentDetails type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails struct { - DeploymentTargetName *string `json:"deploymentTargetName,omitempty"` - JobFailureExpirationTime *string `json:"jobFailureExpirationTime,omitempty"` - MaxJobCreationAttempts *int32 `json:"maxJobCreationAttempts,omitempty"` - MaxSavepointCreationAttempts *int32 `json:"maxSavepointCreationAttempts,omitempty"` - RestoreStrategy *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy `json:"restoreStrategy,omitempty"` - SessionClusterName *string `json:"sessionClusterName,omitempty"` - State *string `json:"state,omitempty"` - Template ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate `json:"template"` + DeploymentTargetName *string `json:"deploymentTargetName,omitempty"` + JobFailureExpirationTime *string `json:"jobFailureExpirationTime,omitempty"` + MaxJobCreationAttempts *int32 `json:"maxJobCreationAttempts,omitempty"` + MaxSavepointCreationAttempts *int32 `json:"maxSavepointCreationAttempts,omitempty"` + RestoreStrategy *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy `json:"restoreStrategy,omitempty"` + SessionClusterName *string `json:"sessionClusterName,omitempty"` + State *string `json:"state,omitempty"` + Template ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate `json:"template"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails object @@ -373,5 +373,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go index dff7237..15639c9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate VvpDeploymentDetailsTemplate defines the desired state of VvpDeploymentDetails type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate struct { Metadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateMetadata `json:"metadata,omitempty"` - Spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec `json:"spec"` + Spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec `json:"spec"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplate object @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go index 8fd7b29..dbbe5f4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go @@ -128,5 +128,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go index 939e057..12c2a69 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go @@ -33,14 +33,14 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec VvpDeploymentDetailsTemplateSpec defines the desired state of VvpDeploymentDetails type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec struct { - Artifact ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact `json:"artifact"` - FlinkConfiguration *map[string]string `json:"flinkConfiguration,omitempty"` - Kubernetes *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec `json:"kubernetes,omitempty"` - LatestCheckpointFetchInterval *int32 `json:"latestCheckpointFetchInterval,omitempty"` - Logging *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging `json:"logging,omitempty"` - NumberOfTaskManagers *int32 `json:"numberOfTaskManagers,omitempty"` - Parallelism *int32 `json:"parallelism,omitempty"` - Resources *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources `json:"resources,omitempty"` + Artifact ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Artifact `json:"artifact"` + FlinkConfiguration *map[string]string `json:"flinkConfiguration,omitempty"` + Kubernetes *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec `json:"kubernetes,omitempty"` + LatestCheckpointFetchInterval *int32 `json:"latestCheckpointFetchInterval,omitempty"` + Logging *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Logging `json:"logging,omitempty"` + NumberOfTaskManagers *int32 `json:"numberOfTaskManagers,omitempty"` + Parallelism *int32 `json:"parallelism,omitempty"` + Resources *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources `json:"resources,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpec object @@ -373,5 +373,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go index 714d001..d0f12e5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec VvpDeploymentDetailsTemplateSpecKubernetesSpec defines the desired state of VvpDeploymentDetails type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetailsTemplateSpecKubernetesSpec struct { - JobManagerPodTemplate *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate `json:"jobManagerPodTemplate,omitempty"` - Labels *map[string]string `json:"labels,omitempty"` + JobManagerPodTemplate *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate `json:"jobManagerPodTemplate,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` TaskManagerPodTemplate *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PodTemplate `json:"taskManagerPodTemplate,omitempty"` } @@ -200,5 +200,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go index 1cd3c00..d225942 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go @@ -33,7 +33,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources VvpDeploymentKubernetesResources defines the Kubernetes resources for the VvpDeployment. type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentKubernetesResources struct { - Jobmanager *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec `json:"jobmanager,omitempty"` + Jobmanager *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec `json:"jobmanager,omitempty"` Taskmanager *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1ResourceSpec `json:"taskmanager,omitempty"` } @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go index 45416e7..9b654ce 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go @@ -36,7 +36,7 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus struct { // Conditions is an array of current observed conditions. Conditions []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition `json:"conditions,omitempty"` - JobId *string `json:"jobId,omitempty"` + JobId *string `json:"jobId,omitempty"` // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. TransitionTime *time.Time `json:"transitionTime,omitempty"` } @@ -203,5 +203,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go index 94bb9ba..a023304 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go @@ -33,9 +33,9 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus VvpDeploymentStatus defines the observed state of VvpDeployment type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus struct { - CustomResourceStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus `json:"customResourceStatus,omitempty"` - DeploymentStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus `json:"deploymentStatus,omitempty"` - DeploymentSystemMetadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata `json:"deploymentSystemMetadata,omitempty"` + CustomResourceStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpCustomResourceStatus `json:"customResourceStatus,omitempty"` + DeploymentStatus *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus `json:"deploymentStatus,omitempty"` + DeploymentSystemMetadata *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata `json:"deploymentSystemMetadata,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatus object @@ -200,5 +200,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go index 9fdc094..5f47be4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go @@ -36,12 +36,12 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition struct { // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` - Message *string `json:"message,omitempty"` + Message *string `json:"message,omitempty"` // observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. - ObservedGeneration *int64 `json:"observedGeneration,omitempty"` - Reason *string `json:"reason,omitempty"` - Status string `json:"status"` - Type string `json:"type"` + ObservedGeneration *int64 `json:"observedGeneration,omitempty"` + Reason *string `json:"reason,omitempty"` + Status string `json:"status"` + Type string `json:"type"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusCondition object @@ -297,5 +297,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go index f263d5a..3d0918e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus VvpDeploymentStatusDeploymentStatus defines the observed state of VvpDeployment type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus struct { Running *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentRunningStatus `json:"running,omitempty"` - State *string `json:"state,omitempty"` + State *string `json:"state,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentStatusDeploymentStatus object @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go index 2f4499b..a49f62b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go @@ -36,12 +36,12 @@ import ( type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata struct { Annotations *map[string]string `json:"annotations,omitempty"` // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. - CreatedAt *time.Time `json:"createdAt,omitempty"` - Labels *map[string]string `json:"labels,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` // Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. - ModifiedAt *time.Time `json:"modifiedAt,omitempty"` - Name *string `json:"name,omitempty"` - ResourceVersion *int32 `json:"resourceVersion,omitempty"` + ModifiedAt *time.Time `json:"modifiedAt,omitempty"` + Name *string `json:"name,omitempty"` + ResourceVersion *int32 `json:"resourceVersion,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentSystemMetadata object @@ -311,5 +311,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go index f3ac9c8..1d75ae8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate VvpDeploymentTemplate defines the desired state of VvpDeployment type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate struct { - Deployment ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec `json:"deployment"` - SyncingMode *string `json:"syncingMode,omitempty"` + Deployment ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec `json:"deployment"` + SyncingMode *string `json:"syncingMode,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplate object @@ -157,5 +157,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go index 79a7e13..0c2641d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec VvpDeploymentTemplateSpec defines the desired state of VvpDeployment type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec struct { - Spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails `json:"spec"` - UserMetadata ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata `json:"userMetadata"` + Spec ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentDetails `json:"spec"` + UserMetadata ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1UserMetadata `json:"userMetadata"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDeploymentTemplateSpec object @@ -150,5 +150,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpDep v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go index 2ac6d29..07884a0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go @@ -33,8 +33,8 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy VvpRestoreStrategy defines the restore strategy of the deployment type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy struct { - AllowNonRestoredState *bool `json:"allowNonRestoredState,omitempty"` - Kind *string `json:"kind,omitempty"` + AllowNonRestoredState *bool `json:"allowNonRestoredState,omitempty"` + Kind *string `json:"kind,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRestoreStrategy object @@ -164,5 +164,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1VvpRes v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go index 5ea4c15..42edaf8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go @@ -36,10 +36,10 @@ type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` - Metadata *V1ObjectMeta `json:"metadata,omitempty"` - Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec `json:"spec,omitempty"` - Status *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus `json:"status,omitempty"` + Kind *string `json:"kind,omitempty"` + Metadata *V1ObjectMeta `json:"metadata,omitempty"` + Spec *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec `json:"spec,omitempty"` + Status *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceStatus `json:"status,omitempty"` } // NewComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace instantiates a new ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace object @@ -274,5 +274,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Worksp v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go index 7636aa9..accd91d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go @@ -34,10 +34,10 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList struct for ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - ApiVersion *string `json:"apiVersion,omitempty"` - Items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace `json:"items"` + ApiVersion *string `json:"apiVersion,omitempty"` + Items []ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Workspace `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - Kind *string `json:"kind,omitempty"` + Kind *string `json:"kind,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` } @@ -231,5 +231,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Worksp v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go index 2a21026..ffcb0af 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go @@ -34,7 +34,7 @@ import ( // ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec WorkspaceSpec defines the desired state of Workspace type ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1WorkspaceSpec struct { FlinkBlobStorage *ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1FlinkBlobStorage `json:"flinkBlobStorage,omitempty"` - PoolRef ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef `json:"poolRef"` + PoolRef ComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1PoolRef `json:"poolRef"` // PulsarClusterNames is the list of Pulsar clusters that the workspace will have access to. PulsarClusterNames []string `json:"pulsarClusterNames"` // UseExternalAccess is the flag to indicate whether the workspace will use external access. @@ -224,5 +224,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Worksp v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go index 1e5d348..2392133 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go @@ -129,5 +129,3 @@ func (v *NullableComGithubStreamnativeCloudApiServerPkgApisComputeV1alpha1Worksp v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_affinity.go b/sdk/sdk-apiserver/model_v1_affinity.go index ad37912..1301286 100644 --- a/sdk/sdk-apiserver/model_v1_affinity.go +++ b/sdk/sdk-apiserver/model_v1_affinity.go @@ -33,8 +33,8 @@ import ( // V1Affinity Affinity is a group of affinity scheduling rules. type V1Affinity struct { - NodeAffinity *V1NodeAffinity `json:"nodeAffinity,omitempty"` - PodAffinity *V1PodAffinity `json:"podAffinity,omitempty"` + NodeAffinity *V1NodeAffinity `json:"nodeAffinity,omitempty"` + PodAffinity *V1PodAffinity `json:"podAffinity,omitempty"` PodAntiAffinity *V1PodAntiAffinity `json:"podAntiAffinity,omitempty"` } @@ -200,5 +200,3 @@ func (v *NullableV1Affinity) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_api_group.go b/sdk/sdk-apiserver/model_v1_api_group.go index 8a23874..6e0c3c8 100644 --- a/sdk/sdk-apiserver/model_v1_api_group.go +++ b/sdk/sdk-apiserver/model_v1_api_group.go @@ -38,7 +38,7 @@ type V1APIGroup struct { // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // name is the name of the group. - Name string `json:"name"` + Name string `json:"name"` PreferredVersion *V1GroupVersionForDiscovery `json:"preferredVersion,omitempty"` // a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. ServerAddressByClientCIDRs []V1ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs,omitempty"` @@ -299,5 +299,3 @@ func (v *NullableV1APIGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_api_group_list.go b/sdk/sdk-apiserver/model_v1_api_group_list.go index 9ec4b31..d8f3137 100644 --- a/sdk/sdk-apiserver/model_v1_api_group_list.go +++ b/sdk/sdk-apiserver/model_v1_api_group_list.go @@ -196,5 +196,3 @@ func (v *NullableV1APIGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_api_resource.go b/sdk/sdk-apiserver/model_v1_api_resource.go index f40d227..470d412 100644 --- a/sdk/sdk-apiserver/model_v1_api_resource.go +++ b/sdk/sdk-apiserver/model_v1_api_resource.go @@ -427,5 +427,3 @@ func (v *NullableV1APIResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_api_resource_list.go b/sdk/sdk-apiserver/model_v1_api_resource_list.go index a417f8d..91b7917 100644 --- a/sdk/sdk-apiserver/model_v1_api_resource_list.go +++ b/sdk/sdk-apiserver/model_v1_api_resource_list.go @@ -226,5 +226,3 @@ func (v *NullableV1APIResourceList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_condition.go b/sdk/sdk-apiserver/model_v1_condition.go index b4c2384..5961bb4 100644 --- a/sdk/sdk-apiserver/model_v1_condition.go +++ b/sdk/sdk-apiserver/model_v1_condition.go @@ -280,5 +280,3 @@ func (v *NullableV1Condition) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_config_map_env_source.go b/sdk/sdk-apiserver/model_v1_config_map_env_source.go index 94cda7d..4d89ab9 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_env_source.go +++ b/sdk/sdk-apiserver/model_v1_config_map_env_source.go @@ -166,5 +166,3 @@ func (v *NullableV1ConfigMapEnvSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_config_map_key_selector.go b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go index 955834a..061ba06 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_key_selector.go +++ b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go @@ -196,5 +196,3 @@ func (v *NullableV1ConfigMapKeySelector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_config_map_volume_source.go b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go index e7c701e..97d8d86 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_volume_source.go +++ b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go @@ -240,5 +240,3 @@ func (v *NullableV1ConfigMapVolumeSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_delete_options.go b/sdk/sdk-apiserver/model_v1_delete_options.go index 361f24d..db4e9d5 100644 --- a/sdk/sdk-apiserver/model_v1_delete_options.go +++ b/sdk/sdk-apiserver/model_v1_delete_options.go @@ -42,8 +42,8 @@ type V1DeleteOptions struct { // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - OrphanDependents *bool `json:"orphanDependents,omitempty"` - Preconditions *V1Preconditions `json:"preconditions,omitempty"` + OrphanDependents *bool `json:"orphanDependents,omitempty"` + Preconditions *V1Preconditions `json:"preconditions,omitempty"` // Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. PropagationPolicy *string `json:"propagationPolicy,omitempty"` } @@ -350,5 +350,3 @@ func (v *NullableV1DeleteOptions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_env_from_source.go b/sdk/sdk-apiserver/model_v1_env_from_source.go index 2b2821e..73a5ed4 100644 --- a/sdk/sdk-apiserver/model_v1_env_from_source.go +++ b/sdk/sdk-apiserver/model_v1_env_from_source.go @@ -35,7 +35,7 @@ import ( type V1EnvFromSource struct { ConfigMapRef *V1ConfigMapEnvSource `json:"configMapRef,omitempty"` // An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - Prefix *string `json:"prefix,omitempty"` + Prefix *string `json:"prefix,omitempty"` SecretRef *V1SecretEnvSource `json:"secretRef,omitempty"` } @@ -201,5 +201,3 @@ func (v *NullableV1EnvFromSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_env_var.go b/sdk/sdk-apiserver/model_v1_env_var.go index a70b462..5ec142b 100644 --- a/sdk/sdk-apiserver/model_v1_env_var.go +++ b/sdk/sdk-apiserver/model_v1_env_var.go @@ -36,7 +36,7 @@ type V1EnvVar struct { // Name of the environment variable. Must be a C_IDENTIFIER. Name string `json:"name"` // Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". - Value *string `json:"value,omitempty"` + Value *string `json:"value,omitempty"` ValueFrom *V1EnvVarSource `json:"valueFrom,omitempty"` } @@ -195,5 +195,3 @@ func (v *NullableV1EnvVar) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_env_var_source.go b/sdk/sdk-apiserver/model_v1_env_var_source.go index 9d6ac72..7181191 100644 --- a/sdk/sdk-apiserver/model_v1_env_var_source.go +++ b/sdk/sdk-apiserver/model_v1_env_var_source.go @@ -33,10 +33,10 @@ import ( // V1EnvVarSource EnvVarSource represents a source for the value of an EnvVar. type V1EnvVarSource struct { - ConfigMapKeyRef *V1ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` - FieldRef *V1ObjectFieldSelector `json:"fieldRef,omitempty"` + ConfigMapKeyRef *V1ConfigMapKeySelector `json:"configMapKeyRef,omitempty"` + FieldRef *V1ObjectFieldSelector `json:"fieldRef,omitempty"` ResourceFieldRef *V1ResourceFieldSelector `json:"resourceFieldRef,omitempty"` - SecretKeyRef *V1SecretKeySelector `json:"secretKeyRef,omitempty"` + SecretKeyRef *V1SecretKeySelector `json:"secretKeyRef,omitempty"` } // NewV1EnvVarSource instantiates a new V1EnvVarSource object @@ -236,5 +236,3 @@ func (v *NullableV1EnvVarSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_exec_action.go b/sdk/sdk-apiserver/model_v1_exec_action.go index 43c14f7..bd6f423 100644 --- a/sdk/sdk-apiserver/model_v1_exec_action.go +++ b/sdk/sdk-apiserver/model_v1_exec_action.go @@ -129,5 +129,3 @@ func (v *NullableV1ExecAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go index 7aa4cd5..56ea47d 100644 --- a/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go +++ b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go @@ -152,5 +152,3 @@ func (v *NullableV1GroupVersionForDiscovery) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_grpc_action.go b/sdk/sdk-apiserver/model_v1_grpc_action.go index 7fadb55..22c54fb 100644 --- a/sdk/sdk-apiserver/model_v1_grpc_action.go +++ b/sdk/sdk-apiserver/model_v1_grpc_action.go @@ -159,5 +159,3 @@ func (v *NullableV1GRPCAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_http_get_action.go b/sdk/sdk-apiserver/model_v1_http_get_action.go index f24bb72..44c8e79 100644 --- a/sdk/sdk-apiserver/model_v1_http_get_action.go +++ b/sdk/sdk-apiserver/model_v1_http_get_action.go @@ -270,5 +270,3 @@ func (v *NullableV1HTTPGetAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_http_header.go b/sdk/sdk-apiserver/model_v1_http_header.go index d782fa4..e074e50 100644 --- a/sdk/sdk-apiserver/model_v1_http_header.go +++ b/sdk/sdk-apiserver/model_v1_http_header.go @@ -152,5 +152,3 @@ func (v *NullableV1HTTPHeader) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_key_to_path.go b/sdk/sdk-apiserver/model_v1_key_to_path.go index 172e5ec..37b7ca7 100644 --- a/sdk/sdk-apiserver/model_v1_key_to_path.go +++ b/sdk/sdk-apiserver/model_v1_key_to_path.go @@ -189,5 +189,3 @@ func (v *NullableV1KeyToPath) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_label_selector.go b/sdk/sdk-apiserver/model_v1_label_selector.go index 078bd9c..1ea5012 100644 --- a/sdk/sdk-apiserver/model_v1_label_selector.go +++ b/sdk/sdk-apiserver/model_v1_label_selector.go @@ -166,5 +166,3 @@ func (v *NullableV1LabelSelector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_label_selector_requirement.go b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go index 21398b4..2e6e2a9 100644 --- a/sdk/sdk-apiserver/model_v1_label_selector_requirement.go +++ b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go @@ -189,5 +189,3 @@ func (v *NullableV1LabelSelectorRequirement) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_list_meta.go b/sdk/sdk-apiserver/model_v1_list_meta.go index 10ecf20..cc21e7b 100644 --- a/sdk/sdk-apiserver/model_v1_list_meta.go +++ b/sdk/sdk-apiserver/model_v1_list_meta.go @@ -240,5 +240,3 @@ func (v *NullableV1ListMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_local_object_reference.go b/sdk/sdk-apiserver/model_v1_local_object_reference.go index c3492ed..898b52f 100644 --- a/sdk/sdk-apiserver/model_v1_local_object_reference.go +++ b/sdk/sdk-apiserver/model_v1_local_object_reference.go @@ -129,5 +129,3 @@ func (v *NullableV1LocalObjectReference) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_managed_fields_entry.go b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go index 4087e15..76f5f8e 100644 --- a/sdk/sdk-apiserver/model_v1_managed_fields_entry.go +++ b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go @@ -352,5 +352,3 @@ func (v *NullableV1ManagedFieldsEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_node_affinity.go b/sdk/sdk-apiserver/model_v1_node_affinity.go index 1e3a0f1..3a849c2 100644 --- a/sdk/sdk-apiserver/model_v1_node_affinity.go +++ b/sdk/sdk-apiserver/model_v1_node_affinity.go @@ -35,7 +35,7 @@ import ( type V1NodeAffinity struct { // The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. PreferredDuringSchedulingIgnoredDuringExecution []V1PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"` - RequiredDuringSchedulingIgnoredDuringExecution *V1NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` + RequiredDuringSchedulingIgnoredDuringExecution *V1NodeSelector `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"` } // NewV1NodeAffinity instantiates a new V1NodeAffinity object @@ -165,5 +165,3 @@ func (v *NullableV1NodeAffinity) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_node_selector.go b/sdk/sdk-apiserver/model_v1_node_selector.go index b7125ce..5af69e9 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector.go +++ b/sdk/sdk-apiserver/model_v1_node_selector.go @@ -122,5 +122,3 @@ func (v *NullableV1NodeSelector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_node_selector_requirement.go b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go index bb72695..3c8b751 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector_requirement.go +++ b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go @@ -189,5 +189,3 @@ func (v *NullableV1NodeSelectorRequirement) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_node_selector_term.go b/sdk/sdk-apiserver/model_v1_node_selector_term.go index 274e4ea..e5fa48f 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector_term.go +++ b/sdk/sdk-apiserver/model_v1_node_selector_term.go @@ -166,5 +166,3 @@ func (v *NullableV1NodeSelectorTerm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_object_field_selector.go b/sdk/sdk-apiserver/model_v1_object_field_selector.go index 6d588b1..400e7f5 100644 --- a/sdk/sdk-apiserver/model_v1_object_field_selector.go +++ b/sdk/sdk-apiserver/model_v1_object_field_selector.go @@ -159,5 +159,3 @@ func (v *NullableV1ObjectFieldSelector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_object_meta.go b/sdk/sdk-apiserver/model_v1_object_meta.go index 7d1cf20..893a0bd 100644 --- a/sdk/sdk-apiserver/model_v1_object_meta.go +++ b/sdk/sdk-apiserver/model_v1_object_meta.go @@ -685,5 +685,3 @@ func (v *NullableV1ObjectMeta) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_owner_reference.go b/sdk/sdk-apiserver/model_v1_owner_reference.go index bc219ae..799786f 100644 --- a/sdk/sdk-apiserver/model_v1_owner_reference.go +++ b/sdk/sdk-apiserver/model_v1_owner_reference.go @@ -286,5 +286,3 @@ func (v *NullableV1OwnerReference) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity.go b/sdk/sdk-apiserver/model_v1_pod_affinity.go index 0043898..4d9f300 100644 --- a/sdk/sdk-apiserver/model_v1_pod_affinity.go +++ b/sdk/sdk-apiserver/model_v1_pod_affinity.go @@ -166,5 +166,3 @@ func (v *NullableV1PodAffinity) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go index 6ae37b3..9f37066 100644 --- a/sdk/sdk-apiserver/model_v1_pod_affinity_term.go +++ b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go @@ -33,7 +33,7 @@ import ( // V1PodAffinityTerm Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running type V1PodAffinityTerm struct { - LabelSelector *V1LabelSelector `json:"labelSelector,omitempty"` + LabelSelector *V1LabelSelector `json:"labelSelector,omitempty"` NamespaceSelector *V1LabelSelector `json:"namespaceSelector,omitempty"` // namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". Namespaces []string `json:"namespaces,omitempty"` @@ -231,5 +231,3 @@ func (v *NullableV1PodAffinityTerm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go index 13f3f04..4b3aa89 100644 --- a/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go +++ b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go @@ -166,5 +166,3 @@ func (v *NullableV1PodAntiAffinity) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_preconditions.go b/sdk/sdk-apiserver/model_v1_preconditions.go index 8d76e83..8bc27dd 100644 --- a/sdk/sdk-apiserver/model_v1_preconditions.go +++ b/sdk/sdk-apiserver/model_v1_preconditions.go @@ -166,5 +166,3 @@ func (v *NullableV1Preconditions) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go index 0dcd9da..2b8c130 100644 --- a/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go +++ b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go @@ -151,5 +151,3 @@ func (v *NullableV1PreferredSchedulingTerm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_probe.go b/sdk/sdk-apiserver/model_v1_probe.go index 4d57547..21d665e 100644 --- a/sdk/sdk-apiserver/model_v1_probe.go +++ b/sdk/sdk-apiserver/model_v1_probe.go @@ -35,16 +35,16 @@ import ( type V1Probe struct { Exec *V1ExecAction `json:"exec,omitempty"` // Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - FailureThreshold *int32 `json:"failureThreshold,omitempty"` - Grpc *V1GRPCAction `json:"grpc,omitempty"` - HttpGet *V1HTTPGetAction `json:"httpGet,omitempty"` + FailureThreshold *int32 `json:"failureThreshold,omitempty"` + Grpc *V1GRPCAction `json:"grpc,omitempty"` + HttpGet *V1HTTPGetAction `json:"httpGet,omitempty"` // Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"` // How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. PeriodSeconds *int32 `json:"periodSeconds,omitempty"` // Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - SuccessThreshold *int32 `json:"successThreshold,omitempty"` - TcpSocket *V1TCPSocketAction `json:"tcpSocket,omitempty"` + SuccessThreshold *int32 `json:"successThreshold,omitempty"` + TcpSocket *V1TCPSocketAction `json:"tcpSocket,omitempty"` // Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` // Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes @@ -458,5 +458,3 @@ func (v *NullableV1Probe) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_resource_field_selector.go b/sdk/sdk-apiserver/model_v1_resource_field_selector.go index 667bae5..134f356 100644 --- a/sdk/sdk-apiserver/model_v1_resource_field_selector.go +++ b/sdk/sdk-apiserver/model_v1_resource_field_selector.go @@ -196,5 +196,3 @@ func (v *NullableV1ResourceFieldSelector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_resource_requirements.go b/sdk/sdk-apiserver/model_v1_resource_requirements.go index 57cb725..8c39cc9 100644 --- a/sdk/sdk-apiserver/model_v1_resource_requirements.go +++ b/sdk/sdk-apiserver/model_v1_resource_requirements.go @@ -166,5 +166,3 @@ func (v *NullableV1ResourceRequirements) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_secret_env_source.go b/sdk/sdk-apiserver/model_v1_secret_env_source.go index d427c07..7161fea 100644 --- a/sdk/sdk-apiserver/model_v1_secret_env_source.go +++ b/sdk/sdk-apiserver/model_v1_secret_env_source.go @@ -166,5 +166,3 @@ func (v *NullableV1SecretEnvSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_secret_key_selector.go b/sdk/sdk-apiserver/model_v1_secret_key_selector.go index 4f97c1b..8f5921a 100644 --- a/sdk/sdk-apiserver/model_v1_secret_key_selector.go +++ b/sdk/sdk-apiserver/model_v1_secret_key_selector.go @@ -196,5 +196,3 @@ func (v *NullableV1SecretKeySelector) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_secret_volume_source.go b/sdk/sdk-apiserver/model_v1_secret_volume_source.go index b345887..bb1ce48 100644 --- a/sdk/sdk-apiserver/model_v1_secret_volume_source.go +++ b/sdk/sdk-apiserver/model_v1_secret_volume_source.go @@ -240,5 +240,3 @@ func (v *NullableV1SecretVolumeSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go index 061d214..22def96 100644 --- a/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go +++ b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go @@ -152,5 +152,3 @@ func (v *NullableV1ServerAddressByClientCIDR) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_status.go b/sdk/sdk-apiserver/model_v1_status.go index be4d234..00a4e2d 100644 --- a/sdk/sdk-apiserver/model_v1_status.go +++ b/sdk/sdk-apiserver/model_v1_status.go @@ -36,12 +36,12 @@ type V1Status struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources ApiVersion *string `json:"apiVersion,omitempty"` // Suggested HTTP return code for this status, 0 if not set. - Code *int32 `json:"code,omitempty"` + Code *int32 `json:"code,omitempty"` Details *V1StatusDetails `json:"details,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind *string `json:"kind,omitempty"` // A human-readable description of the status of this operation. - Message *string `json:"message,omitempty"` + Message *string `json:"message,omitempty"` Metadata *V1ListMeta `json:"metadata,omitempty"` // A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. Reason *string `json:"reason,omitempty"` @@ -386,5 +386,3 @@ func (v *NullableV1Status) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_status_cause.go b/sdk/sdk-apiserver/model_v1_status_cause.go index 455e130..84cf7f2 100644 --- a/sdk/sdk-apiserver/model_v1_status_cause.go +++ b/sdk/sdk-apiserver/model_v1_status_cause.go @@ -203,5 +203,3 @@ func (v *NullableV1StatusCause) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_status_details.go b/sdk/sdk-apiserver/model_v1_status_details.go index 16f9f5e..175dba7 100644 --- a/sdk/sdk-apiserver/model_v1_status_details.go +++ b/sdk/sdk-apiserver/model_v1_status_details.go @@ -314,5 +314,3 @@ func (v *NullableV1StatusDetails) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_tcp_socket_action.go b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go index b5c3f18..ad50c3f 100644 --- a/sdk/sdk-apiserver/model_v1_tcp_socket_action.go +++ b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go @@ -159,5 +159,3 @@ func (v *NullableV1TCPSocketAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_toleration.go b/sdk/sdk-apiserver/model_v1_toleration.go index 06e91a7..1412b93 100644 --- a/sdk/sdk-apiserver/model_v1_toleration.go +++ b/sdk/sdk-apiserver/model_v1_toleration.go @@ -277,5 +277,3 @@ func (v *NullableV1Toleration) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_volume_mount.go b/sdk/sdk-apiserver/model_v1_volume_mount.go index c5626e7..a3a6920 100644 --- a/sdk/sdk-apiserver/model_v1_volume_mount.go +++ b/sdk/sdk-apiserver/model_v1_volume_mount.go @@ -300,5 +300,3 @@ func (v *NullableV1VolumeMount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_watch_event.go b/sdk/sdk-apiserver/model_v1_watch_event.go index fda7724..16a6c23 100644 --- a/sdk/sdk-apiserver/model_v1_watch_event.go +++ b/sdk/sdk-apiserver/model_v1_watch_event.go @@ -35,7 +35,7 @@ import ( type V1WatchEvent struct { // Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. Object map[string]interface{} `json:"object"` - Type string `json:"type"` + Type string `json:"type"` } // NewV1WatchEvent instantiates a new V1WatchEvent object @@ -151,5 +151,3 @@ func (v *NullableV1WatchEvent) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go index 320037c..cba7cd0 100644 --- a/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go +++ b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go @@ -151,5 +151,3 @@ func (v *NullableV1WeightedPodAffinityTerm) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-apiserver/model_version_info.go b/sdk/sdk-apiserver/model_version_info.go index 19eeea6..edd461e 100644 --- a/sdk/sdk-apiserver/model_version_info.go +++ b/sdk/sdk-apiserver/model_version_info.go @@ -33,15 +33,15 @@ import ( // VersionInfo Info contains versioning information. how we'll want to distribute that information. type VersionInfo struct { - BuildDate string `json:"buildDate"` - Compiler string `json:"compiler"` - GitCommit string `json:"gitCommit"` + BuildDate string `json:"buildDate"` + Compiler string `json:"compiler"` + GitCommit string `json:"gitCommit"` GitTreeState string `json:"gitTreeState"` - GitVersion string `json:"gitVersion"` - GoVersion string `json:"goVersion"` - Major string `json:"major"` - Minor string `json:"minor"` - Platform string `json:"platform"` + GitVersion string `json:"gitVersion"` + GoVersion string `json:"goVersion"` + Major string `json:"major"` + Minor string `json:"minor"` + Platform string `json:"platform"` } // NewVersionInfo instantiates a new VersionInfo object @@ -353,5 +353,3 @@ func (v *NullableVersionInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/sdk/sdk-kafkaconnect/api_default.go b/sdk/sdk-kafkaconnect/api_default.go index 1a5b0cb..57054aa 100644 --- a/sdk/sdk-kafkaconnect/api_default.go +++ b/sdk/sdk-kafkaconnect/api_default.go @@ -19,15 +19,14 @@ import ( "strings" ) - // DefaultAPIService DefaultAPI service type DefaultAPIService service type ApiAlterConnectorOffsetsRequest struct { - ctx context.Context - ApiService *DefaultAPIService - connector string - forward *bool + ctx context.Context + ApiService *DefaultAPIService + connector string + forward *bool sNConnectorOffsets *SNConnectorOffsets } @@ -48,24 +47,24 @@ func (r ApiAlterConnectorOffsetsRequest) Execute() (*http.Response, error) { /* AlterConnectorOffsets Method for AlterConnectorOffsets - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiAlterConnectorOffsetsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiAlterConnectorOffsetsRequest */ func (a *DefaultAPIService) AlterConnectorOffsets(ctx context.Context, connector string) ApiAlterConnectorOffsetsRequest { return ApiAlterConnectorOffsetsRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) AlterConnectorOffsetsExecute(r ApiAlterConnectorOffsetsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.AlterConnectorOffsets") @@ -131,9 +130,9 @@ func (a *DefaultAPIService) AlterConnectorOffsetsExecute(r ApiAlterConnectorOffs } type ApiCreateConnectorRequest struct { - ctx context.Context - ApiService *DefaultAPIService - forward *bool + ctx context.Context + ApiService *DefaultAPIService + forward *bool createConnectorRequest *CreateConnectorRequest } @@ -154,22 +153,22 @@ func (r ApiCreateConnectorRequest) Execute() (*http.Response, error) { /* CreateConnector Method for CreateConnector - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateConnectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateConnectorRequest */ func (a *DefaultAPIService) CreateConnector(ctx context.Context) ApiCreateConnectorRequest { return ApiCreateConnectorRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *DefaultAPIService) CreateConnectorExecute(r ApiCreateConnectorRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateConnector") @@ -234,10 +233,10 @@ func (a *DefaultAPIService) CreateConnectorExecute(r ApiCreateConnectorRequest) } type ApiDestroyConnectorRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string - forward *bool + connector string + forward *bool } func (r ApiDestroyConnectorRequest) Forward(forward bool) ApiDestroyConnectorRequest { @@ -252,24 +251,24 @@ func (r ApiDestroyConnectorRequest) Execute() (*http.Response, error) { /* DestroyConnector Method for DestroyConnector - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiDestroyConnectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiDestroyConnectorRequest */ func (a *DefaultAPIService) DestroyConnector(ctx context.Context, connector string) ApiDestroyConnectorRequest { return ApiDestroyConnectorRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) DestroyConnectorExecute(r ApiDestroyConnectorRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DestroyConnector") @@ -333,9 +332,9 @@ func (a *DefaultAPIService) DestroyConnectorExecute(r ApiDestroyConnectorRequest } type ApiGetConnectorRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiGetConnectorRequest) Execute() (*ConnectorInfo, *http.Response, error) { @@ -345,26 +344,27 @@ func (r ApiGetConnectorRequest) Execute() (*ConnectorInfo, *http.Response, error /* GetConnector Method for GetConnector - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiGetConnectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorRequest */ func (a *DefaultAPIService) GetConnector(ctx context.Context, connector string) ApiGetConnectorRequest { return ApiGetConnectorRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request -// @return ConnectorInfo +// +// @return ConnectorInfo func (a *DefaultAPIService) GetConnectorExecute(r ApiGetConnectorRequest) (*ConnectorInfo, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConnectorInfo + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectorInfo ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnector") @@ -418,14 +418,14 @@ func (a *DefaultAPIService) GetConnectorExecute(r ApiGetConnectorRequest) (*Conn body: localVarBody, error: localVarHTTPResponse.Status, } - var v ConnectorInfo - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v ConnectorInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -442,9 +442,9 @@ func (a *DefaultAPIService) GetConnectorExecute(r ApiGetConnectorRequest) (*Conn } type ApiGetConnectorActiveTopicsRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiGetConnectorActiveTopicsRequest) Execute() (*http.Response, error) { @@ -454,24 +454,24 @@ func (r ApiGetConnectorActiveTopicsRequest) Execute() (*http.Response, error) { /* GetConnectorActiveTopics Method for GetConnectorActiveTopics - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiGetConnectorActiveTopicsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorActiveTopicsRequest */ func (a *DefaultAPIService) GetConnectorActiveTopics(ctx context.Context, connector string) ApiGetConnectorActiveTopicsRequest { return ApiGetConnectorActiveTopicsRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) GetConnectorActiveTopicsExecute(r ApiGetConnectorActiveTopicsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorActiveTopics") @@ -532,9 +532,9 @@ func (a *DefaultAPIService) GetConnectorActiveTopicsExecute(r ApiGetConnectorAct } type ApiGetConnectorConfigRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiGetConnectorConfigRequest) Execute() (map[string]string, *http.Response, error) { @@ -544,26 +544,27 @@ func (r ApiGetConnectorConfigRequest) Execute() (map[string]string, *http.Respon /* GetConnectorConfig Method for GetConnectorConfig - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiGetConnectorConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorConfigRequest */ func (a *DefaultAPIService) GetConnectorConfig(ctx context.Context, connector string) ApiGetConnectorConfigRequest { return ApiGetConnectorConfigRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request -// @return map[string]string +// +// @return map[string]string func (a *DefaultAPIService) GetConnectorConfigExecute(r ApiGetConnectorConfigRequest) (map[string]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorConfig") @@ -617,14 +618,14 @@ func (a *DefaultAPIService) GetConnectorConfigExecute(r ApiGetConnectorConfigReq body: localVarBody, error: localVarHTTPResponse.Status, } - var v map[string]string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v map[string]string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -641,7 +642,7 @@ func (a *DefaultAPIService) GetConnectorConfigExecute(r ApiGetConnectorConfigReq } type ApiGetConnectorConfigDefRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService pluginName string } @@ -653,26 +654,27 @@ func (r ApiGetConnectorConfigDefRequest) Execute() ([]ConfigKeyInfo, *http.Respo /* GetConnectorConfigDef Get the configuration definition for the specified pluginName - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param pluginName - @return ApiGetConnectorConfigDefRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param pluginName + @return ApiGetConnectorConfigDefRequest */ func (a *DefaultAPIService) GetConnectorConfigDef(ctx context.Context, pluginName string) ApiGetConnectorConfigDefRequest { return ApiGetConnectorConfigDefRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, pluginName: pluginName, } } // Execute executes the request -// @return []ConfigKeyInfo +// +// @return []ConfigKeyInfo func (a *DefaultAPIService) GetConnectorConfigDefExecute(r ApiGetConnectorConfigDefRequest) ([]ConfigKeyInfo, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConfigKeyInfo + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConfigKeyInfo ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorConfigDef") @@ -726,14 +728,14 @@ func (a *DefaultAPIService) GetConnectorConfigDefExecute(r ApiGetConnectorConfig body: localVarBody, error: localVarHTTPResponse.Status, } - var v []ConfigKeyInfo - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v []ConfigKeyInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -750,9 +752,9 @@ func (a *DefaultAPIService) GetConnectorConfigDefExecute(r ApiGetConnectorConfig } type ApiGetConnectorStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiGetConnectorStatusRequest) Execute() (*ConnectorStateInfo, *http.Response, error) { @@ -762,26 +764,27 @@ func (r ApiGetConnectorStatusRequest) Execute() (*ConnectorStateInfo, *http.Resp /* GetConnectorStatus Method for GetConnectorStatus - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiGetConnectorStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetConnectorStatusRequest */ func (a *DefaultAPIService) GetConnectorStatus(ctx context.Context, connector string) ApiGetConnectorStatusRequest { return ApiGetConnectorStatusRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request -// @return ConnectorStateInfo +// +// @return ConnectorStateInfo func (a *DefaultAPIService) GetConnectorStatusExecute(r ApiGetConnectorStatusRequest) (*ConnectorStateInfo, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConnectorStateInfo + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConnectorStateInfo ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetConnectorStatus") @@ -835,14 +838,14 @@ func (a *DefaultAPIService) GetConnectorStatusExecute(r ApiGetConnectorStatusReq body: localVarBody, error: localVarHTTPResponse.Status, } - var v ConnectorStateInfo - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v ConnectorStateInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -859,9 +862,9 @@ func (a *DefaultAPIService) GetConnectorStatusExecute(r ApiGetConnectorStatusReq } type ApiGetOffsetsRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiGetOffsetsRequest) Execute() (*SNConnectorOffsets, *http.Response, error) { @@ -871,26 +874,27 @@ func (r ApiGetOffsetsRequest) Execute() (*SNConnectorOffsets, *http.Response, er /* GetOffsets Method for GetOffsets - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiGetOffsetsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetOffsetsRequest */ func (a *DefaultAPIService) GetOffsets(ctx context.Context, connector string) ApiGetOffsetsRequest { return ApiGetOffsetsRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request -// @return SNConnectorOffsets +// +// @return SNConnectorOffsets func (a *DefaultAPIService) GetOffsetsExecute(r ApiGetOffsetsRequest) (*SNConnectorOffsets, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SNConnectorOffsets + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SNConnectorOffsets ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetOffsets") @@ -944,14 +948,14 @@ func (a *DefaultAPIService) GetOffsetsExecute(r ApiGetOffsetsRequest) (*SNConnec body: localVarBody, error: localVarHTTPResponse.Status, } - var v SNConnectorOffsets - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v SNConnectorOffsets + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -968,9 +972,9 @@ func (a *DefaultAPIService) GetOffsetsExecute(r ApiGetOffsetsRequest) (*SNConnec } type ApiGetTaskConfigsRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiGetTaskConfigsRequest) Execute() ([]TaskInfo, *http.Response, error) { @@ -980,26 +984,27 @@ func (r ApiGetTaskConfigsRequest) Execute() ([]TaskInfo, *http.Response, error) /* GetTaskConfigs Method for GetTaskConfigs - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiGetTaskConfigsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetTaskConfigsRequest */ func (a *DefaultAPIService) GetTaskConfigs(ctx context.Context, connector string) ApiGetTaskConfigsRequest { return ApiGetTaskConfigsRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request -// @return []TaskInfo +// +// @return []TaskInfo func (a *DefaultAPIService) GetTaskConfigsExecute(r ApiGetTaskConfigsRequest) ([]TaskInfo, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TaskInfo + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TaskInfo ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTaskConfigs") @@ -1053,14 +1058,14 @@ func (a *DefaultAPIService) GetTaskConfigsExecute(r ApiGetTaskConfigsRequest) ([ body: localVarBody, error: localVarHTTPResponse.Status, } - var v []TaskInfo - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v []TaskInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1077,10 +1082,10 @@ func (a *DefaultAPIService) GetTaskConfigsExecute(r ApiGetTaskConfigsRequest) ([ } type ApiGetTaskStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string - task int32 + connector string + task int32 } func (r ApiGetTaskStatusRequest) Execute() (*TaskState, *http.Response, error) { @@ -1090,28 +1095,29 @@ func (r ApiGetTaskStatusRequest) Execute() (*TaskState, *http.Response, error) { /* GetTaskStatus Method for GetTaskStatus - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @param task - @return ApiGetTaskStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @param task + @return ApiGetTaskStatusRequest */ func (a *DefaultAPIService) GetTaskStatus(ctx context.Context, connector string, task int32) ApiGetTaskStatusRequest { return ApiGetTaskStatusRequest{ ApiService: a, - ctx: ctx, - connector: connector, - task: task, + ctx: ctx, + connector: connector, + task: task, } } // Execute executes the request -// @return TaskState +// +// @return TaskState func (a *DefaultAPIService) GetTaskStatusExecute(r ApiGetTaskStatusRequest) (*TaskState, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TaskState + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TaskState ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTaskStatus") @@ -1166,14 +1172,14 @@ func (a *DefaultAPIService) GetTaskStatusExecute(r ApiGetTaskStatusRequest) (*Ta body: localVarBody, error: localVarHTTPResponse.Status, } - var v TaskState - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v TaskState + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1190,9 +1196,9 @@ func (a *DefaultAPIService) GetTaskStatusExecute(r ApiGetTaskStatusRequest) (*Ta } type ApiGetTasksConfigRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiGetTasksConfigRequest) Execute() (*map[string]map[string]string, *http.Response, error) { @@ -1202,29 +1208,31 @@ func (r ApiGetTasksConfigRequest) Execute() (*map[string]map[string]string, *htt /* GetTasksConfig Method for GetTasksConfig - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiGetTasksConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiGetTasksConfigRequest Deprecated */ func (a *DefaultAPIService) GetTasksConfig(ctx context.Context, connector string) ApiGetTasksConfigRequest { return ApiGetTasksConfigRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request -// @return map[string]map[string]string +// +// @return map[string]map[string]string +// // Deprecated func (a *DefaultAPIService) GetTasksConfigExecute(r ApiGetTasksConfigRequest) (*map[string]map[string]string, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *map[string]map[string]string + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *map[string]map[string]string ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetTasksConfig") @@ -1278,14 +1286,14 @@ func (a *DefaultAPIService) GetTasksConfigExecute(r ApiGetTasksConfigRequest) (* body: localVarBody, error: localVarHTTPResponse.Status, } - var v map[string]map[string]string - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v map[string]map[string]string + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1302,7 +1310,7 @@ func (a *DefaultAPIService) GetTasksConfigExecute(r ApiGetTasksConfigRequest) (* } type ApiHealthCheckRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService } @@ -1313,22 +1321,22 @@ func (r ApiHealthCheckRequest) Execute() (*http.Response, error) { /* HealthCheck Health check endpoint to verify worker readiness and liveness - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHealthCheckRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHealthCheckRequest */ func (a *DefaultAPIService) HealthCheck(ctx context.Context) ApiHealthCheckRequest { return ApiHealthCheckRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *DefaultAPIService) HealthCheckExecute(r ApiHealthCheckRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.HealthCheck") @@ -1388,8 +1396,8 @@ func (a *DefaultAPIService) HealthCheckExecute(r ApiHealthCheckRequest) (*http.R } type ApiListConnectorPluginsRequest struct { - ctx context.Context - ApiService *DefaultAPIService + ctx context.Context + ApiService *DefaultAPIService connectorsOnly *bool } @@ -1406,24 +1414,25 @@ func (r ApiListConnectorPluginsRequest) Execute() ([]PluginInfo, *http.Response, /* ListConnectorPlugins List all connector plugins installed - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListConnectorPluginsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListConnectorPluginsRequest */ func (a *DefaultAPIService) ListConnectorPlugins(ctx context.Context) ApiListConnectorPluginsRequest { return ApiListConnectorPluginsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return []PluginInfo +// +// @return []PluginInfo func (a *DefaultAPIService) ListConnectorPluginsExecute(r ApiListConnectorPluginsRequest) ([]PluginInfo, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PluginInfo + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PluginInfo ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListConnectorPlugins") @@ -1482,14 +1491,14 @@ func (a *DefaultAPIService) ListConnectorPluginsExecute(r ApiListConnectorPlugin body: localVarBody, error: localVarHTTPResponse.Status, } - var v []PluginInfo - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v []PluginInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1506,7 +1515,7 @@ func (a *DefaultAPIService) ListConnectorPluginsExecute(r ApiListConnectorPlugin } type ApiListConnectorPluginsCatalogRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService } @@ -1517,24 +1526,25 @@ func (r ApiListConnectorPluginsCatalogRequest) Execute() ([]FunctionMeshConnecto /* ListConnectorPluginsCatalog List all connector catalog - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListConnectorPluginsCatalogRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListConnectorPluginsCatalogRequest */ func (a *DefaultAPIService) ListConnectorPluginsCatalog(ctx context.Context) ApiListConnectorPluginsCatalogRequest { return ApiListConnectorPluginsCatalogRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return []FunctionMeshConnectorDefinition +// +// @return []FunctionMeshConnectorDefinition func (a *DefaultAPIService) ListConnectorPluginsCatalogExecute(r ApiListConnectorPluginsCatalogRequest) ([]FunctionMeshConnectorDefinition, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FunctionMeshConnectorDefinition + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FunctionMeshConnectorDefinition ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListConnectorPluginsCatalog") @@ -1587,14 +1597,14 @@ func (a *DefaultAPIService) ListConnectorPluginsCatalogExecute(r ApiListConnecto body: localVarBody, error: localVarHTTPResponse.Status, } - var v []FunctionMeshConnectorDefinition - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v []FunctionMeshConnectorDefinition + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1611,7 +1621,7 @@ func (a *DefaultAPIService) ListConnectorPluginsCatalogExecute(r ApiListConnecto } type ApiListConnectorsRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService } @@ -1622,22 +1632,22 @@ func (r ApiListConnectorsRequest) Execute() (*http.Response, error) { /* ListConnectors Method for ListConnectors - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListConnectorsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListConnectorsRequest */ func (a *DefaultAPIService) ListConnectors(ctx context.Context) ApiListConnectorsRequest { return ApiListConnectorsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *DefaultAPIService) ListConnectorsExecute(r ApiListConnectorsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListConnectors") @@ -1697,9 +1707,9 @@ func (a *DefaultAPIService) ListConnectorsExecute(r ApiListConnectorsRequest) (* } type ApiPauseConnectorRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiPauseConnectorRequest) Execute() (*http.Response, error) { @@ -1709,24 +1719,24 @@ func (r ApiPauseConnectorRequest) Execute() (*http.Response, error) { /* PauseConnector Method for PauseConnector - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiPauseConnectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiPauseConnectorRequest */ func (a *DefaultAPIService) PauseConnector(ctx context.Context, connector string) ApiPauseConnectorRequest { return ApiPauseConnectorRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) PauseConnectorExecute(r ApiPauseConnectorRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PauseConnector") @@ -1787,10 +1797,10 @@ func (a *DefaultAPIService) PauseConnectorExecute(r ApiPauseConnectorRequest) (* } type ApiPutConnectorConfigRequest struct { - ctx context.Context - ApiService *DefaultAPIService - connector string - forward *bool + ctx context.Context + ApiService *DefaultAPIService + connector string + forward *bool requestBody *map[string]string } @@ -1811,24 +1821,24 @@ func (r ApiPutConnectorConfigRequest) Execute() (*http.Response, error) { /* PutConnectorConfig Method for PutConnectorConfig - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiPutConnectorConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiPutConnectorConfigRequest */ func (a *DefaultAPIService) PutConnectorConfig(ctx context.Context, connector string) ApiPutConnectorConfigRequest { return ApiPutConnectorConfigRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) PutConnectorConfigExecute(r ApiPutConnectorConfigRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PutConnectorConfig") @@ -1894,9 +1904,9 @@ func (a *DefaultAPIService) PutConnectorConfigExecute(r ApiPutConnectorConfigReq } type ApiResetConnectorActiveTopicsRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiResetConnectorActiveTopicsRequest) Execute() (*http.Response, error) { @@ -1906,24 +1916,24 @@ func (r ApiResetConnectorActiveTopicsRequest) Execute() (*http.Response, error) /* ResetConnectorActiveTopics Method for ResetConnectorActiveTopics - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiResetConnectorActiveTopicsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiResetConnectorActiveTopicsRequest */ func (a *DefaultAPIService) ResetConnectorActiveTopics(ctx context.Context, connector string) ApiResetConnectorActiveTopicsRequest { return ApiResetConnectorActiveTopicsRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) ResetConnectorActiveTopicsExecute(r ApiResetConnectorActiveTopicsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ResetConnectorActiveTopics") @@ -1984,10 +1994,10 @@ func (a *DefaultAPIService) ResetConnectorActiveTopicsExecute(r ApiResetConnecto } type ApiResetConnectorOffsetsRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string - forward *bool + connector string + forward *bool } func (r ApiResetConnectorOffsetsRequest) Forward(forward bool) ApiResetConnectorOffsetsRequest { @@ -2002,24 +2012,24 @@ func (r ApiResetConnectorOffsetsRequest) Execute() (*http.Response, error) { /* ResetConnectorOffsets Method for ResetConnectorOffsets - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiResetConnectorOffsetsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiResetConnectorOffsetsRequest */ func (a *DefaultAPIService) ResetConnectorOffsets(ctx context.Context, connector string) ApiResetConnectorOffsetsRequest { return ApiResetConnectorOffsetsRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) ResetConnectorOffsetsExecute(r ApiResetConnectorOffsetsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ResetConnectorOffsets") @@ -2083,12 +2093,12 @@ func (a *DefaultAPIService) ResetConnectorOffsetsExecute(r ApiResetConnectorOffs } type ApiRestartConnectorRequest struct { - ctx context.Context - ApiService *DefaultAPIService - connector string + ctx context.Context + ApiService *DefaultAPIService + connector string includeTasks *bool - onlyFailed *bool - forward *bool + onlyFailed *bool + forward *bool } func (r ApiRestartConnectorRequest) IncludeTasks(includeTasks bool) ApiRestartConnectorRequest { @@ -2113,24 +2123,24 @@ func (r ApiRestartConnectorRequest) Execute() (*http.Response, error) { /* RestartConnector Method for RestartConnector - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiRestartConnectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiRestartConnectorRequest */ func (a *DefaultAPIService) RestartConnector(ctx context.Context, connector string) ApiRestartConnectorRequest { return ApiRestartConnectorRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) RestartConnectorExecute(r ApiRestartConnectorRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RestartConnector") @@ -2206,11 +2216,11 @@ func (a *DefaultAPIService) RestartConnectorExecute(r ApiRestartConnectorRequest } type ApiRestartTaskRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string - task int32 - forward *bool + connector string + task int32 + forward *bool } func (r ApiRestartTaskRequest) Forward(forward bool) ApiRestartTaskRequest { @@ -2225,26 +2235,26 @@ func (r ApiRestartTaskRequest) Execute() (*http.Response, error) { /* RestartTask Method for RestartTask - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @param task - @return ApiRestartTaskRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @param task + @return ApiRestartTaskRequest */ func (a *DefaultAPIService) RestartTask(ctx context.Context, connector string, task int32) ApiRestartTaskRequest { return ApiRestartTaskRequest{ ApiService: a, - ctx: ctx, - connector: connector, - task: task, + ctx: ctx, + connector: connector, + task: task, } } // Execute executes the request func (a *DefaultAPIService) RestartTaskExecute(r ApiRestartTaskRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.RestartTask") @@ -2309,9 +2319,9 @@ func (a *DefaultAPIService) RestartTaskExecute(r ApiRestartTaskRequest) (*http.R } type ApiResumeConnectorRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string + connector string } func (r ApiResumeConnectorRequest) Execute() (*http.Response, error) { @@ -2321,24 +2331,24 @@ func (r ApiResumeConnectorRequest) Execute() (*http.Response, error) { /* ResumeConnector Method for ResumeConnector - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiResumeConnectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiResumeConnectorRequest */ func (a *DefaultAPIService) ResumeConnector(ctx context.Context, connector string) ApiResumeConnectorRequest { return ApiResumeConnectorRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) ResumeConnectorExecute(r ApiResumeConnectorRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ResumeConnector") @@ -2399,7 +2409,7 @@ func (a *DefaultAPIService) ResumeConnectorExecute(r ApiResumeConnectorRequest) } type ApiServerInfoRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService } @@ -2410,24 +2420,25 @@ func (r ApiServerInfoRequest) Execute() (*ServerInfo, *http.Response, error) { /* ServerInfo Method for ServerInfo - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerInfoRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerInfoRequest */ func (a *DefaultAPIService) ServerInfo(ctx context.Context) ApiServerInfoRequest { return ApiServerInfoRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ServerInfo +// +// @return ServerInfo func (a *DefaultAPIService) ServerInfoExecute(r ApiServerInfoRequest) (*ServerInfo, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServerInfo + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServerInfo ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ServerInfo") @@ -2480,14 +2491,14 @@ func (a *DefaultAPIService) ServerInfoExecute(r ApiServerInfoRequest) (*ServerIn body: localVarBody, error: localVarHTTPResponse.Status, } - var v ServerInfo - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v ServerInfo + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2504,10 +2515,10 @@ func (a *DefaultAPIService) ServerInfoExecute(r ApiServerInfoRequest) (*ServerIn } type ApiStopConnectorRequest struct { - ctx context.Context + ctx context.Context ApiService *DefaultAPIService - connector string - forward *bool + connector string + forward *bool } func (r ApiStopConnectorRequest) Forward(forward bool) ApiStopConnectorRequest { @@ -2522,24 +2533,24 @@ func (r ApiStopConnectorRequest) Execute() (*http.Response, error) { /* StopConnector Method for StopConnector - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param connector - @return ApiStopConnectorRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param connector + @return ApiStopConnectorRequest */ func (a *DefaultAPIService) StopConnector(ctx context.Context, connector string) ApiStopConnectorRequest { return ApiStopConnectorRequest{ ApiService: a, - ctx: ctx, - connector: connector, + ctx: ctx, + connector: connector, } } // Execute executes the request func (a *DefaultAPIService) StopConnectorExecute(r ApiStopConnectorRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.StopConnector") @@ -2603,9 +2614,9 @@ func (a *DefaultAPIService) StopConnectorExecute(r ApiStopConnectorRequest) (*ht } type ApiValidateConfigsRequest struct { - ctx context.Context - ApiService *DefaultAPIService - pluginName string + ctx context.Context + ApiService *DefaultAPIService + pluginName string requestBody *map[string]string } @@ -2621,26 +2632,27 @@ func (r ApiValidateConfigsRequest) Execute() (*ConfigInfos, *http.Response, erro /* ValidateConfigs Validate the provided configuration against the configuration definition for the specified pluginName - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param pluginName - @return ApiValidateConfigsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param pluginName + @return ApiValidateConfigsRequest */ func (a *DefaultAPIService) ValidateConfigs(ctx context.Context, pluginName string) ApiValidateConfigsRequest { return ApiValidateConfigsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, pluginName: pluginName, } } // Execute executes the request -// @return ConfigInfos +// +// @return ConfigInfos func (a *DefaultAPIService) ValidateConfigsExecute(r ApiValidateConfigsRequest) (*ConfigInfos, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigInfos + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigInfos ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ValidateConfigs") @@ -2696,14 +2708,14 @@ func (a *DefaultAPIService) ValidateConfigsExecute(r ApiValidateConfigsRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v ConfigInfos - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + var v ConfigInfos + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/sdk/sdk-kafkaconnect/client.go b/sdk/sdk-kafkaconnect/client.go index 25793c5..972296e 100644 --- a/sdk/sdk-kafkaconnect/client.go +++ b/sdk/sdk-kafkaconnect/client.go @@ -31,14 +31,13 @@ import ( "strings" "time" "unicode/utf8" - ) var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) // APIClient manages communication with the Kafka Connect With Pulsar API API v0.0.1 @@ -125,7 +124,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } -func parameterValueToString( obj interface{}, key string ) string { +func parameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) @@ -133,11 +132,11 @@ func parameterValueToString( obj interface{}, key string ) string { return fmt.Sprintf("%v", obj) } - var param,ok = obj.(MappedNullable) + var param, ok = obj.(MappedNullable) if !ok { return "" } - dataMap,err := param.ToMap() + dataMap, err := param.ToMap() if err != nil { return "" } @@ -153,85 +152,85 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri value = "null" } else { switch v.Kind() { - case reflect.Invalid: - value = "invalid" + case reflect.Invalid: + value = "invalid" - case reflect.Struct: - if t,ok := obj.(MappedNullable); ok { - dataMap,err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { return } - var lenIndValue = indValue.Len() - for i:=0;i Date: Tue, 16 Dec 2025 16:30:32 +0800 Subject: [PATCH 40/85] fix license (#63) --- CLAUDE.md | 211 ++++++++------ Dockerfile | 14 + Dockerfile.goreleaser | 14 + cmd/streamnative-mcp-server/main.go | 25 +- go.work.sum | 18 ++ pkg/auth/auth.go | 25 +- pkg/auth/authorization_tokenretriever.go | 25 +- pkg/auth/cache/cache.go | 25 +- pkg/auth/client_credentials_flow.go | 25 +- pkg/auth/client_credentials_provider.go | 25 +- pkg/auth/config_tokenprovider.go | 25 +- pkg/auth/data_url.go | 25 +- pkg/auth/oidc_endpoint_provider.go | 25 +- pkg/auth/store/keyring.go | 25 +- pkg/auth/store/store.go | 25 +- pkg/cmd/mcp/mcp.go | 43 +-- pkg/cmd/mcp/server.go | 25 +- pkg/cmd/mcp/sse.go | 74 +++-- pkg/cmd/mcp/stdio.go | 25 +- pkg/common/utils.go | 25 +- pkg/config/apiclient.go | 25 +- pkg/config/apiclient_test.go | 25 +- pkg/config/auth.go | 25 +- pkg/config/config.go | 25 +- pkg/config/external_kafka.go | 25 +- pkg/config/external_pulsar.go | 25 +- pkg/config/options.go | 25 +- pkg/kafka/connection.go | 25 +- pkg/kafka/kafkaconnect.go | 25 +- pkg/log/io.go | 25 +- pkg/mcp/auth_utils.go | 25 +- pkg/mcp/builders/base.go | 25 +- pkg/mcp/builders/base_test.go | 25 +- pkg/mcp/builders/config.go | 25 +- pkg/mcp/builders/config_test.go | 25 +- pkg/mcp/builders/kafka/connect.go | 25 +- pkg/mcp/builders/kafka/connect_test.go | 25 +- pkg/mcp/builders/kafka/consume.go | 25 +- pkg/mcp/builders/kafka/consume_test.go | 25 +- pkg/mcp/builders/kafka/groups.go | 25 +- pkg/mcp/builders/kafka/partitions.go | 25 +- pkg/mcp/builders/kafka/produce.go | 25 +- pkg/mcp/builders/kafka/produce_test.go | 25 +- pkg/mcp/builders/kafka/schema_registry.go | 25 +- pkg/mcp/builders/kafka/topics.go | 25 +- pkg/mcp/builders/pulsar/brokers.go | 25 +- pkg/mcp/builders/pulsar/brokers_stats.go | 25 +- pkg/mcp/builders/pulsar/cluster.go | 25 +- pkg/mcp/builders/pulsar/consume.go | 25 +- pkg/mcp/builders/pulsar/functions.go | 25 +- pkg/mcp/builders/pulsar/functions_test.go | 25 +- pkg/mcp/builders/pulsar/functions_worker.go | 25 +- pkg/mcp/builders/pulsar/namespace.go | 25 +- pkg/mcp/builders/pulsar/namespace_policy.go | 25 +- pkg/mcp/builders/pulsar/nsisolationpolicy.go | 25 +- pkg/mcp/builders/pulsar/packages.go | 21 +- pkg/mcp/builders/pulsar/produce.go | 25 +- pkg/mcp/builders/pulsar/resourcequotas.go | 25 +- pkg/mcp/builders/pulsar/schema.go | 25 +- pkg/mcp/builders/pulsar/sinks.go | 25 +- pkg/mcp/builders/pulsar/sources.go | 25 +- pkg/mcp/builders/pulsar/subscription.go | 25 +- pkg/mcp/builders/pulsar/tenant.go | 25 +- pkg/mcp/builders/pulsar/topic.go | 25 +- pkg/mcp/builders/pulsar/topic_policy.go | 25 +- pkg/mcp/builders/registry.go | 25 +- pkg/mcp/builders/registry_test.go | 25 +- pkg/mcp/ctx.go | 14 + pkg/mcp/features.go | 25 +- pkg/mcp/instructions.go | 25 +- pkg/mcp/internal/context/ctx.go | 25 +- pkg/mcp/kafka_admin_connect_tools.go | 25 +- pkg/mcp/kafka_admin_groups_tools.go | 25 +- pkg/mcp/kafka_admin_partitions_tools.go | 25 +- pkg/mcp/kafka_admin_sr_tools.go | 25 +- pkg/mcp/kafka_admin_topics_tools.go | 25 +- pkg/mcp/kafka_client_consume_tools.go | 25 +- pkg/mcp/kafka_client_produce_tools.go | 25 +- pkg/mcp/pftools/circuit_breaker.go | 25 +- pkg/mcp/pftools/errors.go | 14 + pkg/mcp/pftools/invocation.go | 25 +- pkg/mcp/pftools/manager.go | 25 +- pkg/mcp/pftools/schema.go | 25 +- pkg/mcp/pftools/types.go | 25 +- pkg/mcp/prompts.go | 25 +- pkg/mcp/pulsar_admin_brokers_stats_tools.go | 25 +- pkg/mcp/pulsar_admin_brokers_tools.go | 25 +- pkg/mcp/pulsar_admin_cluster_tools.go | 25 +- pkg/mcp/pulsar_admin_functions_tools.go | 25 +- .../pulsar_admin_functions_worker_tools.go | 25 +- .../pulsar_admin_namespace_policy_tools.go | 25 +- pkg/mcp/pulsar_admin_namespace_tools.go | 25 +- .../pulsar_admin_nsisolationpolicy_tools.go | 25 +- pkg/mcp/pulsar_admin_packages_tools.go | 21 +- pkg/mcp/pulsar_admin_resourcequotas_tools.go | 25 +- pkg/mcp/pulsar_admin_schemas_tools.go | 25 +- pkg/mcp/pulsar_admin_sinks_tools.go | 25 +- pkg/mcp/pulsar_admin_sources_tools.go | 25 +- pkg/mcp/pulsar_admin_subscription_tools.go | 25 +- pkg/mcp/pulsar_admin_tenant_tools.go | 25 +- pkg/mcp/pulsar_admin_topic_policy_tools.go | 25 +- pkg/mcp/pulsar_admin_topic_tools.go | 25 +- pkg/mcp/pulsar_client_consume_tools.go | 25 +- pkg/mcp/pulsar_client_produce_tools.go | 25 +- pkg/mcp/pulsar_functions_as_tools.go | 25 +- pkg/mcp/server.go | 25 +- pkg/mcp/session/context.go | 58 ++++ pkg/mcp/session/pulsar_session_manager.go | 264 ++++++++++++++++++ .../session/pulsar_session_manager_test.go | 213 ++++++++++++++ pkg/mcp/sncontext_tools.go | 25 +- pkg/mcp/sncontext_utils.go | 25 +- pkg/mcp/streamnative_resources_log_tools.go | 25 +- pkg/mcp/streamnative_resources_tools.go | 14 + pkg/pulsar/connection.go | 25 +- pkg/schema/avro.go | 14 + pkg/schema/avro_core.go | 14 + pkg/schema/avro_core_test.go | 14 + pkg/schema/avro_test.go | 14 + pkg/schema/boolean.go | 14 + pkg/schema/boolean_test.go | 14 + pkg/schema/common.go | 14 + pkg/schema/common_test.go | 14 + pkg/schema/converter.go | 14 + pkg/schema/converter_test.go | 14 + pkg/schema/json.go | 14 + pkg/schema/json_test.go | 14 + pkg/schema/number.go | 14 + pkg/schema/number_test.go | 14 + pkg/schema/string.go | 14 + pkg/schema/string_test.go | 14 + sdk/sdk-apiserver/api_apis.go | 17 -- .../api_authorization_streamnative_io.go | 17 -- ..._authorization_streamnative_io_v1alpha1.go | 17 -- .../api_billing_streamnative_io.go | 17 -- .../api_billing_streamnative_io_v1alpha1.go | 17 -- .../api_cloud_streamnative_io.go | 17 -- .../api_cloud_streamnative_io_v1alpha1.go | 17 -- .../api_cloud_streamnative_io_v1alpha2.go | 17 -- .../api_compute_streamnative_io.go | 17 -- .../api_compute_streamnative_io_v1alpha1.go | 17 -- sdk/sdk-apiserver/api_custom_objects.go | 17 -- sdk/sdk-apiserver/api_version.go | 17 -- sdk/sdk-apiserver/client.go | 17 -- sdk/sdk-apiserver/configuration.go | 17 -- ...is_authorization_v1alpha1_cloud_storage.go | 17 -- ...g_apis_authorization_v1alpha1_condition.go | 17 -- ...apis_authorization_v1alpha1_iam_account.go | 17 -- ...authorization_v1alpha1_iam_account_list.go | 17 -- ...authorization_v1alpha1_iam_account_spec.go | 17 -- ...thorization_v1alpha1_iam_account_status.go | 17 -- ...pis_authorization_v1alpha1_organization.go | 17 -- ...rization_v1alpha1_pool_member_reference.go | 17 -- ...is_authorization_v1alpha1_resource_rule.go | 17 -- ...kg_apis_authorization_v1alpha1_role_ref.go | 17 -- ...ation_v1alpha1_self_subject_rbac_review.go | 17 -- ..._v1alpha1_self_subject_rbac_review_spec.go | 17 -- ...1alpha1_self_subject_rbac_review_status.go | 17 -- ...tion_v1alpha1_self_subject_rules_review.go | 17 -- ...v1alpha1_self_subject_rules_review_spec.go | 17 -- ...alpha1_self_subject_rules_review_status.go | 17 -- ...ation_v1alpha1_self_subject_user_review.go | 17 -- ...1alpha1_self_subject_user_review_status.go | 17 -- ...horization_v1alpha1_subject_role_review.go | 17 -- ...ation_v1alpha1_subject_role_review_spec.go | 17 -- ...ion_v1alpha1_subject_role_review_status.go | 17 -- ...orization_v1alpha1_subject_rules_review.go | 17 -- ...tion_v1alpha1_subject_rules_review_spec.go | 17 -- ...on_v1alpha1_subject_rules_review_status.go | 17 -- ...kg_apis_authorization_v1alpha1_user_ref.go | 17 -- ...illing_v1alpha1_customer_portal_request.go | 17 -- ...g_v1alpha1_customer_portal_request_spec.go | 17 -- ...v1alpha1_customer_portal_request_status.go | 17 -- ...er_pkg_apis_billing_v1alpha1_offer_item.go | 17 -- ..._apis_billing_v1alpha1_offer_item_price.go | 17 -- ...ing_v1alpha1_offer_item_price_recurring.go | 17 -- ...g_apis_billing_v1alpha1_offer_reference.go | 17 -- ...kg_apis_billing_v1alpha1_payment_intent.go | 17 -- ...is_billing_v1alpha1_payment_intent_list.go | 17 -- ...is_billing_v1alpha1_payment_intent_spec.go | 17 -- ..._billing_v1alpha1_payment_intent_status.go | 17 -- ...g_apis_billing_v1alpha1_price_reference.go | 17 -- ...pkg_apis_billing_v1alpha1_private_offer.go | 17 -- ...pis_billing_v1alpha1_private_offer_list.go | 17 -- ...pis_billing_v1alpha1_private_offer_spec.go | 17 -- ...erver_pkg_apis_billing_v1alpha1_product.go | 17 -- ..._pkg_apis_billing_v1alpha1_product_list.go | 17 -- ...pkg_apis_billing_v1alpha1_product_price.go | 17 -- ...apis_billing_v1alpha1_product_reference.go | 17 -- ..._pkg_apis_billing_v1alpha1_product_spec.go | 17 -- ...kg_apis_billing_v1alpha1_product_status.go | 17 -- ...s_billing_v1alpha1_product_status_price.go | 17 -- ..._pkg_apis_billing_v1alpha1_public_offer.go | 17 -- ...apis_billing_v1alpha1_public_offer_list.go | 17 -- ...apis_billing_v1alpha1_public_offer_spec.go | 17 -- ..._pkg_apis_billing_v1alpha1_setup_intent.go | 17 -- ...apis_billing_v1alpha1_setup_intent_list.go | 17 -- ...billing_v1alpha1_setup_intent_reference.go | 17 -- ...apis_billing_v1alpha1_setup_intent_spec.go | 17 -- ...is_billing_v1alpha1_setup_intent_status.go | 17 -- ...ha1_stripe_customer_portal_request_spec.go | 17 -- ...1_stripe_customer_portal_request_status.go | 17 -- ..._billing_v1alpha1_stripe_payment_intent.go | 17 -- ...illing_v1alpha1_stripe_price_recurrence.go | 17 -- ...apis_billing_v1alpha1_stripe_price_spec.go | 17 -- ...is_billing_v1alpha1_stripe_product_spec.go | 17 -- ...is_billing_v1alpha1_stripe_setup_intent.go | 17 -- ...lling_v1alpha1_stripe_subscription_spec.go | 17 -- ..._pkg_apis_billing_v1alpha1_subscription.go | 17 -- ...is_billing_v1alpha1_subscription_intent.go | 17 -- ...lling_v1alpha1_subscription_intent_list.go | 17 -- ...lling_v1alpha1_subscription_intent_spec.go | 17 -- ...ing_v1alpha1_subscription_intent_status.go | 17 -- ...apis_billing_v1alpha1_subscription_item.go | 17 -- ...apis_billing_v1alpha1_subscription_list.go | 17 -- ...billing_v1alpha1_subscription_reference.go | 17 -- ...apis_billing_v1alpha1_subscription_spec.go | 17 -- ...is_billing_v1alpha1_subscription_status.go | 17 -- ...1_subscription_status_subscription_item.go | 17 -- ...lling_v1alpha1_suger_entitlement_review.go | 17 -- ..._v1alpha1_suger_entitlement_review_spec.go | 17 -- ...1alpha1_suger_entitlement_review_status.go | 17 -- ...pkg_apis_billing_v1alpha1_suger_product.go | 17 -- ...pis_billing_v1alpha1_suger_product_spec.go | 17 -- ...v1alpha1_suger_subscription_intent_spec.go | 17 -- ...illing_v1alpha1_suger_subscription_spec.go | 17 -- ...er_pkg_apis_billing_v1alpha1_test_clock.go | 17 -- ...g_apis_billing_v1alpha1_test_clock_list.go | 17 -- ...g_apis_billing_v1alpha1_test_clock_spec.go | 17 -- ...apis_billing_v1alpha1_test_clock_status.go | 17 -- ...i_server_pkg_apis_billing_v1alpha1_tier.go | 17 -- ..._server_pkg_apis_cloud_v1alpha1_api_key.go | 17 -- ...er_pkg_apis_cloud_v1alpha1_api_key_list.go | 17 -- ...er_pkg_apis_cloud_v1alpha1_api_key_spec.go | 17 -- ..._pkg_apis_cloud_v1alpha1_api_key_status.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_audit_log.go | 17 -- ...apis_cloud_v1alpha1_auto_scaling_policy.go | 17 -- ...pis_cloud_v1alpha1_aws_cloud_connection.go | 17 -- ...pis_cloud_v1alpha1_aws_pool_member_spec.go | 17 -- ...kg_apis_cloud_v1alpha1_azure_connection.go | 17 -- ...s_cloud_v1alpha1_azure_pool_member_spec.go | 17 -- ...pis_cloud_v1alpha1_billing_account_spec.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_book_keeper.go | 17 -- ...v1alpha1_book_keeper_node_resource_spec.go | 17 -- ...loud_v1alpha1_book_keeper_set_reference.go | 17 -- ...cloud_v1alpha1_bookkeeper_node_resource.go | 17 -- ...i_server_pkg_apis_cloud_v1alpha1_broker.go | 17 -- ...loud_v1alpha1_broker_node_resource_spec.go | 17 -- ...pi_server_pkg_apis_cloud_v1alpha1_chain.go | 17 -- ...kg_apis_cloud_v1alpha1_cloud_connection.go | 17 -- ...is_cloud_v1alpha1_cloud_connection_list.go | 17 -- ...is_cloud_v1alpha1_cloud_connection_spec.go | 17 -- ..._cloud_v1alpha1_cloud_connection_status.go | 17 -- ...g_apis_cloud_v1alpha1_cloud_environment.go | 17 -- ...s_cloud_v1alpha1_cloud_environment_list.go | 17 -- ...s_cloud_v1alpha1_cloud_environment_spec.go | 17 -- ...cloud_v1alpha1_cloud_environment_status.go | 17 -- ...er_pkg_apis_cloud_v1alpha1_cluster_role.go | 17 -- ...pis_cloud_v1alpha1_cluster_role_binding.go | 17 -- ...loud_v1alpha1_cluster_role_binding_list.go | 17 -- ...loud_v1alpha1_cluster_role_binding_spec.go | 17 -- ...ud_v1alpha1_cluster_role_binding_status.go | 17 -- ...g_apis_cloud_v1alpha1_cluster_role_list.go | 17 -- ...g_apis_cloud_v1alpha1_cluster_role_spec.go | 17 -- ...apis_cloud_v1alpha1_cluster_role_status.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_condition.go | 17 -- ...pkg_apis_cloud_v1alpha1_condition_group.go | 17 -- ...i_server_pkg_apis_cloud_v1alpha1_config.go | 17 -- ...is_cloud_v1alpha1_default_node_resource.go | 17 -- ..._api_server_pkg_apis_cloud_v1alpha1_dns.go | 17 -- ...i_server_pkg_apis_cloud_v1alpha1_domain.go | 17 -- ...rver_pkg_apis_cloud_v1alpha1_domain_tls.go | 17 -- ...pkg_apis_cloud_v1alpha1_encrypted_token.go | 17 -- ..._pkg_apis_cloud_v1alpha1_encryption_key.go | 17 -- ...pkg_apis_cloud_v1alpha1_endpoint_access.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_exec_config.go | 17 -- ...er_pkg_apis_cloud_v1alpha1_exec_env_var.go | 17 -- ..._pkg_apis_cloud_v1alpha1_failed_cluster.go | 17 -- ...apis_cloud_v1alpha1_failed_cluster_role.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_failed_role.go | 17 -- ...apis_cloud_v1alpha1_failed_role_binding.go | 17 -- ...loud_v1alpha1_g_cloud_organization_spec.go | 17 -- ...cloud_v1alpha1_g_cloud_pool_member_spec.go | 17 -- ..._server_pkg_apis_cloud_v1alpha1_gateway.go | 17 -- ..._pkg_apis_cloud_v1alpha1_gateway_status.go | 17 -- ...pis_cloud_v1alpha1_gcp_cloud_connection.go | 17 -- ...cloud_v1alpha1_generic_pool_member_spec.go | 17 -- ...r_pkg_apis_cloud_v1alpha1_identity_pool.go | 17 -- ..._apis_cloud_v1alpha1_identity_pool_list.go | 17 -- ..._apis_cloud_v1alpha1_identity_pool_spec.go | 17 -- ...pis_cloud_v1alpha1_identity_pool_status.go | 17 -- ...r_pkg_apis_cloud_v1alpha1_installed_csv.go | 17 -- ...rver_pkg_apis_cloud_v1alpha1_invitation.go | 17 -- ...cloud_v1alpha1_lakehouse_storage_config.go | 17 -- ..._apis_cloud_v1alpha1_maintenance_window.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_master_auth.go | 17 -- ..._server_pkg_apis_cloud_v1alpha1_network.go | 17 -- ..._pkg_apis_cloud_v1alpha1_o_auth2_config.go | 17 -- ...r_pkg_apis_cloud_v1alpha1_oidc_provider.go | 17 -- ..._apis_cloud_v1alpha1_oidc_provider_list.go | 17 -- ..._apis_cloud_v1alpha1_oidc_provider_spec.go | 17 -- ...pis_cloud_v1alpha1_oidc_provider_status.go | 17 -- ...er_pkg_apis_cloud_v1alpha1_organization.go | 17 -- ...g_apis_cloud_v1alpha1_organization_list.go | 17 -- ...g_apis_cloud_v1alpha1_organization_spec.go | 17 -- ...apis_cloud_v1alpha1_organization_status.go | 17 -- ...apis_cloud_v1alpha1_organization_stripe.go | 17 -- ..._apis_cloud_v1alpha1_organization_suger.go | 17 -- ...api_server_pkg_apis_cloud_v1alpha1_pool.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_pool_list.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_pool_member.go | 17 -- ...ha1_pool_member_connection_options_spec.go | 17 -- ...pha1_pool_member_istio_gateway_selector.go | 17 -- ...v1alpha1_pool_member_istio_gateway_spec.go | 17 -- ..._v1alpha1_pool_member_istio_gateway_tls.go | 17 -- ...s_cloud_v1alpha1_pool_member_istio_spec.go | 17 -- ...kg_apis_cloud_v1alpha1_pool_member_list.go | 17 -- ...s_cloud_v1alpha1_pool_member_monitoring.go | 17 -- ..._cloud_v1alpha1_pool_member_pulsar_spec.go | 17 -- ...1alpha1_pool_member_pulsar_spec_catalog.go | 17 -- ...1alpha1_pool_member_pulsar_spec_channel.go | 17 -- ...is_cloud_v1alpha1_pool_member_reference.go | 17 -- ...kg_apis_cloud_v1alpha1_pool_member_spec.go | 17 -- ..._apis_cloud_v1alpha1_pool_member_status.go | 17 -- ...1alpha1_pool_member_tiered_storage_spec.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_pool_option.go | 17 -- ...kg_apis_cloud_v1alpha1_pool_option_list.go | 17 -- ...pis_cloud_v1alpha1_pool_option_location.go | 17 -- ...kg_apis_cloud_v1alpha1_pool_option_spec.go | 17 -- ..._apis_cloud_v1alpha1_pool_option_status.go | 17 -- ...server_pkg_apis_cloud_v1alpha1_pool_ref.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_pool_spec.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_pool_status.go | 17 -- ...pkg_apis_cloud_v1alpha1_private_service.go | 17 -- ..._apis_cloud_v1alpha1_private_service_id.go | 17 -- ...kg_apis_cloud_v1alpha1_protocols_config.go | 17 -- ..._pkg_apis_cloud_v1alpha1_pulsar_cluster.go | 17 -- ...1alpha1_pulsar_cluster_component_status.go | 17 -- ...apis_cloud_v1alpha1_pulsar_cluster_list.go | 17 -- ...apis_cloud_v1alpha1_pulsar_cluster_spec.go | 17 -- ...is_cloud_v1alpha1_pulsar_cluster_status.go | 17 -- ..._pkg_apis_cloud_v1alpha1_pulsar_gateway.go | 17 -- ...apis_cloud_v1alpha1_pulsar_gateway_list.go | 17 -- ...apis_cloud_v1alpha1_pulsar_gateway_spec.go | 17 -- ...is_cloud_v1alpha1_pulsar_gateway_status.go | 17 -- ...pkg_apis_cloud_v1alpha1_pulsar_instance.go | 17 -- ...pis_cloud_v1alpha1_pulsar_instance_auth.go | 17 -- ...pis_cloud_v1alpha1_pulsar_instance_list.go | 17 -- ...pis_cloud_v1alpha1_pulsar_instance_spec.go | 17 -- ...s_cloud_v1alpha1_pulsar_instance_status.go | 17 -- ...ud_v1alpha1_pulsar_instance_status_auth.go | 17 -- ...ha1_pulsar_instance_status_auth_o_auth2.go | 17 -- ..._cloud_v1alpha1_pulsar_service_endpoint.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_rbac_status.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_region_info.go | 17 -- ...api_server_pkg_apis_cloud_v1alpha1_role.go | 17 -- ...er_pkg_apis_cloud_v1alpha1_role_binding.go | 17 -- ...s_cloud_v1alpha1_role_binding_condition.go | 17 -- ...g_apis_cloud_v1alpha1_role_binding_list.go | 17 -- ...g_apis_cloud_v1alpha1_role_binding_spec.go | 17 -- ...apis_cloud_v1alpha1_role_binding_status.go | 17 -- ...pkg_apis_cloud_v1alpha1_role_definition.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_role_list.go | 17 -- ...server_pkg_apis_cloud_v1alpha1_role_ref.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_role_spec.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_role_status.go | 17 -- ...i_server_pkg_apis_cloud_v1alpha1_secret.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_secret_list.go | 17 -- ...kg_apis_cloud_v1alpha1_secret_reference.go | 17 -- ...g_apis_cloud_v1alpha1_self_registration.go | 17 -- ...is_cloud_v1alpha1_self_registration_aws.go | 17 -- ...s_cloud_v1alpha1_self_registration_spec.go | 17 -- ..._cloud_v1alpha1_self_registration_suger.go | 17 -- ...pkg_apis_cloud_v1alpha1_service_account.go | 17 -- ..._cloud_v1alpha1_service_account_binding.go | 17 -- ...d_v1alpha1_service_account_binding_list.go | 17 -- ...d_v1alpha1_service_account_binding_spec.go | 17 -- ...v1alpha1_service_account_binding_status.go | 17 -- ...pis_cloud_v1alpha1_service_account_list.go | 17 -- ...s_cloud_v1alpha1_service_account_status.go | 17 -- ..._pkg_apis_cloud_v1alpha1_sharing_config.go | 17 -- ..._api_server_pkg_apis_cloud_v1alpha1_srn.go | 17 -- ...apis_cloud_v1alpha1_stripe_subscription.go | 17 -- ...cloud_v1alpha1_stripe_subscription_list.go | 17 -- ...cloud_v1alpha1_stripe_subscription_spec.go | 17 -- ...oud_v1alpha1_stripe_subscription_status.go | 17 -- ..._server_pkg_apis_cloud_v1alpha1_subject.go | 17 -- ...g_apis_cloud_v1alpha1_subscription_item.go | 17 -- ...ud_v1alpha1_support_access_options_spec.go | 17 -- ...pi_server_pkg_apis_cloud_v1alpha1_taint.go | 17 -- ...rver_pkg_apis_cloud_v1alpha1_toleration.go | 17 -- ...api_server_pkg_apis_cloud_v1alpha1_user.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_user_list.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_user_name.go | 17 -- ...erver_pkg_apis_cloud_v1alpha1_user_spec.go | 17 -- ...ver_pkg_apis_cloud_v1alpha1_user_status.go | 17 -- ...i_server_pkg_apis_cloud_v1alpha1_window.go | 17 -- ...cloud_v1alpha1_zoo_keeper_set_reference.go | 17 -- ...kg_apis_cloud_v1alpha2_aws_subscription.go | 17 -- ...is_cloud_v1alpha2_aws_subscription_list.go | 17 -- ...is_cloud_v1alpha2_aws_subscription_spec.go | 17 -- ..._cloud_v1alpha2_aws_subscription_status.go | 17 -- ...loud_v1alpha2_book_keeper_resource_spec.go | 17 -- ...pkg_apis_cloud_v1alpha2_book_keeper_set.go | 17 -- ...pis_cloud_v1alpha2_book_keeper_set_list.go | 17 -- ...s_cloud_v1alpha2_book_keeper_set_option.go | 17 -- ...ud_v1alpha2_book_keeper_set_option_list.go | 17 -- ...ud_v1alpha2_book_keeper_set_option_spec.go | 17 -- ..._v1alpha2_book_keeper_set_option_status.go | 17 -- ...loud_v1alpha2_book_keeper_set_reference.go | 17 -- ...pis_cloud_v1alpha2_book_keeper_set_spec.go | 17 -- ...s_cloud_v1alpha2_book_keeper_set_status.go | 17 -- ...cloud_v1alpha2_bookkeeper_node_resource.go | 17 -- ...erver_pkg_apis_cloud_v1alpha2_condition.go | 17 -- ...is_cloud_v1alpha2_default_node_resource.go | 17 -- ...ver_pkg_apis_cloud_v1alpha2_monitor_set.go | 17 -- ...kg_apis_cloud_v1alpha2_monitor_set_list.go | 17 -- ...kg_apis_cloud_v1alpha2_monitor_set_spec.go | 17 -- ..._apis_cloud_v1alpha2_monitor_set_status.go | 17 -- ...is_cloud_v1alpha2_pool_member_reference.go | 17 -- ..._pkg_apis_cloud_v1alpha2_sharing_config.go | 17 -- ...cloud_v1alpha2_zoo_keeper_resource_spec.go | 17 -- ..._pkg_apis_cloud_v1alpha2_zoo_keeper_set.go | 17 -- ...apis_cloud_v1alpha2_zoo_keeper_set_list.go | 17 -- ...is_cloud_v1alpha2_zoo_keeper_set_option.go | 17 -- ...oud_v1alpha2_zoo_keeper_set_option_list.go | 17 -- ...oud_v1alpha2_zoo_keeper_set_option_spec.go | 17 -- ...d_v1alpha2_zoo_keeper_set_option_status.go | 17 -- ...cloud_v1alpha2_zoo_keeper_set_reference.go | 17 -- ...apis_cloud_v1alpha2_zoo_keeper_set_spec.go | 17 -- ...is_cloud_v1alpha2_zoo_keeper_set_status.go | 17 -- ...rver_pkg_apis_compute_v1alpha1_artifact.go | 17 -- ...ver_pkg_apis_compute_v1alpha1_condition.go | 17 -- ...ver_pkg_apis_compute_v1alpha1_container.go | 17 -- ...pis_compute_v1alpha1_flink_blob_storage.go | 17 -- ..._apis_compute_v1alpha1_flink_deployment.go | 17 -- ..._compute_v1alpha1_flink_deployment_list.go | 17 -- ..._compute_v1alpha1_flink_deployment_spec.go | 17 -- ...ompute_v1alpha1_flink_deployment_status.go | 17 -- ...erver_pkg_apis_compute_v1alpha1_logging.go | 17 -- ...r_pkg_apis_compute_v1alpha1_object_meta.go | 17 -- ..._pkg_apis_compute_v1alpha1_pod_template.go | 17 -- ...apis_compute_v1alpha1_pod_template_spec.go | 17 -- ..._compute_v1alpha1_pool_member_reference.go | 17 -- ...rver_pkg_apis_compute_v1alpha1_pool_ref.go | 17 -- ...pkg_apis_compute_v1alpha1_resource_spec.go | 17 -- ..._apis_compute_v1alpha1_security_context.go | 17 -- ...pkg_apis_compute_v1alpha1_user_metadata.go | 17 -- ...server_pkg_apis_compute_v1alpha1_volume.go | 17 -- ...ute_v1alpha1_vvp_custom_resource_status.go | 17 -- ...compute_v1alpha1_vvp_deployment_details.go | 17 -- ...1alpha1_vvp_deployment_details_template.go | 17 -- ...vp_deployment_details_template_metadata.go | 17 -- ...a1_vvp_deployment_details_template_spec.go | 17 -- ...t_details_template_spec_kubernetes_spec.go | 17 -- ...ha1_vvp_deployment_kubernetes_resources.go | 17 -- ..._v1alpha1_vvp_deployment_running_status.go | 17 -- ..._compute_v1alpha1_vvp_deployment_status.go | 17 -- ...1alpha1_vvp_deployment_status_condition.go | 17 -- ...vvp_deployment_status_deployment_status.go | 17 -- ...v1alpha1_vvp_deployment_system_metadata.go | 17 -- ...ompute_v1alpha1_vvp_deployment_template.go | 17 -- ...e_v1alpha1_vvp_deployment_template_spec.go | 17 -- ...s_compute_v1alpha1_vvp_restore_strategy.go | 17 -- ...ver_pkg_apis_compute_v1alpha1_workspace.go | 17 -- ...kg_apis_compute_v1alpha1_workspace_list.go | 17 -- ...kg_apis_compute_v1alpha1_workspace_spec.go | 17 -- ..._apis_compute_v1alpha1_workspace_status.go | 17 -- sdk/sdk-apiserver/model_v1_affinity.go | 17 -- sdk/sdk-apiserver/model_v1_api_group.go | 17 -- sdk/sdk-apiserver/model_v1_api_group_list.go | 17 -- sdk/sdk-apiserver/model_v1_api_resource.go | 17 -- .../model_v1_api_resource_list.go | 17 -- sdk/sdk-apiserver/model_v1_condition.go | 17 -- .../model_v1_config_map_env_source.go | 17 -- .../model_v1_config_map_key_selector.go | 17 -- .../model_v1_config_map_volume_source.go | 17 -- sdk/sdk-apiserver/model_v1_delete_options.go | 17 -- sdk/sdk-apiserver/model_v1_env_from_source.go | 17 -- sdk/sdk-apiserver/model_v1_env_var.go | 17 -- sdk/sdk-apiserver/model_v1_env_var_source.go | 17 -- sdk/sdk-apiserver/model_v1_exec_action.go | 17 -- .../model_v1_group_version_for_discovery.go | 17 -- sdk/sdk-apiserver/model_v1_grpc_action.go | 17 -- sdk/sdk-apiserver/model_v1_http_get_action.go | 17 -- sdk/sdk-apiserver/model_v1_http_header.go | 17 -- sdk/sdk-apiserver/model_v1_key_to_path.go | 17 -- sdk/sdk-apiserver/model_v1_label_selector.go | 17 -- .../model_v1_label_selector_requirement.go | 17 -- sdk/sdk-apiserver/model_v1_list_meta.go | 17 -- .../model_v1_local_object_reference.go | 17 -- .../model_v1_managed_fields_entry.go | 17 -- sdk/sdk-apiserver/model_v1_node_affinity.go | 17 -- sdk/sdk-apiserver/model_v1_node_selector.go | 17 -- .../model_v1_node_selector_requirement.go | 17 -- .../model_v1_node_selector_term.go | 17 -- .../model_v1_object_field_selector.go | 17 -- sdk/sdk-apiserver/model_v1_object_meta.go | 17 -- sdk/sdk-apiserver/model_v1_owner_reference.go | 17 -- sdk/sdk-apiserver/model_v1_pod_affinity.go | 17 -- .../model_v1_pod_affinity_term.go | 17 -- .../model_v1_pod_anti_affinity.go | 17 -- sdk/sdk-apiserver/model_v1_preconditions.go | 17 -- .../model_v1_preferred_scheduling_term.go | 17 -- sdk/sdk-apiserver/model_v1_probe.go | 17 -- .../model_v1_resource_field_selector.go | 17 -- .../model_v1_resource_requirements.go | 17 -- .../model_v1_secret_env_source.go | 17 -- .../model_v1_secret_key_selector.go | 17 -- .../model_v1_secret_volume_source.go | 17 -- .../model_v1_server_address_by_client_cidr.go | 17 -- sdk/sdk-apiserver/model_v1_status.go | 17 -- sdk/sdk-apiserver/model_v1_status_cause.go | 17 -- sdk/sdk-apiserver/model_v1_status_details.go | 17 -- .../model_v1_tcp_socket_action.go | 17 -- sdk/sdk-apiserver/model_v1_toleration.go | 17 -- sdk/sdk-apiserver/model_v1_volume_mount.go | 17 -- sdk/sdk-apiserver/model_v1_watch_event.go | 17 -- .../model_v1_weighted_pod_affinity_term.go | 17 -- sdk/sdk-apiserver/model_version_info.go | 17 -- sdk/sdk-apiserver/response.go | 17 -- sdk/sdk-apiserver/utils.go | 17 -- 521 files changed, 2166 insertions(+), 8198 deletions(-) create mode 100644 pkg/mcp/session/context.go create mode 100644 pkg/mcp/session/pulsar_session_manager.go create mode 100644 pkg/mcp/session/pulsar_session_manager_test.go diff --git a/CLAUDE.md b/CLAUDE.md index 9eaaa86..779fe62 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,109 +4,138 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Build Commands -### Build the server binary ```bash -make build -# Or directly: -go build -o bin/snmcp cmd/streamnative-mcp-server/main.go -``` - -### Run tests -```bash -go test -race ./... -# Run a specific test: -go test -race ./pkg/mcp/builders/... -``` - -### Docker operations -```bash -make docker-build # Build local Docker image +make build # Build server binary to bin/snmcp +go test -race ./... # Run all tests with race detection +go test -race ./pkg/mcp/builders/... # Run specific package tests +go test -v -run TestName ./pkg/... # Run a single test +make license-check # Check license headers +make license-fix # Fix license headers +make docker-build # Build local Docker image make docker-build-push # Build and push multi-platform image ``` -### License checking -```bash -make license-check # Check license headers -make license-fix # Fix license headers -``` - ## Architecture Overview -The StreamNative MCP Server implements the Model Context Protocol to enable AI agents to interact with Apache Kafka, Apache Pulsar, and StreamNative Cloud resources. - -### Core Components - -1. **Session Management** (`pkg/config/`, `pkg/kafka/`, `pkg/pulsar/`) - - Three types of sessions: SNCloudSession, KafkaSession, PulsarSession - - Sessions manage client connections and authentication - - Sessions are created and configured based on command-line flags - -2. **MCP Server** (`pkg/mcp/`) - - Central server implementation using `mark3labs/mcp-go` library - - Handles tool registration and request routing - - Features can be enabled/disabled via `--features` flag - -3. **Tool Builders** (`pkg/mcp/builders/`) - - Registry pattern for registering MCP tools - - Separate builders for Kafka and Pulsar operations - - Each builder creates tools with specific operations (admin, client, etc.) +The StreamNative MCP Server implements the Model Context Protocol using the `mark3labs/mcp-go` library to enable AI agents to interact with Apache Kafka, Apache Pulsar, and StreamNative Cloud resources. -4. **PFTools** (`pkg/mcp/pftools/`) - - Abstraction layer for Pulsar Functions as MCP tools - - Dynamic tool generation from deployed Pulsar Functions - - Circuit breaker pattern for resilience - - Schema handling for input/output validation +### Request Flow -### Key Design Patterns - -1. **Builder Pattern**: Tool builders (`pkg/mcp/builders/`) register tools dynamically based on enabled features -2. **Session Pattern**: Separate sessions for different services (Kafka, Pulsar, SNCloud) with lazy initialization -3. **Registry Pattern**: Central registry (`pkg/mcp/builders/registry.go`) manages all tool builders -4. **Circuit Breaker**: Used in PFTools for handling function invocation failures - -## Development Guidelines - -### Adding New Tools - -1. Create a new builder in `pkg/mcp/builders/kafka/` or `pkg/mcp/builders/pulsar/` -2. Implement the `Builder` interface with `Build()` method -3. Register the builder in the appropriate tools file (e.g., `kafka_admin_*_tools.go`) -4. Add feature flag support in `pkg/mcp/features.go` - -### Session Context - -The server maintains session context that gets passed to tools via the context: -- Pulsar admin client retrieval: Use `session.GetAdminClient()` or `session.GetAdminV3Client()` -- Kafka client retrieval: Use `session.GetKafkaSession()` methods -- Always check for nil sessions before use - -### Error Handling - -- Use wrapped errors with context: `fmt.Errorf("failed to X: %w", err)` -- Check session availability before operations -- Return meaningful error messages for AI agent consumption +``` +Client Request → MCP Server (pkg/mcp/server.go) + ↓ + Tool Handler (from builders) + ↓ + Session Context (pkg/mcp/ctx.go) + ↓ + Service Client (Kafka/Pulsar/SNCloud) +``` -## Testing +### Core Components -Tests follow standard Go testing patterns: -- Unit tests alongside source files (`*_test.go`) -- Use `testify` for assertions -- Mock external dependencies where appropriate +1. **Server & Sessions** (`pkg/mcp/server.go`) + - `Server` struct holds `MCPServer`, `KafkaSession`, `PulsarSession`, and `SNCloudSession` + - Sessions provide lazy-initialized clients for each service + - Context functions (`pkg/mcp/ctx.go`) inject/retrieve sessions from request context -## Important Files +2. **Tool Builders** (`pkg/mcp/builders/`) + - `ToolBuilder` interface: `GetName()`, `GetRequiredFeatures()`, `BuildTools()`, `Validate()` + - `BaseToolBuilder` provides common feature validation logic + - Each builder creates `[]server.ServerTool` with tool definitions and handlers + - Builders in `builders/kafka/` and `builders/pulsar/` implement service-specific tools -- `cmd/streamnative-mcp-server/main.go` - Entry point -- `pkg/cmd/mcp/server.go` - Server setup -- `pkg/mcp/server.go` - MCP server implementation -- `pkg/mcp/builders/registry.go` - Tool registration -- `pkg/mcp/pftools/manager.go` - Pulsar Functions management -- `pkg/config/config.go` - Configuration structures +3. **Tool Registration** (`pkg/mcp/*_tools.go`) + - Each `*_tools.go` file creates a builder, builds tools, and adds them to the server + - Tools are conditionally registered based on `--features` flag + - Feature constants defined in `pkg/mcp/features.go` -## Configuration +4. **PFTools - Functions as Tools** (`pkg/mcp/pftools/`) + - `PulsarFunctionManager` dynamically converts Pulsar Functions to MCP tools + - Polls for function changes and auto-registers/unregisters tools + - Circuit breaker pattern (`circuit_breaker.go`) for fault tolerance + - Schema conversion (`schema.go`) for input/output handling -The server supports three modes: -1. **StreamNative Cloud**: Requires `--organization` and `--key-file` -2. **External Kafka**: Use `--use-external-kafka` with Kafka connection parameters -3. **External Pulsar**: Use `--use-external-pulsar` with Pulsar connection parameters +### Key Design Patterns -When `--pulsar-instance` and `--pulsar-cluster` are provided together, context management tools are disabled as the context is pre-configured. \ No newline at end of file +- **Builder Pattern**: Tool builders create tools based on features and read-only mode +- **Context Injection**: Sessions passed via `context.Context` using typed keys +- **Feature Flags**: Tools enabled/disabled via string feature identifiers +- **Circuit Breaker**: PFTools uses failure thresholds to prevent cascading failures + +## Adding New Tools + +1. **Create Builder** in `pkg/mcp/builders/kafka/` or `pkg/mcp/builders/pulsar/`: + ```go + type MyToolBuilder struct { + *builders.BaseToolBuilder + } + + func NewMyToolBuilder() *MyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "my_tool", + Description: "Tool description", + Category: "kafka_admin", + } + features := []string{"kafka-admin", "all", "all-kafka"} + return &MyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } + } + + func (b *MyToolBuilder) BuildTools(ctx context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + // Build and return tools + } + ``` + +2. **Add Feature Constant** in `pkg/mcp/features.go` if needed + +3. **Create Registration File** `pkg/mcp/my_tools.go`: + ```go + func AddMyTools(s *server.MCPServer, readOnly bool, features []string) { + builder := kafkabuilders.NewMyToolBuilder() + config := builders.ToolBuildConfig{ReadOnly: readOnly, Features: features} + tools, _ := builder.BuildTools(context.Background(), config) + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } + } + ``` + +4. **Get Session in Handler**: + ```go + session := mcpCtx.GetKafkaSession(ctx) // or GetPulsarSession + if session == nil { + return mcp.NewToolResultError("session not found"), nil + } + admin, err := session.GetAdminClient() + ``` + +## Session Context Access + +Handlers receive sessions via context (see `pkg/mcp/internal/context/ctx.go`): +- `mcpCtx.GetKafkaSession(ctx)` → `*kafka.Session` +- `mcpCtx.GetPulsarSession(ctx)` → `*pulsar.Session` +- `mcpCtx.GetSNCloudSession(ctx)` → `*config.Session` + +From sessions: +- `session.GetAdminClient()` / `session.GetAdminV3Client()` for Pulsar admin +- `session.GetPulsarClient()` for Pulsar messaging +- `session.GetAdminClient()` for Kafka admin (via franz-go/kadm) + +## Configuration Modes + +1. **StreamNative Cloud**: `--organization` + `--key-file` +2. **External Kafka**: `--use-external-kafka` + Kafka params +3. **External Pulsar**: `--use-external-pulsar` + Pulsar params + +Pre-configured context: `--pulsar-instance` + `--pulsar-cluster` disables context management tools. + +## Error Handling + +- Wrap errors: `fmt.Errorf("failed to X: %w", err)` +- Return tool errors: `mcp.NewToolResultError("message")` +- Check session nil before operations +- For PFTools, use circuit breaker to handle repeated failures \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 379dc67..4754728 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,17 @@ +# Copyright 2025 StreamNative +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Multi-stage build for multi-platform support FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index 738e44c..c184ce4 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -1,3 +1,17 @@ +# Copyright 2025 StreamNative +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Minimal Alpine image for GoReleaser builds FROM alpine:3.21 diff --git a/cmd/streamnative-mcp-server/main.go b/cmd/streamnative-mcp-server/main.go index 7a7c5a4..42253af 100644 --- a/cmd/streamnative-mcp-server/main.go +++ b/cmd/streamnative-mcp-server/main.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package main diff --git a/go.work.sum b/go.work.sum index dc904a4..84e6fa8 100644 --- a/go.work.sum +++ b/go.work.sum @@ -61,6 +61,8 @@ github.com/cpuguy83/go-md2man v1.0.10 h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/docker/distribution v2.7.1-0.20190205005809-0d3efadf0154+incompatible h1:dvc1KSkIYTVjZgHf/CTC2diTYC8PzhaA5sFISRfNVrE= +github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= +github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= github.com/envoyproxy/go-control-plane v0.9.4 h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E= github.com/envoyproxy/go-control-plane v0.13.1 h1:vPfJZCkob6yTMEgS+0TwfTUfbHjfy/6vOJ8hUWX/uXE= github.com/envoyproxy/go-control-plane v0.13.1/go.mod h1:X45hY0mufo6Fd0KW3rqsGvQMw58jvjymeCzBU3mWyHw= @@ -82,6 +84,8 @@ github.com/go-redis/redis v6.15.6+incompatible h1:H9evprGPLI8+ci7fxQx6WNZHJSb7be github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= +github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk= +github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= @@ -142,6 +146,8 @@ github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+ github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= github.com/mark3labs/mcp-go v0.23.1 h1:RzTzZ5kJ+HxwnutKA4rll8N/pKV6Wh5dhCmiJUu5S9I= github.com/mark3labs/mcp-go v0.23.1/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= +github.com/mark3labs/mcp-go v0.34.0 h1:eWy7WBGvhk6EyAAyVzivTCprE52iXJwNtvHV6Cv3bR0= +github.com/mark3labs/mcp-go v0.34.0/go.mod h1:rXqOudj/djTORU/ThxYx8fqEVj/5pvTuuebQ2RC7uk4= github.com/mattn/go-runewidth v0.0.4 h1:2BvfKmzob6Bmd4YsL0zygOqfdFnK7GR4QL06Do4/p7Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= @@ -194,11 +200,17 @@ go.opentelemetry.io/otel/sdk/metric v1.29.0 h1:K2CfmJohnRgvZ9UAj2/FhIf/okdWcNdBw go.opentelemetry.io/otel/sdk/metric v1.29.0/go.mod h1:6zZLdCl2fkauYoZIOn/soQIDSWFmNSRcICarHfuhNJQ= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= +golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y= golang.org/x/image v0.0.0-20190802002840-cff245a6509b h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4= golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs= golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= +golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM= +golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= @@ -210,7 +222,13 @@ golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/cr4/aHLv9xU8Kkadrw= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= +golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= +golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= +golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 53f75c6..0938d5a 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package auth diff --git a/pkg/auth/authorization_tokenretriever.go b/pkg/auth/authorization_tokenretriever.go index bef3cd0..99c2353 100644 --- a/pkg/auth/authorization_tokenretriever.go +++ b/pkg/auth/authorization_tokenretriever.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package auth diff --git a/pkg/auth/cache/cache.go b/pkg/auth/cache/cache.go index 758a291..70bc133 100644 --- a/pkg/auth/cache/cache.go +++ b/pkg/auth/cache/cache.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package cache diff --git a/pkg/auth/client_credentials_flow.go b/pkg/auth/client_credentials_flow.go index a93adea..7de8bd4 100644 --- a/pkg/auth/client_credentials_flow.go +++ b/pkg/auth/client_credentials_flow.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package auth diff --git a/pkg/auth/client_credentials_provider.go b/pkg/auth/client_credentials_provider.go index 24c6a30..2ab652d 100644 --- a/pkg/auth/client_credentials_provider.go +++ b/pkg/auth/client_credentials_provider.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package auth diff --git a/pkg/auth/config_tokenprovider.go b/pkg/auth/config_tokenprovider.go index d231105..5276a7c 100644 --- a/pkg/auth/config_tokenprovider.go +++ b/pkg/auth/config_tokenprovider.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package auth diff --git a/pkg/auth/data_url.go b/pkg/auth/data_url.go index 0216c9d..473d63d 100644 --- a/pkg/auth/data_url.go +++ b/pkg/auth/data_url.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package auth diff --git a/pkg/auth/oidc_endpoint_provider.go b/pkg/auth/oidc_endpoint_provider.go index 472c055..69c9ef1 100644 --- a/pkg/auth/oidc_endpoint_provider.go +++ b/pkg/auth/oidc_endpoint_provider.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package auth diff --git a/pkg/auth/store/keyring.go b/pkg/auth/store/keyring.go index 40cfb0c..ae09e2d 100644 --- a/pkg/auth/store/keyring.go +++ b/pkg/auth/store/keyring.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package store diff --git a/pkg/auth/store/store.go b/pkg/auth/store/store.go index 517e551..b225db5 100644 --- a/pkg/auth/store/store.go +++ b/pkg/auth/store/store.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package store diff --git a/pkg/cmd/mcp/mcp.go b/pkg/cmd/mcp/mcp.go index b784c39..0080f7c 100644 --- a/pkg/cmd/mcp/mcp.go +++ b/pkg/cmd/mcp/mcp.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp @@ -29,12 +26,15 @@ import ( // ServerOptions is the options for the MCP server commands type ServerOptions struct { - ReadOnly bool - LogFile string - LogCommands bool - Features []string - HTTPAddr string - HTTPPath string + ReadOnly bool + LogFile string + LogCommands bool + Features []string + HTTPAddr string + HTTPPath string + MultiSessionPulsar bool // Enable per-user Pulsar sessions based on Authorization header + SessionCacheSize int // Maximum number of cached Pulsar sessions + SessionTTLMinutes int // Session TTL in minutes before eviction *config.Options } @@ -114,6 +114,9 @@ func (o *ServerOptions) AddFlags(cmd *cobra.Command) { cmd.PersistentFlags().StringSliceVar(&o.Features, "features", []string{}, "Features to enable, defaults to `all`") cmd.PersistentFlags().StringVar(&o.HTTPAddr, "http-addr", "", "HTTP address") cmd.PersistentFlags().StringVar(&o.HTTPPath, "http-path", "", "HTTP path") + cmd.PersistentFlags().BoolVar(&o.MultiSessionPulsar, "multi-session-pulsar", false, "Enable per-user Pulsar sessions based on Authorization header tokens (only for external Pulsar mode)") + cmd.PersistentFlags().IntVar(&o.SessionCacheSize, "session-cache-size", 100, "Maximum number of cached Pulsar sessions when multi-session is enabled") + cmd.PersistentFlags().IntVar(&o.SessionTTLMinutes, "session-ttl-minutes", 30, "Session TTL in minutes before eviction when multi-session is enabled") } func (o *ServerOptions) newClientCredentialsFlow( diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index b2d2593..318bc4f 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go index 7ee4ec1..3f3fbe7 100644 --- a/pkg/cmd/mcp/sse.go +++ b/pkg/cmd/mcp/sse.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp @@ -34,6 +31,8 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/mcp" context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/session" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) func NewCmdMcpSseServer(configOpts *ServerOptions) *cobra.Command { @@ -93,14 +92,52 @@ func runSseServer(configOpts *ServerOptions) error { // SSE is not support session-based tools, so we pass an fixed sessionId mcpServer.PulsarFunctionManagedMcpTools(configOpts.ReadOnly, configOpts.Features, "FIXED_SESSION_ID") + // Create Pulsar session manager for multi-session support (only for external Pulsar mode) + var pulsarSessionManager *session.PulsarSessionManager + snConfig := configOpts.Options.LoadConfigOrDie() + if snConfig.ExternalPulsar != nil && configOpts.MultiSessionPulsar { + managerConfig := &session.PulsarSessionManagerConfig{ + MaxSessions: configOpts.SessionCacheSize, + SessionTTL: time.Duration(configOpts.SessionTTLMinutes) * time.Minute, + CleanupInterval: 5 * time.Minute, + BaseContext: pulsar.PulsarContext{ + ServiceURL: snConfig.ExternalPulsar.ServiceURL, + WebServiceURL: snConfig.ExternalPulsar.WebServiceURL, + TLSAllowInsecureConnection: snConfig.ExternalPulsar.TLSAllowInsecureConnection, + TLSEnableHostnameVerification: snConfig.ExternalPulsar.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: snConfig.ExternalPulsar.TLSTrustCertsFilePath, + TLSCertFile: snConfig.ExternalPulsar.TLSCertFile, + TLSKeyFile: snConfig.ExternalPulsar.TLSKeyFile, + }, + } + pulsarSessionManager = session.NewPulsarSessionManager(managerConfig, mcpServer.PulsarSession, logger) + logger.Info("Multi-session Pulsar mode enabled") + } + sseServer := server.NewSSEServer( mcpServer.MCPServer, server.WithStaticBasePath(configOpts.HTTPPath), - server.WithSSEContextFunc(func(ctx context.Context, _ *http.Request) context.Context { + server.WithSSEContextFunc(func(ctx context.Context, r *http.Request) context.Context { c := context.WithValue(ctx, common.OptionsKey, configOpts.Options) c = context2.WithKafkaSession(c, mcpServer.KafkaSession) - c = context2.WithPulsarSession(c, mcpServer.PulsarSession) c = context2.WithSNCloudSession(c, mcpServer.SNCloudSession) + + // Handle per-user Pulsar sessions + if pulsarSessionManager != nil { + token := session.ExtractBearerToken(r) + if pulsarSession, err := pulsarSessionManager.GetOrCreateSession(ctx, token); err == nil { + c = context2.WithPulsarSession(c, pulsarSession) + if token != "" { + c = session.WithUserTokenHash(c, pulsarSessionManager.HashTokenForLog(token)) + } + } else { + logger.WithError(err).Warn("Failed to get per-user Pulsar session, using global") + c = context2.WithPulsarSession(c, mcpServer.PulsarSession) + } + } else { + c = context2.WithPulsarSession(c, mcpServer.PulsarSession) + } + return c }), ) @@ -135,6 +172,11 @@ func runSseServer(configOpts *ServerOptions) error { shCtx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() + // Stop Pulsar session manager first + if pulsarSessionManager != nil { + pulsarSessionManager.Stop() + } + // First try to shut down the SSE server if err := sseServer.Shutdown(shCtx); err != nil { if !errors.Is(err, http.ErrServerClosed) { diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index 95c6c6f..b06ecb6 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/common/utils.go b/pkg/common/utils.go index 2049fbf..3d9d080 100644 --- a/pkg/common/utils.go +++ b/pkg/common/utils.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package common diff --git a/pkg/config/apiclient.go b/pkg/config/apiclient.go index 5493cb6..7f122d2 100644 --- a/pkg/config/apiclient.go +++ b/pkg/config/apiclient.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package config diff --git a/pkg/config/apiclient_test.go b/pkg/config/apiclient_test.go index 3b91833..3d817a5 100644 --- a/pkg/config/apiclient_test.go +++ b/pkg/config/apiclient_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package config diff --git a/pkg/config/auth.go b/pkg/config/auth.go index 5704720..e605a50 100644 --- a/pkg/config/auth.go +++ b/pkg/config/auth.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package config diff --git a/pkg/config/config.go b/pkg/config/config.go index 9a3c720..2084e0f 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package config diff --git a/pkg/config/external_kafka.go b/pkg/config/external_kafka.go index b01b994..19d73ec 100644 --- a/pkg/config/external_kafka.go +++ b/pkg/config/external_kafka.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package config diff --git a/pkg/config/external_pulsar.go b/pkg/config/external_pulsar.go index 46c5eb5..19487dd 100644 --- a/pkg/config/external_pulsar.go +++ b/pkg/config/external_pulsar.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package config diff --git a/pkg/config/options.go b/pkg/config/options.go index ae96d1b..bd5cbcc 100644 --- a/pkg/config/options.go +++ b/pkg/config/options.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package config diff --git a/pkg/kafka/connection.go b/pkg/kafka/connection.go index bcf967f..6db0d48 100644 --- a/pkg/kafka/connection.go +++ b/pkg/kafka/connection.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/kafka/kafkaconnect.go b/pkg/kafka/kafkaconnect.go index 21455d3..8819aa2 100644 --- a/pkg/kafka/kafkaconnect.go +++ b/pkg/kafka/kafkaconnect.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/log/io.go b/pkg/log/io.go index e0a10c5..4c831fe 100644 --- a/pkg/log/io.go +++ b/pkg/log/io.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package log diff --git a/pkg/mcp/auth_utils.go b/pkg/mcp/auth_utils.go index 56c6912..a5204f1 100644 --- a/pkg/mcp/auth_utils.go +++ b/pkg/mcp/auth_utils.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/builders/base.go b/pkg/mcp/builders/base.go index 072cfd2..bab722a 100644 --- a/pkg/mcp/builders/base.go +++ b/pkg/mcp/builders/base.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package builders diff --git a/pkg/mcp/builders/base_test.go b/pkg/mcp/builders/base_test.go index 4770921..b67a8aa 100644 --- a/pkg/mcp/builders/base_test.go +++ b/pkg/mcp/builders/base_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package builders diff --git a/pkg/mcp/builders/config.go b/pkg/mcp/builders/config.go index 8d48aad..78035a3 100644 --- a/pkg/mcp/builders/config.go +++ b/pkg/mcp/builders/config.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package builders diff --git a/pkg/mcp/builders/config_test.go b/pkg/mcp/builders/config_test.go index bd8824a..41fb279 100644 --- a/pkg/mcp/builders/config_test.go +++ b/pkg/mcp/builders/config_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package builders diff --git a/pkg/mcp/builders/kafka/connect.go b/pkg/mcp/builders/kafka/connect.go index 14b28f6..43d1218 100644 --- a/pkg/mcp/builders/kafka/connect.go +++ b/pkg/mcp/builders/kafka/connect.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/connect_test.go b/pkg/mcp/builders/kafka/connect_test.go index c1ea308..4c8252c 100644 --- a/pkg/mcp/builders/kafka/connect_test.go +++ b/pkg/mcp/builders/kafka/connect_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/consume.go b/pkg/mcp/builders/kafka/consume.go index acbb741..9b8fae2 100644 --- a/pkg/mcp/builders/kafka/consume.go +++ b/pkg/mcp/builders/kafka/consume.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/consume_test.go b/pkg/mcp/builders/kafka/consume_test.go index dd3c66e..f6e4a3e 100644 --- a/pkg/mcp/builders/kafka/consume_test.go +++ b/pkg/mcp/builders/kafka/consume_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/groups.go b/pkg/mcp/builders/kafka/groups.go index bdb60ec..ba4c80c 100644 --- a/pkg/mcp/builders/kafka/groups.go +++ b/pkg/mcp/builders/kafka/groups.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/partitions.go b/pkg/mcp/builders/kafka/partitions.go index 05316b1..c189e17 100644 --- a/pkg/mcp/builders/kafka/partitions.go +++ b/pkg/mcp/builders/kafka/partitions.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/produce.go b/pkg/mcp/builders/kafka/produce.go index 1eb3088..0c7596c 100644 --- a/pkg/mcp/builders/kafka/produce.go +++ b/pkg/mcp/builders/kafka/produce.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/produce_test.go b/pkg/mcp/builders/kafka/produce_test.go index 777a16f..6a88f5f 100644 --- a/pkg/mcp/builders/kafka/produce_test.go +++ b/pkg/mcp/builders/kafka/produce_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/schema_registry.go b/pkg/mcp/builders/kafka/schema_registry.go index bb4056f..a4a0eae 100644 --- a/pkg/mcp/builders/kafka/schema_registry.go +++ b/pkg/mcp/builders/kafka/schema_registry.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/kafka/topics.go b/pkg/mcp/builders/kafka/topics.go index 7fbcbeb..3960d54 100644 --- a/pkg/mcp/builders/kafka/topics.go +++ b/pkg/mcp/builders/kafka/topics.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package kafka diff --git a/pkg/mcp/builders/pulsar/brokers.go b/pkg/mcp/builders/pulsar/brokers.go index 0ab60a5..233b1fb 100644 --- a/pkg/mcp/builders/pulsar/brokers.go +++ b/pkg/mcp/builders/pulsar/brokers.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/brokers_stats.go b/pkg/mcp/builders/pulsar/brokers_stats.go index 8ee1b9e..b0da1df 100644 --- a/pkg/mcp/builders/pulsar/brokers_stats.go +++ b/pkg/mcp/builders/pulsar/brokers_stats.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/cluster.go b/pkg/mcp/builders/pulsar/cluster.go index cf53a92..02ce2e6 100644 --- a/pkg/mcp/builders/pulsar/cluster.go +++ b/pkg/mcp/builders/pulsar/cluster.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/consume.go b/pkg/mcp/builders/pulsar/consume.go index 5cff2d2..52d7763 100644 --- a/pkg/mcp/builders/pulsar/consume.go +++ b/pkg/mcp/builders/pulsar/consume.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/functions.go b/pkg/mcp/builders/pulsar/functions.go index 11fb0a1..6bf8789 100644 --- a/pkg/mcp/builders/pulsar/functions.go +++ b/pkg/mcp/builders/pulsar/functions.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/functions_test.go b/pkg/mcp/builders/pulsar/functions_test.go index df7f903..51e29ec 100644 --- a/pkg/mcp/builders/pulsar/functions_test.go +++ b/pkg/mcp/builders/pulsar/functions_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/functions_worker.go b/pkg/mcp/builders/pulsar/functions_worker.go index 3259375..d244585 100644 --- a/pkg/mcp/builders/pulsar/functions_worker.go +++ b/pkg/mcp/builders/pulsar/functions_worker.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/namespace.go b/pkg/mcp/builders/pulsar/namespace.go index 1cb0f25..ebef3f4 100644 --- a/pkg/mcp/builders/pulsar/namespace.go +++ b/pkg/mcp/builders/pulsar/namespace.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/namespace_policy.go b/pkg/mcp/builders/pulsar/namespace_policy.go index f60b327..3410dff 100644 --- a/pkg/mcp/builders/pulsar/namespace_policy.go +++ b/pkg/mcp/builders/pulsar/namespace_policy.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/nsisolationpolicy.go b/pkg/mcp/builders/pulsar/nsisolationpolicy.go index b983a04..74dd9aa 100644 --- a/pkg/mcp/builders/pulsar/nsisolationpolicy.go +++ b/pkg/mcp/builders/pulsar/nsisolationpolicy.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/packages.go b/pkg/mcp/builders/pulsar/packages.go index f025551..7d4d0f0 100644 --- a/pkg/mcp/builders/pulsar/packages.go +++ b/pkg/mcp/builders/pulsar/packages.go @@ -1,19 +1,16 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/produce.go b/pkg/mcp/builders/pulsar/produce.go index e4f45ae..402b24c 100644 --- a/pkg/mcp/builders/pulsar/produce.go +++ b/pkg/mcp/builders/pulsar/produce.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/resourcequotas.go b/pkg/mcp/builders/pulsar/resourcequotas.go index 6bc4bae..7b53dec 100644 --- a/pkg/mcp/builders/pulsar/resourcequotas.go +++ b/pkg/mcp/builders/pulsar/resourcequotas.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/schema.go b/pkg/mcp/builders/pulsar/schema.go index b63d70f..8bf4de3 100644 --- a/pkg/mcp/builders/pulsar/schema.go +++ b/pkg/mcp/builders/pulsar/schema.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/sinks.go b/pkg/mcp/builders/pulsar/sinks.go index 93616fd..a120d11 100644 --- a/pkg/mcp/builders/pulsar/sinks.go +++ b/pkg/mcp/builders/pulsar/sinks.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/sources.go b/pkg/mcp/builders/pulsar/sources.go index 8bc8879..ca9d148 100644 --- a/pkg/mcp/builders/pulsar/sources.go +++ b/pkg/mcp/builders/pulsar/sources.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/subscription.go b/pkg/mcp/builders/pulsar/subscription.go index 7105510..f1a1882 100644 --- a/pkg/mcp/builders/pulsar/subscription.go +++ b/pkg/mcp/builders/pulsar/subscription.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/tenant.go b/pkg/mcp/builders/pulsar/tenant.go index ec30bf9..8a0d457 100644 --- a/pkg/mcp/builders/pulsar/tenant.go +++ b/pkg/mcp/builders/pulsar/tenant.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/topic.go b/pkg/mcp/builders/pulsar/topic.go index ef6691f..90430e1 100644 --- a/pkg/mcp/builders/pulsar/topic.go +++ b/pkg/mcp/builders/pulsar/topic.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/pulsar/topic_policy.go b/pkg/mcp/builders/pulsar/topic_policy.go index db70f33..065caa6 100644 --- a/pkg/mcp/builders/pulsar/topic_policy.go +++ b/pkg/mcp/builders/pulsar/topic_policy.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/mcp/builders/registry.go b/pkg/mcp/builders/registry.go index c928308..03c3726 100644 --- a/pkg/mcp/builders/registry.go +++ b/pkg/mcp/builders/registry.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package builders diff --git a/pkg/mcp/builders/registry_test.go b/pkg/mcp/builders/registry_test.go index 815c5ee..a4de66b 100644 --- a/pkg/mcp/builders/registry_test.go +++ b/pkg/mcp/builders/registry_test.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package builders diff --git a/pkg/mcp/ctx.go b/pkg/mcp/ctx.go index 6589694..434e2ce 100644 --- a/pkg/mcp/ctx.go +++ b/pkg/mcp/ctx.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package mcp import ( diff --git a/pkg/mcp/features.go b/pkg/mcp/features.go index 1a7ab8c..cfb0686 100644 --- a/pkg/mcp/features.go +++ b/pkg/mcp/features.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/instructions.go b/pkg/mcp/instructions.go index c6195d4..8c670d1 100644 --- a/pkg/mcp/instructions.go +++ b/pkg/mcp/instructions.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/internal/context/ctx.go b/pkg/mcp/internal/context/ctx.go index 8f25e36..27d6cc2 100644 --- a/pkg/mcp/internal/context/ctx.go +++ b/pkg/mcp/internal/context/ctx.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package context diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go index 7ca9d84..e85fa10 100644 --- a/pkg/mcp/kafka_admin_connect_tools.go +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index 145bafc..007622a 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/kafka_admin_partitions_tools.go b/pkg/mcp/kafka_admin_partitions_tools.go index c8377ec..3010e81 100644 --- a/pkg/mcp/kafka_admin_partitions_tools.go +++ b/pkg/mcp/kafka_admin_partitions_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index 72618f4..d6590cf 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go index ed1822c..9075245 100644 --- a/pkg/mcp/kafka_admin_topics_tools.go +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go index fd2f9da..d94def2 100644 --- a/pkg/mcp/kafka_client_consume_tools.go +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index 1a6d688..e75da6a 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pftools/circuit_breaker.go b/pkg/mcp/pftools/circuit_breaker.go index c2542ff..a2f0e38 100644 --- a/pkg/mcp/pftools/circuit_breaker.go +++ b/pkg/mcp/pftools/circuit_breaker.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pftools diff --git a/pkg/mcp/pftools/errors.go b/pkg/mcp/pftools/errors.go index ff93ce5..9c56805 100644 --- a/pkg/mcp/pftools/errors.go +++ b/pkg/mcp/pftools/errors.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pftools import ( diff --git a/pkg/mcp/pftools/invocation.go b/pkg/mcp/pftools/invocation.go index 951bf32..24c3c37 100644 --- a/pkg/mcp/pftools/invocation.go +++ b/pkg/mcp/pftools/invocation.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pftools diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index 2317347..0fef260 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pftools diff --git a/pkg/mcp/pftools/schema.go b/pkg/mcp/pftools/schema.go index f013450..6fe20f2 100644 --- a/pkg/mcp/pftools/schema.go +++ b/pkg/mcp/pftools/schema.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pftools diff --git a/pkg/mcp/pftools/types.go b/pkg/mcp/pftools/types.go index cb5080f..93c5b4f 100644 --- a/pkg/mcp/pftools/types.go +++ b/pkg/mcp/pftools/types.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pftools diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go index 1dca62b..edec048 100644 --- a/pkg/mcp/prompts.go +++ b/pkg/mcp/prompts.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go index be44829..d50b398 100644 --- a/pkg/mcp/pulsar_admin_brokers_stats_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go index d61b712..6ce43ed 100644 --- a/pkg/mcp/pulsar_admin_brokers_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index b7a9ba2..51f1f38 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index 6a59754..2b9203e 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go index bdb8141..1a4a428 100644 --- a/pkg/mcp/pulsar_admin_functions_worker_tools.go +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index a52b39d..c74cfe0 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index 29f969d..a31b0e3 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index 3a79227..f742f6c 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index df94072..bfa929d 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -1,19 +1,16 @@ -// Licensed to Elasticsearch B.V. under one or more contributor -// license agreements. See the NOTICE file distributed with -// this work for additional information regarding copyright -// ownership. Elasticsearch B.V. licenses this file to you under -// the Apache License, Version 2.0 (the "License"); you may -// not use this file except in compliance with the License. +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go index 25b5d51..6382d0c 100644 --- a/pkg/mcp/pulsar_admin_resourcequotas_tools.go +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go index 39460fb..fd8ea01 100644 --- a/pkg/mcp/pulsar_admin_schemas_tools.go +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index 56f7f04..cc4abac 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index e4af45a..8abc646 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go index 76444c0..2a7d03e 100644 --- a/pkg/mcp/pulsar_admin_subscription_tools.go +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index a73662f..480ca24 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index 32f24e6..7eb1b1c 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index c6b41dc..c02fc64 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go index bc2eca4..7e68f33 100644 --- a/pkg/mcp/pulsar_client_consume_tools.go +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index d80d7d6..15a5a84 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go index 95f1c13..4442fe7 100644 --- a/pkg/mcp/pulsar_functions_as_tools.go +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/server.go b/pkg/mcp/server.go index 079d5f4..21674ca 100644 --- a/pkg/mcp/server.go +++ b/pkg/mcp/server.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/session/context.go b/pkg/mcp/session/context.go new file mode 100644 index 0000000..5cf895f --- /dev/null +++ b/pkg/mcp/session/context.go @@ -0,0 +1,58 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package session + +import ( + "context" +) + +type contextKey string + +const ( + // PulsarSessionManagerKey is used to store the session manager in context + PulsarSessionManagerKey contextKey = "pulsar_session_manager" + // UserTokenHashKey stores the user's JWT token hash for debugging + UserTokenHashKey contextKey = "user_token_hash" +) + +// WithPulsarSessionManager adds the session manager to the context +func WithPulsarSessionManager(ctx context.Context, manager *PulsarSessionManager) context.Context { + return context.WithValue(ctx, PulsarSessionManagerKey, manager) +} + +// GetPulsarSessionManager retrieves the session manager from context +func GetPulsarSessionManager(ctx context.Context) *PulsarSessionManager { + if val := ctx.Value(PulsarSessionManagerKey); val != nil { + if manager, ok := val.(*PulsarSessionManager); ok { + return manager + } + } + return nil +} + +// WithUserTokenHash adds the hashed user token to context +func WithUserTokenHash(ctx context.Context, hash string) context.Context { + return context.WithValue(ctx, UserTokenHashKey, hash) +} + +// GetUserTokenHash retrieves the hashed user token from context +func GetUserTokenHash(ctx context.Context) string { + if val := ctx.Value(UserTokenHashKey); val != nil { + if hash, ok := val.(string); ok { + return hash + } + } + return "" +} diff --git a/pkg/mcp/session/pulsar_session_manager.go b/pkg/mcp/session/pulsar_session_manager.go new file mode 100644 index 0000000..e5e99e0 --- /dev/null +++ b/pkg/mcp/session/pulsar_session_manager.go @@ -0,0 +1,264 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package session + +import ( + "container/list" + "context" + "crypto/sha256" + "encoding/hex" + "fmt" + "net/http" + "strings" + "sync" + "time" + + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// PulsarSessionManagerConfig holds configuration for the session manager +type PulsarSessionManagerConfig struct { + // MaxSessions is the maximum number of sessions to keep in the cache + MaxSessions int + // SessionTTL is how long a session can remain idle before eviction + SessionTTL time.Duration + // CleanupInterval is how often to run the cleanup goroutine + CleanupInterval time.Duration + // BaseContext provides default Pulsar connection parameters (without token) + BaseContext pulsar.PulsarContext +} + +// DefaultPulsarSessionManagerConfig returns sensible defaults +func DefaultPulsarSessionManagerConfig() *PulsarSessionManagerConfig { + return &PulsarSessionManagerConfig{ + MaxSessions: 100, + SessionTTL: 30 * time.Minute, + CleanupInterval: 5 * time.Minute, + } +} + +// CachedSession wraps a Pulsar session with metadata +type CachedSession struct { + Session *pulsar.Session + TokenHash string + LastAccess time.Time + CreatedAt time.Time + element *list.Element // for LRU tracking +} + +// PulsarSessionManager manages per-user Pulsar sessions with LRU eviction +type PulsarSessionManager struct { + config *PulsarSessionManagerConfig + sessions map[string]*CachedSession // tokenHash -> session + lruList *list.List // LRU ordering + mutex sync.RWMutex + stopCh chan struct{} + logger *logrus.Logger + globalSession *pulsar.Session // fallback session when no token provided +} + +// NewPulsarSessionManager creates a new session manager +func NewPulsarSessionManager( + config *PulsarSessionManagerConfig, + globalSession *pulsar.Session, + logger *logrus.Logger, +) *PulsarSessionManager { + if config == nil { + config = DefaultPulsarSessionManagerConfig() + } + + m := &PulsarSessionManager{ + config: config, + sessions: make(map[string]*CachedSession), + lruList: list.New(), + stopCh: make(chan struct{}), + logger: logger, + globalSession: globalSession, + } + + // Start background cleanup + go m.cleanupLoop() + + return m +} + +// GetOrCreateSession retrieves or creates a Pulsar session for the given token +func (m *PulsarSessionManager) GetOrCreateSession(_ context.Context, token string) (*pulsar.Session, error) { + if token == "" { + // Return global session when no token provided + return m.globalSession, nil + } + + tokenHash := m.hashToken(token) + + // Use write lock for all operations to avoid stale entry issues during lock upgrade + m.mutex.Lock() + defer m.mutex.Unlock() + + // Check if session exists + if cached, exists := m.sessions[tokenHash]; exists { + cached.LastAccess = time.Now() + m.lruList.MoveToFront(cached.element) + return cached.Session, nil + } + + // Evict if at capacity + if len(m.sessions) >= m.config.MaxSessions { + m.evictOldest() + } + + // Create new Pulsar session with token + pulsarCtx := m.config.BaseContext + pulsarCtx.Token = token + // Clear AuthPlugin/AuthParams to use token-based auth + pulsarCtx.AuthPlugin = "" + pulsarCtx.AuthParams = "" + + session, err := pulsar.NewSession(pulsarCtx) + if err != nil { + m.logger.WithError(err).WithField("tokenHash", tokenHash[:8]).Error("Failed to create Pulsar session for token") + return nil, fmt.Errorf("failed to create Pulsar session: %w", err) + } + + // Cache the session + now := time.Now() + cachedSession := &CachedSession{ + Session: session, + TokenHash: tokenHash, + LastAccess: now, + CreatedAt: now, + } + cachedSession.element = m.lruList.PushFront(cachedSession) + m.sessions[tokenHash] = cachedSession + + m.logger.WithField("tokenHash", tokenHash[:8]).Info("Created new Pulsar session") + + return session, nil +} + +// hashToken creates a SHA256 hash of the token for safe storage/comparison +func (m *PulsarSessionManager) hashToken(token string) string { + hash := sha256.Sum256([]byte(token)) + return hex.EncodeToString(hash[:]) +} + +// HashTokenForLog returns a short hash prefix for logging +func (m *PulsarSessionManager) HashTokenForLog(token string) string { + return m.hashToken(token)[:8] +} + +// evictOldest removes the least recently used session (caller must hold write lock) +func (m *PulsarSessionManager) evictOldest() { + oldest := m.lruList.Back() + if oldest == nil { + return + } + + cached := oldest.Value.(*CachedSession) + m.lruList.Remove(oldest) + delete(m.sessions, cached.TokenHash) + + // Close the session's clients + m.closeSession(cached.Session) + + m.logger.WithField("tokenHash", cached.TokenHash[:8]).Info("Evicted oldest Pulsar session") +} + +// closeSession safely closes a Pulsar session's clients +func (m *PulsarSessionManager) closeSession(session *pulsar.Session) { + if session == nil { + return + } + if session.Client != nil { + session.Client.Close() + } +} + +// cleanupLoop periodically removes expired sessions +func (m *PulsarSessionManager) cleanupLoop() { + ticker := time.NewTicker(m.config.CleanupInterval) + defer ticker.Stop() + + for { + select { + case <-ticker.C: + m.cleanupExpired() + case <-m.stopCh: + return + } + } +} + +// cleanupExpired removes sessions that have exceeded TTL +func (m *PulsarSessionManager) cleanupExpired() { + m.mutex.Lock() + defer m.mutex.Unlock() + + now := time.Now() + var toRemove []*CachedSession + + for _, cached := range m.sessions { + if now.Sub(cached.LastAccess) > m.config.SessionTTL { + toRemove = append(toRemove, cached) + } + } + + for _, cached := range toRemove { + m.lruList.Remove(cached.element) + delete(m.sessions, cached.TokenHash) + m.closeSession(cached.Session) + m.logger.WithField("tokenHash", cached.TokenHash[:8]).Info("Cleaned up expired Pulsar session") + } +} + +// Stop stops the session manager and cleans up all sessions +func (m *PulsarSessionManager) Stop() { + close(m.stopCh) + + m.mutex.Lock() + defer m.mutex.Unlock() + + for _, cached := range m.sessions { + m.closeSession(cached.Session) + } + m.sessions = make(map[string]*CachedSession) + m.lruList.Init() + + m.logger.Info("Pulsar session manager stopped") +} + +// SessionCount returns the current number of cached sessions +func (m *PulsarSessionManager) SessionCount() int { + m.mutex.RLock() + defer m.mutex.RUnlock() + return len(m.sessions) +} + +// ExtractBearerToken extracts JWT token from Authorization header +func ExtractBearerToken(r *http.Request) string { + authHeader := r.Header.Get("Authorization") + if authHeader == "" { + return "" + } + + // Expected format: "Bearer " + const bearerPrefix = "Bearer " + if !strings.HasPrefix(authHeader, bearerPrefix) { + return "" + } + + return strings.TrimPrefix(authHeader, bearerPrefix) +} diff --git a/pkg/mcp/session/pulsar_session_manager_test.go b/pkg/mcp/session/pulsar_session_manager_test.go new file mode 100644 index 0000000..ca42985 --- /dev/null +++ b/pkg/mcp/session/pulsar_session_manager_test.go @@ -0,0 +1,213 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package session + +import ( + "context" + "net/http" + "net/http/httptest" + "testing" + + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +func TestExtractBearerToken(t *testing.T) { + tests := []struct { + name string + authHeader string + expectedToken string + }{ + { + name: "valid bearer token", + authHeader: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.test", + expectedToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.test", + }, + { + name: "empty header", + authHeader: "", + expectedToken: "", + }, + { + name: "no bearer prefix", + authHeader: "Basic dXNlcjpwYXNz", + expectedToken: "", + }, + { + name: "bearer lowercase", + authHeader: "bearer token123", + expectedToken: "", + }, + { + name: "only bearer prefix", + authHeader: "Bearer ", + expectedToken: "", + }, + { + name: "token with spaces", + authHeader: "Bearer token with spaces", + expectedToken: "token with spaces", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + req := httptest.NewRequest(http.MethodGet, "/", nil) + if tt.authHeader != "" { + req.Header.Set("Authorization", tt.authHeader) + } + + token := ExtractBearerToken(req) + if token != tt.expectedToken { + t.Errorf("ExtractBearerToken() = %q, want %q", token, tt.expectedToken) + } + }) + } +} + +func TestPulsarSessionManager_HashToken(t *testing.T) { + logger := logrus.New() + logger.SetLevel(logrus.ErrorLevel) + + manager := NewPulsarSessionManager(nil, nil, logger) + defer manager.Stop() + + // Same token should produce same hash + token := "test-token-123" + hash1 := manager.hashToken(token) + hash2 := manager.hashToken(token) + + if hash1 != hash2 { + t.Errorf("Same token produced different hashes: %s vs %s", hash1, hash2) + } + + // Different tokens should produce different hashes + hash3 := manager.hashToken("different-token") + if hash1 == hash3 { + t.Errorf("Different tokens produced same hash") + } + + // Hash should be 64 characters (SHA256 hex) + if len(hash1) != 64 { + t.Errorf("Hash length = %d, want 64", len(hash1)) + } +} + +func TestPulsarSessionManager_HashTokenForLog(t *testing.T) { + logger := logrus.New() + logger.SetLevel(logrus.ErrorLevel) + + manager := NewPulsarSessionManager(nil, nil, logger) + defer manager.Stop() + + token := "test-token-123" + shortHash := manager.HashTokenForLog(token) + + // Short hash should be 8 characters + if len(shortHash) != 8 { + t.Errorf("HashTokenForLog length = %d, want 8", len(shortHash)) + } + + // Should be prefix of full hash + fullHash := manager.hashToken(token) + if shortHash != fullHash[:8] { + t.Errorf("HashTokenForLog = %s, should be prefix of %s", shortHash, fullHash) + } +} + +func TestPulsarSessionManager_EmptyTokenReturnsGlobalSession(t *testing.T) { + logger := logrus.New() + logger.SetLevel(logrus.ErrorLevel) + + globalSession := &pulsar.Session{} + manager := NewPulsarSessionManager(nil, globalSession, logger) + defer manager.Stop() + + // Empty token should return global session + session, err := manager.GetOrCreateSession(context.TODO(), "") + if err != nil { + t.Errorf("GetOrCreateSession with empty token returned error: %v", err) + } + if session != globalSession { + t.Errorf("GetOrCreateSession with empty token did not return global session") + } + + // Session count should be 0 (no cached sessions) + if count := manager.SessionCount(); count != 0 { + t.Errorf("SessionCount() = %d, want 0", count) + } +} + +func TestPulsarSessionManager_SessionCount(t *testing.T) { + logger := logrus.New() + logger.SetLevel(logrus.ErrorLevel) + + manager := NewPulsarSessionManager(nil, nil, logger) + defer manager.Stop() + + // Initially empty + if count := manager.SessionCount(); count != 0 { + t.Errorf("Initial SessionCount() = %d, want 0", count) + } +} + +func TestDefaultPulsarSessionManagerConfig(t *testing.T) { + config := DefaultPulsarSessionManagerConfig() + + if config.MaxSessions != 100 { + t.Errorf("MaxSessions = %d, want 100", config.MaxSessions) + } + + if config.SessionTTL.Minutes() != 30 { + t.Errorf("SessionTTL = %v, want 30 minutes", config.SessionTTL) + } + + if config.CleanupInterval.Minutes() != 5 { + t.Errorf("CleanupInterval = %v, want 5 minutes", config.CleanupInterval) + } +} + +func TestContextHelpers(t *testing.T) { + logger := logrus.New() + logger.SetLevel(logrus.ErrorLevel) + + manager := NewPulsarSessionManager(nil, nil, logger) + defer manager.Stop() + + // Test WithPulsarSessionManager and GetPulsarSessionManager + ctx := WithPulsarSessionManager(context.Background(), manager) + retrievedManager := GetPulsarSessionManager(ctx) + if retrievedManager != manager { + t.Error("GetPulsarSessionManager did not return the same manager") + } + + // Test context without manager + emptyCtx := context.Background() + if GetPulsarSessionManager(emptyCtx) != nil { + t.Error("GetPulsarSessionManager on empty context should return nil") + } + + // Test WithUserTokenHash and GetUserTokenHash + ctx = WithUserTokenHash(context.Background(), "abc12345") + hash := GetUserTokenHash(ctx) + if hash != "abc12345" { + t.Errorf("GetUserTokenHash() = %s, want abc12345", hash) + } + + // Test context without hash + if GetUserTokenHash(emptyCtx) != "" { + t.Error("GetUserTokenHash on empty context should return empty string") + } +} diff --git a/pkg/mcp/sncontext_tools.go b/pkg/mcp/sncontext_tools.go index 3199c64..8658cb7 100644 --- a/pkg/mcp/sncontext_tools.go +++ b/pkg/mcp/sncontext_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/sncontext_utils.go b/pkg/mcp/sncontext_utils.go index 135f330..562c0cd 100644 --- a/pkg/mcp/sncontext_utils.go +++ b/pkg/mcp/sncontext_utils.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go index 7ae6f04..e3d2a0f 100644 --- a/pkg/mcp/streamnative_resources_log_tools.go +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package mcp diff --git a/pkg/mcp/streamnative_resources_tools.go b/pkg/mcp/streamnative_resources_tools.go index 99b7009..8798def 100644 --- a/pkg/mcp/streamnative_resources_tools.go +++ b/pkg/mcp/streamnative_resources_tools.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package mcp import ( diff --git a/pkg/pulsar/connection.go b/pkg/pulsar/connection.go index 8e25b36..578dff7 100644 --- a/pkg/pulsar/connection.go +++ b/pkg/pulsar/connection.go @@ -1,19 +1,16 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at +// Copyright 2025 StreamNative // -// http://www.apache.org/licenses/LICENSE-2.0 +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package pulsar diff --git a/pkg/schema/avro.go b/pkg/schema/avro.go index f407639..5ab6530 100644 --- a/pkg/schema/avro.go +++ b/pkg/schema/avro.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/avro_core.go b/pkg/schema/avro_core.go index 8a8dc2c..be84a53 100644 --- a/pkg/schema/avro_core.go +++ b/pkg/schema/avro_core.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/avro_core_test.go b/pkg/schema/avro_core_test.go index eeeb615..37054b3 100644 --- a/pkg/schema/avro_core_test.go +++ b/pkg/schema/avro_core_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/avro_test.go b/pkg/schema/avro_test.go index bb8ce0b..58e181c 100644 --- a/pkg/schema/avro_test.go +++ b/pkg/schema/avro_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/boolean.go b/pkg/schema/boolean.go index 96d74a4..b357cab 100644 --- a/pkg/schema/boolean.go +++ b/pkg/schema/boolean.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/boolean_test.go b/pkg/schema/boolean_test.go index f8b2e48..c01abe1 100644 --- a/pkg/schema/boolean_test.go +++ b/pkg/schema/boolean_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/common.go b/pkg/schema/common.go index 4540fa0..5bf712e 100644 --- a/pkg/schema/common.go +++ b/pkg/schema/common.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/common_test.go b/pkg/schema/common_test.go index 8b923b8..0651046 100644 --- a/pkg/schema/common_test.go +++ b/pkg/schema/common_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/converter.go b/pkg/schema/converter.go index 987dca5..2c3d6b5 100644 --- a/pkg/schema/converter.go +++ b/pkg/schema/converter.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/converter_test.go b/pkg/schema/converter_test.go index 8d657df..f2a1214 100644 --- a/pkg/schema/converter_test.go +++ b/pkg/schema/converter_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/json.go b/pkg/schema/json.go index 4638bce..17bdd8c 100644 --- a/pkg/schema/json.go +++ b/pkg/schema/json.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/json_test.go b/pkg/schema/json_test.go index ab13a2e..5768b78 100644 --- a/pkg/schema/json_test.go +++ b/pkg/schema/json_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/number.go b/pkg/schema/number.go index bbf89dd..622e474 100644 --- a/pkg/schema/number.go +++ b/pkg/schema/number.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/number_test.go b/pkg/schema/number_test.go index 647df0a..0320784 100644 --- a/pkg/schema/number_test.go +++ b/pkg/schema/number_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/string.go b/pkg/schema/string.go index 297a07f..9a4b50a 100644 --- a/pkg/schema/string.go +++ b/pkg/schema/string.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/pkg/schema/string_test.go b/pkg/schema/string_test.go index 62a203a..c0c9f1f 100644 --- a/pkg/schema/string_test.go +++ b/pkg/schema/string_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package schema import ( diff --git a/sdk/sdk-apiserver/api_apis.go b/sdk/sdk-apiserver/api_apis.go index 4a63eea..d218958 100644 --- a/sdk/sdk-apiserver/api_apis.go +++ b/sdk/sdk-apiserver/api_apis.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io.go b/sdk/sdk-apiserver/api_authorization_streamnative_io.go index 205b8d7..7c56a38 100644 --- a/sdk/sdk-apiserver/api_authorization_streamnative_io.go +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go index eb8d250..73ba77f 100644 --- a/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_authorization_streamnative_io_v1alpha1.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io.go b/sdk/sdk-apiserver/api_billing_streamnative_io.go index 171a551..8ba2890 100644 --- a/sdk/sdk-apiserver/api_billing_streamnative_io.go +++ b/sdk/sdk-apiserver/api_billing_streamnative_io.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go index 03c84a2..62bd9b8 100644 --- a/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_billing_streamnative_io_v1alpha1.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io.go b/sdk/sdk-apiserver/api_cloud_streamnative_io.go index fa840fd..26315e3 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go index 12b1ca9..8a6a039 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha1.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go index 4578bc6..42740ef 100644 --- a/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go +++ b/sdk/sdk-apiserver/api_cloud_streamnative_io_v1alpha2.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io.go b/sdk/sdk-apiserver/api_compute_streamnative_io.go index ef0dc5f..acc4d3c 100644 --- a/sdk/sdk-apiserver/api_compute_streamnative_io.go +++ b/sdk/sdk-apiserver/api_compute_streamnative_io.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go index 72c0477..6720869 100644 --- a/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go +++ b/sdk/sdk-apiserver/api_compute_streamnative_io_v1alpha1.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_custom_objects.go b/sdk/sdk-apiserver/api_custom_objects.go index 7c538cf..a752f6b 100644 --- a/sdk/sdk-apiserver/api_custom_objects.go +++ b/sdk/sdk-apiserver/api_custom_objects.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/api_version.go b/sdk/sdk-apiserver/api_version.go index ab6ee14..eb905d6 100644 --- a/sdk/sdk-apiserver/api_version.go +++ b/sdk/sdk-apiserver/api_version.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/client.go b/sdk/sdk-apiserver/client.go index df30af0..4d10bb6 100644 --- a/sdk/sdk-apiserver/client.go +++ b/sdk/sdk-apiserver/client.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/configuration.go b/sdk/sdk-apiserver/configuration.go index c72ccab..1aeda54 100644 --- a/sdk/sdk-apiserver/configuration.go +++ b/sdk/sdk-apiserver/configuration.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go index c7cf0be..fb0ea2d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_cloud_storage.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go index 8e9e033..854679a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_condition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go index d85cc07..44e81e3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go index 0db0216..08e0d5a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go index afbc574..d4338c6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go index c3af3df..df3cd27 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_iam_account_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go index 77bfde7..f77a10f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_organization.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go index 0dffd43..29d57bb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_pool_member_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go index 486eae7..5c92d29 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_resource_rule.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go index 203852b..1a8dfef 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_role_ref.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go index f7729f7..d2c0f10 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go index 9f2ad21..dd15ae5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go index 068e79d..ca14b60 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rbac_review_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go index 286a740..ca666b4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go index 467cf10..8d9a43a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go index c877954..f517c4f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_rules_review_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go index e6f005d..05e1b4d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go index 072975c..f019c07 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_self_subject_user_review_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go index d4bc440..02c2641 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go index 9710000..8d75cb5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go index 22a7eb0..31dda1c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_role_review_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go index e7faf68..8692bf7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go index 669aa65..8527a95 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go index e8e9c39..f3d8909 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_subject_rules_review_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go index b8ad4a8..45fa545 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_authorization_v1alpha1_user_ref.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go index 945610d..e150f01 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go index a9aff86..173e788 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go index 860ef1d..462d7c7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_customer_portal_request_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go index fa3e890..725d22d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go index 5629be4..3499893 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go index d315563..f1631e2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_item_price_recurring.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go index 4d4a9b7..da6e67f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_offer_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go index 66493b9..aae2438 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go index de1bf06..82ca051 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go index 24e9a36..293686c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go index b62ee8d..ead5cac 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_payment_intent_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go index 8c4421f..befc47f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_price_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go index daf7b53..a5ac749 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go index 562eccb..5523733 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go index 17ccb13..838730b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_private_offer_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go index d057500..6162f1c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go index bf7e5d0..b9e63e8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go index 53b07e4..075f4c0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_price.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go index 3d57c84..f47c078 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go index dca4d7e..60bdc31 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go index 24a3409..893c27b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go index 1b73f68..1b89dd7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_product_status_price.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go index 59c57a9..0d77082 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go index 83bf535..a20143e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go index f5974b3..5d09d42 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_public_offer_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go index 94e1f43..709ac8d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go index 7bef194..f226b2a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go index 7cbda63..b6aeac8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go index 11085b1..c3eaf13 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go index ba5af3b..8824a0e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_setup_intent_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go index 4f7fc0a..c61dd59 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go index f31c3b0..b4c34f2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_customer_portal_request_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go index e340470..15de6e3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_payment_intent.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go index 3f9b6eb..bdc9b01 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_recurrence.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go index 555d613..bc4c44c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_price_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go index 0644f93..4d86378 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_product_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go index 020f2d7..44b298b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_setup_intent.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go index 975d612..d51aba9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_stripe_subscription_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go index 33eaba1..ac2fe8d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go index 2915fa0..917582c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go index e07ebfc..f30ad24 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go index 8151fe3..795938d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go index f72fd4d..8f7a59a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_intent_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go index c26daed..e16fa5e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_item.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go index a9355ee..b165207 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go index 7450dff..4d1f35d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go index 07399f6..6919bb1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go index 17057f8..da706c5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go index acce0dd..bd9d42c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_subscription_status_subscription_item.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go index 1dd5fec..06dca53 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go index 4059f35..fcf0c55 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go index 0bdd136..d944a84 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_entitlement_review_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go index ee14372..c1f8fcf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go index 36d3443..a325bbc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_product_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go index 694a984..7d0521f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_intent_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go index 15a76d2..b8da29d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_suger_subscription_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go index 30c6b11..8fd4276 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go index 99830fb..ec3b966 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go index c40110e..293d627 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go index 7b8a400..31e1f24 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_test_clock_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go index b31b86f..329fc48 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_billing_v1alpha1_tier.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go index 407517d..ab68ddc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go index d280503..31f7e83 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go index f8b77da..da232d2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go index 54f0287..6ab106b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_api_key_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go index 092f00c..fd0841a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_audit_log.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go index b350f36..c90234f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_auto_scaling_policy.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go index d4fe5b8..1150e53 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_cloud_connection.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go index fc2eb85..432afdd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_aws_pool_member_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go index 158ebe1..dda9aba 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_connection.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go index b7ee6e3..7a6c4e1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_azure_pool_member_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go index ef4018a..689d937 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_billing_account_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go index 2315c29..2c6d163 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go index 8c1414a..7f3ffab 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_node_resource_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go index 6271996..0c1f697 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_book_keeper_set_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go index 6928099..e730646 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_bookkeeper_node_resource.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go index 3766aee..7489540 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go index f91d36a..f9a340f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_broker_node_resource_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go index 7f5d4f2..84a7211 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_chain.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go index 46ac616..de027e8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go index 03e72a7..d8a9465 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go index 7b2b8d2..336f46f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go index 67c8843..120f250 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_connection_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go index d7c2af9..896bae7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go index 03e3604..cd5f6f3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go index bfda422..39615bc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go index 8fb0034..ffbd4d3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cloud_environment_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go index 4c135a4..e0ceae6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go index 478d1bb..5018560 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go index 738a076..d76f755 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go index 23d2684..cdf1099 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go index ff87b41..a6a035a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_binding_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go index fd2f914..ade3b45 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go index 930feab..466c327 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go index d346c2a..79cf93a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_cluster_role_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go index 37913dc..bc21105 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go index 1da134f..bd6b95d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_condition_group.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go index a0acab3..ff44ba1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_config.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go index e42bffd..a4fd973 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_default_node_resource.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go index 123a3c6..5c7b9fd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_dns.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go index a1dd653..0be4e41 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go index c8c49ab..324f07c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_domain_tls.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go index 76abdd0..b78da6a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encrypted_token.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go index 27f26a7..a43e903 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_encryption_key.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go index 159d461..00e814c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_endpoint_access.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go index d6cfaea..6e6cacf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_config.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go index ff856aa..c546b99 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_exec_env_var.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go index 10f8200..7435980 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go index 7452772..7ebf169 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_cluster_role.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go index ec4527b..eeb55f9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go index 502c16e..0199290 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_failed_role_binding.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go index 04d0655..de10f31 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_organization_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go index 6a6a774..769df4a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_g_cloud_pool_member_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go index 3e52757..1965e23 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go index fe851df..cbbf02b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gateway_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go index 76ebee0..75b6b98 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_gcp_cloud_connection.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go index d3a0d38..e75d412 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_generic_pool_member_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go index 51ccb54..bdc4cc2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go index 6699271..5cc96b2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go index 1521cbc..af09f5a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go index 7253cb3..231e7ac 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_identity_pool_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go index ecfd973..8b4baf4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_installed_csv.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go index 82ca44f..e6e9730 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_invitation.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go index 762232a..b2c5912 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_lakehouse_storage_config.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go index e0d179f..af4bf26 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_maintenance_window.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go index 8005283..a4f75e0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_master_auth.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go index cb2146e..17dccdf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_network.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go index c7df009..651dfe9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_o_auth2_config.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go index 87da4c4..15835fe 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go index 4a6b833..06aea24 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go index 9f8fe9a..c206943 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go index 0fc2e06..ef3a2d3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_oidc_provider_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go index 8c68315..6cc64a0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go index 79224fc..f3bc55a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go index 23ba0d7..7e6ec51 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go index 0a11704..911443d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go index 239bd93..83bcc22 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_stripe.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go index 8f50742..c20d5fc 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_organization_suger.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go index 7a01ea0..c339266 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go index ff124b5..f721e77 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go index f470ec1..b2fc23e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go index 789c2c6..994ed63 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_connection_options_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go index adb9e81..32925ce 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_selector.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go index a86f11b..e5980ee 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go index c4c0785..8c49fdd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_gateway_tls.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go index 4241d80..e96a635 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_istio_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go index 8702ec9..2b0e7f5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go index 2d11c48..a1fd9d3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_monitoring.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go index 4fe40c3..10a7f93 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go index 015dfc9..b5dd72a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_catalog.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go index 80634df..98299ed 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_pulsar_spec_channel.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go index fd6b213..1703796 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go index 2e518ef..cd1697a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go index 721f9d0..6c48f7a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go index 321315c..15c63af 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_member_tiered_storage_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go index 7644b30..fadd94d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go index a3f1d86..84acdda 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go index d2ab81c..35e570e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_location.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go index 2f67d5a..d50ea1c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go index 3798c20..7f3a841 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_option_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go index 6cc053b..d446167 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_ref.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go index f425266..9615b40 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go index 0c53ad3..747dffd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pool_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go index 8430bab..2d8432d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go index bc7cae9..14b87af 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_private_service_id.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go index e5a7855..b1e2453 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_protocols_config.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go index 327872e..f432985 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go index 92b4226..16408f3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_component_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go index ddc037b..490d5a8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go index 1428a82..7d20f83 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go index d4e4cb3..bb71cd9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_cluster_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go index 0f7a783..67adb62 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go index b9e873a..60dcd2c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go index 8253975..8f37afb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go index 2a94959..743421a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_gateway_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go index 8e4a4ab..114265d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go index 72904d0..b599762 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_auth.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go index 0249606..29a6e27 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go index 82d9d38..681386c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go index 3183b65..a784733 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go index 4222ea8..72d465b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go index dee532c..6779858 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_instance_status_auth_o_auth2.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go index 586c954..6681f48 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_pulsar_service_endpoint.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go index 4b52b64..6fca236 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_rbac_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go index 0779778..b5f61cb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_region_info.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go index af9e767..505dcbd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go index 7f8f915..8038b3b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go index 503c109..09094d1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_condition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go index 183c0d0..a87f63f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go index 7c03d6c..3ee6c90 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go index 9ea7676..36e45ac 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_binding_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go index ca6dcda..8165079 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_definition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go index 99b1749..a7760c1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go index 7362d41..7a87153 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_ref.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go index 316a816..34fb1b8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go index c7fb91d..6f69ab5 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_role_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go index 066a485..5ebfe2e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go index 37c3881..14a9c1b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go index 2738c99..8f6aaf1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_secret_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go index 6f92881..4250629 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go index 93277d6..f52ee9e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_aws.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go index c2b7d60..76df318 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go index eb82d4c..54d4494 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_self_registration_suger.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go index 6c62908..c6e74a0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go index 5bd6fd6..a2a125b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go index db64080..b6b9aa3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go index 03a2c58..c2036e6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go index 001da3d..659a2da 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_binding_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go index 6c2c455..f0b2444 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go index 9beac04..9efa788 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_service_account_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go index 647bdc4..54fcb20 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_sharing_config.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go index 7a055e9..792a1a1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_srn.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go index c5f4f5e..d71640f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go index 7bca260..d52fd6c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go index b824e66..91aaf76 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go index ab12493..15cf825 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_stripe_subscription_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go index 6c88660..658dafb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subject.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go index 473d560..384a983 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_subscription_item.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go index 1b8e470..86ff407 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_support_access_options_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go index eed9532..e209c75 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_taint.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go index 3a638e4..ccafbb9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_toleration.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go index fe745be..3bbc0a7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go index 73a5972..db29d15 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go index 9460f36..4073d05 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_name.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go index d0c080f..7d3d780 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go index 3d92ff3..ee4a2b6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_user_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go index e2ec098..9b67dd1 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_window.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go index 19ed58b..85729b7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha1_zoo_keeper_set_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go index 9c3d8d1..0b5dfe3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go index 4406c1a..da91187 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go index 5e820c2..80cc825 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go index 5294e54..f7a212d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_aws_subscription_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go index 6825586..de7ff5a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_resource_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go index 44c4943..dc12d7b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go index a4262e5..2b8631d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go index 153c849..188e8ca 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go index 83876ff..26d42fd 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go index 0aa9a82..0269f90 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go index b8d5f7b..bf4c3b0 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_option_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go index 3224ac7..4cbfe11 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go index d4a28be..2b25238 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go index 8b6dc57..db16d57 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_book_keeper_set_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go index 96dcc06..ceab387 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_bookkeeper_node_resource.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go index 6f98dc6..0be95a4 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_condition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go index 9ae685c..f019797 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_default_node_resource.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go index e5e17d4..a5d1453 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go index cbdc6d9..2def314 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go index f37b09d..45e5797 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go index 65863e8..a01862b 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_monitor_set_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go index dbe3aee..7039f3f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_pool_member_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go index 0ed8155..36a1942 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_sharing_config.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go index 3e01c70..40879eb 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_resource_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go index b4d26c5..bb2737f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go index 0705470..9bca728 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go index b2bbb93..b95edb9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go index 7fb5ffc..9d576b8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go index 3454a6d..a249557 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go index 058fbd8..914f38f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_option_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go index 5eef3b5..830de89 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go index caf1dd5..6f225f2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go index 306580d..44d7701 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_cloud_v1alpha2_zoo_keeper_set_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go index f206e44..bb6ff7d 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_artifact.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go index 2b9fe2d..927e559 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_condition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go index 4a0fb40..1f86e89 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_container.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go index 49e1955..797aa42 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_blob_storage.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go index a757bbf..e8b4de8 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go index fae48e5..2d2c128 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go index dd10f37..b69b474 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go index eb50130..b3da2bf 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_flink_deployment_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go index 8bc7121..a829410 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_logging.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go index a727591..fbe07d9 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_object_meta.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go index 6692f79..5bc4d56 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go index b6e3427..d225e37 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pod_template_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go index 700e062..67b4eee 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_member_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go index dcdadf5..4690055 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_pool_ref.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go index faafe88..f19f1ec 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_resource_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go index d92c673..a04496a 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_security_context.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go index 6c80fad..26d1ff3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_user_metadata.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go index bb395ff..93dd0a3 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_volume.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go index 663c355..f2e7ff6 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_custom_resource_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go index 601ce6d..5de9a93 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go index 15639c9..a3662ae 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go index dbbe5f4..f7409d7 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_metadata.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go index 12c2a69..b77c9c2 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go index d0f12e5..c9fb446 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_details_template_spec_kubernetes_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go index d225942..bdeb809 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_kubernetes_resources.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go index 9b654ce..3412657 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_running_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go index a023304..827c287 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go index 5f47be4..18909ed 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_condition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go index 3d0918e..d99c112 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_status_deployment_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go index a49f62b..8007019 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_system_metadata.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go index 1d75ae8..8066b8f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go index 0c2641d..768cc04 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_deployment_template_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go index 07884a0..f757c0f 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_vvp_restore_strategy.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go index 42edaf8..a4d9e38 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go index accd91d..9b3ccfa 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go index ffcb0af..5e1c53c 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_spec.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go index 2392133..bbb617e 100644 --- a/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go +++ b/sdk/sdk-apiserver/model_com_github_streamnative_cloud_api_server_pkg_apis_compute_v1alpha1_workspace_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_affinity.go b/sdk/sdk-apiserver/model_v1_affinity.go index 1301286..d223211 100644 --- a/sdk/sdk-apiserver/model_v1_affinity.go +++ b/sdk/sdk-apiserver/model_v1_affinity.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_group.go b/sdk/sdk-apiserver/model_v1_api_group.go index 6e0c3c8..8c7ad47 100644 --- a/sdk/sdk-apiserver/model_v1_api_group.go +++ b/sdk/sdk-apiserver/model_v1_api_group.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_group_list.go b/sdk/sdk-apiserver/model_v1_api_group_list.go index d8f3137..614db34 100644 --- a/sdk/sdk-apiserver/model_v1_api_group_list.go +++ b/sdk/sdk-apiserver/model_v1_api_group_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_resource.go b/sdk/sdk-apiserver/model_v1_api_resource.go index 470d412..2d4ece3 100644 --- a/sdk/sdk-apiserver/model_v1_api_resource.go +++ b/sdk/sdk-apiserver/model_v1_api_resource.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_api_resource_list.go b/sdk/sdk-apiserver/model_v1_api_resource_list.go index 91b7917..5cfe848 100644 --- a/sdk/sdk-apiserver/model_v1_api_resource_list.go +++ b/sdk/sdk-apiserver/model_v1_api_resource_list.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_condition.go b/sdk/sdk-apiserver/model_v1_condition.go index 5961bb4..dda0772 100644 --- a/sdk/sdk-apiserver/model_v1_condition.go +++ b/sdk/sdk-apiserver/model_v1_condition.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_config_map_env_source.go b/sdk/sdk-apiserver/model_v1_config_map_env_source.go index 4d89ab9..bbf9d0c 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_env_source.go +++ b/sdk/sdk-apiserver/model_v1_config_map_env_source.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_config_map_key_selector.go b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go index 061ba06..ab7c6b1 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_key_selector.go +++ b/sdk/sdk-apiserver/model_v1_config_map_key_selector.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_config_map_volume_source.go b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go index 97d8d86..415279a 100644 --- a/sdk/sdk-apiserver/model_v1_config_map_volume_source.go +++ b/sdk/sdk-apiserver/model_v1_config_map_volume_source.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_delete_options.go b/sdk/sdk-apiserver/model_v1_delete_options.go index db4e9d5..b39ec8b 100644 --- a/sdk/sdk-apiserver/model_v1_delete_options.go +++ b/sdk/sdk-apiserver/model_v1_delete_options.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_env_from_source.go b/sdk/sdk-apiserver/model_v1_env_from_source.go index 73a5ed4..684ee67 100644 --- a/sdk/sdk-apiserver/model_v1_env_from_source.go +++ b/sdk/sdk-apiserver/model_v1_env_from_source.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_env_var.go b/sdk/sdk-apiserver/model_v1_env_var.go index 5ec142b..c2d588b 100644 --- a/sdk/sdk-apiserver/model_v1_env_var.go +++ b/sdk/sdk-apiserver/model_v1_env_var.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_env_var_source.go b/sdk/sdk-apiserver/model_v1_env_var_source.go index 7181191..8605f0d 100644 --- a/sdk/sdk-apiserver/model_v1_env_var_source.go +++ b/sdk/sdk-apiserver/model_v1_env_var_source.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_exec_action.go b/sdk/sdk-apiserver/model_v1_exec_action.go index bd6f423..3a0a157 100644 --- a/sdk/sdk-apiserver/model_v1_exec_action.go +++ b/sdk/sdk-apiserver/model_v1_exec_action.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go index 56ea47d..f60644c 100644 --- a/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go +++ b/sdk/sdk-apiserver/model_v1_group_version_for_discovery.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_grpc_action.go b/sdk/sdk-apiserver/model_v1_grpc_action.go index 22c54fb..793fb0d 100644 --- a/sdk/sdk-apiserver/model_v1_grpc_action.go +++ b/sdk/sdk-apiserver/model_v1_grpc_action.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_http_get_action.go b/sdk/sdk-apiserver/model_v1_http_get_action.go index 44c8e79..8f63cb5 100644 --- a/sdk/sdk-apiserver/model_v1_http_get_action.go +++ b/sdk/sdk-apiserver/model_v1_http_get_action.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_http_header.go b/sdk/sdk-apiserver/model_v1_http_header.go index e074e50..76785ec 100644 --- a/sdk/sdk-apiserver/model_v1_http_header.go +++ b/sdk/sdk-apiserver/model_v1_http_header.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_key_to_path.go b/sdk/sdk-apiserver/model_v1_key_to_path.go index 37b7ca7..9d72cee 100644 --- a/sdk/sdk-apiserver/model_v1_key_to_path.go +++ b/sdk/sdk-apiserver/model_v1_key_to_path.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_label_selector.go b/sdk/sdk-apiserver/model_v1_label_selector.go index 1ea5012..fddd90d 100644 --- a/sdk/sdk-apiserver/model_v1_label_selector.go +++ b/sdk/sdk-apiserver/model_v1_label_selector.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_label_selector_requirement.go b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go index 2e6e2a9..552bebc 100644 --- a/sdk/sdk-apiserver/model_v1_label_selector_requirement.go +++ b/sdk/sdk-apiserver/model_v1_label_selector_requirement.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_list_meta.go b/sdk/sdk-apiserver/model_v1_list_meta.go index cc21e7b..41ffcfc 100644 --- a/sdk/sdk-apiserver/model_v1_list_meta.go +++ b/sdk/sdk-apiserver/model_v1_list_meta.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_local_object_reference.go b/sdk/sdk-apiserver/model_v1_local_object_reference.go index 898b52f..3669af3 100644 --- a/sdk/sdk-apiserver/model_v1_local_object_reference.go +++ b/sdk/sdk-apiserver/model_v1_local_object_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_managed_fields_entry.go b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go index 76f5f8e..7d42f0b 100644 --- a/sdk/sdk-apiserver/model_v1_managed_fields_entry.go +++ b/sdk/sdk-apiserver/model_v1_managed_fields_entry.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_affinity.go b/sdk/sdk-apiserver/model_v1_node_affinity.go index 3a849c2..2c7e7b3 100644 --- a/sdk/sdk-apiserver/model_v1_node_affinity.go +++ b/sdk/sdk-apiserver/model_v1_node_affinity.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_selector.go b/sdk/sdk-apiserver/model_v1_node_selector.go index 5af69e9..f655139 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector.go +++ b/sdk/sdk-apiserver/model_v1_node_selector.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_selector_requirement.go b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go index 3c8b751..43e35a8 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector_requirement.go +++ b/sdk/sdk-apiserver/model_v1_node_selector_requirement.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_node_selector_term.go b/sdk/sdk-apiserver/model_v1_node_selector_term.go index e5fa48f..43879d4 100644 --- a/sdk/sdk-apiserver/model_v1_node_selector_term.go +++ b/sdk/sdk-apiserver/model_v1_node_selector_term.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_object_field_selector.go b/sdk/sdk-apiserver/model_v1_object_field_selector.go index 400e7f5..4978784 100644 --- a/sdk/sdk-apiserver/model_v1_object_field_selector.go +++ b/sdk/sdk-apiserver/model_v1_object_field_selector.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_object_meta.go b/sdk/sdk-apiserver/model_v1_object_meta.go index 893a0bd..9c82f2c 100644 --- a/sdk/sdk-apiserver/model_v1_object_meta.go +++ b/sdk/sdk-apiserver/model_v1_object_meta.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_owner_reference.go b/sdk/sdk-apiserver/model_v1_owner_reference.go index 799786f..79d2e21 100644 --- a/sdk/sdk-apiserver/model_v1_owner_reference.go +++ b/sdk/sdk-apiserver/model_v1_owner_reference.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity.go b/sdk/sdk-apiserver/model_v1_pod_affinity.go index 4d9f300..62f295d 100644 --- a/sdk/sdk-apiserver/model_v1_pod_affinity.go +++ b/sdk/sdk-apiserver/model_v1_pod_affinity.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go index 9f37066..8b1189e 100644 --- a/sdk/sdk-apiserver/model_v1_pod_affinity_term.go +++ b/sdk/sdk-apiserver/model_v1_pod_affinity_term.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go index 4b3aa89..ede3e0a 100644 --- a/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go +++ b/sdk/sdk-apiserver/model_v1_pod_anti_affinity.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_preconditions.go b/sdk/sdk-apiserver/model_v1_preconditions.go index 8bc27dd..f208ffa 100644 --- a/sdk/sdk-apiserver/model_v1_preconditions.go +++ b/sdk/sdk-apiserver/model_v1_preconditions.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go index 2b8c130..c2ba5d0 100644 --- a/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go +++ b/sdk/sdk-apiserver/model_v1_preferred_scheduling_term.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_probe.go b/sdk/sdk-apiserver/model_v1_probe.go index 21d665e..aa98c1f 100644 --- a/sdk/sdk-apiserver/model_v1_probe.go +++ b/sdk/sdk-apiserver/model_v1_probe.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_resource_field_selector.go b/sdk/sdk-apiserver/model_v1_resource_field_selector.go index 134f356..c3800ad 100644 --- a/sdk/sdk-apiserver/model_v1_resource_field_selector.go +++ b/sdk/sdk-apiserver/model_v1_resource_field_selector.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_resource_requirements.go b/sdk/sdk-apiserver/model_v1_resource_requirements.go index 8c39cc9..37ff36f 100644 --- a/sdk/sdk-apiserver/model_v1_resource_requirements.go +++ b/sdk/sdk-apiserver/model_v1_resource_requirements.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_secret_env_source.go b/sdk/sdk-apiserver/model_v1_secret_env_source.go index 7161fea..c57b879 100644 --- a/sdk/sdk-apiserver/model_v1_secret_env_source.go +++ b/sdk/sdk-apiserver/model_v1_secret_env_source.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_secret_key_selector.go b/sdk/sdk-apiserver/model_v1_secret_key_selector.go index 8f5921a..9ef3955 100644 --- a/sdk/sdk-apiserver/model_v1_secret_key_selector.go +++ b/sdk/sdk-apiserver/model_v1_secret_key_selector.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_secret_volume_source.go b/sdk/sdk-apiserver/model_v1_secret_volume_source.go index bb1ce48..76199ab 100644 --- a/sdk/sdk-apiserver/model_v1_secret_volume_source.go +++ b/sdk/sdk-apiserver/model_v1_secret_volume_source.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go index 22def96..ed095a1 100644 --- a/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go +++ b/sdk/sdk-apiserver/model_v1_server_address_by_client_cidr.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_status.go b/sdk/sdk-apiserver/model_v1_status.go index 00a4e2d..20c9153 100644 --- a/sdk/sdk-apiserver/model_v1_status.go +++ b/sdk/sdk-apiserver/model_v1_status.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_status_cause.go b/sdk/sdk-apiserver/model_v1_status_cause.go index 84cf7f2..1938741 100644 --- a/sdk/sdk-apiserver/model_v1_status_cause.go +++ b/sdk/sdk-apiserver/model_v1_status_cause.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_status_details.go b/sdk/sdk-apiserver/model_v1_status_details.go index 175dba7..c859f71 100644 --- a/sdk/sdk-apiserver/model_v1_status_details.go +++ b/sdk/sdk-apiserver/model_v1_status_details.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_tcp_socket_action.go b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go index ad50c3f..bb6e8fc 100644 --- a/sdk/sdk-apiserver/model_v1_tcp_socket_action.go +++ b/sdk/sdk-apiserver/model_v1_tcp_socket_action.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_toleration.go b/sdk/sdk-apiserver/model_v1_toleration.go index 1412b93..45014ab 100644 --- a/sdk/sdk-apiserver/model_v1_toleration.go +++ b/sdk/sdk-apiserver/model_v1_toleration.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_volume_mount.go b/sdk/sdk-apiserver/model_v1_volume_mount.go index a3a6920..bf3f55e 100644 --- a/sdk/sdk-apiserver/model_v1_volume_mount.go +++ b/sdk/sdk-apiserver/model_v1_volume_mount.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_watch_event.go b/sdk/sdk-apiserver/model_v1_watch_event.go index 16a6c23..3d36780 100644 --- a/sdk/sdk-apiserver/model_v1_watch_event.go +++ b/sdk/sdk-apiserver/model_v1_watch_event.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go index cba7cd0..dd7267a 100644 --- a/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go +++ b/sdk/sdk-apiserver/model_v1_weighted_pod_affinity_term.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/model_version_info.go b/sdk/sdk-apiserver/model_version_info.go index edd461e..7950828 100644 --- a/sdk/sdk-apiserver/model_version_info.go +++ b/sdk/sdk-apiserver/model_version_info.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/response.go b/sdk/sdk-apiserver/response.go index d21d08c..e5e9ce1 100644 --- a/sdk/sdk-apiserver/response.go +++ b/sdk/sdk-apiserver/response.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api diff --git a/sdk/sdk-apiserver/utils.go b/sdk/sdk-apiserver/utils.go index 1800de9..3a35b70 100644 --- a/sdk/sdk-apiserver/utils.go +++ b/sdk/sdk-apiserver/utils.go @@ -1,20 +1,3 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - /* Api From 60577ea32dbd6674b5d669ca15bdd0a92513cbba Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Thu, 18 Dec 2025 10:34:58 +0800 Subject: [PATCH 41/85] feat(mcp): add multi-session Pulsar support with auth middleware (#64) --- CLAUDE.md | 15 +++++ README.md | 38 +++++++++++ pkg/cmd/mcp/server.go | 37 ++++++----- pkg/cmd/mcp/sse.go | 81 ++++++++++++++++++++--- pkg/mcp/session/pulsar_session_manager.go | 4 ++ 5 files changed, 148 insertions(+), 27 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 779fe62..4cf6127 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -130,9 +130,24 @@ From sessions: 1. **StreamNative Cloud**: `--organization` + `--key-file` 2. **External Kafka**: `--use-external-kafka` + Kafka params 3. **External Pulsar**: `--use-external-pulsar` + Pulsar params +4. **Multi-Session Pulsar** (SSE only): `--use-external-pulsar` + `--multi-session-pulsar` Pre-configured context: `--pulsar-instance` + `--pulsar-cluster` disables context management tools. +### Multi-Session Pulsar Mode + +When `--multi-session-pulsar` is enabled (SSE server with external Pulsar only): + +- **No global PulsarSession**: Each request must provide its own token via `Authorization: Bearer ` header +- **HTTP 401 on auth failure**: Requests without valid tokens are rejected with HTTP 401 Unauthorized +- **Per-user session caching**: Sessions are cached using LRU with configurable size and TTL +- **Session management**: See `pkg/mcp/session/pulsar_session_manager.go` + +Key files: +- `pkg/cmd/mcp/sse.go` - Auth middleware wraps SSEHandler()/MessageHandler() +- `pkg/mcp/session/pulsar_session_manager.go` - LRU session cache with TTL cleanup +- `pkg/cmd/mcp/server.go` - Skips global PulsarSession when multi-session enabled + ## Error Handling - Wrap errors: `fmt.Errorf("failed to X: %w", err)` diff --git a/README.md b/README.md index 1b9048d..690eff2 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,41 @@ snmcp sse --http-addr :9090 --http-path /mcp --use-external-pulsar --pulsar-web- docker run -i --rm -e SNMCP_ORGANIZATION=my-org -e SNMCP_KEY_FILE=/key.json -v /path/to/key-file.json:/key.json -p 9090:9090 streamnative/snmcp sse ``` +#### Multi-Session Pulsar Mode (SSE only) + +When running the SSE server with external Pulsar, you can enable **multi-session mode** to support per-user authentication. In this mode, each HTTP request must include an `Authorization: Bearer ` header, and the server will create separate Pulsar sessions for each unique token. + +```bash +# Start SSE server with multi-session Pulsar mode +snmcp sse --http-addr :9090 --http-path /mcp \ + --use-external-pulsar \ + --pulsar-web-service-url http://pulsar.example.com:8080 \ + --multi-session-pulsar \ + --session-cache-size 100 \ + --session-ttl-minutes 30 +``` + +**Key features:** +- **Per-user sessions**: Each user's Pulsar token creates a separate session +- **LRU caching**: Sessions are cached with LRU eviction when the cache is full +- **TTL-based cleanup**: Idle sessions are automatically cleaned up after the configured TTL +- **Strict authentication**: Requests without a valid `Authorization` header receive HTTP 401 Unauthorized + +**Authentication flow:** +1. Client connects to SSE endpoint with `Authorization: Bearer ` header +2. Server validates the token by attempting to create a Pulsar session +3. If valid, the session is cached and reused for subsequent requests +4. If invalid or missing, server returns HTTP 401 Unauthorized + +**Configuration options:** +| Flag | Default | Description | +|------|---------|-------------| +| `--multi-session-pulsar` | `false` | Enable per-user Pulsar sessions | +| `--session-cache-size` | `100` | Maximum number of cached sessions | +| `--session-ttl-minutes` | `30` | Session idle timeout before eviction | + +> **Note:** Multi-session mode is only available for external Pulsar mode (`--use-external-pulsar`) and only works with the SSE server, not stdio. + ### Command-line Options ``` @@ -175,6 +210,9 @@ Flags: --use-external-pulsar Use external Pulsar --http-addr string HTTP server address (default ":9090") --http-path string HTTP server path for SSE endpoint (default "/mcp") + --multi-session-pulsar Enable per-user Pulsar sessions based on Authorization header tokens (only for external Pulsar mode) + --session-cache-size int Maximum number of cached Pulsar sessions when multi-session is enabled (default 100) + --session-ttl-minutes int Session TTL in minutes before eviction when multi-session is enabled (default 30) -v, --version version for snmcp ``` diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 318bc4f..5de74c8 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -83,24 +83,29 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo } case snConfig.ExternalPulsar != nil: { - psession, err := pulsar.NewSession(pulsar.PulsarContext{ - ServiceURL: snConfig.ExternalPulsar.ServiceURL, - WebServiceURL: snConfig.ExternalPulsar.WebServiceURL, - AuthPlugin: snConfig.ExternalPulsar.AuthPlugin, - AuthParams: snConfig.ExternalPulsar.AuthParams, - Token: snConfig.ExternalPulsar.Token, - TLSAllowInsecureConnection: snConfig.ExternalPulsar.TLSAllowInsecureConnection, - TLSEnableHostnameVerification: snConfig.ExternalPulsar.TLSEnableHostnameVerification, - TLSTrustCertsFilePath: snConfig.ExternalPulsar.TLSTrustCertsFilePath, - TLSCertFile: snConfig.ExternalPulsar.TLSCertFile, - TLSKeyFile: snConfig.ExternalPulsar.TLSKeyFile, - }) - if err != nil { - return nil, errors.Wrap(err, "failed to set external Pulsar context") - } mcpServer = mcp.NewServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL))) - mcpServer.PulsarSession = psession s = mcpServer.MCPServer + + // Only create global PulsarSession if not in multi-session mode + // In multi-session mode, each request must provide its own token via Authorization header + if !configOpts.MultiSessionPulsar { + psession, err := pulsar.NewSession(pulsar.PulsarContext{ + ServiceURL: snConfig.ExternalPulsar.ServiceURL, + WebServiceURL: snConfig.ExternalPulsar.WebServiceURL, + AuthPlugin: snConfig.ExternalPulsar.AuthPlugin, + AuthParams: snConfig.ExternalPulsar.AuthParams, + Token: snConfig.ExternalPulsar.Token, + TLSAllowInsecureConnection: snConfig.ExternalPulsar.TLSAllowInsecureConnection, + TLSEnableHostnameVerification: snConfig.ExternalPulsar.TLSEnableHostnameVerification, + TLSTrustCertsFilePath: snConfig.ExternalPulsar.TLSTrustCertsFilePath, + TLSCertFile: snConfig.ExternalPulsar.TLSCertFile, + TLSKeyFile: snConfig.ExternalPulsar.TLSKeyFile, + }) + if err != nil { + return nil, errors.Wrap(err, "failed to set external Pulsar context") + } + mcpServer.PulsarSession = psession + } } default: { diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go index 3f3fbe7..2620f3a 100644 --- a/pkg/cmd/mcp/sse.go +++ b/pkg/cmd/mcp/sse.go @@ -110,7 +110,8 @@ func runSseServer(configOpts *ServerOptions) error { TLSKeyFile: snConfig.ExternalPulsar.TLSKeyFile, }, } - pulsarSessionManager = session.NewPulsarSessionManager(managerConfig, mcpServer.PulsarSession, logger) + // Pass nil as globalSession - in multi-session mode, every request must have a valid token + pulsarSessionManager = session.NewPulsarSessionManager(managerConfig, nil, logger) logger.Info("Multi-session Pulsar mode enabled") } @@ -125,14 +126,16 @@ func runSseServer(configOpts *ServerOptions) error { // Handle per-user Pulsar sessions if pulsarSessionManager != nil { token := session.ExtractBearerToken(r) + // Token is already validated in auth middleware, this should always succeed if pulsarSession, err := pulsarSessionManager.GetOrCreateSession(ctx, token); err == nil { c = context2.WithPulsarSession(c, pulsarSession) if token != "" { c = session.WithUserTokenHash(c, pulsarSessionManager.HashTokenForLog(token)) } } else { - logger.WithError(err).Warn("Failed to get per-user Pulsar session, using global") - c = context2.WithPulsarSession(c, mcpServer.PulsarSession) + // Should not happen since middleware validates token first + logger.WithError(err).Error("Unexpected auth error after middleware validation") + // Don't set PulsarSession - tool handlers will fail gracefully with "session not found" } } else { c = context2.WithPulsarSession(c, mcpServer.PulsarSession) @@ -144,16 +147,62 @@ func runSseServer(configOpts *ServerOptions) error { // 4. Expose the full SSE URL to the user ssePath := sseServer.CompleteSsePath() + msgPath := sseServer.CompleteMessagePath() fmt.Fprintf(os.Stderr, "StreamNative Cloud MCP Server listening on http://%s%s\n", configOpts.HTTPAddr, ssePath) // 5. Run the HTTP listener in a goroutine errCh := make(chan error, 1) - go func() { - if err := sseServer.Start(configOpts.HTTPAddr); err != nil && !errors.Is(err, http.ErrServerClosed) { - errCh <- err // bubble up real crashes + var httpServer *http.Server + + if pulsarSessionManager != nil { + // Multi-session mode: use custom handlers with auth middleware + mux := http.NewServeMux() + + // Auth middleware wrapper that validates token before processing + authMiddleware := func(next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + token := session.ExtractBearerToken(r) + if token == "" { + w.Header().Set("Content-Type", "application/json") + http.Error(w, `{"error":"missing Authorization header"}`, http.StatusUnauthorized) + return + } + // Pre-validate token by attempting to get/create session + if _, err := pulsarSessionManager.GetOrCreateSession(r.Context(), token); err != nil { + logger.WithError(err).Warn("Authentication failed") + w.Header().Set("Content-Type", "application/json") + http.Error(w, `{"error":"authentication failed"}`, http.StatusUnauthorized) + return + } + next.ServeHTTP(w, r) + }) } - }() + + // Mount handlers with auth middleware + mux.Handle(ssePath, authMiddleware(sseServer.SSEHandler())) + mux.Handle(msgPath, authMiddleware(sseServer.MessageHandler())) + + // Start custom HTTP server + httpServer = &http.Server{ + Addr: configOpts.HTTPAddr, + Handler: mux, + ReadHeaderTimeout: 10 * time.Second, // Prevent Slowloris attacks + } + go func() { + if err := httpServer.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { + errCh <- err + } + }() + logger.Info("SSE server started with authentication middleware") + } else { + // Non-multi-session mode: use default Start() + go func() { + if err := sseServer.Start(configOpts.HTTPAddr); err != nil && !errors.Is(err, http.ErrServerClosed) { + errCh <- err // bubble up real crashes + } + }() + } // Give the server a moment to start time.Sleep(100 * time.Millisecond) @@ -177,10 +226,20 @@ func runSseServer(configOpts *ServerOptions) error { pulsarSessionManager.Stop() } - // First try to shut down the SSE server - if err := sseServer.Shutdown(shCtx); err != nil { - if !errors.Is(err, http.ErrServerClosed) { - logger.Errorf("Error shutting down SSE server: %v", err) + // Shut down the HTTP server + if httpServer != nil { + // Multi-session mode: shut down custom HTTP server + if err := httpServer.Shutdown(shCtx); err != nil { + if !errors.Is(err, http.ErrServerClosed) { + logger.Errorf("Error shutting down HTTP server: %v", err) + } + } + } else { + // Non-multi-session mode: shut down SSE server + if err := sseServer.Shutdown(shCtx); err != nil { + if !errors.Is(err, http.ErrServerClosed) { + logger.Errorf("Error shutting down SSE server: %v", err) + } } } diff --git a/pkg/mcp/session/pulsar_session_manager.go b/pkg/mcp/session/pulsar_session_manager.go index e5e99e0..8f5e79e 100644 --- a/pkg/mcp/session/pulsar_session_manager.go +++ b/pkg/mcp/session/pulsar_session_manager.go @@ -99,6 +99,10 @@ func NewPulsarSessionManager( func (m *PulsarSessionManager) GetOrCreateSession(_ context.Context, token string) (*pulsar.Session, error) { if token == "" { // Return global session when no token provided + // If no global session exists (multi-session mode), return error + if m.globalSession == nil { + return nil, fmt.Errorf("authentication required: missing Authorization header") + } return m.globalSession, nil } From 833b69a60f15109d40fe2babe276534699650aa4 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 12 Jan 2026 13:22:14 +0800 Subject: [PATCH 42/85] chore: upgrade golangci-lint to v2 and modernize codebase (#68) --- .github/workflows/lint.yaml | 4 +- .golangci.yml | 19 ++-- cmd/streamnative-mcp-server/main.go | 1 + go.mod | 2 +- go.sum | 3 +- pkg/auth/auth.go | 11 ++- pkg/auth/authorization_tokenretriever.go | 7 +- pkg/auth/cache/cache.go | 2 + pkg/auth/client_credentials_flow.go | 5 ++ pkg/auth/client_credentials_provider.go | 17 +++- pkg/auth/oidc_endpoint_provider.go | 2 +- pkg/auth/store/keyring.go | 7 ++ pkg/cmd/mcp/mcp.go | 8 +- pkg/cmd/mcp/server.go | 4 +- pkg/cmd/mcp/sse.go | 26 +++--- pkg/cmd/mcp/stdio.go | 4 +- pkg/common/utils.go | 18 +++- pkg/config/apiclient.go | 1 + pkg/config/auth.go | 8 +- pkg/config/config.go | 12 ++- pkg/config/external_kafka.go | 1 + pkg/config/external_pulsar.go | 1 + pkg/config/options.go | 99 ++++++++++++--------- pkg/kafka/connection.go | 10 ++- pkg/kafka/kafkaconnect.go | 14 +-- pkg/log/io.go | 1 + pkg/mcp/auth_utils.go | 2 + pkg/mcp/builders/base.go | 1 + pkg/mcp/builders/kafka/connect.go | 1 + pkg/mcp/builders/pulsar/brokers.go | 1 + pkg/mcp/builders/pulsar/consume.go | 7 +- pkg/mcp/builders/pulsar/schema.go | 3 +- pkg/mcp/builders/registry_test.go | 54 ++++------- pkg/mcp/features.go | 2 + pkg/mcp/instructions.go | 3 + pkg/mcp/internal/context/ctx.go | 4 +- pkg/mcp/kafka_admin_connect_tools.go | 1 + pkg/mcp/kafka_admin_groups_tools.go | 1 + pkg/mcp/kafka_admin_partitions_tools.go | 1 + pkg/mcp/kafka_admin_sr_tools.go | 1 + pkg/mcp/kafka_admin_topics_tools.go | 1 + pkg/mcp/pftools/circuit_breaker.go | 1 + pkg/mcp/pftools/errors.go | 5 +- pkg/mcp/pftools/manager.go | 7 +- pkg/mcp/pftools/schema.go | 2 + pkg/mcp/pftools/types.go | 8 ++ pkg/mcp/prompts.go | 11 ++- pkg/mcp/pulsar_admin_packages_tools.go | 19 ++-- pkg/mcp/pulsar_admin_tenant_tools.go | 1 + pkg/mcp/pulsar_functions_as_tools.go | 2 + pkg/mcp/server.go | 4 + pkg/mcp/session/context.go | 1 + pkg/mcp/sncontext_tools.go | 1 + pkg/mcp/sncontext_utils.go | 20 +++-- pkg/mcp/streamnative_resources_log_tools.go | 6 +- pkg/mcp/streamnative_resources_tools.go | 15 ++-- pkg/pulsar/connection.go | 10 ++- pkg/schema/avro.go | 6 ++ pkg/schema/avro_core.go | 2 +- pkg/schema/avro_test.go | 5 +- pkg/schema/boolean.go | 3 + pkg/schema/common.go | 2 +- pkg/schema/converter.go | 4 + pkg/schema/number.go | 3 + pkg/schema/string.go | 3 + 65 files changed, 335 insertions(+), 176 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index a37813e..7b2451f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -24,7 +24,7 @@ jobs: go mod verify go mod download - LINT_VERSION=1.64.8 + LINT_VERSION=2.7.2 curl -fsSL https://github.com/golangci/golangci-lint/releases/download/v${LINT_VERSION}/golangci-lint-${LINT_VERSION}-linux-amd64.tar.gz | \ tar xz --strip-components 1 --wildcards \*/golangci-lint mkdir -p bin && mv golangci-lint bin/ @@ -45,6 +45,6 @@ jobs: assert-nothing-changed go fmt ./... assert-nothing-changed go mod tidy - bin/golangci-lint run --out-format=colored-line-number --timeout=3m || STATUS=$? + bin/golangci-lint run --timeout=3m || STATUS=$? exit $STATUS diff --git a/.golangci.yml b/.golangci.yml index 43e3d62..54324e5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,5 @@ +version: "2" + run: timeout: 5m tests: true @@ -8,13 +10,9 @@ linters: - govet - errcheck - staticcheck - - gofmt - - goimports - revive - ineffassign - - typecheck - unused - - gosimple - misspell - nakedret - bodyclose @@ -22,7 +20,14 @@ linters: - makezero - gosec +formatters: + enable: + - gofmt + - goimports + output: - formats: colored-line-number - print-issued-lines: true - print-linter-name: true + formats: + text: + path: stdout + print-issued-lines: true + print-linter-name: true diff --git a/cmd/streamnative-mcp-server/main.go b/cmd/streamnative-mcp-server/main.go index 42253af..4686310 100644 --- a/cmd/streamnative-mcp-server/main.go +++ b/cmd/streamnative-mcp-server/main.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package main is the entry point for the StreamNative MCP server. package main import ( diff --git a/go.mod b/go.mod index 606d990..3d63a7b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.24.4 require ( github.com/99designs/keyring v1.2.2 github.com/apache/pulsar-client-go v0.13.1 - github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/golang-jwt/jwt v3.2.1+incompatible github.com/google/go-cmp v0.7.0 github.com/hamba/avro/v2 v2.28.0 github.com/mark3labs/mcp-go v0.43.2 diff --git a/go.sum b/go.sum index 8426de5..1156150 100644 --- a/go.sum +++ b/go.sum @@ -48,8 +48,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dimfeld/httptreemux v5.0.1+incompatible h1:Qj3gVcDNoOthBAqftuD596rm4wg/adLLz5xh5CmpiCA= github.com/dimfeld/httptreemux v5.0.1+incompatible/go.mod h1:rbUlSV+CCpv/SuqUTP/8Bk2O3LyUV436/yaRGkhP6Z0= github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= @@ -85,6 +83,7 @@ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 0938d5a..1bc1b14 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package auth provides authentication and authorization functionality for StreamNative MCP Server. +// It implements OAuth 2.0 flows including client credentials and device authorization grants. package auth import ( @@ -20,12 +22,13 @@ import ( "io" "time" - "github.com/dgrijalva/jwt-go" + "github.com/golang-jwt/jwt" "golang.org/x/oauth2" "k8s.io/utils/clock" ) const ( + // ClaimNameUserName is the JWT claim name for the username. ClaimNameUserName = "https://streamnative.io/username" ) @@ -42,6 +45,7 @@ type AuthorizationGrantRefresher interface { Refresh(grant *AuthorizationGrant) (*AuthorizationGrant, error) } +// AuthorizationGrantType defines the supported OAuth2 grant types. type AuthorizationGrantType string const ( @@ -139,17 +143,18 @@ func ExtractUserName(token oauth2.Token) (string, error) { return "", fmt.Errorf("access token doesn't contain a recognizable user claim") } +// DumpToken outputs token information to the provided writer for debugging. func DumpToken(out io.Writer, token oauth2.Token) { p := jwt.Parser{} claims := jwt.MapClaims{} if _, _, err := p.ParseUnverified(token.AccessToken, claims); err != nil { - fmt.Fprintf(out, "Unable to parse token. Err: %v\n", err) + _, _ = fmt.Fprintf(out, "Unable to parse token. Err: %v\n", err) return } text, err := json.MarshalIndent(claims, "", " ") if err != nil { - fmt.Fprintf(out, "Unable to print token. Err: %v\n", err) + _, _ = fmt.Fprintf(out, "Unable to print token. Err: %v\n", err) } _, _ = out.Write(text) _, _ = fmt.Fprintln(out, "") diff --git a/pkg/auth/authorization_tokenretriever.go b/pkg/auth/authorization_tokenretriever.go index 99c2353..730e9ff 100644 --- a/pkg/auth/authorization_tokenretriever.go +++ b/pkg/auth/authorization_tokenretriever.go @@ -82,6 +82,7 @@ type TokenErrorResponse struct { ErrorDescription string `json:"error_description"` } +// TokenError represents an error response from the token endpoint. type TokenError struct { ErrorCode string ErrorDescription string @@ -222,6 +223,7 @@ func (ce *TokenRetriever) ExchangeCode(req AuthorizationCodeExchangeRequest) (*T if err != nil { return nil, err } + defer func() { _ = response.Body.Close() }() return ce.handleAuthTokensResponse(response) } @@ -230,7 +232,7 @@ func (ce *TokenRetriever) ExchangeCode(req AuthorizationCodeExchangeRequest) (*T // auth tokens for errors and parsing the raw body to a TokenResult struct func (ce *TokenRetriever) handleAuthTokensResponse(resp *http.Response) (*TokenResult, error) { if resp.Body != nil { - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() } if resp.StatusCode < 200 || resp.StatusCode > 299 { @@ -272,6 +274,7 @@ func (ce *TokenRetriever) ExchangeDeviceCode(ctx context.Context, req DeviceCode if err != nil { return nil, err } + defer func() { _ = response.Body.Close() }() token, err := ce.handleAuthTokensResponse(response) if err == nil { return token, nil @@ -314,6 +317,7 @@ func (ce *TokenRetriever) ExchangeRefreshToken(req RefreshTokenExchangeRequest) if err != nil { return nil, err } + defer func() { _ = response.Body.Close() }() return ce.handleAuthTokensResponse(response) } @@ -330,6 +334,7 @@ func (ce *TokenRetriever) ExchangeClientCredentials(req ClientCredentialsExchang if err != nil { return nil, err } + defer func() { _ = response.Body.Close() }() return ce.handleAuthTokensResponse(response) } diff --git a/pkg/auth/cache/cache.go b/pkg/auth/cache/cache.go index 70bc133..6e56dda 100644 --- a/pkg/auth/cache/cache.go +++ b/pkg/auth/cache/cache.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package cache provides cached token sources for authentication flows. package cache import ( @@ -51,6 +52,7 @@ type tokenCache struct { token *oauth2.Token } +// NewDefaultTokenCache creates a default token cache with the given store and refresher. func NewDefaultTokenCache(store store.Store, audience string, refresher auth.AuthorizationGrantRefresher) (CachingTokenSource, error) { cache := &tokenCache{ diff --git a/pkg/auth/client_credentials_flow.go b/pkg/auth/client_credentials_flow.go index 7de8bd4..39704e8 100644 --- a/pkg/auth/client_credentials_flow.go +++ b/pkg/auth/client_credentials_flow.go @@ -41,6 +41,7 @@ type ClientCredentialsExchanger interface { ExchangeClientCredentials(req ClientCredentialsExchangeRequest) (*TokenResult, error) } +// NewClientCredentialsFlow creates a new client credentials flow with the given components. func NewClientCredentialsFlow( issuerData Issuer, provider ClientCredentialsProvider, @@ -98,6 +99,7 @@ func NewDefaultClientCredentialsFlowWithKeyFileStruct(issuerData Issuer, keyFile var _ Flow = &ClientCredentialsFlow{} +// Authorize requests an authorization grant using the client credentials flow. func (c *ClientCredentialsFlow) Authorize() (*AuthorizationGrant, error) { keyFile, err := c.provider.GetClientCredentials() if err != nil { @@ -121,12 +123,14 @@ func (c *ClientCredentialsFlow) Authorize() (*AuthorizationGrant, error) { return grant, nil } +// ClientCredentialsGrantRefresher refreshes client-credentials grants using the token endpoint. type ClientCredentialsGrantRefresher struct { issuerData Issuer exchanger ClientCredentialsExchanger clock clock.Clock } +// NewDefaultClientCredentialsGrantRefresher creates a default client credentials grant refresher. func NewDefaultClientCredentialsGrantRefresher(issuerData Issuer, clock clock.Clock) (*ClientCredentialsGrantRefresher, error) { wellKnownEndpoints, err := GetOIDCWellKnownEndpointsFromIssuerURL(issuerData.IssuerEndpoint) @@ -147,6 +151,7 @@ func NewDefaultClientCredentialsGrantRefresher(issuerData Issuer, var _ AuthorizationGrantRefresher = &ClientCredentialsGrantRefresher{} +// Refresh exchanges the client credentials for a fresh authorization grant. func (g *ClientCredentialsGrantRefresher) Refresh(grant *AuthorizationGrant) (*AuthorizationGrant, error) { if grant.Type != GrantTypeClientCredentials { return nil, errors.New("unsupported grant type") diff --git a/pkg/auth/client_credentials_provider.go b/pkg/auth/client_credentials_provider.go index 2ab652d..f562e48 100644 --- a/pkg/auth/client_credentials_provider.go +++ b/pkg/auth/client_credentials_provider.go @@ -18,19 +18,25 @@ import ( "encoding/json" "fmt" "os" + "path/filepath" "strings" ) const ( + // KeyFileTypeServiceAccount identifies service account key files. KeyFileTypeServiceAccount = "sn_service_account" - FILE = "file://" - DATA = "data://" + // FILE indicates a file:// key file reference. + FILE = "file://" + // DATA indicates a data:// inline key file reference. + DATA = "data://" ) +// KeyFileProvider provides client credentials from a key file path. type KeyFileProvider struct { KeyFile string } +// KeyFile holds service account credentials from a JSON key file. type KeyFile struct { Type string `json:"type"` ClientID string `json:"client_id"` @@ -38,6 +44,7 @@ type KeyFile struct { ClientEmail string `json:"client_email"` } +// NewClientCredentialsProviderFromKeyFile creates a provider from a key file path. func NewClientCredentialsProviderFromKeyFile(keyFile string) *KeyFileProvider { return &KeyFileProvider{ KeyFile: keyFile, @@ -46,13 +53,14 @@ func NewClientCredentialsProviderFromKeyFile(keyFile string) *KeyFileProvider { var _ ClientCredentialsProvider = &KeyFileProvider{} +// GetClientCredentials loads client credentials from the configured key file source. func (k *KeyFileProvider) GetClientCredentials() (*KeyFile, error) { var keyFile []byte var err error switch { case strings.HasPrefix(k.KeyFile, FILE): filename := strings.TrimPrefix(k.KeyFile, FILE) - keyFile, err = os.ReadFile(filename) + keyFile, err = os.ReadFile(filepath.Clean(filename)) case strings.HasPrefix(k.KeyFile, DATA): keyFile = []byte(strings.TrimPrefix(k.KeyFile, DATA)) case strings.HasPrefix(k.KeyFile, "data:"): @@ -80,10 +88,12 @@ func (k *KeyFileProvider) GetClientCredentials() (*KeyFile, error) { return &v, nil } +// KeyFileStructProvider provides client credentials from an in-memory KeyFile struct. type KeyFileStructProvider struct { KeyFile *KeyFile } +// GetClientCredentials returns the client credentials from the in-memory KeyFile. func (k *KeyFileStructProvider) GetClientCredentials() (*KeyFile, error) { if k.KeyFile == nil { return nil, fmt.Errorf("key file is nil") @@ -91,6 +101,7 @@ func (k *KeyFileStructProvider) GetClientCredentials() (*KeyFile, error) { return k.KeyFile, nil } +// NewClientCredentialsProviderFromKeyFileStruct creates a provider from an in-memory KeyFile. func NewClientCredentialsProviderFromKeyFileStruct(keyFile *KeyFile) *KeyFileStructProvider { return &KeyFileStructProvider{ KeyFile: keyFile, diff --git a/pkg/auth/oidc_endpoint_provider.go b/pkg/auth/oidc_endpoint_provider.go index 69c9ef1..62ecf1d 100644 --- a/pkg/auth/oidc_endpoint_provider.go +++ b/pkg/auth/oidc_endpoint_provider.go @@ -43,7 +43,7 @@ func GetOIDCWellKnownEndpointsFromIssuerURL(issuerURL string) (*OIDCWellKnownEnd if err != nil { return nil, errors.Wrapf(err, "could not get well known endpoints from url %s", u.String()) } - defer r.Body.Close() + defer func() { _ = r.Body.Close() }() var wkEndpoints OIDCWellKnownEndpoints err = json.NewDecoder(r.Body).Decode(&wkEndpoints) diff --git a/pkg/auth/store/keyring.go b/pkg/auth/store/keyring.go index ae09e2d..f2c47f2 100644 --- a/pkg/auth/store/keyring.go +++ b/pkg/auth/store/keyring.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package store provides token storage implementations for authentication credentials. +// It includes a KeyringStore implementation that uses the system keyring for secure storage. package store import ( @@ -25,6 +27,7 @@ import ( "k8s.io/utils/clock" ) +// KeyringStore provides secure token storage using the system keyring. type KeyringStore struct { kr keyring.Keyring clock clock.Clock @@ -48,6 +51,7 @@ func NewKeyringStore(kr keyring.Keyring) (*KeyringStore, error) { var _ Store = &KeyringStore{} +// SaveGrant saves an authorization grant to the keyring. func (f *KeyringStore) SaveGrant(audience string, grant auth.AuthorizationGrant) error { f.lock.Lock() defer f.lock.Unlock() @@ -75,6 +79,7 @@ func (f *KeyringStore) SaveGrant(audience string, grant auth.AuthorizationGrant) return nil } +// LoadGrant loads an authorization grant from the keyring. func (f *KeyringStore) LoadGrant(audience string) (*auth.AuthorizationGrant, error) { f.lock.Lock() defer f.lock.Unlock() @@ -97,6 +102,7 @@ func (f *KeyringStore) LoadGrant(audience string) (*auth.AuthorizationGrant, err return &item.Grant, nil } +// WhoAmI returns the username associated with the grant for the given audience. func (f *KeyringStore) WhoAmI(audience string) (string, error) { f.lock.Lock() defer f.lock.Unlock() @@ -132,6 +138,7 @@ func (f *KeyringStore) WhoAmI(audience string) (string, error) { return label, err } +// Logout removes all stored grants from the keyring. func (f *KeyringStore) Logout() error { f.lock.Lock() defer f.lock.Unlock() diff --git a/pkg/cmd/mcp/mcp.go b/pkg/cmd/mcp/mcp.go index 0080f7c..f457cb0 100644 --- a/pkg/cmd/mcp/mcp.go +++ b/pkg/cmd/mcp/mcp.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package mcp provides CLI commands for the MCP server. package mcp import ( @@ -38,18 +39,20 @@ type ServerOptions struct { *config.Options } +// NewMcpServerOptions creates ServerOptions with the provided config. func NewMcpServerOptions(configOpts *config.Options) *ServerOptions { return &ServerOptions{ Options: configOpts, } } +// Complete finalizes server options after loading configuration. func (o *ServerOptions) Complete() error { if err := o.Options.Complete(); err != nil { return err } - snConfig := o.Options.LoadConfigOrDie() + snConfig := o.LoadConfigOrDie() // If the key file is provided, use it to authenticate to StreamNative Cloud switch { @@ -68,7 +71,7 @@ func (o *ServerOptions) Complete() error { } // persist the authorization data - if err = o.Options.SaveGrant(issuer.Audience, *grant); err != nil { + if err = o.SaveGrant(issuer.Audience, *grant); err != nil { return errors.Wrap(err, "Unable to store the authorization data") } @@ -107,6 +110,7 @@ func (o *ServerOptions) Complete() error { return nil } +// AddFlags registers command flags for the server options. func (o *ServerOptions) AddFlags(cmd *cobra.Command) { cmd.PersistentFlags().BoolVarP(&o.ReadOnly, "read-only", "r", false, "Read-only mode") cmd.PersistentFlags().StringVar(&o.LogFile, "log-file", "", "Path to log file") diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 5de74c8..1e37132 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -29,14 +29,14 @@ import ( ) func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *logrus.Logger) (*mcp.Server, error) { - snConfig := configOpts.Options.LoadConfigOrDie() + snConfig := configOpts.LoadConfigOrDie() var s *server.MCPServer var mcpServer *mcp.Server switch { case snConfig.KeyFile != "": { issuer := snConfig.Auth.Issuer() - userName, err := configOpts.Options.WhoAmI(issuer.Audience) + userName, err := configOpts.WhoAmI(issuer.Audience) if err != nil { stdlog.Fatalf("failed to get user name: %v", err) os.Exit(1) diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go index 2620f3a..769f27b 100644 --- a/pkg/cmd/mcp/sse.go +++ b/pkg/cmd/mcp/sse.go @@ -29,12 +29,12 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/mcp" - context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp" + mcpctx "github.com/streamnative/streamnative-mcp-server/pkg/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/session" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) +// NewCmdMcpSseServer builds the SSE server command. func NewCmdMcpSseServer(configOpts *ServerOptions) *cobra.Command { sseCmd := &cobra.Command{ Use: "sse", @@ -76,12 +76,12 @@ func runSseServer(configOpts *ServerOptions) error { } // 4. Set the context - ctx = context2.WithSNCloudSession(ctx, mcpServer.SNCloudSession) - ctx = context2.WithPulsarSession(ctx, mcpServer.PulsarSession) - ctx = context2.WithKafkaSession(ctx, mcpServer.KafkaSession) - if configOpts.Options.KeyFile != "" { - if configOpts.Options.PulsarInstance != "" && configOpts.Options.PulsarCluster != "" { - err = mcp.SetContext(ctx, configOpts.Options, configOpts.Options.PulsarInstance, configOpts.Options.PulsarCluster) + ctx = mcpctx.WithSNCloudSession(ctx, mcpServer.SNCloudSession) + ctx = mcpctx.WithPulsarSession(ctx, mcpServer.PulsarSession) + ctx = mcpctx.WithKafkaSession(ctx, mcpServer.KafkaSession) + if configOpts.KeyFile != "" { + if configOpts.PulsarInstance != "" && configOpts.PulsarCluster != "" { + err = mcpctx.SetContext(ctx, configOpts.Options, configOpts.PulsarInstance, configOpts.PulsarCluster) if err != nil { return errors.Wrap(err, "failed to set StreamNative Cloud context") } @@ -94,7 +94,7 @@ func runSseServer(configOpts *ServerOptions) error { // Create Pulsar session manager for multi-session support (only for external Pulsar mode) var pulsarSessionManager *session.PulsarSessionManager - snConfig := configOpts.Options.LoadConfigOrDie() + snConfig := configOpts.LoadConfigOrDie() if snConfig.ExternalPulsar != nil && configOpts.MultiSessionPulsar { managerConfig := &session.PulsarSessionManagerConfig{ MaxSessions: configOpts.SessionCacheSize, @@ -120,15 +120,15 @@ func runSseServer(configOpts *ServerOptions) error { server.WithStaticBasePath(configOpts.HTTPPath), server.WithSSEContextFunc(func(ctx context.Context, r *http.Request) context.Context { c := context.WithValue(ctx, common.OptionsKey, configOpts.Options) - c = context2.WithKafkaSession(c, mcpServer.KafkaSession) - c = context2.WithSNCloudSession(c, mcpServer.SNCloudSession) + c = mcpctx.WithKafkaSession(c, mcpServer.KafkaSession) + c = mcpctx.WithSNCloudSession(c, mcpServer.SNCloudSession) // Handle per-user Pulsar sessions if pulsarSessionManager != nil { token := session.ExtractBearerToken(r) // Token is already validated in auth middleware, this should always succeed if pulsarSession, err := pulsarSessionManager.GetOrCreateSession(ctx, token); err == nil { - c = context2.WithPulsarSession(c, pulsarSession) + c = mcpctx.WithPulsarSession(c, pulsarSession) if token != "" { c = session.WithUserTokenHash(c, pulsarSessionManager.HashTokenForLog(token)) } @@ -138,7 +138,7 @@ func runSseServer(configOpts *ServerOptions) error { // Don't set PulsarSession - tool handlers will fail gracefully with "session not found" } } else { - c = context2.WithPulsarSession(c, mcpServer.PulsarSession) + c = mcpctx.WithPulsarSession(c, mcpServer.PulsarSession) } return c diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index b06ecb6..e13232e 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -20,6 +20,7 @@ import ( "io" "os" "os/signal" + "path/filepath" "syscall" stdlog "log" @@ -31,6 +32,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/log" ) +// NewCmdMcpStdioServer builds the stdio server command. func NewCmdMcpStdioServer(configOpts *ServerOptions) *cobra.Command { stdioCmd := &cobra.Command{ Use: "stdio", @@ -110,7 +112,7 @@ func initLogger(filePath string) (*logrus.Logger, error) { return logrus.New(), nil } - fd, err := os.OpenFile(filePath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666) + fd, err := os.OpenFile(filepath.Clean(filePath), os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600) if err != nil { return nil, fmt.Errorf("failed to open log file: %w", err) } diff --git a/pkg/common/utils.go b/pkg/common/utils.go index 3d9d080..a119f75 100644 --- a/pkg/common/utils.go +++ b/pkg/common/utils.go @@ -12,7 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -package common +// Package common provides shared helpers for StreamNative MCP Server. +package common //nolint:revive import ( "context" @@ -25,8 +26,10 @@ import ( sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) +// ContextKey defines typed keys for context values. type ContextKey string +// Common constants used for context keys and token handling. const ( OptionsKey ContextKey = "snmcp-options" AnnotationStreamNativeCloudEngine = "cloud.streamnative.io/engine" @@ -73,7 +76,7 @@ func RequiredParam[T comparable](arguments map[string]interface{}, p string) (T, return arguments[p].(T), nil } -// Helper function to get an optional parameter from the request +// OptionalParam returns an optional parameter from the request. func OptionalParam[T any](arguments map[string]interface{}, paramName string) (T, bool) { var empty T param, ok := arguments[paramName] @@ -89,7 +92,7 @@ func OptionalParam[T any](arguments map[string]interface{}, paramName string) (T return value, true } -// Helper function to get a required array parameter from the request +// RequiredParamArray returns a required array parameter from the request. func RequiredParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, error) { var empty []T param, ok := arguments[paramName] @@ -114,6 +117,7 @@ func RequiredParamArray[T any](arguments map[string]interface{}, paramName strin return result, nil } +// OptionalParamArray returns an optional array parameter from the request. func OptionalParamArray[T any](arguments map[string]interface{}, paramName string) ([]T, bool) { var empty []T param, ok := arguments[paramName] @@ -161,7 +165,7 @@ func OptionalParamConfigs(arguments map[string]interface{}, paramName string) ([ return result, true } -// RequiredParamObject gets a required object parameter from the request +// RequiredParamObject returns a required object parameter from the request. func RequiredParamObject(arguments map[string]interface{}, name string) (map[string]interface{}, error) { // Get the parameter value paramValue, found := arguments[name] @@ -177,6 +181,7 @@ func RequiredParamObject(arguments map[string]interface{}, name string) (map[str return nil, fmt.Errorf("%s parameter must be an object", name) } +// OptionalParamObject returns an optional object parameter from the request. func OptionalParamObject(arguments map[string]interface{}, name string) (map[string]interface{}, bool) { paramValue, found := arguments[name] if !found || paramValue == nil { @@ -190,6 +195,7 @@ func OptionalParamObject(arguments map[string]interface{}, name string) (map[str return nil, false } +// GetOptions extracts the config options from the context. func GetOptions(ctx context.Context) *config.Options { return ctx.Value(OptionsKey).(*config.Options) } @@ -220,6 +226,7 @@ func GetEngineType(cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisClo return "classic" } +// ConvertToMapInterface converts a map of strings to a map of interface values. func ConvertToMapInterface(m map[string]string) map[string]interface{} { result := make(map[string]interface{}) for k, v := range m { @@ -228,6 +235,7 @@ func ConvertToMapInterface(m map[string]string) map[string]interface{} { return result } +// ConvertToMapString converts a map of interface values to a map of strings. func ConvertToMapString(m map[string]interface{}) map[string]string { result := make(map[string]string) for k, v := range m { @@ -244,6 +252,7 @@ func IsInstanceValid(instance sncloud.ComGithubStreamnativeCloudApiServerPkgApis instance.Status.Auth.Oauth2.Audience != "" } +// HasCachedValidToken returns whether the cached grant has a valid token. func HasCachedValidToken(cachedGrant *auth.AuthorizationGrant) (bool, error) { if cachedGrant == nil || cachedGrant.Token == nil { return false, nil @@ -253,6 +262,7 @@ func HasCachedValidToken(cachedGrant *auth.AuthorizationGrant) (bool, error) { return cachedGrant.Token.Valid(), nil } +// IsTokenAboutToExpire reports whether the token expires within the window. func IsTokenAboutToExpire(cachedGrant *auth.AuthorizationGrant, window time.Duration) (bool, error) { if cachedGrant == nil || cachedGrant.Token == nil { return true, nil diff --git a/pkg/config/apiclient.go b/pkg/config/apiclient.go index 7f122d2..8393fc8 100644 --- a/pkg/config/apiclient.go +++ b/pkg/config/apiclient.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package config provides configuration loading and client setup helpers. package config import ( diff --git a/pkg/config/auth.go b/pkg/config/auth.go index e605a50..c7656b9 100644 --- a/pkg/config/auth.go +++ b/pkg/config/auth.go @@ -24,10 +24,13 @@ import ( ) const ( - ServiceName = "StreamNativeMCP" + // ServiceName is the name used for keyring service. + ServiceName = "StreamNativeMCP" + // KeychainName is the name of the macOS keychain. KeychainName = "snmcp" ) +// AuthOptions provides configuration options for authentication. type AuthOptions struct { BackendOverride string storage Storage @@ -37,15 +40,18 @@ type AuthOptions struct { store.Store } +// NewDefaultAuthOptions creates a new AuthOptions with default values. func NewDefaultAuthOptions() AuthOptions { return AuthOptions{} } +// AddFlags registers authentication flags on the command. func (o *AuthOptions) AddFlags(cmd *cobra.Command) { cmd.PersistentFlags().StringVar(&o.BackendOverride, "keyring-backend", "", "If present, the backend to use") } +// Complete initializes the auth backend using the provided storage. func (o *AuthOptions) Complete(storage Storage) error { o.storage = storage kr, err := o.makeKeyring() diff --git a/pkg/config/config.go b/pkg/config/config.go index 2084e0f..e21de1d 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -21,6 +21,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/auth" ) +// SnConfig holds the StreamNative MCP Server configuration. type SnConfig struct { // the API server endpoint Server string `yaml:"server"` @@ -40,6 +41,7 @@ type SnConfig struct { ExternalPulsar *ExternalPulsar `yaml:"external-pulsar"` } +// Auth holds authentication configuration for the StreamNative API. type Auth struct { // the OAuth 2.0 issuer endpoint IssuerEndpoint string `yaml:"issuer"` @@ -49,11 +51,12 @@ type Auth struct { ClientID string `yaml:"client-id"` } +// Validate validates the auth configuration fields. func (a *Auth) Validate() error { - if !(isValidIssuer(a.IssuerEndpoint) && isValidClientID(a.ClientID) && isValidAudience(a.Audience)) { - return errors.New("configuration error: auth section is incomplete or invalid") + if isValidIssuer(a.IssuerEndpoint) && isValidClientID(a.ClientID) && isValidAudience(a.Audience) { + return nil } - return nil + return errors.New("configuration error: auth section is incomplete or invalid") } func isValidIssuer(iss string) bool { @@ -69,6 +72,7 @@ func isValidAudience(aud string) bool { return aud != "" } +// Issuer builds an auth.Issuer from the configuration. func (a *Auth) Issuer() auth.Issuer { return auth.Issuer{ IssuerEndpoint: a.IssuerEndpoint, @@ -77,12 +81,14 @@ func (a *Auth) Issuer() auth.Issuer { } } +// Context holds the default context for cluster connections. type Context struct { Organization string `yaml:"organization,omitempty"` PulsarInstance string `yaml:"pulsar-instance,omitempty"` PulsarCluster string `yaml:"pulsar-cluster,omitempty"` } +// Storage defines the interface for persisting configuration and credentials. type Storage interface { // Gets the config directory for configuration files, credentials and caches GetConfigDirectory() string diff --git a/pkg/config/external_kafka.go b/pkg/config/external_kafka.go index 19d73ec..a87c9bb 100644 --- a/pkg/config/external_kafka.go +++ b/pkg/config/external_kafka.go @@ -14,6 +14,7 @@ package config +// ExternalKafka holds connection settings for an external Kafka cluster. type ExternalKafka struct { BootstrapServers string AuthType string diff --git a/pkg/config/external_pulsar.go b/pkg/config/external_pulsar.go index 19487dd..0e9ff32 100644 --- a/pkg/config/external_pulsar.go +++ b/pkg/config/external_pulsar.go @@ -14,6 +14,7 @@ package config +// ExternalPulsar holds connection settings for an external Pulsar cluster. type ExternalPulsar struct { ServiceURL string WebServiceURL string diff --git a/pkg/config/options.go b/pkg/config/options.go index bd5cbcc..c018512 100644 --- a/pkg/config/options.go +++ b/pkg/config/options.go @@ -27,15 +27,22 @@ import ( ) const ( - EnvConfigDir = "SNMCP_CONFIG_DIR" - GlobalDefaultIssuer = "https://auth.streamnative.cloud/" - GlobalDefaultClientID = "AJYEdHWi9EFekEaUXkPWA2MqQ3lq1NrI" - GlobalDefaultAudience = "https://api.streamnative.cloud" - GlobalDefaultAPIServer = "https://api.streamnative.cloud" + // EnvConfigDir overrides the default config directory. + EnvConfigDir = "SNMCP_CONFIG_DIR" + // GlobalDefaultIssuer is the default OAuth2 issuer. + GlobalDefaultIssuer = "https://auth.streamnative.cloud/" + // GlobalDefaultClientID is the default OAuth2 client ID. + GlobalDefaultClientID = "AJYEdHWi9EFekEaUXkPWA2MqQ3lq1NrI" + // GlobalDefaultAudience is the default OAuth2 audience. + GlobalDefaultAudience = "https://api.streamnative.cloud" + // GlobalDefaultAPIServer is the default API server URL. + GlobalDefaultAPIServer = "https://api.streamnative.cloud" + // GlobalDefaultProxyLocation is the default proxy URL. GlobalDefaultProxyLocation = "https://proxy.streamnative.cloud" - GlobalDefaultLogLocation = "https://log.streamnative.cloud" + // GlobalDefaultLogLocation is the default log API URL. + GlobalDefaultLogLocation = "https://log.streamnative.cloud" - // Environment variable prefix + // EnvPrefix is the environment variable prefix. EnvPrefix = "SNMCP" ) @@ -162,42 +169,42 @@ func (o *Options) AddFlags(cmd *cobra.Command) { o.AuthOptions.AddFlags(cmd) // Bind command line flags to viper - viper.BindPFlag("config-dir", cmd.PersistentFlags().Lookup("config-dir")) - viper.BindPFlag("key-file", cmd.PersistentFlags().Lookup("key-file")) - viper.BindPFlag("server", cmd.PersistentFlags().Lookup("server")) - viper.BindPFlag("issuer", cmd.PersistentFlags().Lookup("issuer")) - viper.BindPFlag("audience", cmd.PersistentFlags().Lookup("audience")) - viper.BindPFlag("client-id", cmd.PersistentFlags().Lookup("client-id")) - viper.BindPFlag("organization", cmd.PersistentFlags().Lookup("organization")) - viper.BindPFlag("proxy-location", cmd.PersistentFlags().Lookup("proxy-location")) - viper.BindPFlag("log-location", cmd.PersistentFlags().Lookup("log-location")) - viper.BindPFlag("pulsar-instance", cmd.PersistentFlags().Lookup("pulsar-instance")) - viper.BindPFlag("pulsar-cluster", cmd.PersistentFlags().Lookup("pulsar-cluster")) - viper.BindPFlag("use-external-kafka", cmd.PersistentFlags().Lookup("use-external-kafka")) - viper.BindPFlag("use-external-pulsar", cmd.PersistentFlags().Lookup("use-external-pulsar")) - viper.BindPFlag("kafka-bootstrap-servers", cmd.PersistentFlags().Lookup("kafka-bootstrap-servers")) - viper.BindPFlag("kafka-schema-registry-url", cmd.PersistentFlags().Lookup("kafka-schema-registry-url")) - viper.BindPFlag("kafka-auth-type", cmd.PersistentFlags().Lookup("kafka-auth-type")) - viper.BindPFlag("kafka-auth-mechanism", cmd.PersistentFlags().Lookup("kafka-auth-mechanism")) - viper.BindPFlag("kafka-auth-user", cmd.PersistentFlags().Lookup("kafka-auth-user")) - viper.BindPFlag("kafka-auth-pass", cmd.PersistentFlags().Lookup("kafka-auth-pass")) - viper.BindPFlag("kafka-use-tls", cmd.PersistentFlags().Lookup("kafka-use-tls")) - viper.BindPFlag("kafka-client-key-file", cmd.PersistentFlags().Lookup("kafka-client-key-file")) - viper.BindPFlag("kafka-client-cert-file", cmd.PersistentFlags().Lookup("kafka-client-cert-file")) - viper.BindPFlag("kafka-ca-file", cmd.PersistentFlags().Lookup("kafka-ca-file")) - viper.BindPFlag("kafka-schema-registry-auth-user", cmd.PersistentFlags().Lookup("kafka-schema-registry-auth-user")) - viper.BindPFlag("kafka-schema-registry-auth-pass", cmd.PersistentFlags().Lookup("kafka-schema-registry-auth-pass")) - viper.BindPFlag("kafka-schema-registry-bearer-token", cmd.PersistentFlags().Lookup("kafka-schema-registry-bearer-token")) - viper.BindPFlag("pulsar-web-service-url", cmd.PersistentFlags().Lookup("pulsar-web-service-url")) - viper.BindPFlag("pulsar-service-url", cmd.PersistentFlags().Lookup("pulsar-service-url")) - viper.BindPFlag("pulsar-auth-plugin", cmd.PersistentFlags().Lookup("pulsar-auth-plugin")) - viper.BindPFlag("pulsar-auth-params", cmd.PersistentFlags().Lookup("pulsar-auth-params")) - viper.BindPFlag("pulsar-tls-allow-insecure-connection", cmd.PersistentFlags().Lookup("pulsar-tls-allow-insecure-connection")) - viper.BindPFlag("pulsar-tls-enable-hostname-verification", cmd.PersistentFlags().Lookup("pulsar-tls-enable-hostname-verification")) - viper.BindPFlag("pulsar-tls-trust-certs-file-path", cmd.PersistentFlags().Lookup("pulsar-tls-trust-certs-file-path")) - viper.BindPFlag("pulsar-tls-cert-file", cmd.PersistentFlags().Lookup("pulsar-tls-cert-file")) - viper.BindPFlag("pulsar-tls-key-file", cmd.PersistentFlags().Lookup("pulsar-tls-key-file")) - viper.BindPFlag("pulsar-token", cmd.PersistentFlags().Lookup("pulsar-token")) + _ = viper.BindPFlag("config-dir", cmd.PersistentFlags().Lookup("config-dir")) + _ = viper.BindPFlag("key-file", cmd.PersistentFlags().Lookup("key-file")) + _ = viper.BindPFlag("server", cmd.PersistentFlags().Lookup("server")) + _ = viper.BindPFlag("issuer", cmd.PersistentFlags().Lookup("issuer")) + _ = viper.BindPFlag("audience", cmd.PersistentFlags().Lookup("audience")) + _ = viper.BindPFlag("client-id", cmd.PersistentFlags().Lookup("client-id")) + _ = viper.BindPFlag("organization", cmd.PersistentFlags().Lookup("organization")) + _ = viper.BindPFlag("proxy-location", cmd.PersistentFlags().Lookup("proxy-location")) + _ = viper.BindPFlag("log-location", cmd.PersistentFlags().Lookup("log-location")) + _ = viper.BindPFlag("pulsar-instance", cmd.PersistentFlags().Lookup("pulsar-instance")) + _ = viper.BindPFlag("pulsar-cluster", cmd.PersistentFlags().Lookup("pulsar-cluster")) + _ = viper.BindPFlag("use-external-kafka", cmd.PersistentFlags().Lookup("use-external-kafka")) + _ = viper.BindPFlag("use-external-pulsar", cmd.PersistentFlags().Lookup("use-external-pulsar")) + _ = viper.BindPFlag("kafka-bootstrap-servers", cmd.PersistentFlags().Lookup("kafka-bootstrap-servers")) + _ = viper.BindPFlag("kafka-schema-registry-url", cmd.PersistentFlags().Lookup("kafka-schema-registry-url")) + _ = viper.BindPFlag("kafka-auth-type", cmd.PersistentFlags().Lookup("kafka-auth-type")) + _ = viper.BindPFlag("kafka-auth-mechanism", cmd.PersistentFlags().Lookup("kafka-auth-mechanism")) + _ = viper.BindPFlag("kafka-auth-user", cmd.PersistentFlags().Lookup("kafka-auth-user")) + _ = viper.BindPFlag("kafka-auth-pass", cmd.PersistentFlags().Lookup("kafka-auth-pass")) + _ = viper.BindPFlag("kafka-use-tls", cmd.PersistentFlags().Lookup("kafka-use-tls")) + _ = viper.BindPFlag("kafka-client-key-file", cmd.PersistentFlags().Lookup("kafka-client-key-file")) + _ = viper.BindPFlag("kafka-client-cert-file", cmd.PersistentFlags().Lookup("kafka-client-cert-file")) + _ = viper.BindPFlag("kafka-ca-file", cmd.PersistentFlags().Lookup("kafka-ca-file")) + _ = viper.BindPFlag("kafka-schema-registry-auth-user", cmd.PersistentFlags().Lookup("kafka-schema-registry-auth-user")) + _ = viper.BindPFlag("kafka-schema-registry-auth-pass", cmd.PersistentFlags().Lookup("kafka-schema-registry-auth-pass")) + _ = viper.BindPFlag("kafka-schema-registry-bearer-token", cmd.PersistentFlags().Lookup("kafka-schema-registry-bearer-token")) + _ = viper.BindPFlag("pulsar-web-service-url", cmd.PersistentFlags().Lookup("pulsar-web-service-url")) + _ = viper.BindPFlag("pulsar-service-url", cmd.PersistentFlags().Lookup("pulsar-service-url")) + _ = viper.BindPFlag("pulsar-auth-plugin", cmd.PersistentFlags().Lookup("pulsar-auth-plugin")) + _ = viper.BindPFlag("pulsar-auth-params", cmd.PersistentFlags().Lookup("pulsar-auth-params")) + _ = viper.BindPFlag("pulsar-tls-allow-insecure-connection", cmd.PersistentFlags().Lookup("pulsar-tls-allow-insecure-connection")) + _ = viper.BindPFlag("pulsar-tls-enable-hostname-verification", cmd.PersistentFlags().Lookup("pulsar-tls-enable-hostname-verification")) + _ = viper.BindPFlag("pulsar-tls-trust-certs-file-path", cmd.PersistentFlags().Lookup("pulsar-tls-trust-certs-file-path")) + _ = viper.BindPFlag("pulsar-tls-cert-file", cmd.PersistentFlags().Lookup("pulsar-tls-cert-file")) + _ = viper.BindPFlag("pulsar-tls-key-file", cmd.PersistentFlags().Lookup("pulsar-tls-key-file")) + _ = viper.BindPFlag("pulsar-token", cmd.PersistentFlags().Lookup("pulsar-token")) } // Complete completes options from the provided values @@ -212,7 +219,7 @@ func (o *Options) Complete() error { o.ConfigDir = filepath.Join(home, ".snmcp") } if _, err := os.Stat(o.ConfigDir); os.IsNotExist(err) { - err := os.MkdirAll(o.ConfigDir, 0755) + err := os.MkdirAll(o.ConfigDir, 0750) if err != nil { return fmt.Errorf("failed to create config directory: %w", err) } @@ -405,10 +412,12 @@ func (o *Options) Complete() error { return nil } +// GetConfigDirectory returns the directory used for configuration data. func (o *Options) GetConfigDirectory() string { return o.ConfigDir } +// LoadConfig loads configuration from the current in-memory options. func (o *Options) LoadConfig() (*SnConfig, error) { config := &SnConfig{ Server: o.Server, @@ -435,11 +444,13 @@ func (o *Options) LoadConfig() (*SnConfig, error) { return config, nil } +// LoadConfigOrDie loads configuration and ignores errors. func (o *Options) LoadConfigOrDie() *SnConfig { cfg, _ := o.LoadConfig() return cfg } +// SaveConfig persists configuration to disk. func (o *Options) SaveConfig(config *SnConfig) error { data, err := yaml.Marshal(config) if err != nil { diff --git a/pkg/kafka/connection.go b/pkg/kafka/connection.go index 6db0d48..380a4d2 100644 --- a/pkg/kafka/connection.go +++ b/pkg/kafka/connection.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package kafka provides Kafka connection and client helpers. package kafka import ( @@ -80,12 +81,14 @@ func NewSession(ctx KafkaContext) (*Session, error) { return session, nil } +// SASLConfig holds SASL authentication configuration. type SASLConfig struct { Mechanism string Username string Password string } +// TLSConfig holds TLS configuration for Kafka connections. type TLSConfig struct { Enabled bool ClientKeyFile string @@ -116,7 +119,7 @@ func tlsOpt(config *TLSConfig, opts []kgo.Opt) ([]kgo.Opt, error) { func saslOpt(config *SASLConfig, opts []kgo.Opt) ([]kgo.Opt, error) { if config.Mechanism != "" || config.Username != "" || config.Password != "" { if config.Mechanism == "" || config.Username == "" || config.Password == "" { - return nil, fmt.Errorf("All of Mechanism, Username, and Password must be specified if any are") + return nil, fmt.Errorf("all of Mechanism, Username, and Password must be specified if any are") } method := strings.ToLower(config.Mechanism) method = strings.ReplaceAll(method, "-", "") @@ -144,6 +147,7 @@ func saslOpt(config *SASLConfig, opts []kgo.Opt) ([]kgo.Opt, error) { return opts, nil } +// SetKafkaContext initializes Kafka clients using the provided context. func (s *Session) SetKafkaContext(ctx KafkaContext) error { s.Ctx = ctx kc := &s.Ctx @@ -205,6 +209,7 @@ func (s *Session) SetKafkaContext(ctx KafkaContext) error { return nil } +// GetClient returns a Kafka client with optional overrides. func (s *Session) GetClient(opts ...kgo.Opt) (*kgo.Client, error) { s.mutex.Lock() defer s.mutex.Unlock() @@ -230,6 +235,7 @@ func (s *Session) GetClient(opts ...kgo.Opt) (*kgo.Client, error) { return s.Client, nil } +// GetAdminClient returns the Kafka admin client. func (s *Session) GetAdminClient() (*kadm.Client, error) { s.mutex.Lock() defer s.mutex.Unlock() @@ -248,6 +254,7 @@ func (s *Session) GetAdminClient() (*kadm.Client, error) { return s.AdminClient, nil } +// GetSchemaRegistryClient returns the schema registry client. func (s *Session) GetSchemaRegistryClient() (*sr.Client, error) { if s.Ctx.SchemaRegistryURL == "" { return nil, fmt.Errorf("schema registry not enabled on the current context") @@ -276,6 +283,7 @@ func (s *Session) GetSchemaRegistryClient() (*sr.Client, error) { return s.SchemaRegistryClient, nil } +// GetConnectClient returns the Kafka Connect client. func (s *Session) GetConnectClient() (Connect, error) { if s.Ctx.ConnectURL == "" { return nil, fmt.Errorf("kafka connect not enabled on the current context") diff --git a/pkg/kafka/kafkaconnect.go b/pkg/kafka/kafkaconnect.go index 8819aa2..bd4c467 100644 --- a/pkg/kafka/kafkaconnect.go +++ b/pkg/kafka/kafkaconnect.go @@ -192,7 +192,7 @@ func (c *connectImpl) ListConnectors(_ context.Context) ([]string, error) { if err != nil { return nil, fmt.Errorf("failed to list connectors: %w", err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() // Parse response body body, err := io.ReadAll(resp.Body) @@ -247,7 +247,7 @@ func (c *connectImpl) CreateConnector(_ context.Context, name string, config map if err != nil { return nil, fmt.Errorf("failed to create connector: %w", err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() // Parse response body body, err := io.ReadAll(resp.Body) @@ -298,7 +298,7 @@ func (c *connectImpl) UpdateConnector(_ context.Context, name string, config map if err != nil { return nil, fmt.Errorf("failed to update connector: %w", err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() // Parse response body body, err := io.ReadAll(resp.Body) @@ -393,7 +393,7 @@ func (c *connectImpl) GetConnectorStatus(_ context.Context, name string) (*Conne if err != nil { return nil, fmt.Errorf("failed to get connector status: %w", err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() // Parse response body body, err := io.ReadAll(resp.Body) @@ -448,7 +448,7 @@ func (c *connectImpl) GetConnectorTasks(_ context.Context, name string) ([]TaskI if err != nil { return nil, fmt.Errorf("failed to get connector tasks: %w", err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() // Parse response body body, err := io.ReadAll(resp.Body) @@ -489,7 +489,7 @@ func (c *connectImpl) ListPlugins(_ context.Context) ([]PluginInfo, error) { if err != nil { return nil, fmt.Errorf("failed to list connector plugins: %w", err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() // Parse response body body, err := io.ReadAll(resp.Body) @@ -536,7 +536,7 @@ func (c *connectImpl) ValidateConfig(_ context.Context, pluginClass string, conf if err != nil { return nil, fmt.Errorf("failed to validate connector config: %w", err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() // Parse response body body, err := io.ReadAll(resp.Body) diff --git a/pkg/log/io.go b/pkg/log/io.go index 4c831fe..8ebcb3a 100644 --- a/pkg/log/io.go +++ b/pkg/log/io.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package log provides logging utilities for StreamNative MCP Server. package log import ( diff --git a/pkg/mcp/auth_utils.go b/pkg/mcp/auth_utils.go index a5204f1..319c48d 100644 --- a/pkg/mcp/auth_utils.go +++ b/pkg/mcp/auth_utils.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package mcp contains core MCP server integrations and tools. package mcp import ( @@ -22,6 +23,7 @@ import ( ) const ( + // DefaultPulsarPort is the default Pulsar protocol port. DefaultPulsarPort = 6651 ) diff --git a/pkg/mcp/builders/base.go b/pkg/mcp/builders/base.go index bab722a..61411a8 100644 --- a/pkg/mcp/builders/base.go +++ b/pkg/mcp/builders/base.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package builders provides common interfaces and helpers for MCP tool builders. package builders import ( diff --git a/pkg/mcp/builders/kafka/connect.go b/pkg/mcp/builders/kafka/connect.go index 43d1218..8ba16b8 100644 --- a/pkg/mcp/builders/kafka/connect.go +++ b/pkg/mcp/builders/kafka/connect.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package kafka provides Kafka MCP tool builders. package kafka import ( diff --git a/pkg/mcp/builders/pulsar/brokers.go b/pkg/mcp/builders/pulsar/brokers.go index 233b1fb..6a81fd3 100644 --- a/pkg/mcp/builders/pulsar/brokers.go +++ b/pkg/mcp/builders/pulsar/brokers.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package pulsar provides MCP tool builders for Pulsar admin operations. package pulsar import ( diff --git a/pkg/mcp/builders/pulsar/consume.go b/pkg/mcp/builders/pulsar/consume.go index 52d7763..e625532 100644 --- a/pkg/mcp/builders/pulsar/consume.go +++ b/pkg/mcp/builders/pulsar/consume.go @@ -245,12 +245,7 @@ func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(contex messageCount := 0 // Consume messages - for { - // Check if we've consumed the requested number of messages - if numMessages > 0 && messageCount >= numMessages { - break - } - + for numMessages <= 0 || messageCount < numMessages { // Receive message with timeout msg, err := consumer.Receive(consumeCtx) if err != nil { diff --git a/pkg/mcp/builders/pulsar/schema.go b/pkg/mcp/builders/pulsar/schema.go index 8bf4de3..13fc41a 100644 --- a/pkg/mcp/builders/pulsar/schema.go +++ b/pkg/mcp/builders/pulsar/schema.go @@ -20,6 +20,7 @@ import ( "encoding/json" "fmt" "os" + "path/filepath" "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" @@ -264,7 +265,7 @@ func (b *PulsarAdminSchemaToolBuilder) handleSchemaUpload(admin cmdutils.Client, // Read and parse the schema file var payload utils.PostSchemaPayload - file, err := os.ReadFile(filename) + file, err := os.ReadFile(filepath.Clean(filename)) if err != nil { return mcp.NewToolResultError(fmt.Sprintf("Failed to read schema file '%s': %v", filename, err)), nil } diff --git a/pkg/mcp/builders/registry_test.go b/pkg/mcp/builders/registry_test.go index a4de66b..766c266 100644 --- a/pkg/mcp/builders/registry_test.go +++ b/pkg/mcp/builders/registry_test.go @@ -148,8 +148,7 @@ func TestToolRegistry(t *testing.T) { registry := NewToolRegistry() builder := NewMockToolBuilder("panic_tool", []string{"feature"}) - ///nolint:errcheck - registry.Register(builder) // First registration + _ = registry.Register(builder) // First registration assert.Panics(t, func() { registry.MustRegister(builder) // Duplicate registration should panic }) @@ -158,8 +157,7 @@ func TestToolRegistry(t *testing.T) { t.Run("GetBuilder_Success", func(t *testing.T) { registry := NewToolRegistry() builder := NewMockToolBuilder("get_test_tool", []string{"feature"}) - ///nolint:errcheck - registry.Register(builder) + _ = registry.Register(builder) retrieved, exists := registry.GetBuilder("get_test_tool") assert.True(t, exists) @@ -178,10 +176,8 @@ func TestToolRegistry(t *testing.T) { builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) - ///nolint:errcheck - registry.Register(builder1) - ///nolint:errcheck - registry.Register(builder2) + _ = registry.Register(builder1) + _ = registry.Register(builder2) names := registry.ListBuilders() assert.Len(t, names, 2) @@ -194,8 +190,7 @@ func TestToolRegistry(t *testing.T) { t.Run("GetMetadata", func(t *testing.T) { registry := NewToolRegistry() builder := NewMockToolBuilder("metadata_tool", []string{"feature"}) - ///nolint:errcheck - registry.Register(builder) + _ = registry.Register(builder) metadata, exists := registry.GetMetadata("metadata_tool") assert.True(t, exists) @@ -208,10 +203,8 @@ func TestToolRegistry(t *testing.T) { builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) - ///nolint:errcheck - registry.Register(builder1) - ///nolint:errcheck - registry.Register(builder2) + _ = registry.Register(builder1) + _ = registry.Register(builder2) metadata := registry.ListMetadata() assert.Len(t, metadata, 2) @@ -222,8 +215,7 @@ func TestToolRegistry(t *testing.T) { t.Run("BuildSingle_Success", func(t *testing.T) { registry := NewToolRegistry() builder := NewMockToolBuilder("single_tool", []string{"test_feature"}) - ///nolint:errcheck - registry.Register(builder) + _ = registry.Register(builder) config := ToolBuildConfig{ Features: []string{"test_feature"}, @@ -250,8 +242,7 @@ func TestToolRegistry(t *testing.T) { t.Run("BuildSingle_ValidationFailed", func(t *testing.T) { registry := NewToolRegistry() builder := NewMockToolBuilder("validation_tool", []string{"required_feature"}) - ///nolint:errcheck - registry.Register(builder) + _ = registry.Register(builder) config := ToolBuildConfig{ Features: []string{"wrong_feature"}, @@ -267,10 +258,8 @@ func TestToolRegistry(t *testing.T) { builder1 := NewMockToolBuilder("tool1", []string{"feature1"}) builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) - ///nolint:errcheck - registry.Register(builder1) - ///nolint:errcheck - registry.Register(builder2) + _ = registry.Register(builder1) + _ = registry.Register(builder2) configs := map[string]ToolBuildConfig{ "tool1": {Features: []string{"feature1"}}, @@ -289,10 +278,8 @@ func TestToolRegistry(t *testing.T) { builder2.SetError(fmt.Errorf("build error")) - ///nolint:errcheck - registry.Register(builder1) - ///nolint:errcheck - registry.Register(builder2) + _ = registry.Register(builder1) + _ = registry.Register(builder2) configs := map[string]ToolBuildConfig{ "tool1": {Features: []string{"feature1"}}, @@ -310,12 +297,9 @@ func TestToolRegistry(t *testing.T) { builder2 := NewMockToolBuilder("tool2", []string{"feature2"}) builder3 := NewMockToolBuilder("tool3", []string{"feature3"}) - ///nolint:errcheck - registry.Register(builder1) - ///nolint:errcheck - registry.Register(builder2) - ///nolint:errcheck - registry.Register(builder3) + _ = registry.Register(builder1) + _ = registry.Register(builder2) + _ = registry.Register(builder3) // Only provide feature1 and feature2 tools, err := registry.BuildAllWithFeatures(false, []string{"feature1", "feature2"}) @@ -326,8 +310,7 @@ func TestToolRegistry(t *testing.T) { t.Run("Clear", func(t *testing.T) { registry := NewToolRegistry() builder := NewMockToolBuilder("clear_tool", []string{"feature"}) - ///nolint:errcheck - registry.Register(builder) + _ = registry.Register(builder) assert.Equal(t, 1, registry.Count()) @@ -338,8 +321,7 @@ func TestToolRegistry(t *testing.T) { t.Run("Unregister", func(t *testing.T) { registry := NewToolRegistry() builder := NewMockToolBuilder("unregister_tool", []string{"feature"}) - ///nolint:errcheck - registry.Register(builder) + _ = registry.Register(builder) assert.Equal(t, 1, registry.Count()) diff --git a/pkg/mcp/features.go b/pkg/mcp/features.go index cfb0686..ddc2ea1 100644 --- a/pkg/mcp/features.go +++ b/pkg/mcp/features.go @@ -14,8 +14,10 @@ package mcp +// Feature represents a named capability flag for MCP tools. type Feature string +// Feature flags used to register MCP tools. const ( FeatureAll Feature = "all" FeatureAllKafka Feature = "all-kafka" diff --git a/pkg/mcp/instructions.go b/pkg/mcp/instructions.go index 8c670d1..4cc4825 100644 --- a/pkg/mcp/instructions.go +++ b/pkg/mcp/instructions.go @@ -20,6 +20,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/config" ) +// GetStreamNativeCloudServerInstructions renders instructions for StreamNative Cloud. func GetStreamNativeCloudServerInstructions(userName string, snConfig *config.SnConfig) string { contextInformation := "" if snConfig.Context.PulsarCluster != "" && snConfig.Context.PulsarInstance != "" { @@ -85,12 +86,14 @@ func GetStreamNativeCloudServerInstructions(userName string, snConfig *config.Sn Logged in as %s. %s`, userName, contextInformation) } +// GetExternalKafkaServerInstructions renders instructions for external Kafka. func GetExternalKafkaServerInstructions(bootstrapServers string) string { return fmt.Sprintf(`StreamNative Cloud MCP Server provides resources and tools for AI agents to interact with Kafka resources and services. Bootstrap servers: %s`, bootstrapServers) } +// GetExternalPulsarServerInstructions renders instructions for external Pulsar. func GetExternalPulsarServerInstructions(webServiceURL string) string { return fmt.Sprintf(`StreamNative Cloud MCP Server provides resources and tools for AI agents to interact with Pulsar resources and services. diff --git a/pkg/mcp/internal/context/ctx.go b/pkg/mcp/internal/context/ctx.go index 27d6cc2..3008d4f 100644 --- a/pkg/mcp/internal/context/ctx.go +++ b/pkg/mcp/internal/context/ctx.go @@ -12,7 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -package context +// Package context provides internal context helpers for MCP sessions. +package context //nolint:revive import ( "context" @@ -24,6 +25,7 @@ import ( type contextKey string +// Context keys for StreamNative sessions and identifiers. const ( SNCloudOrganizationContextKey contextKey = "sncloud_organization" SNCloudInstanceContextKey contextKey = "sncloud_instance" diff --git a/pkg/mcp/kafka_admin_connect_tools.go b/pkg/mcp/kafka_admin_connect_tools.go index e85fa10..d5a31ca 100644 --- a/pkg/mcp/kafka_admin_connect_tools.go +++ b/pkg/mcp/kafka_admin_connect_tools.go @@ -22,6 +22,7 @@ import ( kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) +// KafkaAdminAddKafkaConnectTools registers Kafka Connect admin tools. func KafkaAdminAddKafkaConnectTools(s *server.MCPServer, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaConnectToolBuilder() diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index 007622a..143fd9c 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -22,6 +22,7 @@ import ( kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) +// KafkaAdminAddGroupsTools registers Kafka admin group tools. func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaGroupsToolBuilder() diff --git a/pkg/mcp/kafka_admin_partitions_tools.go b/pkg/mcp/kafka_admin_partitions_tools.go index 3010e81..9d510c8 100644 --- a/pkg/mcp/kafka_admin_partitions_tools.go +++ b/pkg/mcp/kafka_admin_partitions_tools.go @@ -22,6 +22,7 @@ import ( kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) +// KafkaAdminAddPartitionsTools registers Kafka admin partition tools. func KafkaAdminAddPartitionsTools(s *server.MCPServer, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaPartitionsToolBuilder() diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index d6590cf..c6e01d5 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -22,6 +22,7 @@ import ( kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) +// KafkaAdminAddSchemaRegistryTools registers Kafka Schema Registry tools. func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaSchemaRegistryToolBuilder() diff --git a/pkg/mcp/kafka_admin_topics_tools.go b/pkg/mcp/kafka_admin_topics_tools.go index 9075245..0d5be44 100644 --- a/pkg/mcp/kafka_admin_topics_tools.go +++ b/pkg/mcp/kafka_admin_topics_tools.go @@ -22,6 +22,7 @@ import ( kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) +// KafkaAdminAddTopicTools registers Kafka admin topic tools. func KafkaAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaTopicsToolBuilder() diff --git a/pkg/mcp/pftools/circuit_breaker.go b/pkg/mcp/pftools/circuit_breaker.go index a2f0e38..d64ff4c 100644 --- a/pkg/mcp/pftools/circuit_breaker.go +++ b/pkg/mcp/pftools/circuit_breaker.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package pftools provides Pulsar Functions tooling for MCP. package pftools import ( diff --git a/pkg/mcp/pftools/errors.go b/pkg/mcp/pftools/errors.go index 9c56805..62e23e6 100644 --- a/pkg/mcp/pftools/errors.go +++ b/pkg/mcp/pftools/errors.go @@ -22,8 +22,10 @@ import ( ) var ( + // ErrFunctionNotFound indicates the function was not found. ErrFunctionNotFound = errors.New("function not found") - ErrNotOurMessage = errors.New("not our message") + // ErrNotOurMessage indicates a message that should be ignored. + ErrNotOurMessage = errors.New("not our message") ) // IsClusterUnhealthy checks if an error indicates cluster health issues @@ -34,6 +36,7 @@ func IsClusterUnhealthy(err error) bool { return false } +// IsAuthError reports whether the error is an authorization error. func IsAuthError(err error) bool { if restErr, ok := err.(rest.Error); ok { return restErr.Code == 403 diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index 0fef260..a509c75 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -35,10 +35,13 @@ import ( ) const ( - CustomRuntimeOptionsEnvMcpToolNameKey = "MCP_TOOL_NAME" + // CustomRuntimeOptionsEnvMcpToolNameKey is the env var name for tool names. + CustomRuntimeOptionsEnvMcpToolNameKey = "MCP_TOOL_NAME" + // CustomRuntimeOptionsEnvMcpToolDescriptionKey is the env var name for tool descriptions. CustomRuntimeOptionsEnvMcpToolDescriptionKey = "MCP_TOOL_DESCRIPTION" ) +// DefaultStringSchemaInfo defines the default schema info for string payloads. var DefaultStringSchemaInfo = &SchemaInfo{ Type: "STRING", Definition: map[string]interface{}{ @@ -61,7 +64,7 @@ type Server struct { func NewPulsarFunctionManager(snServer *Server, readOnly bool, options *ManagerOptions, sessionID string) (*PulsarFunctionManager, error) { // Get Pulsar client and admin client if snServer.PulsarSession == nil { - return nil, fmt.Errorf("Pulsar session not found in context") + return nil, fmt.Errorf("pulsar session not found in context") } // Get Pulsar client from session using type-safe interface diff --git a/pkg/mcp/pftools/schema.go b/pkg/mcp/pftools/schema.go index 6fe20f2..62ae155 100644 --- a/pkg/mcp/pftools/schema.go +++ b/pkg/mcp/pftools/schema.go @@ -24,6 +24,7 @@ import ( "github.com/streamnative/pulsarctl/pkg/cmdutils" ) +// DefaultStringSchema defines the default MCP input schema for string payloads. var DefaultStringSchema = &mcp.ToolInputSchema{ Type: "object", Properties: map[string]interface{}{ @@ -123,6 +124,7 @@ func convertComplexSchemaToToolInput(schemaInfo *SchemaInfo) (*mcp.ToolInputSche }, nil } +// GetPulsarTypeSchema converts SchemaInfo into a Pulsar schema. func GetPulsarTypeSchema(schemaInfo *SchemaInfo) (pulsar.Schema, error) { if schemaInfo == nil || schemaInfo.Definition == nil { return pulsar.NewStringSchema(nil), nil diff --git a/pkg/mcp/pftools/types.go b/pkg/mcp/pftools/types.go index 93c5b4f..77ad7fe 100644 --- a/pkg/mcp/pftools/types.go +++ b/pkg/mcp/pftools/types.go @@ -48,6 +48,7 @@ type PulsarFunctionManager struct { clusterErrorHandler ClusterErrorHandler } +// FunctionTool represents a Pulsar function exposed as an MCP tool. type FunctionTool struct { Name string Function *utils.FunctionConfig @@ -59,12 +60,14 @@ type FunctionTool struct { SchemaFetchSuccess bool } +// SchemaInfo represents schema metadata for Pulsar functions. type SchemaInfo struct { Type string Definition map[string]interface{} PulsarSchemaInfo *utils.SchemaInfo } +// CircuitBreaker guards function invocations to prevent repeated failures. type CircuitBreaker struct { failureCount int failureThreshold int @@ -74,16 +77,20 @@ type CircuitBreaker struct { mutex sync.RWMutex } +// CircuitState represents the circuit breaker state. type CircuitState int +// Circuit breaker states. const ( StateOpen CircuitState = iota StateHalfOpen StateClosed ) +// ClusterErrorHandler handles cluster errors for Pulsar function managers. type ClusterErrorHandler func(*PulsarFunctionManager, error) +// ManagerOptions configures PulsarFunctionManager behavior. type ManagerOptions struct { PollInterval time.Duration DefaultTimeout time.Duration @@ -94,6 +101,7 @@ type ManagerOptions struct { ClusterErrorHandler ClusterErrorHandler } +// DefaultManagerOptions returns default manager options. func DefaultManagerOptions() *ManagerOptions { return &ManagerOptions{ PollInterval: 30 * time.Second, diff --git a/pkg/mcp/prompts.go b/pkg/mcp/prompts.go index edec048..cb0b530 100644 --- a/pkg/mcp/prompts.go +++ b/pkg/mcp/prompts.go @@ -28,6 +28,7 @@ import ( "k8s.io/utils/ptr" ) +// ServerlessPoolMember describes a serverless pool option. type ServerlessPoolMember struct { Provider string Namespace string @@ -36,6 +37,7 @@ type ServerlessPoolMember struct { } var ( + // ServerlessPoolMemberList defines the supported serverless pools. ServerlessPoolMemberList = []ServerlessPoolMember{ { Provider: "azure", @@ -56,9 +58,11 @@ var ( // Location: "us-central1", // }, } + // AvailableProviders lists supported cloud providers. AvailableProviders = []string{"azure", "aws", "gcloud"} ) +// RegisterPrompts registers prompt handlers on the server. func RegisterPrompts(s *server.MCPServer) { s.AddPrompt(mcp.NewPrompt("list-sncloud-clusters", mcp.WithPromptDescription("List all clusters from the StreamNative Cloud"), @@ -78,6 +82,7 @@ func RegisterPrompts(s *server.MCPServer) { ) } +// HandleListPulsarClusters handles listing StreamNative Cloud clusters. func HandleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp.GetPromptResult, error) { // Get API client from session session := context2.GetSNCloudSession(ctx) @@ -94,7 +99,7 @@ func HandleListPulsarClusters(ctx context.Context, _ mcp.GetPromptRequest) (*mcp if err != nil { return nil, fmt.Errorf("failed to list pulsar clusters: %v", err) } - defer clustersBody.Body.Close() + defer func() { _ = clustersBody.Body.Close() }() var messages = make( []mcp.PromptMessage, @@ -170,7 +175,7 @@ func handleReadPulsarCluster(ctx context.Context, request mcp.GetPromptRequest) if err != nil { return nil, fmt.Errorf("failed to list pulsar clusters: %v", err) } - defer clustersBody.Body.Close() + defer func() { _ = clustersBody.Body.Close() }() var cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster for _, c := range clusters.Items { if *c.Metadata.Name == name { @@ -248,7 +253,7 @@ func handleBuildServerlessPulsarCluster(ctx context.Context, request mcp.GetProm if err != nil { return nil, fmt.Errorf("failed to list pool options: %v", err) } - defer poolOptionsBody.Body.Close() + defer func() { _ = poolOptionsBody.Body.Close() }() if poolOptions == nil { return nil, fmt.Errorf("no pool options found") } diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index bfa929d..afc44cd 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -24,18 +24,27 @@ import ( ) const ( - HTTP = "http" - FILE = "file" + // HTTP represents the HTTP package URL scheme. + HTTP = "http" + // FILE represents the file package URL scheme. + FILE = "file" + // BUILTIN represents the builtin package scheme. BUILTIN = "builtin" + // FUNCTION represents a function package type. FUNCTION = "function" - SINK = "sink" - SOURCE = "source" + // SINK represents a sink package type. + SINK = "sink" + // SOURCE represents a source package type. + SOURCE = "source" - PublicTenant = "public" + // PublicTenant is the default public tenant name. + PublicTenant = "public" + // DefaultNamespace is the default namespace name. DefaultNamespace = "default" ) +// IsPackageURLSupported reports whether the package URL scheme is supported. func IsPackageURLSupported(functionPkgURL string) bool { return functionPkgURL != "" && (strings.HasPrefix(functionPkgURL, HTTP) || strings.HasPrefix(functionPkgURL, FILE) || diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index 480ca24..3ab45a4 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -22,6 +22,7 @@ import ( pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) +// PulsarAdminAddTenantTools registers Pulsar admin tenant tools. func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminTenantToolBuilder() diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go index 4442fe7..1c76afb 100644 --- a/pkg/mcp/pulsar_functions_as_tools.go +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -31,6 +31,7 @@ var ( functionManagersLock sync.RWMutex ) +// StopAllPulsarFunctionManagers stops and removes all function managers. func StopAllPulsarFunctionManagers() { functionManagersLock.Lock() defer functionManagersLock.Unlock() @@ -48,6 +49,7 @@ func StopAllPulsarFunctionManagers() { log.Println("All Pulsar Function managers stopped") } +// PulsarFunctionManagedMcpTools registers Pulsar Functions-as-tools handlers. func (s *Server) PulsarFunctionManagedMcpTools(readOnly bool, features []string, sessionID string) { if !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureFunctionsAsTools)) && diff --git a/pkg/mcp/server.go b/pkg/mcp/server.go index 21674ca..c922883 100644 --- a/pkg/mcp/server.go +++ b/pkg/mcp/server.go @@ -22,6 +22,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) +// Server wraps MCP server state and StreamNative sessions. type Server struct { MCPServer *server.MCPServer KafkaSession *kafka.Session @@ -30,6 +31,7 @@ type Server struct { logger *logrus.Logger } +// NewServer creates a new MCP server with StreamNative integrations. func NewServer(name, version string, logger *logrus.Logger, opts ...server.ServerOption) *Server { // Create a new MCP server opts = AddOpts(opts...) @@ -38,6 +40,7 @@ func NewServer(name, version string, logger *logrus.Logger, opts ...server.Serve return mcpserver } +// AddOpts merges default server options with custom options. func AddOpts(opts ...server.ServerOption) []server.ServerOption { defaultOpts := []server.ServerOption{ server.WithResourceCapabilities(true, true), @@ -48,6 +51,7 @@ func AddOpts(opts ...server.ServerOption) []server.ServerOption { return opts } +// CreateSNCloudMCPServer constructs a Server wrapper for StreamNative Cloud. func CreateSNCloudMCPServer(s *server.MCPServer, logger *logrus.Logger) *Server { mcpserver := &Server{ MCPServer: s, diff --git a/pkg/mcp/session/context.go b/pkg/mcp/session/context.go index 5cf895f..30659d4 100644 --- a/pkg/mcp/session/context.go +++ b/pkg/mcp/session/context.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package session provides context helpers for MCP session management. package session import ( diff --git a/pkg/mcp/sncontext_tools.go b/pkg/mcp/sncontext_tools.go index 8658cb7..e1a853a 100644 --- a/pkg/mcp/sncontext_tools.go +++ b/pkg/mcp/sncontext_tools.go @@ -26,6 +26,7 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/common" ) +// RegisterContextTools registers context-related tools on the server. func RegisterContextTools(s *server.MCPServer, features []string, skipContextTools bool) { if !slices.Contains(features, string(FeatureStreamNativeCloud)) && !slices.Contains(features, string(FeatureAll)) { return diff --git a/pkg/mcp/sncontext_utils.go b/pkg/mcp/sncontext_utils.go index 562c0cd..6865a70 100644 --- a/pkg/mcp/sncontext_utils.go +++ b/pkg/mcp/sncontext_utils.go @@ -26,11 +26,13 @@ import ( sncloud "github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver" ) +// DefaultKafkaPort is the default Kafka port for StreamNative Cloud. const DefaultKafkaPort = 9093 +// SetContext resolves and stores StreamNative Cloud context in memory. func SetContext(ctx context.Context, options *config.Options, instanceName, clusterName string) error { snConfig := options.LoadConfigOrDie() - myselfGrant, err := options.AuthOptions.LoadGrant(snConfig.Auth.Audience) + myselfGrant, err := options.LoadGrant(snConfig.Auth.Audience) if err != nil || myselfGrant == nil { return fmt.Errorf("failed to auth to StreamNative Cloud: %v", err) } @@ -50,7 +52,7 @@ func SetContext(ctx context.Context, options *config.Options, instanceName, clus if err != nil { return fmt.Errorf("failed to list pulsar instances: %v", err) } - defer instancesBody.Body.Close() + defer func() { _ = instancesBody.Body.Close() }() var instance sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarInstance foundInstance := false @@ -61,18 +63,18 @@ func SetContext(ctx context.Context, options *config.Options, instanceName, clus foundInstance = true break } - return fmt.Errorf("Pulsar instance %s is not valid", instanceName) + return fmt.Errorf("pulsar instance %s is not valid", instanceName) } } if !foundInstance { - return fmt.Errorf("Pulsar instance %s not found in organization %s", instanceName, options.Organization) + return fmt.Errorf("pulsar instance %s not found in organization %s", instanceName, options.Organization) } clusters, clustersBody, err := apiClient.CloudStreamnativeIoV1alpha1Api.ListCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, options.Organization).Execute() if err != nil { return fmt.Errorf("failed to list pulsar clusters: %v", err) } - defer clustersBody.Body.Close() + defer func() { _ = clustersBody.Body.Close() }() var cluster sncloud.ComGithubStreamnativeCloudApiServerPkgApisCloudV1alpha1PulsarCluster foundCluster := false for _, c := range clusters.Items { @@ -82,11 +84,11 @@ func SetContext(ctx context.Context, options *config.Options, instanceName, clus foundCluster = true break } - return fmt.Errorf("Pulsar cluster %s is not available", clusterName) + return fmt.Errorf("pulsar cluster %s is not available", clusterName) } } if !foundCluster { - return fmt.Errorf("Pulsar cluster %s not found", clusterName) + return fmt.Errorf("pulsar cluster %s not found", clusterName) } clusterUID := string(*cluster.Metadata.Uid) @@ -111,7 +113,7 @@ func SetContext(ctx context.Context, options *config.Options, instanceName, clus accessToken := "" refreshToken := true - cachedGrant, err := options.AuthOptions.LoadGrant(tokenKey) + cachedGrant, err := options.LoadGrant(tokenKey) if err == nil && cachedGrant != nil { cacheHasValidToken, err := common.HasCachedValidToken(cachedGrant) @@ -144,7 +146,7 @@ func SetContext(ctx context.Context, options *config.Options, instanceName, clus } if newGrant.Token != nil { - _ = options.AuthOptions.SaveGrant(tokenKey, *newGrant) + _ = options.SaveGrant(tokenKey, *newGrant) accessToken = newGrant.Token.AccessToken } } diff --git a/pkg/mcp/streamnative_resources_log_tools.go b/pkg/mcp/streamnative_resources_log_tools.go index e3d2a0f..8e35b01 100644 --- a/pkg/mcp/streamnative_resources_log_tools.go +++ b/pkg/mcp/streamnative_resources_log_tools.go @@ -31,6 +31,7 @@ import ( context2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +// FunctionConnectorList lists supported log components. var FunctionConnectorList = []string{"sink", "source", "function", "kafka-connect"} // StreamNativeAddLogTools adds log tools @@ -79,6 +80,7 @@ func StreamNativeAddLogTools(s *server.MCPServer, _ bool, features []string) { s.AddTool(logTool, handleStreamNativeResourcesLog) } +// LogOptions captures parameters for StreamNative log queries. type LogOptions struct { ServiceURL string Organization string @@ -97,11 +99,13 @@ type LogOptions struct { InsecureSkipTLSVerifyBackend bool } +// LogResult represents a log query response. type LogResult struct { Total int `json:"total"` Data []LogContent `json:"data"` } +// LogContent represents a single log entry. type LogContent struct { Message string `json:"message"` Position int64 `json:"position"` @@ -241,7 +245,7 @@ func (o *LogOptions) getLogs(client *http.Client, position int64, if err != nil { return results, fmt.Errorf("failed to request logs (%s): %v", url, err) } - defer resp.Body.Close() + defer func() { _ = resp.Body.Close() }() var logResult LogResult var body []byte diff --git a/pkg/mcp/streamnative_resources_tools.go b/pkg/mcp/streamnative_resources_tools.go index 8798def..6ee9b88 100644 --- a/pkg/mcp/streamnative_resources_tools.go +++ b/pkg/mcp/streamnative_resources_tools.go @@ -71,7 +71,7 @@ func StreamNativeAddResourceTools(s *server.MCPServer, readOnly bool, features [ } } -// Define simple resource structure for parsing YAML documents +// Resource represents a StreamNative resource manifest. type Resource struct { APIVersion string `json:"apiVersion" yaml:"apiVersion"` Kind string `json:"kind" yaml:"kind"` @@ -79,6 +79,7 @@ type Resource struct { Spec map[string]interface{} `json:"spec" yaml:"spec"` } +// Metadata holds standard resource metadata. type Metadata struct { Name string `json:"name" yaml:"name"` Namespace string `json:"namespace" yaml:"namespace"` @@ -190,7 +191,7 @@ func applyPulsarInstance(ctx context.Context, apiClient *sncloud.APIClient, json if name != "" { // Try to get existing resource existingInstance, bdy, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarInstance(ctx, name, organization).Execute() - defer bdy.Body.Close() + defer func() { _ = bdy.Body.Close() }() if err == nil { exists = true if existingInstance.Metadata != nil && existingInstance.Metadata.ResourceVersion != nil { @@ -223,7 +224,7 @@ func applyPulsarInstance(ctx context.Context, apiClient *sncloud.APIClient, json request = request.DryRun(dryRunStr) } _, bdy, err = request.Execute() - defer bdy.Body.Close() + defer func() { _ = bdy.Body.Close() }() } else { verb = "created" // Create new resource @@ -233,7 +234,7 @@ func applyPulsarInstance(ctx context.Context, apiClient *sncloud.APIClient, json request = request.DryRun(dryRunStr) } _, bdy, err = request.Execute() - defer bdy.Body.Close() + defer func() { _ = bdy.Body.Close() }() } if err != nil { @@ -277,7 +278,7 @@ func applyPulsarCluster(ctx context.Context, apiClient *sncloud.APIClient, jsonC if name != "" { // Try to get existing resource existingCluster, bdy, err := apiClient.CloudStreamnativeIoV1alpha1Api.ReadCloudStreamnativeIoV1alpha1NamespacedPulsarCluster(ctx, name, organization).Execute() - defer bdy.Body.Close() + defer func() { _ = bdy.Body.Close() }() if err == nil { exists = true if existingCluster.Metadata != nil && existingCluster.Metadata.ResourceVersion != nil { @@ -311,7 +312,7 @@ func applyPulsarCluster(ctx context.Context, apiClient *sncloud.APIClient, jsonC } _, bdy, err = request.Execute() - defer bdy.Body.Close() + defer func() { _ = bdy.Body.Close() }() } else { verb = "created" // Create new resource @@ -321,7 +322,7 @@ func applyPulsarCluster(ctx context.Context, apiClient *sncloud.APIClient, jsonC request = request.DryRun(dryRunStr) } _, bdy, err = request.Execute() - defer bdy.Body.Close() + defer func() { _ = bdy.Body.Close() }() } if err != nil { diff --git a/pkg/pulsar/connection.go b/pkg/pulsar/connection.go index 578dff7..61f96f0 100644 --- a/pkg/pulsar/connection.go +++ b/pkg/pulsar/connection.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package pulsar provides Pulsar connection helpers. package pulsar import ( @@ -25,11 +26,12 @@ import ( ) const ( + // DefaultClientTimeout is the default timeout for Pulsar client operations. DefaultClientTimeout = 30 * time.Second ) -//nolint:revive -type PulsarContext struct { +// PulsarContext holds configuration for connecting to a Pulsar cluster. +type PulsarContext struct { //nolint:revive ServiceURL string WebServiceURL string Token string @@ -67,6 +69,7 @@ func NewSession(ctx PulsarContext) (*Session, error) { return session, nil } +// SetPulsarContext initializes Pulsar clients using the provided context. func (s *Session) SetPulsarContext(ctx PulsarContext) error { s.mutex.Lock() defer s.mutex.Unlock() @@ -161,6 +164,7 @@ func (s *Session) SetPulsarContext(ctx PulsarContext) error { return nil } +// GetAdminClient returns the Pulsar admin v2 client. func (s *Session) GetAdminClient() (cmdutils.Client, error) { s.mutex.RLock() defer s.mutex.RUnlock() @@ -171,6 +175,7 @@ func (s *Session) GetAdminClient() (cmdutils.Client, error) { return s.AdminClient, nil } +// GetAdminV3Client returns the Pulsar admin v3 client. func (s *Session) GetAdminV3Client() (cmdutils.Client, error) { s.mutex.RLock() defer s.mutex.RUnlock() @@ -181,6 +186,7 @@ func (s *Session) GetAdminV3Client() (cmdutils.Client, error) { return s.AdminV3Client, nil } +// GetPulsarClient returns the Pulsar data client. func (s *Session) GetPulsarClient() (pulsar.Client, error) { s.mutex.RLock() defer s.mutex.RUnlock() diff --git a/pkg/schema/avro.go b/pkg/schema/avro.go index 5ab6530..d212607 100644 --- a/pkg/schema/avro.go +++ b/pkg/schema/avro.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package schema provides schema converters for MCP tool payloads. package schema import ( @@ -22,14 +23,17 @@ import ( "github.com/mark3labs/mcp-go/mcp" ) +// AvroConverter converts AVRO schemas to MCP tool definitions and payloads. type AvroConverter struct { BaseConverter } +// NewAvroConverter creates a new AvroConverter. func NewAvroConverter() *AvroConverter { return &AvroConverter{} } +// ToMCPToolInputSchemaProperties converts AVRO schema info into MCP tool options. func (c *AvroConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { if schemaInfo.Type != "AVRO" { return nil, fmt.Errorf("expected AVRO schema, got %s", schemaInfo.Type) @@ -37,6 +41,7 @@ func (c *AvroConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.Sche return processAvroSchemaStringToMCPToolInput(string(schemaInfo.Schema)) } +// SerializeMCPRequestToPulsarPayload serializes MCP arguments into an AVRO payload. func (c *AvroConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { return nil, fmt.Errorf("arguments validation failed: %w", err) @@ -44,6 +49,7 @@ func (c *AvroConverter) SerializeMCPRequestToPulsarPayload(arguments map[string] return serializeArgumentsToAvroBinary(arguments, string(targetPulsarSchemaInfo.Schema)) } +// ValidateArguments validates arguments against the AVRO schema. func (c *AvroConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { if targetPulsarSchemaInfo.Type != "AVRO" { return fmt.Errorf("expected AVRO schema for validation, got %s", targetPulsarSchemaInfo.Type) diff --git a/pkg/schema/avro_core.go b/pkg/schema/avro_core.go index be84a53..6d8da4d 100644 --- a/pkg/schema/avro_core.go +++ b/pkg/schema/avro_core.go @@ -63,7 +63,7 @@ func avroFieldToMcpOption(field *avro.Field) (mcp.ToolOption, error) { } isRequired := true - var underlyingTypeForDefault avro.Schema = fieldType // Used to check default value against non-union type + underlyingTypeForDefault := fieldType // Used to check default value against non-union type if unionSchema, ok := fieldType.(*avro.UnionSchema); ok { isNullAble := false diff --git a/pkg/schema/avro_test.go b/pkg/schema/avro_test.go index 58e181c..5a125a8 100644 --- a/pkg/schema/avro_test.go +++ b/pkg/schema/avro_test.go @@ -349,10 +349,11 @@ func TestAvroConverter_SerializeMCPRequestToPulsarPayload(t *testing.T) { var schemaToUse string var argsToMarshal map[string]interface{} - if tt.schemaInfo.Name == "SimpleAvroSerialize" { + switch tt.schemaInfo.Name { + case "SimpleAvroSerialize": schemaToUse = simpleRecordSchema argsToMarshal = tt.args - } else if tt.schemaInfo.Name == "ComplexAvroSerialize" { + case "ComplexAvroSerialize": schemaToUse = complexRecordSchemaString complexArgsCopy := make(map[string]interface{}) for k, v := range tt.args { diff --git a/pkg/schema/boolean.go b/pkg/schema/boolean.go index b357cab..76c15e3 100644 --- a/pkg/schema/boolean.go +++ b/pkg/schema/boolean.go @@ -36,6 +36,7 @@ func NewBooleanConverter() *BooleanConverter { } } +// ToMCPToolInputSchemaProperties converts BOOLEAN schema info into MCP tool options. func (c *BooleanConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { if schemaInfo.Type != "BOOLEAN" { return nil, fmt.Errorf("expected BOOLEAN schema, got %s", schemaInfo.Type) @@ -46,6 +47,7 @@ func (c *BooleanConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.S }, nil } +// SerializeMCPRequestToPulsarPayload serializes MCP arguments into a BOOLEAN payload. func (c *BooleanConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { return nil, fmt.Errorf("arguments validation failed: %w", err) @@ -59,6 +61,7 @@ func (c *BooleanConverter) SerializeMCPRequestToPulsarPayload(arguments map[stri return []byte(fmt.Sprintf("%t", payload)), nil } +// ValidateArguments validates arguments against the BOOLEAN schema. func (c *BooleanConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { if targetPulsarSchemaInfo.Type != "BOOLEAN" { return fmt.Errorf("expected BOOLEAN schema, got %s", targetPulsarSchemaInfo.Type) diff --git a/pkg/schema/common.go b/pkg/schema/common.go index 5bf712e..569eae5 100644 --- a/pkg/schema/common.go +++ b/pkg/schema/common.go @@ -20,7 +20,7 @@ import ( "github.com/apache/pulsar-client-go/pulsar" ) -// GetSchemaType 返回Schema类型的字符串表示 +// GetSchemaType returns the string representation of a schema type. func GetSchemaType(schemaType pulsar.SchemaType) string { switch schemaType { case pulsar.AVRO: diff --git a/pkg/schema/converter.go b/pkg/schema/converter.go index 2c3d6b5..534aa08 100644 --- a/pkg/schema/converter.go +++ b/pkg/schema/converter.go @@ -22,9 +22,11 @@ import ( ) const ( + // ParamName is the default parameter name for payload arguments. ParamName = "payload" ) +// Converter defines schema conversion behaviors for MCP tools. type Converter interface { ToMCPToolInputSchemaProperties(pulsarSchemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) @@ -33,6 +35,7 @@ type Converter interface { ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error } +// ConverterFactory returns a converter for the given schema type. func ConverterFactory(schemaType string) (Converter, error) { switch schemaType { case "AVRO": @@ -50,6 +53,7 @@ func ConverterFactory(schemaType string) (Converter, error) { } } +// BaseConverter provides shared fields for schema converters. type BaseConverter struct { ParamName string } diff --git a/pkg/schema/number.go b/pkg/schema/number.go index 622e474..f946d71 100644 --- a/pkg/schema/number.go +++ b/pkg/schema/number.go @@ -37,6 +37,7 @@ func NewNumberConverter() *NumberConverter { } } +// ToMCPToolInputSchemaProperties converts numeric schema info into MCP tool options. func (c *NumberConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { if schemaInfo.Type != "INT8" && schemaInfo.Type != "INT16" && schemaInfo.Type != "INT32" && schemaInfo.Type != "INT64" && schemaInfo.Type != "FLOAT" && schemaInfo.Type != "DOUBLE" { return nil, fmt.Errorf("expected INT8, INT16, INT32, INT64, FLOAT, or DOUBLE schema, got %s", schemaInfo.Type) @@ -47,6 +48,7 @@ func (c *NumberConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.Sc }, nil } +// SerializeMCPRequestToPulsarPayload serializes MCP arguments into a numeric payload. func (c *NumberConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { return nil, fmt.Errorf("arguments validation failed: %w", err) @@ -75,6 +77,7 @@ func (c *NumberConverter) SerializeMCPRequestToPulsarPayload(arguments map[strin } } +// ValidateArguments validates arguments against the numeric schema. func (c *NumberConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { if targetPulsarSchemaInfo.Type != "INT8" && targetPulsarSchemaInfo.Type != "INT16" && targetPulsarSchemaInfo.Type != "INT32" && targetPulsarSchemaInfo.Type != "INT64" && targetPulsarSchemaInfo.Type != "FLOAT" && targetPulsarSchemaInfo.Type != "DOUBLE" { return fmt.Errorf("expected INT8, INT16, INT32, INT64, FLOAT, or DOUBLE schema, got %s", targetPulsarSchemaInfo.Type) diff --git a/pkg/schema/string.go b/pkg/schema/string.go index 9a4b50a..2d45361 100644 --- a/pkg/schema/string.go +++ b/pkg/schema/string.go @@ -36,6 +36,7 @@ func NewStringConverter() *StringConverter { } } +// ToMCPToolInputSchemaProperties converts string schema info into MCP tool options. func (c *StringConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.SchemaInfo) ([]mcp.ToolOption, error) { if schemaInfo.Type != "STRING" && schemaInfo.Type != "BYTES" { return nil, fmt.Errorf("expected STRING or BYTES schema, got %s", schemaInfo.Type) @@ -46,6 +47,7 @@ func (c *StringConverter) ToMCPToolInputSchemaProperties(schemaInfo *cliutils.Sc }, nil } +// SerializeMCPRequestToPulsarPayload serializes MCP arguments into a string payload. func (c *StringConverter) SerializeMCPRequestToPulsarPayload(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) ([]byte, error) { if err := c.ValidateArguments(arguments, targetPulsarSchemaInfo); err != nil { return nil, fmt.Errorf("arguments validation failed: %w", err) @@ -59,6 +61,7 @@ func (c *StringConverter) SerializeMCPRequestToPulsarPayload(arguments map[strin return []byte(payload), nil } +// ValidateArguments validates arguments against the string schema. func (c *StringConverter) ValidateArguments(arguments map[string]any, targetPulsarSchemaInfo *cliutils.SchemaInfo) error { if targetPulsarSchemaInfo.Type != "STRING" && targetPulsarSchemaInfo.Type != "BYTES" { return fmt.Errorf("expected STRING or BYTES schema, got %s", targetPulsarSchemaInfo.Type) From 224769a9d2a7920485057082212b5b1abb9c822c Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Wed, 14 Jan 2026 10:43:06 +0800 Subject: [PATCH 43/85] feat(charts): add Helm chart for StreamNative MCP Server (#67) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/e2e.yaml | 49 ++ .gitignore | 1 + AGENTS.md | 2 + CLAUDE.md | 125 ++++- charts/snmcp/Chart.yaml | 18 + charts/snmcp/README.md | 123 +++++ charts/snmcp/e2e/.gitkeep | 0 charts/snmcp/e2e/pulsar-values.yaml | 12 + charts/snmcp/e2e/test-secret.key | 1 + charts/snmcp/e2e/test-tokens.env | 2 + charts/snmcp/templates/NOTES.txt | 37 ++ charts/snmcp/templates/_helpers.tpl | 72 +++ charts/snmcp/templates/configmap.yaml | 36 ++ charts/snmcp/templates/deployment.yaml | 151 ++++++ charts/snmcp/templates/ingress.yaml | 45 ++ charts/snmcp/templates/service.yaml | 23 + charts/snmcp/templates/serviceaccount.yaml | 16 + charts/snmcp/values.yaml | 130 +++++ cmd/snmcp-e2e/.gitkeep | 0 cmd/snmcp-e2e/main.go | 537 +++++++++++++++++++++ pkg/cmd/mcp/sse.go | 147 +++--- scripts/.gitkeep | 0 scripts/e2e-test.sh | 257 ++++++++++ 23 files changed, 1700 insertions(+), 84 deletions(-) create mode 100644 .github/workflows/e2e.yaml create mode 100644 charts/snmcp/Chart.yaml create mode 100644 charts/snmcp/README.md create mode 100644 charts/snmcp/e2e/.gitkeep create mode 100644 charts/snmcp/e2e/pulsar-values.yaml create mode 100644 charts/snmcp/e2e/test-secret.key create mode 100644 charts/snmcp/e2e/test-tokens.env create mode 100644 charts/snmcp/templates/NOTES.txt create mode 100644 charts/snmcp/templates/_helpers.tpl create mode 100644 charts/snmcp/templates/configmap.yaml create mode 100644 charts/snmcp/templates/deployment.yaml create mode 100644 charts/snmcp/templates/ingress.yaml create mode 100644 charts/snmcp/templates/service.yaml create mode 100644 charts/snmcp/templates/serviceaccount.yaml create mode 100644 charts/snmcp/values.yaml create mode 100644 cmd/snmcp-e2e/.gitkeep create mode 100644 cmd/snmcp-e2e/main.go create mode 100644 scripts/.gitkeep create mode 100755 scripts/e2e-test.sh diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml new file mode 100644 index 0000000..34bf4de --- /dev/null +++ b/.github/workflows/e2e.yaml @@ -0,0 +1,49 @@ +name: E2E Tests + +on: + push: + paths: + - "charts/**" + - "cmd/snmcp-e2e/**" + - "scripts/e2e-test.sh" + - ".github/workflows/e2e.yaml" + pull_request: + paths: + - "charts/**" + - "cmd/snmcp-e2e/**" + - "scripts/e2e-test.sh" + - ".github/workflows/e2e.yaml" + workflow_dispatch: + +permissions: + contents: read + +jobs: + e2e: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + + - name: Set up Helm + uses: azure/setup-helm@v4 + + - name: Set up Kind + uses: helm/kind-action@v1 + with: + cluster_name: kind + + - name: Download dependencies + run: go mod download + + - name: Run E2E tests + run: ./scripts/e2e-test.sh all + + - name: Cleanup + if: always() + run: ./scripts/e2e-test.sh cleanup diff --git a/.gitignore b/.gitignore index 577a846..9a5e603 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ vendor .cursor/ agents/ .serena/ +.envrc diff --git a/AGENTS.md b/AGENTS.md index 48390eb..9b40506 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -135,3 +135,5 @@ This file follows the AGENTS.md spec described in the Codex system message (scop --- Happy hacking! 🚀 + +@CLAUDE.md as reference. \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md index 4cf6127..6f37d9b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,13 +6,15 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ```bash make build # Build server binary to bin/snmcp +make docker-build # Build local Docker image (both streamnative/mcp-server and streamnative/snmcp tags) +make docker-build-push # Build and push multi-platform image (linux/amd64,linux/arm64) +make docker-build-multiplatform # Build multi-platform image locally +make docker-buildx-setup # Setup Docker buildx for multi-platform builds +make license-check # Check license headers +make license-fix # Fix license headers go test -race ./... # Run all tests with race detection go test -race ./pkg/mcp/builders/... # Run specific package tests go test -v -run TestName ./pkg/... # Run a single test -make license-check # Check license headers -make license-fix # Fix license headers -make docker-build # Build local Docker image -make docker-build-push # Build and push multi-platform image ``` ## Architecture Overview @@ -24,9 +26,11 @@ The StreamNative MCP Server implements the Model Context Protocol using the `mar ``` Client Request → MCP Server (pkg/mcp/server.go) ↓ + SSE/stdio transport layer (pkg/cmd/mcp/) + ↓ Tool Handler (from builders) ↓ - Session Context (pkg/mcp/ctx.go) + Context Functions (pkg/mcp/ctx.go) ↓ Service Client (Kafka/Pulsar/SNCloud) ``` @@ -38,29 +42,44 @@ Client Request → MCP Server (pkg/mcp/server.go) - Sessions provide lazy-initialized clients for each service - Context functions (`pkg/mcp/ctx.go`) inject/retrieve sessions from request context -2. **Tool Builders** (`pkg/mcp/builders/`) +2. **Tool Builders Framework** (`pkg/mcp/builders/`) - `ToolBuilder` interface: `GetName()`, `GetRequiredFeatures()`, `BuildTools()`, `Validate()` - `BaseToolBuilder` provides common feature validation logic - - Each builder creates `[]server.ServerTool` with tool definitions and handlers - - Builders in `builders/kafka/` and `builders/pulsar/` implement service-specific tools + - `ToolRegistry` manages all tool builders with concurrent-safe registration + - `ToolBuildConfig` specifies build parameters (ReadOnly, Features, Options) + - `ToolMetadata` describes tool information (Name, Version, Description, Category, Tags) + +3. **Tool Builders Organization** + - `builders/kafka/` - Kafka-specific tool builders (connect, consume, groups, partitions, produce, schema_registry, topics) + - `builders/pulsar/` - Pulsar-specific tool builders (brokers, brokers_stats, cluster, functions, functions_worker, namespace, namespace_policy, nsisolationpolicy, packages, resourcequotas, schema, sinks, sources, subscription, tenant, topic, topic_policy) + - `builders/streamnative/` - StreamNative Cloud tool builders -3. **Tool Registration** (`pkg/mcp/*_tools.go`) +4. **Tool Registration** (`pkg/mcp/*_tools.go`) - Each `*_tools.go` file creates a builder, builds tools, and adds them to the server - Tools are conditionally registered based on `--features` flag - Feature constants defined in `pkg/mcp/features.go` -4. **PFTools - Functions as Tools** (`pkg/mcp/pftools/`) +5. **PFTools - Functions as Tools** (`pkg/mcp/pftools/`) - `PulsarFunctionManager` dynamically converts Pulsar Functions to MCP tools - Polls for function changes and auto-registers/unregisters tools - Circuit breaker pattern (`circuit_breaker.go`) for fault tolerance - Schema conversion (`schema.go`) for input/output handling +6. **Session Management** (`pkg/mcp/session/`) + - `pulsar_session_manager.go` - LRU session cache with TTL cleanup for multi-session mode + +7. **Transport Layer** (`pkg/cmd/mcp/`) + - `sse.go` - SSE transport with health endpoints (`/healthz`, `/readyz`) and auth middleware + - `server.go` - Stdio transport and common server initialization + ### Key Design Patterns - **Builder Pattern**: Tool builders create tools based on features and read-only mode +- **Registry Pattern**: ToolRegistry provides centralized management of all builders - **Context Injection**: Sessions passed via `context.Context` using typed keys - **Feature Flags**: Tools enabled/disabled via string feature identifiers - **Circuit Breaker**: PFTools uses failure thresholds to prevent cascading failures +- **Multi-Session Pattern**: Per-user Pulsar sessions with LRU caching for SSE mode ## Adding New Tools @@ -106,7 +125,7 @@ Client Request → MCP Server (pkg/mcp/server.go) 4. **Get Session in Handler**: ```go - session := mcpCtx.GetKafkaSession(ctx) // or GetPulsarSession + session := mcp.GetKafkaSession(ctx) // or GetPulsarSession if session == nil { return mcp.NewToolResultError("session not found"), nil } @@ -115,10 +134,13 @@ Client Request → MCP Server (pkg/mcp/server.go) ## Session Context Access -Handlers receive sessions via context (see `pkg/mcp/internal/context/ctx.go`): -- `mcpCtx.GetKafkaSession(ctx)` → `*kafka.Session` -- `mcpCtx.GetPulsarSession(ctx)` → `*pulsar.Session` -- `mcpCtx.GetSNCloudSession(ctx)` → `*config.Session` +Handlers receive sessions via context (see `pkg/mcp/ctx.go`): +- `mcp.GetKafkaSession(ctx)` → `*kafka.Session` +- `mcp.GetPulsarSession(ctx)` → `*pulsar.Session` +- `mcp.GetSNCloudSession(ctx)` → `*config.Session` +- `mcp.GetSNCloudOrganization(ctx)` → organization string +- `mcp.GetSNCloudInstance(ctx)` → instance string +- `mcp.GetSNCloudCluster(ctx)` → cluster string From sessions: - `session.GetAdminClient()` / `session.GetAdminV3Client()` for Pulsar admin @@ -144,13 +166,82 @@ When `--multi-session-pulsar` is enabled (SSE server with external Pulsar only): - **Session management**: See `pkg/mcp/session/pulsar_session_manager.go` Key files: -- `pkg/cmd/mcp/sse.go` - Auth middleware wraps SSEHandler()/MessageHandler() +- `pkg/cmd/mcp/sse.go` - Auth middleware wraps SSEHandler()/MessageHandler(), health endpoints - `pkg/mcp/session/pulsar_session_manager.go` - LRU session cache with TTL cleanup - `pkg/cmd/mcp/server.go` - Skips global PulsarSession when multi-session enabled +### Health Endpoints + +SSE server exposes health check endpoints: +- `GET /mcp/healthz` - Liveness probe (always returns "ok") +- `GET /mcp/readyz` - Readiness probe (always returns "ready") + +## Feature Flags + +Available feature flags (defined in `pkg/mcp/features.go`): + +| Feature | Description | +|---------|-------------| +| `all` | Enable all features | +| `all-kafka` | All Kafka features | +| `all-pulsar` | All Pulsar features | +| `kafka-client` | Kafka produce/consume | +| `kafka-admin` | Kafka admin operations (all admin tools) | +| `kafka-admin-schema-registry` | Schema Registry | +| `kafka-admin-kafka-connect` | Kafka Connect | +| `kafka-admin-topics` | Manage Kafka topics | +| `kafka-admin-partitions` | Manage Kafka partitions | +| `kafka-admin-groups` | Manage Kafka consumer groups | +| `pulsar-admin` | Pulsar admin operations (all admin tools) | +| `pulsar-client` | Pulsar produce/consume | +| `pulsar-admin-brokers` | Manage Pulsar brokers | +| `pulsar-admin-brokers-status` | Pulsar broker status | +| `pulsar-admin-broker-stats` | Access Pulsar broker statistics | +| `pulsar-admin-clusters` | Manage Pulsar clusters | +| `pulsar-admin-functions` | Manage Pulsar Functions | +| `pulsar-admin-functions-worker` | Manage Pulsar Function workers | +| `pulsar-admin-namespaces` | Manage Pulsar namespaces | +| `pulsar-admin-namespace-policy` | Configure namespace policies | +| `pulsar-admin-ns-isolation-policy` | Manage namespace isolation policies | +| `pulsar-admin-packages` | Manage Pulsar packages | +| `pulsar-admin-resource-quotas` | Configure resource quotas | +| `pulsar-admin-schemas` | Manage Pulsar schemas | +| `pulsar-admin-subscriptions` | Manage Pulsar subscriptions | +| `pulsar-admin-tenants` | Manage Pulsar tenants | +| `pulsar-admin-topics` | Manage Pulsar topics | +| `pulsar-admin-sinks` | Manage Pulsar IO sinks | +| `pulsar-admin-sources` | Manage Pulsar Sources | +| `pulsar-admin-topic-policy` | Configure topic policies | +| `streamnative-cloud` | StreamNative Cloud context management | +| `functions-as-tools` | Dynamic Pulsar Functions as MCP tools | + +## Helm Chart + +The project includes a Helm chart for Kubernetes deployment at `charts/snmcp/`: + +```bash +# Basic installation +helm install snmcp ./charts/snmcp \ + --set pulsar.webServiceURL=http://pulsar.example.com:8080 + +# With TLS +helm install snmcp ./charts/snmcp \ + --set pulsar.webServiceURL=https://pulsar:8443 \ + --set pulsar.tls.enabled=true \ + --set pulsar.tls.secretName=pulsar-tls +``` + +The chart runs MCP Server in Multi-Session Pulsar mode with authentication via `Authorization: Bearer ` header. + +## SDK Packages + +The project includes generated SDK packages: +- `sdk/sdk-apiserver/` - StreamNative Cloud API server client +- `sdk/sdk-kafkaconnect/` - Kafka Connect client + ## Error Handling - Wrap errors: `fmt.Errorf("failed to X: %w", err)` - Return tool errors: `mcp.NewToolResultError("message")` - Check session nil before operations -- For PFTools, use circuit breaker to handle repeated failures \ No newline at end of file +- For PFTools, use circuit breaker to handle repeated failures diff --git a/charts/snmcp/Chart.yaml b/charts/snmcp/Chart.yaml new file mode 100644 index 0000000..a36ecba --- /dev/null +++ b/charts/snmcp/Chart.yaml @@ -0,0 +1,18 @@ +apiVersion: v2 +name: snmcp +description: A Helm chart for StreamNative MCP Server with Multi-Session Pulsar support +type: application +version: 0.1.0 +appVersion: "0.0.1" +home: https://github.com/streamnative/streamnative-mcp-server +sources: + - https://github.com/streamnative/streamnative-mcp-server +maintainers: + - name: StreamNative + url: https://streamnative.io +keywords: + - mcp + - streamnative + - pulsar + - ai + - llm diff --git a/charts/snmcp/README.md b/charts/snmcp/README.md new file mode 100644 index 0000000..2078146 --- /dev/null +++ b/charts/snmcp/README.md @@ -0,0 +1,123 @@ +# StreamNative MCP Server Helm Chart + +This Helm chart deploys the StreamNative MCP Server on Kubernetes with **Multi-Session Pulsar** mode. + +## Prerequisites + +- Kubernetes 1.19+ +- Helm 3.0+ +- External Pulsar cluster accessible from the Kubernetes cluster + +## Installation + +```bash +helm install snmcp ./charts/snmcp \ + --set pulsar.webServiceURL=http://pulsar.example.com:8080 +``` + +## Configuration + +### Required Parameters + +| Parameter | Description | +|-----------|-------------| +| `pulsar.webServiceURL` | Pulsar web service URL (required) | + +### Server Configuration + +| Parameter | Default | Description | +|-----------|---------|-------------| +| `server.readOnly` | `false` | Enable read-only mode | +| `server.features` | `[]` | Features to enable (default: all-pulsar) | +| `server.httpPath` | `/mcp` | Base path for SSE/message/health endpoints | +| `server.configDir` | `/var/lib/snmcp` | Config directory for snmcp state (must be writable) | + +The container listens on port 9090. Use `service.port` or Ingress to expose a different port. + +### Session Configuration + +| Parameter | Default | Description | +|-----------|---------|-------------| +| `session.cacheSize` | `100` | Max cached sessions | +| `session.ttlMinutes` | `30` | Session TTL before eviction | + +### Pulsar TLS Configuration + +| Parameter | Default | Description | +|-----------|---------|-------------| +| `pulsar.tls.enabled` | `false` | Enable TLS for Pulsar | +| `pulsar.tls.secretName` | `""` | Secret containing TLS certs | +| `pulsar.tls.allowInsecureConnection` | `false` | Allow insecure TLS | +| `pulsar.tls.enableHostnameVerification` | `true` | Verify hostname | + +### Kubernetes Resources + +| Parameter | Default | Description | +|-----------|---------|-------------| +| `replicaCount` | `1` | Number of replicas | +| `service.type` | `ClusterIP` | Service type | +| `service.port` | `9090` | Service port | +| `ingress.enabled` | `false` | Enable Ingress | +| `serviceAccount.create` | `true` | Create ServiceAccount | + +## Examples + +### Basic Installation + +```bash +helm install snmcp ./charts/snmcp \ + --set pulsar.webServiceURL=http://pulsar:8080 +``` + +### With Ingress + +```bash +helm install snmcp ./charts/snmcp \ + --set pulsar.webServiceURL=http://pulsar:8080 \ + --set ingress.enabled=true \ + --set ingress.hosts[0].host=mcp.example.com \ + --set ingress.hosts[0].paths[0].path=/ \ + --set ingress.hosts[0].paths[0].pathType=Prefix +``` + +### Read-Only Mode with Limited Features + +```bash +helm install snmcp ./charts/snmcp \ + --set pulsar.webServiceURL=http://pulsar:8080 \ + --set server.readOnly=true \ + --set server.features="{pulsar-admin,pulsar-client}" +``` + +### With Pulsar TLS + +```bash +# First create a secret with TLS certs +kubectl create secret generic pulsar-tls \ + --from-file=ca.crt=./ca.crt \ + --from-file=tls.crt=./tls.crt \ + --from-file=tls.key=./tls.key + +helm install snmcp ./charts/snmcp \ + --set pulsar.webServiceURL=https://pulsar:8443 \ + --set pulsar.tls.enabled=true \ + --set pulsar.tls.secretName=pulsar-tls \ + --set pulsar.tls.trustCertsFilePath=/etc/snmcp/tls/ca.crt +``` + +## Authentication + +This chart runs MCP Server in Multi-Session Pulsar mode. Each client request must include a valid Pulsar JWT token: + +```bash +curl -H "Authorization: Bearer " http://localhost:9090/mcp/sse +``` + +Health endpoints do not require authentication and can be used for liveness/readiness: + +- `GET http://localhost:9090/mcp/healthz` +- `GET http://localhost:9090/mcp/readyz` + +## License + +Apache License 2.0 diff --git a/charts/snmcp/e2e/.gitkeep b/charts/snmcp/e2e/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/charts/snmcp/e2e/pulsar-values.yaml b/charts/snmcp/e2e/pulsar-values.yaml new file mode 100644 index 0000000..f68cd91 --- /dev/null +++ b/charts/snmcp/e2e/pulsar-values.yaml @@ -0,0 +1,12 @@ +pulsar: + image: apachepulsar/pulsar-all:4.1.0 + ports: + broker: 6650 + web: 8080 + auth: + enabled: true + tokenSecretKeyFile: /pulsarctl/test/auth/token/secret.key + superUserRoles: + - admin + resources: + javaToolOptions: "-Xms256m -Xmx512m" diff --git a/charts/snmcp/e2e/test-secret.key b/charts/snmcp/e2e/test-secret.key new file mode 100644 index 0000000..f3b893b --- /dev/null +++ b/charts/snmcp/e2e/test-secret.key @@ -0,0 +1 @@ +snmcp-e2e-test-secret-key-32-bytes-long diff --git a/charts/snmcp/e2e/test-tokens.env b/charts/snmcp/e2e/test-tokens.env new file mode 100644 index 0000000..1c47a00 --- /dev/null +++ b/charts/snmcp/e2e/test-tokens.env @@ -0,0 +1,2 @@ +ADMIN_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjQxMDI0NDQ4MDAsImlhdCI6MTcwMDAwMDAwMCwic3ViIjoiYWRtaW4ifQ.fvMIzcCv16QvecEd8rJS6GZaJP_FeFw-XndtfRMfZyc +TEST_USER_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjQxMDI0NDQ4MDAsImlhdCI6MTcwMDAwMDAwMCwic3ViIjoidGVzdC11c2VyIn0.gv49qzkZrtc-6aXMGxSGFpRLk_C3pnFI4SprgewhN54 diff --git a/charts/snmcp/templates/NOTES.txt b/charts/snmcp/templates/NOTES.txt new file mode 100644 index 0000000..e3f4fba --- /dev/null +++ b/charts/snmcp/templates/NOTES.txt @@ -0,0 +1,37 @@ +{{/* +Copyright 2025 StreamNative +SPDX-License-Identifier: Apache-2.0 +*/}} +StreamNative MCP Server has been deployed! + +1. Get the application URL: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ $.Values.server.httpPath }}/sse +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "snmcp.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo "http://$NODE_IP:$NODE_PORT{{ .Values.server.httpPath }}/sse" +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status by running: + kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "snmcp.fullname" . }} + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "snmcp.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo "http://$SERVICE_IP:{{ .Values.service.port }}{{ .Values.server.httpPath }}/sse" +{{- else if contains "ClusterIP" .Values.service.type }} + kubectl port-forward svc/{{ include "snmcp.fullname" . }} {{ .Values.service.port }}:{{ .Values.service.port }} -n {{ .Release.Namespace }} + echo "http://localhost:{{ .Values.service.port }}{{ .Values.server.httpPath }}/sse" +{{- end }} + +2. Connect MCP clients with Authorization header: + curl -H "Authorization: Bearer " + +3. This deployment is configured for Multi-Session Pulsar mode. + Each request must include a valid Pulsar JWT token in the Authorization header. + +Configuration: + - Pulsar Web Service URL: {{ .Values.pulsar.webServiceURL }} + - Session Cache Size: {{ .Values.session.cacheSize }} + - Session TTL: {{ .Values.session.ttlMinutes }} minutes + - Read-Only Mode: {{ .Values.server.readOnly }} diff --git a/charts/snmcp/templates/_helpers.tpl b/charts/snmcp/templates/_helpers.tpl new file mode 100644 index 0000000..e214e7a --- /dev/null +++ b/charts/snmcp/templates/_helpers.tpl @@ -0,0 +1,72 @@ +{{/* +Copyright 2025 StreamNative +SPDX-License-Identifier: Apache-2.0 +*/}} + +{{/* +Expand the name of the chart. +*/}} +{{- define "snmcp.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +*/}} +{{- define "snmcp.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "snmcp.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "snmcp.labels" -}} +helm.sh/chart: {{ include "snmcp.chart" . }} +{{ include "snmcp.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "snmcp.selectorLabels" -}} +app.kubernetes.io/name: {{ include "snmcp.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "snmcp.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "snmcp.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +Get the image tag +*/}} +{{- define "snmcp.imageTag" -}} +{{- default .Chart.AppVersion .Values.image.tag }} +{{- end }} diff --git a/charts/snmcp/templates/configmap.yaml b/charts/snmcp/templates/configmap.yaml new file mode 100644 index 0000000..8bab261 --- /dev/null +++ b/charts/snmcp/templates/configmap.yaml @@ -0,0 +1,36 @@ +{{/* +Copyright 2025 StreamNative +SPDX-License-Identifier: Apache-2.0 +*/}} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "snmcp.fullname" . }} + labels: + {{- include "snmcp.labels" . | nindent 4 }} +data: + SNMCP_PULSAR_WEB_SERVICE_URL: {{ required "pulsar.webServiceURL is required" .Values.pulsar.webServiceURL | quote }} + {{- if .Values.pulsar.serviceURL }} + SNMCP_PULSAR_SERVICE_URL: {{ .Values.pulsar.serviceURL | quote }} + {{- end }} + SNMCP_SESSION_CACHE_SIZE: {{ .Values.session.cacheSize | quote }} + SNMCP_SESSION_TTL_MINUTES: {{ .Values.session.ttlMinutes | quote }} + SNMCP_HTTP_PATH: {{ .Values.server.httpPath | quote }} + SNMCP_CONFIG_DIR: {{ .Values.server.configDir | quote }} + SNMCP_READ_ONLY: {{ .Values.server.readOnly | quote }} + {{- if .Values.server.features }} + SNMCP_FEATURES: {{ .Values.server.features | join "," | quote }} + {{- end }} + {{- if .Values.pulsar.tls.enabled }} + SNMCP_PULSAR_TLS_ALLOW_INSECURE: {{ .Values.pulsar.tls.allowInsecureConnection | quote }} + SNMCP_PULSAR_TLS_HOSTNAME_VERIFICATION: {{ .Values.pulsar.tls.enableHostnameVerification | quote }} + {{- if .Values.pulsar.tls.trustCertsFilePath }} + SNMCP_PULSAR_TLS_TRUST_CERTS_PATH: {{ .Values.pulsar.tls.trustCertsFilePath | quote }} + {{- end }} + {{- if .Values.pulsar.tls.certFile }} + SNMCP_PULSAR_TLS_CERT_FILE: {{ .Values.pulsar.tls.certFile | quote }} + {{- end }} + {{- if .Values.pulsar.tls.keyFile }} + SNMCP_PULSAR_TLS_KEY_FILE: {{ .Values.pulsar.tls.keyFile | quote }} + {{- end }} + {{- end }} diff --git a/charts/snmcp/templates/deployment.yaml b/charts/snmcp/templates/deployment.yaml new file mode 100644 index 0000000..d702586 --- /dev/null +++ b/charts/snmcp/templates/deployment.yaml @@ -0,0 +1,151 @@ +{{/* +Copyright 2025 StreamNative +SPDX-License-Identifier: Apache-2.0 +*/}} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "snmcp.fullname" . }} + labels: + {{- include "snmcp.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + {{- include "snmcp.selectorLabels" . | nindent 6 }} + template: + metadata: + annotations: + checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "snmcp.selectorLabels" . | nindent 8 }} + spec: + {{- with .Values.image.pullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "snmcp.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ include "snmcp.imageTag" . }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + args: + - sse + - --use-external-pulsar + - --multi-session-pulsar + - --pulsar-web-service-url + - "$(SNMCP_PULSAR_WEB_SERVICE_URL)" + {{- if .Values.pulsar.serviceURL }} + - --pulsar-service-url + - "$(SNMCP_PULSAR_SERVICE_URL)" + {{- end }} + - --session-cache-size + - "$(SNMCP_SESSION_CACHE_SIZE)" + - --session-ttl-minutes + - "$(SNMCP_SESSION_TTL_MINUTES)" + - --http-path + - "$(SNMCP_HTTP_PATH)" + {{- if .Values.server.readOnly }} + - --read-only + {{- end }} + {{- if .Values.server.features }} + - --features + - "$(SNMCP_FEATURES)" + {{- end }} + {{- if .Values.pulsar.tls.enabled }} + - --pulsar-tls-allow-insecure-connection={{ .Values.pulsar.tls.allowInsecureConnection }} + - --pulsar-tls-enable-hostname-verification={{ .Values.pulsar.tls.enableHostnameVerification }} + {{- if .Values.pulsar.tls.trustCertsFilePath }} + - --pulsar-tls-trust-certs-file-path + - "$(SNMCP_PULSAR_TLS_TRUST_CERTS_PATH)" + {{- end }} + {{- if .Values.pulsar.tls.certFile }} + - --pulsar-tls-cert-file + - "$(SNMCP_PULSAR_TLS_CERT_FILE)" + {{- end }} + {{- if .Values.pulsar.tls.keyFile }} + - --pulsar-tls-key-file + - "$(SNMCP_PULSAR_TLS_KEY_FILE)" + {{- end }} + {{- end }} + {{- if .Values.logging.enabled }} + - --log-file + - {{ .Values.logging.logFile | quote }} + {{- end }} + envFrom: + - configMapRef: + name: {{ include "snmcp.fullname" . }} + ports: + - name: http + containerPort: 9090 + protocol: TCP + livenessProbe: + httpGet: + path: {{ trimSuffix "/" .Values.server.httpPath }}/healthz + port: http + initialDelaySeconds: 10 + periodSeconds: 30 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + httpGet: + path: {{ trimSuffix "/" .Values.server.httpPath }}/readyz + port: http + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 3 + failureThreshold: 3 + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- if or .Values.pulsar.tls.enabled .Values.logging.enabled .Values.server.configDir }} + volumeMounts: + {{- if .Values.server.configDir }} + - name: config-dir + mountPath: {{ .Values.server.configDir | quote }} + readOnly: false + {{- end }} + {{- if and .Values.pulsar.tls.enabled .Values.pulsar.tls.secretName }} + - name: pulsar-tls + mountPath: /etc/snmcp/tls + readOnly: true + {{- end }} + {{- if .Values.logging.enabled }} + - name: logs + mountPath: /tmp + {{- end }} + {{- end }} + {{- if or .Values.pulsar.tls.enabled .Values.logging.enabled .Values.server.configDir }} + volumes: + {{- if .Values.server.configDir }} + - name: config-dir + emptyDir: {} + {{- end }} + {{- if and .Values.pulsar.tls.enabled .Values.pulsar.tls.secretName }} + - name: pulsar-tls + secret: + secretName: {{ .Values.pulsar.tls.secretName }} + {{- end }} + {{- if .Values.logging.enabled }} + - name: logs + emptyDir: {} + {{- end }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/snmcp/templates/ingress.yaml b/charts/snmcp/templates/ingress.yaml new file mode 100644 index 0000000..b214f9f --- /dev/null +++ b/charts/snmcp/templates/ingress.yaml @@ -0,0 +1,45 @@ +{{/* +Copyright 2025 StreamNative +SPDX-License-Identifier: Apache-2.0 +*/}} +{{- if .Values.ingress.enabled -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ include "snmcp.fullname" . }} + labels: + {{- include "snmcp.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if .Values.ingress.className }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + pathType: {{ .pathType }} + backend: + service: + name: {{ include "snmcp.fullname" $ }} + port: + number: {{ $.Values.service.port }} + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/snmcp/templates/service.yaml b/charts/snmcp/templates/service.yaml new file mode 100644 index 0000000..1cfd105 --- /dev/null +++ b/charts/snmcp/templates/service.yaml @@ -0,0 +1,23 @@ +{{/* +Copyright 2025 StreamNative +SPDX-License-Identifier: Apache-2.0 +*/}} +apiVersion: v1 +kind: Service +metadata: + name: {{ include "snmcp.fullname" . }} + labels: + {{- include "snmcp.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + {{- include "snmcp.selectorLabels" . | nindent 4 }} diff --git a/charts/snmcp/templates/serviceaccount.yaml b/charts/snmcp/templates/serviceaccount.yaml new file mode 100644 index 0000000..028260d --- /dev/null +++ b/charts/snmcp/templates/serviceaccount.yaml @@ -0,0 +1,16 @@ +{{/* +Copyright 2025 StreamNative +SPDX-License-Identifier: Apache-2.0 +*/}} +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "snmcp.serviceAccountName" . }} + labels: + {{- include "snmcp.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +{{- end }} diff --git a/charts/snmcp/values.yaml b/charts/snmcp/values.yaml new file mode 100644 index 0000000..6085996 --- /dev/null +++ b/charts/snmcp/values.yaml @@ -0,0 +1,130 @@ +# StreamNative MCP Server Helm Chart Values +# This chart deploys MCP Server in Multi-Session Pulsar mode + +# Image configuration +image: + repository: streamnative/snmcp + tag: "" # Defaults to chart appVersion + pullPolicy: IfNotPresent + pullSecrets: [] + +# Number of replicas +replicaCount: 1 + +# Server configuration +server: + # Enable read-only mode (disables write operations) + readOnly: false + # Features to enable (e.g., "all-pulsar", "pulsar-admin", "pulsar-client") + # Leave empty to use default (all-pulsar) + features: [] + # HTTP server base path for SSE, message, and health endpoints + httpPath: "/mcp" + # Config directory for snmcp state (must be writable) + configDir: "/var/lib/snmcp" + +# Pulsar cluster configuration (required) +pulsar: + # Pulsar web service URL (required) + webServiceURL: "" + # Pulsar broker service URL (optional, for client operations) + serviceURL: "" + # TLS configuration for Pulsar connection + tls: + enabled: false + # Name of existing secret containing TLS certs + secretName: "" + # Allow insecure TLS connection + allowInsecureConnection: false + # Enable hostname verification + enableHostnameVerification: true + # Path to trust certs file (mounted from secret) + trustCertsFilePath: "" + # Path to client cert file (mounted from secret) + certFile: "" + # Path to client key file (mounted from secret) + keyFile: "" + +# Session management configuration +# Note: Multi-session mode is always enabled in this chart +session: + # Maximum number of cached Pulsar sessions + cacheSize: 100 + # Session TTL in minutes before eviction + ttlMinutes: 30 + +# Kubernetes Service configuration +service: + type: ClusterIP + # Port exposed by the Service (container listens on 9090) + port: 9090 + annotations: {} + +# Ingress configuration +ingress: + enabled: false + className: "" + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: mcp.example.com + paths: + - path: / + pathType: Prefix + tls: [] + # - secretName: mcp-tls + # hosts: + # - mcp.example.com + +# ServiceAccount configuration +serviceAccount: + # Create a service account + create: true + # Annotations for the service account + annotations: {} + # Name of the service account (auto-generated if empty) + name: "" + +# Pod resource limits and requests +resources: {} + # limits: + # cpu: 500m + # memory: 512Mi + # requests: + # cpu: 100m + # memory: 128Mi + +# Pod annotations +podAnnotations: {} + +# Pod security context +podSecurityContext: + fsGroup: 1000 + +# Container security context +securityContext: + runAsNonRoot: true + runAsUser: 1000 + runAsGroup: 1000 + readOnlyRootFilesystem: true + +# Node selector +nodeSelector: {} + +# Tolerations +tolerations: [] + +# Affinity rules +affinity: {} + +# Logging configuration +logging: + enabled: false + # Log file path (inside container) + logFile: "/tmp/snmcp.log" + +# Reserved for future Multi-Session Kafka support +# kafka: +# enabled: false +# bootstrapServers: "" diff --git a/cmd/snmcp-e2e/.gitkeep b/cmd/snmcp-e2e/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/cmd/snmcp-e2e/main.go b/cmd/snmcp-e2e/main.go new file mode 100644 index 0000000..43d2f08 --- /dev/null +++ b/cmd/snmcp-e2e/main.go @@ -0,0 +1,537 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package main is the entry point for the StreamNative MCP E2E test. +package main + +import ( + "context" + "encoding/json" + "errors" + "flag" + "fmt" + "net/http" + "net/url" + "os" + "strings" + "sync" + "time" + + "github.com/mark3labs/mcp-go/client" + "github.com/mark3labs/mcp-go/mcp" +) + +type config struct { + httpBaseURL string + adminToken string + testUserToken string + timeout time.Duration + verbose bool +} + +func main() { + cfg, err := parseConfig() + if err != nil { + fmt.Fprintf(os.Stderr, "config error: %v\n", err) + os.Exit(1) + } + + ctx, cancel := context.WithTimeout(context.Background(), cfg.timeout) + err = run(ctx, cfg) + cancel() + if err != nil { + fmt.Fprintf(os.Stderr, "e2e failed: %v\n", err) + os.Exit(1) + } + _, _ = fmt.Fprintln(os.Stdout, "e2e succeeded") +} + +func parseConfig() (config, error) { + var cfg config + flag.StringVar(&cfg.httpBaseURL, "http-base", getenv("E2E_HTTP_BASE", "http://127.0.0.1:9090/mcp"), "HTTP base URL for MCP endpoints") + flag.StringVar(&cfg.adminToken, "admin-token", getenv("ADMIN_TOKEN", ""), "Admin JWT token") + flag.StringVar(&cfg.testUserToken, "test-user-token", getenv("TEST_USER_TOKEN", ""), "Test user JWT token") + flag.DurationVar(&cfg.timeout, "timeout", 3*time.Minute, "Overall timeout for the E2E run") + flag.BoolVar(&cfg.verbose, "verbose", getenvBool("E2E_VERBOSE", false), "Enable verbose logging") + flag.Parse() + + if cfg.adminToken == "" { + return config{}, errors.New("admin token is required") + } + if cfg.testUserToken == "" { + return config{}, errors.New("test-user token is required") + } + + normalized, err := normalizeBaseURL(cfg.httpBaseURL) + if err != nil { + return config{}, err + } + cfg.httpBaseURL = normalized + return cfg, nil +} + +func normalizeBaseURL(raw string) (string, error) { + parsed, err := url.Parse(raw) + if err != nil { + return "", fmt.Errorf("invalid http-base URL: %w", err) + } + if parsed.Scheme == "" || parsed.Host == "" { + return "", fmt.Errorf("invalid http-base URL: %s", raw) + } + parsed.Path = strings.TrimRight(parsed.Path, "/") + return parsed.String(), nil +} + +func run(ctx context.Context, cfg config) error { + logf(cfg.verbose, "http base: %s", cfg.httpBaseURL) + if err := checkHealth(ctx, cfg.httpBaseURL); err != nil { + return err + } + + sseURL := cfg.httpBaseURL + "/sse" + if err := expectUnauthorized(ctx, sseURL, "", cfg.verbose); err != nil { + return err + } + if err := expectUnauthorized(ctx, sseURL, "invalid-token", cfg.verbose); err != nil { + return err + } + + adminClient, err := newAuthedClient(ctx, sseURL, cfg.adminToken, "snmcp-e2e-admin") + if err != nil { + return err + } + defer func() { + _ = adminClient.Close() + }() + + testClient, err := newAuthedClient(ctx, sseURL, cfg.testUserToken, "snmcp-e2e-test-user") + if err != nil { + return err + } + defer func() { + _ = testClient.Close() + }() + + clusters, err := listClusters(ctx, adminClient) + if err != nil { + return err + } + if len(clusters) == 0 { + return errors.New("no clusters returned from pulsar_admin_cluster") + } + cluster := clusters[0] + + suffix := time.Now().UnixNano() + tenant := fmt.Sprintf("e2e-%d", suffix) + namespace := fmt.Sprintf("%s/ns-%d", tenant, suffix) + topic := fmt.Sprintf("persistent://%s/topic-%d", namespace, suffix) + concurrentTopic := fmt.Sprintf("persistent://%s/topic-concurrent-%d", namespace, suffix) + + result, err := callTool(ctx, adminClient, "pulsar_admin_tenant", map[string]any{ + "resource": "tenant", + "operation": "create", + "tenant": tenant, + "adminRoles": []string{"admin"}, + "allowedClusters": []string{cluster}, + }) + if err := requireToolOK(result, err, "pulsar_admin_tenant create"); err != nil { + return err + } + + result, err = callTool(ctx, adminClient, "pulsar_admin_namespace", map[string]any{ + "operation": "create", + "namespace": namespace, + "clusters": []string{cluster}, + }) + if err := requireToolOK(result, err, "pulsar_admin_namespace create"); err != nil { + return err + } + + result, err = callTool(ctx, adminClient, "pulsar_admin_namespace_policy_set", map[string]any{ + "namespace": namespace, + "policy": "permission", + "role": "test-user", + "actions": []string{"consume"}, + }) + if err := requireToolOK(result, err, "pulsar_admin_namespace_policy_set permission"); err != nil { + return err + } + + result, err = callTool(ctx, adminClient, "pulsar_admin_topic", map[string]any{ + "resource": "topic", + "operation": "create", + "topic": topic, + "partitions": float64(0), + }) + if err := requireToolOK(result, err, "pulsar_admin_topic create"); err != nil { + return err + } + + result, err = callTool(ctx, adminClient, "pulsar_client_produce", map[string]any{ + "topic": topic, + "messages": []string{"admin-message"}, + }) + if err := requireToolOK(result, err, "pulsar_client_produce admin"); err != nil { + return err + } + + result, err = callTool(ctx, testClient, "pulsar_client_consume", map[string]any{ + "topic": topic, + "subscription-name": fmt.Sprintf("sub-%d", suffix), + "initial-position": "earliest", + "num-messages": float64(1), + "timeout": float64(15), + "subscription-type": "exclusive", + "subscription-mode": "durable", + "show-properties": false, + "hide-payload": false, + }) + if err := requireToolOK(result, err, "pulsar_client_consume test-user"); err != nil { + return err + } + + result, err = callTool(ctx, testClient, "pulsar_client_produce", map[string]any{ + "topic": topic, + "messages": []string{"unauthorized-message"}, + }) + if err := requireToolError(result, err, "pulsar_client_produce test-user"); err != nil { + return err + } + + result, err = callTool(ctx, adminClient, "pulsar_admin_topic", map[string]any{ + "resource": "topic", + "operation": "create", + "topic": concurrentTopic, + "partitions": float64(0), + }) + if err := requireToolOK(result, err, "pulsar_admin_topic create concurrent"); err != nil { + return err + } + + if err := runConcurrent(ctx, adminClient, testClient, concurrentTopic, fmt.Sprintf("sub-concurrent-%d", suffix)); err != nil { + return err + } + + return nil +} + +func checkHealth(ctx context.Context, httpBaseURL string) error { + healthURL := httpBaseURL + "/healthz" + readyURL := httpBaseURL + "/readyz" + + if err := expectStatusOK(ctx, healthURL); err != nil { + return fmt.Errorf("healthz check failed: %w", err) + } + if err := expectStatusOK(ctx, readyURL); err != nil { + return fmt.Errorf("readyz check failed: %w", err) + } + return nil +} + +func expectStatusOK(ctx context.Context, target string) error { + req, err := http.NewRequestWithContext(ctx, http.MethodGet, target, nil) + if err != nil { + return err + } + resp, err := http.DefaultClient.Do(req) + if err != nil { + return err + } + defer func() { + _ = resp.Body.Close() + }() + if resp.StatusCode != http.StatusOK { + return fmt.Errorf("unexpected status code: %d", resp.StatusCode) + } + return nil +} + +func expectUnauthorized(ctx context.Context, sseURL, token string, verbose bool) error { + logf(verbose, "checking unauthorized: url=%s token_present=%t", sseURL, token != "") + status, err := probeSSEStatus(ctx, sseURL, token) + if err != nil { + logf(verbose, "probe SSE failed: %v", err) + return err + } + logf(verbose, "probe SSE status: %d", status) + if status == http.StatusUnauthorized || status == http.StatusForbidden { + return nil + } + if token == "" { + return fmt.Errorf("expected unauthorized status for %s, got %d", sseURL, status) + } + + headers := map[string]string{ + "Authorization": "Bearer " + token, + } + c, err := client.NewSSEMCPClient(sseURL, client.WithHeaders(headers)) + if err != nil { + return err + } + defer func() { + _ = c.Close() + }() + + if err := c.Start(ctx); err != nil { + logf(verbose, "sse start error: %v", err) + if isAuthError(err) { + return nil + } + return fmt.Errorf("expected auth error for %s, got %v", sseURL, err) + } + + if err := initializeClient(ctx, c, "snmcp-e2e-unauthorized"); err != nil { + logf(verbose, "initialize error: %v", err) + if isAuthError(err) { + return nil + } + return fmt.Errorf("expected auth error during initialize for %s, got %v", sseURL, err) + } + + result, err := callTool(ctx, c, "pulsar_admin_cluster", map[string]any{ + "resource": "cluster", + "operation": "list", + }) + if err != nil { + logf(verbose, "tool call error: %v", err) + if isAuthError(err) { + return nil + } + return fmt.Errorf("expected auth error for %s, got %v", sseURL, err) + } + if result == nil || !result.IsError { + logf(verbose, "tool call result: %#v", result) + return fmt.Errorf("expected auth error for %s", sseURL) + } + if !isAuthText(firstText(result)) { + logf(verbose, "tool call error text: %s", firstText(result)) + return fmt.Errorf("expected auth error for %s, got %s", sseURL, firstText(result)) + } + return nil +} + +func newAuthedClient(ctx context.Context, sseURL, token, clientName string) (*client.Client, error) { + headers := map[string]string{ + "Authorization": "Bearer " + token, + } + c, err := client.NewSSEMCPClient(sseURL, client.WithHeaders(headers)) + if err != nil { + return nil, err + } + if err := c.Start(ctx); err != nil { + return nil, err + } + if err := initializeClient(ctx, c, clientName); err != nil { + return nil, err + } + return c, nil +} + +func initializeClient(ctx context.Context, c *client.Client, name string) error { + req := mcp.InitializeRequest{} + req.Params.ProtocolVersion = mcp.LATEST_PROTOCOL_VERSION + req.Params.ClientInfo = mcp.Implementation{ + Name: name, + Version: "1.0.0", + } + _, err := c.Initialize(ctx, req) + return err +} + +func callTool(ctx context.Context, c *client.Client, name string, args map[string]any) (*mcp.CallToolResult, error) { + request := mcp.CallToolRequest{} + request.Params.Name = name + request.Params.Arguments = args + return c.CallTool(ctx, request) +} + +func requireToolOK(result *mcp.CallToolResult, err error, label string) error { + if err != nil { + return fmt.Errorf("%s failed: %w", label, err) + } + if result.IsError { + return fmt.Errorf("%s returned error: %s", label, firstText(result)) + } + return nil +} + +func requireToolError(result *mcp.CallToolResult, err error, label string) error { + if err != nil { + return fmt.Errorf("%s failed: %w", label, err) + } + if !result.IsError { + return fmt.Errorf("%s expected error, got success: %s", label, firstText(result)) + } + return nil +} + +func firstText(result *mcp.CallToolResult) string { + if result == nil || len(result.Content) == 0 { + return "" + } + if text, ok := result.Content[0].(mcp.TextContent); ok { + return text.Text + } + return "" +} + +func probeSSEStatus(ctx context.Context, sseURL, token string) (int, error) { + reqCtx, cancel := context.WithTimeout(ctx, 5*time.Second) + defer cancel() + + req, err := http.NewRequestWithContext(reqCtx, http.MethodGet, sseURL, nil) + if err != nil { + return 0, err + } + req.Header.Set("Accept", "text/event-stream") + if token != "" { + req.Header.Set("Authorization", "Bearer "+token) + } + + httpClient := &http.Client{Timeout: 5 * time.Second} + resp, err := httpClient.Do(req) + if err != nil { + return 0, err + } + defer func() { + _ = resp.Body.Close() + }() + return resp.StatusCode, nil +} + +func isAuthError(err error) bool { + if err == nil { + return false + } + return isAuthText(err.Error()) +} + +func isAuthText(text string) bool { + if text == "" { + return false + } + lower := strings.ToLower(text) + if strings.Contains(lower, "status code: 401") || strings.Contains(lower, "status code: 403") { + return true + } + if strings.Contains(lower, " 401") || strings.Contains(lower, " 403") { + return true + } + if strings.Contains(lower, "unauthorized") { + return true + } + if strings.Contains(lower, "authentication") || strings.Contains(lower, "authorization") { + return true + } + if strings.Contains(lower, "permission") || strings.Contains(lower, "access denied") { + return true + } + if strings.Contains(lower, "missing authorization") || strings.Contains(lower, "session not found") { + return true + } + return false +} + +func listClusters(ctx context.Context, c *client.Client) ([]string, error) { + result, err := callTool(ctx, c, "pulsar_admin_cluster", map[string]any{ + "resource": "cluster", + "operation": "list", + }) + if err := requireToolOK(result, err, "pulsar_admin_cluster list"); err != nil { + return nil, err + } + raw := firstText(result) + if raw == "" { + return nil, errors.New("empty cluster list result") + } + var clusters []string + if err := json.Unmarshal([]byte(raw), &clusters); err != nil { + return nil, fmt.Errorf("failed to parse cluster list: %w", err) + } + return clusters, nil +} + +func runConcurrent(ctx context.Context, adminClient, testClient *client.Client, topic, subscription string) error { + var wg sync.WaitGroup + errCh := make(chan error, 2) + + wg.Add(1) + go func() { + defer wg.Done() + result, err := callTool(ctx, adminClient, "pulsar_client_produce", map[string]any{ + "topic": topic, + "messages": []string{"concurrent-message"}, + }) + err = requireToolOK(result, err, "pulsar_client_produce concurrent admin") + if err != nil { + errCh <- err + } + }() + + wg.Add(1) + go func() { + defer wg.Done() + result, err := callTool(ctx, testClient, "pulsar_client_consume", map[string]any{ + "topic": topic, + "subscription-name": subscription, + "initial-position": "earliest", + "num-messages": float64(1), + "timeout": float64(15), + }) + err = requireToolOK(result, err, "pulsar_client_consume concurrent test-user") + if err != nil { + errCh <- err + } + }() + + wg.Wait() + close(errCh) + + for err := range errCh { + if err != nil { + return err + } + } + return nil +} + +func getenv(key, fallback string) string { + val := os.Getenv(key) + if val == "" { + return fallback + } + return val +} + +func getenvBool(key string, fallback bool) bool { + value, ok := os.LookupEnv(key) + if !ok { + return fallback + } + switch strings.ToLower(strings.TrimSpace(value)) { + case "1", "true", "yes", "y", "on": + return true + case "0", "false", "no", "n", "off": + return false + default: + return fallback + } +} + +func logf(enabled bool, format string, args ...any) { + if !enabled { + return + } + _, _ = fmt.Fprintf(os.Stderr, "[e2e] "+format+"\n", args...) +} diff --git a/pkg/cmd/mcp/sse.go b/pkg/cmd/mcp/sse.go index 769f27b..1540abd 100644 --- a/pkg/cmd/mcp/sse.go +++ b/pkg/cmd/mcp/sse.go @@ -20,6 +20,7 @@ import ( "net/http" "os" "os/signal" + "path" "syscall" "time" @@ -115,34 +116,42 @@ func runSseServer(configOpts *ServerOptions) error { logger.Info("Multi-session Pulsar mode enabled") } - sseServer := server.NewSSEServer( - mcpServer.MCPServer, - server.WithStaticBasePath(configOpts.HTTPPath), - server.WithSSEContextFunc(func(ctx context.Context, r *http.Request) context.Context { - c := context.WithValue(ctx, common.OptionsKey, configOpts.Options) - c = mcpctx.WithKafkaSession(c, mcpServer.KafkaSession) - c = mcpctx.WithSNCloudSession(c, mcpServer.SNCloudSession) + mux := http.NewServeMux() + httpServer := &http.Server{ + Addr: configOpts.HTTPAddr, + Handler: mux, + ReadHeaderTimeout: 10 * time.Second, // Prevent Slowloris attacks + } + sseContextFunc := func(ctx context.Context, r *http.Request) context.Context { + c := context.WithValue(ctx, common.OptionsKey, configOpts.Options) + c = mcpctx.WithKafkaSession(c, mcpServer.KafkaSession) + c = mcpctx.WithSNCloudSession(c, mcpServer.SNCloudSession) - // Handle per-user Pulsar sessions - if pulsarSessionManager != nil { - token := session.ExtractBearerToken(r) - // Token is already validated in auth middleware, this should always succeed - if pulsarSession, err := pulsarSessionManager.GetOrCreateSession(ctx, token); err == nil { - c = mcpctx.WithPulsarSession(c, pulsarSession) - if token != "" { - c = session.WithUserTokenHash(c, pulsarSessionManager.HashTokenForLog(token)) - } - } else { - // Should not happen since middleware validates token first - logger.WithError(err).Error("Unexpected auth error after middleware validation") - // Don't set PulsarSession - tool handlers will fail gracefully with "session not found" + // Handle per-user Pulsar sessions + if pulsarSessionManager != nil { + token := session.ExtractBearerToken(r) + // Token is already validated in auth middleware, this should always succeed + if pulsarSession, err := pulsarSessionManager.GetOrCreateSession(ctx, token); err == nil { + c = mcpctx.WithPulsarSession(c, pulsarSession) + if token != "" { + c = session.WithUserTokenHash(c, pulsarSessionManager.HashTokenForLog(token)) } } else { - c = mcpctx.WithPulsarSession(c, mcpServer.PulsarSession) + // Should not happen since middleware validates token first + logger.WithError(err).Error("Unexpected auth error after middleware validation") + // Don't set PulsarSession - tool handlers will fail gracefully with "session not found" } + } else { + c = mcpctx.WithPulsarSession(c, mcpServer.PulsarSession) + } - return c - }), + return c + } + sseServer := server.NewSSEServer( + mcpServer.MCPServer, + server.WithHTTPServer(httpServer), + server.WithStaticBasePath(configOpts.HTTPPath), + server.WithSSEContextFunc(sseContextFunc), ) // 4. Expose the full SSE URL to the user @@ -151,16 +160,15 @@ func runSseServer(configOpts *ServerOptions) error { fmt.Fprintf(os.Stderr, "StreamNative Cloud MCP Server listening on http://%s%s\n", configOpts.HTTPAddr, ssePath) - // 5. Run the HTTP listener in a goroutine - errCh := make(chan error, 1) - var httpServer *http.Server + healthPath := joinHTTPPath(configOpts.HTTPPath, "healthz") + readyPath := joinHTTPPath(configOpts.HTTPPath, "readyz") + authMiddleware := func(next http.Handler) http.Handler { + return next + } if pulsarSessionManager != nil { - // Multi-session mode: use custom handlers with auth middleware - mux := http.NewServeMux() - - // Auth middleware wrapper that validates token before processing - authMiddleware := func(next http.Handler) http.Handler { + // Multi-session mode: validate token before processing SSE/message requests + authMiddleware = func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { token := session.ExtractBearerToken(r) if token == "" { @@ -178,31 +186,21 @@ func runSseServer(configOpts *ServerOptions) error { next.ServeHTTP(w, r) }) } + logger.Info("SSE server started with authentication middleware") + } - // Mount handlers with auth middleware - mux.Handle(ssePath, authMiddleware(sseServer.SSEHandler())) - mux.Handle(msgPath, authMiddleware(sseServer.MessageHandler())) + mux.Handle(ssePath, authMiddleware(sseServer.SSEHandler())) + mux.Handle(msgPath, authMiddleware(sseServer.MessageHandler())) + mux.HandleFunc(healthPath, healthHandler("ok")) + mux.HandleFunc(readyPath, healthHandler("ready")) - // Start custom HTTP server - httpServer = &http.Server{ - Addr: configOpts.HTTPAddr, - Handler: mux, - ReadHeaderTimeout: 10 * time.Second, // Prevent Slowloris attacks + // 5. Run the HTTP listener in a goroutine + errCh := make(chan error, 1) + go func() { + if err := sseServer.Start(configOpts.HTTPAddr); err != nil && !errors.Is(err, http.ErrServerClosed) { + errCh <- err // bubble up real crashes } - go func() { - if err := httpServer.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { - errCh <- err - } - }() - logger.Info("SSE server started with authentication middleware") - } else { - // Non-multi-session mode: use default Start() - go func() { - if err := sseServer.Start(configOpts.HTTPAddr); err != nil && !errors.Is(err, http.ErrServerClosed) { - errCh <- err // bubble up real crashes - } - }() - } + }() // Give the server a moment to start time.Sleep(100 * time.Millisecond) @@ -226,20 +224,10 @@ func runSseServer(configOpts *ServerOptions) error { pulsarSessionManager.Stop() } - // Shut down the HTTP server - if httpServer != nil { - // Multi-session mode: shut down custom HTTP server - if err := httpServer.Shutdown(shCtx); err != nil { - if !errors.Is(err, http.ErrServerClosed) { - logger.Errorf("Error shutting down HTTP server: %v", err) - } - } - } else { - // Non-multi-session mode: shut down SSE server - if err := sseServer.Shutdown(shCtx); err != nil { - if !errors.Is(err, http.ErrServerClosed) { - logger.Errorf("Error shutting down SSE server: %v", err) - } + // Shut down the SSE server (also closes the underlying HTTP server) + if err := sseServer.Shutdown(shCtx); err != nil { + if !errors.Is(err, http.ErrServerClosed) { + logger.Errorf("Error shutting down SSE server: %v", err) } } @@ -254,3 +242,28 @@ func runSseServer(configOpts *ServerOptions) error { fmt.Fprintln(os.Stderr, "SSE server stopped gracefully") return nil } + +func joinHTTPPath(basePath string, suffix string) string { + joined := path.Join(basePath, suffix) + if joined == "" { + return "/" + suffix + } + if joined[0] != '/' { + return "/" + joined + } + return joined +} + +func healthHandler(status string) http.HandlerFunc { + return func(w http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodGet && r.Method != http.MethodHead { + w.WriteHeader(http.StatusMethodNotAllowed) + return + } + w.Header().Set("Content-Type", "text/plain; charset=utf-8") + w.WriteHeader(http.StatusOK) + if r.Method == http.MethodGet { + _, _ = w.Write([]byte(status)) + } + } +} diff --git a/scripts/.gitkeep b/scripts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/scripts/e2e-test.sh b/scripts/e2e-test.sh new file mode 100755 index 0000000..f008c28 --- /dev/null +++ b/scripts/e2e-test.sh @@ -0,0 +1,257 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +E2E_DIR="${ROOT_DIR}/charts/snmcp/e2e" + +PULSAR_CONTAINER="${PULSAR_CONTAINER:-pulsar-standalone}" +PULSAR_IMAGE="${PULSAR_IMAGE:-apachepulsar/pulsar-all:4.1.0}" +KIND_NETWORK="${KIND_NETWORK:-kind}" +KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-kind}" +PULSAR_WEB_PORT="${PULSAR_WEB_PORT:-8080}" +PULSAR_BROKER_PORT="${PULSAR_BROKER_PORT:-6650}" +PULSAR_STARTUP_TIMEOUT="${PULSAR_STARTUP_TIMEOUT:-180}" +PULSAR_STARTUP_INTERVAL="${PULSAR_STARTUP_INTERVAL:-3}" + +SNMCP_RELEASE="${SNMCP_RELEASE:-snmcp}" +SNMCP_NAMESPACE="${SNMCP_NAMESPACE:-default}" +SNMCP_CHART_DIR="${SNMCP_CHART_DIR:-${ROOT_DIR}/charts/snmcp}" +SNMCP_FEATURES="" +SNMCP_IMAGE_REPO="${SNMCP_IMAGE_REPO:-}" +SNMCP_IMAGE_TAG="${SNMCP_IMAGE_TAG:-}" +SNMCP_WAIT_TIMEOUT="${SNMCP_WAIT_TIMEOUT:-180s}" +SNMCP_HTTP_PATH="${SNMCP_HTTP_PATH:-/mcp}" +SNMCP_SERVICE_PORT="${SNMCP_SERVICE_PORT:-9090}" +SNMCP_LOCAL_PORT="${SNMCP_LOCAL_PORT:-19090}" +SNMCP_PORT_FORWARD_TIMEOUT="${SNMCP_PORT_FORWARD_TIMEOUT:-60}" +SNMCP_E2E_BIN="${SNMCP_E2E_BIN:-${ROOT_DIR}/bin/snmcp-e2e}" +SNMCP_PORT_FORWARD_PID="" + +TOKEN_ENV_FILE="${TOKEN_ENV_FILE:-${E2E_DIR}/test-tokens.env}" +TOKEN_SECRET_FILE="${TOKEN_SECRET_FILE:-${E2E_DIR}/test-secret.key}" + +log() { + echo "[e2e] $*" +} + +die() { + echo "[e2e] $*" >&2 + exit 1 +} + +require_cmd() { + command -v "$1" >/dev/null 2>&1 || die "missing command: $1" +} + +load_tokens() { + [[ -f "$TOKEN_ENV_FILE" ]] || die "missing token env file: $TOKEN_ENV_FILE" + set -a + # shellcheck disable=SC1090 + source "$TOKEN_ENV_FILE" + set +a + [[ -n "${ADMIN_TOKEN:-}" ]] || die "ADMIN_TOKEN not set in $TOKEN_ENV_FILE" +} + +ensure_kind_network() { + docker network inspect "$KIND_NETWORK" >/dev/null 2>&1 || die "missing kind network: $KIND_NETWORK" +} + +pulsar_ip() { + docker inspect -f "{{.NetworkSettings.Networks.${KIND_NETWORK}.IPAddress}}" "$PULSAR_CONTAINER" +} + +wait_for_http() { + local url="$1" + local timeout="$2" + local deadline=$((SECONDS + timeout)) + while ((SECONDS < deadline)); do + if curl -fsS "$url" >/dev/null; then + return 0 + fi + sleep 2 + done + return 1 +} + +setup_pulsar() { + require_cmd docker + require_cmd curl + ensure_kind_network + load_tokens + [[ -f "$TOKEN_SECRET_FILE" ]] || die "missing secret key file: $TOKEN_SECRET_FILE" + + if docker ps -a --format '{{.Names}}' | grep -qx "$PULSAR_CONTAINER"; then + log "removing existing container: $PULSAR_CONTAINER" + docker rm -f "$PULSAR_CONTAINER" >/dev/null + fi + + log "starting pulsar container: $PULSAR_CONTAINER" + docker run -d \ + --name "$PULSAR_CONTAINER" \ + --network "$KIND_NETWORK" \ + -e PULSAR_PREFIX_authenticationEnabled=true \ + -e PULSAR_PREFIX_authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderToken \ + -e PULSAR_PREFIX_authorizationEnabled=true \ + -e PULSAR_PREFIX_superUserRoles=admin \ + -e PULSAR_PREFIX_tokenSecretKey=file:///pulsarctl/test/auth/token/secret.key \ + -e PULSAR_PREFIX_brokerClientAuthenticationPlugin=org.apache.pulsar.client.impl.auth.AuthenticationToken \ + -e PULSAR_PREFIX_brokerClientAuthenticationParameters="token:${ADMIN_TOKEN}" \ + -v "$TOKEN_SECRET_FILE:/pulsarctl/test/auth/token/secret.key:ro" \ + "$PULSAR_IMAGE" \ + bash -lc 'set -- $(hostname -i); export PULSAR_PREFIX_advertisedAddress=$1; bin/apply-config-from-env.py /pulsar/conf/standalone.conf; exec bin/pulsar standalone' \ + >/dev/null + + log "waiting for pulsar to be ready" + local deadline=$((SECONDS + PULSAR_STARTUP_TIMEOUT)) + while ((SECONDS < deadline)); do + local ip + if ip="$(pulsar_ip 2>/dev/null)" && [[ -n "$ip" ]]; then + if curl -fsS "http://${ip}:${PULSAR_WEB_PORT}/admin/v2/clusters" \ + -H "Authorization: Bearer ${ADMIN_TOKEN}" >/dev/null; then + log "pulsar ready at ${ip}" + return 0 + fi + fi + sleep "$PULSAR_STARTUP_INTERVAL" + done + + die "pulsar not ready after ${PULSAR_STARTUP_TIMEOUT}s" +} + +build_image() { + require_cmd docker + require_cmd kind + + SNMCP_IMAGE_REPO="${SNMCP_IMAGE_REPO:-snmcp-e2e}" + SNMCP_IMAGE_TAG="${SNMCP_IMAGE_TAG:-local}" + + local image_ref="${SNMCP_IMAGE_REPO}:${SNMCP_IMAGE_TAG}" + log "building image ${image_ref}" + docker build -t "$image_ref" -f "${ROOT_DIR}/Dockerfile" "$ROOT_DIR" >/dev/null + + log "loading image into kind" + kind load docker-image "$image_ref" --name "$KIND_CLUSTER_NAME" >/dev/null +} + +deploy_mcp() { + require_cmd helm + require_cmd kubectl + require_cmd docker + ensure_kind_network + + local ip + ip="$(pulsar_ip)" + [[ -n "$ip" ]] || die "failed to resolve pulsar container IP" + + local helm_args=( + --namespace "$SNMCP_NAMESPACE" + --create-namespace + --set "pulsar.webServiceURL=http://${ip}:${PULSAR_WEB_PORT}" + --set "pulsar.serviceURL=pulsar://${ip}:${PULSAR_BROKER_PORT}" + --wait + --timeout "$SNMCP_WAIT_TIMEOUT" + ) + + if [[ -n "$SNMCP_IMAGE_REPO" ]]; then + helm_args+=(--set "image.repository=${SNMCP_IMAGE_REPO}") + fi + if [[ -n "$SNMCP_IMAGE_TAG" ]]; then + helm_args+=(--set "image.tag=${SNMCP_IMAGE_TAG}") + fi + + log "deploying snmcp with helm" + helm upgrade --install "$SNMCP_RELEASE" "$SNMCP_CHART_DIR" "${helm_args[@]}" >/dev/null + + log "waiting for snmcp deployment rollout" + kubectl rollout status "deployment/${SNMCP_RELEASE}" \ + --namespace "$SNMCP_NAMESPACE" \ + --timeout "$SNMCP_WAIT_TIMEOUT" \ + >/dev/null + + log "snmcp deployed and ready" +} + +run_tests() { + require_cmd kubectl + require_cmd go + require_cmd curl + load_tokens + + log "building snmcp-e2e binary" + go build -o "$SNMCP_E2E_BIN" "${ROOT_DIR}/cmd/snmcp-e2e" >/dev/null + + log "starting port-forward for snmcp service" + kubectl port-forward "svc/${SNMCP_RELEASE}" "${SNMCP_LOCAL_PORT}:${SNMCP_SERVICE_PORT}" \ + --namespace "$SNMCP_NAMESPACE" >/dev/null 2>&1 & + SNMCP_PORT_FORWARD_PID=$! + + trap 'if [[ -n "${SNMCP_PORT_FORWARD_PID:-}" ]]; then kill "$SNMCP_PORT_FORWARD_PID" >/dev/null 2>&1 || true; fi' RETURN + + local health_url="http://127.0.0.1:${SNMCP_LOCAL_PORT}${SNMCP_HTTP_PATH}/healthz" + if ! wait_for_http "$health_url" "$SNMCP_PORT_FORWARD_TIMEOUT"; then + die "port-forward did not become ready within ${SNMCP_PORT_FORWARD_TIMEOUT}s" + fi + + local http_base="http://127.0.0.1:${SNMCP_LOCAL_PORT}${SNMCP_HTTP_PATH}" + log "running snmcp-e2e against ${http_base}" + E2E_HTTP_BASE="$http_base" "$SNMCP_E2E_BIN" +} + +cleanup() { + require_cmd docker + + if command -v helm >/dev/null 2>&1; then + helm uninstall "$SNMCP_RELEASE" --namespace "$SNMCP_NAMESPACE" >/dev/null 2>&1 || true + fi + + if docker ps -a --format '{{.Names}}' | grep -qx "$PULSAR_CONTAINER"; then + docker rm -f "$PULSAR_CONTAINER" >/dev/null + fi +} + +usage() { + cat < + +Commands: + setup-pulsar Start Pulsar standalone with JWT auth on the kind network + build-image Build snmcp image and load into kind + deploy-mcp Deploy snmcp Helm chart and wait for readiness + run-tests Port-forward snmcp service and run E2E client + cleanup Remove Pulsar container and uninstall snmcp release + all Run setup-pulsar, build-image, deploy-mcp, and run-tests +USAGE +} + +main() { + local cmd="${1:-}" + case "$cmd" in + setup-pulsar) + setup_pulsar + ;; + build-image) + build_image + ;; + deploy-mcp) + deploy_mcp + ;; + run-tests) + run_tests + ;; + cleanup) + cleanup + ;; + all) + setup_pulsar + build_image + deploy_mcp + run_tests + ;; + *) + usage + exit 1 + ;; + esac +} + +main "$@" From d72a8ed2f12fd9e5491dcf926929120ef152ae69 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 19:39:31 +0800 Subject: [PATCH 44/85] chore: add go-sdk dependency Record go-sdk dependency and update module metadata for migration. --- go.mod | 4 +++- go.sum | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 3d63a7b..5b128c3 100644 --- a/go.mod +++ b/go.mod @@ -10,6 +10,7 @@ require ( github.com/hamba/avro/v2 v2.28.0 github.com/mark3labs/mcp-go v0.43.2 github.com/mitchellh/go-homedir v1.1.0 + github.com/modelcontextprotocol/go-sdk v1.2.0 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.9.1 @@ -22,7 +23,7 @@ require ( github.com/twmb/franz-go/pkg/kadm v1.16.0 github.com/twmb/franz-go/pkg/sr v1.3.0 github.com/twmb/tlscfg v1.2.1 - golang.org/x/oauth2 v0.27.0 + golang.org/x/oauth2 v0.30.0 gopkg.in/yaml.v2 v2.4.0 k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 ) @@ -49,6 +50,7 @@ require ( github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.2 // indirect github.com/golang/protobuf v1.5.4 // indirect + github.com/google/jsonschema-go v0.3.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/errwrap v1.1.0 // indirect diff --git a/go.sum b/go.sum index 1156150..f070325 100644 --- a/go.sum +++ b/go.sum @@ -96,6 +96,8 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/jsonschema-go v0.3.0 h1:6AH2TxVNtk3IlvkkhjrtbUc4S8AvO0Xii0DxIygDg+Q= +github.com/google/jsonschema-go v0.3.0/go.mod h1:r5quNTdLOYEz95Ru18zA0ydNbBuYoo9tgaYcxEYhJVE= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= @@ -157,6 +159,8 @@ github.com/moby/sys/user v0.1.0 h1:WmZ93f5Ux6het5iituh9x2zAG7NFY9Aqi49jjE1PaQg= github.com/moby/sys/user v0.1.0/go.mod h1:fKJhFOnsCN6xZ5gSfbM6zaHGgDJMrqt9/reuj4T7MmU= github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/modelcontextprotocol/go-sdk v1.2.0 h1:Y23co09300CEk8iZ/tMxIX1dVmKZkzoSBZOpJwUnc/s= +github.com/modelcontextprotocol/go-sdk v1.2.0/go.mod h1:6fM3LCm3yV7pAs8isnKLn07oKtB0MP9LHd3DfAcKw10= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -285,8 +289,8 @@ golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= -golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M= -golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= +golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= +golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -308,6 +312,8 @@ golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ= +golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 h1:ToEetK57OidYuqD4Q5w+vfEnPvPpuTwedCNVohYJfNk= google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A= From d512fc41fc780625fb122408b75ffe2759f8de8c Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 19:55:43 +0800 Subject: [PATCH 45/85] feat: add go-sdk server wrapper --- pkg/cmd/mcp/server.go | 10 +- pkg/mcp/pulsar_functions_as_tools.go | 2 +- pkg/mcp/server.go | 22 +-- pkg/mcp/server_new.go | 196 +++++++++++++++++++++++++++ 4 files changed, 213 insertions(+), 17 deletions(-) create mode 100644 pkg/mcp/server_new.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 1e37132..833dd9a 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -28,10 +28,10 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) -func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *logrus.Logger) (*mcp.Server, error) { +func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *logrus.Logger) (*mcp.LegacyServer, error) { snConfig := configOpts.LoadConfigOrDie() var s *server.MCPServer - var mcpServer *mcp.Server + var mcpServer *mcp.LegacyServer switch { case snConfig.KeyFile != "": { @@ -46,7 +46,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo if err != nil { return nil, errors.Wrap(err, "failed to create StreamNative Cloud session") } - mcpServer = mcp.NewServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName, snConfig))) + mcpServer = mcp.NewLegacyServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetStreamNativeCloudServerInstructions(userName, snConfig))) mcpServer.SNCloudSession = session s = mcpServer.MCPServer @@ -77,13 +77,13 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo if err != nil { return nil, errors.Wrap(err, "failed to set external Kafka context") } - mcpServer = mcp.NewServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetExternalKafkaServerInstructions(snConfig.ExternalKafka.BootstrapServers))) + mcpServer = mcp.NewLegacyServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetExternalKafkaServerInstructions(snConfig.ExternalKafka.BootstrapServers))) mcpServer.KafkaSession = ksession s = mcpServer.MCPServer } case snConfig.ExternalPulsar != nil: { - mcpServer = mcp.NewServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL))) + mcpServer = mcp.NewLegacyServer("streamnative-mcp-server", "0.0.1", logrusLogger, server.WithInstructions(mcp.GetExternalPulsarServerInstructions(snConfig.ExternalPulsar.WebServiceURL))) s = mcpServer.MCPServer // Only create global PulsarSession if not in multi-session mode diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go index 1c76afb..ecec415 100644 --- a/pkg/mcp/pulsar_functions_as_tools.go +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -50,7 +50,7 @@ func StopAllPulsarFunctionManagers() { } // PulsarFunctionManagedMcpTools registers Pulsar Functions-as-tools handlers. -func (s *Server) PulsarFunctionManagedMcpTools(readOnly bool, features []string, sessionID string) { +func (s *LegacyServer) PulsarFunctionManagedMcpTools(readOnly bool, features []string, sessionID string) { if !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureFunctionsAsTools)) && !slices.Contains(features, string(FeatureStreamNativeCloud)) { diff --git a/pkg/mcp/server.go b/pkg/mcp/server.go index c922883..5a8a1bb 100644 --- a/pkg/mcp/server.go +++ b/pkg/mcp/server.go @@ -22,8 +22,8 @@ import ( "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" ) -// Server wraps MCP server state and StreamNative sessions. -type Server struct { +// LegacyServer wraps MCP server state and StreamNative sessions for mark3labs/mcp-go. +type LegacyServer struct { MCPServer *server.MCPServer KafkaSession *kafka.Session PulsarSession *pulsar.Session @@ -31,17 +31,17 @@ type Server struct { logger *logrus.Logger } -// NewServer creates a new MCP server with StreamNative integrations. -func NewServer(name, version string, logger *logrus.Logger, opts ...server.ServerOption) *Server { +// NewLegacyServer creates a new MCP server with StreamNative integrations. +func NewLegacyServer(name, version string, logger *logrus.Logger, opts ...server.ServerOption) *LegacyServer { // Create a new MCP server - opts = AddOpts(opts...) + opts = addLegacyOpts(opts...) s := server.NewMCPServer(name, version, opts...) - mcpserver := CreateSNCloudMCPServer(s, logger) + mcpserver := createSNCloudLegacyServer(s, logger) return mcpserver } -// AddOpts merges default server options with custom options. -func AddOpts(opts ...server.ServerOption) []server.ServerOption { +// addLegacyOpts merges default server options with custom options. +func addLegacyOpts(opts ...server.ServerOption) []server.ServerOption { defaultOpts := []server.ServerOption{ server.WithResourceCapabilities(true, true), server.WithRecovery(), @@ -51,9 +51,9 @@ func AddOpts(opts ...server.ServerOption) []server.ServerOption { return opts } -// CreateSNCloudMCPServer constructs a Server wrapper for StreamNative Cloud. -func CreateSNCloudMCPServer(s *server.MCPServer, logger *logrus.Logger) *Server { - mcpserver := &Server{ +// createSNCloudLegacyServer constructs a LegacyServer wrapper for StreamNative Cloud. +func createSNCloudLegacyServer(s *server.MCPServer, logger *logrus.Logger) *LegacyServer { + mcpserver := &LegacyServer{ MCPServer: s, logger: logger, SNCloudSession: &config.Session{}, diff --git a/pkg/mcp/server_new.go b/pkg/mcp/server_new.go new file mode 100644 index 0000000..7e6a660 --- /dev/null +++ b/pkg/mcp/server_new.go @@ -0,0 +1,196 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + "fmt" + "log/slog" + "runtime/debug" + "time" + + sdk "github.com/modelcontextprotocol/go-sdk/mcp" + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/config" + "github.com/streamnative/streamnative-mcp-server/pkg/kafka" + "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" +) + +// Server wraps MCP go-sdk server state and StreamNative sessions. +type Server struct { + MCPServer *sdk.Server + KafkaSession *kafka.Session + PulsarSession *pulsar.Session + SNCloudSession *config.Session + logger *logrus.Logger +} + +// ServerOption mutates MCP go-sdk server options. +type ServerOption func(*sdk.ServerOptions) + +// NewServer creates a new MCP go-sdk server with StreamNative integrations. +func NewServer(name, version string, logger *logrus.Logger, opts ...ServerOption) *Server { + serverOptions := defaultServerOptions(logger) + for _, opt := range opts { + if opt != nil { + opt(serverOptions) + } + } + + impl := &sdk.Implementation{Name: name, Version: version} + mcpServer := sdk.NewServer(impl, serverOptions) + addDefaultMiddleware(mcpServer, logger) + + return &Server{ + MCPServer: mcpServer, + logger: logger, + SNCloudSession: &config.Session{}, + KafkaSession: &kafka.Session{}, + PulsarSession: &pulsar.Session{}, + } +} + +// WithInstructions sets server instructions returned in initialize responses. +func WithInstructions(instructions string) ServerOption { + return func(opts *sdk.ServerOptions) { + opts.Instructions = instructions + } +} + +// WithCapabilities overrides the default server capability configuration. +func WithCapabilities(capabilities *sdk.ServerCapabilities) ServerOption { + return func(opts *sdk.ServerOptions) { + opts.Capabilities = capabilities + } +} + +// WithLogger overrides the default slog logger for the go-sdk server. +func WithLogger(logger *slog.Logger) ServerOption { + return func(opts *sdk.ServerOptions) { + opts.Logger = logger + } +} + +func defaultServerOptions(logger *logrus.Logger) *sdk.ServerOptions { + opts := &sdk.ServerOptions{ + Capabilities: &sdk.ServerCapabilities{ + Logging: &sdk.LoggingCapabilities{}, + Resources: &sdk.ResourceCapabilities{ + Subscribe: true, + ListChanged: true, + }, + }, + } + + if logger != nil { + opts.Logger = slog.New(slog.NewTextHandler(logger.Writer(), &slog.HandlerOptions{ + Level: slogLevelFromLogrus(logger.Level), + })) + } + + return opts +} + +func slogLevelFromLogrus(level logrus.Level) slog.Level { + switch level { + case logrus.TraceLevel, logrus.DebugLevel: + return slog.LevelDebug + case logrus.WarnLevel: + return slog.LevelWarn + case logrus.ErrorLevel, logrus.FatalLevel, logrus.PanicLevel: + return slog.LevelError + default: + return slog.LevelInfo + } +} + +func addDefaultMiddleware(server *sdk.Server, logger *logrus.Logger) { + if logger == nil { + return + } + + server.AddReceivingMiddleware( + loggingMiddleware(logger), + recoveryMiddleware(logger), + ) +} + +func loggingMiddleware(logger *logrus.Logger) sdk.Middleware { + return func(next sdk.MethodHandler) sdk.MethodHandler { + return func(ctx context.Context, method string, req sdk.Request) (sdk.Result, error) { + start := time.Now() + sessionID := "" + if req != nil { + if session := req.GetSession(); session != nil { + sessionID = session.ID() + } + } + + entry := logger.WithFields(logrus.Fields{ + "method": method, + "session_id": sessionID, + }) + + if callReq, ok := req.(*sdk.CallToolRequest); ok { + entry = entry.WithField("tool", callReq.Params.Name) + entry.Debug("MCP tool call started") + } else { + entry.Debug("MCP request started") + } + + result, err := next(ctx, method, req) + duration := time.Since(start) + + if err != nil { + entry.WithFields(logrus.Fields{ + "duration_ms": duration.Milliseconds(), + }).WithError(err).Error("MCP request failed") + return result, err + } + + entry.WithFields(logrus.Fields{ + "duration_ms": duration.Milliseconds(), + }).Debug("MCP request completed") + return result, nil + } + } +} + +func recoveryMiddleware(logger *logrus.Logger) sdk.Middleware { + return func(next sdk.MethodHandler) sdk.MethodHandler { + return func(ctx context.Context, method string, req sdk.Request) (result sdk.Result, err error) { + defer func() { + if recovered := recover(); recovered != nil { + sessionID := "" + if req != nil { + if session := req.GetSession(); session != nil { + sessionID = session.ID() + } + } + logger.WithFields(logrus.Fields{ + "method": method, + "session_id": sessionID, + "panic": recovered, + }).Error("MCP request panic recovered") + logger.WithField("stack", string(debug.Stack())).Debug("MCP panic stack") + err = fmt.Errorf("panic recovered in %s request: %v", method, recovered) + result = nil + } + }() + + return next(ctx, method, req) + } + } +} From 95ac792ef0a509c8438554519998b165a7c1d7c0 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 20:11:04 +0800 Subject: [PATCH 46/85] refactor: migrate stdio transport to go-sdk --- pkg/cmd/mcp/stdio.go | 23 +++--- pkg/mcp/legacy_stdio_transport.go | 117 ++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 14 deletions(-) create mode 100644 pkg/mcp/legacy_stdio_transport.go diff --git a/pkg/cmd/mcp/stdio.go b/pkg/cmd/mcp/stdio.go index e13232e..b520f40 100644 --- a/pkg/cmd/mcp/stdio.go +++ b/pkg/cmd/mcp/stdio.go @@ -17,7 +17,6 @@ package mcp import ( "context" "fmt" - "io" "os" "os/signal" "path/filepath" @@ -25,11 +24,10 @@ import ( stdlog "log" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/streamnative/streamnative-mcp-server/pkg/common" - "github.com/streamnative/streamnative-mcp-server/pkg/log" ) // NewCmdMcpStdioServer builds the stdio server command. @@ -69,21 +67,18 @@ func runStdioServer(configOpts *ServerOptions) error { return fmt.Errorf("failed to create MCP server: %w", err) } - stdioServer := server.NewStdioServer(mcpServer.MCPServer) - stdioServer.SetErrorLogger(stdLogger) + var transport sdk.Transport = &sdk.StdioTransport{} + if configOpts.LogCommands { + transport = &sdk.LoggingTransport{ + Transport: transport, + Writer: logger.Writer(), + } + } // Start listening for messages errC := make(chan error, 1) go func() { - in, out := io.Reader(os.Stdin), io.Writer(os.Stdout) - - if configOpts.LogCommands { - // If command logging is enabled, wrap the IO with a logger - loggedIO := log.NewIOLogger(in, out, logger) - in, out = loggedIO, loggedIO - } - - errC <- stdioServer.Listen(ctx, in, out) + errC <- mcpServer.Run(ctx, transport, stdLogger) }() _, _ = fmt.Fprintf(os.Stderr, "StreamNative Cloud MCP Server running on stdio\n") diff --git a/pkg/mcp/legacy_stdio_transport.go b/pkg/mcp/legacy_stdio_transport.go new file mode 100644 index 0000000..22686e3 --- /dev/null +++ b/pkg/mcp/legacy_stdio_transport.go @@ -0,0 +1,117 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "bytes" + "context" + "io" + stdlog "log" + "sync" + + "github.com/mark3labs/mcp-go/server" + "github.com/modelcontextprotocol/go-sdk/jsonrpc" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" +) + +// Run starts the legacy mark3labs MCP server using a go-sdk transport. +func (s *LegacyServer) Run(ctx context.Context, transport sdk.Transport, errLogger *stdlog.Logger) error { + conn, err := transport.Connect(ctx) + if err != nil { + return err + } + defer func() { + _ = conn.Close() + }() + + stdioServer := server.NewStdioServer(s.MCPServer) + if errLogger != nil { + stdioServer.SetErrorLogger(errLogger) + } + + reader := &jsonrpcReader{ctx: ctx, conn: conn} + writer := &jsonrpcWriter{ctx: ctx, conn: conn} + return stdioServer.Listen(ctx, reader, writer) +} + +type jsonrpcReader struct { + ctx context.Context + conn sdk.Connection + buf []byte +} + +func (r *jsonrpcReader) Read(p []byte) (int, error) { + for len(r.buf) == 0 { + if r.ctx.Err() != nil { + return 0, io.EOF + } + + msg, err := r.conn.Read(r.ctx) + if err != nil { + if r.ctx.Err() != nil { + return 0, io.EOF + } + return 0, err + } + + data, err := jsonrpc.EncodeMessage(msg) + if err != nil { + return 0, err + } + r.buf = make([]byte, len(data)+1) + copy(r.buf, data) + r.buf[len(data)] = '\n' + } + + n := copy(p, r.buf) + r.buf = r.buf[n:] + return n, nil +} + +type jsonrpcWriter struct { + ctx context.Context + conn sdk.Connection + mu sync.Mutex + buf []byte +} + +func (w *jsonrpcWriter) Write(p []byte) (int, error) { + w.mu.Lock() + defer w.mu.Unlock() + + w.buf = append(w.buf, p...) + for { + index := bytes.IndexByte(w.buf, '\n') + if index < 0 { + break + } + + line := bytes.TrimSpace(w.buf[:index]) + w.buf = w.buf[index+1:] + if len(line) == 0 { + continue + } + + msg, err := jsonrpc.DecodeMessage(line) + if err != nil { + return 0, err + } + if err := w.conn.Write(w.ctx, msg); err != nil { + return 0, err + } + } + + return len(p), nil +} From ad973b03a9ab02c2e8faf7f89bf3ee6c3997100d Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 21:27:03 +0800 Subject: [PATCH 47/85] chore(gitignore): add .agents directory to ignore list --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9a5e603..b456fc5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ bin/ dist/ -.DS_Store +.DS_Store tmp/ *.log @@ -12,3 +12,4 @@ vendor agents/ .serena/ .envrc +.agents From 6625f142374aafdae3a2b37953090a76128fdfdd Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 22:14:12 +0800 Subject: [PATCH 48/85] refactor: update tool builder interface for go-sdk --- pkg/mcp/builders/base.go | 36 +++++++++++++++++++++++++------ pkg/mcp/builders/registry.go | 12 +++++------ pkg/mcp/builders/registry_test.go | 28 +++++++++++++----------- 3 files changed, 51 insertions(+), 25 deletions(-) diff --git a/pkg/mcp/builders/base.go b/pkg/mcp/builders/base.go index 61411a8..4c93cab 100644 --- a/pkg/mcp/builders/base.go +++ b/pkg/mcp/builders/base.go @@ -20,8 +20,7 @@ import ( "fmt" "slices" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/modelcontextprotocol/go-sdk/mcp" ) // FeatureChecker defines the interface for checking feature requirements @@ -41,7 +40,7 @@ type ToolBuilder interface { GetRequiredFeatures() []string // BuildTools builds and returns a list of server tools - BuildTools(ctx context.Context, config ToolBuildConfig) ([]server.ServerTool, error) + BuildTools(ctx context.Context, config ToolBuildConfig) ([]ToolDefinition, error) // Validate validates the builder configuration Validate(config ToolBuildConfig) error @@ -50,6 +49,31 @@ type ToolBuilder interface { FeatureChecker } +// ToolDefinition describes a tool and its handler registration. +type ToolDefinition interface { + Definition() *mcp.Tool + Register(server *mcp.Server) +} + +// ServerTool combines a tool with a typed handler. +type ServerTool[In, Out any] struct { + Tool *mcp.Tool + Handler ToolHandlerFunc[In, Out] +} + +// Definition returns the tool definition. +func (t ServerTool[In, Out]) Definition() *mcp.Tool { + return t.Tool +} + +// Register installs the tool on the provided server. +func (t ServerTool[In, Out]) Register(server *mcp.Server) { + if server == nil || t.Tool == nil { + return + } + mcp.AddTool(server, t.Tool, t.Handler) +} + // ToolBuildConfig contains all configuration information needed to build tools // It specifies build parameters such as read-only mode, features, and options type ToolBuildConfig struct { @@ -130,6 +154,6 @@ func (b *BaseToolBuilder) HasAnyRequiredFeature(features []string) bool { return false } -// ToolHandlerFunc defines the tool handler function type -// It maintains consistency with server.ToolHandlerFunc -type ToolHandlerFunc func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) +// ToolHandlerFunc defines the tool handler function type. +// It aliases mcp.ToolHandlerFor to preserve SDK behavior. +type ToolHandlerFunc[In, Out any] = mcp.ToolHandlerFor[In, Out] diff --git a/pkg/mcp/builders/registry.go b/pkg/mcp/builders/registry.go index 03c3726..6d0dcf0 100644 --- a/pkg/mcp/builders/registry.go +++ b/pkg/mcp/builders/registry.go @@ -19,8 +19,6 @@ import ( "fmt" "sort" "sync" - - "github.com/mark3labs/mcp-go/server" ) // ToolRegistry manages the registration and building of all tool builders @@ -115,11 +113,11 @@ func (r *ToolRegistry) ListMetadata() map[string]ToolMetadata { // BuildAll builds tools for all specified configurations // Returns all successfully built tools and any errors encountered -func (r *ToolRegistry) BuildAll(configs map[string]ToolBuildConfig) ([]server.ServerTool, error) { +func (r *ToolRegistry) BuildAll(configs map[string]ToolBuildConfig) ([]ToolDefinition, error) { r.mu.RLock() defer r.mu.RUnlock() - var allTools []server.ServerTool + var allTools []ToolDefinition var errors []error for name, config := range configs { @@ -149,7 +147,7 @@ func (r *ToolRegistry) BuildAll(configs map[string]ToolBuildConfig) ([]server.Se } // BuildSingle builds tools for a single tool builder -func (r *ToolRegistry) BuildSingle(name string, config ToolBuildConfig) ([]server.ServerTool, error) { +func (r *ToolRegistry) BuildSingle(name string, config ToolBuildConfig) ([]ToolDefinition, error) { r.mu.RLock() builder, exists := r.builders[name] r.mu.RUnlock() @@ -167,7 +165,7 @@ func (r *ToolRegistry) BuildSingle(name string, config ToolBuildConfig) ([]serve // BuildAllWithFeatures builds all relevant tools based on the feature list // Automatically creates configuration for each builder -func (r *ToolRegistry) BuildAllWithFeatures(readOnly bool, features []string) ([]server.ServerTool, error) { +func (r *ToolRegistry) BuildAllWithFeatures(readOnly bool, features []string) ([]ToolDefinition, error) { r.mu.RLock() builders := make(map[string]ToolBuilder, len(r.builders)) for name, builder := range r.builders { @@ -175,7 +173,7 @@ func (r *ToolRegistry) BuildAllWithFeatures(readOnly bool, features []string) ([ } r.mu.RUnlock() - var allTools []server.ServerTool + var allTools []ToolDefinition var errors []error for name, builder := range builders { diff --git a/pkg/mcp/builders/registry_test.go b/pkg/mcp/builders/registry_test.go index 766c266..14728b6 100644 --- a/pkg/mcp/builders/registry_test.go +++ b/pkg/mcp/builders/registry_test.go @@ -19,8 +19,7 @@ import ( "fmt" "testing" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -29,7 +28,7 @@ import ( type MockToolBuilder struct { name string features []string - tools []server.ServerTool + tools []ToolDefinition err error metadata ToolMetadata } @@ -44,13 +43,18 @@ func NewMockToolBuilder(name string, features []string) *MockToolBuilder { Description: fmt.Sprintf("Mock tool builder for %s", name), Category: "test", }, - tools: []server.ServerTool{ - { - Tool: mcp.NewTool(name, - mcp.WithDescription(fmt.Sprintf("Mock tool %s", name)), - ), - Handler: func(_ context.Context, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return mcp.NewToolResultText(fmt.Sprintf("Mock response from %s", name)), nil + tools: []ToolDefinition{ + ServerTool[map[string]any, any]{ + Tool: &mcp.Tool{ + Name: name, + Description: fmt.Sprintf("Mock tool %s", name), + }, + Handler: func(_ context.Context, _ *mcp.CallToolRequest, _ map[string]any) (*mcp.CallToolResult, any, error) { + return &mcp.CallToolResult{ + Content: []mcp.Content{ + &mcp.TextContent{Text: fmt.Sprintf("Mock response from %s", name)}, + }, + }, nil, nil }, }, }, @@ -65,7 +69,7 @@ func (m *MockToolBuilder) GetRequiredFeatures() []string { return m.features } -func (m *MockToolBuilder) BuildTools(_ context.Context, _ ToolBuildConfig) ([]server.ServerTool, error) { +func (m *MockToolBuilder) BuildTools(_ context.Context, _ ToolBuildConfig) ([]ToolDefinition, error) { if m.err != nil { return nil, m.err } @@ -224,7 +228,7 @@ func TestToolRegistry(t *testing.T) { tools, err := registry.BuildSingle("single_tool", config) require.NoError(t, err) assert.Len(t, tools, 1) - assert.Equal(t, "single_tool", tools[0].Tool.Name) + assert.Equal(t, "single_tool", tools[0].Definition().Name) }) t.Run("BuildSingle_NotFound", func(t *testing.T) { From 5cb778335e10d2165a6ac1071d97d7a7caa1f266 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 22:26:47 +0800 Subject: [PATCH 49/85] feat(mcp): add go-sdk schema helpers Add jsonschema-go helpers and tests for tool input/output schemas. --- pkg/mcp/schema.go | 162 +++++++++++++++++++++++++++++++++++++++++ pkg/mcp/schema_test.go | 63 ++++++++++++++++ 2 files changed, 225 insertions(+) create mode 100644 pkg/mcp/schema.go create mode 100644 pkg/mcp/schema_test.go diff --git a/pkg/mcp/schema.go b/pkg/mcp/schema.go new file mode 100644 index 0000000..97f7017 --- /dev/null +++ b/pkg/mcp/schema.go @@ -0,0 +1,162 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "fmt" + "reflect" + + "github.com/google/jsonschema-go/jsonschema" +) + +// InputSchema infers a JSON Schema for tool inputs. +// JSON tags control property names and required fields (omitempty/omitzero). +// jsonschema tags provide property descriptions (jsonschema:"..."). +func InputSchema[T any]() (*jsonschema.Schema, error) { + if isAnyType[T]() { + return &jsonschema.Schema{Type: "object"}, nil + } + return buildSchema[T]("input") +} + +// OutputSchema infers a JSON Schema for tool outputs. +// When the output type is any, no schema is returned to avoid constraining output. +func OutputSchema[T any]() (*jsonschema.Schema, error) { + if isAnyType[T]() { + return nil, nil + } + return buildSchema[T]("output") +} + +func buildSchema[T any](label string) (*jsonschema.Schema, error) { + schema, err := schemaForType[T]() + if err != nil { + return nil, fmt.Errorf("%s schema: %w", label, err) + } + normalizeAdditionalProperties(schema) + if !isObjectSchema(schema) { + return nil, fmt.Errorf("%s schema must have type \"object\"", label) + } + return schema, nil +} + +func schemaForType[T any]() (*jsonschema.Schema, error) { + t := reflect.TypeFor[T]() + for t.Kind() == reflect.Pointer { + t = t.Elem() + } + return jsonschema.ForType(t, &jsonschema.ForOptions{}) +} + +func isObjectSchema(schema *jsonschema.Schema) bool { + if schema == nil { + return false + } + return schema.Type == "object" +} + +func isAnyType[T any]() bool { + t := reflect.TypeFor[T]() + return t.Kind() == reflect.Interface && t.NumMethod() == 0 +} + +func normalizeAdditionalProperties(schema *jsonschema.Schema) { + visited := map[*jsonschema.Schema]bool{} + var walk func(*jsonschema.Schema) + walk = func(s *jsonschema.Schema) { + if s == nil || visited[s] { + return + } + visited[s] = true + + if s.Type == "object" && s.Properties != nil && isFalseSchema(s.AdditionalProperties) { + s.AdditionalProperties = nil + } + + for _, prop := range s.Properties { + walk(prop) + } + for _, prop := range s.PatternProperties { + walk(prop) + } + for _, def := range s.Defs { + walk(def) + } + for _, def := range s.Definitions { + walk(def) + } + if s.AdditionalProperties != nil && !isFalseSchema(s.AdditionalProperties) { + walk(s.AdditionalProperties) + } + if s.Items != nil { + walk(s.Items) + } + for _, item := range s.PrefixItems { + walk(item) + } + if s.AdditionalItems != nil { + walk(s.AdditionalItems) + } + if s.UnevaluatedItems != nil { + walk(s.UnevaluatedItems) + } + if s.UnevaluatedProperties != nil { + walk(s.UnevaluatedProperties) + } + if s.PropertyNames != nil { + walk(s.PropertyNames) + } + if s.Contains != nil { + walk(s.Contains) + } + for _, subschema := range s.AllOf { + walk(subschema) + } + for _, subschema := range s.AnyOf { + walk(subschema) + } + for _, subschema := range s.OneOf { + walk(subschema) + } + if s.Not != nil { + walk(s.Not) + } + if s.If != nil { + walk(s.If) + } + if s.Then != nil { + walk(s.Then) + } + if s.Else != nil { + walk(s.Else) + } + for _, subschema := range s.DependentSchemas { + walk(subschema) + } + } + walk(schema) +} + +func isFalseSchema(schema *jsonschema.Schema) bool { + if schema == nil || schema.Not == nil { + return false + } + if !reflect.ValueOf(*schema.Not).IsZero() { + return false + } + clone := *schema + clone.Not = nil + return reflect.ValueOf(clone).IsZero() +} diff --git a/pkg/mcp/schema_test.go b/pkg/mcp/schema_test.go new file mode 100644 index 0000000..35dcef3 --- /dev/null +++ b/pkg/mcp/schema_test.go @@ -0,0 +1,63 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "testing" + + "github.com/stretchr/testify/require" +) + +type sampleInput struct { + Name string `json:"name" jsonschema:"resource name"` + Count int `json:"count,omitempty" jsonschema:"optional count"` +} + +type nestedInput struct { + Meta sampleInput `json:"meta"` +} + +func TestInputSchemaAllowsAdditionalProperties(t *testing.T) { + schema, err := InputSchema[sampleInput]() + require.NoError(t, err) + require.Equal(t, "object", schema.Type) + require.NotNil(t, schema.Properties["name"]) + require.NotNil(t, schema.Properties["count"]) + require.Contains(t, schema.Required, "name") + require.NotContains(t, schema.Required, "count") + require.Nil(t, schema.AdditionalProperties) +} + +func TestInputSchemaAllowsNestedAdditionalProperties(t *testing.T) { + schema, err := InputSchema[nestedInput]() + require.NoError(t, err) + metaSchema := schema.Properties["meta"] + require.NotNil(t, metaSchema) + require.Nil(t, metaSchema.AdditionalProperties) +} + +func TestInputSchemaMapKeepsAdditionalProperties(t *testing.T) { + schema, err := InputSchema[map[string]string]() + require.NoError(t, err) + require.Equal(t, "object", schema.Type) + require.NotNil(t, schema.AdditionalProperties) + require.Equal(t, "string", schema.AdditionalProperties.Type) +} + +func TestOutputSchemaAnyIsNil(t *testing.T) { + schema, err := OutputSchema[any]() + require.NoError(t, err) + require.Nil(t, schema) +} From c0df3168dc3f04fde712ac4c0dbd17ec7ec10a31 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 23:12:06 +0800 Subject: [PATCH 50/85] fix: complete kafka topics tool migration --- pkg/mcp/builders/kafka/topics.go | 397 ++++++++++++++++++-------- pkg/mcp/builders/kafka/topics_test.go | 147 ++++++++++ 2 files changed, 418 insertions(+), 126 deletions(-) create mode 100644 pkg/mcp/builders/kafka/topics_test.go diff --git a/pkg/mcp/builders/kafka/topics.go b/pkg/mcp/builders/kafka/topics.go index 3960d54..d57ba97 100644 --- a/pkg/mcp/builders/kafka/topics.go +++ b/pkg/mcp/builders/kafka/topics.go @@ -18,18 +18,59 @@ import ( "context" "encoding/json" "fmt" + "reflect" "strings" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" "github.com/twmb/franz-go/pkg/kadm" ) -// KafkaTopicsToolBuilder implements the ToolBuilder interface for Kafka Topics -// /nolint:revive -type KafkaTopicsToolBuilder struct { +type kafkaTopicsInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Name *string `json:"name,omitempty"` + Partitions *int `json:"partitions,omitempty"` + ReplicationFactor *int `json:"replicationFactor,omitempty"` + Configs map[string]any `json:"configs,omitempty"` + IncludeInternal bool `json:"includeInternal,omitempty"` +} + +const ( + kafkaTopicsResourceDesc = "Resource to operate on. Available resources:\n" + + "- topic: A single Kafka topic for operations on individual topics (create, get, delete)\n" + + "- topics: Collection of Kafka topics for bulk operations (list)" + kafkaTopicsOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all topics in the Kafka cluster, optionally including internal topics\n" + + "- get: Get detailed configuration for a specific topic\n" + + "- create: Create a new topic with specified partitions, replication factor, and optional configs\n" + + "- delete: Delete an existing topic\n" + + "- metadata: Get metadata for a specific topic" + kafkaTopicsNameDesc = "The name of the Kafka topic to operate on. " + + "Required for 'get', 'create', 'delete', and 'metadata' operations on the 'topic' resource. " + + "Topic names should follow Kafka naming conventions (alphanumeric, dots, underscores, and hyphens)." + kafkaTopicsPartitionsDesc = "The number of partitions for the topic. Required for 'create' operation. " + + "Partitions determine the parallelism and scalability of the topic. " + + "More partitions allow more concurrent consumers and higher throughput." + kafkaTopicsReplicationFactorDesc = "The replication factor for the topic. Required for 'create' operation. " + + "Replication factor determines fault tolerance - it should be at least 2 for production use. " + + "Cannot exceed the number of available brokers in the cluster." + kafkaTopicsConfigsDesc = "Optional configuration parameters for the topic during 'create' operation. " + + "Common configurations include:\n" + + "- retention.ms: How long to retain messages (milliseconds)\n" + + "- compression.type: Compression algorithm (none, gzip, snappy, lz4, zstd)\n" + + "- cleanup.policy: Log cleanup policy (delete, compact, compact,delete)\n" + + "- segment.ms: Time before a new log segment is rolled out\n" + + "- max.message.bytes: Maximum size of a message batch" + kafkaTopicsIncludeInternalDesc = "Whether to include internal Kafka topics in the 'list' operation. " + + "Internal topics are used by Kafka itself (e.g., __consumer_offsets, __transaction_state). " + + "Default: false" +) + +// KafkaTopicsToolBuilder implements the ToolBuilder interface for Kafka topics. +type KafkaTopicsToolBuilder struct { //nolint:revive *builders.BaseToolBuilder } @@ -55,7 +96,7 @@ func NewKafkaTopicsToolBuilder() *KafkaTopicsToolBuilder { } // BuildTools builds the Kafka Topics tool list -func (b *KafkaTopicsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *KafkaTopicsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -67,11 +108,14 @@ func (b *KafkaTopicsToolBuilder) BuildTools(_ context.Context, config builders.T } // Build tools - tool := b.buildKafkaTopicsTool() + tool, err := b.buildKafkaTopicsTool() + if err != nil { + return nil, err + } handler := b.buildKafkaTopicsHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[kafkaTopicsInput, any]{ Tool: tool, Handler: handler, }, @@ -79,17 +123,11 @@ func (b *KafkaTopicsToolBuilder) BuildTools(_ context.Context, config builders.T } // buildKafkaTopicsTool builds the Kafka Topics MCP tool definition -func (b *KafkaTopicsToolBuilder) buildKafkaTopicsTool() mcp.Tool { - resourceDesc := "Resource to operate on. Available resources:\n" + - "- topic: A single Kafka topic for operations on individual topics (create, get, delete)\n" + - "- topics: Collection of Kafka topics for bulk operations (list)" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all topics in the Kafka cluster, optionally including internal topics\n" + - "- get: Get detailed configuration for a specific topic\n" + - "- create: Create a new topic with specified partitions, replication factor, and optional configs\n" + - "- delete: Delete an existing topic\n" + - "- metadata: Get metadata for a specific topic\n" +func (b *KafkaTopicsToolBuilder) buildKafkaTopicsTool() (*sdk.Tool, error) { + inputSchema, err := buildKafkaTopicsInputSchema() + if err != nil { + return nil, err + } toolDesc := "Unified tool for managing Apache Kafka topics.\n" + "This tool provides access to various Kafka topic operations, including creation, deletion, listing, and configuration retrieval.\n" + @@ -137,72 +175,33 @@ func (b *KafkaTopicsToolBuilder) buildKafkaTopicsTool() mcp.Tool { " name: \"old-topic\"\n\n" + "This tool requires appropriate Kafka permissions for topic management." - return mcp.NewTool("kafka_admin_topics", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("name", - mcp.Description("The name of the Kafka topic to operate on. "+ - "Required for 'get', 'create', 'delete', and 'metadata' operations on the 'topic' resource. "+ - "Topic names should follow Kafka naming conventions (alphanumeric, dots, underscores, and hyphens).")), - mcp.WithNumber("partitions", - mcp.Description("The number of partitions for the topic. Required for 'create' operation. "+ - "Partitions determine the parallelism and scalability of the topic. "+ - "More partitions allow more concurrent consumers and higher throughput.")), - mcp.WithNumber("replicationFactor", - mcp.Description("The replication factor for the topic. Required for 'create' operation. "+ - "Replication factor determines fault tolerance - it should be at least 2 for production use. "+ - "Cannot exceed the number of available brokers in the cluster.")), - mcp.WithObject("configs", - mcp.Description("Optional configuration parameters for the topic during 'create' operation. "+ - "Common configurations include:\n"+ - "- retention.ms: How long to retain messages (milliseconds)\n"+ - "- compression.type: Compression algorithm (none, gzip, snappy, lz4, zstd)\n"+ - "- cleanup.policy: Log cleanup policy (delete, compact, compact,delete)\n"+ - "- segment.ms: Time before a new log segment is rolled out\n"+ - "- max.message.bytes: Maximum size of a message batch")), - mcp.WithBoolean("includeInternal", - mcp.Description("Whether to include internal Kafka topics in the 'list' operation. "+ - "Internal topics are used by Kafka itself (e.g., __consumer_offsets, __transaction_state). "+ - "Default: false")), - ) + return &sdk.Tool{ + Name: "kafka_admin_topics", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildKafkaTopicsHandler builds the Kafka Topics handler function -func (b *KafkaTopicsToolBuilder) buildKafkaTopicsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return b.handleError("get resource", err), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return b.handleError("get operation", err), nil - } - +func (b *KafkaTopicsToolBuilder) buildKafkaTopicsHandler(readOnly bool) builders.ToolHandlerFunc[kafkaTopicsInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input kafkaTopicsInput) (*sdk.CallToolResult, any, error) { // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) + resource := strings.ToLower(input.Resource) + operation := strings.ToLower(input.Operation) // Validate write operations in read-only mode if readOnly && (operation == "create" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Get Kafka admin client session := mcpCtx.GetKafkaSession(ctx) if session == nil { - return b.handleError("get Kafka session not found in context", nil), nil + return nil, nil, b.handleError("get Kafka session not found in context", nil) } admin, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } // Dispatch based on resource and operation @@ -210,25 +209,30 @@ func (b *KafkaTopicsToolBuilder) buildKafkaTopicsHandler(readOnly bool) func(con case "topics": switch operation { case "list": - return b.handleKafkaTopicsList(ctx, admin, request) + result, err := b.handleKafkaTopicsList(ctx, admin, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topics': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'topics': %s", operation) } case "topic": switch operation { case "get": - return b.handleKafkaTopicGet(ctx, admin, request) + result, err := b.handleKafkaTopicGet(ctx, admin, input) + return result, nil, err case "create": - return b.handleKafkaTopicCreate(ctx, admin, request) + result, err := b.handleKafkaTopicCreate(ctx, admin, input) + return result, nil, err case "delete": - return b.handleKafkaTopicDelete(ctx, admin, request) + result, err := b.handleKafkaTopicDelete(ctx, admin, input) + return result, nil, err case "metadata": - return b.handleKafkaTopicMetadata(ctx, admin, request) + result, err := b.handleKafkaTopicMetadata(ctx, admin, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'topic': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'topic': %s", operation) } default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: topics, topic", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. available resources: topics, topic", resource) } } } @@ -236,26 +240,42 @@ func (b *KafkaTopicsToolBuilder) buildKafkaTopicsHandler(readOnly bool) func(con // Utility functions // handleError provides unified error handling -func (b *KafkaTopicsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *KafkaTopicsToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *KafkaTopicsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *KafkaTopicsToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) + } + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil +} + +func requireString(value *string, key string) (string, error) { + if value == nil { + return "", fmt.Errorf("required argument %q not found", key) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return *value, nil +} + +func requireInt(value *int, key string) (int, error) { + if value == nil { + return 0, fmt.Errorf("required argument %q not found", key) + } + return *value, nil } // handleKafkaTopicsList handles listing all topics -func (b *KafkaTopicsToolBuilder) handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - includeInternal := request.GetBool("includeInternal", false) +func (b *KafkaTopicsToolBuilder) handleKafkaTopicsList(ctx context.Context, admin *kadm.Client, input kafkaTopicsInput) (*sdk.CallToolResult, error) { + includeInternal := input.IncludeInternal topics, err := admin.ListTopics(ctx) if err != nil { - return b.handleError("list Kafka topics", err), nil + return nil, b.handleError("list Kafka topics", err) } // Filter out internal topics if not requested @@ -273,95 +293,220 @@ func (b *KafkaTopicsToolBuilder) handleKafkaTopicsList(ctx context.Context, admi } // handleKafkaTopicGet handles getting detailed information about a specific topic -func (b *KafkaTopicsToolBuilder) handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - topicName, err := request.RequireString("name") +func (b *KafkaTopicsToolBuilder) handleKafkaTopicGet(ctx context.Context, admin *kadm.Client, input kafkaTopicsInput) (*sdk.CallToolResult, error) { + topicName, err := requireString(input.Name, "name") if err != nil { - return b.handleError("get topic name", err), nil + return nil, b.handleError("get topic name", err) } topics, err := admin.ListTopics(ctx, topicName) if err != nil { - return b.handleError("get Kafka topic", err), nil + return nil, b.handleError("get Kafka topic", err) } return b.marshalResponse(topics) } // handleKafkaTopicCreate handles creating a new topic -func (b *KafkaTopicsToolBuilder) handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - topicName, err := request.RequireString("name") +func (b *KafkaTopicsToolBuilder) handleKafkaTopicCreate(ctx context.Context, admin *kadm.Client, input kafkaTopicsInput) (*sdk.CallToolResult, error) { + topicName, err := requireString(input.Name, "name") if err != nil { - return b.handleError("get topic name", err), nil + return nil, b.handleError("get topic name", err) } - partitionsNum, err := request.RequireInt("partitions") + partitionsNum, err := requireInt(input.Partitions, "partitions") if err != nil { - return b.handleError("get partitions", err), nil + return nil, b.handleError("get partitions", err) } - replicationFactorNum, err := request.RequireInt("replicationFactor") + replicationFactorNum, err := requireInt(input.ReplicationFactor, "replicationFactor") if err != nil { - return b.handleError("get replication factor", err), nil + return nil, b.handleError("get replication factor", err) } - ///nolint:gosec + //nolint:gosec partitions := int32(partitionsNum) - ///nolint:gosec + //nolint:gosec replicationFactor := int16(replicationFactorNum) - // Parse optional configs - var configs map[string]*string - arguments := request.GetArguments() - if configsParam, exists := arguments["configs"]; exists { - if configsMap, ok := configsParam.(map[string]interface{}); ok { - configs = make(map[string]*string) - for key, value := range configsMap { - if strValue, ok := value.(string); ok { - configs[key] = &strValue - } else { - // Convert non-string values to strings - strValue := fmt.Sprintf("%v", value) - configs[key] = &strValue - } - } - } - } + configs := b.buildConfigs(input) // Create topic using the correct CreateTopics API results, err := admin.CreateTopics(ctx, partitions, replicationFactor, configs, topicName) if err != nil { - return b.handleError("create Kafka topic", err), nil + return nil, b.handleError("create Kafka topic", err) } return b.marshalResponse(results) } // handleKafkaTopicDelete handles deleting a topic -func (b *KafkaTopicsToolBuilder) handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - topicName, err := request.RequireString("name") +func (b *KafkaTopicsToolBuilder) handleKafkaTopicDelete(ctx context.Context, admin *kadm.Client, input kafkaTopicsInput) (*sdk.CallToolResult, error) { + topicName, err := requireString(input.Name, "name") if err != nil { - return b.handleError("get topic name", err), nil + return nil, b.handleError("get topic name", err) } results, err := admin.DeleteTopics(ctx, topicName) if err != nil { - return b.handleError("delete Kafka topic", err), nil + return nil, b.handleError("delete Kafka topic", err) } return b.marshalResponse(results) } // handleKafkaTopicMetadata handles getting metadata for a topic -func (b *KafkaTopicsToolBuilder) handleKafkaTopicMetadata(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - topicName, err := request.RequireString("name") +func (b *KafkaTopicsToolBuilder) handleKafkaTopicMetadata(ctx context.Context, admin *kadm.Client, input kafkaTopicsInput) (*sdk.CallToolResult, error) { + topicName, err := requireString(input.Name, "name") if err != nil { - return b.handleError("get topic name", err), nil + return nil, b.handleError("get topic name", err) } metadata, err := admin.Metadata(ctx, topicName) if err != nil { - return b.handleError("get Kafka topic metadata", err), nil + return nil, b.handleError("get Kafka topic metadata", err) } return b.marshalResponse(metadata) } + +func (b *KafkaTopicsToolBuilder) buildConfigs(input kafkaTopicsInput) map[string]*string { + if len(input.Configs) == 0 { + return nil + } + + configs := make(map[string]*string, len(input.Configs)) + for key, value := range input.Configs { + strValue, ok := value.(string) + if !ok { + strValue = fmt.Sprintf("%v", value) + } + configs[key] = &strValue + } + + return configs +} + +func buildKafkaTopicsInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[kafkaTopicsInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "resource", kafkaTopicsResourceDesc) + setSchemaDescription(schema, "operation", kafkaTopicsOperationDesc) + setSchemaDescription(schema, "name", kafkaTopicsNameDesc) + setSchemaDescription(schema, "partitions", kafkaTopicsPartitionsDesc) + setSchemaDescription(schema, "replicationFactor", kafkaTopicsReplicationFactorDesc) + setSchemaDescription(schema, "configs", kafkaTopicsConfigsDesc) + setSchemaDescription(schema, "includeInternal", kafkaTopicsIncludeInternalDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} + +func setSchemaDescription(schema *jsonschema.Schema, name, desc string) { + if schema == nil { + return + } + prop, ok := schema.Properties[name] + if !ok || prop == nil { + return + } + prop.Description = desc +} + +func normalizeAdditionalProperties(schema *jsonschema.Schema) { + visited := map[*jsonschema.Schema]bool{} + var walk func(*jsonschema.Schema) + walk = func(s *jsonschema.Schema) { + if s == nil || visited[s] { + return + } + visited[s] = true + + if s.Type == "object" && s.Properties != nil && isFalseSchema(s.AdditionalProperties) { + s.AdditionalProperties = nil + } + + for _, prop := range s.Properties { + walk(prop) + } + for _, prop := range s.PatternProperties { + walk(prop) + } + for _, def := range s.Defs { + walk(def) + } + for _, def := range s.Definitions { + walk(def) + } + if s.AdditionalProperties != nil && !isFalseSchema(s.AdditionalProperties) { + walk(s.AdditionalProperties) + } + if s.Items != nil { + walk(s.Items) + } + for _, item := range s.PrefixItems { + walk(item) + } + if s.AdditionalItems != nil { + walk(s.AdditionalItems) + } + if s.UnevaluatedItems != nil { + walk(s.UnevaluatedItems) + } + if s.UnevaluatedProperties != nil { + walk(s.UnevaluatedProperties) + } + if s.PropertyNames != nil { + walk(s.PropertyNames) + } + if s.Contains != nil { + walk(s.Contains) + } + for _, subschema := range s.AllOf { + walk(subschema) + } + for _, subschema := range s.AnyOf { + walk(subschema) + } + for _, subschema := range s.OneOf { + walk(subschema) + } + if s.Not != nil { + walk(s.Not) + } + if s.If != nil { + walk(s.If) + } + if s.Then != nil { + walk(s.Then) + } + if s.Else != nil { + walk(s.Else) + } + for _, subschema := range s.DependentSchemas { + walk(subschema) + } + } + walk(schema) +} + +func isFalseSchema(schema *jsonschema.Schema) bool { + if schema == nil || schema.Not == nil { + return false + } + if !reflect.ValueOf(*schema.Not).IsZero() { + return false + } + clone := *schema + clone.Not = nil + return reflect.ValueOf(clone).IsZero() +} diff --git a/pkg/mcp/builders/kafka/topics_test.go b/pkg/mcp/builders/kafka/topics_test.go new file mode 100644 index 0000000..312ec98 --- /dev/null +++ b/pkg/mcp/builders/kafka/topics_test.go @@ -0,0 +1,147 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package kafka + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestKafkaTopicsToolBuilder(t *testing.T) { + builder := NewKafkaTopicsToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "kafka_topics", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "kafka-admin") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-admin"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_admin_topics", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"kafka-admin"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_admin_topics", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"kafka-admin"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestKafkaTopicsToolSchema(t *testing.T) { + builder := NewKafkaTopicsToolBuilder() + tool, err := builder.buildKafkaTopicsTool() + require.NoError(t, err) + assert.Equal(t, "kafka_admin_topics", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "name", + "partitions", + "replicationFactor", + "configs", + "includeInternal", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, kafkaTopicsResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, kafkaTopicsOperationDesc, operationSchema.Description) +} + +func TestKafkaTopicsToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewKafkaTopicsToolBuilder() + handler := builder.buildKafkaTopicsHandler(true) + + _, _, err := handler(context.Background(), nil, kafkaTopicsInput{ + Resource: "topic", + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} + +func mapStringKeys[V any](m map[string]V) []string { + keys := make([]string, 0, len(m)) + for key := range m { + keys = append(keys, key) + } + return keys +} From 31fe2e39fa0fe9137265b5346b3d8a6bd3af39ea Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Sun, 18 Jan 2026 23:26:39 +0800 Subject: [PATCH 51/85] refactor: migrate kafka groups tools to go-sdk Keep legacy registration while aligning builder schema and handlers with go-sdk typing. --- pkg/cmd/mcp/server.go | 4 +- pkg/mcp/builders/kafka/groups.go | 258 ++++++++------ pkg/mcp/builders/kafka/groups_legacy.go | 373 +++++++++++++++++++++ pkg/mcp/builders/kafka/groups_test.go | 139 ++++++++ pkg/mcp/kafka_admin_groups_tools.go | 6 +- pkg/mcp/kafka_admin_groups_tools_legacy.go | 44 +++ 6 files changed, 709 insertions(+), 115 deletions(-) create mode 100644 pkg/mcp/builders/kafka/groups_legacy.go create mode 100644 pkg/mcp/builders/kafka/groups_test.go create mode 100644 pkg/mcp/kafka_admin_groups_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 833dd9a..7420ba2 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -134,9 +134,9 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddPartitionsTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddGroupsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddGroupsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddSchemaRegistryTools(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddKafkaConnectTools(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaClientAddConsumeTools(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) diff --git a/pkg/mcp/builders/kafka/groups.go b/pkg/mcp/builders/kafka/groups.go index ba4c80c..9ac52d9 100644 --- a/pkg/mcp/builders/kafka/groups.go +++ b/pkg/mcp/builders/kafka/groups.go @@ -20,13 +20,46 @@ import ( "fmt" "strings" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" "github.com/twmb/franz-go/pkg/kadm" ) +type kafkaGroupsInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Group *string `json:"group,omitempty"` + Members *string `json:"members,omitempty"` + Topic *string `json:"topic,omitempty"` + Partition *int `json:"partition,omitempty"` + Offset *int64 `json:"offset,omitempty"` +} + +const ( + kafkaGroupsResourceDesc = "Resource to operate on. Available resources:\n" + + "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members, set-offset, delete-offset)\n" + + "- groups: Collection of Kafka Consumer Groups for bulk operations (list)" + kafkaGroupsOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all Kafka Consumer Groups in the cluster\n" + + "- describe: Get detailed information about a specific Consumer Group, including members, offsets, and lag\n" + + "- remove-members: Remove specific members from a Consumer Group to force rebalancing or troubleshoot issues\n" + + "- offsets: Get offsets for a specific consumer group\n" + + "- delete-offset: Delete a specific offset for a consumer group of a topic\n" + + "- set-offset: Set a specific offset for a consumer group's topic-partition" + kafkaGroupsGroupDesc = "The name of the Kafka Consumer Group to operate on. " + + "Required for the 'describe' and 'remove-members' operations. " + + "Must be an existing consumer group name in the Kafka cluster. " + + "Consumer Group names are case-sensitive and typically follow a naming convention like 'application-name'." + kafkaGroupsMembersDesc = "Comma-separated list of consumer instance IDs to remove from the group. " + + "Required for the 'remove-members' operation. " + + "Consumer instance IDs can be found using the 'describe' operation." + kafkaGroupsTopicDesc = "The topic name. Required for 'delete-offset' and 'set-offset' operations." + kafkaGroupsPartitionDesc = "The partition number. Required for 'set-offset' operation." + kafkaGroupsOffsetDesc = "The offset value to set. Required for 'set-offset' operation." +) + // KafkaGroupsToolBuilder implements the ToolBuilder interface for Kafka Consumer Groups // /nolint:revive type KafkaGroupsToolBuilder struct { @@ -55,7 +88,7 @@ func NewKafkaGroupsToolBuilder() *KafkaGroupsToolBuilder { } // BuildTools builds the Kafka Groups tool list -func (b *KafkaGroupsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *KafkaGroupsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -67,11 +100,14 @@ func (b *KafkaGroupsToolBuilder) BuildTools(_ context.Context, config builders.T } // Build tools - tool := b.buildKafkaGroupsTool() + tool, err := b.buildKafkaGroupsTool() + if err != nil { + return nil, err + } handler := b.buildKafkaGroupsHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[kafkaGroupsInput, any]{ Tool: tool, Handler: handler, }, @@ -79,18 +115,11 @@ func (b *KafkaGroupsToolBuilder) BuildTools(_ context.Context, config builders.T } // buildKafkaGroupsTool builds the Kafka Groups MCP tool definition -func (b *KafkaGroupsToolBuilder) buildKafkaGroupsTool() mcp.Tool { - resourceDesc := "Resource to operate on. Available resources:\n" + - "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members, set-offset, delete-offset)\n" + - "- groups: Collection of Kafka Consumer Groups for bulk operations (list)" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all Kafka Consumer Groups in the cluster\n" + - "- describe: Get detailed information about a specific Consumer Group, including members, offsets, and lag\n" + - "- remove-members: Remove specific members from a Consumer Group to force rebalancing or troubleshoot issues\n" + - "- offsets: Get offsets for a specific consumer group\n" + - "- delete-offset: Delete a specific offset for a consumer group of a topic\n" + - "- set-offset: Set a specific offset for a consumer group's topic-partition" +func (b *KafkaGroupsToolBuilder) buildKafkaGroupsTool() (*sdk.Tool, error) { + inputSchema, err := buildKafkaGroupsInputSchema() + if err != nil { + return nil, err + } toolDesc := "Unified tool for managing Apache Kafka Consumer Groups.\n" + "This tool provides access to Kafka consumer group operations including listing, describing, and managing group membership.\n" + @@ -130,63 +159,33 @@ func (b *KafkaGroupsToolBuilder) buildKafkaGroupsTool() mcp.Tool { " offset: 1000\n\n" + "This tool requires Kafka super-user permissions." - return mcp.NewTool("kafka_admin_groups", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("group", - mcp.Description("The name of the Kafka Consumer Group to operate on. "+ - "Required for the 'describe' and 'remove-members' operations. "+ - "Must be an existing consumer group name in the Kafka cluster. "+ - "Consumer Group names are case-sensitive and typically follow a naming convention like 'application-name'.")), - mcp.WithString("members", - mcp.Description("Comma-separated list of consumer instance IDs to remove from the group. "+ - "Required for the 'remove-members' operation. "+ - "Consumer instance IDs can be found using the 'describe' operation.")), - mcp.WithString("topic", - mcp.Description("The topic name. Required for 'delete-offset' and 'set-offset' operations.")), - mcp.WithNumber("partition", - mcp.Description("The partition number. Required for 'set-offset' operation.")), - mcp.WithNumber("offset", - mcp.Description("The offset value to set. Required for 'set-offset' operation.")), - ) + return &sdk.Tool{ + Name: "kafka_admin_groups", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildKafkaGroupsHandler builds the Kafka Groups handler function -func (b *KafkaGroupsToolBuilder) buildKafkaGroupsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return b.handleError("get resource", err), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return b.handleError("get operation", err), nil - } - +func (b *KafkaGroupsToolBuilder) buildKafkaGroupsHandler(readOnly bool) builders.ToolHandlerFunc[kafkaGroupsInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input kafkaGroupsInput) (*sdk.CallToolResult, any, error) { // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) + resource := strings.ToLower(input.Resource) + operation := strings.ToLower(input.Operation) // Validate write operations in read-only mode if readOnly && (operation == "remove-members" || operation == "delete-offset" || operation == "set-offset") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Get Kafka admin client session := mcpCtx.GetKafkaSession(ctx) if session == nil { - return b.handleError("get Kafka session not found in context", nil), nil + return nil, nil, b.handleError("get Kafka session not found in context", nil) } admin, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } // Dispatch based on resource and operation @@ -194,27 +193,33 @@ func (b *KafkaGroupsToolBuilder) buildKafkaGroupsHandler(readOnly bool) func(con case "groups": switch operation { case "list": - return b.handleKafkaGroupsList(ctx, admin, request) + result, err := b.handleKafkaGroupsList(ctx, admin) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'groups': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'groups': %s", operation) } case "group": switch operation { case "describe": - return b.handleKafkaGroupDescribe(ctx, admin, request) + result, err := b.handleKafkaGroupDescribe(ctx, admin, input) + return result, nil, err case "remove-members": - return b.handleKafkaGroupRemoveMembers(ctx, admin, request) + result, err := b.handleKafkaGroupRemoveMembers(ctx, admin, input) + return result, nil, err case "offsets": - return b.handleKafkaGroupOffsets(ctx, admin, request) + result, err := b.handleKafkaGroupOffsets(ctx, admin, input) + return result, nil, err case "delete-offset": - return b.handleKafkaGroupDeleteOffset(ctx, admin, request) + result, err := b.handleKafkaGroupDeleteOffset(ctx, admin, input) + return result, nil, err case "set-offset": - return b.handleKafkaGroupSetOffset(ctx, admin, request) + result, err := b.handleKafkaGroupSetOffset(ctx, admin, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'group': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'group': %s", operation) } default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: groups, group", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. available resources: groups, group", resource) } } } @@ -222,54 +227,63 @@ func (b *KafkaGroupsToolBuilder) buildKafkaGroupsHandler(readOnly bool) func(con // Utility functions // handleError provides unified error handling -func (b *KafkaGroupsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *KafkaGroupsToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *KafkaGroupsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *KafkaGroupsToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil +} + +func requireInt64(value *int64, key string) (int64, error) { + if value == nil { + return 0, fmt.Errorf("required argument %q not found", key) + } + return *value, nil } // Specific operation handler functions // handleKafkaGroupsList handles listing all consumer groups -func (b *KafkaGroupsToolBuilder) handleKafkaGroupsList(ctx context.Context, admin *kadm.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *KafkaGroupsToolBuilder) handleKafkaGroupsList(ctx context.Context, admin *kadm.Client) (*sdk.CallToolResult, error) { groups, err := admin.ListGroups(ctx) if err != nil { - return b.handleError("list Kafka consumer groups", err), nil + return nil, b.handleError("list Kafka consumer groups", err) } return b.marshalResponse(groups) } // handleKafkaGroupDescribe handles describing a specific consumer group -func (b *KafkaGroupsToolBuilder) handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") +func (b *KafkaGroupsToolBuilder) handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, input kafkaGroupsInput) (*sdk.CallToolResult, error) { + groupName, err := requireString(input.Group, "group") if err != nil { - return b.handleError("get group name", err), nil + return nil, b.handleError("get group name", err) } groups, err := admin.DescribeGroups(ctx, groupName) if err != nil { - return b.handleError("describe Kafka consumer group", err), nil + return nil, b.handleError("describe Kafka consumer group", err) } return b.marshalResponse(groups) } // handleKafkaGroupRemoveMembers handles removing members from a consumer group -func (b *KafkaGroupsToolBuilder) handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") +func (b *KafkaGroupsToolBuilder) handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, input kafkaGroupsInput) (*sdk.CallToolResult, error) { + groupName, err := requireString(input.Group, "group") if err != nil { - return b.handleError("get group name", err), nil + return nil, b.handleError("get group name", err) } - membersStr, err := request.RequireString("members") + membersStr, err := requireString(input.Members, "members") if err != nil { - return b.handleError("get members", err), nil + return nil, b.handleError("get members", err) } memberIDs := strings.Split(membersStr, ",") @@ -280,36 +294,36 @@ func (b *KafkaGroupsToolBuilder) handleKafkaGroupRemoveMembers(ctx context.Conte builder := kadm.LeaveGroup(groupName).InstanceIDs(memberIDs...) response, err := admin.LeaveGroup(ctx, builder) if err != nil { - return b.handleError("remove members from Kafka consumer group", err), nil + return nil, b.handleError("remove members from Kafka consumer group", err) } return b.marshalResponse(response) } // handleKafkaGroupOffsets handles getting offsets for a consumer group -func (b *KafkaGroupsToolBuilder) handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") +func (b *KafkaGroupsToolBuilder) handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, input kafkaGroupsInput) (*sdk.CallToolResult, error) { + groupName, err := requireString(input.Group, "group") if err != nil { - return b.handleError("get group name", err), nil + return nil, b.handleError("get group name", err) } response, err := admin.FetchOffsets(ctx, groupName) if err != nil { - return b.handleError("get offsets for Kafka consumer group", err), nil + return nil, b.handleError("get offsets for Kafka consumer group", err) } return b.marshalResponse(response) } // handleKafkaGroupDeleteOffset handles deleting a specific offset for a consumer group -func (b *KafkaGroupsToolBuilder) handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") +func (b *KafkaGroupsToolBuilder) handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, input kafkaGroupsInput) (*sdk.CallToolResult, error) { + groupName, err := requireString(input.Group, "group") if err != nil { - return b.handleError("get group name", err), nil + return nil, b.handleError("get group name", err) } - topicName, err := request.RequireString("topic") + topicName, err := requireString(input.Topic, "topic") if err != nil { - return b.handleError("get topic name", err), nil + return nil, b.handleError("get topic name", err) } // Create a TopicsSet with the specified topic @@ -320,55 +334,79 @@ func (b *KafkaGroupsToolBuilder) handleKafkaGroupDeleteOffset(ctx context.Contex // Call DeleteOffsets to delete the offsets for the specified topic responses, err := admin.DeleteOffsets(ctx, groupName, topicsSet) if err != nil { - return b.handleError("delete offset for Kafka consumer group", err), nil + return nil, b.handleError("delete offset for Kafka consumer group", err) } // Check for errors in the response if err := responses.Error(); err != nil { - return b.handleError("delete offset for Kafka consumer group", err), nil + return nil, b.handleError("delete offset for Kafka consumer group", err) } return b.marshalResponse(responses) } // handleKafkaGroupSetOffset handles setting a specific offset for a consumer group -func (b *KafkaGroupsToolBuilder) handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - groupName, err := request.RequireString("group") +func (b *KafkaGroupsToolBuilder) handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, input kafkaGroupsInput) (*sdk.CallToolResult, error) { + groupName, err := requireString(input.Group, "group") if err != nil { - return b.handleError("get group name", err), nil + return nil, b.handleError("get group name", err) } - topicName, err := request.RequireString("topic") + topicName, err := requireString(input.Topic, "topic") if err != nil { - return b.handleError("get topic name", err), nil + return nil, b.handleError("get topic name", err) } - partitionNum, err := request.RequireFloat("partition") + partitionNum, err := requireInt(input.Partition, "partition") if err != nil { - return b.handleError("get partition number", err), nil + return nil, b.handleError("get partition number", err) } + //nolint:gosec partitionInt := int32(partitionNum) - offsetNum, err := request.RequireFloat("offset") + offsetNum, err := requireInt64(input.Offset, "offset") if err != nil { - return b.handleError("get offset", err), nil + return nil, b.handleError("get offset", err) } - offsetInt := int64(offsetNum) // Create Offsets object with the specified topic, partition, and offset offsets := make(kadm.Offsets) - offsets.AddOffset(topicName, partitionInt, offsetInt, -1) // Using -1 for leaderEpoch as it's optional + offsets.AddOffset(topicName, partitionInt, offsetNum, -1) // Using -1 for leaderEpoch as it's optional // Commit the offsets responses, err := admin.CommitOffsets(ctx, groupName, offsets) if err != nil { - return b.handleError("set offset for Kafka consumer group", err), nil + return nil, b.handleError("set offset for Kafka consumer group", err) } // Check for errors in the response if err := responses.Error(); err != nil { - return b.handleError("set offset for Kafka consumer group", err), nil + return nil, b.handleError("set offset for Kafka consumer group", err) } return b.marshalResponse(responses) } + +func buildKafkaGroupsInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[kafkaGroupsInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "resource", kafkaGroupsResourceDesc) + setSchemaDescription(schema, "operation", kafkaGroupsOperationDesc) + setSchemaDescription(schema, "group", kafkaGroupsGroupDesc) + setSchemaDescription(schema, "members", kafkaGroupsMembersDesc) + setSchemaDescription(schema, "topic", kafkaGroupsTopicDesc) + setSchemaDescription(schema, "partition", kafkaGroupsPartitionDesc) + setSchemaDescription(schema, "offset", kafkaGroupsOffsetDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/kafka/groups_legacy.go b/pkg/mcp/builders/kafka/groups_legacy.go new file mode 100644 index 0000000..0207956 --- /dev/null +++ b/pkg/mcp/builders/kafka/groups_legacy.go @@ -0,0 +1,373 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kadm" +) + +// KafkaGroupsLegacyToolBuilder implements the ToolBuilder interface for Kafka Consumer Groups. +type KafkaGroupsLegacyToolBuilder struct { //nolint:revive + *builders.BaseToolBuilder +} + +// NewKafkaGroupsLegacyToolBuilder creates a new legacy Kafka Groups tool builder instance. +func NewKafkaGroupsLegacyToolBuilder() *KafkaGroupsLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_groups", + Version: "1.0.0", + Description: "Kafka Consumer Groups administration tools", + Category: "kafka_admin", + Tags: []string{"kafka", "groups", "admin", "consumer"}, + } + + features := []string{ + "kafka-admin", + "all", + "all-kafka", + } + + return &KafkaGroupsLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka Groups tool list for the legacy server. +func (b *KafkaGroupsLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaGroupsTool() + handler := b.buildKafkaGroupsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaGroupsTool builds the Kafka Groups MCP tool definition. +func (b *KafkaGroupsLegacyToolBuilder) buildKafkaGroupsTool() mcp.Tool { + resourceDesc := "Resource to operate on. Available resources:\n" + + "- group: A single Kafka Consumer Group for operations on individual groups (describe, remove-members, set-offset, delete-offset)\n" + + "- groups: Collection of Kafka Consumer Groups for bulk operations (list)" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all Kafka Consumer Groups in the cluster\n" + + "- describe: Get detailed information about a specific Consumer Group, including members, offsets, and lag\n" + + "- remove-members: Remove specific members from a Consumer Group to force rebalancing or troubleshoot issues\n" + + "- offsets: Get offsets for a specific consumer group\n" + + "- delete-offset: Delete a specific offset for a consumer group of a topic\n" + + "- set-offset: Set a specific offset for a consumer group's topic-partition" + + toolDesc := "Unified tool for managing Apache Kafka Consumer Groups.\n" + + "This tool provides access to Kafka consumer group operations including listing, describing, and managing group membership.\n" + + "Kafka Consumer Groups are a key concept for scalable consumption of Kafka topics. A consumer group consists of multiple consumer instances\n" + + "that collaborate to consume data from topic partitions. Kafka ensures that:\n" + + "- Each partition is consumed by exactly one consumer in the group\n" + + "- When consumers join or leave, Kafka triggers a 'rebalance' to redistribute partitions\n" + + "- Consumer groups track consumption progress through committed offsets\n\n" + + "Usage Examples:\n\n" + + "1. List all Kafka Consumer Groups in the cluster:\n" + + " resource: \"groups\"\n" + + " operation: \"list\"\n\n" + + "2. Describe a specific Kafka Consumer Group to see its members and consumption details:\n" + + " resource: \"group\"\n" + + " operation: \"describe\"\n" + + " group: \"my-consumer-group\"\n\n" + + "3. Remove specific members from a Kafka Consumer Group to trigger rebalancing:\n" + + " resource: \"group\"\n" + + " operation: \"remove-members\"\n" + + " group: \"my-consumer-group\"\n" + + " members: \"consumer-instance-1,consumer-instance-2\"\n\n" + + "4. Get offsets for a specific consumer group:\n" + + " resource: \"group\"\n" + + " operation: \"offsets\"\n" + + " group: \"my-consumer-group\"\n\n" + + "5. Delete a specific offset for a consumer group of a topic:\n" + + " resource: \"group\"\n" + + " operation: \"delete-offset\"\n" + + " group: \"my-consumer-group\"\n" + + " topic: \"my-topic\"\n\n" + + "6. Set a specific offset for a consumer group's topic-partition:\n" + + " resource: \"group\"\n" + + " operation: \"set-offset\"\n" + + " group: \"my-consumer-group\"\n" + + " topic: \"my-topic\"\n" + + " partition: 0\n" + + " offset: 1000\n\n" + + "This tool requires Kafka super-user permissions." + + return mcp.NewTool("kafka_admin_groups", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("group", + mcp.Description("The name of the Kafka Consumer Group to operate on. "+ + "Required for the 'describe' and 'remove-members' operations. "+ + "Must be an existing consumer group name in the Kafka cluster. "+ + "Consumer Group names are case-sensitive and typically follow a naming convention like 'application-name'.")), + mcp.WithString("members", + mcp.Description("Comma-separated list of consumer instance IDs to remove from the group. "+ + "Required for the 'remove-members' operation. "+ + "Consumer instance IDs can be found using the 'describe' operation.")), + mcp.WithString("topic", + mcp.Description("The topic name. Required for 'delete-offset' and 'set-offset' operations.")), + mcp.WithNumber("partition", + mcp.Description("The partition number. Required for 'set-offset' operation.")), + mcp.WithNumber("offset", + mcp.Description("The offset value to set. Required for 'set-offset' operation.")), + ) +} + +// buildKafkaGroupsHandler builds the Kafka Groups handler function. +func (b *KafkaGroupsLegacyToolBuilder) buildKafkaGroupsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return b.handleError("get resource", err), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "remove-members" || operation == "delete-offset" || operation == "set-offset") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Kafka admin client + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + admin, err := session.GetAdminClient() + if err != nil { + return b.handleError("get admin client", err), nil + } + + // Dispatch based on resource and operation + switch resource { + case "groups": + switch operation { + case "list": + return b.handleKafkaGroupsList(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'groups': %s", operation)), nil + } + case "group": + switch operation { + case "describe": + return b.handleKafkaGroupDescribe(ctx, admin, request) + case "remove-members": + return b.handleKafkaGroupRemoveMembers(ctx, admin, request) + case "offsets": + return b.handleKafkaGroupOffsets(ctx, admin, request) + case "delete-offset": + return b.handleKafkaGroupDeleteOffset(ctx, admin, request) + case "set-offset": + return b.handleKafkaGroupSetOffset(ctx, admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'group': %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: groups, group", resource)), nil + } + } +} + +// Utility functions + +// handleError provides unified error handling. +func (b *KafkaGroupsLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses. +func (b *KafkaGroupsLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Specific operation handler functions + +// handleKafkaGroupsList handles listing all consumer groups. +func (b *KafkaGroupsLegacyToolBuilder) handleKafkaGroupsList(ctx context.Context, admin *kadm.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groups, err := admin.ListGroups(ctx) + if err != nil { + return b.handleError("list Kafka consumer groups", err), nil + } + return b.marshalResponse(groups) +} + +// handleKafkaGroupDescribe handles describing a specific consumer group. +func (b *KafkaGroupsLegacyToolBuilder) handleKafkaGroupDescribe(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + groups, err := admin.DescribeGroups(ctx, groupName) + if err != nil { + return b.handleError("describe Kafka consumer group", err), nil + } + return b.marshalResponse(groups) +} + +// handleKafkaGroupRemoveMembers handles removing members from a consumer group. +func (b *KafkaGroupsLegacyToolBuilder) handleKafkaGroupRemoveMembers(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + membersStr, err := request.RequireString("members") + if err != nil { + return b.handleError("get members", err), nil + } + + memberIDs := strings.Split(membersStr, ",") + for i, member := range memberIDs { + memberIDs[i] = strings.TrimSpace(member) + } + + builder := kadm.LeaveGroup(groupName).InstanceIDs(memberIDs...) + response, err := admin.LeaveGroup(ctx, builder) + if err != nil { + return b.handleError("remove members from Kafka consumer group", err), nil + } + + return b.marshalResponse(response) +} + +// handleKafkaGroupOffsets handles getting offsets for a consumer group. +func (b *KafkaGroupsLegacyToolBuilder) handleKafkaGroupOffsets(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + response, err := admin.FetchOffsets(ctx, groupName) + if err != nil { + return b.handleError("get offsets for Kafka consumer group", err), nil + } + return b.marshalResponse(response) +} + +// handleKafkaGroupDeleteOffset handles deleting a specific offset for a consumer group. +func (b *KafkaGroupsLegacyToolBuilder) handleKafkaGroupDeleteOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + + // Create a TopicsSet with the specified topic + // This will target all partitions for the given topic + topicsSet := make(kadm.TopicsSet) + topicsSet.Add(topicName) + + // Call DeleteOffsets to delete the offsets for the specified topic + responses, err := admin.DeleteOffsets(ctx, groupName, topicsSet) + if err != nil { + return b.handleError("delete offset for Kafka consumer group", err), nil + } + + // Check for errors in the response + if err := responses.Error(); err != nil { + return b.handleError("delete offset for Kafka consumer group", err), nil + } + + return b.marshalResponse(responses) +} + +// handleKafkaGroupSetOffset handles setting a specific offset for a consumer group. +func (b *KafkaGroupsLegacyToolBuilder) handleKafkaGroupSetOffset(ctx context.Context, admin *kadm.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + groupName, err := request.RequireString("group") + if err != nil { + return b.handleError("get group name", err), nil + } + + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + + partitionNum, err := request.RequireFloat("partition") + if err != nil { + return b.handleError("get partition number", err), nil + } + partitionInt := int32(partitionNum) + + offsetNum, err := request.RequireFloat("offset") + if err != nil { + return b.handleError("get offset", err), nil + } + offsetInt := int64(offsetNum) + + // Create Offsets object with the specified topic, partition, and offset + offsets := make(kadm.Offsets) + offsets.AddOffset(topicName, partitionInt, offsetInt, -1) // Using -1 for leaderEpoch as it's optional + + // Commit the offsets + responses, err := admin.CommitOffsets(ctx, groupName, offsets) + if err != nil { + return b.handleError("set offset for Kafka consumer group", err), nil + } + + // Check for errors in the response + if err := responses.Error(); err != nil { + return b.handleError("set offset for Kafka consumer group", err), nil + } + + return b.marshalResponse(responses) +} diff --git a/pkg/mcp/builders/kafka/groups_test.go b/pkg/mcp/builders/kafka/groups_test.go new file mode 100644 index 0000000..9ceef8c --- /dev/null +++ b/pkg/mcp/builders/kafka/groups_test.go @@ -0,0 +1,139 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package kafka + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestKafkaGroupsToolBuilder(t *testing.T) { + builder := NewKafkaGroupsToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "kafka_groups", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "kafka-admin") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-admin"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_admin_groups", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"kafka-admin"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_admin_groups", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"kafka-admin"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestKafkaGroupsToolSchema(t *testing.T) { + builder := NewKafkaGroupsToolBuilder() + tool, err := builder.buildKafkaGroupsTool() + require.NoError(t, err) + assert.Equal(t, "kafka_admin_groups", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "group", + "members", + "topic", + "partition", + "offset", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, kafkaGroupsResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, kafkaGroupsOperationDesc, operationSchema.Description) +} + +func TestKafkaGroupsToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewKafkaGroupsToolBuilder() + handler := builder.buildKafkaGroupsHandler(true) + + _, _, err := handler(context.Background(), nil, kafkaGroupsInput{ + Resource: "group", + Operation: "remove-members", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/kafka_admin_groups_tools.go b/pkg/mcp/kafka_admin_groups_tools.go index 143fd9c..0e2e758 100644 --- a/pkg/mcp/kafka_admin_groups_tools.go +++ b/pkg/mcp/kafka_admin_groups_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) // KafkaAdminAddGroupsTools registers Kafka admin group tools. -func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []string) { +func KafkaAdminAddGroupsTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaGroupsToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func KafkaAdminAddGroupsTools(s *server.MCPServer, readOnly bool, features []str // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/kafka_admin_groups_tools_legacy.go b/pkg/mcp/kafka_admin_groups_tools_legacy.go new file mode 100644 index 0000000..7a50083 --- /dev/null +++ b/pkg/mcp/kafka_admin_groups_tools_legacy.go @@ -0,0 +1,44 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" +) + +// KafkaAdminAddGroupsToolsLegacy registers Kafka admin group tools on legacy servers. +func KafkaAdminAddGroupsToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + // Use the new builder pattern + builder := kafkabuilders.NewKafkaGroupsLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + // Log error but don't fail - this maintains backward compatibility + return + } + + // Add all built tools to the server + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 59c619ab9e8acdaa3ab04a5a8d50ad5071571b7d Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 09:04:45 +0800 Subject: [PATCH 52/85] feat: migrate kafka produce tool to go-sdk Add go-sdk schema/handler for Kafka produce and keep legacy adapter for mark3labs server compatibility. --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/kafka/produce.go | 225 ++++++------ pkg/mcp/builders/kafka/produce_legacy.go | 351 +++++++++++++++++++ pkg/mcp/builders/kafka/produce_test.go | 34 +- pkg/mcp/kafka_client_produce_tools.go | 6 +- pkg/mcp/kafka_client_produce_tools_legacy.go | 41 +++ 6 files changed, 552 insertions(+), 107 deletions(-) create mode 100644 pkg/mcp/builders/kafka/produce_legacy.go create mode 100644 pkg/mcp/kafka_client_produce_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 7420ba2..bc7bced 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -140,6 +140,6 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.KafkaAdminAddSchemaRegistryTools(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddKafkaConnectTools(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaClientAddConsumeTools(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) - mcp.KafkaClientAddProduceTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaClientAddProduceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) return mcpServer, nil } diff --git a/pkg/mcp/builders/kafka/produce.go b/pkg/mcp/builders/kafka/produce.go index 0c7596c..6b97d70 100644 --- a/pkg/mcp/builders/kafka/produce.go +++ b/pkg/mcp/builders/kafka/produce.go @@ -21,15 +21,59 @@ import ( "strings" "time" + "github.com/google/jsonschema-go/jsonschema" "github.com/hamba/avro/v2" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" "github.com/twmb/franz-go/pkg/kgo" "github.com/twmb/franz-go/pkg/sr" ) +type kafkaProduceMessageInput struct { + Key *string `json:"key,omitempty"` + Value string `json:"value"` + Headers []string `json:"headers,omitempty"` + Partition *int `json:"partition,omitempty"` +} + +type kafkaProduceInput struct { + Topic string `json:"topic"` + Key *string `json:"key,omitempty"` + Value string `json:"value"` + Headers []string `json:"headers,omitempty"` + Partition *int `json:"partition,omitempty"` + Messages []kafkaProduceMessageInput `json:"messages,omitempty"` + Sync *bool `json:"sync,omitempty"` +} + +const ( + kafkaProduceTopicDesc = "The name of the Kafka topic to produce messages to. " + + "Must be an existing topic that the user has write permissions for." + kafkaProduceKeyDesc = "The key for the message. " + + "Optional. Keys are used for partition assignment and maintaining order for related messages. " + + "Messages with the same key will be sent to the same partition." + kafkaProduceValueDesc = "The value/content of the message to send. " + + "This is the actual payload that will be delivered to consumers. It can be a JSON string, and the system will automatically serialize it to the appropriate format based on the schema registry if it is available." + kafkaProduceHeadersDesc = "Message headers in the format of [\"key=value\"]. " + + "Optional. Headers allow you to attach metadata to messages without modifying the payload. " + + "They are passed along with the message to consumers." + kafkaProducePartitionDesc = "The specific partition to send the message to. " + + "Optional. If not specified, Kafka will automatically assign a partition based on the message key (if provided) or round-robin assignment. " + + "Specifying a partition can be useful for testing or when you need guaranteed partition assignment." + kafkaProduceMessagesDesc = "An array of messages to send in batch. " + + "Optional. Alternative to the single message parameters (key, value, headers, partition). " + + "Each message object can contain 'key', 'value', 'headers', and 'partition' properties. " + + "Batch sending is more efficient for multiple messages." + kafkaProduceSyncDesc = "Whether to wait for server acknowledgment before returning. " + + "Optional. Default is true. When true, ensures the message was successfully written to the topic before the tool returns a success response." + + kafkaProduceMessageKeyDesc = "Message key" + kafkaProduceMessageValueDesc = "Message value (required)" + kafkaProduceMessageHeadersDesc = "Message headers as array of \"key=value\" strings" + kafkaProduceMessagePartitionDesc = "Target partition number" +) + // KafkaProduceToolBuilder implements the ToolBuilder interface for Kafka client produce operations // It provides functionality to build Kafka producer tools // /nolint:revive @@ -60,7 +104,7 @@ func NewKafkaProduceToolBuilder() *KafkaProduceToolBuilder { // BuildTools builds the Kafka produce tool list // This is the core method implementing the ToolBuilder interface -func (b *KafkaProduceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *KafkaProduceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Skip registration if in read-only mode if config.ReadOnly { return nil, nil @@ -77,11 +121,14 @@ func (b *KafkaProduceToolBuilder) BuildTools(_ context.Context, config builders. } // Build tools - tool := b.buildKafkaProduceTool() + tool, err := b.buildKafkaProduceTool() + if err != nil { + return nil, err + } handler := b.buildKafkaProduceHandler() - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[kafkaProduceInput, any]{ Tool: tool, Handler: handler, }, @@ -90,7 +137,12 @@ func (b *KafkaProduceToolBuilder) BuildTools(_ context.Context, config builders. // buildKafkaProduceTool builds the Kafka produce MCP tool definition // Migrated from the original tool definition logic -func (b *KafkaProduceToolBuilder) buildKafkaProduceTool() mcp.Tool { +func (b *KafkaProduceToolBuilder) buildKafkaProduceTool() (*sdk.Tool, error) { + inputSchema, err := buildKafkaProduceInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Produce messages to a Kafka topic.\n" + "This tool allows you to send messages to Kafka topics with various options for message creation.\n\n" + "Kafka Producer Concepts:\n" + @@ -120,95 +172,29 @@ func (b *KafkaProduceToolBuilder) buildKafkaProduceTool() mcp.Tool { " partition: 2\n\n" + "This tool requires Kafka producer permissions on the specified topic." - return mcp.NewTool("kafka_client_produce", - mcp.WithDescription(toolDesc), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The name of the Kafka topic to produce messages to. "+ - "Must be an existing topic that the user has write permissions for."), - ), - mcp.WithString("key", - mcp.Description("The key for the message. "+ - "Optional. Keys are used for partition assignment and maintaining order for related messages. "+ - "Messages with the same key will be sent to the same partition."), - ), - mcp.WithString("value", - mcp.Required(), - mcp.Description("The value/content of the message to send. "+ - "This is the actual payload that will be delivered to consumers. It can be a JSON string, and the system will automatically serialize it to the appropriate format based on the schema registry if it is available."), - ), - mcp.WithArray("headers", - mcp.Description("Message headers in the format of [\"key=value\"]. "+ - "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ - "They are passed along with the message to consumers."), - mcp.Items(map[string]interface{}{ - "type": "string", - "description": "key value pair in the format of \"key=value\"", - }), - ), - mcp.WithNumber("partition", - mcp.Description("The specific partition to send the message to. "+ - "Optional. If not specified, Kafka will automatically assign a partition based on the message key (if provided) or round-robin assignment. "+ - "Specifying a partition can be useful for testing or when you need guaranteed partition assignment."), - ), - mcp.WithArray("messages", - mcp.Description("An array of messages to send in batch. "+ - "Optional. Alternative to the single message parameters (key, value, headers, partition). "+ - "Each message object can contain 'key', 'value', 'headers', and 'partition' properties. "+ - "Batch sending is more efficient for multiple messages."), - mcp.Items(map[string]interface{}{ - "type": "object", - "properties": map[string]interface{}{ - "key": map[string]interface{}{ - "type": "string", - "description": "Message key", - }, - "value": map[string]interface{}{ - "type": "string", - "description": "Message value (required)", - }, - "headers": map[string]interface{}{ - "type": "array", - "description": "Message headers as array of \"key=value\" strings", - "items": map[string]interface{}{ - "type": "string", - }, - }, - "partition": map[string]interface{}{ - "type": "number", - "description": "Target partition number", - }, - }, - "required": []string{"value"}, - }), - ), - mcp.WithBoolean("sync", - mcp.Description("Whether to wait for server acknowledgment before returning. "+ - "Optional. Default is true. When true, ensures the message was successfully written "+ - "to the topic before the tool returns a success response."), - ), - ) + return &sdk.Tool{ + Name: "kafka_client_produce", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildKafkaProduceHandler builds the Kafka produce handler function // Migrated from the original handler logic -func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required topic parameter - topicName, err := request.RequireString("topic") - if err != nil { - return b.handleError("get topic name", err), nil - } +func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() builders.ToolHandlerFunc[kafkaProduceInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input kafkaProduceInput) (*sdk.CallToolResult, any, error) { + topicName := input.Topic // Get Kafka session from context session := mcpCtx.GetKafkaSession(ctx) if session == nil { - return b.handleError("get Kafka session not found in context", nil), nil + return nil, nil, b.handleError("get Kafka session not found in context", nil) } // Create Kafka client using the session kafkaClient, err := session.GetClient() if err != nil { - return b.handleError("create Kafka client", err), nil + return nil, nil, b.handleError("create Kafka client", err) } defer kafkaClient.Close() @@ -224,19 +210,19 @@ func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Contex defer cancel() if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster - return b.handleError("ping Kafka cluster", err), nil + return nil, nil, b.handleError("ping Kafka cluster", err) } if schemaReady { subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) if err != nil { - return b.handleError("get schema", err), nil + return nil, nil, b.handleError("get schema", err) } switch subjSchema.Type { case sr.TypeAvro: avroSchema, err := avro.Parse(subjSchema.Schema.Schema) if err != nil { - return b.handleError("parse avro schema", err), nil + return nil, nil, b.handleError("parse avro schema", err) } serde.Register( subjSchema.ID, @@ -263,14 +249,16 @@ func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Contex } // Single message mode (simplified version) - value, err := request.RequireString("value") - if err != nil { - return b.handleError("get value", err), nil + value := input.Value + key := "" + if input.Key != nil { + key = *input.Key + } + headers := input.Headers + sync := true + if input.Sync != nil { + sync = *input.Sync } - - key := request.GetString("key", "") - headers := request.GetStringSlice("headers", []string{}) - sync := request.GetBool("sync", true) // Prepare record record := &kgo.Record{ @@ -302,7 +290,7 @@ func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Contex if err := json.Unmarshal([]byte(value), &jsonValue); err == nil { encodedValue, err := serde.Encode(jsonValue) if err != nil { - return b.handleError("encode value with schema", err), nil + return nil, nil, b.handleError("encode value with schema", err) } record.Value = encodedValue } @@ -312,7 +300,7 @@ func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Contex if sync { results := kafkaClient.ProduceSync(timeoutCtx, record) if len(results) > 0 && results[0].Err != nil { - return b.handleError("produce message", results[0].Err), nil + return nil, nil, b.handleError("produce message", results[0].Err) } } else { kafkaClient.Produce(timeoutCtx, record, func(_ *kgo.Record, _ error) { @@ -336,8 +324,41 @@ func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Contex response["partition"] = record.Partition } - return b.marshalResponse(response) + result, err := b.marshalResponse(response) + return result, nil, err + } +} + +func buildKafkaProduceInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[kafkaProduceInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} } + setSchemaDescription(schema, "topic", kafkaProduceTopicDesc) + setSchemaDescription(schema, "key", kafkaProduceKeyDesc) + setSchemaDescription(schema, "value", kafkaProduceValueDesc) + setSchemaDescription(schema, "headers", kafkaProduceHeadersDesc) + setSchemaDescription(schema, "partition", kafkaProducePartitionDesc) + setSchemaDescription(schema, "messages", kafkaProduceMessagesDesc) + setSchemaDescription(schema, "sync", kafkaProduceSyncDesc) + + messagesSchema := schema.Properties["messages"] + if messagesSchema != nil && messagesSchema.Items != nil { + setSchemaDescription(messagesSchema.Items, "key", kafkaProduceMessageKeyDesc) + setSchemaDescription(messagesSchema.Items, "value", kafkaProduceMessageValueDesc) + setSchemaDescription(messagesSchema.Items, "headers", kafkaProduceMessageHeadersDesc) + setSchemaDescription(messagesSchema.Items, "partition", kafkaProduceMessagePartitionDesc) + } + + normalizeAdditionalProperties(schema) + return schema, nil } // Helper functions @@ -345,15 +366,17 @@ func (b *KafkaProduceToolBuilder) buildKafkaProduceHandler() func(context.Contex // Unified error handling and utility functions // handleError provides unified error handling -func (b *KafkaProduceToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *KafkaProduceToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *KafkaProduceToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *KafkaProduceToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } diff --git a/pkg/mcp/builders/kafka/produce_legacy.go b/pkg/mcp/builders/kafka/produce_legacy.go new file mode 100644 index 0000000..267a898 --- /dev/null +++ b/pkg/mcp/builders/kafka/produce_legacy.go @@ -0,0 +1,351 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "strings" + "time" + + "github.com/hamba/avro/v2" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kgo" + "github.com/twmb/franz-go/pkg/sr" +) + +// KafkaProduceLegacyToolBuilder implements the legacy ToolBuilder interface for Kafka client produce operations. +// /nolint:revive +type KafkaProduceLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewKafkaProduceLegacyToolBuilder creates a new legacy Kafka produce tool builder instance. +func NewKafkaProduceLegacyToolBuilder() *KafkaProduceLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_produce", + Version: "1.0.0", + Description: "Kafka client produce tools", + Category: "kafka_client", + Tags: []string{"kafka", "client", "produce"}, + } + + features := []string{ + "kafka-client", + "all", + "all-kafka", + } + + return &KafkaProduceLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka produce tool list for the legacy server. +func (b *KafkaProduceLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Skip registration if in read-only mode + if config.ReadOnly { + return nil, nil + } + + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildKafkaProduceTool() + handler := b.buildKafkaProduceHandler() + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaProduceTool builds the Kafka produce MCP tool definition. +func (b *KafkaProduceLegacyToolBuilder) buildKafkaProduceTool() mcp.Tool { + toolDesc := "Produce messages to a Kafka topic.\n" + + "This tool allows you to send messages to Kafka topics with various options for message creation.\n\n" + + "Kafka Producer Concepts:\n" + + "- Producers write data to Kafka topics, which can be spread across multiple partitions\n" + + "- Messages can include a key, which determines the partition assignment (consistent hashing)\n" + + "- Headers can be added to messages to include metadata without affecting the message payload\n" + + "- Partitions enable parallel processing and ordered delivery within a single partition\n\n" + + "This tool provides a simple producer instance for diagnostic and testing purposes. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_produce' instead.\n\n" + + "Usage Examples:\n\n" + + "1. Basic message production - Send a simple message to a topic:\n" + + " topic: \"my-topic\"\n" + + " value: \"Hello, Kafka!\"\n\n" + + "2. Keyed message - Send a message with a key for consistent partition routing:\n" + + " topic: \"my-topic\"\n" + + " key: \"user-123\"\n" + + " value: \"User activity data\"\n\n" + + "3. Multiple messages - Send several messages in one request:\n" + + " topic: \"my-topic\"\n" + + " messages: [{\"key\": \"key1\", \"value\": \"value1\"}, {\"key\": \"key2\", \"value\": \"value2\"}]\n\n" + + "4. Message with headers - Include metadata with your message:\n" + + " topic: \"my-topic\"\n" + + " value: \"Message with headers\"\n" + + " headers: [\"source=mcp-tool\", \"timestamp=2023-06-01\"]\n\n" + + "5. Specific partition - Send to a particular partition:\n" + + " topic: \"my-topic\"\n" + + " value: \"Targeted message\"\n" + + " partition: 2\n\n" + + "This tool requires Kafka producer permissions on the specified topic." + + return mcp.NewTool("kafka_client_produce", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The name of the Kafka topic to produce messages to. "+ + "Must be an existing topic that the user has write permissions for."), + ), + mcp.WithString("key", + mcp.Description("The key for the message. "+ + "Optional. Keys are used for partition assignment and maintaining order for related messages. "+ + "Messages with the same key will be sent to the same partition."), + ), + mcp.WithString("value", + mcp.Required(), + mcp.Description("The value/content of the message to send. "+ + "This is the actual payload that will be delivered to consumers. It can be a JSON string, and the system will automatically serialize it to the appropriate format based on the schema registry if it is available."), + ), + mcp.WithArray("headers", + mcp.Description("Message headers in the format of [\"key=value\"]. "+ + "Optional. Headers allow you to attach metadata to messages without modifying the payload. "+ + "They are passed along with the message to consumers."), + mcp.Items(map[string]interface{}{ + "type": "string", + "description": "key value pair in the format of \"key=value\"", + }), + ), + mcp.WithNumber("partition", + mcp.Description("The specific partition to send the message to. "+ + "Optional. If not specified, Kafka will automatically assign a partition based on the message key (if provided) or round-robin assignment. "+ + "Specifying a partition can be useful for testing or when you need guaranteed partition assignment."), + ), + mcp.WithArray("messages", + mcp.Description("An array of messages to send in batch. "+ + "Optional. Alternative to the single message parameters (key, value, headers, partition). "+ + "Each message object can contain 'key', 'value', 'headers', and 'partition' properties. "+ + "Batch sending is more efficient for multiple messages."), + mcp.Items(map[string]interface{}{ + "type": "object", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + "description": "Message key", + }, + "value": map[string]interface{}{ + "type": "string", + "description": "Message value (required)", + }, + "headers": map[string]interface{}{ + "type": "array", + "description": "Message headers as array of \"key=value\" strings", + "items": map[string]interface{}{ + "type": "string", + }, + }, + "partition": map[string]interface{}{ + "type": "number", + "description": "Target partition number", + }, + }, + "required": []string{"value"}, + }), + ), + mcp.WithBoolean("sync", + mcp.Description("Whether to wait for server acknowledgment before returning. "+ + "Optional. Default is true. When true, ensures the message was successfully written "+ + "to the topic before the tool returns a success response."), + ), + ) +} + +// buildKafkaProduceHandler builds the Kafka produce handler function. +func (b *KafkaProduceLegacyToolBuilder) buildKafkaProduceHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required topic parameter + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + + // Get Kafka session from context + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + + // Create Kafka client using the session + kafkaClient, err := session.GetClient() + if err != nil { + return b.handleError("create Kafka client", err), nil + } + defer kafkaClient.Close() + + srClient, err := session.GetSchemaRegistryClient() + schemaReady := false + var serde sr.Serde + if err == nil && srClient != nil { + schemaReady = true + } + + // Set timeout + timeoutCtx, cancel := context.WithTimeout(ctx, 30*time.Second) + defer cancel() + + if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster + return b.handleError("ping Kafka cluster", err), nil + } + + if schemaReady { + subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) + if err != nil { + return b.handleError("get schema", err), nil + } + switch subjSchema.Type { + case sr.TypeAvro: + avroSchema, err := avro.Parse(subjSchema.Schema.Schema) + if err != nil { + return b.handleError("parse avro schema", err), nil + } + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(func(v any) ([]byte, error) { + return avro.Marshal(avroSchema, v) + }), + sr.DecodeFn(func(data []byte, v any) error { + return avro.Unmarshal(avroSchema, data, v) + }), + ) + case sr.TypeJSON: + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(json.Marshal), + sr.DecodeFn(json.Unmarshal), + ) + case sr.TypeProtobuf: + default: + // TODO: support other schema types + schemaReady = false + } + } + + // Single message mode (simplified version) + value, err := request.RequireString("value") + if err != nil { + return b.handleError("get value", err), nil + } + + key := request.GetString("key", "") + headers := request.GetStringSlice("headers", []string{}) + sync := request.GetBool("sync", true) + + // Prepare record + record := &kgo.Record{ + Topic: topicName, + Value: []byte(value), + } + + // Add key if provided + if key != "" { + record.Key = []byte(key) + } + + // Add headers if provided + if len(headers) > 0 { + for _, headerStr := range headers { + parts := strings.SplitN(headerStr, "=", 2) + if len(parts) == 2 { + record.Headers = append(record.Headers, kgo.RecordHeader{ + Key: parts[0], + Value: []byte(parts[1]), + }) + } + } + } + + // Handle schema encoding if available + if schemaReady { + var jsonValue interface{} + if err := json.Unmarshal([]byte(value), &jsonValue); err == nil { + encodedValue, err := serde.Encode(jsonValue) + if err != nil { + return b.handleError("encode value with schema", err), nil + } + record.Value = encodedValue + } + } + + // Produce the message based on sync parameter + if sync { + results := kafkaClient.ProduceSync(timeoutCtx, record) + if len(results) > 0 && results[0].Err != nil { + return b.handleError("produce message", results[0].Err), nil + } + } else { + kafkaClient.Produce(timeoutCtx, record, func(_ *kgo.Record, _ error) { + // Log async errors but don't fail since we're async + // In the future, this could be enhanced with proper async result handling + }) + } + + // Create result + response := map[string]interface{}{ + "status": "success", + "topic": record.Topic, + "timestamp": time.Now().Format(time.RFC3339), + } + + if len(record.Key) > 0 { + response["key"] = string(record.Key) + } + + if record.Partition != -1 { + response["partition"] = record.Partition + } + + return b.marshalResponse(response) + } +} + +// handleError provides unified error handling. +func (b *KafkaProduceLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses. +func (b *KafkaProduceLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/kafka/produce_test.go b/pkg/mcp/builders/kafka/produce_test.go index 6a88f5f..8fbe5a3 100644 --- a/pkg/mcp/builders/kafka/produce_test.go +++ b/pkg/mcp/builders/kafka/produce_test.go @@ -18,6 +18,7 @@ import ( "context" "testing" + "github.com/google/jsonschema-go/jsonschema" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -45,8 +46,8 @@ func TestKafkaProduceToolBuilder(t *testing.T) { tools, err := builder.BuildTools(context.Background(), config) require.NoError(t, err) assert.Len(t, tools, 1) - assert.Equal(t, "kafka_client_produce", tools[0].Tool.Name) - assert.NotNil(t, tools[0].Handler) + assert.Equal(t, "kafka_client_produce", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) }) t.Run("BuildTools_ReadOnlyMode", func(t *testing.T) { @@ -89,3 +90,32 @@ func TestKafkaProduceToolBuilder(t *testing.T) { assert.Error(t, err) }) } + +func TestKafkaProduceToolSchema(t *testing.T) { + builder := NewKafkaProduceToolBuilder() + tool, err := builder.buildKafkaProduceTool() + require.NoError(t, err) + assert.Equal(t, "kafka_client_produce", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"topic", "value"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "topic", + "key", + "value", + "headers", + "partition", + "messages", + "sync", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + topicSchema := schema.Properties["topic"] + require.NotNil(t, topicSchema) + assert.Equal(t, kafkaProduceTopicDesc, topicSchema.Description) +} diff --git a/pkg/mcp/kafka_client_produce_tools.go b/pkg/mcp/kafka_client_produce_tools.go index e75da6a..0fc0916 100644 --- a/pkg/mcp/kafka_client_produce_tools.go +++ b/pkg/mcp/kafka_client_produce_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) // KafkaClientAddProduceTools adds Kafka client produce tools to the MCP server -func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []string) { +func KafkaClientAddProduceTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaProduceToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func KafkaClientAddProduceTools(s *server.MCPServer, readOnly bool, features []s // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/kafka_client_produce_tools_legacy.go b/pkg/mcp/kafka_client_produce_tools_legacy.go new file mode 100644 index 0000000..513f948 --- /dev/null +++ b/pkg/mcp/kafka_client_produce_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" +) + +// KafkaClientAddProduceToolsLegacy adds Kafka client produce tools to the legacy MCP server. +func KafkaClientAddProduceToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := kafkabuilders.NewKafkaProduceLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 13efd34edb5f39810592899ac3da3aec65b039cc Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 09:20:07 +0800 Subject: [PATCH 53/85] feat: migrate kafka schema registry tool to go-sdk Use go-sdk tool definitions/handlers and add schema registry schema coverage. --- pkg/mcp/builders/kafka/schema_registry.go | 325 ++++++++++-------- .../builders/kafka/schema_registry_test.go | 144 ++++++++ pkg/mcp/kafka_admin_sr_tools.go | 6 +- 3 files changed, 332 insertions(+), 143 deletions(-) create mode 100644 pkg/mcp/builders/kafka/schema_registry_test.go diff --git a/pkg/mcp/builders/kafka/schema_registry.go b/pkg/mcp/builders/kafka/schema_registry.go index a4a0eae..651eec3 100644 --- a/pkg/mcp/builders/kafka/schema_registry.go +++ b/pkg/mcp/builders/kafka/schema_registry.go @@ -21,13 +21,53 @@ import ( "strconv" "strings" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" "github.com/twmb/franz-go/pkg/sr" ) +type kafkaSchemaRegistryInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Subject *string `json:"subject,omitempty"` + Version *string `json:"version,omitempty"` + Compatibility *string `json:"compatibility,omitempty"` + SchemaType *string `json:"schemaType,omitempty"` + Schema *string `json:"schema,omitempty"` +} + +const ( + kafkaSchemaRegistryResourceDesc = "Resource to operate on. Available resources:\n" + + "- subjects: Collection of all schema subjects in the Schema Registry\n" + + "- subject: A specific schema subject (a named schema that can have multiple versions)\n" + + "- versions: Collection of all versions for a specific subject\n" + + "- version: A specific version of a subject's schema\n" + + "- compatibility: Compatibility settings that control schema evolution rules\n" + + "- types: Supported schema format types (like AVRO, JSON, PROTOBUF)" + kafkaSchemaRegistryOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all subjects, versions for a subject, or supported schema types\n" + + "- get: Get a subject's latest schema, a specific version, or compatibility setting\n" + + "- set: Set compatibility level for global or subject-specific schema evolution\n" + + "- create: Register a new schema for a subject\n" + + "- delete: Delete a schema subject or a specific version" + kafkaSchemaRegistrySubjectDesc = "The name of the schema subject. " + + "Required for operations on 'subject', 'versions', 'version', and subject-specific 'compatibility' resources. " + + "Subject names typically follow the pattern '-key' or '-value'." + kafkaSchemaRegistryVersionDesc = "The version number or 'latest' for the most recent version. " + + "Required for 'version' resource operations." + kafkaSchemaRegistryCompatibilityDesc = "The compatibility level to set. " + + "Valid values: BACKWARD, FORWARD, FULL, NONE. " + + "Required for 'set' operation on 'compatibility' resource." + kafkaSchemaRegistrySchemaTypeDesc = "The schema format type. " + + "Valid values: AVRO, JSON, PROTOBUF. " + + "Required for 'create' operation on 'subject' resource." + kafkaSchemaRegistrySchemaDesc = "The schema definition as a JSON string. " + + "Required for 'create' operation on 'subject' resource. " + + "The structure depends on the schema type (AVRO, JSON Schema, or Protocol Buffers)." +) + // KafkaSchemaRegistryToolBuilder implements the ToolBuilder interface for Kafka Schema Registry // /nolint:revive type KafkaSchemaRegistryToolBuilder struct { @@ -57,7 +97,7 @@ func NewKafkaSchemaRegistryToolBuilder() *KafkaSchemaRegistryToolBuilder { } // BuildTools builds the Kafka Schema Registry tool list -func (b *KafkaSchemaRegistryToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *KafkaSchemaRegistryToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -69,11 +109,14 @@ func (b *KafkaSchemaRegistryToolBuilder) BuildTools(_ context.Context, config bu } // Build tools - tool := b.buildKafkaSchemaRegistryTool() + tool, err := b.buildKafkaSchemaRegistryTool() + if err != nil { + return nil, err + } handler := b.buildKafkaSchemaRegistryHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[kafkaSchemaRegistryInput, any]{ Tool: tool, Handler: handler, }, @@ -81,21 +124,11 @@ func (b *KafkaSchemaRegistryToolBuilder) BuildTools(_ context.Context, config bu } // buildKafkaSchemaRegistryTool builds the Kafka Schema Registry MCP tool definition -func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryTool() mcp.Tool { - resourceDesc := "Resource to operate on. Available resources:\n" + - "- subjects: Collection of all schema subjects in the Schema Registry\n" + - "- subject: A specific schema subject (a named schema that can have multiple versions)\n" + - "- versions: Collection of all versions for a specific subject\n" + - "- version: A specific version of a subject's schema\n" + - "- compatibility: Compatibility settings that control schema evolution rules\n" + - "- types: Supported schema format types (like AVRO, JSON, PROTOBUF)" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all subjects, versions for a subject, or supported schema types\n" + - "- get: Get a subject's latest schema, a specific version, or compatibility setting\n" + - "- set: Set compatibility level for global or subject-specific schema evolution\n" + - "- create: Register a new schema for a subject\n" + - "- delete: Delete a schema subject or a specific version" +func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryTool() (*sdk.Tool, error) { + inputSchema, err := buildKafkaSchemaRegistryInputSchema() + if err != nil { + return nil, err + } toolDesc := "Unified tool for managing Apache Kafka Schema Registry.\n" + "Schema Registry provides a centralized repository for managing and validating schemas for Kafka data.\n" + @@ -122,7 +155,7 @@ func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryTool() mcp.Tool " resource: \"subject\"\n" + " operation: \"create\"\n" + " subject: \"user-events-value\"\n" + - " schema: {...}\n" + + " schema: \"{...}\"\n" + " schemaType: \"AVRO\"\n\n" + "4. Set compatibility level:\n" + " resource: \"compatibility\"\n" + @@ -131,67 +164,33 @@ func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryTool() mcp.Tool " compatibility: \"BACKWARD\"\n\n" + "This tool requires appropriate Schema Registry permissions." - return mcp.NewTool("kafka_admin_sr", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("subject", - mcp.Description("The name of the schema subject. "+ - "Required for operations on 'subject', 'versions', 'version', and subject-specific 'compatibility' resources. "+ - "Subject names typically follow the pattern '-key' or '-value'.")), - mcp.WithString("version", - mcp.Description("The version number or 'latest' for the most recent version. "+ - "Required for 'version' resource operations.")), - mcp.WithString("compatibility", - mcp.Description("The compatibility level to set. "+ - "Valid values: BACKWARD, FORWARD, FULL, NONE. "+ - "Required for 'set' operation on 'compatibility' resource.")), - mcp.WithString("schemaType", - mcp.Description("The schema format type. "+ - "Valid values: AVRO, JSON, PROTOBUF. "+ - "Required for 'create' operation on 'subject' resource.")), - mcp.WithObject("schema", - mcp.Description("The schema definition as a JSON object. "+ - "Required for 'create' operation on 'subject' resource. "+ - "The structure depends on the schema type (AVRO, JSON Schema, or Protocol Buffers).")), - ) + return &sdk.Tool{ + Name: "kafka_admin_sr", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildKafkaSchemaRegistryHandler builds the Kafka Schema Registry handler function -func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return b.handleError("get resource", err), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return b.handleError("get operation", err), nil - } - +func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryHandler(readOnly bool) builders.ToolHandlerFunc[kafkaSchemaRegistryInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, any, error) { // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) + resource := strings.ToLower(input.Resource) + operation := strings.ToLower(input.Operation) // Validate write operations in read-only mode if readOnly && (operation == "create" || operation == "delete" || operation == "set") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Get Schema Registry client session := mcpCtx.GetKafkaSession(ctx) if session == nil { - return b.handleError("get Kafka session not found in context", nil), nil + return nil, nil, b.handleError("get Kafka session not found in context", nil) } client, err := session.GetSchemaRegistryClient() if err != nil { - return b.handleError("get Schema Registry client", err), nil + return nil, nil, b.handleError("get Schema Registry client", err) } // Dispatch based on resource and operation @@ -199,55 +198,65 @@ func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryHandler(readOnl case "subjects": switch operation { case "list": - return b.handleSchemaSubjectsList(ctx, client, request) + result, err := b.handleSchemaSubjectsList(ctx, client) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subjects': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'subjects': %s", operation) } case "subject": switch operation { case "get": - return b.handleSchemaSubjectGet(ctx, client, request) + result, err := b.handleSchemaSubjectGet(ctx, client, input) + return result, nil, err case "create": - return b.handleSchemaSubjectCreate(ctx, client, request) + result, err := b.handleSchemaSubjectCreate(ctx, client, input) + return result, nil, err case "delete": - return b.handleSchemaSubjectDelete(ctx, client, request) + result, err := b.handleSchemaSubjectDelete(ctx, client, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'subject': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'subject': %s", operation) } case "versions": switch operation { case "list": - return b.handleSchemaVersionsList(ctx, client, request) + result, err := b.handleSchemaVersionsList(ctx, client, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'versions': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'versions': %s", operation) } case "version": switch operation { case "get": - return b.handleSchemaVersionGet(ctx, client, request) + result, err := b.handleSchemaVersionGet(ctx, client, input) + return result, nil, err case "delete": - return b.handleSchemaVersionDelete(ctx, client, request) + result, err := b.handleSchemaVersionDelete(ctx, client, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'version': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'version': %s", operation) } case "compatibility": switch operation { case "get": - return b.handleSchemaCompatibilityGet(ctx, client, request) + result, err := b.handleSchemaCompatibilityGet(ctx, client, input) + return result, nil, err case "set": - return b.handleSchemaCompatibilitySet(ctx, client, request) + result, err := b.handleSchemaCompatibilitySet(ctx, client, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'compatibility': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'compatibility': %s", operation) } case "types": switch operation { case "list": - return b.handleSchemaTypesList(ctx, client, request) + result, err := b.handleSchemaTypesList() + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'types': %s", operation)), nil + return nil, nil, fmt.Errorf("invalid operation for resource 'types': %s", operation) } default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: subjects, subject, versions, version, compatibility, types", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. available resources: subjects, subject, versions, version, compatibility, types", resource) } } } @@ -255,66 +264,68 @@ func (b *KafkaSchemaRegistryToolBuilder) buildKafkaSchemaRegistryHandler(readOnl // Utility functions // handleError provides unified error handling -func (b *KafkaSchemaRegistryToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *KafkaSchemaRegistryToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *KafkaSchemaRegistryToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *KafkaSchemaRegistryToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Specific operation handler functions // handleSchemaSubjectsList handles listing all schema subjects -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectsList(ctx context.Context, client *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectsList(ctx context.Context, client *sr.Client) (*sdk.CallToolResult, error) { subjects, err := client.Subjects(ctx) if err != nil { - return b.handleError("list schema subjects", err), nil + return nil, b.handleError("list schema subjects", err) } return b.marshalResponse(subjects) } // handleSchemaSubjectGet handles getting the latest schema for a subject -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectGet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectGet(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + subject, err := requireString(input.Subject, "subject") if err != nil { - return b.handleError("get subject name", err), nil + return nil, b.handleError("get subject name", err) } schema, err := client.SchemaByVersion(ctx, subject, -1) // -1 for latest if err != nil { - return b.handleError("get schema for subject", err), nil + return nil, b.handleError("get schema for subject", err) } return b.marshalResponse(schema) } // handleSchemaSubjectCreate handles registering a new schema for a subject -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectCreate(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectCreate(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + subject, err := requireString(input.Subject, "subject") if err != nil { - return b.handleError("get subject name", err), nil + return nil, b.handleError("get subject name", err) } - schemaTypeStr, err := request.RequireString("schemaType") + schemaTypeStr, err := requireString(input.SchemaType, "schemaType") if err != nil { - return b.handleError("get schema type", err), nil + return nil, b.handleError("get schema type", err) } - schema, err := request.RequireString("schema") + schema, err := requireString(input.Schema, "schema") if err != nil { - return b.handleError("get schema object", err), nil + return nil, b.handleError("get schema object", err) } // Parse schema type var schemaType sr.SchemaType err = schemaType.UnmarshalText([]byte(schemaTypeStr)) if err != nil { - return b.handleError("unmarshal schema type", err), nil + return nil, b.handleError("unmarshal schema type", err) } // Create schema @@ -325,50 +336,50 @@ func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectCreate(ctx context.C result, err := client.CreateSchema(ctx, subject, schemaObj) if err != nil { - return b.handleError("create schema", err), nil + return nil, b.handleError("create schema", err) } return b.marshalResponse(result) } // handleSchemaSubjectDelete handles deleting a schema subject -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectDelete(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaSubjectDelete(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + subject, err := requireString(input.Subject, "subject") if err != nil { - return b.handleError("get subject name", err), nil + return nil, b.handleError("get subject name", err) } // Delete subject using correct API signature (soft delete by default) versions, err := client.DeleteSubject(ctx, subject, sr.SoftDelete) if err != nil { - return b.handleError("delete schema subject", err), nil + return nil, b.handleError("delete schema subject", err) } return b.marshalResponse(versions) } // handleSchemaVersionsList handles listing all versions for a subject -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionsList(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionsList(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + subject, err := requireString(input.Subject, "subject") if err != nil { - return b.handleError("get subject name", err), nil + return nil, b.handleError("get subject name", err) } versions, err := client.SubjectVersions(ctx, subject) if err != nil { - return b.handleError("list schema versions", err), nil + return nil, b.handleError("list schema versions", err) } return b.marshalResponse(versions) } // handleSchemaVersionGet handles getting a specific version of a schema -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionGet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionGet(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + subject, err := requireString(input.Subject, "subject") if err != nil { - return b.handleError("get subject name", err), nil + return nil, b.handleError("get subject name", err) } - versionStr, err := request.RequireString("version") + versionStr, err := requireString(input.Version, "version") if err != nil { - return b.handleError("get version", err), nil + return nil, b.handleError("get version", err) } var version int @@ -378,46 +389,51 @@ func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionGet(ctx context.Cont var parseErr error version, parseErr = strconv.Atoi(versionStr) if parseErr != nil { - return b.handleError("parse version number", parseErr), nil + return nil, b.handleError("parse version number", parseErr) } } schema, err := client.SchemaByVersion(ctx, subject, version) if err != nil { - return b.handleError("get schema version", err), nil + return nil, b.handleError("get schema version", err) } return b.marshalResponse(schema) } // handleSchemaVersionDelete handles deleting a specific version of a schema -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionDelete(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject, err := request.RequireString("subject") +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaVersionDelete(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + subject, err := requireString(input.Subject, "subject") if err != nil { - return b.handleError("get subject name", err), nil + return nil, b.handleError("get subject name", err) } - versionStr, err := request.RequireString("version") + versionStr, err := requireString(input.Version, "version") if err != nil { - return b.handleError("get version", err), nil + return nil, b.handleError("get version", err) } version, err := strconv.Atoi(versionStr) if err != nil { - return b.handleError("parse version number", err), nil + return nil, b.handleError("parse version number", err) } // Delete schema version using correct API signature (soft delete by default) err = client.DeleteSchema(ctx, subject, version, sr.SoftDelete) if err != nil { - return b.handleError("delete schema version", err), nil + return nil, b.handleError("delete schema version", err) } - return mcp.NewToolResultText(fmt.Sprintf("Schema version %d for subject %s deleted successfully", version, subject)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: fmt.Sprintf("Schema version %d for subject %s deleted successfully", version, subject)}}, + }, nil } // handleSchemaCompatibilityGet handles getting compatibility setting -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilityGet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - subject := request.GetString("subject", "") // Optional for global compatibility +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilityGet(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + subject := "" + if input.Subject != nil { + subject = *input.Subject + } var results []sr.CompatibilityResult if subject != "" { @@ -431,7 +447,7 @@ func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilityGet(ctx contex // Check for errors in results for _, result := range results { if result.Err != nil { - return b.handleError("get compatibility setting", result.Err), nil + return nil, b.handleError("get compatibility setting", result.Err) } } @@ -440,17 +456,20 @@ func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilityGet(ctx contex return b.marshalResponse(map[string]string{"compatibility": results[0].Level.String()}) } - return mcp.NewToolResultError("No compatibility result returned"), nil + return nil, fmt.Errorf("no compatibility result returned") } // handleSchemaCompatibilitySet handles setting compatibility level -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilitySet(ctx context.Context, client *sr.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - compatibilityStr, err := request.RequireString("compatibility") +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilitySet(ctx context.Context, client *sr.Client, input kafkaSchemaRegistryInput) (*sdk.CallToolResult, error) { + compatibilityStr, err := requireString(input.Compatibility, "compatibility") if err != nil { - return b.handleError("get compatibility level", err), nil + return nil, b.handleError("get compatibility level", err) } - subject := request.GetString("subject", "") // Optional for global compatibility + subject := "" + if input.Subject != nil { + subject = *input.Subject + } // Parse compatibility level var compatibility sr.CompatibilityLevel @@ -464,7 +483,7 @@ func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilitySet(ctx contex case "NONE": compatibility = sr.CompatNone default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid compatibility level: %s. Valid levels: BACKWARD, FORWARD, FULL, NONE", compatibilityStr)), nil + return nil, fmt.Errorf("invalid compatibility level: %s. valid levels: BACKWARD, FORWARD, FULL, NONE", compatibilityStr) } // Create SetCompatibility request @@ -484,15 +503,41 @@ func (b *KafkaSchemaRegistryToolBuilder) handleSchemaCompatibilitySet(ctx contex // Check for errors in results for _, result := range results { if result.Err != nil { - return b.handleError("set compatibility level", result.Err), nil + return nil, b.handleError("set compatibility level", result.Err) } } - return mcp.NewToolResultText(fmt.Sprintf("Compatibility level set to %s", compatibilityStr)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: fmt.Sprintf("Compatibility level set to %s", compatibilityStr)}}, + }, nil } // handleSchemaTypesList handles listing supported schema types -func (b *KafkaSchemaRegistryToolBuilder) handleSchemaTypesList(_ context.Context, _ *sr.Client, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *KafkaSchemaRegistryToolBuilder) handleSchemaTypesList() (*sdk.CallToolResult, error) { types := []string{"AVRO", "JSON", "PROTOBUF"} return b.marshalResponse(types) } + +func buildKafkaSchemaRegistryInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[kafkaSchemaRegistryInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "resource", kafkaSchemaRegistryResourceDesc) + setSchemaDescription(schema, "operation", kafkaSchemaRegistryOperationDesc) + setSchemaDescription(schema, "subject", kafkaSchemaRegistrySubjectDesc) + setSchemaDescription(schema, "version", kafkaSchemaRegistryVersionDesc) + setSchemaDescription(schema, "compatibility", kafkaSchemaRegistryCompatibilityDesc) + setSchemaDescription(schema, "schemaType", kafkaSchemaRegistrySchemaTypeDesc) + setSchemaDescription(schema, "schema", kafkaSchemaRegistrySchemaDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/kafka/schema_registry_test.go b/pkg/mcp/builders/kafka/schema_registry_test.go new file mode 100644 index 0000000..594a43f --- /dev/null +++ b/pkg/mcp/builders/kafka/schema_registry_test.go @@ -0,0 +1,144 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package kafka + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestKafkaSchemaRegistryToolBuilder(t *testing.T) { + builder := NewKafkaSchemaRegistryToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "kafka_schema_registry", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "kafka-admin-schema-registry") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"kafka-admin-schema-registry"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_admin_sr", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"kafka-admin-schema-registry"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "kafka_admin_sr", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"kafka-admin-schema-registry"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestKafkaSchemaRegistryToolSchema(t *testing.T) { + builder := NewKafkaSchemaRegistryToolBuilder() + tool, err := builder.buildKafkaSchemaRegistryTool() + require.NoError(t, err) + assert.Equal(t, "kafka_admin_sr", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "subject", + "version", + "compatibility", + "schemaType", + "schema", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, kafkaSchemaRegistryResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, kafkaSchemaRegistryOperationDesc, operationSchema.Description) + + schemaSchema := schema.Properties["schema"] + require.NotNil(t, schemaSchema) + assert.Equal(t, kafkaSchemaRegistrySchemaDesc, schemaSchema.Description) + assert.Contains(t, schemaSchema.Types, "string") +} + +func TestKafkaSchemaRegistryToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewKafkaSchemaRegistryToolBuilder() + handler := builder.buildKafkaSchemaRegistryHandler(true) + + _, _, err := handler(context.Background(), nil, kafkaSchemaRegistryInput{ + Resource: "subject", + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/kafka_admin_sr_tools.go b/pkg/mcp/kafka_admin_sr_tools.go index c6e01d5..3b6eb2b 100644 --- a/pkg/mcp/kafka_admin_sr_tools.go +++ b/pkg/mcp/kafka_admin_sr_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) // KafkaAdminAddSchemaRegistryTools registers Kafka Schema Registry tools. -func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, features []string) { +func KafkaAdminAddSchemaRegistryTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaSchemaRegistryToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func KafkaAdminAddSchemaRegistryTools(s *server.MCPServer, readOnly bool, featur // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } From 8dc1fb64f492d961ab51cdec0a3e3b0e0b641a08 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 09:33:07 +0800 Subject: [PATCH 54/85] feat: migrate kafka consume tool to go-sdk --- pkg/cmd/mcp/server.go | 8 +- pkg/mcp/builders/kafka/consume.go | 185 ++++++---- pkg/mcp/builders/kafka/consume_legacy.go | 340 +++++++++++++++++++ pkg/mcp/builders/kafka/consume_test.go | 32 +- pkg/mcp/kafka_client_consume_tools.go | 12 +- pkg/mcp/kafka_client_consume_tools_legacy.go | 45 +++ 6 files changed, 539 insertions(+), 83 deletions(-) create mode 100644 pkg/mcp/builders/kafka/consume_legacy.go create mode 100644 pkg/mcp/kafka_client_consume_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index bc7bced..7ca38e5 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -135,11 +135,11 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddPartitionsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddPartitionsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddGroupsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddSchemaRegistryTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaAdminAddKafkaConnectTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.KafkaClientAddConsumeTools(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) + mcp.KafkaAdminAddSchemaRegistryToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaAdminAddKafkaConnectToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) + mcp.KafkaClientAddConsumeToolsLegacy(s, configOpts.ReadOnly, logrusLogger, configOpts.Features) mcp.KafkaClientAddProduceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) return mcpServer, nil } diff --git a/pkg/mcp/builders/kafka/consume.go b/pkg/mcp/builders/kafka/consume.go index 9b8fae2..8083042 100644 --- a/pkg/mcp/builders/kafka/consume.go +++ b/pkg/mcp/builders/kafka/consume.go @@ -20,9 +20,9 @@ import ( "fmt" "time" + "github.com/google/jsonschema-go/jsonschema" "github.com/hamba/avro/v2" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/sirupsen/logrus" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" @@ -30,6 +30,39 @@ import ( "github.com/twmb/franz-go/pkg/sr" ) +type kafkaConsumeInput struct { + Topic string `json:"topic"` + Group *string `json:"group,omitempty"` + Offset *string `json:"offset,omitempty"` + MaxMessages *int `json:"max-messages,omitempty"` + Timeout *int `json:"timeout,omitempty"` +} + +const ( + kafkaConsumeTopicDesc = "The name of the Kafka topic to consume messages from. " + + "Must be an existing topic that the user has read permissions for. " + + "For partitioned topics, this will consume from all partitions unless a specific partition is specified." + kafkaConsumeGroupDesc = "The consumer group ID to use for consumption. " + + "Optional. If provided, the consumer will join this consumer group and track offsets with Kafka. " + + "If not provided, a random group ID will be generated, and offsets won't be committed back to Kafka. " + + "Using a meaningful group ID is important when you want to resume consumption later or coordinate multiple consumers." + kafkaConsumeOffsetDesc = "The offset position to start consuming from. " + + "Optional. Must be one of these values:\n" + + "- 'atstart': Begin from the earliest available message in the topic/partition\n" + + "- 'atend': Begin from the next message that arrives after the consumer starts\n" + + "- 'atcommitted': Begin from the last committed offset (only works with specified 'group')\n" + + "Default: 'atstart'" + kafkaConsumeMaxMessagesDesc = "Maximum number of messages to consume in this request. " + + "Optional. Limits the total number of messages returned, across all partitions if no specific partition is specified. " + + "Higher values retrieve more data but may increase response time and size. " + + "Default: 10" + kafkaConsumeTimeoutDesc = "Maximum time in seconds to wait for messages. " + + "Optional. The consumer will wait up to this long to collect the requested number of messages. " + + "If fewer than 'max-messages' are available within this time, the available messages are returned. " + + "Longer timeouts are useful for low-volume topics or when consuming with 'atend'. " + + "Default: 10 seconds" +) + // KafkaConsumeToolBuilder implements the ToolBuilder interface for Kafka client consume operations // It provides functionality to build Kafka consumer tools // /nolint:revive @@ -61,7 +94,7 @@ func NewKafkaConsumeToolBuilder() *KafkaConsumeToolBuilder { // BuildTools builds the Kafka consume tool list // This is the core method implementing the ToolBuilder interface -func (b *KafkaConsumeToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *KafkaConsumeToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -73,18 +106,23 @@ func (b *KafkaConsumeToolBuilder) BuildTools(_ context.Context, config builders. } // Extract logger from options if provided - if loggerOpt, ok := config.Options["logger"]; ok { - if logger, ok := loggerOpt.(*logrus.Logger); ok { - b.logger = logger + if config.Options != nil { + if loggerOpt, ok := config.Options["logger"]; ok { + if logger, ok := loggerOpt.(*logrus.Logger); ok { + b.logger = logger + } } } // Build tools - tool := b.buildKafkaConsumeTool() + tool, err := b.buildKafkaConsumeTool() + if err != nil { + return nil, err + } handler := b.buildKafkaConsumeHandler() - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[kafkaConsumeInput, any]{ Tool: tool, Handler: handler, }, @@ -93,7 +131,12 @@ func (b *KafkaConsumeToolBuilder) BuildTools(_ context.Context, config builders. // buildKafkaConsumeTool builds the Kafka consume MCP tool definition // Migrated from the original tool definition logic -func (b *KafkaConsumeToolBuilder) buildKafkaConsumeTool() mcp.Tool { +func (b *KafkaConsumeToolBuilder) buildKafkaConsumeTool() (*sdk.Tool, error) { + inputSchema, err := buildKafkaConsumeInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Consume messages from a Kafka topic.\n" + "This tool allows you to read messages from Kafka topics, specifying various consumption parameters.\n\n" + "Kafka Consumer Concepts:\n" + @@ -121,53 +164,20 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeTool() mcp.Tool { " timeout: 30\n\n" + "This tool requires Kafka consumer permissions on the specified topic." - return mcp.NewTool("kafka_client_consume", - mcp.WithDescription(toolDesc), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The name of the Kafka topic to consume messages from. "+ - "Must be an existing topic that the user has read permissions for. "+ - "For partitioned topics, this will consume from all partitions unless a specific partition is specified."), - ), - mcp.WithString("group", - mcp.Description("The consumer group ID to use for consumption. "+ - "Optional. If provided, the consumer will join this consumer group and track offsets with Kafka. "+ - "If not provided, a random group ID will be generated, and offsets won't be committed back to Kafka. "+ - "Using a meaningful group ID is important when you want to resume consumption later or coordinate multiple consumers."), - ), - mcp.WithString("offset", - mcp.Description("The offset position to start consuming from. "+ - "Optional. Must be one of these values:\n"+ - "- 'atstart': Begin from the earliest available message in the topic/partition\n"+ - "- 'atend': Begin from the next message that arrives after the consumer starts\n"+ - "- 'atcommitted': Begin from the last committed offset (only works with specified 'group')\n"+ - "Default: 'atstart'"), - ), - mcp.WithNumber("max-messages", - mcp.Description("Maximum number of messages to consume in this request. "+ - "Optional. Limits the total number of messages returned, across all partitions if no specific partition is specified. "+ - "Higher values retrieve more data but may increase response time and size. "+ - "Default: 10"), - ), - mcp.WithNumber("timeout", - mcp.Description("Maximum time in seconds to wait for messages. "+ - "Optional. The consumer will wait up to this long to collect the requested number of messages. "+ - "If fewer than 'max-messages' are available within this time, the available messages are returned. "+ - "Longer timeouts are useful for low-volume topics or when consuming with 'atend'. "+ - "Default: 10 seconds"), - ), - ) + return &sdk.Tool{ + Name: "kafka_client_consume", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildKafkaConsumeHandler builds the Kafka consume handler function // Migrated from the original handler logic -func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() builders.ToolHandlerFunc[kafkaConsumeInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input kafkaConsumeInput) (*sdk.CallToolResult, any, error) { opts := []kgo.Opt{} // Get required parameters - topicName, err := request.RequireString("topic") - if err != nil { - return b.handleError("get topic name", err), nil - } + topicName := input.Topic opts = append(opts, kgo.ConsumeTopics(topicName)) opts = append(opts, kgo.FetchIsolationLevel(kgo.ReadUncommitted())) @@ -176,16 +186,28 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Contex w := b.logger.Writer() opts = append(opts, kgo.WithLogger(kgo.BasicLogger(w, kgo.LogLevelInfo, nil))) } - maxMessages := request.GetFloat("max-messages", 10) + maxMessages := 10 + if input.MaxMessages != nil { + maxMessages = *input.MaxMessages + } - timeoutSec := request.GetFloat("timeout", 10) + timeoutSec := 10 + if input.Timeout != nil { + timeoutSec = *input.Timeout + } - group := request.GetString("group", "") + group := "" + if input.Group != nil { + group = *input.Group + } if group != "" { opts = append(opts, kgo.ConsumerGroup(group)) } - offsetStr := request.GetString("offset", "atstart") + offsetStr := "atstart" + if input.Offset != nil && *input.Offset != "" { + offsetStr = *input.Offset + } var offset kgo.Offset switch offsetStr { @@ -200,19 +222,19 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Contex } opts = append(opts, kgo.ConsumeResetOffset(offset)) if b.logger != nil { - b.logger.Infof("Consuming from topic: %s, group: %s, max-messages: %d, timeout: %d", topicName, group, int(maxMessages), int(timeoutSec)) + b.logger.Infof("Consuming from topic: %s, group: %s, max-messages: %d, timeout: %d", topicName, group, maxMessages, timeoutSec) } // Get Kafka session from context session := mcpCtx.GetKafkaSession(ctx) if session == nil { - return b.handleError("get Kafka session not found in context", nil), nil + return nil, nil, b.handleError("get Kafka session not found in context", nil) } // Create Kafka client using the session kafkaClient, err := session.GetClient(opts...) if err != nil { - return b.handleError("create Kafka client", err), nil + return nil, nil, b.handleError("create Kafka client", err) } defer kafkaClient.Close() @@ -228,13 +250,13 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Contex defer cancel() if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster - return b.handleError("ping Kafka cluster", err), nil + return nil, nil, b.handleError("ping Kafka cluster", err) } if schemaReady { subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) if err != nil { - return b.handleError("get schema", err), nil + return nil, nil, b.handleError("get schema", err) } if b.logger != nil { b.logger.Infof("Schema ID: %d", subjSchema.ID) @@ -243,7 +265,7 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Contex case sr.TypeAvro: avroSchema, err := avro.Parse(subjSchema.Schema.Schema) if err != nil { - return b.handleError("parse avro schema", err), nil + return nil, nil, b.handleError("parse avro schema", err) } serde.Register( subjSchema.ID, @@ -275,7 +297,7 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Contex results := make([]any, 0) consumerLoop: for { - fetches := kafkaClient.PollRecords(timeoutCtx, int(maxMessages)) + fetches := kafkaClient.PollRecords(timeoutCtx, maxMessages) iter := fetches.RecordIter() if b.logger != nil { b.logger.Infof("NumRecords: %d\n", fetches.NumRecords()) @@ -305,7 +327,7 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Contex } else { results = append(results, record.Value) } - if len(results) >= int(maxMessages) { + if len(results) >= maxMessages { break consumerLoop } } @@ -318,22 +340,47 @@ func (b *KafkaConsumeToolBuilder) buildKafkaConsumeHandler() func(context.Contex } } - return b.marshalResponse(results) + result, err := b.marshalResponse(results) + return result, nil, err } } +func buildKafkaConsumeInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[kafkaConsumeInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "topic", kafkaConsumeTopicDesc) + setSchemaDescription(schema, "group", kafkaConsumeGroupDesc) + setSchemaDescription(schema, "offset", kafkaConsumeOffsetDesc) + setSchemaDescription(schema, "max-messages", kafkaConsumeMaxMessagesDesc) + setSchemaDescription(schema, "timeout", kafkaConsumeTimeoutDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} + // Unified error handling and utility functions // handleError provides unified error handling -func (b *KafkaConsumeToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *KafkaConsumeToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *KafkaConsumeToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *KafkaConsumeToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } diff --git a/pkg/mcp/builders/kafka/consume_legacy.go b/pkg/mcp/builders/kafka/consume_legacy.go new file mode 100644 index 0000000..ab9ef5d --- /dev/null +++ b/pkg/mcp/builders/kafka/consume_legacy.go @@ -0,0 +1,340 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package kafka + +import ( + "context" + "encoding/json" + "fmt" + "time" + + "github.com/hamba/avro/v2" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" + "github.com/twmb/franz-go/pkg/kgo" + "github.com/twmb/franz-go/pkg/sr" +) + +// KafkaConsumeLegacyToolBuilder implements the legacy ToolBuilder interface for Kafka client consume operations. +// It provides functionality to build Kafka consumer tools. +// /nolint:revive +type KafkaConsumeLegacyToolBuilder struct { + *builders.BaseToolBuilder + logger *logrus.Logger +} + +// NewKafkaConsumeLegacyToolBuilder creates a new legacy Kafka consume tool builder instance. +func NewKafkaConsumeLegacyToolBuilder() *KafkaConsumeLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "kafka_consume", + Version: "1.0.0", + Description: "Kafka client consume tools", + Category: "kafka_client", + Tags: []string{"kafka", "client", "consume"}, + } + + features := []string{ + "kafka-client", + "all", + "all-kafka", + } + + return &KafkaConsumeLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Kafka consume tool list for the legacy server. +func (b *KafkaConsumeLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Extract logger from options if provided + if config.Options != nil { + if loggerOpt, ok := config.Options["logger"]; ok { + if logger, ok := loggerOpt.(*logrus.Logger); ok { + b.logger = logger + } + } + } + + // Build tools + tool := b.buildKafkaConsumeTool() + handler := b.buildKafkaConsumeHandler() + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildKafkaConsumeTool builds the Kafka consume MCP tool definition. +// Migrated from the original tool definition logic. +func (b *KafkaConsumeLegacyToolBuilder) buildKafkaConsumeTool() mcp.Tool { + toolDesc := "Consume messages from a Kafka topic.\n" + + "This tool allows you to read messages from Kafka topics, specifying various consumption parameters.\n\n" + + "Kafka Consumer Concepts:\n" + + "- Consumers read data from Kafka topics, which can be spread across multiple partitions\n" + + "- Consumer Groups enable multiple consumers to cooperatively process messages from the same topic\n" + + "- Offsets track the position of consumers in each partition, allowing resumption after failures\n" + + "- Partitions are independent ordered sequences of messages that enable parallel processing\n\n" + + "This tool provides a temporary consumer instance for diagnostic and testing purposes. " + + "It does not commit offsets back to Kafka unless the 'group' parameter is explicitly specified. Do not use this tool for Pulsar protocol operations. Use 'pulsar_client_consume' instead.\n\n" + + "Usage Examples:\n\n" + + "1. Basic consumption - Get 10 earliest messages from a topic:\n" + + " topic: \"my-topic\"\n" + + " max-messages: 10\n\n" + + "2. Consumer group - Join an existing consumer group and resume from committed offset:\n" + + " topic: \"my-topic\"\n" + + " offset: \"atstart\"\n" + + " max-messages: 20\n\n" + + "3. Consumer group - Join an existing consumer group and resume from committed offset:\n" + + " topic: \"my-topic\"\n" + + " group: \"my-consumer-group\"\n" + + " offset: \"atcommitted\"\n\n" + + "4. Time-limited consumption - Set a longer timeout for slow topics:\n" + + " topic: \"my-topic\"\n" + + " max-messages: 100\n" + + " timeout: 30\n\n" + + "This tool requires Kafka consumer permissions on the specified topic." + + return mcp.NewTool("kafka_client_consume", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The name of the Kafka topic to consume messages from. "+ + "Must be an existing topic that the user has read permissions for. "+ + "For partitioned topics, this will consume from all partitions unless a specific partition is specified."), + ), + mcp.WithString("group", + mcp.Description("The consumer group ID to use for consumption. "+ + "Optional. If provided, the consumer will join this consumer group and track offsets with Kafka. "+ + "If not provided, a random group ID will be generated, and offsets won't be committed back to Kafka. "+ + "Using a meaningful group ID is important when you want to resume consumption later or coordinate multiple consumers."), + ), + mcp.WithString("offset", + mcp.Description("The offset position to start consuming from. "+ + "Optional. Must be one of these values:\n"+ + "- 'atstart': Begin from the earliest available message in the topic/partition\n"+ + "- 'atend': Begin from the next message that arrives after the consumer starts\n"+ + "- 'atcommitted': Begin from the last committed offset (only works with specified 'group')\n"+ + "Default: 'atstart'"), + ), + mcp.WithNumber("max-messages", + mcp.Description("Maximum number of messages to consume in this request. "+ + "Optional. Limits the total number of messages returned, across all partitions if no specific partition is specified. "+ + "Higher values retrieve more data but may increase response time and size. "+ + "Default: 10"), + ), + mcp.WithNumber("timeout", + mcp.Description("Maximum time in seconds to wait for messages. "+ + "Optional. The consumer will wait up to this long to collect the requested number of messages. "+ + "If fewer than 'max-messages' are available within this time, the available messages are returned. "+ + "Longer timeouts are useful for low-volume topics or when consuming with 'atend'. "+ + "Default: 10 seconds"), + ), + ) +} + +// buildKafkaConsumeHandler builds the Kafka consume handler function. +// Migrated from the original handler logic. +func (b *KafkaConsumeLegacyToolBuilder) buildKafkaConsumeHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + opts := []kgo.Opt{} + // Get required parameters + topicName, err := request.RequireString("topic") + if err != nil { + return b.handleError("get topic name", err), nil + } + opts = append(opts, kgo.ConsumeTopics(topicName)) + + opts = append(opts, kgo.FetchIsolationLevel(kgo.ReadUncommitted())) + opts = append(opts, kgo.KeepRetryableFetchErrors()) + if b.logger != nil { + w := b.logger.Writer() + opts = append(opts, kgo.WithLogger(kgo.BasicLogger(w, kgo.LogLevelInfo, nil))) + } + maxMessages := request.GetFloat("max-messages", 10) + + timeoutSec := request.GetFloat("timeout", 10) + + group := request.GetString("group", "") + if group != "" { + opts = append(opts, kgo.ConsumerGroup(group)) + } + + offsetStr := request.GetString("offset", "atstart") + + var offset kgo.Offset + switch offsetStr { + case "atstart": + offset = kgo.NewOffset().AtStart() + case "atend": + offset = kgo.NewOffset().AtEnd() + case "atcommitted": + offset = kgo.NewOffset().AtCommitted() + default: + offset = kgo.NewOffset().AtStart() + } + opts = append(opts, kgo.ConsumeResetOffset(offset)) + if b.logger != nil { + b.logger.Infof("Consuming from topic: %s, group: %s, max-messages: %d, timeout: %d", topicName, group, int(maxMessages), int(timeoutSec)) + } + + // Get Kafka session from context + session := mcpCtx.GetKafkaSession(ctx) + if session == nil { + return b.handleError("get Kafka session not found in context", nil), nil + } + + // Create Kafka client using the session + kafkaClient, err := session.GetClient(opts...) + if err != nil { + return b.handleError("create Kafka client", err), nil + } + defer kafkaClient.Close() + + srClient, err := session.GetSchemaRegistryClient() + schemaReady := false + var serde sr.Serde + if err == nil && srClient != nil { + schemaReady = true + } + + // Set timeout + timeoutCtx, cancel := context.WithTimeout(ctx, time.Duration(timeoutSec)*time.Second) + defer cancel() + + if err = kafkaClient.Ping(timeoutCtx); err != nil { // check connectivity to cluster + return b.handleError("ping Kafka cluster", err), nil + } + + if schemaReady { + subjSchema, err := srClient.SchemaByVersion(timeoutCtx, topicName+"-value", -1) + if err != nil { + return b.handleError("get schema", err), nil + } + if b.logger != nil { + b.logger.Infof("Schema ID: %d", subjSchema.ID) + } + switch subjSchema.Type { + case sr.TypeAvro: + avroSchema, err := avro.Parse(subjSchema.Schema.Schema) + if err != nil { + return b.handleError("parse avro schema", err), nil + } + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(func(v any) ([]byte, error) { + return avro.Marshal(avroSchema, v) + }), + sr.DecodeFn(func(data []byte, v any) error { + return avro.Unmarshal(avroSchema, data, v) + }), + ) + case sr.TypeJSON: + serde.Register( + subjSchema.ID, + map[string]any{}, + sr.EncodeFn(json.Marshal), + sr.DecodeFn(json.Unmarshal), + ) + case sr.TypeProtobuf: + default: + // TODO: support other schema types + if b.logger != nil { + b.logger.Infof("Unsupported schema type: %s", subjSchema.Type) + } + schemaReady = false + } + } + + results := make([]any, 0) + consumerLoop: + for { + fetches := kafkaClient.PollRecords(timeoutCtx, int(maxMessages)) + iter := fetches.RecordIter() + if b.logger != nil { + b.logger.Infof("NumRecords: %d\n", fetches.NumRecords()) + } + + for _, fetchErr := range fetches.Errors() { + if b.logger != nil { + b.logger.Infof("error consuming from topic: topic=%s, partition=%d, err=%v\n", + fetchErr.Topic, fetchErr.Partition, fetchErr.Err) + } + break consumerLoop + } + + for !iter.Done() { + record := iter.Next() + if schemaReady { + var value map[string]any + err := serde.Decode(record.Value, &value) + if err != nil { + if b.logger != nil { + b.logger.Infof("Failed to decode value: %v", err) + } + results = append(results, record.Value) + } else { + results = append(results, value) + } + } else { + results = append(results, record.Value) + } + if len(results) >= int(maxMessages) { + break consumerLoop + } + } + } + + err = kafkaClient.CommitUncommittedOffsets(timeoutCtx) + if err != nil { + if err != context.Canceled && b.logger != nil { + b.logger.Infof("Failed to commit offsets: %v", err) + } + } + + return b.marshalResponse(results) + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling. +func (b *KafkaConsumeLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses. +func (b *KafkaConsumeLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/kafka/consume_test.go b/pkg/mcp/builders/kafka/consume_test.go index f6e4a3e..18323b1 100644 --- a/pkg/mcp/builders/kafka/consume_test.go +++ b/pkg/mcp/builders/kafka/consume_test.go @@ -18,6 +18,7 @@ import ( "context" "testing" + "github.com/google/jsonschema-go/jsonschema" "github.com/sirupsen/logrus" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" "github.com/stretchr/testify/assert" @@ -46,8 +47,8 @@ func TestKafkaConsumeToolBuilder(t *testing.T) { tools, err := builder.BuildTools(context.Background(), config) require.NoError(t, err) assert.Len(t, tools, 1) - assert.Equal(t, "kafka_client_consume", tools[0].Tool.Name) - assert.NotNil(t, tools[0].Handler) + assert.Equal(t, "kafka_client_consume", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) }) t.Run("BuildTools_WithLogger", func(t *testing.T) { @@ -95,3 +96,30 @@ func TestKafkaConsumeToolBuilder(t *testing.T) { assert.Error(t, err) }) } + +func TestKafkaConsumeToolSchema(t *testing.T) { + builder := NewKafkaConsumeToolBuilder() + tool, err := builder.buildKafkaConsumeTool() + require.NoError(t, err) + assert.Equal(t, "kafka_client_consume", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"topic"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "topic", + "group", + "offset", + "max-messages", + "timeout", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + topicSchema := schema.Properties["topic"] + require.NotNil(t, topicSchema) + assert.Equal(t, kafkaConsumeTopicDesc, topicSchema.Description) +} diff --git a/pkg/mcp/kafka_client_consume_tools.go b/pkg/mcp/kafka_client_consume_tools.go index d94def2..2fa6d3c 100644 --- a/pkg/mcp/kafka_client_consume_tools.go +++ b/pkg/mcp/kafka_client_consume_tools.go @@ -17,22 +17,18 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" - "github.com/sirupsen/logrus" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" ) // KafkaClientAddConsumeTools adds Kafka client consume tools to the MCP server -func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logrus.Logger, features []string) { +func KafkaClientAddConsumeTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := kafkabuilders.NewKafkaConsumeToolBuilder() config := builders.ToolBuildConfig{ - ReadOnly: false, + ReadOnly: readOnly, Features: features, - Options: map[string]interface{}{ - "logger": logrusLogger, - }, } tools, err := builder.BuildTools(context.Background(), config) @@ -43,6 +39,6 @@ func KafkaClientAddConsumeTools(s *server.MCPServer, _ bool, logrusLogger *logru // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/kafka_client_consume_tools_legacy.go b/pkg/mcp/kafka_client_consume_tools_legacy.go new file mode 100644 index 0000000..85cf368 --- /dev/null +++ b/pkg/mcp/kafka_client_consume_tools_legacy.go @@ -0,0 +1,45 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/sirupsen/logrus" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + kafkabuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/kafka" +) + +// KafkaClientAddConsumeToolsLegacy adds Kafka client consume tools to the legacy MCP server. +func KafkaClientAddConsumeToolsLegacy(s *server.MCPServer, readOnly bool, logrusLogger *logrus.Logger, features []string) { + builder := kafkabuilders.NewKafkaConsumeLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + Options: map[string]interface{}{ + "logger": logrusLogger, + }, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From abd19b43e970956e6f530a01e98b722c8ca35afc Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 09:50:40 +0800 Subject: [PATCH 55/85] feat: migrate pulsar admin topic tool to go-sdk Why: align Pulsar admin topic tooling with the go-sdk handler and schema pipeline while preserving legacy server support. --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/topic.go | 660 ++++++++++------- pkg/mcp/builders/pulsar/topic_legacy.go | 793 +++++++++++++++++++++ pkg/mcp/builders/pulsar/topic_test.go | 151 ++++ pkg/mcp/pulsar_admin_topic_tools.go | 20 +- pkg/mcp/pulsar_admin_topic_tools_legacy.go | 41 ++ 6 files changed, 1400 insertions(+), 267 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/topic_legacy.go create mode 100644 pkg/mcp/builders/pulsar/topic_test.go create mode 100644 pkg/mcp/pulsar_admin_topic_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 7ca38e5..5edfcca 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -126,7 +126,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddSchemasTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSubscriptionTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTenantTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddTopicTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSinksTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSourcesTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/topic.go b/pkg/mcp/builders/pulsar/topic.go index 90430e1..cb36fb3 100644 --- a/pkg/mcp/builders/pulsar/topic.go +++ b/pkg/mcp/builders/pulsar/topic.go @@ -18,17 +18,84 @@ import ( "context" "encoding/json" "fmt" + "reflect" "slices" "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminTopicInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Topic *string `json:"topic,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Partitions *int `json:"partitions,omitempty"` + Force bool `json:"force,omitempty"` + NonPartitioned bool `json:"non-partitioned,omitempty"` + Partitioned bool `json:"partitioned,omitempty"` + PerPartition bool `json:"per-partition,omitempty"` + Config *string `json:"config,omitempty"` + MessageID *string `json:"messageId,omitempty"` +} + +const ( + pulsarAdminTopicResourceDesc = "Resource to operate on. Available resources:\n" + + "- topic: A Pulsar topic\n" + + "- topics: Multiple topics within a namespace" + pulsarAdminTopicOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all topics in a namespace\n" + + "- get: Get metadata for a topic\n" + + "- create: Create a new topic with optional partitions\n" + + "- delete: Delete a topic\n" + + "- stats: Get stats for a topic\n" + + "- lookup: Look up the broker serving a topic\n" + + "- internal-stats: Get internal stats for a topic\n" + + "- internal-info: Get internal info for a topic\n" + + "- bundle-range: Get the bundle range of a topic\n" + + "- last-message-id: Get the last message ID of a topic\n" + + "- status: Get the status of a topic\n" + + "- unload: Unload a topic\n" + + "- terminate: Terminate a topic\n" + + "- compact: Trigger compaction on a topic\n" + + "- update: Update a topic partitions\n" + + "- offload: Offload data from a topic to long-term storage\n" + + "- offload-status: Check the status of data offloading for a topic" + pulsarAdminTopicTopicDesc = "The fully qualified topic name (format: [persistent|non-persistent]://tenant/namespace/topic). " + + "Required for all operations except 'list'. " + + "For partitioned topics, reference the base topic name without the partition suffix. " + + "To operate on a specific partition, append -partition-N to the topic name." + pulsarAdminTopicNamespaceDesc = "The namespace name in the format 'tenant/namespace'. " + + "Required for the 'list' operation. " + + "A namespace is a logical grouping of topics within a tenant." + pulsarAdminTopicPartitionsDesc = "The number of partitions for the topic. Required for 'create' and 'update' operations. " + + "Set to 0 for a non-partitioned topic. " + + "Partitioned topics provide higher throughput by dividing message traffic across multiple brokers. " + + "Each partition is an independent unit with its own retention and cursor positions." + pulsarAdminTopicForceDesc = "Force operation even if it disrupts producers or consumers. Optional for 'delete' operation. " + + "When true, all producers and consumers will be forcefully disconnected. " + + "Use with caution as it can interrupt active message processing." + pulsarAdminTopicNonPartitionedDesc = "Operate on a non-partitioned topic. Optional for 'delete' operation. " + + "When true and operating on a partitioned topic name, only deletes the non-partitioned topic " + + "with the same name, if it exists." + pulsarAdminTopicPartitionedDesc = "Get stats for a partitioned topic. Optional for 'stats' operation. " + + "It has to be true if the topic is partitioned. Leave it empty or false for non-partitioned topic." + pulsarAdminTopicPerPartitionDesc = "Include per-partition stats. Optional for 'stats' operation. " + + "When true, returns statistics for each partition separately. " + + "Requires 'partitioned' parameter to be true." + pulsarAdminTopicConfigDesc = "JSON configuration for the topic. Required for 'update' operation. " + + "Set various policies like retention, compaction, deduplication, etc. " + + "Use a JSON object format, e.g., '{\"deduplicationEnabled\": true, \"replication_clusters\": [\"us-west\", \"us-east\"]}'" + pulsarAdminTopicMessageIDDesc = "Message ID for operations that require a position. Required for 'offload' operation. " + + "Format is 'ledgerId:entryId' representing a position in the topic's message log. " + + "For offload operations, specifies the message up to which data should be moved to long-term storage." +) + // PulsarAdminTopicToolBuilder implements the ToolBuilder interface for Pulsar Admin Topic tools // It provides functionality to build Pulsar topic management tools // /nolint:revive @@ -60,7 +127,7 @@ func NewPulsarAdminTopicToolBuilder() *PulsarAdminTopicToolBuilder { // BuildTools builds the Pulsar Admin Topic tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminTopicToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminTopicToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -72,11 +139,14 @@ func (b *PulsarAdminTopicToolBuilder) BuildTools(_ context.Context, config build } // Build tools - tool := b.buildTopicTool() + tool, err := b.buildTopicTool() + if err != nil { + return nil, err + } handler := b.buildTopicHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminTopicInput, any]{ Tool: tool, Handler: handler, }, @@ -85,7 +155,12 @@ func (b *PulsarAdminTopicToolBuilder) BuildTools(_ context.Context, config build // buildTopicTool builds the Pulsar Admin Topic MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminTopicToolBuilder) buildTopicTool() mcp.Tool { +func (b *PulsarAdminTopicToolBuilder) buildTopicTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminTopicInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar topics. " + "Topics are the core messaging entities in Pulsar that store and transmit messages. " + "Pulsar supports two types of topics: persistent (durable storage with guaranteed delivery) " + @@ -98,121 +173,37 @@ func (b *PulsarAdminTopicToolBuilder) buildTopicTool() mcp.Tool { "Do not use this tool for Kafka protocol operations. Use 'kafka_admin_topics' instead." + "Most operations require namespace admin permissions." - resourceDesc := "Resource to operate on. Available resources:\n" + - "- topic: A Pulsar topic\n" + - "- topics: Multiple topics within a namespace" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all topics in a namespace\n" + - "- get: Get metadata for a topic\n" + - "- create: Create a new topic with optional partitions\n" + - "- delete: Delete a topic\n" + - "- stats: Get stats for a topic\n" + - "- lookup: Look up the broker serving a topic\n" + - "- internal-stats: Get internal stats for a topic\n" + - "- internal-info: Get internal info for a topic\n" + - "- bundle-range: Get the bundle range of a topic\n" + - "- last-message-id: Get the last message ID of a topic\n" + - "- status: Get the status of a topic\n" + - "- unload: Unload a topic\n" + - "- terminate: Terminate a topic\n" + - "- compact: Trigger compaction on a topic\n" + - "- update: Update a topic partitions\n" + - "- offload: Offload data from a topic to long-term storage\n" + - "- offload-status: Check the status of data offloading for a topic" - - return mcp.NewTool("pulsar_admin_topic", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", - mcp.Description("The fully qualified topic name (format: [persistent|non-persistent]://tenant/namespace/topic). "+ - "Required for all operations except 'list'. "+ - "For partitioned topics, reference the base topic name without the partition suffix. "+ - "To operate on a specific partition, append -partition-N to the topic name."), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name in the format 'tenant/namespace'. "+ - "Required for the 'list' operation. "+ - "A namespace is a logical grouping of topics within a tenant."), - ), - mcp.WithNumber("partitions", - mcp.Description("The number of partitions for the topic. Required for 'create' and 'update' operations. "+ - "Set to 0 for a non-partitioned topic. "+ - "Partitioned topics provide higher throughput by dividing message traffic across multiple brokers. "+ - "Each partition is an independent unit with its own retention and cursor positions."), - ), - mcp.WithBoolean("force", - mcp.Description("Force operation even if it disrupts producers or consumers. Optional for 'delete' operation. "+ - "When true, all producers and consumers will be forcefully disconnected. "+ - "Use with caution as it can interrupt active message processing."), - ), - mcp.WithBoolean("non-partitioned", - mcp.Description("Operate on a non-partitioned topic. Optional for 'delete' operation. "+ - "When true and operating on a partitioned topic name, only deletes the non-partitioned topic "+ - "with the same name, if it exists."), - ), - mcp.WithBoolean("partitioned", - mcp.Description("Get stats for a partitioned topic. Optional for 'stats' operation. "+ - "It has to be true if the topic is partitioned. Leave it empty or false for non-partitioned topic."), - ), - mcp.WithBoolean("per-partition", - mcp.Description("Include per-partition stats. Optional for 'stats' operation. "+ - "When true, returns statistics for each partition separately. "+ - "Requires 'partitioned' parameter to be true."), - ), - mcp.WithString("config", - mcp.Description("JSON configuration for the topic. Required for 'update' operation. "+ - "Set various policies like retention, compaction, deduplication, etc. "+ - "Use a JSON object format, e.g., '{\"deduplicationEnabled\": true, \"replication_clusters\": [\"us-west\", \"us-east\"]}'"), - ), - mcp.WithString("messageId", - mcp.Description("Message ID for operations that require a position. Required for 'offload' operation. "+ - "Format is 'ledgerId:entryId' representing a position in the topic's message log. "+ - "For offload operations, specifies the message up to which data should be moved to long-term storage."), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_topic", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildTopicHandler builds the Pulsar Admin Topic handler function // Migrated from the original handler logic -func (b *PulsarAdminTopicToolBuilder) buildTopicHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - +func (b *PulsarAdminTopicToolBuilder) buildTopicHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminTopicInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminTopicInput) (*sdk.CallToolResult, any, error) { // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) + resource := strings.ToLower(input.Resource) + operation := strings.ToLower(input.Operation) // Validate write operations in read-only mode if readOnly && (operation == "create" || operation == "delete" || operation == "unload" || operation == "terminate" || operation == "compact" || operation == "update" || operation == "offload") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Create the admin client admin, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, b.handleError("get admin client", err) } // Dispatch based on resource and operation @@ -220,88 +211,155 @@ func (b *PulsarAdminTopicToolBuilder) buildTopicHandler(readOnly bool) func(cont case "topic": switch operation { case "get": - return b.handleTopicGet(admin, request) + result, err := b.handleTopicGet(admin, input) + return result, nil, err case "create": - return b.handleTopicCreate(admin, request) + result, err := b.handleTopicCreate(admin, input) + return result, nil, err case "delete": - return b.handleTopicDelete(admin, request) + result, err := b.handleTopicDelete(admin, input) + return result, nil, err case "stats": - return b.handleTopicStats(admin, request) + result, err := b.handleTopicStats(admin, input) + return result, nil, err case "lookup": - return b.handleTopicLookup(admin, request) + result, err := b.handleTopicLookup(admin, input) + return result, nil, err case "internal-stats": - return b.handleTopicInternalStats(admin, request) + result, err := b.handleTopicInternalStats(admin, input) + return result, nil, err case "internal-info": - return b.handleTopicInternalInfo(admin, request) + result, err := b.handleTopicInternalInfo(admin, input) + return result, nil, err case "bundle-range": - return b.handleTopicBundleRange(admin, request) + result, err := b.handleTopicBundleRange(admin, input) + return result, nil, err case "last-message-id": - return b.handleTopicLastMessageID(admin, request) + result, err := b.handleTopicLastMessageID(admin, input) + return result, nil, err case "status": - return b.handleTopicStatus(admin, request) + result, err := b.handleTopicStatus(admin, input) + return result, nil, err case "unload": - return b.handleTopicUnload(admin, request) + result, err := b.handleTopicUnload(admin, input) + return result, nil, err case "terminate": - return b.handleTopicTerminate(admin, request) + result, err := b.handleTopicTerminate(admin, input) + return result, nil, err case "compact": - return b.handleTopicCompact(admin, request) + result, err := b.handleTopicCompact(admin, input) + return result, nil, err case "update": - return b.handleTopicUpdate(admin, request) + result, err := b.handleTopicUpdate(admin, input) + return result, nil, err case "offload": - return b.handleTopicOffload(admin, request) + result, err := b.handleTopicOffload(admin, input) + return result, nil, err case "offload-status": - return b.handleTopicOffloadStatus(admin, request) + result, err := b.handleTopicOffloadStatus(admin, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown topic operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unknown topic operation: %s", operation) } case "topics": switch operation { case "list": - return b.handleTopicsList(admin, request) + result, err := b.handleTopicsList(admin, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown topics operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unknown topics operation: %s", operation) } default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown resource: %s", resource)), nil + return nil, nil, fmt.Errorf("unknown resource: %s", resource) } } } +func buildPulsarAdminTopicInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminTopicInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "resource", pulsarAdminTopicResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminTopicOperationDesc) + setSchemaDescription(schema, "topic", pulsarAdminTopicTopicDesc) + setSchemaDescription(schema, "namespace", pulsarAdminTopicNamespaceDesc) + setSchemaDescription(schema, "partitions", pulsarAdminTopicPartitionsDesc) + setSchemaDescription(schema, "force", pulsarAdminTopicForceDesc) + setSchemaDescription(schema, "non-partitioned", pulsarAdminTopicNonPartitionedDesc) + setSchemaDescription(schema, "partitioned", pulsarAdminTopicPartitionedDesc) + setSchemaDescription(schema, "per-partition", pulsarAdminTopicPerPartitionDesc) + setSchemaDescription(schema, "config", pulsarAdminTopicConfigDesc) + setSchemaDescription(schema, "messageId", pulsarAdminTopicMessageIDDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} + // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarAdminTopicToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminTopicToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminTopicToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) + } + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil +} + +func textResult(message string) *sdk.CallToolResult { + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: message}}, + } +} + +func requireString(value *string, key string) (string, error) { + if value == nil { + return "", fmt.Errorf("required argument %q not found", key) + } + return *value, nil +} + +func requireInt(value *int, key string) (int, error) { + if value == nil { + return 0, fmt.Errorf("required argument %q not found", key) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return *value, nil } // handleTopicsList lists all existing topics under the specified namespace -func (b *PulsarAdminTopicToolBuilder) handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicsList(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - namespace, err := request.RequireString("namespace") + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for topics.list: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for topics.list: %v", err) } // Get namespace name namespaceName, err := utils.GetNamespaceName(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + return nil, fmt.Errorf("invalid namespace name '%s': %v", namespace, err) } // List topics partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", - namespace, err)), nil + return nil, fmt.Errorf("failed to list topics in namespace '%s': %v", + namespace, err) } // Format the output @@ -317,57 +375,57 @@ func (b *PulsarAdminTopicToolBuilder) handleTopicsList(admin cmdutils.Client, re } // handleTopicGet gets the metadata of an existing topic -func (b *PulsarAdminTopicToolBuilder) handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicGet(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.get: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.get: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get topic metadata metadata, err := admin.Topics().GetMetadata(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get metadata for topic '%s': %v", - topic, err)), nil + return nil, fmt.Errorf("failed to get metadata for topic '%s': %v", + topic, err) } return b.marshalResponse(metadata) } // handleTopicStats gets the stats for an existing topic -func (b *PulsarAdminTopicToolBuilder) handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicStats(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.stats: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.stats: %v", err) } // Get optional parameters - partitioned := request.GetBool("partitioned", false) - perPartition := request.GetBool("per-partition", false) + partitioned := input.Partitioned + perPartition := input.PerPartition // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } namespaceName, err := utils.GetNamespaceName(topicName.GetTenant() + "/" + topicName.GetNamespace()) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + return nil, fmt.Errorf("invalid namespace name: %v", err) } // List topics to determine if this topic is partitioned partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", - namespaceName, err)), nil + return nil, fmt.Errorf("failed to list topics in namespace '%s': %v", + namespaceName, err) } if slices.Contains(partitionedTopics, topicName.String()) { @@ -382,16 +440,16 @@ func (b *PulsarAdminTopicToolBuilder) handleTopicStats(admin cmdutils.Client, re // Get partitioned topic stats stats, err := admin.Topics().GetPartitionedStats(*topicName, perPartition) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for partitioned topic '%s': %v", - topic, err)), nil + return nil, fmt.Errorf("failed to get stats for partitioned topic '%s': %v", + topic, err) } data = stats } else { // Get topic stats stats, err := admin.Topics().GetStats(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for topic '%s': %v", - topic, err)), nil + return nil, fmt.Errorf("failed to get stats for topic '%s': %v", + topic, err) } data = stats } @@ -400,90 +458,90 @@ func (b *PulsarAdminTopicToolBuilder) handleTopicStats(admin cmdutils.Client, re } // handleTopicLookup looks up the owner broker of a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicLookup(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.lookup: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.lookup: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Lookup topic lookup, err := admin.Topics().Lookup(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to lookup topic '%s': %v", - topic, err)), nil + return nil, fmt.Errorf("failed to lookup topic '%s': %v", + topic, err) } return b.marshalResponse(lookup) } // handleTopicCreate creates a topic with the specified number of partitions -func (b *PulsarAdminTopicToolBuilder) handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicCreate(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.create: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.create: %v", err) } - partitions, err := request.RequireFloat("partitions") + partitions, err := requireInt(input.Partitions, "partitions") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.create: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'partitions' for topic.create: %v", err) } // Validate partitions if partitions < 0 { - return mcp.NewToolResultError("Invalid partitions number: must be non-negative. Use 0 for a non-partitioned topic."), nil + return nil, fmt.Errorf("invalid partitions number: must be non-negative; use 0 for a non-partitioned topic") } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Create topic - err = admin.Topics().Create(*topicName, int(partitions)) + err = admin.Topics().Create(*topicName, partitions) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create topic '%s' with %d partitions: %v", - topic, int(partitions), err)), nil + return nil, fmt.Errorf("failed to create topic '%s' with %d partitions: %v", + topic, partitions, err) } - if int(partitions) == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Successfully created non-partitioned topic '%s'", + if partitions == 0 { + return textResult(fmt.Sprintf("Successfully created non-partitioned topic '%s'", topicName.String())), nil } - return mcp.NewToolResultText(fmt.Sprintf("Successfully created topic '%s' with %d partitions", - topicName.String(), int(partitions))), nil + return textResult(fmt.Sprintf("Successfully created topic '%s' with %d partitions", + topicName.String(), partitions)), nil } // handleTopicDelete deletes a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicDelete(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.delete: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.delete: %v", err) } // Get optional parameters - force := request.GetBool("force", false) - nonPartitioned := request.GetBool("non-partitioned", false) + force := input.Force + nonPartitioned := input.NonPartitioned // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Delete topic err = admin.Topics().Delete(*topicName, force, nonPartitioned) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to delete topic '%s': %v", topic, err) } forceStr := "" @@ -496,195 +554,195 @@ func (b *PulsarAdminTopicToolBuilder) handleTopicDelete(admin cmdutils.Client, r nonPartitionedStr = " (non-partitioned)" } - return mcp.NewToolResultText(fmt.Sprintf("Successfully deleted topic '%s'%s%s", + return textResult(fmt.Sprintf("Successfully deleted topic '%s'%s%s", topicName.String(), forceStr, nonPartitionedStr)), nil } // handleTopicUnload unloads a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicUnload(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.unload: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.unload: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Unload topic err = admin.Topics().Unload(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to unload topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to unload topic '%s': %v", topic, err) } - return mcp.NewToolResultText(fmt.Sprintf("Successfully unloaded topic '%s'", topicName.String())), nil + return textResult(fmt.Sprintf("Successfully unloaded topic '%s'", topicName.String())), nil } // handleTopicTerminate terminates a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicTerminate(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.terminate: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.terminate: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Terminate topic messageID, err := admin.Topics().Terminate(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to terminate topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to terminate topic '%s': %v", topic, err) } // Convert message ID to string msgIDStr := fmt.Sprintf("%d:%d", messageID.LedgerID, messageID.EntryID) - return mcp.NewToolResultText(fmt.Sprintf("Successfully terminated topic '%s' at message %s. "+ + return textResult(fmt.Sprintf("Successfully terminated topic '%s' at message %s. "+ "No more messages can be published to this topic.", topicName.String(), msgIDStr)), nil } // handleTopicCompact triggers compaction on a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicCompact(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.compact: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.compact: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Compact topic err = admin.Topics().Compact(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger compaction for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to trigger compaction for topic '%s': %v", topic, err) } - return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered compaction for topic '%s'. "+ + return textResult(fmt.Sprintf("Successfully triggered compaction for topic '%s'. "+ "Run 'topic.status' to check compaction status.", topicName.String())), nil } // handleTopicInternalStats gets the internal stats for a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicInternalStats(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-stats: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.internal-stats: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get internal stats stats, err := admin.Topics().GetInternalStats(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal stats for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to get internal stats for topic '%s': %v", topic, err) } return b.marshalResponse(stats) } // handleTopicInternalInfo gets the internal info for a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicInternalInfo(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-info: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.internal-info: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get internal info info, err := admin.Topics().GetInternalInfo(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal info for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to get internal info for topic '%s': %v", topic, err) } return b.marshalResponse(info) } // handleTopicBundleRange gets the bundle range of a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicBundleRange(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.bundle-range: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.bundle-range: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get bundle range bundle, err := admin.Topics().GetBundleRange(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle range for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to get bundle range for topic '%s': %v", topic, err) } - return mcp.NewToolResultText(fmt.Sprintf("Bundle range for topic '%s': %s", topicName.String(), bundle)), nil + return textResult(fmt.Sprintf("Bundle range for topic '%s': %s", topicName.String(), bundle)), nil } // handleTopicLastMessageID gets the last message ID of a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicLastMessageID(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.last-message-id: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.last-message-id: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get last message ID messageID, err := admin.Topics().GetLastMessageID(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get last message ID for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to get last message ID for topic '%s': %v", topic, err) } return b.marshalResponse(messageID) } // handleTopicStatus gets the status of a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicStatus(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.status: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.status: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get topic metadata for status check metadata, err := admin.Topics().GetMetadata(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to get status for topic '%s': %v", topic, err) } // Create status object with available information @@ -693,64 +751,64 @@ func (b *PulsarAdminTopicToolBuilder) handleTopicStatus(admin cmdutils.Client, r Active bool `json:"active"` }{ Metadata: metadata, - Active: true, // If metadata retrieval succeeded, topic is active + Active: true, } return b.marshalResponse(status) } // handleTopicUpdate updates a topic configuration -func (b *PulsarAdminTopicToolBuilder) handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicUpdate(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.update: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.update: %v", err) } - partitions, err := request.RequireFloat("partitions") + partitions, err := requireInt(input.Partitions, "partitions") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.update: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'partitions' for topic.update: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } - err = admin.Topics().Update(*topicName, int(partitions)) + err = admin.Topics().Update(*topicName, partitions) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to update topic '%s': %v", topic, err) } - return mcp.NewToolResultText(fmt.Sprintf("Successfully updated topic '%s' partitions to %d", - topicName.String(), int(partitions))), nil + return textResult(fmt.Sprintf("Successfully updated topic '%s' partitions to %d", + topicName.String(), partitions)), nil } // handleTopicOffload offloads data from a topic to long-term storage -func (b *PulsarAdminTopicToolBuilder) handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicOffload(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.offload: %v", err) } - messageIDStr, err := request.RequireString("messageId") + messageIDStr, err := requireString(input.MessageID, "messageId") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for topic.offload: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'messageId' for topic.offload: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Parse message ID from format "ledgerId:entryId" var ledgerID, entryID int64 if _, err := fmt.Sscanf(messageIDStr, "%d:%d", &ledgerID, &entryID); err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid message ID format (expected 'ledgerId:entryId'): %v. "+ - "Valid examples: '123:456'", err)), nil + return nil, fmt.Errorf("invalid message ID format (expected 'ledgerId:entryId'): %v. "+ + "Valid examples: '123:456'", err) } // Create MessageID object @@ -762,33 +820,133 @@ func (b *PulsarAdminTopicToolBuilder) handleTopicOffload(admin cmdutils.Client, // Offload topic err = admin.Topics().Offload(*topicName, messageID) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger offload for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to trigger offload for topic '%s': %v", topic, err) } - return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered offload for topic '%s' up to message %s. "+ + return textResult(fmt.Sprintf("Successfully triggered offload for topic '%s' up to message %s. "+ "Use 'topic.offload-status' to check the offload progress.", topicName.String(), messageIDStr)), nil } // handleTopicOffloadStatus checks the status of data offloading for a topic -func (b *PulsarAdminTopicToolBuilder) handleTopicOffloadStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicToolBuilder) handleTopicOffloadStatus(admin cmdutils.Client, input pulsarAdminTopicInput) (*sdk.CallToolResult, error) { // Get required parameters - topic, err := request.RequireString("topic") + topic, err := requireString(input.Topic, "topic") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload-status: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'topic' for topic.offload-status: %v", err) } // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get offload status status, err := admin.Topics().OffloadStatus(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get offload status for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to get offload status for topic '%s': %v", topic, err) } return b.marshalResponse(status) } + +func setSchemaDescription(schema *jsonschema.Schema, name, desc string) { + if schema == nil { + return + } + prop, ok := schema.Properties[name] + if !ok || prop == nil { + return + } + prop.Description = desc +} + +func normalizeAdditionalProperties(schema *jsonschema.Schema) { + visited := map[*jsonschema.Schema]bool{} + var walk func(*jsonschema.Schema) + walk = func(s *jsonschema.Schema) { + if s == nil || visited[s] { + return + } + visited[s] = true + + if s.Type == "object" && s.Properties != nil && isFalseSchema(s.AdditionalProperties) { + s.AdditionalProperties = nil + } + + for _, prop := range s.Properties { + walk(prop) + } + for _, prop := range s.PatternProperties { + walk(prop) + } + for _, def := range s.Defs { + walk(def) + } + for _, def := range s.Definitions { + walk(def) + } + if s.AdditionalProperties != nil && !isFalseSchema(s.AdditionalProperties) { + walk(s.AdditionalProperties) + } + if s.Items != nil { + walk(s.Items) + } + for _, item := range s.PrefixItems { + walk(item) + } + if s.AdditionalItems != nil { + walk(s.AdditionalItems) + } + if s.UnevaluatedItems != nil { + walk(s.UnevaluatedItems) + } + if s.UnevaluatedProperties != nil { + walk(s.UnevaluatedProperties) + } + if s.PropertyNames != nil { + walk(s.PropertyNames) + } + if s.Contains != nil { + walk(s.Contains) + } + for _, subschema := range s.AllOf { + walk(subschema) + } + for _, subschema := range s.AnyOf { + walk(subschema) + } + for _, subschema := range s.OneOf { + walk(subschema) + } + if s.Not != nil { + walk(s.Not) + } + if s.If != nil { + walk(s.If) + } + if s.Then != nil { + walk(s.Then) + } + if s.Else != nil { + walk(s.Else) + } + for _, subschema := range s.DependentSchemas { + walk(subschema) + } + } + walk(schema) +} + +func isFalseSchema(schema *jsonschema.Schema) bool { + if schema == nil || schema.Not == nil { + return false + } + if !reflect.ValueOf(*schema.Not).IsZero() { + return false + } + clone := *schema + clone.Not = nil + return reflect.ValueOf(clone).IsZero() +} diff --git a/pkg/mcp/builders/pulsar/topic_legacy.go b/pkg/mcp/builders/pulsar/topic_legacy.go new file mode 100644 index 0000000..4e8433f --- /dev/null +++ b/pkg/mcp/builders/pulsar/topic_legacy.go @@ -0,0 +1,793 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "slices" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminTopicLegacyToolBuilder implements the ToolBuilder interface for Pulsar Admin Topic tools. +// It provides functionality to build Pulsar topic management tools for the legacy server. +// /nolint:revive +type PulsarAdminTopicLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminTopicLegacyToolBuilder creates a new Pulsar Admin Topic legacy tool builder instance. +func NewPulsarAdminTopicLegacyToolBuilder() *PulsarAdminTopicLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_topic", + Version: "1.0.0", + Description: "Pulsar Admin topic management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "topic", "admin"}, + } + + features := []string{ + "pulsar-admin-topics", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminTopicLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Topic tool list for the legacy server. +func (b *PulsarAdminTopicLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildTopicTool() + handler := b.buildTopicHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildTopicTool builds the Pulsar Admin Topic MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminTopicLegacyToolBuilder) buildTopicTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar topics. " + + "Topics are the core messaging entities in Pulsar that store and transmit messages. " + + "Pulsar supports two types of topics: persistent (durable storage with guaranteed delivery) " + + "and non-persistent (in-memory with at-most-once delivery). " + + "Topics can be partitioned for parallel processing and higher throughput, where each partition " + + "functions as an independent topic with its own message log. " + + "Topics follow a hierarchical naming structure: persistent://tenant/namespace/topic. " + + "This tool supports various operations on topics including creation, deletion, lookup, compaction, " + + "offloading, and retrieving statistics. " + + "Do not use this tool for Kafka protocol operations. Use 'kafka_admin_topics' instead." + + "Most operations require namespace admin permissions." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- topic: A Pulsar topic\n" + + "- topics: Multiple topics within a namespace" + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all topics in a namespace\n" + + "- get: Get metadata for a topic\n" + + "- create: Create a new topic with optional partitions\n" + + "- delete: Delete a topic\n" + + "- stats: Get stats for a topic\n" + + "- lookup: Look up the broker serving a topic\n" + + "- internal-stats: Get internal stats for a topic\n" + + "- internal-info: Get internal info for a topic\n" + + "- bundle-range: Get the bundle range of a topic\n" + + "- last-message-id: Get the last message ID of a topic\n" + + "- status: Get the status of a topic\n" + + "- unload: Unload a topic\n" + + "- terminate: Terminate a topic\n" + + "- compact: Trigger compaction on a topic\n" + + "- update: Update a topic partitions\n" + + "- offload: Offload data from a topic to long-term storage\n" + + "- offload-status: Check the status of data offloading for a topic" + + return mcp.NewTool("pulsar_admin_topic", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", + mcp.Description("The fully qualified topic name (format: [persistent|non-persistent]://tenant/namespace/topic). "+ + "Required for all operations except 'list'. "+ + "For partitioned topics, reference the base topic name without the partition suffix. "+ + "To operate on a specific partition, append -partition-N to the topic name."), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in the format 'tenant/namespace'. "+ + "Required for the 'list' operation. "+ + "A namespace is a logical grouping of topics within a tenant."), + ), + mcp.WithNumber("partitions", + mcp.Description("The number of partitions for the topic. Required for 'create' and 'update' operations. "+ + "Set to 0 for a non-partitioned topic. "+ + "Partitioned topics provide higher throughput by dividing message traffic across multiple brokers. "+ + "Each partition is an independent unit with its own retention and cursor positions."), + ), + mcp.WithBoolean("force", + mcp.Description("Force operation even if it disrupts producers or consumers. Optional for 'delete' operation. "+ + "When true, all producers and consumers will be forcefully disconnected. "+ + "Use with caution as it can interrupt active message processing."), + ), + mcp.WithBoolean("non-partitioned", + mcp.Description("Operate on a non-partitioned topic. Optional for 'delete' operation. "+ + "When true and operating on a partitioned topic name, only deletes the non-partitioned topic "+ + "with the same name, if it exists."), + ), + mcp.WithBoolean("partitioned", + mcp.Description("Get stats for a partitioned topic. Optional for 'stats' operation. "+ + "It has to be true if the topic is partitioned. Leave it empty or false for non-partitioned topic."), + ), + mcp.WithBoolean("per-partition", + mcp.Description("Include per-partition stats. Optional for 'stats' operation. "+ + "When true, returns statistics for each partition separately. "+ + "Requires 'partitioned' parameter to be true."), + ), + mcp.WithString("config", + mcp.Description("JSON configuration for the topic. Required for 'update' operation. "+ + "Set various policies like retention, compaction, deduplication, etc. "+ + "Use a JSON object format, e.g., '{\"deduplicationEnabled\": true, \"replication_clusters\": [\"us-west\", \"us-east\"]}'"), + ), + mcp.WithString("messageId", + mcp.Description("Message ID for operations that require a position. Required for 'offload' operation. "+ + "Format is 'ledgerId:entryId' representing a position in the topic's message log. "+ + "For offload operations, specifies the message up to which data should be moved to long-term storage."), + ), + ) +} + +// buildTopicHandler builds the Pulsar Admin Topic handler function +// Migrated from the original handler logic +func (b *PulsarAdminTopicLegacyToolBuilder) buildTopicHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "delete" || operation == "unload" || + operation == "terminate" || operation == "compact" || operation == "update" || operation == "offload") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on resource and operation + switch resource { + case "topic": + switch operation { + case "get": + return b.handleTopicGet(admin, request) + case "create": + return b.handleTopicCreate(admin, request) + case "delete": + return b.handleTopicDelete(admin, request) + case "stats": + return b.handleTopicStats(admin, request) + case "lookup": + return b.handleTopicLookup(admin, request) + case "internal-stats": + return b.handleTopicInternalStats(admin, request) + case "internal-info": + return b.handleTopicInternalInfo(admin, request) + case "bundle-range": + return b.handleTopicBundleRange(admin, request) + case "last-message-id": + return b.handleTopicLastMessageID(admin, request) + case "status": + return b.handleTopicStatus(admin, request) + case "unload": + return b.handleTopicUnload(admin, request) + case "terminate": + return b.handleTopicTerminate(admin, request) + case "compact": + return b.handleTopicCompact(admin, request) + case "update": + return b.handleTopicUpdate(admin, request) + case "offload": + return b.handleTopicOffload(admin, request) + case "offload-status": + return b.handleTopicOffloadStatus(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown topic operation: %s", operation)), nil + } + case "topics": + switch operation { + case "list": + return b.handleTopicsList(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown topics operation: %s", operation)), nil + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown resource: %s", resource)), nil + } + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminTopicLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminTopicLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTopicsList lists all existing topics under the specified namespace +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicsList(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for topics.list: %v", err)), nil + } + + // Get namespace name + namespaceName, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + } + + // List topics + partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", + namespace, err)), nil + } + + // Format the output + result := struct { + PartitionedTopics []string `json:"partitionedTopics"` + NonPartitionedTopics []string `json:"nonPartitionedTopics"` + }{ + PartitionedTopics: partitionedTopics, + NonPartitionedTopics: nonPartitionedTopics, + } + + return b.marshalResponse(result) +} + +// handleTopicGet gets the metadata of an existing topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.get: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get topic metadata + metadata, err := admin.Topics().GetMetadata(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get metadata for topic '%s': %v", + topic, err)), nil + } + + return b.marshalResponse(metadata) +} + +// handleTopicStats gets the stats for an existing topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.stats: %v", err)), nil + } + + // Get optional parameters + partitioned := request.GetBool("partitioned", false) + perPartition := request.GetBool("per-partition", false) + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + namespaceName, err := utils.GetNamespaceName(topicName.GetTenant() + "/" + topicName.GetNamespace()) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // List topics to determine if this topic is partitioned + partitionedTopics, nonPartitionedTopics, err := admin.Topics().List(*namespaceName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to list topics in namespace '%s': %v", + namespaceName, err)), nil + } + + if slices.Contains(partitionedTopics, topicName.String()) { + partitioned = true + } + if slices.Contains(nonPartitionedTopics, topicName.String()) { + partitioned = false + } + + var data interface{} + if partitioned { + // Get partitioned topic stats + stats, err := admin.Topics().GetPartitionedStats(*topicName, perPartition) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for partitioned topic '%s': %v", + topic, err)), nil + } + data = stats + } else { + // Get topic stats + stats, err := admin.Topics().GetStats(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for topic '%s': %v", + topic, err)), nil + } + data = stats + } + + return b.marshalResponse(data) +} + +// handleTopicLookup looks up the owner broker of a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicLookup(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.lookup: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Lookup topic + lookup, err := admin.Topics().Lookup(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to lookup topic '%s': %v", + topic, err)), nil + } + + return b.marshalResponse(lookup) +} + +// handleTopicCreate creates a topic with the specified number of partitions +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.create: %v", err)), nil + } + + partitions, err := request.RequireFloat("partitions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.create: %v", err)), nil + } + + // Validate partitions + if partitions < 0 { + return mcp.NewToolResultError("Invalid partitions number: must be non-negative. Use 0 for a non-partitioned topic."), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Create topic + err = admin.Topics().Create(*topicName, int(partitions)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create topic '%s' with %d partitions: %v", + topic, int(partitions), err)), nil + } + + if int(partitions) == 0 { + return mcp.NewToolResultText(fmt.Sprintf("Successfully created non-partitioned topic '%s'", + topicName.String())), nil + } + return mcp.NewToolResultText(fmt.Sprintf("Successfully created topic '%s' with %d partitions", + topicName.String(), int(partitions))), nil +} + +// handleTopicDelete deletes a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.delete: %v", err)), nil + } + + // Get optional parameters + force := request.GetBool("force", false) + nonPartitioned := request.GetBool("non-partitioned", false) + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Delete topic + err = admin.Topics().Delete(*topicName, force, nonPartitioned) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete topic '%s': %v", topic, err)), nil + } + + forceStr := "" + if force { + forceStr = " forcefully" + } + + nonPartitionedStr := "" + if nonPartitioned { + nonPartitionedStr = " (non-partitioned)" + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully deleted topic '%s'%s%s", + topicName.String(), forceStr, nonPartitionedStr)), nil +} + +// handleTopicUnload unloads a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicUnload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.unload: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Unload topic + err = admin.Topics().Unload(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to unload topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully unloaded topic '%s'", topicName.String())), nil +} + +// handleTopicTerminate terminates a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicTerminate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.terminate: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Terminate topic + messageID, err := admin.Topics().Terminate(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to terminate topic '%s': %v", topic, err)), nil + } + + // Convert message ID to string + msgIDStr := fmt.Sprintf("%d:%d", messageID.LedgerID, messageID.EntryID) + + return mcp.NewToolResultText(fmt.Sprintf("Successfully terminated topic '%s' at message %s. "+ + "No more messages can be published to this topic.", + topicName.String(), msgIDStr)), nil +} + +// handleTopicCompact triggers compaction on a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicCompact(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.compact: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Compact topic + err = admin.Topics().Compact(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger compaction for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered compaction for topic '%s'. "+ + "Run 'topic.status' to check compaction status.", topicName.String())), nil +} + +// handleTopicInternalStats gets the internal stats for a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicInternalStats(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-stats: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get internal stats + stats, err := admin.Topics().GetInternalStats(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal stats for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(stats) +} + +// handleTopicInternalInfo gets the internal info for a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicInternalInfo(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.internal-info: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get internal info + info, err := admin.Topics().GetInternalInfo(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get internal info for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(info) +} + +// handleTopicBundleRange gets the bundle range of a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicBundleRange(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.bundle-range: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get bundle range + bundle, err := admin.Topics().GetBundleRange(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle range for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Bundle range for topic '%s': %s", topicName.String(), bundle)), nil +} + +// handleTopicLastMessageID gets the last message ID of a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicLastMessageID(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.last-message-id: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get last message ID + messageID, err := admin.Topics().GetLastMessageID(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get last message ID for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(messageID) +} + +// handleTopicStatus gets the status of a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.status: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get topic metadata for status check + metadata, err := admin.Topics().GetMetadata(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for topic '%s': %v", topic, err)), nil + } + + // Create status object with available information + status := struct { + Metadata interface{} `json:"metadata"` + Active bool `json:"active"` + }{ + Metadata: metadata, + Active: true, + } + + return b.marshalResponse(status) +} + +// handleTopicUpdate updates a topic configuration +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.update: %v", err)), nil + } + + partitions, err := request.RequireFloat("partitions") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'partitions' for topic.update: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + err = admin.Topics().Update(*topicName, int(partitions)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully updated topic '%s' partitions to %d", + topicName.String(), int(partitions))), nil +} + +// handleTopicOffload offloads data from a topic to long-term storage +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicOffload(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload: %v", err)), nil + } + + messageIDStr, err := request.RequireString("messageId") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for topic.offload: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Parse message ID from format "ledgerId:entryId" + var ledgerID, entryID int64 + if _, err := fmt.Sscanf(messageIDStr, "%d:%d", &ledgerID, &entryID); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid message ID format (expected 'ledgerId:entryId'): %v. "+ + "Valid examples: '123:456'", err)), nil + } + + // Create MessageID object + messageID := utils.MessageID{ + LedgerID: ledgerID, + EntryID: entryID, + } + + // Offload topic + err = admin.Topics().Offload(*topicName, messageID) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger offload for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully triggered offload for topic '%s' up to message %s. "+ + "Use 'topic.offload-status' to check the offload progress.", + topicName.String(), messageIDStr)), nil +} + +// handleTopicOffloadStatus checks the status of data offloading for a topic +func (b *PulsarAdminTopicLegacyToolBuilder) handleTopicOffloadStatus(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic' for topic.offload-status: %v", err)), nil + } + + // Get topic name + topicName, err := utils.GetTopicName(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + } + + // Get offload status + status, err := admin.Topics().OffloadStatus(*topicName) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get offload status for topic '%s': %v", topic, err)), nil + } + + return b.marshalResponse(status) +} diff --git a/pkg/mcp/builders/pulsar/topic_test.go b/pkg/mcp/builders/pulsar/topic_test.go new file mode 100644 index 0000000..837e430 --- /dev/null +++ b/pkg/mcp/builders/pulsar/topic_test.go @@ -0,0 +1,151 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminTopicToolBuilder(t *testing.T) { + builder := NewPulsarAdminTopicToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_topic", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-topics") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-topics"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_topic", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-topics"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_topic", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-topics"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminTopicToolSchema(t *testing.T) { + builder := NewPulsarAdminTopicToolBuilder() + tool, err := builder.buildTopicTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_topic", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "topic", + "namespace", + "partitions", + "force", + "non-partitioned", + "partitioned", + "per-partition", + "config", + "messageId", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminTopicResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, pulsarAdminTopicOperationDesc, operationSchema.Description) +} + +func TestPulsarAdminTopicToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewPulsarAdminTopicToolBuilder() + handler := builder.buildTopicHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminTopicInput{ + Resource: "topic", + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} + +func mapStringKeys[V any](m map[string]V) []string { + keys := make([]string, 0, len(m)) + for key := range m { + keys = append(keys, key) + } + return keys +} diff --git a/pkg/mcp/pulsar_admin_topic_tools.go b/pkg/mcp/pulsar_admin_topic_tools.go index c02fc64..fafb8ec 100644 --- a/pkg/mcp/pulsar_admin_topic_tools.go +++ b/pkg/mcp/pulsar_admin_topic_tools.go @@ -16,15 +16,14 @@ package mcp import ( "context" - "fmt" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminTopicTools creates Pulsar Admin Topic tool list using the new builder pattern -func PulsarAdminTopicTools(readOnly bool, features []string) []server.ServerTool { +// PulsarAdminAddTopicTools registers Pulsar admin topic tools. +func PulsarAdminAddTopicTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarBuilders.NewPulsarAdminTopicToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -33,19 +32,10 @@ func PulsarAdminTopicTools(readOnly bool, features []string) []server.ServerTool tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - fmt.Printf("Failed to build Pulsar Admin Topic tools: %v\n", err) - return nil + return } - return tools -} - -// PulsarAdminAddTopicTools adds topic-related tools to the MCP server -func PulsarAdminAddTopicTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarAdminTopicTools(readOnly, features) - for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_topic_tools_legacy.go b/pkg/mcp/pulsar_admin_topic_tools_legacy.go new file mode 100644 index 0000000..02b64aa --- /dev/null +++ b/pkg/mcp/pulsar_admin_topic_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddTopicToolsLegacy registers Pulsar admin topic tools for the legacy server. +func PulsarAdminAddTopicToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarBuilders.NewPulsarAdminTopicLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 73185640d9423048981a90e39fbd0f6fe0bbf9c7 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 10:03:25 +0800 Subject: [PATCH 56/85] feat: migrate pulsar admin tenant tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/tenant.go | 259 +++++++++-------- pkg/mcp/builders/pulsar/tenant_legacy.go | 305 ++++++++++++++++++++ pkg/mcp/builders/pulsar/tenant_test.go | 137 +++++++++ pkg/mcp/pulsar_admin_tenant_tools.go | 6 +- pkg/mcp/pulsar_admin_tenant_tools_legacy.go | 41 +++ 6 files changed, 630 insertions(+), 120 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/tenant_legacy.go create mode 100644 pkg/mcp/builders/pulsar/tenant_test.go create mode 100644 pkg/mcp/pulsar_admin_tenant_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 5edfcca..9beaae4 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -125,7 +125,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSchemasTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSubscriptionTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddTenantTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTenantToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSinksTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/tenant.go b/pkg/mcp/builders/pulsar/tenant.go index 8a0d457..a46f719 100644 --- a/pkg/mcp/builders/pulsar/tenant.go +++ b/pkg/mcp/builders/pulsar/tenant.go @@ -21,13 +21,45 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminTenantInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Tenant *string `json:"tenant,omitempty"` + AdminRoles []string `json:"adminRoles,omitempty"` + AllowedClusters []string `json:"allowedClusters,omitempty"` +} + +const ( + pulsarAdminTenantResourceDesc = "Resource to operate on. Available resources:\n" + + "- tenant: A tenant in the Pulsar instance" + pulsarAdminTenantOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all tenants in the Pulsar instance\n" + + "- get: Get configuration details for a specific tenant\n" + + "- create: Create a new tenant with specified configuration\n" + + "- update: Update configuration for an existing tenant\n" + + "- delete: Delete an existing tenant (must not have any active namespaces)" + pulsarAdminTenantNameDesc = "The tenant name to operate on. Required for all operations except 'list'. " + + "Tenant names are unique identifiers and form the root of the topic naming hierarchy. " + + "A valid tenant name must be comprised of alphanumeric characters and/or the following special characters: " + + "'-', '_', '.', ':'. Ensure the tenant name follows your organization's naming conventions." + pulsarAdminTenantAdminRolesDesc = "List of auth principals (users or roles) allowed to administrate the tenant. " + + "Required for 'create' and 'update' operations. These roles can create, update, or delete any " + + "namespaces within the tenant, and can manage topic configurations. " + + "Format: array of role strings, e.g., ['admin1', 'orgAdmin']. " + + "Use empty array [] to remove all admin roles." + pulsarAdminTenantAllowedClustersDesc = "List of clusters that this tenant can access. Required for 'create' and 'update' operations. " + + "Restricts the tenant to only use specified clusters, enabling geographic or infrastructure isolation. " + + "Format: array of cluster names, e.g., ['us-west', 'us-east']. " + + "An empty list means no clusters are accessible to this tenant." +) + // PulsarAdminTenantToolBuilder implements the ToolBuilder interface for Pulsar Admin Tenant tools // It provides functionality to build Pulsar tenant management tools // /nolint:revive @@ -59,7 +91,7 @@ func NewPulsarAdminTenantToolBuilder() *PulsarAdminTenantToolBuilder { // BuildTools builds the Pulsar Admin Tenant tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminTenantToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminTenantToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -71,11 +103,14 @@ func (b *PulsarAdminTenantToolBuilder) BuildTools(_ context.Context, config buil } // Build tools - tool := b.buildTenantTool() + tool, err := b.buildTenantTool() + if err != nil { + return nil, err + } handler := b.buildTenantHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminTenantInput, any]{ Tool: tool, Handler: handler, }, @@ -84,7 +119,12 @@ func (b *PulsarAdminTenantToolBuilder) BuildTools(_ context.Context, config buil // buildTenantTool builds the Pulsar Admin Tenant MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminTenantToolBuilder) buildTenantTool() mcp.Tool { +func (b *PulsarAdminTenantToolBuilder) buildTenantTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminTenantInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar tenants. " + "Tenants are the highest level administrative unit in Pulsar's multi-tenancy hierarchy. " + "Each tenant can contain multiple namespaces, allowing for logical isolation of applications. " + @@ -94,113 +134,62 @@ func (b *PulsarAdminTenantToolBuilder) buildTenantTool() mcp.Tool { "appropriate access controls, and effective resource sharing. " + "All tenant operations require super-user permissions." - resourceDesc := "Resource to operate on. Available resources:\n" + - "- tenant: A tenant in the Pulsar instance" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all tenants in the Pulsar instance\n" + - "- get: Get configuration details for a specific tenant\n" + - "- create: Create a new tenant with specified configuration\n" + - "- update: Update configuration for an existing tenant\n" + - "- delete: Delete an existing tenant (must not have any active namespaces)" - - return mcp.NewTool("pulsar_admin_tenant", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("tenant", - mcp.Description("The tenant name to operate on. Required for all operations except 'list'. "+ - "Tenant names are unique identifiers and form the root of the topic naming hierarchy. "+ - "A valid tenant name must be comprised of alphanumeric characters and/or the following special characters: "+ - "'-', '_', '.', ':'. Ensure the tenant name follows your organization's naming conventions."), - ), - mcp.WithArray("adminRoles", - mcp.Description("List of auth principals (users or roles) allowed to administrate the tenant. "+ - "Required for 'create' and 'update' operations. These roles can create, update, or delete any "+ - "namespaces within the tenant, and can manage topic configurations. "+ - "Format: array of role strings, e.g., ['admin1', 'orgAdmin']. "+ - "Use empty array [] to remove all admin roles."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "role", - }, - ), - ), - mcp.WithArray("allowedClusters", - mcp.Description("List of clusters that this tenant can access. Required for 'create' and 'update' operations. "+ - "Restricts the tenant to only use specified clusters, enabling geographic or infrastructure isolation. "+ - "Format: array of cluster names, e.g., ['us-west', 'us-east']. "+ - "An empty list means no clusters are accessible to this tenant."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "cluster", - }, - ), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_tenant", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildTenantHandler builds the Pulsar Admin Tenant handler function // Migrated from the original handler logic -func (b *PulsarAdminTenantToolBuilder) buildTenantHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil - } - - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil - } - +func (b *PulsarAdminTenantToolBuilder) buildTenantHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminTenantInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminTenantInput) (*sdk.CallToolResult, any, error) { // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) + resource := strings.ToLower(input.Resource) + operation := strings.ToLower(input.Operation) // Validate resource if resource != "tenant" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'tenant' is supported.", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. only 'tenant' is supported", resource) } // Validate write operations in read-only mode if readOnly && (operation == "create" || operation == "update" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Create the admin client admin, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, b.handleError("get admin client", err) } // Dispatch based on operation switch operation { case "list": - return b.handleTenantsList(admin) + result, err := b.handleTenantsList(admin) + return result, nil, err case "get": - return b.handleTenantGet(admin, request) + result, err := b.handleTenantGet(admin, input) + return result, nil, err case "create": - return b.handleTenantCreate(admin, request) + result, err := b.handleTenantCreate(admin, input) + return result, nil, err case "update": - return b.handleTenantUpdate(admin, request) + result, err := b.handleTenantUpdate(admin, input) + return result, nil, err case "delete": - return b.handleTenantDelete(admin, request) + result, err := b.handleTenantDelete(admin, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unknown operation: %s", operation) } } } @@ -208,63 +197,65 @@ func (b *PulsarAdminTenantToolBuilder) buildTenantHandler(readOnly bool) func(co // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarAdminTenantToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminTenantToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminTenantToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTenantToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Operation handler functions - migrated from the original implementation // handleTenantsList handles listing all tenants -func (b *PulsarAdminTenantToolBuilder) handleTenantsList(admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTenantToolBuilder) handleTenantsList(admin cmdutils.Client) (*sdk.CallToolResult, error) { // Get tenants list tenants, err := admin.Tenants().List() if err != nil { - return b.handleError("list tenants", err), nil + return nil, b.handleError("list tenants", err) } return b.marshalResponse(tenants) } // handleTenantGet handles getting tenant configuration -func (b *PulsarAdminTenantToolBuilder) handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") +func (b *PulsarAdminTenantToolBuilder) handleTenantGet(admin cmdutils.Client, input pulsarAdminTenantInput) (*sdk.CallToolResult, error) { + tenant, err := requireString(input.Tenant, "tenant") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'tenant' for tenant.get: %v", err) } // Get tenant info tenantInfo, err := admin.Tenants().Get(tenant) if err != nil { - return b.handleError("get tenant", err), nil + return nil, b.handleError("get tenant", err) } return b.marshalResponse(tenantInfo) } // handleTenantCreate handles creating a new tenant -func (b *PulsarAdminTenantToolBuilder) handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") +func (b *PulsarAdminTenantToolBuilder) handleTenantCreate(admin cmdutils.Client, input pulsarAdminTenantInput) (*sdk.CallToolResult, error) { + tenant, err := requireString(input.Tenant, "tenant") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'tenant' for tenant.create: %v", err) } - adminRoles, err := request.RequireStringSlice("adminRoles") + adminRoles, err := requireStringSlice(input.AdminRoles, "adminRoles") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin roles: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'adminRoles' for tenant.create: %v", err) } - allowedClusters, err := request.RequireStringSlice("allowedClusters") + allowedClusters, err := requireStringSlice(input.AllowedClusters, "allowedClusters") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get allowed clusters: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'allowedClusters' for tenant.create: %v", err) } // Create tenant data @@ -277,27 +268,27 @@ func (b *PulsarAdminTenantToolBuilder) handleTenantCreate(admin cmdutils.Client, // Create tenant err = admin.Tenants().Create(tenantData) if err != nil { - return b.handleError("create tenant", err), nil + return nil, b.handleError("create tenant", err) } - return mcp.NewToolResultText(fmt.Sprintf("Tenant %s created successfully", tenant)), nil + return textResult(fmt.Sprintf("Tenant %s created successfully", tenant)), nil } // handleTenantUpdate handles updating tenant configuration -func (b *PulsarAdminTenantToolBuilder) handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") +func (b *PulsarAdminTenantToolBuilder) handleTenantUpdate(admin cmdutils.Client, input pulsarAdminTenantInput) (*sdk.CallToolResult, error) { + tenant, err := requireString(input.Tenant, "tenant") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'tenant' for tenant.update: %v", err) } - adminRoles, err := request.RequireStringSlice("adminRoles") + adminRoles, err := requireStringSlice(input.AdminRoles, "adminRoles") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin roles: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'adminRoles' for tenant.update: %v", err) } - allowedClusters, err := request.RequireStringSlice("allowedClusters") + allowedClusters, err := requireStringSlice(input.AllowedClusters, "allowedClusters") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get allowed clusters: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'allowedClusters' for tenant.update: %v", err) } // Create tenant data @@ -310,24 +301,60 @@ func (b *PulsarAdminTenantToolBuilder) handleTenantUpdate(admin cmdutils.Client, // Update tenant err = admin.Tenants().Update(tenantData) if err != nil { - return b.handleError("update tenant", err), nil + return nil, b.handleError("update tenant", err) } - return mcp.NewToolResultText(fmt.Sprintf("Tenant %s updated successfully", tenant)), nil + return textResult(fmt.Sprintf("Tenant %s updated successfully", tenant)), nil } // handleTenantDelete handles deleting a tenant -func (b *PulsarAdminTenantToolBuilder) handleTenantDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") +func (b *PulsarAdminTenantToolBuilder) handleTenantDelete(admin cmdutils.Client, input pulsarAdminTenantInput) (*sdk.CallToolResult, error) { + tenant, err := requireString(input.Tenant, "tenant") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'tenant' for tenant.delete: %v", err) } // Delete tenant err = admin.Tenants().Delete(tenant) if err != nil { - return b.handleError("delete tenant", err), nil + return nil, b.handleError("delete tenant", err) } - return mcp.NewToolResultText(fmt.Sprintf("Tenant %s deleted successfully", tenant)), nil + return textResult(fmt.Sprintf("Tenant %s deleted successfully", tenant)), nil +} + +func buildPulsarAdminTenantInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminTenantInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "resource", pulsarAdminTenantResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminTenantOperationDesc) + setSchemaDescription(schema, "tenant", pulsarAdminTenantNameDesc) + setSchemaDescription(schema, "adminRoles", pulsarAdminTenantAdminRolesDesc) + setSchemaDescription(schema, "allowedClusters", pulsarAdminTenantAllowedClustersDesc) + + if adminRolesSchema := schema.Properties["adminRoles"]; adminRolesSchema != nil && adminRolesSchema.Items != nil { + adminRolesSchema.Items.Description = "role" + } + if allowedClustersSchema := schema.Properties["allowedClusters"]; allowedClustersSchema != nil && allowedClustersSchema.Items != nil { + allowedClustersSchema.Items.Description = "cluster" + } + + normalizeAdditionalProperties(schema) + return schema, nil +} + +func requireStringSlice(values []string, key string) ([]string, error) { + if values == nil { + return nil, fmt.Errorf("required argument %q not found", key) + } + return values, nil } diff --git a/pkg/mcp/builders/pulsar/tenant_legacy.go b/pkg/mcp/builders/pulsar/tenant_legacy.go new file mode 100644 index 0000000..15381d8 --- /dev/null +++ b/pkg/mcp/builders/pulsar/tenant_legacy.go @@ -0,0 +1,305 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminTenantLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar Admin Tenant tools. +// /nolint:revive +type PulsarAdminTenantLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminTenantLegacyToolBuilder creates a new Pulsar Admin Tenant legacy tool builder instance. +func NewPulsarAdminTenantLegacyToolBuilder() *PulsarAdminTenantLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_tenant", + Version: "1.0.0", + Description: "Pulsar Admin tenant management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "tenant", "admin"}, + } + + features := []string{ + "pulsar-admin-tenants", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminTenantLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Tenant tool list. +func (b *PulsarAdminTenantLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildTenantTool() + handler := b.buildTenantHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildTenantTool builds the Pulsar Admin Tenant MCP tool definition. +func (b *PulsarAdminTenantLegacyToolBuilder) buildTenantTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar tenants. " + + "Tenants are the highest level administrative unit in Pulsar's multi-tenancy hierarchy. " + + "Each tenant can contain multiple namespaces, allowing for logical isolation of applications. " + + "Tenant configuration controls admin access and cluster availability across organizations. " + + "Tenants provide isolation boundaries for topics, security policies, and resource quotas. " + + "Proper tenant management is essential for multi-tenant Pulsar deployments to ensure data isolation, " + + "appropriate access controls, and effective resource sharing. " + + "All tenant operations require super-user permissions." + + return mcp.NewTool("pulsar_admin_tenant", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(pulsarAdminTenantResourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(pulsarAdminTenantOperationDesc), + ), + mcp.WithString("tenant", + mcp.Description(pulsarAdminTenantNameDesc), + ), + mcp.WithArray("adminRoles", + mcp.Description(pulsarAdminTenantAdminRolesDesc), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "role", + }, + ), + ), + mcp.WithArray("allowedClusters", + mcp.Description(pulsarAdminTenantAllowedClustersDesc), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "cluster", + }, + ), + ), + ) +} + +// buildTenantHandler builds the Pulsar Admin Tenant handler function. +func (b *PulsarAdminTenantLegacyToolBuilder) buildTenantHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate resource + if resource != "tenant" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'tenant' is supported.", resource)), nil + } + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "update" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "list": + return b.handleTenantsList(admin) + case "get": + return b.handleTenantGet(admin, request) + case "create": + return b.handleTenantCreate(admin, request) + case "update": + return b.handleTenantUpdate(admin, request) + case "delete": + return b.handleTenantDelete(admin, request) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + } + } +} + +// handleError provides unified error handling. +func (b *PulsarAdminTenantLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses. +func (b *PulsarAdminTenantLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// handleTenantsList handles listing all tenants. +func (b *PulsarAdminTenantLegacyToolBuilder) handleTenantsList(admin cmdutils.Client) (*mcp.CallToolResult, error) { + // Get tenants list + tenants, err := admin.Tenants().List() + if err != nil { + return b.handleError("list tenants", err), nil + } + + return b.marshalResponse(tenants) +} + +// handleTenantGet handles getting tenant configuration. +func (b *PulsarAdminTenantLegacyToolBuilder) handleTenantGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + // Get tenant info + tenantInfo, err := admin.Tenants().Get(tenant) + if err != nil { + return b.handleError("get tenant", err), nil + } + + return b.marshalResponse(tenantInfo) +} + +// handleTenantCreate handles creating a new tenant. +func (b *PulsarAdminTenantLegacyToolBuilder) handleTenantCreate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + adminRoles, err := request.RequireStringSlice("adminRoles") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin roles: %v", err)), nil + } + + allowedClusters, err := request.RequireStringSlice("allowedClusters") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get allowed clusters: %v", err)), nil + } + + // Create tenant data + tenantData := utils.TenantData{ + Name: tenant, + AdminRoles: adminRoles, + AllowedClusters: allowedClusters, + } + + // Create tenant + err = admin.Tenants().Create(tenantData) + if err != nil { + return b.handleError("create tenant", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Tenant %s created successfully", tenant)), nil +} + +// handleTenantUpdate handles updating tenant configuration. +func (b *PulsarAdminTenantLegacyToolBuilder) handleTenantUpdate(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + adminRoles, err := request.RequireStringSlice("adminRoles") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin roles: %v", err)), nil + } + + allowedClusters, err := request.RequireStringSlice("allowedClusters") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get allowed clusters: %v", err)), nil + } + + // Create tenant data + tenantData := utils.TenantData{ + Name: tenant, + AdminRoles: adminRoles, + AllowedClusters: allowedClusters, + } + + // Update tenant + err = admin.Tenants().Update(tenantData) + if err != nil { + return b.handleError("update tenant", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Tenant %s updated successfully", tenant)), nil +} + +// handleTenantDelete handles deleting a tenant. +func (b *PulsarAdminTenantLegacyToolBuilder) handleTenantDelete(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + // Delete tenant + err = admin.Tenants().Delete(tenant) + if err != nil { + return b.handleError("delete tenant", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Tenant %s deleted successfully", tenant)), nil +} diff --git a/pkg/mcp/builders/pulsar/tenant_test.go b/pkg/mcp/builders/pulsar/tenant_test.go new file mode 100644 index 0000000..bc1040c --- /dev/null +++ b/pkg/mcp/builders/pulsar/tenant_test.go @@ -0,0 +1,137 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminTenantToolBuilder(t *testing.T) { + builder := NewPulsarAdminTenantToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_tenant", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-tenants") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-tenants"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_tenant", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-tenants"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_tenant", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-tenants"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminTenantToolSchema(t *testing.T) { + builder := NewPulsarAdminTenantToolBuilder() + tool, err := builder.buildTenantTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_tenant", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "tenant", + "adminRoles", + "allowedClusters", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminTenantResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, pulsarAdminTenantOperationDesc, operationSchema.Description) +} + +func TestPulsarAdminTenantToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewPulsarAdminTenantToolBuilder() + handler := builder.buildTenantHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminTenantInput{ + Resource: "tenant", + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/pulsar_admin_tenant_tools.go b/pkg/mcp/pulsar_admin_tenant_tools.go index 3ab45a4..302e95e 100644 --- a/pkg/mcp/pulsar_admin_tenant_tools.go +++ b/pkg/mcp/pulsar_admin_tenant_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddTenantTools registers Pulsar admin tenant tools. -func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []string) { +func PulsarAdminAddTenantTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminTenantToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func PulsarAdminAddTenantTools(s *server.MCPServer, readOnly bool, features []st // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_tenant_tools_legacy.go b/pkg/mcp/pulsar_admin_tenant_tools_legacy.go new file mode 100644 index 0000000..d4c13ee --- /dev/null +++ b/pkg/mcp/pulsar_admin_tenant_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddTenantToolsLegacy registers Pulsar admin tenant tools for the legacy server. +func PulsarAdminAddTenantToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminTenantLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 8766a8dd4c123d518a971780a598a3a83d3ccfa1 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 10:19:52 +0800 Subject: [PATCH 57/85] feat: migrate pulsar namespace tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/namespace.go | 347 +++++++------ pkg/mcp/builders/pulsar/namespace_legacy.go | 469 ++++++++++++++++++ pkg/mcp/builders/pulsar/namespace_test.go | 140 ++++++ pkg/mcp/pulsar_admin_namespace_tools.go | 24 +- .../pulsar_admin_namespace_tools_legacy.go | 41 ++ 6 files changed, 849 insertions(+), 174 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/namespace_legacy.go create mode 100644 pkg/mcp/builders/pulsar/namespace_test.go create mode 100644 pkg/mcp/pulsar_admin_namespace_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 9beaae4..46409fe 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -118,7 +118,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddBrokerStatsTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddClusterTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsWorkerTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddNamespaceTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNamespaceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespacePolicyTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/namespace.go b/pkg/mcp/builders/pulsar/namespace.go index ebef3f4..0c9643a 100644 --- a/pkg/mcp/builders/pulsar/namespace.go +++ b/pkg/mcp/builders/pulsar/namespace.go @@ -21,13 +21,45 @@ import ( "strconv" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminNamespaceInput struct { + Operation string `json:"operation"` + Tenant *string `json:"tenant,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Bundles *string `json:"bundles,omitempty"` + Clusters []string `json:"clusters,omitempty"` + Subscription *string `json:"subscription,omitempty"` + Bundle *string `json:"bundle,omitempty"` + Force *string `json:"force,omitempty"` + Unload *string `json:"unload,omitempty"` +} + +const ( + pulsarAdminNamespaceOperationDesc = "Operation to perform on namespaces. Available operations:\n" + + "- list: List all namespaces for a tenant\n" + + "- get_topics: Get all topics within a namespace\n" + + "- create: Create a new namespace\n" + + "- delete: Delete an existing namespace\n" + + "- clear_backlog: Clear backlog for all topics in a namespace\n" + + "- unsubscribe: Unsubscribe from a subscription for all topics in a namespace\n" + + "- unload: Unload a namespace from the current serving broker\n" + + "- split_bundle: Split a namespace bundle" + pulsarAdminNamespaceTenantDesc = "The tenant name. Required for 'list' operation." + pulsarAdminNamespaceNamespaceDesc = "The namespace name in format 'tenant/namespace'. Required for all operations except 'list'." + pulsarAdminNamespaceBundlesDesc = "Number of bundles to activate when creating a namespace (default: 0 for default number of bundles). Used with 'create' operation." + pulsarAdminNamespaceClustersDesc = "List of clusters to assign when creating a namespace. Used with 'create' operation." + pulsarAdminNamespaceSubscriptionDesc = "Subscription name. Required for 'unsubscribe' operation, optional for 'clear_backlog'." + pulsarAdminNamespaceBundleDesc = "Bundle name or range. Required for 'split_bundle' operation, optional for 'clear_backlog', 'unsubscribe', and 'unload'." + pulsarAdminNamespaceForceDesc = "Force clear backlog (true/false). Used with 'clear_backlog' operation." + pulsarAdminNamespaceUnloadDesc = "Unload newly split bundles after splitting (true/false). Used with 'split_bundle' operation." +) + // PulsarAdminNamespaceToolBuilder implements the ToolBuilder interface for Pulsar Admin Namespace tools // It provides functionality to build Pulsar namespace management tools // /nolint:revive @@ -59,7 +91,7 @@ func NewPulsarAdminNamespaceToolBuilder() *PulsarAdminNamespaceToolBuilder { // BuildTools builds the Pulsar Admin Namespace tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminNamespaceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminNamespaceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -71,11 +103,14 @@ func (b *PulsarAdminNamespaceToolBuilder) BuildTools(_ context.Context, config b } // Build tools - tool := b.buildNamespaceTool() + tool, err := b.buildNamespaceTool() + if err != nil { + return nil, err + } handler := b.buildNamespaceHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminNamespaceInput, any]{ Tool: tool, Handler: handler, }, @@ -84,186 +119,153 @@ func (b *PulsarAdminNamespaceToolBuilder) BuildTools(_ context.Context, config b // buildNamespaceTool builds the Pulsar Admin Namespace MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminNamespaceToolBuilder) buildNamespaceTool() mcp.Tool { +func (b *PulsarAdminNamespaceToolBuilder) buildNamespaceTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminNamespaceInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Pulsar namespaces with various operations. " + "This tool provides functionality to work with namespaces in Apache Pulsar, " + "including listing, creating, deleting, and performing various operations on namespaces." - operationDesc := "Operation to perform on namespaces. Available operations:\n" + - "- list: List all namespaces for a tenant\n" + - "- get_topics: Get all topics within a namespace\n" + - "- create: Create a new namespace\n" + - "- delete: Delete an existing namespace\n" + - "- clear_backlog: Clear backlog for all topics in a namespace\n" + - "- unsubscribe: Unsubscribe from a subscription for all topics in a namespace\n" + - "- unload: Unload a namespace from the current serving broker\n" + - "- split_bundle: Split a namespace bundle" - - return mcp.NewTool("pulsar_admin_namespace", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("tenant", - mcp.Description("The tenant name. Required for 'list' operation."), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name in format 'tenant/namespace'. Required for all operations except 'list'."), - ), - mcp.WithString("bundles", - mcp.Description("Number of bundles to activate when creating a namespace (default: 0 for default number of bundles). Used with 'create' operation."), - ), - mcp.WithArray("clusters", - mcp.Description("List of clusters to assign when creating a namespace. Used with 'create' operation."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "Cluster name", - }, - ), - ), - mcp.WithString("subscription", - mcp.Description("Subscription name. Required for 'unsubscribe' operation, optional for 'clear_backlog'."), - ), - mcp.WithString("bundle", - mcp.Description("Bundle name or range. Required for 'split_bundle' operation, optional for 'clear_backlog', 'unsubscribe', and 'unload'."), - ), - mcp.WithString("force", - mcp.Description("Force clear backlog (true/false). Used with 'clear_backlog' operation."), - ), - mcp.WithString("unload", - mcp.Description("Unload newly split bundles after splitting (true/false). Used with 'split_bundle' operation."), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_namespace", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildNamespaceHandler builds the Pulsar Admin Namespace handler function // Migrated from the original handler logic -func (b *PulsarAdminNamespaceToolBuilder) buildNamespaceHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil +func (b *PulsarAdminNamespaceToolBuilder) buildNamespaceHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminNamespaceInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, any, error) { + operation := input.Operation + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'") + } + + // Validate write operations in read-only mode + if readOnly && (operation == "create" || operation == "delete" || operation == "clear_backlog" || + operation == "unsubscribe" || operation == "unload" || operation == "split_bundle") { + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Create Pulsar client client, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, b.handleError("get admin client", err) } // Route to appropriate handler based on operation switch operation { case "list": - return b.handleNamespaceList(ctx, client, request) + result, err := b.handleNamespaceList(client, input) + return result, nil, err case "get_topics": - return b.handleNamespaceGetTopics(ctx, client, request) - case "create", "delete", "clear_backlog", "unsubscribe", "unload", "split_bundle": - // Check if write operations are allowed - if readOnly { - return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode", operation)), nil - } - - // Route to appropriate write operation handler - switch operation { - case "create": - return b.handleNamespaceCreate(ctx, client, request) - case "delete": - return b.handleNamespaceDelete(ctx, client, request) - case "clear_backlog": - return b.handleClearBacklog(ctx, client, request) - case "unsubscribe": - return b.handleUnsubscribe(ctx, client, request) - case "unload": - return b.handleUnload(ctx, client, request) - case "split_bundle": - return b.handleSplitBundle(ctx, client, request) - } + result, err := b.handleNamespaceGetTopics(client, input) + return result, nil, err + case "create": + result, err := b.handleNamespaceCreate(client, input) + return result, nil, err + case "delete": + result, err := b.handleNamespaceDelete(client, input) + return result, nil, err + case "clear_backlog": + result, err := b.handleClearBacklog(client, input) + return result, nil, err + case "unsubscribe": + result, err := b.handleUnsubscribe(client, input) + return result, nil, err + case "unload": + result, err := b.handleUnload(client, input) + return result, nil, err + case "split_bundle": + result, err := b.handleSplitBundle(client, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s. Supported operations: list, get_topics, create, delete, clear_backlog, unsubscribe, unload, split_bundle", operation)), nil + return nil, nil, fmt.Errorf("unknown operation: %s. supported operations: list, get_topics, create, delete, clear_backlog, unsubscribe, unload, split_bundle", operation) } - - // Should not reach here - return mcp.NewToolResultError("Unexpected error: operation not handled"), nil } } // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarAdminNamespaceToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminNamespaceToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminNamespaceToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNamespaceToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Operation handler functions - migrated from the original implementation // handleNamespaceList handles listing namespaces for a tenant -func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceList(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + tenant, err := requireString(input.Tenant, "tenant") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'tenant' for namespace.list: %v", err) } // Get namespace list namespaces, err := client.Namespaces().GetNamespaces(tenant) if err != nil { - return b.handleError("list namespaces", err), nil + return nil, b.handleError("list namespaces", err) } return b.marshalResponse(namespaces) } // handleNamespaceGetTopics handles getting topics for a namespace -func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceGetTopics(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for namespace.get_topics: %v", err) } // Get topics list topics, err := client.Namespaces().GetTopics(namespace) if err != nil { - return b.handleError("get topics", err), nil + return nil, b.handleError("get topics", err) } return b.marshalResponse(topics) } // handleNamespaceCreate handles creating a new namespace -func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceCreate(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for namespace.create: %v", err) } // Get optional parameters - bundlesStr := request.GetString("bundles", "") + bundlesStr := stringValue(input.Bundles) bundles := 0 if bundlesStr != "" { bundlesInt, err := strconv.Atoi(bundlesStr) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid bundles value, must be an integer: %v", err)), nil + return nil, fmt.Errorf("invalid bundles value, must be an integer: %v", err) } bundles = bundlesInt } - clusters := request.GetStringSlice("clusters", []string{}) + clusters := input.Clusters // Prepare policies policies := utils.NewDefaultPolicies() @@ -271,9 +273,7 @@ func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceCreate(_ context.Contex // Set bundles if provided if bundles > 0 { if bundles < 0 || bundles > int(^uint32(0)) { // MaxInt32 - return mcp.NewToolResultError( - fmt.Sprintf("Invalid number of bundles. Number of bundles has to be in the range of (0, %d].", int(^uint32(0))), - ), nil + return nil, fmt.Errorf("invalid number of bundles, number of bundles has to be in the range of (0, %d]", int(^uint32(0))) } policies.Bundles = utils.NewBundlesDataWithNumBundles(bundles) } @@ -286,57 +286,54 @@ func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceCreate(_ context.Contex // Create namespace ns, err := utils.GetNamespaceName(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + return nil, fmt.Errorf("invalid namespace name: %v", err) } err = client.Namespaces().CreateNsWithPolices(ns.String(), *policies) if err != nil { - return b.handleError("create namespace", err), nil + return nil, b.handleError("create namespace", err) } - return mcp.NewToolResultText(fmt.Sprintf("Created %s successfully", namespace)), nil + return textResult(fmt.Sprintf("Created %s successfully", namespace)), nil } // handleNamespaceDelete handles deleting a namespace -func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminNamespaceToolBuilder) handleNamespaceDelete(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for namespace.delete: %v", err) } // Delete namespace err = client.Namespaces().DeleteNamespace(namespace) if err != nil { - return b.handleError("delete namespace", err), nil + return nil, b.handleError("delete namespace", err) } - return mcp.NewToolResultText(fmt.Sprintf("Deleted %s successfully", namespace)), nil + return textResult(fmt.Sprintf("Deleted %s successfully", namespace)), nil } // handleClearBacklog handles clearing the backlog for all topics in a namespace -func (b *PulsarAdminNamespaceToolBuilder) handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminNamespaceToolBuilder) handleClearBacklog(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for namespace.clear_backlog: %v", err) } // Get optional parameters - subscription := request.GetString("subscription", "") - bundle := request.GetString("bundle", "") - force := request.GetString("force", "") - forceFlag := force == "true" + subscription := stringValue(input.Subscription) + bundle := stringValue(input.Bundle) + forceFlag := stringValue(input.Force) == "true" // If not forced, return an error requiring explicit force flag if !forceFlag { - return mcp.NewToolResultError( - "Clear backlog operation requires explicit confirmation. Please set force=true to proceed.", - ), nil + return nil, fmt.Errorf("clear backlog operation requires explicit confirmation, set force=true to proceed") } // Get namespace name ns, err := utils.GetNamespaceName(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + return nil, fmt.Errorf("invalid namespace name: %v", err) } // Handle different backlog clearing scenarios @@ -355,33 +352,33 @@ func (b *PulsarAdminNamespaceToolBuilder) handleClearBacklog(_ context.Context, } if clearErr != nil { - return b.handleError("clear backlog", clearErr), nil + return nil, b.handleError("clear backlog", clearErr) } - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("Successfully cleared backlog for all topics in namespace %s", namespace), ), nil } // handleUnsubscribe handles unsubscribing the specified subscription for all topics of a namespace -func (b *PulsarAdminNamespaceToolBuilder) handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminNamespaceToolBuilder) handleUnsubscribe(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for namespace.unsubscribe: %v", err) } - subscription, err := request.RequireString("subscription") + subscription, err := requireString(input.Subscription, "subscription") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'subscription' for namespace.unsubscribe: %v", err) } // Get optional bundle - bundle := request.GetString("bundle", "") + bundle := stringValue(input.Bundle) // Get namespace name ns, err := utils.GetNamespaceName(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + return nil, fmt.Errorf("invalid namespace name: %v", err) } // Unsubscribe namespace @@ -393,31 +390,31 @@ func (b *PulsarAdminNamespaceToolBuilder) handleUnsubscribe(_ context.Context, c } if unsubErr != nil { - return b.handleError("unsubscribe", unsubErr), nil + return nil, b.handleError("unsubscribe", unsubErr) } if bundle == "" { - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s", subscription, namespace), ), nil } - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s with bundle range %s", subscription, namespace, bundle), ), nil } // handleUnload handles unloading a namespace from the current serving broker -func (b *PulsarAdminNamespaceToolBuilder) handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminNamespaceToolBuilder) handleUnload(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for namespace.unload: %v", err) } // Get optional bundle - bundle := request.GetString("bundle", "") + bundle := stringValue(input.Bundle) // Unload namespace var unloadErr error @@ -428,42 +425,80 @@ func (b *PulsarAdminNamespaceToolBuilder) handleUnload(_ context.Context, client } if unloadErr != nil { - return b.handleError("unload namespace", unloadErr), nil + return nil, b.handleError("unload namespace", unloadErr) } if bundle == "" { - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("Unloaded namespace %s successfully", namespace), ), nil } - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("Unloaded namespace %s with bundle %s successfully", namespace, bundle), ), nil } // handleSplitBundle handles splitting a namespace bundle -func (b *PulsarAdminNamespaceToolBuilder) handleSplitBundle(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminNamespaceToolBuilder) handleSplitBundle(client cmdutils.Client, input pulsarAdminNamespaceInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for namespace.split_bundle: %v", err) } - bundle, err := request.RequireString("bundle") + bundle, err := requireString(input.Bundle, "bundle") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'bundle' for namespace.split_bundle: %v", err) } // Get optional unload flag - unload := request.GetString("unload", "") == "true" + unload := stringValue(input.Unload) == "true" // Split namespace bundle err = client.Namespaces().SplitNamespaceBundle(namespace, bundle, unload) if err != nil { - return b.handleError("split namespace bundle", err), nil + return nil, b.handleError("split namespace bundle", err) } - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("Split namespace bundle %s successfully", bundle), ), nil } + +func buildPulsarAdminNamespaceInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminNamespaceInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "operation", pulsarAdminNamespaceOperationDesc) + setSchemaDescription(schema, "tenant", pulsarAdminNamespaceTenantDesc) + setSchemaDescription(schema, "namespace", pulsarAdminNamespaceNamespaceDesc) + setSchemaDescription(schema, "bundles", pulsarAdminNamespaceBundlesDesc) + setSchemaDescription(schema, "clusters", pulsarAdminNamespaceClustersDesc) + setSchemaDescription(schema, "subscription", pulsarAdminNamespaceSubscriptionDesc) + setSchemaDescription(schema, "bundle", pulsarAdminNamespaceBundleDesc) + setSchemaDescription(schema, "force", pulsarAdminNamespaceForceDesc) + setSchemaDescription(schema, "unload", pulsarAdminNamespaceUnloadDesc) + + if clustersSchema := schema.Properties["clusters"]; clustersSchema != nil && clustersSchema.Items != nil { + clustersSchema.Items.Description = "cluster" + } + + normalizeAdditionalProperties(schema) + return schema, nil +} + +func stringValue(value *string) string { + if value == nil { + return "" + } + return *value +} diff --git a/pkg/mcp/builders/pulsar/namespace_legacy.go b/pkg/mcp/builders/pulsar/namespace_legacy.go new file mode 100644 index 0000000..3d214d7 --- /dev/null +++ b/pkg/mcp/builders/pulsar/namespace_legacy.go @@ -0,0 +1,469 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strconv" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminNamespaceLegacyToolBuilder implements the ToolBuilder interface for Pulsar Admin Namespace tools +// It provides functionality to build Pulsar namespace management tools for the legacy server +// /nolint:revive +type PulsarAdminNamespaceLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminNamespaceLegacyToolBuilder creates a new Pulsar Admin Namespace legacy tool builder instance +func NewPulsarAdminNamespaceLegacyToolBuilder() *PulsarAdminNamespaceLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_namespace", + Version: "1.0.0", + Description: "Pulsar Admin namespace management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "namespace", "admin"}, + } + + features := []string{ + "pulsar-admin-namespaces", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminNamespaceLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Namespace tool list for the legacy server +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminNamespaceLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildNamespaceTool() + handler := b.buildNamespaceHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildNamespaceTool builds the Pulsar Admin Namespace MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminNamespaceLegacyToolBuilder) buildNamespaceTool() mcp.Tool { + toolDesc := "Manage Pulsar namespaces with various operations. " + + "This tool provides functionality to work with namespaces in Apache Pulsar, " + + "including listing, creating, deleting, and performing various operations on namespaces." + + operationDesc := "Operation to perform on namespaces. Available operations:\n" + + "- list: List all namespaces for a tenant\n" + + "- get_topics: Get all topics within a namespace\n" + + "- create: Create a new namespace\n" + + "- delete: Delete an existing namespace\n" + + "- clear_backlog: Clear backlog for all topics in a namespace\n" + + "- unsubscribe: Unsubscribe from a subscription for all topics in a namespace\n" + + "- unload: Unload a namespace from the current serving broker\n" + + "- split_bundle: Split a namespace bundle" + + return mcp.NewTool("pulsar_admin_namespace", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("tenant", + mcp.Description("The tenant name. Required for 'list' operation."), + ), + mcp.WithString("namespace", + mcp.Description("The namespace name in format 'tenant/namespace'. Required for all operations except 'list'."), + ), + mcp.WithString("bundles", + mcp.Description("Number of bundles to activate when creating a namespace (default: 0 for default number of bundles). Used with 'create' operation."), + ), + mcp.WithArray("clusters", + mcp.Description("List of clusters to assign when creating a namespace. Used with 'create' operation."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "Cluster name", + }, + ), + ), + mcp.WithString("subscription", + mcp.Description("Subscription name. Required for 'unsubscribe' operation, optional for 'clear_backlog'."), + ), + mcp.WithString("bundle", + mcp.Description("Bundle name or range. Required for 'split_bundle' operation, optional for 'clear_backlog', 'unsubscribe', and 'unload'."), + ), + mcp.WithString("force", + mcp.Description("Force clear backlog (true/false). Used with 'clear_backlog' operation."), + ), + mcp.WithString("unload", + mcp.Description("Unload newly split bundles after splitting (true/false). Used with 'split_bundle' operation."), + ), + ) +} + +// buildNamespaceHandler builds the Pulsar Admin Namespace handler function +// Migrated from the original handler logic +func (b *PulsarAdminNamespaceLegacyToolBuilder) buildNamespaceHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get operation parameter + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create Pulsar client + client, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Route to appropriate handler based on operation + switch operation { + case "list": + return b.handleNamespaceList(ctx, client, request) + case "get_topics": + return b.handleNamespaceGetTopics(ctx, client, request) + case "create", "delete", "clear_backlog", "unsubscribe", "unload", "split_bundle": + // Check if write operations are allowed + if readOnly { + return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode", operation)), nil + } + + // Route to appropriate write operation handler + switch operation { + case "create": + return b.handleNamespaceCreate(ctx, client, request) + case "delete": + return b.handleNamespaceDelete(ctx, client, request) + case "clear_backlog": + return b.handleClearBacklog(ctx, client, request) + case "unsubscribe": + return b.handleUnsubscribe(ctx, client, request) + case "unload": + return b.handleUnload(ctx, client, request) + case "split_bundle": + return b.handleSplitBundle(ctx, client, request) + } + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s. Supported operations: list, get_topics, create, delete, clear_backlog, unsubscribe, unload, split_bundle", operation)), nil + } + + // Should not reach here + return mcp.NewToolResultError("Unexpected error: operation not handled"), nil + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminNamespaceLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// Operation handler functions - migrated from the original implementation + +// handleNamespaceList handles listing namespaces for a tenant +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleNamespaceList(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + tenant, err := request.RequireString("tenant") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant name: %v", err)), nil + } + + // Get namespace list + namespaces, err := client.Namespaces().GetNamespaces(tenant) + if err != nil { + return b.handleError("list namespaces", err), nil + } + + return b.marshalResponse(namespaces) +} + +// handleNamespaceGetTopics handles getting topics for a namespace +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleNamespaceGetTopics(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get topics list + topics, err := client.Namespaces().GetTopics(namespace) + if err != nil { + return b.handleError("get topics", err), nil + } + + return b.marshalResponse(topics) +} + +// handleNamespaceCreate handles creating a new namespace +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleNamespaceCreate(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional parameters + bundlesStr := request.GetString("bundles", "") + bundles := 0 + if bundlesStr != "" { + bundlesInt, err := strconv.Atoi(bundlesStr) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid bundles value, must be an integer: %v", err)), nil + } + bundles = bundlesInt + } + + clusters := request.GetStringSlice("clusters", []string{}) + + // Prepare policies + policies := utils.NewDefaultPolicies() + + // Set bundles if provided + if bundles > 0 { + if bundles < 0 || bundles > int(^uint32(0)) { // MaxInt32 + return mcp.NewToolResultError( + fmt.Sprintf("Invalid number of bundles. Number of bundles has to be in the range of (0, %d].", int(^uint32(0))), + ), nil + } + policies.Bundles = utils.NewBundlesDataWithNumBundles(bundles) + } + + // Set clusters if provided + if len(clusters) > 0 { + policies.ReplicationClusters = clusters + } + + // Create namespace + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + err = client.Namespaces().CreateNsWithPolices(ns.String(), *policies) + if err != nil { + return b.handleError("create namespace", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created %s successfully", namespace)), nil +} + +// handleNamespaceDelete handles deleting a namespace +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleNamespaceDelete(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Delete namespace + err = client.Namespaces().DeleteNamespace(namespace) + if err != nil { + return b.handleError("delete namespace", err), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted %s successfully", namespace)), nil +} + +// handleClearBacklog handles clearing the backlog for all topics in a namespace +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleClearBacklog(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional parameters + subscription := request.GetString("subscription", "") + bundle := request.GetString("bundle", "") + force := request.GetString("force", "") + forceFlag := force == "true" + + // If not forced, return an error requiring explicit force flag + if !forceFlag { + return mcp.NewToolResultError( + "Clear backlog operation requires explicit confirmation. Please set force=true to proceed.", + ), nil + } + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Handle different backlog clearing scenarios + var clearErr error + //nolint:gocritic + if subscription != "" { + if bundle != "" { + clearErr = client.Namespaces().ClearNamespaceBundleBacklogForSubscription(*ns, bundle, subscription) + } else { + clearErr = client.Namespaces().ClearNamespaceBacklogForSubscription(*ns, subscription) + } + } else if bundle != "" { + clearErr = client.Namespaces().ClearNamespaceBundleBacklog(*ns, bundle) + } else { + clearErr = client.Namespaces().ClearNamespaceBacklog(*ns) + } + + if clearErr != nil { + return b.handleError("clear backlog", clearErr), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully cleared backlog for all topics in namespace %s", namespace), + ), nil +} + +// handleUnsubscribe handles unsubscribing the specified subscription for all topics of a namespace +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleUnsubscribe(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + subscription, err := request.RequireString("subscription") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + // Get optional bundle + bundle := request.GetString("bundle", "") + + // Get namespace name + ns, err := utils.GetNamespaceName(namespace) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + } + + // Unsubscribe namespace + var unsubErr error + if bundle == "" { + unsubErr = client.Namespaces().UnsubscribeNamespace(*ns, subscription) + } else { + unsubErr = client.Namespaces().UnsubscribeNamespaceBundle(*ns, bundle, subscription) + } + + if unsubErr != nil { + return b.handleError("unsubscribe", unsubErr), nil + } + + if bundle == "" { + return mcp.NewToolResultText( + fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s", + subscription, namespace), + ), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Successfully unsubscribed the subscription %s for all topics of the namespace %s with bundle range %s", + subscription, namespace, bundle), + ), nil +} + +// handleUnload handles unloading a namespace from the current serving broker +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleUnload(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + // Get optional bundle + bundle := request.GetString("bundle", "") + + // Unload namespace + var unloadErr error + if bundle == "" { + unloadErr = client.Namespaces().Unload(namespace) + } else { + unloadErr = client.Namespaces().UnloadNamespaceBundle(namespace, bundle) + } + + if unloadErr != nil { + return b.handleError("unload namespace", unloadErr), nil + } + + if bundle == "" { + return mcp.NewToolResultText( + fmt.Sprintf("Unloaded namespace %s successfully", namespace), + ), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Unloaded namespace %s with bundle %s successfully", namespace, bundle), + ), nil +} + +// handleSplitBundle handles splitting a namespace bundle +func (b *PulsarAdminNamespaceLegacyToolBuilder) handleSplitBundle(_ context.Context, client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + namespace, err := request.RequireString("namespace") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + } + + bundle, err := request.RequireString("bundle") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get bundle: %v", err)), nil + } + + // Get optional unload flag + unload := request.GetString("unload", "") == "true" + + // Split namespace bundle + err = client.Namespaces().SplitNamespaceBundle(namespace, bundle, unload) + if err != nil { + return b.handleError("split namespace bundle", err), nil + } + + return mcp.NewToolResultText( + fmt.Sprintf("Split namespace bundle %s successfully", bundle), + ), nil +} diff --git a/pkg/mcp/builders/pulsar/namespace_test.go b/pkg/mcp/builders/pulsar/namespace_test.go new file mode 100644 index 0000000..88c7244 --- /dev/null +++ b/pkg/mcp/builders/pulsar/namespace_test.go @@ -0,0 +1,140 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminNamespaceToolBuilder(t *testing.T) { + builder := NewPulsarAdminNamespaceToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_namespace", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-namespaces") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-namespaces"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_namespace", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-namespaces"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_namespace", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-namespaces"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminNamespaceToolSchema(t *testing.T) { + builder := NewPulsarAdminNamespaceToolBuilder() + tool, err := builder.buildNamespaceTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_namespace", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "operation", + "tenant", + "namespace", + "bundles", + "clusters", + "subscription", + "bundle", + "force", + "unload", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, pulsarAdminNamespaceOperationDesc, operationSchema.Description) + + tenantSchema := schema.Properties["tenant"] + require.NotNil(t, tenantSchema) + assert.Equal(t, pulsarAdminNamespaceTenantDesc, tenantSchema.Description) +} + +func TestPulsarAdminNamespaceToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewPulsarAdminNamespaceToolBuilder() + handler := builder.buildNamespaceHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminNamespaceInput{ + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/pulsar_admin_namespace_tools.go b/pkg/mcp/pulsar_admin_namespace_tools.go index a31b0e3..a8526a5 100644 --- a/pkg/mcp/pulsar_admin_namespace_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_tools.go @@ -16,16 +16,15 @@ package mcp import ( "context" - "fmt" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" - pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminNamespaceTools creates Pulsar Admin Namespace tool list using the new builder pattern -func PulsarAdminNamespaceTools(readOnly bool, features []string) []server.ServerTool { - builder := pulsarBuilders.NewPulsarAdminNamespaceToolBuilder() +// PulsarAdminAddNamespaceTools registers Pulsar admin namespace tools. +func PulsarAdminAddNamespaceTools(s *sdk.Server, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminNamespaceToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, Features: features, @@ -33,19 +32,10 @@ func PulsarAdminNamespaceTools(readOnly bool, features []string) []server.Server tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - fmt.Printf("Failed to build Pulsar Admin Namespace tools: %v\n", err) - return nil + return } - return tools -} - -// PulsarAdminAddNamespaceTools adds namespace-related tools to the MCP server -func PulsarAdminAddNamespaceTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarAdminNamespaceTools(readOnly, features) - for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_namespace_tools_legacy.go b/pkg/mcp/pulsar_admin_namespace_tools_legacy.go new file mode 100644 index 0000000..e985b14 --- /dev/null +++ b/pkg/mcp/pulsar_admin_namespace_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddNamespaceToolsLegacy registers Pulsar admin namespace tools for the legacy server. +func PulsarAdminAddNamespaceToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminNamespaceLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 8523ca7cc4839438b532b85d561dc40723356227 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 10:32:11 +0800 Subject: [PATCH 58/85] feat: migrate pulsar schema tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/schema.go | 206 +++++++------ pkg/mcp/builders/pulsar/schema_legacy.go | 296 +++++++++++++++++++ pkg/mcp/builders/pulsar/schema_test.go | 143 +++++++++ pkg/mcp/pulsar_admin_schemas_tools.go | 20 +- pkg/mcp/pulsar_admin_schemas_tools_legacy.go | 41 +++ 6 files changed, 604 insertions(+), 104 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/schema_legacy.go create mode 100644 pkg/mcp/builders/pulsar/schema_test.go create mode 100644 pkg/mcp/pulsar_admin_schemas_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 46409fe..59b0b2d 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -123,7 +123,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSchemasTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSchemasToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSubscriptionTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTenantToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/schema.go b/pkg/mcp/builders/pulsar/schema.go index 13fc41a..d93a9a9 100644 --- a/pkg/mcp/builders/pulsar/schema.go +++ b/pkg/mcp/builders/pulsar/schema.go @@ -24,13 +24,40 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminSchemaInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Topic string `json:"topic"` + Version *float64 `json:"version,omitempty"` + Filename *string `json:"filename,omitempty"` +} + +const ( + pulsarAdminSchemaResourceDesc = "Resource to operate on. Available resources:\n" + + "- schema: The schema configuration for a specific topic" + pulsarAdminSchemaOperationDesc = "Operation to perform. Available operations:\n" + + "- get: Get the schema for a topic (optionally by version)\n" + + "- upload: Upload a new schema for a topic (requires namespace admin permissions)\n" + + "- delete: Delete the schema for a topic (requires namespace admin permissions)" + pulsarAdminSchemaTopicDesc = "The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. " + + "A schema is always associated with a specific topic. The schema will be enforced for all producers " + + "and consumers of this topic." + pulsarAdminSchemaVersionDesc = "The schema version (optional for 'get' operation). " + + "Pulsar maintains a versioned history of schemas. If not specified, the latest schema version will be returned. " + + "Use this parameter to retrieve a specific historical version of the schema." + pulsarAdminSchemaFilenameDesc = "The file path of the schema definition (required for 'upload' operation). " + + "The file should contain a JSON object with 'type', 'schema', and optionally 'properties' fields. " + + "Supported schema types include: AVRO, JSON, PROTOBUF, PROTOBUF_NATIVE, KEY_VALUE, BYTES, STRING, " + + "INT8, INT16, INT32, INT64, FLOAT, DOUBLE, BOOLEAN, NONE." +) + // PulsarAdminSchemaToolBuilder implements the ToolBuilder interface for Pulsar Admin Schema tools // It provides functionality to build Pulsar schema management tools // /nolint:revive @@ -62,7 +89,7 @@ func NewPulsarAdminSchemaToolBuilder() *PulsarAdminSchemaToolBuilder { // BuildTools builds the Pulsar Admin Schema tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminSchemaToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminSchemaToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -74,11 +101,14 @@ func (b *PulsarAdminSchemaToolBuilder) BuildTools(_ context.Context, config buil } // Build tools - tool := b.buildSchemaTool() + tool, err := b.buildSchemaTool() + if err != nil { + return nil, err + } handler := b.buildSchemaHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminSchemaInput, any]{ Tool: tool, Handler: handler, }, @@ -87,7 +117,12 @@ func (b *PulsarAdminSchemaToolBuilder) BuildTools(_ context.Context, config buil // buildSchemaTool builds the Pulsar Admin Schema MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminSchemaToolBuilder) buildSchemaTool() mcp.Tool { +func (b *PulsarAdminSchemaToolBuilder) buildSchemaTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminSchemaInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar schemas for topics. " + "Schemas in Pulsar define the structure of message data, enabling data validation, evolution, and interoperability. " + "Pulsar supports multiple schema types including AVRO, JSON, PROTOBUF, etc., allowing strong typing of message content. " + @@ -95,96 +130,67 @@ func (b *PulsarAdminSchemaToolBuilder) buildSchemaTool() mcp.Tool { "Operations include getting, uploading, and deleting schemas. " + "Requires namespace admin permissions for all operations." - resourceDesc := "Resource to operate on. Available resources:\n" + - "- schema: The schema configuration for a specific topic" - - operationDesc := "Operation to perform. Available operations:\n" + - "- get: Get the schema for a topic (optionally by version)\n" + - "- upload: Upload a new schema for a topic (requires namespace admin permissions)\n" + - "- delete: Delete the schema for a topic (requires namespace admin permissions)" - - return mcp.NewTool("pulsar_admin_schema", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ - "A schema is always associated with a specific topic. The schema will be enforced for all producers "+ - "and consumers of this topic."), - ), - mcp.WithNumber("version", - mcp.Description("The schema version (optional for 'get' operation). "+ - "Pulsar maintains a versioned history of schemas. If not specified, the latest schema version will be returned. "+ - "Use this parameter to retrieve a specific historical version of the schema."), - ), - mcp.WithString("filename", - mcp.Description("The file path of the schema definition (required for 'upload' operation). "+ - "The file should contain a JSON object with 'type', 'schema', and optionally 'properties' fields. "+ - "Supported schema types include: AVRO, JSON, PROTOBUF, PROTOBUF_NATIVE, KEY_VALUE, BYTES, STRING, INT8, INT16, INT32, INT64, FLOAT, DOUBLE, BOOLEAN, NONE."), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_schema", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildSchemaHandler builds the Pulsar Admin Schema handler function // Migrated from the original handler logic -func (b *PulsarAdminSchemaToolBuilder) buildSchemaHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil +func (b *PulsarAdminSchemaToolBuilder) buildSchemaHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminSchemaInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminSchemaInput) (*sdk.CallToolResult, any, error) { + resource := strings.ToLower(input.Resource) + if resource == "" { + return nil, nil, fmt.Errorf("missing required parameter 'resource'") } - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + operation := strings.ToLower(input.Operation) + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'") } - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil + topic := input.Topic + if topic == "" { + return nil, nil, fmt.Errorf("missing required parameter 'topic'. please provide the fully qualified topic name") } - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - // Validate write operations in read-only mode if readOnly && (operation == "upload" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Verify resource type if resource != "schema" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'schema' is supported", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. only 'schema' is supported", resource) } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Create the admin client admin, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to get admin client: %v", err) } // Dispatch based on operation switch operation { case "get": - return b.handleSchemaGet(admin, topic, request) + result, err := b.handleSchemaGet(admin, topic, input) + return result, nil, err case "upload": - return b.handleSchemaUpload(admin, topic, request) + result, err := b.handleSchemaUpload(admin, topic, input) + return result, nil, err case "delete": - return b.handleSchemaDelete(admin, topic) + result, err := b.handleSchemaDelete(admin, topic) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unknown operation: %s", operation) } } } @@ -201,97 +207,121 @@ func (b *PulsarAdminSchemaToolBuilder) prettyPrint(data []byte) ([]byte, error) // Operation handler functions - migrated from the original implementation // handleSchemaGet handles getting a schema -func (b *PulsarAdminSchemaToolBuilder) handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSchemaToolBuilder) handleSchemaGet(admin cmdutils.Client, topic string, input pulsarAdminSchemaInput) (*sdk.CallToolResult, error) { // Get optional version parameter - version := request.GetFloat("version", 0) + var version float64 + if input.Version != nil { + version = *input.Version + } // Get schema info if version != 0 { // Get schema by version info, err := admin.Schemas().GetSchemaInfoByVersion(topic, int64(version)) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema version %v for topic '%s': %v", - version, topic, err)), nil + return nil, fmt.Errorf("failed to get schema version %v for topic '%s': %v", version, topic, err) } jsonBytes, err := json.Marshal(info) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema information: %v", err)), nil + return nil, fmt.Errorf("failed to process schema information: %v", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return textResult(string(jsonBytes)), nil } // Get latest schema schemaInfoWithVersion, err := admin.Schemas().GetSchemaInfoWithVersion(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get latest schema for topic '%s': %v", - topic, err)), nil + return nil, fmt.Errorf("failed to get latest schema for topic '%s': %v", topic, err) } // Format the output var output bytes.Buffer name, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema name: %v", err)), nil + return nil, fmt.Errorf("failed to process schema name: %v", err) } schemaType, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Type) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema type: %v", err)), nil + return nil, fmt.Errorf("failed to process schema type: %v", err) } properties, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Properties) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema properties: %v", err)), nil + return nil, fmt.Errorf("failed to process schema properties: %v", err) } schema, err := b.prettyPrint(schemaInfoWithVersion.SchemaInfo.Schema) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to format schema definition: %v", err)), nil + return nil, fmt.Errorf("failed to format schema definition: %v", err) } fmt.Fprintf(&output, "{\n name: %s \n schema: %s\n type: %s \n properties: %s\n version: %d\n}", string(name), string(schema), string(schemaType), string(properties), schemaInfoWithVersion.Version) - return mcp.NewToolResultText(output.String()), nil + return textResult(output.String()), nil } // handleSchemaUpload handles uploading a schema -func (b *PulsarAdminSchemaToolBuilder) handleSchemaUpload(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - filename, err := request.RequireString("filename") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'filename' for schema.upload. Please provide the path to the schema definition file: %v", err)), nil +func (b *PulsarAdminSchemaToolBuilder) handleSchemaUpload(admin cmdutils.Client, topic string, input pulsarAdminSchemaInput) (*sdk.CallToolResult, error) { + if input.Filename == nil || *input.Filename == "" { + return nil, fmt.Errorf("missing required parameter 'filename' for schema.upload. please provide the path to the schema definition file") } + filename := *input.Filename // Read and parse the schema file var payload utils.PostSchemaPayload file, err := os.ReadFile(filepath.Clean(filename)) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to read schema file '%s': %v", filename, err)), nil + return nil, fmt.Errorf("failed to read schema file '%s': %v", filename, err) } err = json.Unmarshal(file, &payload) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse schema file '%s'. The file must contain valid JSON with 'type', 'schema', and optionally 'properties' fields: %v", - filename, err)), nil + return nil, fmt.Errorf("failed to parse schema file '%s'. the file must contain valid JSON with 'type', 'schema', and optionally 'properties' fields: %v", + filename, err) } // Upload the schema err = admin.Schemas().CreateSchemaByPayload(topic, payload) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to upload schema for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to upload schema for topic '%s': %v", topic, err) } - return mcp.NewToolResultText(fmt.Sprintf("Schema uploaded successfully for topic '%s'", topic)), nil + return textResult(fmt.Sprintf("Schema uploaded successfully for topic '%s'", topic)), nil } // handleSchemaDelete handles deleting a schema -func (b *PulsarAdminSchemaToolBuilder) handleSchemaDelete(admin cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSchemaToolBuilder) handleSchemaDelete(admin cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Delete the schema err := admin.Schemas().DeleteSchema(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete schema for topic '%s': %v", topic, err)), nil + return nil, fmt.Errorf("failed to delete schema for topic '%s': %v", topic, err) } - return mcp.NewToolResultText(fmt.Sprintf("Schema deleted successfully for topic '%s'", topic)), nil + return textResult(fmt.Sprintf("Schema deleted successfully for topic '%s'", topic)), nil +} + +func buildPulsarAdminSchemaInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminSchemaInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminSchemaResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminSchemaOperationDesc) + setSchemaDescription(schema, "topic", pulsarAdminSchemaTopicDesc) + setSchemaDescription(schema, "version", pulsarAdminSchemaVersionDesc) + setSchemaDescription(schema, "filename", pulsarAdminSchemaFilenameDesc) + + normalizeAdditionalProperties(schema) + return schema, nil } diff --git a/pkg/mcp/builders/pulsar/schema_legacy.go b/pkg/mcp/builders/pulsar/schema_legacy.go new file mode 100644 index 0000000..4a111d2 --- /dev/null +++ b/pkg/mcp/builders/pulsar/schema_legacy.go @@ -0,0 +1,296 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "os" + "path/filepath" + "strings" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminSchemaLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar Admin Schema tools. +// It provides functionality to build Pulsar schema management tools for the legacy server. +// /nolint:revive +type PulsarAdminSchemaLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSchemaLegacyToolBuilder creates a new Pulsar Admin Schema legacy tool builder instance. +func NewPulsarAdminSchemaLegacyToolBuilder() *PulsarAdminSchemaLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_schema", + Version: "1.0.0", + Description: "Pulsar Admin schema management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "schema", "admin"}, + } + + features := []string{ + "pulsar-admin-schemas", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSchemaLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Admin Schema tool list for the legacy server. +func (b *PulsarAdminSchemaLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildSchemaTool() + handler := b.buildSchemaHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildSchemaTool builds the Pulsar Admin Schema MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminSchemaLegacyToolBuilder) buildSchemaTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar schemas for topics. " + + "Schemas in Pulsar define the structure of message data, enabling data validation, evolution, and interoperability. " + + "Pulsar supports multiple schema types including AVRO, JSON, PROTOBUF, etc., allowing strong typing of message content. " + + "Schema versioning ensures backward/forward compatibility as data structures evolve over time. " + + "Operations include getting, uploading, and deleting schemas. " + + "Requires namespace admin permissions for all operations." + + resourceDesc := "Resource to operate on. Available resources:\n" + + "- schema: The schema configuration for a specific topic" + + operationDesc := "Operation to perform. Available operations:\n" + + "- get: Get the schema for a topic (optionally by version)\n" + + "- upload: Upload a new schema for a topic (requires namespace admin permissions)\n" + + "- delete: Delete the schema for a topic (requires namespace admin permissions)" + + return mcp.NewTool("pulsar_admin_schema", + mcp.WithDescription(toolDesc), + mcp.WithString("resource", mcp.Required(), + mcp.Description(resourceDesc), + ), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc), + ), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ + "A schema is always associated with a specific topic. The schema will be enforced for all producers "+ + "and consumers of this topic."), + ), + mcp.WithNumber("version", + mcp.Description("The schema version (optional for 'get' operation). "+ + "Pulsar maintains a versioned history of schemas. If not specified, the latest schema version will be returned. "+ + "Use this parameter to retrieve a specific historical version of the schema."), + ), + mcp.WithString("filename", + mcp.Description("The file path of the schema definition (required for 'upload' operation). "+ + "The file should contain a JSON object with 'type', 'schema', and optionally 'properties' fields. "+ + "Supported schema types include: AVRO, JSON, PROTOBUF, PROTOBUF_NATIVE, KEY_VALUE, BYTES, STRING, INT8, INT16, INT32, INT64, FLOAT, DOUBLE, BOOLEAN, NONE."), + ), + ) +} + +// buildSchemaHandler builds the Pulsar Admin Schema handler function +// Migrated from the original handler logic +func (b *PulsarAdminSchemaLegacyToolBuilder) buildSchemaHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get required parameters + resource, err := request.RequireString("resource") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + } + + operation, err := request.RequireString("operation") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + } + + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil + } + + // Normalize parameters + resource = strings.ToLower(resource) + operation = strings.ToLower(operation) + + // Validate write operations in read-only mode + if readOnly && (operation == "upload" || operation == "delete") { + return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + } + + // Verify resource type + if resource != "schema" { + return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'schema' is supported", resource)), nil + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Create the admin client + admin, err := session.GetAdminClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + } + + // Dispatch based on operation + switch operation { + case "get": + return b.handleSchemaGet(admin, topic, request) + case "upload": + return b.handleSchemaUpload(admin, topic, request) + case "delete": + return b.handleSchemaDelete(admin, topic) + default: + return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + } + } +} + +// Unified error handling and utility functions + +// prettyPrint formats JSON bytes with indentation +func (b *PulsarAdminSchemaLegacyToolBuilder) prettyPrint(data []byte) ([]byte, error) { + var out bytes.Buffer + err := json.Indent(&out, data, "", " ") + return out.Bytes(), err +} + +// Operation handler functions - migrated from the original implementation + +// handleSchemaGet handles getting a schema +func (b *PulsarAdminSchemaLegacyToolBuilder) handleSchemaGet(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get optional version parameter + version := request.GetFloat("version", 0) + + // Get schema info + if version != 0 { + // Get schema by version + info, err := admin.Schemas().GetSchemaInfoByVersion(topic, int64(version)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema version %v for topic '%s': %v", + version, topic, err)), nil + } + + jsonBytes, err := json.Marshal(info) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema information: %v", err)), nil + } + + return mcp.NewToolResultText(string(jsonBytes)), nil + } + // Get latest schema + schemaInfoWithVersion, err := admin.Schemas().GetSchemaInfoWithVersion(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get latest schema for topic '%s': %v", + topic, err)), nil + } + + // Format the output + var output bytes.Buffer + name, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema name: %v", err)), nil + } + + schemaType, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Type) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema type: %v", err)), nil + } + + properties, err := json.Marshal(schemaInfoWithVersion.SchemaInfo.Properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to process schema properties: %v", err)), nil + } + + schema, err := b.prettyPrint(schemaInfoWithVersion.SchemaInfo.Schema) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to format schema definition: %v", err)), nil + } + + fmt.Fprintf(&output, "{\n name: %s \n schema: %s\n type: %s \n properties: %s\n version: %d\n}", + string(name), string(schema), string(schemaType), string(properties), schemaInfoWithVersion.Version) + + return mcp.NewToolResultText(output.String()), nil +} + +// handleSchemaUpload handles uploading a schema +func (b *PulsarAdminSchemaLegacyToolBuilder) handleSchemaUpload(admin cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + filename, err := request.RequireString("filename") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'filename' for schema.upload. Please provide the path to the schema definition file: %v", err)), nil + } + + // Read and parse the schema file + var payload utils.PostSchemaPayload + file, err := os.ReadFile(filepath.Clean(filename)) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to read schema file '%s': %v", filename, err)), nil + } + + err = json.Unmarshal(file, &payload) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse schema file '%s'. The file must contain valid JSON with 'type', 'schema', and optionally 'properties' fields: %v", + filename, err)), nil + } + + // Upload the schema + err = admin.Schemas().CreateSchemaByPayload(topic, payload) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to upload schema for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Schema uploaded successfully for topic '%s'", topic)), nil +} + +// handleSchemaDelete handles deleting a schema +func (b *PulsarAdminSchemaLegacyToolBuilder) handleSchemaDelete(admin cmdutils.Client, topic string) (*mcp.CallToolResult, error) { + // Delete the schema + err := admin.Schemas().DeleteSchema(topic) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete schema for topic '%s': %v", topic, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Schema deleted successfully for topic '%s'", topic)), nil +} diff --git a/pkg/mcp/builders/pulsar/schema_test.go b/pkg/mcp/builders/pulsar/schema_test.go new file mode 100644 index 0000000..c7f49dd --- /dev/null +++ b/pkg/mcp/builders/pulsar/schema_test.go @@ -0,0 +1,143 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminSchemaToolBuilder(t *testing.T) { + builder := NewPulsarAdminSchemaToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_schema", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-schemas") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-schemas"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + require.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_schema", tools[0].Definition().Name) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-schemas"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + require.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_schema", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-schemas"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminSchemaToolSchema(t *testing.T) { + builder := NewPulsarAdminSchemaToolBuilder() + tool, err := builder.buildSchemaTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_schema", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation", "topic"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{"resource", "operation", "topic", "version", "filename"} + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminSchemaResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, pulsarAdminSchemaOperationDesc, operationSchema.Description) + + topicSchema := schema.Properties["topic"] + require.NotNil(t, topicSchema) + assert.Equal(t, pulsarAdminSchemaTopicDesc, topicSchema.Description) + + versionSchema := schema.Properties["version"] + require.NotNil(t, versionSchema) + assert.Equal(t, pulsarAdminSchemaVersionDesc, versionSchema.Description) + + filenameSchema := schema.Properties["filename"] + require.NotNil(t, filenameSchema) + assert.Equal(t, pulsarAdminSchemaFilenameDesc, filenameSchema.Description) +} + +func TestPulsarAdminSchemaToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewPulsarAdminSchemaToolBuilder() + handler := builder.buildSchemaHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminSchemaInput{ + Resource: "schema", + Operation: "upload", + Topic: "persistent://tenant/ns/topic", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/pulsar_admin_schemas_tools.go b/pkg/mcp/pulsar_admin_schemas_tools.go index fd8ea01..0de3a73 100644 --- a/pkg/mcp/pulsar_admin_schemas_tools.go +++ b/pkg/mcp/pulsar_admin_schemas_tools.go @@ -16,15 +16,14 @@ package mcp import ( "context" - "fmt" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminSchemaTools creates Pulsar Admin Schema tool list using the new builder pattern -func PulsarAdminSchemaTools(readOnly bool, features []string) []server.ServerTool { +// PulsarAdminAddSchemasTools adds schema-related tools to the MCP server. +func PulsarAdminAddSchemasTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarBuilders.NewPulsarAdminSchemaToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -33,19 +32,10 @@ func PulsarAdminSchemaTools(readOnly bool, features []string) []server.ServerToo tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - fmt.Printf("Failed to build Pulsar Admin Schema tools: %v\n", err) - return nil + return } - return tools -} - -// PulsarAdminAddSchemasTools adds schema-related tools to the MCP server -func PulsarAdminAddSchemasTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarAdminSchemaTools(readOnly, features) - for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_schemas_tools_legacy.go b/pkg/mcp/pulsar_admin_schemas_tools_legacy.go new file mode 100644 index 0000000..3bfa58f --- /dev/null +++ b/pkg/mcp/pulsar_admin_schemas_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddSchemasToolsLegacy adds schema-related tools to the legacy MCP server. +func PulsarAdminAddSchemasToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarBuilders.NewPulsarAdminSchemaLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 567314e1bc2116a31fff62632da8b076bdb328c3 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 10:51:35 +0800 Subject: [PATCH 59/85] feat: migrate pulsar admin functions tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/functions.go | 556 ++++++++------- pkg/mcp/builders/pulsar/functions_legacy.go | 652 ++++++++++++++++++ pkg/mcp/builders/pulsar/functions_test.go | 69 +- pkg/mcp/pulsar_admin_functions_tools.go | 6 +- .../pulsar_admin_functions_tools_legacy.go | 41 ++ 6 files changed, 1070 insertions(+), 256 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/functions_legacy.go create mode 100644 pkg/mcp/pulsar_admin_functions_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 59b0b2d..28fdbea 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -128,7 +128,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddTenantToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSinksTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddFunctionsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddFunctionsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSourcesTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicPolicyTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/functions.go b/pkg/mcp/builders/pulsar/functions.go index 6bf8789..628204c 100644 --- a/pkg/mcp/builders/pulsar/functions.go +++ b/pkg/mcp/builders/pulsar/functions.go @@ -20,13 +20,114 @@ import ( "fmt" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminFunctionsInput struct { + Operation string `json:"operation"` + Tenant string `json:"tenant"` + Namespace string `json:"namespace"` + Name *string `json:"name,omitempty"` + ClassName *string `json:"classname,omitempty"` + Inputs []string `json:"inputs,omitempty"` + Output *string `json:"output,omitempty"` + Jar *string `json:"jar,omitempty"` + Py *string `json:"py,omitempty"` + GoFile *string `json:"go,omitempty"` + Parallelism *int `json:"parallelism,omitempty"` + UserConfig map[string]any `json:"userConfig,omitempty"` + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + Topic *string `json:"topic,omitempty"` + TriggerValue *string `json:"triggerValue,omitempty"` +} + +const ( + pulsarAdminFunctionsOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all functions under a specific tenant and namespace\n" + + "- get: Get the configuration of a function\n" + + "- status: Get the runtime status of a function (instances, metrics)\n" + + "- stats: Get detailed statistics of a function (throughput, processing latency)\n" + + "- querystate: Query state stored by a stateful function for a specific key\n" + + "- create: Deploy a new function with specified parameters\n" + + "- update: Update the configuration of an existing function\n" + + "- delete: Delete a function\n" + + "- start: Start a stopped function\n" + + "- stop: Stop a running function\n" + + "- restart: Restart a function\n" + + "- putstate: Store state in a function's state store\n" + + "- trigger: Manually trigger a function with a specific value" + pulsarAdminFunctionsTenantDesc = "The tenant name. Tenants are the primary organizational unit in Pulsar, " + + "providing multi-tenancy and resource isolation. Functions deployed within a tenant " + + "inherit its permissions and resource quotas." + pulsarAdminFunctionsNamespaceDesc = "The namespace name. Namespaces are logical groupings of topics and functions " + + "within a tenant. They encapsulate configuration policies and access control. " + + "Functions in a namespace typically process topics within the same namespace." + pulsarAdminFunctionsNameDesc = "The function name. Required for all operations except 'list'. " + + "Names should be descriptive of the function's purpose and must be unique within a namespace. " + + "Function names are used in metrics, logs, and when addressing the function via APIs." + pulsarAdminFunctionsClassNameDesc = "The fully qualified class name implementing the function. Required for 'create' operation, optional for 'update'. " + + "For Java functions, this should be the class that implements pulsar function interfaces. " + + "For Python, this MUST be in format of `.` - for example: " + + "if file is '/path/to/exclamation.py' with class 'ExclamationFunction', classname must be 'exclamation.ExclamationFunction'; " + + "if file is '/path/to/double_number.py' with class 'DoubleNumber', classname must be 'double_number.DoubleNumber'. " + + "Common error: using just the class name 'DoubleNumber' (without filename prefix) will cause function creation to fail. " + + "Go functions should specify the 'main' function of the binary." + pulsarAdminFunctionsInputsDesc = "The input topics for the function (array of strings). Optional for 'create' and 'update' operations. " + + "Topics must be specified in the format 'persistent://tenant/namespace/topic'. " + + "Functions can consume from multiple topics, each with potentially different serialization types. " + + "All input topics should exist before the function is created." + pulsarAdminFunctionsOutputDesc = "The output topic for the function results. Optional for 'create' and 'update' operations. " + + "Specified in the format 'persistent://tenant/namespace/topic'. " + + "If not set, the function will not produce any output to topics. " + + "The output topic will be automatically created if it doesn't exist." + pulsarAdminFunctionsJarDesc = "Path to the JAR file containing the function code. Optional for 'create' and 'update' operations. " + + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. " + + "Can be a local path or supported URL protocol accessible to the Pulsar broker. " + + "For Java functions, this should contain all dependencies for the function. " + + "The jar file must be compatible with the Pulsar Functions API." + pulsarAdminFunctionsPyDesc = "Path to the Python file containing the function code. Optional for 'create' and 'update' operations. " + + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. " + + "Can be a local path or supported URL protocol accessible to the Pulsar broker. " + + "For Python functions, this should be the file path to the Python file, in format of `.py`, `.zip`, or `.whl`. " + + "The Python file must be compatible with the Pulsar Functions API." + pulsarAdminFunctionsGoDesc = "Path to the Go file containing the function code. Optional for 'create' and 'update' operations. " + + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. " + + "Can be a local path or supported URL protocol accessible to the Pulsar broker. " + + "For Go functions, this should be the file path to the Go file, in format of executable binary. " + + "The Go file must be compatible with the Pulsar Functions API." + pulsarAdminFunctionsParallelismDesc = "The parallelism factor of the function. Optional for 'create' and 'update' operations. " + + "Determines how many instances of the function will run concurrently. " + + "Higher values improve throughput but require more resources. " + + "For stateful functions, consider how parallelism affects state consistency. " + + "Default is 1 (single instance)." + pulsarAdminFunctionsUserConfigDesc = "User-defined config key/values. Optional for 'create' and 'update' operations. " + + "Provides configuration parameters accessible to the function at runtime. " + + "Specify as a JSON object with string, number, or boolean values. " + + "Common configs include connection parameters, batch sizes, or feature toggles. " + + "Example: {\"maxBatchSize\": 100, \"connectionString\": \"host:port\", \"debugMode\": true}" + pulsarAdminFunctionsKeyDesc = "The state key. Required for 'querystate' and 'putstate' operations. " + + "Keys are used to identify values in the function's state store. " + + "They should be reasonable in length and follow a consistent pattern. " + + "State keys are typically limited to 128 characters." + pulsarAdminFunctionsValueDesc = "The state value. Required for 'putstate' operation. " + + "Values are stored in the function's state system. " + + "For simple values, specify as a string. For complex objects, use JSON-serialized strings. " + + "State values are typically limited to 1MB in size." + pulsarAdminFunctionsTopicDesc = "The specific topic name that the function should consume from. Optional for 'trigger' operation. " + + "Specified in the format 'persistent://tenant/namespace/topic'. " + + "Used when triggering a function that consumes from multiple topics. " + + "If not provided, the first input topic will be used." + pulsarAdminFunctionsTriggerValueDesc = "The value with which to trigger the function. Required for 'trigger' operation. " + + "This value will be passed to the function as if it were a message from the input topic. " + + "String values are sent as is; for typed values, ensure proper formatting based on function expectations. " + + "The function processes this value just like a normal message." +) + // PulsarAdminFunctionsToolBuilder implements the ToolBuilder interface for Pulsar admin functions operations // It provides functionality to build Pulsar functions management tools // /nolint:revive @@ -58,7 +159,7 @@ func NewPulsarAdminFunctionsToolBuilder() *PulsarAdminFunctionsToolBuilder { // BuildTools builds the Pulsar admin functions tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminFunctionsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminFunctionsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -70,11 +171,14 @@ func (b *PulsarAdminFunctionsToolBuilder) BuildTools(_ context.Context, config b } // Build tools - tool := b.buildPulsarAdminFunctionsTool() + tool, err := b.buildPulsarAdminFunctionsTool() + if err != nil { + return nil, err + } handler := b.buildPulsarAdminFunctionsHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminFunctionsInput, any]{ Tool: tool, Handler: handler, }, @@ -83,7 +187,12 @@ func (b *PulsarAdminFunctionsToolBuilder) BuildTools(_ context.Context, config b // buildPulsarAdminFunctionsTool builds the Pulsar admin functions MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsTool() mcp.Tool { +func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminFunctionsInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar Functions for stream processing. " + "Pulsar Functions are lightweight compute processes that can consume messages from one or more Pulsar topics, " + "apply user-defined processing logic, and produce results to another topic. " + @@ -94,135 +203,21 @@ func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsTool() mcp.To "This tool provides complete lifecycle management including deployment, monitoring, scaling, " + "state management, and triggering. Functions require proper permissions to access their topics." - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all functions under a specific tenant and namespace\n" + - "- get: Get the configuration of a function\n" + - "- status: Get the runtime status of a function (instances, metrics)\n" + - "- stats: Get detailed statistics of a function (throughput, processing latency)\n" + - "- querystate: Query state stored by a stateful function for a specific key\n" + - "- create: Deploy a new function with specified parameters\n" + - "- update: Update the configuration of an existing function\n" + - "- delete: Delete a function\n" + - "- start: Start a stopped function\n" + - "- stop: Stop a running function\n" + - "- restart: Restart a function\n" + - "- putstate: Store state in a function's state store\n" + - "- trigger: Manually trigger a function with a specific value" - - return mcp.NewTool("pulsar_admin_functions", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc)), - mcp.WithString("tenant", mcp.Required(), - mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ - "providing multi-tenancy and resource isolation. Functions deployed within a tenant "+ - "inherit its permissions and resource quotas.")), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name. Namespaces are logical groupings of topics and functions "+ - "within a tenant. They encapsulate configuration policies and access control. "+ - "Functions in a namespace typically process topics within the same namespace.")), - mcp.WithString("name", - mcp.Description("The function name. Required for all operations except 'list'. "+ - "Names should be descriptive of the function's purpose and must be unique within a namespace. "+ - "Function names are used in metrics, logs, and when addressing the function via APIs.")), - // Additional parameters for specific operations - mcp.WithString("classname", - mcp.Description("The fully qualified class name implementing the function. Required for 'create' operation, optional for 'update'. "+ - "For Java functions, this should be the class that implements pulsar function interfaces. "+ - "For Python, this MUST be in format of `.` - for example: "+ - "if file is '/path/to/exclamation.py' with class 'ExclamationFunction', classname must be 'exclamation.ExclamationFunction'; "+ - "if file is '/path/to/double_number.py' with class 'DoubleNumber', classname must be 'double_number.DoubleNumber'. "+ - "Common error: using just the class name 'DoubleNumber' (without filename prefix) will cause function creation to fail. "+ - "Go functions should specify the 'main' function of the binary.")), - mcp.WithArray("inputs", - mcp.Description("The input topics for the function (array of strings). Optional for 'create' and 'update' operations. "+ - "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ - "Functions can consume from multiple topics, each with potentially different serialization types. "+ - "All input topics should exist before the function is created."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "input topic", - }, - ), - ), - mcp.WithString("output", - mcp.Description("The output topic for the function results. Optional for 'create' and 'update' operations. "+ - "Specified in the format 'persistent://tenant/namespace/topic'. "+ - "If not set, the function will not produce any output to topics. "+ - "The output topic will be automatically created if it doesn't exist.")), - mcp.WithString("jar", - mcp.Description("Path to the JAR file containing the function code. Optional for 'create' and 'update' operations. "+ - "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ - "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ - "For Java functions, this should contain all dependencies for the function. "+ - "The jar file must be compatible with the Pulsar Functions API.")), - mcp.WithString("py", - mcp.Description("Path to the Python file containing the function code. Optional for 'create' and 'update' operations. "+ - "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ - "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ - "For Python functions, this should be the file path to the Python file, in format of `.py`, `.zip`, or `.whl`. "+ - "The Python file must be compatible with the Pulsar Functions API.")), - mcp.WithString("go", - mcp.Description("Path to the Go file containing the function code. Optional for 'create' and 'update' operations. "+ - "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ - "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ - "For Go functions, this should be the file path to the Go file, in format of executable binary. "+ - "The Go file must be compatible with the Pulsar Functions API.")), - mcp.WithNumber("parallelism", - mcp.Description("The parallelism factor of the function. Optional for 'create' and 'update' operations. "+ - "Determines how many instances of the function will run concurrently. "+ - "Higher values improve throughput but require more resources. "+ - "For stateful functions, consider how parallelism affects state consistency. "+ - "Default is 1 (single instance).")), - mcp.WithObject("userConfig", - mcp.Description("User-defined config key/values. Optional for 'create' and 'update' operations. "+ - "Provides configuration parameters accessible to the function at runtime. "+ - "Specify as a JSON object with string, number, or boolean values. "+ - "Common configs include connection parameters, batch sizes, or feature toggles. "+ - "Example: {\"maxBatchSize\": 100, \"connectionString\": \"host:port\", \"debugMode\": true}")), - mcp.WithString("key", - mcp.Description("The state key. Required for 'querystate' and 'putstate' operations. "+ - "Keys are used to identify values in the function's state store. "+ - "They should be reasonable in length and follow a consistent pattern. "+ - "State keys are typically limited to 128 characters.")), - mcp.WithString("value", - mcp.Description("The state value. Required for 'putstate' operation. "+ - "Values are stored in the function's state system. "+ - "For simple values, specify as a string. For complex objects, use JSON-serialized strings. "+ - "State values are typically limited to 1MB in size.")), - mcp.WithString("topic", - mcp.Description("The specific topic name that the function should consume from. Optional for 'trigger' operation. "+ - "Specified in the format 'persistent://tenant/namespace/topic'. "+ - "Used when triggering a function that consumes from multiple topics. "+ - "If not provided, the first input topic will be used.")), - mcp.WithString("triggerValue", - mcp.Description("The value with which to trigger the function. Required for 'trigger' operation. "+ - "This value will be passed to the function as if it were a message from the input topic. "+ - "String values are sent as is; for typed values, ensure proper formatting based on function expectations. "+ - "The function processes this value just like a normal message.")), - ) + return &sdk.Tool{ + Name: "pulsar_admin_functions", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildPulsarAdminFunctionsHandler builds the Pulsar admin functions handler function // Migrated from the original handler logic -func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get Pulsar session from context - session := mcpCtx.GetPulsarSession(ctx) - if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil - } - - client, err := session.GetAdminV3Client() - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil - } - +func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminFunctionsInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminFunctionsInput) (*sdk.CallToolResult, any, error) { // Extract and validate operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return b.handleError("get operation", err), nil + operation := input.Operation + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'") } // Check if the operation is valid @@ -233,7 +228,7 @@ func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsHandler(readO } if !validOperations[operation] { - return b.handleError("validate operation", fmt.Errorf("invalid operation: '%s'. Supported operations: list, get, status, stats, querystate, create, update, delete, start, stop, restart, putstate, trigger", operation)), nil + return nil, nil, fmt.Errorf("invalid operation: '%s'. Supported operations: list, get, status, stats, querystate, create, update, delete, start, stop, restart, putstate, trigger", operation) } // Check write permissions for write operations @@ -243,76 +238,103 @@ func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsHandler(readO } if readOnly && writeOperations[operation] { - return b.handleError("check permissions", fmt.Errorf("operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Functions", operation)), nil + return nil, nil, fmt.Errorf("operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Functions", operation) + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return nil, nil, fmt.Errorf("pulsar session not found in context") + } + + client, err := session.GetAdminV3Client() + if err != nil { + return nil, nil, fmt.Errorf("failed to get pulsar client: %v", err) } // Extract common parameters - tenant, err := request.RequireString("tenant") + tenant, err := requireNonEmpty(input.Tenant, "tenant") if err != nil { - return b.handleError("get tenant", fmt.Errorf("missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations", err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations", err) } - namespace, err := request.RequireString("namespace") + namespace, err := requireNonEmpty(input.Namespace, "namespace") if err != nil { - return b.handleError("get namespace", fmt.Errorf("missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations", err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations", err) } // For all operations except 'list', name is required var name string if operation != "list" { - name, err = request.RequireString("name") + name, err = requireString(input.Name, "name") if err != nil { - return b.handleError("get name", fmt.Errorf("missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation", operation, err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation", operation, err) } } // Handle operation using delegated handlers switch operation { case "list": - return b.handleFunctionList(ctx, client, tenant, namespace) + result, err := b.handleFunctionList(ctx, client, tenant, namespace) + return result, nil, err case "get": - return b.handleFunctionGet(ctx, client, tenant, namespace, name) + result, err := b.handleFunctionGet(ctx, client, tenant, namespace, name) + return result, nil, err case "status": - return b.handleFunctionStatus(ctx, client, tenant, namespace, name) + result, err := b.handleFunctionStatus(ctx, client, tenant, namespace, name) + return result, nil, err case "stats": - return b.handleFunctionStats(ctx, client, tenant, namespace, name) + result, err := b.handleFunctionStats(ctx, client, tenant, namespace, name) + return result, nil, err case "querystate": - key, err := request.RequireString("key") + key, err := requireString(input.Key, "key") if err != nil { - return b.handleError("get key", fmt.Errorf("missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store", err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store", err) } - return b.handleFunctionQuerystate(ctx, client, tenant, namespace, name, key) + result, err := b.handleFunctionQuerystate(ctx, client, tenant, namespace, name, key) + return result, nil, err case "create": - return b.handleFunctionCreate(ctx, client, tenant, namespace, name, request) + result, err := b.handleFunctionCreate(ctx, client, tenant, namespace, name, input) + return result, nil, err case "update": - return b.handleFunctionUpdate(ctx, client, tenant, namespace, name, request) + result, err := b.handleFunctionUpdate(ctx, client, tenant, namespace, name, input) + return result, nil, err case "delete": - return b.handleFunctionDelete(ctx, client, tenant, namespace, name) + result, err := b.handleFunctionDelete(ctx, client, tenant, namespace, name) + return result, nil, err case "start": - return b.handleFunctionStart(ctx, client, tenant, namespace, name) + result, err := b.handleFunctionStart(ctx, client, tenant, namespace, name) + return result, nil, err case "stop": - return b.handleFunctionStop(ctx, client, tenant, namespace, name) + result, err := b.handleFunctionStop(ctx, client, tenant, namespace, name) + return result, nil, err case "restart": - return b.handleFunctionRestart(ctx, client, tenant, namespace, name) + result, err := b.handleFunctionRestart(ctx, client, tenant, namespace, name) + return result, nil, err case "putstate": - key, err := request.RequireString("key") + key, err := requireString(input.Key, "key") if err != nil { - return b.handleError("get key", fmt.Errorf("missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store", err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store", err) } - value, err := request.RequireString("value") + value, err := requireString(input.Value, "value") if err != nil { - return b.handleError("get value", fmt.Errorf("missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store", err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store", err) } - return b.handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) + result, err := b.handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) + return result, nil, err case "trigger": - triggerValue, err := request.RequireString("triggerValue") + triggerValue, err := requireString(input.TriggerValue, "triggerValue") if err != nil { - return b.handleError("get triggerValue", fmt.Errorf("missing required parameter 'triggerValue' for operation 'trigger': %v. A trigger value is required to manually trigger the function", err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'triggerValue' for operation 'trigger': %v. A trigger value is required to manually trigger the function", err) + } + topic := "" + if input.Topic != nil { + topic = *input.Topic } - topic := request.GetString("topic", "") - return b.handleFunctionTrigger(ctx, client, tenant, namespace, name, triggerValue, topic) + result, err := b.handleFunctionTrigger(ctx, client, tenant, namespace, name, triggerValue, topic) + return result, nil, err default: - return b.handleError("handle operation", fmt.Errorf("unsupported operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unsupported operation: %s", operation) } } } @@ -320,12 +342,12 @@ func (b *PulsarAdminFunctionsToolBuilder) buildPulsarAdminFunctionsHandler(readO // Helper functions - delegated operation handlers // handleFunctionList handles the list operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionList(_ context.Context, client cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionList(_ context.Context, client cmdutils.Client, tenant, namespace string) (*sdk.CallToolResult, error) { admin := client.Functions() functions, err := admin.GetFunctions(tenant, namespace) if err != nil { - return b.handleError("list functions", err), nil + return nil, b.handleError("list functions", err) } return b.marshalResponse(map[string]interface{}{ @@ -336,50 +358,50 @@ func (b *PulsarAdminFunctionsToolBuilder) handleFunctionList(_ context.Context, } // handleFunctionGet handles the get operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionGet(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionGet(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { admin := client.Functions() functionConfig, err := admin.GetFunction(tenant, namespace, name) if err != nil { - return b.handleError("get function config", err), nil + return nil, b.handleError("get function config", err) } return b.marshalResponse(functionConfig) } // handleFunctionStatus handles the status operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStatus(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStatus(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { admin := client.Functions() status, err := admin.GetFunctionStatus(tenant, namespace, name) if err != nil { - return b.handleError("get function status", err), nil + return nil, b.handleError("get function status", err) } return b.marshalResponse(status) } // handleFunctionStats handles the stats operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStats(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStats(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { admin := client.Functions() stats, err := admin.GetFunctionStats(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to get stats for function '%s' in tenant '%s' namespace '%s': %v; verify the function exists and is running", + name, tenant, namespace, err) } return b.marshalResponse(stats) } // handleFunctionQuerystate handles the querystate operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key string) (*sdk.CallToolResult, error) { admin := client.Functions() state, err := admin.GetFunctionState(tenant, namespace, name, key) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to query state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v. Verify the function exists and has state enabled.", - key, name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to query state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v; verify the function exists and has state enabled", + key, name, tenant, namespace, err) } return b.marshalResponse(map[string]interface{}{ @@ -394,12 +416,12 @@ func (b *PulsarAdminFunctionsToolBuilder) handleFunctionQuerystate(_ context.Con } // handleFunctionCreate handles the create operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, input pulsarAdminFunctionsInput) (*sdk.CallToolResult, error) { // Build function configuration from request parameters to validate - functionConfig, err := b.buildFunctionConfig(tenant, namespace, name, request, false) + functionConfig, err := b.buildFunctionConfig(tenant, namespace, name, input, false) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v. Please verify all required parameters are provided correctly.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v; please verify all required parameters are provided correctly", + name, tenant, namespace, err) } admin := client.Functions() @@ -415,23 +437,23 @@ func (b *PulsarAdminFunctionsToolBuilder) handleFunctionCreate(_ context.Context err = admin.CreateFuncWithURL(functionConfig, packagePath) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify the function configuration is valid.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to create function '%s' in tenant '%s' namespace '%s': %v; verify the function configuration is valid", + name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Created function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been created.", + return textResult(fmt.Sprintf("Created function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been created.", name, tenant, namespace)), nil } // handleFunctionUpdate handles the update operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, input pulsarAdminFunctionsInput) (*sdk.CallToolResult, error) { admin := client.Functions() // Build function configuration from request parameters - config, err := b.buildFunctionConfig(tenant, namespace, name, request, true) + config, err := b.buildFunctionConfig(tenant, namespace, name, input, true) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v. Please verify all parameters are provided correctly.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v; please verify all parameters are provided correctly", + name, tenant, namespace, err) } // Update the function @@ -440,72 +462,72 @@ func (b *PulsarAdminFunctionsToolBuilder) handleFunctionUpdate(_ context.Context } err = admin.UpdateFunction(config, "", updateOptions) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and the configuration is valid.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to update function '%s' in tenant '%s' namespace '%s': %v; verify the function exists and the configuration is valid", + name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Updated function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been modified.", + return textResult(fmt.Sprintf("Updated function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been modified.", name, tenant, namespace)), nil } // handleFunctionDelete handles the delete operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionDelete(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionDelete(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { admin := client.Functions() err := admin.DeleteFunction(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and you have deletion permissions.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to delete function '%s' in tenant '%s' namespace '%s': %v; verify the function exists and you have deletion permissions", + name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Deleted function '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + return textResult(fmt.Sprintf("Deleted function '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", name, tenant, namespace)), nil } // handleFunctionStart handles the start operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { admin := client.Functions() err := admin.StartFunction(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to start function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is not already running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to start function '%s' in tenant '%s' namespace '%s': %v; verify the function exists and is not already running", + name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Started function '%s' successfully in tenant '%s' namespace '%s'. The function instances are now processing messages.", + return textResult(fmt.Sprintf("Started function '%s' successfully in tenant '%s' namespace '%s'. The function instances are now processing messages.", name, tenant, namespace)), nil } // handleFunctionStop handles the stop operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStop(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionStop(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { admin := client.Functions() err := admin.StopFunction(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to stop function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is currently running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to stop function '%s' in tenant '%s' namespace '%s': %v; verify the function exists and is currently running", + name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Stopped function '%s' successfully in tenant '%s' namespace '%s'. The function will no longer process messages until restarted.", + return textResult(fmt.Sprintf("Stopped function '%s' successfully in tenant '%s' namespace '%s'. The function will no longer process messages until restarted.", name, tenant, namespace)), nil } // handleFunctionRestart handles the restart operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionRestart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionRestart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { admin := client.Functions() err := admin.RestartFunction(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to restart function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is properly deployed.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to restart function '%s' in tenant '%s' namespace '%s': %v; verify the function exists and is properly deployed", + name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Restarted function '%s' successfully in tenant '%s' namespace '%s'. All function instances have been restarted.", + return textResult(fmt.Sprintf("Restarted function '%s' successfully in tenant '%s' namespace '%s'. All function instances have been restarted.", name, tenant, namespace)), nil } // handleFunctionPutstate handles the putstate operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionPutstate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key, value string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionPutstate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key, value string) (*sdk.CallToolResult, error) { admin := client.Functions() err := admin.PutFunctionState(tenant, namespace, name, utils.FunctionState{ @@ -513,16 +535,16 @@ func (b *PulsarAdminFunctionsToolBuilder) handleFunctionPutstate(_ context.Conte StringValue: value, }) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to put state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v. Verify the function exists and has state enabled.", - key, name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to put state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v; verify the function exists and has state enabled", + key, name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Successfully stored state for key '%s' in function '%s' (tenant '%s' namespace '%s'). State value has been updated.", + return textResult(fmt.Sprintf("Successfully stored state for key '%s' in function '%s' (tenant '%s' namespace '%s'). State value has been updated.", key, name, tenant, namespace)), nil } // handleFunctionTrigger handles the trigger operation -func (b *PulsarAdminFunctionsToolBuilder) handleFunctionTrigger(_ context.Context, client cmdutils.Client, tenant, namespace, name, triggerValue, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) handleFunctionTrigger(_ context.Context, client cmdutils.Client, tenant, namespace, name, triggerValue, topic string) (*sdk.CallToolResult, error) { admin := client.Functions() var err error @@ -536,8 +558,8 @@ func (b *PulsarAdminFunctionsToolBuilder) handleFunctionTrigger(_ context.Contex } if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to trigger function '%s' in tenant '%s' namespace '%s': %v; verify the function exists and is running", + name, tenant, namespace, err) } var message string @@ -549,13 +571,13 @@ func (b *PulsarAdminFunctionsToolBuilder) handleFunctionTrigger(_ context.Contex name, tenant, namespace, result) } - return mcp.NewToolResultText(message), nil + return textResult(message), nil } // Helper functions // buildFunctionConfig builds a Pulsar Function configuration from MCP request parameters -func (b *PulsarAdminFunctionsToolBuilder) buildFunctionConfig(tenant, namespace, name string, request mcp.CallToolRequest, isUpdate bool) (*utils.FunctionConfig, error) { +func (b *PulsarAdminFunctionsToolBuilder) buildFunctionConfig(tenant, namespace, name string, input pulsarAdminFunctionsInput, isUpdate bool) (*utils.FunctionConfig, error) { config := &utils.FunctionConfig{ Tenant: tenant, Namespace: namespace, @@ -564,47 +586,38 @@ func (b *PulsarAdminFunctionsToolBuilder) buildFunctionConfig(tenant, namespace, // Get required classname parameter (for create operations) if !isUpdate { - classname, err := request.RequireString("classname") + classname, err := requireString(input.ClassName, "classname") if err != nil { return nil, fmt.Errorf("missing required parameter 'classname': %v", err) } config.ClassName = classname - } else { + } else if input.ClassName != nil && *input.ClassName != "" { // For update, classname is optional - if classname := request.GetString("classname", ""); classname != "" { - config.ClassName = classname - } + config.ClassName = *input.ClassName } // Get inputs parameter (array of strings) - args := request.GetArguments() - if inputsInterface, exists := args["inputs"]; exists && inputsInterface != nil { - if inputsArray, ok := inputsInterface.([]interface{}); ok { - inputSpecs := make(map[string]utils.ConsumerConfig) - for _, input := range inputsArray { - if inputStr, ok := input.(string); ok { - inputSpecs[inputStr] = utils.ConsumerConfig{ - SerdeClassName: "", - SchemaType: "", - } - } - } - if len(inputSpecs) > 0 { - config.InputSpecs = inputSpecs + if len(input.Inputs) > 0 { + inputSpecs := make(map[string]utils.ConsumerConfig) + for _, inputTopic := range input.Inputs { + inputSpecs[inputTopic] = utils.ConsumerConfig{ + SerdeClassName: "", + SchemaType: "", } } + if len(inputSpecs) > 0 { + config.InputSpecs = inputSpecs + } } // Get optional output parameter - if output := request.GetString("output", ""); output != "" { - config.Output = output + if input.Output != nil && *input.Output != "" { + config.Output = *input.Output } // Get optional parallelism parameter - if parallelismInterface, exists := args["parallelism"]; exists && parallelismInterface != nil { - if parallelismFloat, ok := parallelismInterface.(float64); ok { - config.Parallelism = int(parallelismFloat) - } + if input.Parallelism != nil { + config.Parallelism = *input.Parallelism } // Set default parallelism if not specified @@ -613,40 +626,83 @@ func (b *PulsarAdminFunctionsToolBuilder) buildFunctionConfig(tenant, namespace, } // Get optional jar parameter - if jar := request.GetString("jar", ""); jar != "" { + if input.Jar != nil && *input.Jar != "" { + jar := *input.Jar config.Jar = &jar } // Get optional py parameter - if py := request.GetString("py", ""); py != "" { + if input.Py != nil && *input.Py != "" { + py := *input.Py config.Py = &py } // Get optional go parameter - if goFile := request.GetString("go", ""); goFile != "" { + if input.GoFile != nil && *input.GoFile != "" { + goFile := *input.GoFile config.Go = &goFile } // Get optional userConfig parameter (JSON object) - if userConfigInterface, exists := args["userConfig"]; exists && userConfigInterface != nil { - if userConfigMap, ok := userConfigInterface.(map[string]interface{}); ok { - config.UserConfig = userConfigMap - } + if input.UserConfig != nil { + config.UserConfig = input.UserConfig } return config, nil } // handleError provides unified error handling -func (b *PulsarAdminFunctionsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminFunctionsToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminFunctionsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil +} + +func requireNonEmpty(value string, key string) (string, error) { + if value == "" { + return "", fmt.Errorf("required argument %q not found", key) + } + return value, nil +} + +func buildPulsarAdminFunctionsInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminFunctionsInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "operation", pulsarAdminFunctionsOperationDesc) + setSchemaDescription(schema, "tenant", pulsarAdminFunctionsTenantDesc) + setSchemaDescription(schema, "namespace", pulsarAdminFunctionsNamespaceDesc) + setSchemaDescription(schema, "name", pulsarAdminFunctionsNameDesc) + setSchemaDescription(schema, "classname", pulsarAdminFunctionsClassNameDesc) + setSchemaDescription(schema, "inputs", pulsarAdminFunctionsInputsDesc) + setSchemaDescription(schema, "output", pulsarAdminFunctionsOutputDesc) + setSchemaDescription(schema, "jar", pulsarAdminFunctionsJarDesc) + setSchemaDescription(schema, "py", pulsarAdminFunctionsPyDesc) + setSchemaDescription(schema, "go", pulsarAdminFunctionsGoDesc) + setSchemaDescription(schema, "parallelism", pulsarAdminFunctionsParallelismDesc) + setSchemaDescription(schema, "userConfig", pulsarAdminFunctionsUserConfigDesc) + setSchemaDescription(schema, "key", pulsarAdminFunctionsKeyDesc) + setSchemaDescription(schema, "value", pulsarAdminFunctionsValueDesc) + setSchemaDescription(schema, "topic", pulsarAdminFunctionsTopicDesc) + setSchemaDescription(schema, "triggerValue", pulsarAdminFunctionsTriggerValueDesc) + + normalizeAdditionalProperties(schema) + return schema, nil } diff --git a/pkg/mcp/builders/pulsar/functions_legacy.go b/pkg/mcp/builders/pulsar/functions_legacy.go new file mode 100644 index 0000000..d4754c3 --- /dev/null +++ b/pkg/mcp/builders/pulsar/functions_legacy.go @@ -0,0 +1,652 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/pulsarctl/pkg/cmdutils" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarAdminFunctionsLegacyToolBuilder implements the ToolBuilder interface for Pulsar admin functions operations +// It provides functionality to build Pulsar functions management tools +// /nolint:revive +type PulsarAdminFunctionsLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminFunctionsLegacyToolBuilder creates a new Pulsar admin functions tool builder instance +func NewPulsarAdminFunctionsLegacyToolBuilder() *PulsarAdminFunctionsLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_functions", + Version: "1.0.0", + Description: "Pulsar admin functions management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "functions"}, + } + + features := []string{ + "pulsar-admin-functions", + "pulsar-admin", + "all", + "all-pulsar", + } + + return &PulsarAdminFunctionsLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin functions tool list +// This is the core method implementing the ToolBuilder interface +func (b *PulsarAdminFunctionsLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildPulsarAdminFunctionsTool() + handler := b.buildPulsarAdminFunctionsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildPulsarAdminFunctionsTool builds the Pulsar admin functions MCP tool definition +// Migrated from the original tool definition logic +func (b *PulsarAdminFunctionsLegacyToolBuilder) buildPulsarAdminFunctionsTool() mcp.Tool { + toolDesc := "Manage Apache Pulsar Functions for stream processing. " + + "Pulsar Functions are lightweight compute processes that can consume messages from one or more Pulsar topics, " + + "apply user-defined processing logic, and produce results to another topic. " + + "Functions support Java, Python, and Go runtimes, enabling complex event processing, " + + "data transformations, filtering, and integration with external systems. " + + "Functions follow the tenant/namespace/name hierarchy for organization, " + + "can maintain state, and can scale through parallelism configuration. " + + "This tool provides complete lifecycle management including deployment, monitoring, scaling, " + + "state management, and triggering. Functions require proper permissions to access their topics." + + operationDesc := "Operation to perform. Available operations:\n" + + "- list: List all functions under a specific tenant and namespace\n" + + "- get: Get the configuration of a function\n" + + "- status: Get the runtime status of a function (instances, metrics)\n" + + "- stats: Get detailed statistics of a function (throughput, processing latency)\n" + + "- querystate: Query state stored by a stateful function for a specific key\n" + + "- create: Deploy a new function with specified parameters\n" + + "- update: Update the configuration of an existing function\n" + + "- delete: Delete a function\n" + + "- start: Start a stopped function\n" + + "- stop: Stop a running function\n" + + "- restart: Restart a function\n" + + "- putstate: Store state in a function's state store\n" + + "- trigger: Manually trigger a function with a specific value" + + return mcp.NewTool("pulsar_admin_functions", + mcp.WithDescription(toolDesc), + mcp.WithString("operation", mcp.Required(), + mcp.Description(operationDesc)), + mcp.WithString("tenant", mcp.Required(), + mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ + "providing multi-tenancy and resource isolation. Functions deployed within a tenant "+ + "inherit its permissions and resource quotas.")), + mcp.WithString("namespace", mcp.Required(), + mcp.Description("The namespace name. Namespaces are logical groupings of topics and functions "+ + "within a tenant. They encapsulate configuration policies and access control. "+ + "Functions in a namespace typically process topics within the same namespace.")), + mcp.WithString("name", + mcp.Description("The function name. Required for all operations except 'list'. "+ + "Names should be descriptive of the function's purpose and must be unique within a namespace. "+ + "Function names are used in metrics, logs, and when addressing the function via APIs.")), + // Additional parameters for specific operations + mcp.WithString("classname", + mcp.Description("The fully qualified class name implementing the function. Required for 'create' operation, optional for 'update'. "+ + "For Java functions, this should be the class that implements pulsar function interfaces. "+ + "For Python, this MUST be in format of `.` - for example: "+ + "if file is '/path/to/exclamation.py' with class 'ExclamationFunction', classname must be 'exclamation.ExclamationFunction'; "+ + "if file is '/path/to/double_number.py' with class 'DoubleNumber', classname must be 'double_number.DoubleNumber'. "+ + "Common error: using just the class name 'DoubleNumber' (without filename prefix) will cause function creation to fail. "+ + "Go functions should specify the 'main' function of the binary.")), + mcp.WithArray("inputs", + mcp.Description("The input topics for the function (array of strings). Optional for 'create' and 'update' operations. "+ + "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ + "Functions can consume from multiple topics, each with potentially different serialization types. "+ + "All input topics should exist before the function is created."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "input topic", + }, + ), + ), + mcp.WithString("output", + mcp.Description("The output topic for the function results. Optional for 'create' and 'update' operations. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "If not set, the function will not produce any output to topics. "+ + "The output topic will be automatically created if it doesn't exist.")), + mcp.WithString("jar", + mcp.Description("Path to the JAR file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Java functions, this should contain all dependencies for the function. "+ + "The jar file must be compatible with the Pulsar Functions API.")), + mcp.WithString("py", + mcp.Description("Path to the Python file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Python functions, this should be the file path to the Python file, in format of `.py`, `.zip`, or `.whl`. "+ + "The Python file must be compatible with the Pulsar Functions API.")), + mcp.WithString("go", + mcp.Description("Path to the Go file containing the function code. Optional for 'create' and 'update' operations. "+ + "Support `file://`, `http://`, `https://`, `function://`, `source://`, `sink://` protocol. "+ + "Can be a local path or supported URL protocol accessible to the Pulsar broker. "+ + "For Go functions, this should be the file path to the Go file, in format of executable binary. "+ + "The Go file must be compatible with the Pulsar Functions API.")), + mcp.WithNumber("parallelism", + mcp.Description("The parallelism factor of the function. Optional for 'create' and 'update' operations. "+ + "Determines how many instances of the function will run concurrently. "+ + "Higher values improve throughput but require more resources. "+ + "For stateful functions, consider how parallelism affects state consistency. "+ + "Default is 1 (single instance).")), + mcp.WithObject("userConfig", + mcp.Description("User-defined config key/values. Optional for 'create' and 'update' operations. "+ + "Provides configuration parameters accessible to the function at runtime. "+ + "Specify as a JSON object with string, number, or boolean values. "+ + "Common configs include connection parameters, batch sizes, or feature toggles. "+ + "Example: {\"maxBatchSize\": 100, \"connectionString\": \"host:port\", \"debugMode\": true}")), + mcp.WithString("key", + mcp.Description("The state key. Required for 'querystate' and 'putstate' operations. "+ + "Keys are used to identify values in the function's state store. "+ + "They should be reasonable in length and follow a consistent pattern. "+ + "State keys are typically limited to 128 characters.")), + mcp.WithString("value", + mcp.Description("The state value. Required for 'putstate' operation. "+ + "Values are stored in the function's state system. "+ + "For simple values, specify as a string. For complex objects, use JSON-serialized strings. "+ + "State values are typically limited to 1MB in size.")), + mcp.WithString("topic", + mcp.Description("The specific topic name that the function should consume from. Optional for 'trigger' operation. "+ + "Specified in the format 'persistent://tenant/namespace/topic'. "+ + "Used when triggering a function that consumes from multiple topics. "+ + "If not provided, the first input topic will be used.")), + mcp.WithString("triggerValue", + mcp.Description("The value with which to trigger the function. Required for 'trigger' operation. "+ + "This value will be passed to the function as if it were a message from the input topic. "+ + "String values are sent as is; for typed values, ensure proper formatting based on function expectations. "+ + "The function processes this value just like a normal message.")), + ) +} + +// buildPulsarAdminFunctionsHandler builds the Pulsar admin functions handler function +// Migrated from the original handler logic +func (b *PulsarAdminFunctionsLegacyToolBuilder) buildPulsarAdminFunctionsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + client, err := session.GetAdminV3Client() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + } + + // Extract and validate operation parameter + operation, err := request.RequireString("operation") + if err != nil { + return b.handleError("get operation", err), nil + } + + // Check if the operation is valid + validOperations := map[string]bool{ + "list": true, "get": true, "status": true, "stats": true, "querystate": true, + "create": true, "update": true, "delete": true, "start": true, "stop": true, + "restart": true, "putstate": true, "trigger": true, + } + + if !validOperations[operation] { + return b.handleError("validate operation", fmt.Errorf("invalid operation: '%s'. Supported operations: list, get, status, stats, querystate, create, update, delete, start, stop, restart, putstate, trigger", operation)), nil + } + + // Check write permissions for write operations + writeOperations := map[string]bool{ + "create": true, "update": true, "delete": true, "start": true, + "stop": true, "restart": true, "putstate": true, "trigger": true, + } + + if readOnly && writeOperations[operation] { + return b.handleError("check permissions", fmt.Errorf("operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Functions", operation)), nil + } + + // Extract common parameters + tenant, err := request.RequireString("tenant") + if err != nil { + return b.handleError("get tenant", fmt.Errorf("missing required parameter 'tenant': %v. A tenant is required for all Pulsar Functions operations", err)), nil + } + + namespace, err := request.RequireString("namespace") + if err != nil { + return b.handleError("get namespace", fmt.Errorf("missing required parameter 'namespace': %v. A namespace is required for all Pulsar Functions operations", err)), nil + } + + // For all operations except 'list', name is required + var name string + if operation != "list" { + name, err = request.RequireString("name") + if err != nil { + return b.handleError("get name", fmt.Errorf("missing required parameter 'name' for operation '%s': %v. The function name must be specified for this operation", operation, err)), nil + } + } + + // Handle operation using delegated handlers + switch operation { + case "list": + return b.handleFunctionList(ctx, client, tenant, namespace) + case "get": + return b.handleFunctionGet(ctx, client, tenant, namespace, name) + case "status": + return b.handleFunctionStatus(ctx, client, tenant, namespace, name) + case "stats": + return b.handleFunctionStats(ctx, client, tenant, namespace, name) + case "querystate": + key, err := request.RequireString("key") + if err != nil { + return b.handleError("get key", fmt.Errorf("missing required parameter 'key' for operation 'querystate': %v. A key is required to look up state in the function's state store", err)), nil + } + return b.handleFunctionQuerystate(ctx, client, tenant, namespace, name, key) + case "create": + return b.handleFunctionCreate(ctx, client, tenant, namespace, name, request) + case "update": + return b.handleFunctionUpdate(ctx, client, tenant, namespace, name, request) + case "delete": + return b.handleFunctionDelete(ctx, client, tenant, namespace, name) + case "start": + return b.handleFunctionStart(ctx, client, tenant, namespace, name) + case "stop": + return b.handleFunctionStop(ctx, client, tenant, namespace, name) + case "restart": + return b.handleFunctionRestart(ctx, client, tenant, namespace, name) + case "putstate": + key, err := request.RequireString("key") + if err != nil { + return b.handleError("get key", fmt.Errorf("missing required parameter 'key' for operation 'putstate': %v. A key is required to store state in the function's state store", err)), nil + } + value, err := request.RequireString("value") + if err != nil { + return b.handleError("get value", fmt.Errorf("missing required parameter 'value' for operation 'putstate': %v. A value is required to store state in the function's state store", err)), nil + } + return b.handleFunctionPutstate(ctx, client, tenant, namespace, name, key, value) + case "trigger": + triggerValue, err := request.RequireString("triggerValue") + if err != nil { + return b.handleError("get triggerValue", fmt.Errorf("missing required parameter 'triggerValue' for operation 'trigger': %v. A trigger value is required to manually trigger the function", err)), nil + } + topic := request.GetString("topic", "") + return b.handleFunctionTrigger(ctx, client, tenant, namespace, name, triggerValue, topic) + default: + return b.handleError("handle operation", fmt.Errorf("unsupported operation: %s", operation)), nil + } + } +} + +// Helper functions - delegated operation handlers + +// handleFunctionList handles the list operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionList(_ context.Context, client cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + functions, err := admin.GetFunctions(tenant, namespace) + if err != nil { + return b.handleError("list functions", err), nil + } + + return b.marshalResponse(map[string]interface{}{ + "functions": functions, + "tenant": tenant, + "namespace": namespace, + }) +} + +// handleFunctionGet handles the get operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionGet(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + functionConfig, err := admin.GetFunction(tenant, namespace, name) + if err != nil { + return b.handleError("get function config", err), nil + } + + return b.marshalResponse(functionConfig) +} + +// handleFunctionStatus handles the status operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionStatus(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + status, err := admin.GetFunctionStatus(tenant, namespace, name) + if err != nil { + return b.handleError("get function status", err), nil + } + + return b.marshalResponse(status) +} + +// handleFunctionStats handles the stats operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionStats(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + stats, err := admin.GetFunctionStats(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get stats for function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", + name, tenant, namespace, err)), nil + } + + return b.marshalResponse(stats) +} + +// handleFunctionQuerystate handles the querystate operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionQuerystate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + state, err := admin.GetFunctionState(tenant, namespace, name, key) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to query state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v. Verify the function exists and has state enabled.", + key, name, tenant, namespace, err)), nil + } + + return b.marshalResponse(map[string]interface{}{ + "key": key, + "value": state, + "function": map[string]string{ + "tenant": tenant, + "namespace": namespace, + "name": name, + }, + }) +} + +// handleFunctionCreate handles the create operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionCreate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Build function configuration from request parameters to validate + functionConfig, err := b.buildFunctionConfig(tenant, namespace, name, request, false) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v. Please verify all required parameters are provided correctly.", + name, tenant, namespace, err)), nil + } + + admin := client.Functions() + packagePath := "" + //nolint:gocritic + if functionConfig.Jar != nil { + packagePath = *functionConfig.Jar + } else if functionConfig.Py != nil { + packagePath = *functionConfig.Py + } else if functionConfig.Go != nil { + packagePath = *functionConfig.Go + } + + err = admin.CreateFuncWithURL(functionConfig, packagePath) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create function '%s' in tenant '%s' namespace '%s': %v. Verify the function configuration is valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Created function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been created.", + name, tenant, namespace)), nil +} + +// handleFunctionUpdate handles the update operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionUpdate(_ context.Context, client cmdutils.Client, tenant, namespace, name string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + admin := client.Functions() + + // Build function configuration from request parameters + config, err := b.buildFunctionConfig(tenant, namespace, name, request, true) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to build function configuration for '%s' in tenant '%s' namespace '%s': %v. Please verify all parameters are provided correctly.", + name, tenant, namespace, err)), nil + } + + // Update the function + updateOptions := &utils.UpdateOptions{ + UpdateAuthData: true, + } + err = admin.UpdateFunction(config, "", updateOptions) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to update function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and the configuration is valid.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Updated function '%s' successfully in tenant '%s' namespace '%s'. The function configuration has been modified.", + name, tenant, namespace)), nil +} + +// handleFunctionDelete handles the delete operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionDelete(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.DeleteFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to delete function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and you have deletion permissions.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Deleted function '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", + name, tenant, namespace)), nil +} + +// handleFunctionStart handles the start operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionStart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.StartFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to start function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is not already running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Started function '%s' successfully in tenant '%s' namespace '%s'. The function instances are now processing messages.", + name, tenant, namespace)), nil +} + +// handleFunctionStop handles the stop operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionStop(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.StopFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to stop function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is currently running.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Stopped function '%s' successfully in tenant '%s' namespace '%s'. The function will no longer process messages until restarted.", + name, tenant, namespace)), nil +} + +// handleFunctionRestart handles the restart operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionRestart(_ context.Context, client cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.RestartFunction(tenant, namespace, name) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to restart function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is properly deployed.", + name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Restarted function '%s' successfully in tenant '%s' namespace '%s'. All function instances have been restarted.", + name, tenant, namespace)), nil +} + +// handleFunctionPutstate handles the putstate operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionPutstate(_ context.Context, client cmdutils.Client, tenant, namespace, name, key, value string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + err := admin.PutFunctionState(tenant, namespace, name, utils.FunctionState{ + Key: key, + StringValue: value, + }) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to put state for key '%s' in function '%s' (tenant '%s' namespace '%s'): %v. Verify the function exists and has state enabled.", + key, name, tenant, namespace, err)), nil + } + + return mcp.NewToolResultText(fmt.Sprintf("Successfully stored state for key '%s' in function '%s' (tenant '%s' namespace '%s'). State value has been updated.", + key, name, tenant, namespace)), nil +} + +// handleFunctionTrigger handles the trigger operation +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleFunctionTrigger(_ context.Context, client cmdutils.Client, tenant, namespace, name, triggerValue, topic string) (*mcp.CallToolResult, error) { + admin := client.Functions() + + var err error + var result string + if topic != "" { + // Trigger with specific topic + result, err = admin.TriggerFunction(tenant, namespace, name, topic, triggerValue, "") + } else { + // Trigger without specific topic (uses first input topic) + result, err = admin.TriggerFunction(tenant, namespace, name, "", triggerValue, "") + } + + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to trigger function '%s' in tenant '%s' namespace '%s': %v. Verify the function exists and is running.", + name, tenant, namespace, err)), nil + } + + var message string + if topic != "" { + message = fmt.Sprintf("Successfully triggered function '%s' in tenant '%s' namespace '%s' with topic '%s'. Result: %s", + name, tenant, namespace, topic, result) + } else { + message = fmt.Sprintf("Successfully triggered function '%s' in tenant '%s' namespace '%s'. Result: %s", + name, tenant, namespace, result) + } + + return mcp.NewToolResultText(message), nil +} + +// Helper functions + +// buildFunctionConfig builds a Pulsar Function configuration from MCP request parameters +func (b *PulsarAdminFunctionsLegacyToolBuilder) buildFunctionConfig(tenant, namespace, name string, request mcp.CallToolRequest, isUpdate bool) (*utils.FunctionConfig, error) { + config := &utils.FunctionConfig{ + Tenant: tenant, + Namespace: namespace, + Name: name, + } + + // Get required classname parameter (for create operations) + if !isUpdate { + classname, err := request.RequireString("classname") + if err != nil { + return nil, fmt.Errorf("missing required parameter 'classname': %v", err) + } + config.ClassName = classname + } else { + // For update, classname is optional + if classname := request.GetString("classname", ""); classname != "" { + config.ClassName = classname + } + } + + // Get inputs parameter (array of strings) + args := request.GetArguments() + if inputsInterface, exists := args["inputs"]; exists && inputsInterface != nil { + if inputsArray, ok := inputsInterface.([]interface{}); ok { + inputSpecs := make(map[string]utils.ConsumerConfig) + for _, input := range inputsArray { + if inputStr, ok := input.(string); ok { + inputSpecs[inputStr] = utils.ConsumerConfig{ + SerdeClassName: "", + SchemaType: "", + } + } + } + if len(inputSpecs) > 0 { + config.InputSpecs = inputSpecs + } + } + } + + // Get optional output parameter + if output := request.GetString("output", ""); output != "" { + config.Output = output + } + + // Get optional parallelism parameter + if parallelismInterface, exists := args["parallelism"]; exists && parallelismInterface != nil { + if parallelismFloat, ok := parallelismInterface.(float64); ok { + config.Parallelism = int(parallelismFloat) + } + } + + // Set default parallelism if not specified + if config.Parallelism <= 0 { + config.Parallelism = 1 + } + + // Get optional jar parameter + if jar := request.GetString("jar", ""); jar != "" { + config.Jar = &jar + } + + // Get optional py parameter + if py := request.GetString("py", ""); py != "" { + config.Py = &py + } + + // Get optional go parameter + if goFile := request.GetString("go", ""); goFile != "" { + config.Go = &goFile + } + + // Get optional userConfig parameter (JSON object) + if userConfigInterface, exists := args["userConfig"]; exists && userConfigInterface != nil { + if userConfigMap, ok := userConfigInterface.(map[string]interface{}); ok { + config.UserConfig = userConfigMap + } + } + + return config, nil +} + +// handleError provides unified error handling +func (b *PulsarAdminFunctionsLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarAdminFunctionsLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/pulsar/functions_test.go b/pkg/mcp/builders/pulsar/functions_test.go index 51e29ec..35005e0 100644 --- a/pkg/mcp/builders/pulsar/functions_test.go +++ b/pkg/mcp/builders/pulsar/functions_test.go @@ -18,6 +18,7 @@ import ( "context" "testing" + "github.com/google/jsonschema-go/jsonschema" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -45,8 +46,20 @@ func TestPulsarAdminFunctionsToolBuilder(t *testing.T) { tools, err := builder.BuildTools(context.Background(), config) require.NoError(t, err) assert.Len(t, tools, 1) - assert.Equal(t, "pulsar_admin_functions", tools[0].Tool.Name) - assert.NotNil(t, tools[0].Handler) + assert.Equal(t, "pulsar_admin_functions", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-functions"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_functions", tools[0].Definition().Name) }) t.Run("BuildTools_NoFeatures", func(t *testing.T) { @@ -78,3 +91,55 @@ func TestPulsarAdminFunctionsToolBuilder(t *testing.T) { assert.Error(t, err) }) } + +func TestPulsarAdminFunctionsToolSchema(t *testing.T) { + builder := NewPulsarAdminFunctionsToolBuilder() + tool, err := builder.buildPulsarAdminFunctionsTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_functions", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"operation", "tenant", "namespace"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "operation", + "tenant", + "namespace", + "name", + "classname", + "inputs", + "output", + "jar", + "py", + "go", + "parallelism", + "userConfig", + "key", + "value", + "topic", + "triggerValue", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, pulsarAdminFunctionsOperationDesc, operationSchema.Description) +} + +func TestPulsarAdminFunctionsToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewPulsarAdminFunctionsToolBuilder() + handler := builder.buildPulsarAdminFunctionsHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminFunctionsInput{ + Operation: "create", + Tenant: "tenant", + Namespace: "namespace", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/pulsar_admin_functions_tools.go b/pkg/mcp/pulsar_admin_functions_tools.go index 2b9203e..3f7b6ba 100644 --- a/pkg/mcp/pulsar_admin_functions_tools.go +++ b/pkg/mcp/pulsar_admin_functions_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddFunctionsTools adds a unified function-related tool to the MCP server -func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features []string) { +func PulsarAdminAddFunctionsTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminFunctionsToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func PulsarAdminAddFunctionsTools(s *server.MCPServer, readOnly bool, features [ // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_functions_tools_legacy.go b/pkg/mcp/pulsar_admin_functions_tools_legacy.go new file mode 100644 index 0000000..3ae4d41 --- /dev/null +++ b/pkg/mcp/pulsar_admin_functions_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddFunctionsToolsLegacy registers Pulsar admin functions tools for the legacy server. +func PulsarAdminAddFunctionsToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminFunctionsLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 0f45dfbd6cf69c2d4bbe8935bb36f7f214181e11 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 11:27:44 +0800 Subject: [PATCH 60/85] feat: migrate pulsar admin brokers/cluster/sources/sinks/subscription Add go-sdk builders with schema generation, legacy adapters, and tests. --- pkg/cmd/mcp/server.go | 10 +- pkg/mcp/builders/pulsar/admin_tools_test.go | 307 +++++++++++ pkg/mcp/builders/pulsar/brokers.go | 303 +++++----- pkg/mcp/builders/pulsar/brokers_legacy.go | 122 +++++ pkg/mcp/builders/pulsar/cluster.go | 392 ++++++------- pkg/mcp/builders/pulsar/cluster_legacy.go | 125 +++++ pkg/mcp/builders/pulsar/legacy_adapter.go | 43 ++ pkg/mcp/builders/pulsar/sinks.go | 517 ++++++++---------- pkg/mcp/builders/pulsar/sinks_legacy.go | 124 +++++ pkg/mcp/builders/pulsar/sources.go | 505 ++++++++--------- pkg/mcp/builders/pulsar/sources_legacy.go | 123 +++++ pkg/mcp/builders/pulsar/subscription.go | 316 ++++++----- .../builders/pulsar/subscription_legacy.go | 121 ++++ pkg/mcp/pulsar_admin_brokers_tools.go | 9 +- pkg/mcp/pulsar_admin_brokers_tools_legacy.go | 41 ++ pkg/mcp/pulsar_admin_cluster_tools.go | 22 +- pkg/mcp/pulsar_admin_cluster_tools_legacy.go | 41 ++ pkg/mcp/pulsar_admin_sinks_tools.go | 11 +- pkg/mcp/pulsar_admin_sinks_tools_legacy.go | 41 ++ pkg/mcp/pulsar_admin_sources_tools.go | 11 +- pkg/mcp/pulsar_admin_sources_tools_legacy.go | 41 ++ pkg/mcp/pulsar_admin_subscription_tools.go | 24 +- .../pulsar_admin_subscription_tools_legacy.go | 41 ++ 23 files changed, 2212 insertions(+), 1078 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/admin_tools_test.go create mode 100644 pkg/mcp/builders/pulsar/brokers_legacy.go create mode 100644 pkg/mcp/builders/pulsar/cluster_legacy.go create mode 100644 pkg/mcp/builders/pulsar/legacy_adapter.go create mode 100644 pkg/mcp/builders/pulsar/sinks_legacy.go create mode 100644 pkg/mcp/builders/pulsar/sources_legacy.go create mode 100644 pkg/mcp/builders/pulsar/subscription_legacy.go create mode 100644 pkg/mcp/pulsar_admin_brokers_tools_legacy.go create mode 100644 pkg/mcp/pulsar_admin_cluster_tools_legacy.go create mode 100644 pkg/mcp/pulsar_admin_sinks_tools_legacy.go create mode 100644 pkg/mcp/pulsar_admin_sources_tools_legacy.go create mode 100644 pkg/mcp/pulsar_admin_subscription_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 28fdbea..d1a69a9 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -114,9 +114,9 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo } } - mcp.PulsarAdminAddBrokersTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddBrokersToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddBrokerStatsTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddClusterTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddClusterToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsWorkerTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespaceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespacePolicyTools(s, configOpts.ReadOnly, configOpts.Features) @@ -124,12 +124,12 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSchemasToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSubscriptionTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSubscriptionToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTenantToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSinksTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSinksToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddSourcesTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddSourcesToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicPolicyTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/admin_tools_test.go b/pkg/mcp/builders/pulsar/admin_tools_test.go new file mode 100644 index 0000000..e0b758a --- /dev/null +++ b/pkg/mcp/builders/pulsar/admin_tools_test.go @@ -0,0 +1,307 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminBrokersToolBuilder(t *testing.T) { + builder := NewPulsarAdminBrokersToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-brokers"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_brokers", tools[0].Definition().Name) + + config.Features = []string{"unrelated-feature"} + tools, err = builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Empty(t, tools) +} + +func TestPulsarAdminBrokersToolSchema(t *testing.T) { + builder := NewPulsarAdminBrokersToolBuilder() + tool, err := builder.buildPulsarAdminBrokersTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_brokers", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "clusterName", + "brokerUrl", + "configType", + "configName", + "configValue", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminBrokersResourceDesc, resourceSchema.Description) +} + +func TestPulsarAdminBrokersToolBuilder_RequiresSession(t *testing.T) { + builder := NewPulsarAdminBrokersToolBuilder() + handler := builder.buildPulsarAdminBrokersHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminBrokersInput{ + Resource: "config", + Operation: "update", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "pulsar session") +} + +func TestPulsarAdminClusterToolBuilder(t *testing.T) { + builder := NewPulsarAdminClusterToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-clusters"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_cluster", tools[0].Definition().Name) +} + +func TestPulsarAdminClusterToolSchema(t *testing.T) { + builder := NewPulsarAdminClusterToolBuilder() + tool, err := builder.buildClusterTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_cluster", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "cluster_name", + "domain_name", + "service_url", + "service_url_tls", + "broker_service_url", + "broker_service_url_tls", + "peer_cluster_names", + "brokers", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) +} + +func TestPulsarAdminClusterToolBuilder_RequiresSession(t *testing.T) { + builder := NewPulsarAdminClusterToolBuilder() + handler := builder.buildClusterHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminClusterInput{ + Resource: "cluster", + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "pulsar session") +} + +func TestPulsarAdminSourcesToolBuilder(t *testing.T) { + builder := NewPulsarAdminSourcesToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-sources"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_sources", tools[0].Definition().Name) +} + +func TestPulsarAdminSourcesToolSchema(t *testing.T) { + builder := NewPulsarAdminSourcesToolBuilder() + tool, err := builder.buildSourcesTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_sources", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "operation", + "tenant", + "namespace", + "name", + "archive", + "source-type", + "destination-topic-name", + "deserialization-classname", + "schema-type", + "classname", + "processing-guarantees", + "parallelism", + "source-config", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) +} + +func TestPulsarAdminSourcesToolBuilder_ReadOnlyRejectsCreate(t *testing.T) { + builder := NewPulsarAdminSourcesToolBuilder() + handler := builder.buildSourcesHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminSourcesInput{ + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} + +func TestPulsarAdminSinksToolBuilder(t *testing.T) { + builder := NewPulsarAdminSinksToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-sinks"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_sinks", tools[0].Definition().Name) +} + +func TestPulsarAdminSinksToolSchema(t *testing.T) { + builder := NewPulsarAdminSinksToolBuilder() + tool, err := builder.buildSinksTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_sinks", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "operation", + "tenant", + "namespace", + "name", + "archive", + "sink-type", + "inputs", + "topics-pattern", + "subs-name", + "parallelism", + "sink-config", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) +} + +func TestPulsarAdminSinksToolBuilder_ReadOnlyRejectsCreate(t *testing.T) { + builder := NewPulsarAdminSinksToolBuilder() + handler := builder.buildSinksHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminSinksInput{ + Operation: "create", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} + +func TestPulsarAdminSubscriptionToolBuilder(t *testing.T) { + builder := NewPulsarAdminSubscriptionToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-subscriptions"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_subscription", tools[0].Definition().Name) +} + +func TestPulsarAdminSubscriptionToolSchema(t *testing.T) { + builder := NewPulsarAdminSubscriptionToolBuilder() + tool, err := builder.buildSubscriptionTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_subscription", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation", "topic"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "topic", + "subscription", + "messageId", + "count", + "expireTimeInSeconds", + "force", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) +} + +func TestPulsarAdminSubscriptionToolBuilder_ReadOnlyRejectsDelete(t *testing.T) { + builder := NewPulsarAdminSubscriptionToolBuilder() + handler := builder.buildSubscriptionHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminSubscriptionInput{ + Resource: "subscription", + Operation: "delete", + Topic: "persistent://public/default/test", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/builders/pulsar/brokers.go b/pkg/mcp/builders/pulsar/brokers.go index 6a81fd3..6de8205 100644 --- a/pkg/mcp/builders/pulsar/brokers.go +++ b/pkg/mcp/builders/pulsar/brokers.go @@ -20,13 +20,51 @@ import ( "encoding/json" "fmt" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminBrokersInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + ClusterName *string `json:"clusterName,omitempty"` + BrokerURL *string `json:"brokerUrl,omitempty"` + ConfigType *string `json:"configType,omitempty"` + ConfigName *string `json:"configName,omitempty"` + ConfigValue *string `json:"configValue,omitempty"` +} + +const ( + pulsarAdminBrokersResourceDesc = "Type of resource to access, available options:\n" + + "- brokers: Manage broker listings\n" + + "- health: Check broker health status\n" + + "- config: Manage broker configurations\n" + + "- namespaces: Manage namespaces owned by a broker" + pulsarAdminBrokersOperationDesc = "Operation to perform, available options:\n" + + "- list: List resources (used with brokers)\n" + + "- get: Retrieve resource information (used with health, config, namespaces)\n" + + "- update: Update a resource (used with config)\n" + + "- delete: Delete a resource (used with config)" + pulsarAdminBrokersClusterNameDesc = "Pulsar cluster name, required for these operations:\n" + + "- When resource=brokers, operation=list\n" + + "- When resource=namespaces, operation=get" + pulsarAdminBrokersBrokerURLDesc = "Broker URL, such as '127.0.0.1:8080', required for these operations:\n" + + "- When resource=namespaces, operation=get" + pulsarAdminBrokersConfigTypeDesc = "Configuration type, required when resource=config, operation=get, available options:\n" + + "- dynamic: Get list of dynamically modifiable configuration names\n" + + "- runtime: Get all runtime configurations (including static and dynamic configs)\n" + + "- internal: Get internal configuration information\n" + + "- all_dynamic: Get all dynamic configurations and their current values" + pulsarAdminBrokersConfigNameDesc = "Configuration parameter name, required for these operations:\n" + + "- When resource=config, operation=update\n" + + "- When resource=config, operation=delete" + pulsarAdminBrokersConfigValueDesc = "Configuration parameter value, required for these operations:\n" + + "- When resource=config, operation=update" +) + // PulsarAdminBrokersToolBuilder implements the ToolBuilder interface for Pulsar admin brokers // /nolint:revive type PulsarAdminBrokersToolBuilder struct { @@ -56,7 +94,7 @@ func NewPulsarAdminBrokersToolBuilder() *PulsarAdminBrokersToolBuilder { } // BuildTools builds the Pulsar admin brokers tool list -func (b *PulsarAdminBrokersToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminBrokersToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -68,11 +106,14 @@ func (b *PulsarAdminBrokersToolBuilder) BuildTools(_ context.Context, config bui } // Build tools - tool := b.buildPulsarAdminBrokersTool() + tool, err := b.buildPulsarAdminBrokersTool() + if err != nil { + return nil, err + } handler := b.buildPulsarAdminBrokersHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminBrokersInput, any]{ Tool: tool, Handler: handler, }, @@ -80,110 +121,80 @@ func (b *PulsarAdminBrokersToolBuilder) BuildTools(_ context.Context, config bui } // buildPulsarAdminBrokersTool builds the Pulsar admin brokers MCP tool definition -func (b *PulsarAdminBrokersToolBuilder) buildPulsarAdminBrokersTool() mcp.Tool { - return mcp.NewTool("pulsar_admin_brokers", - mcp.WithDescription("Unified tool for managing Apache Pulsar broker resources. This tool integrates multiple broker management functions, including:\n"+ - "1. List active brokers in a cluster (resource=brokers, operation=list)\n"+ - "2. Check broker health status (resource=health, operation=get)\n"+ - "3. Manage broker configurations (resource=config, operation=get/update/delete)\n"+ - "4. View namespaces owned by a broker (resource=namespaces, operation=get)\n\n"+ - "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n"+ - "Example: {\"resource\": \"config\", \"operation\": \"get\", \"configType\": \"dynamic\"} retrieves all dynamic configuration names.\n"+ - "This tool requires Pulsar super-user permissions."), - mcp.WithString("resource", mcp.Required(), - mcp.Description("Type of resource to access, available options:\n"+ - "- brokers: Manage broker listings\n"+ - "- health: Check broker health status\n"+ - "- config: Manage broker configurations\n"+ - "- namespaces: Manage namespaces owned by a broker"), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description("Operation to perform, available options:\n"+ - "- list: List resources (used with brokers)\n"+ - "- get: Retrieve resource information (used with health, config, namespaces)\n"+ - "- update: Update a resource (used with config)\n"+ - "- delete: Delete a resource (used with config)"), - ), - mcp.WithString("clusterName", - mcp.Description("Pulsar cluster name, required for these operations:\n"+ - "- When resource=brokers, operation=list\n"+ - "- When resource=namespaces, operation=get"), - ), - mcp.WithString("brokerUrl", - mcp.Description("Broker URL, such as '127.0.0.1:8080', required for these operations:\n"+ - "- When resource=namespaces, operation=get"), - ), - mcp.WithString("configType", - mcp.Description("Configuration type, required when resource=config, operation=get, available options:\n"+ - "- dynamic: Get list of dynamically modifiable configuration names\n"+ - "- runtime: Get all runtime configurations (including static and dynamic configs)\n"+ - "- internal: Get internal configuration information\n"+ - "- all_dynamic: Get all dynamic configurations and their current values"), - ), - mcp.WithString("configName", - mcp.Description("Configuration parameter name, required for these operations:\n"+ - "- When resource=config, operation=update\n"+ - "- When resource=config, operation=delete"), - ), - mcp.WithString("configValue", - mcp.Description("Configuration parameter value, required for these operations:\n"+ - "- When resource=config, operation=update"), - ), - ) +func (b *PulsarAdminBrokersToolBuilder) buildPulsarAdminBrokersTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminBrokersInputSchema() + if err != nil { + return nil, err + } + + toolDesc := "Unified tool for managing Apache Pulsar broker resources. This tool integrates multiple broker management functions, including:\n" + + "1. List active brokers in a cluster (resource=brokers, operation=list)\n" + + "2. Check broker health status (resource=health, operation=get)\n" + + "3. Manage broker configurations (resource=config, operation=get/update/delete)\n" + + "4. View namespaces owned by a broker (resource=namespaces, operation=get)\n\n" + + "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n" + + "Example: {\"resource\": \"config\", \"operation\": \"get\", \"configType\": \"dynamic\"} retrieves all dynamic configuration names.\n" + + "This tool requires Pulsar super-user permissions." + + return &sdk.Tool{ + Name: "pulsar_admin_brokers", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildPulsarAdminBrokersHandler builds the Pulsar admin brokers handler function -func (b *PulsarAdminBrokersToolBuilder) buildPulsarAdminBrokersHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokersToolBuilder) buildPulsarAdminBrokersHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminBrokersInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminBrokersInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Get admin client client, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to get admin client: %v", err) } // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError("Missing required resource parameter. " + - "Please specify one of: brokers, health, config, namespaces."), nil + resource := input.Resource + if resource == "" { + return nil, nil, fmt.Errorf("missing required resource parameter. please specify one of: brokers, health, config, namespaces") } - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError("Missing required operation parameter. " + - "Please specify one of: list, get, update, delete based on the resource type."), nil + operation := input.Operation + if operation == "" { + return nil, nil, fmt.Errorf("missing required operation parameter. please specify one of: list, get, update, delete based on the resource type") } // Validate if the parameter combination is valid validCombination, errMsg := b.validateResourceOperation(resource, operation) if !validCombination { - return mcp.NewToolResultError(errMsg), nil + return nil, nil, fmt.Errorf("%s", errMsg) } // Process request based on resource type switch resource { case "brokers": - return b.handleBrokersResource(client, operation, request) + result, err := b.handleBrokersResource(client, operation, input) + return result, nil, err case "health": - return b.handleHealthResource(client, operation, request) + result, err := b.handleHealthResource(client, operation) + return result, nil, err case "config": // Check write operation permissions if (operation == "update" || operation == "delete") && readOnly { - return mcp.NewToolResultError("Configuration update/delete operations not allowed in read-only mode. " + - "Please contact your administrator if you need to modify broker configurations."), nil + return nil, nil, fmt.Errorf("configuration update/delete operations not allowed in read-only mode. please contact your administrator if you need to modify broker configurations") } - return b.handleConfigResource(client, operation, request) + result, err := b.handleConfigResource(client, operation, input) + return result, nil, err case "namespaces": - return b.handleNamespacesResource(client, operation, request) + result, err := b.handleNamespacesResource(client, operation, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: brokers, health, config, namespaces.", resource)), nil + return nil, nil, fmt.Errorf("unsupported resource: %s. please use one of: brokers, health, config, namespaces", resource) } } } @@ -213,58 +224,47 @@ func (b *PulsarAdminBrokersToolBuilder) validateResourceOperation(resource, oper } // handleBrokersResource handles brokers resource -func (b *PulsarAdminBrokersToolBuilder) handleBrokersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokersToolBuilder) handleBrokersResource(client cmdutils.Client, operation string, input pulsarAdminBrokersInput) (*sdk.CallToolResult, error) { switch operation { case "list": - clusterName, err := request.RequireString("clusterName") + clusterName, err := requireString(input.ClusterName, "clusterName") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'clusterName'. " + - "Please provide the name of the Pulsar cluster to list brokers for."), nil + return nil, fmt.Errorf("missing required parameter 'clusterName'. please provide the name of the Pulsar cluster to list brokers for") } brokers, err := client.Brokers().GetActiveBrokers(clusterName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get active brokers: %v. "+ - "Please verify the cluster name and ensure the Pulsar service is running.", err)), nil + return nil, fmt.Errorf("failed to get active brokers: %v. please verify the cluster name and ensure the Pulsar service is running", err) } - brokersJSON, err := json.Marshal(brokers) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers list: %v", err)), nil - } - - return mcp.NewToolResultText(string(brokersJSON)), nil + return b.marshalResponse(brokers) default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for brokers resource. "+ - "The only supported operation is 'list'.", operation)), nil + return nil, fmt.Errorf("unsupported operation '%s' for brokers resource. the only supported operation is 'list'", operation) } } // handleHealthResource handles health resource -func (b *PulsarAdminBrokersToolBuilder) handleHealthResource(client cmdutils.Client, operation string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokersToolBuilder) handleHealthResource(client cmdutils.Client, operation string) (*sdk.CallToolResult, error) { switch operation { case "get": //nolint:staticcheck err := client.Brokers().HealthCheck() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Broker health check failed: %v. "+ - "The broker might be down or experiencing issues.", err)), nil + return nil, fmt.Errorf("broker health check failed: %v. the broker might be down or experiencing issues", err) } - return mcp.NewToolResultText("ok"), nil + return textResult("ok"), nil default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for health resource. "+ - "The only supported operation is 'get'.", operation)), nil + return nil, fmt.Errorf("unsupported operation '%s' for health resource. the only supported operation is 'get'", operation) } } // handleConfigResource handles config resource -func (b *PulsarAdminBrokersToolBuilder) handleConfigResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokersToolBuilder) handleConfigResource(client cmdutils.Client, operation string, input pulsarAdminBrokersInput) (*sdk.CallToolResult, error) { switch operation { case "get": - configType, err := request.RequireString("configType") + configType, err := requireString(input.ConfigType, "configType") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'configType'. " + - "Please specify one of: dynamic, runtime, internal, all_dynamic."), nil + return nil, fmt.Errorf("missing required parameter 'configType'. please specify one of: dynamic, runtime, internal, all_dynamic") } var result interface{} @@ -280,95 +280,108 @@ func (b *PulsarAdminBrokersToolBuilder) handleConfigResource(client cmdutils.Cli case "all_dynamic": result, fetchErr = client.Brokers().GetAllDynamicConfigurations() default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid config type: '%s'. "+ - "Valid types are: dynamic, runtime, internal, all_dynamic.", configType)), nil + return nil, fmt.Errorf("invalid config type: '%s'. valid types are: dynamic, runtime, internal, all_dynamic", configType) } if fetchErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get %s configuration: %v", configType, fetchErr)), nil + return nil, fmt.Errorf("failed to get %s configuration: %v", configType, fetchErr) } - resultJSON, err := json.Marshal(result) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize configuration: %v", err)), nil - } - - return mcp.NewToolResultText(string(resultJSON)), nil + return b.marshalResponse(result) case "update": - configName, err := request.RequireString("configName") + configName, err := requireString(input.ConfigName, "configName") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'configName'. " + - "Please provide the name of the configuration parameter to update."), nil + return nil, fmt.Errorf("missing required parameter 'configName'. please provide the name of the configuration parameter to update") } - configValue, err := request.RequireString("configValue") + configValue, err := requireString(input.ConfigValue, "configValue") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'configValue'. " + - "Please provide the new value for the configuration parameter."), nil + return nil, fmt.Errorf("missing required parameter 'configValue'. please provide the new value for the configuration parameter") } err = client.Brokers().UpdateDynamicConfiguration(configName, configValue) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update configuration: %v. "+ - "Please verify the configuration name is valid and the value is of the correct type.", err)), nil + return nil, fmt.Errorf("failed to update configuration: %v. please verify the configuration name is valid and the value is of the correct type", err) } - return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' updated successfully to '%s'", - configName, configValue)), nil + return textResult(fmt.Sprintf("Dynamic configuration '%s' updated successfully to '%s'", configName, configValue)), nil case "delete": - configName, err := request.RequireString("configName") + configName, err := requireString(input.ConfigName, "configName") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'configName'. " + - "Please provide the name of the configuration parameter to delete."), nil + return nil, fmt.Errorf("missing required parameter 'configName'. please provide the name of the configuration parameter to delete") } err = client.Brokers().DeleteDynamicConfiguration(configName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete configuration: %v. "+ - "Please verify the configuration name is valid and exists.", err)), nil + return nil, fmt.Errorf("failed to delete configuration: %v. please verify the configuration name is valid and exists", err) } - return mcp.NewToolResultText(fmt.Sprintf("Dynamic configuration '%s' deleted successfully", configName)), nil + return textResult(fmt.Sprintf("Dynamic configuration '%s' deleted successfully", configName)), nil default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for config resource. "+ - "Supported operations are: get, update, delete.", operation)), nil + return nil, fmt.Errorf("unsupported operation '%s' for config resource. supported operations are: get, update, delete", operation) } } // handleNamespacesResource handles namespaces resource -func (b *PulsarAdminBrokersToolBuilder) handleNamespacesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokersToolBuilder) handleNamespacesResource(client cmdutils.Client, operation string, input pulsarAdminBrokersInput) (*sdk.CallToolResult, error) { switch operation { case "get": - clusterName, err := request.RequireString("clusterName") + clusterName, err := requireString(input.ClusterName, "clusterName") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'clusterName'. " + - "Please provide the name of the Pulsar cluster."), nil + return nil, fmt.Errorf("missing required parameter 'clusterName'. please provide the name of the Pulsar cluster") } - brokerURL, err := request.RequireString("brokerUrl") + brokerURL, err := requireString(input.BrokerURL, "brokerUrl") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'brokerUrl'. " + - "Please provide the URL of the broker (e.g., '127.0.0.1:8080')."), nil + return nil, fmt.Errorf("missing required parameter 'brokerUrl'. please provide the URL of the broker (e.g., '127.0.0.1:8080')") } namespaces, err := client.Brokers().GetOwnedNamespaces(clusterName, brokerURL) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get owned namespaces: %v. "+ - "Please verify the cluster name and broker URL are correct.", err)), nil - } - - namespacesJSON, err := json.Marshal(namespaces) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespaces: %v", err)), nil + return nil, fmt.Errorf("failed to get owned namespaces: %v. please verify the cluster name and broker URL are correct", err) } - return mcp.NewToolResultText(string(namespacesJSON)), nil + return b.marshalResponse(namespaces) default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation '%s' for namespaces resource. "+ - "The only supported operation is 'get'.", operation)), nil + return nil, fmt.Errorf("unsupported operation '%s' for namespaces resource. the only supported operation is 'get'", operation) } } + +func (b *PulsarAdminBrokersToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return nil, fmt.Errorf("failed to marshal response: %v", err) + } + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil +} + +func buildPulsarAdminBrokersInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminBrokersInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminBrokersResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminBrokersOperationDesc) + setSchemaDescription(schema, "clusterName", pulsarAdminBrokersClusterNameDesc) + setSchemaDescription(schema, "brokerUrl", pulsarAdminBrokersBrokerURLDesc) + setSchemaDescription(schema, "configType", pulsarAdminBrokersConfigTypeDesc) + setSchemaDescription(schema, "configName", pulsarAdminBrokersConfigNameDesc) + setSchemaDescription(schema, "configValue", pulsarAdminBrokersConfigValueDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/pulsar/brokers_legacy.go b/pkg/mcp/builders/pulsar/brokers_legacy.go new file mode 100644 index 0000000..7837ace --- /dev/null +++ b/pkg/mcp/builders/pulsar/brokers_legacy.go @@ -0,0 +1,122 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminBrokersLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin brokers. +// /nolint:revive +type PulsarAdminBrokersLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminBrokersLegacyToolBuilder creates a new Pulsar admin brokers legacy tool builder instance. +func NewPulsarAdminBrokersLegacyToolBuilder() *PulsarAdminBrokersLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_brokers", + Version: "1.0.0", + Description: "Pulsar admin brokers management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "brokers"}, + } + + features := []string{ + "pulsar-admin-brokers", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminBrokersLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin brokers legacy tool list. +func (b *PulsarAdminBrokersLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildPulsarAdminBrokersTool() + if err != nil { + return nil, err + } + handler := b.buildPulsarAdminBrokersHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminBrokersLegacyToolBuilder) buildPulsarAdminBrokersTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminBrokersInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Unified tool for managing Apache Pulsar broker resources. This tool integrates multiple broker management functions, including:\n" + + "1. List active brokers in a cluster (resource=brokers, operation=list)\n" + + "2. Check broker health status (resource=health, operation=get)\n" + + "3. Manage broker configurations (resource=config, operation=get/update/delete)\n" + + "4. View namespaces owned by a broker (resource=namespaces, operation=get)\n\n" + + "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n" + + "Example: {\"resource\": \"config\", \"operation\": \"get\", \"configType\": \"dynamic\"} retrieves all dynamic configuration names.\n" + + "This tool requires Pulsar super-user permissions." + + return mcp.Tool{ + Name: "pulsar_admin_brokers", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminBrokersLegacyToolBuilder) buildPulsarAdminBrokersHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminBrokersToolBuilder() + sdkHandler := sdkBuilder.buildPulsarAdminBrokersHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminBrokersInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/cluster.go b/pkg/mcp/builders/pulsar/cluster.go index 02ce2e6..58b15bb 100644 --- a/pkg/mcp/builders/pulsar/cluster.go +++ b/pkg/mcp/builders/pulsar/cluster.go @@ -20,13 +20,49 @@ import ( "fmt" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminClusterInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + ClusterName *string `json:"cluster_name,omitempty"` + DomainName *string `json:"domain_name,omitempty"` + ServiceURL *string `json:"service_url,omitempty"` + ServiceURLTLS *string `json:"service_url_tls,omitempty"` + BrokerServiceURL *string `json:"broker_service_url,omitempty"` + BrokerServiceURLTLS *string `json:"broker_service_url_tls,omitempty"` + PeerClusterNames []string `json:"peer_cluster_names,omitempty"` + Brokers []string `json:"brokers,omitempty"` +} + +const ( + pulsarAdminClusterResourceDesc = "Type of cluster resource to access, available options:\n" + + "- cluster: Pulsar cluster configuration\n" + + "- peer_clusters: Peer clusters for geo-replication\n" + + "- failure_domain: Failure domains for fault tolerance" + pulsarAdminClusterOperationDesc = "Operation to perform, available options (depend on resource):\n" + + "- list: List resources (used with cluster, failure_domain)\n" + + "- get: Retrieve resource information (used with cluster, peer_clusters, failure_domain)\n" + + "- create: Create a new resource (used with cluster, failure_domain)\n" + + "- update: Update an existing resource (used with cluster, peer_clusters, failure_domain)\n" + + "- delete: Delete a resource (used with cluster, failure_domain)" + pulsarAdminClusterNameDesc = "Name of the Pulsar cluster, required for all operations except 'list' with resource=cluster" + pulsarAdminClusterDomainNameDesc = "Name of the failure domain, required when resource=failure_domain and operation is get, create, update, or delete" + pulsarAdminClusterServiceURLDesc = "Pulsar cluster web service URL (e.g., http://example.pulsar.io:8080), used when resource=cluster and operation is create or update" + pulsarAdminClusterServiceURLTLSDesc = "Pulsar cluster TLS secured web service URL (e.g., https://example.pulsar.io:8443), used when resource=cluster and operation is create or update" + pulsarAdminClusterBrokerServiceURLDesc = "Pulsar cluster broker service URL (e.g., pulsar://example.pulsar.io:6650), used when resource=cluster and operation is create or update" + pulsarAdminClusterBrokerServiceURLTLSDesc = "Pulsar cluster TLS secured broker service URL (e.g., pulsar+ssl://example.pulsar.io:6651), used when resource=cluster and operation is create or update" + pulsarAdminClusterPeerClusterNamesDesc = "List of clusters to be registered as peer-clusters, used when:\n" + + "- resource=cluster and operation is create or update\n" + + "- resource=peer_clusters and operation is update" + pulsarAdminClusterBrokersDesc = "List of broker names to include in a failure domain, required when resource=failure_domain and operation is create or update" +) + // PulsarAdminClusterToolBuilder implements the ToolBuilder interface for Pulsar Admin Cluster tools // It provides functionality to build Pulsar cluster management tools // /nolint:revive @@ -58,7 +94,7 @@ func NewPulsarAdminClusterToolBuilder() *PulsarAdminClusterToolBuilder { // BuildTools builds the Pulsar Admin Cluster tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminClusterToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminClusterToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -70,11 +106,14 @@ func (b *PulsarAdminClusterToolBuilder) BuildTools(_ context.Context, config bui } // Build tools - tool := b.buildClusterTool() + tool, err := b.buildClusterTool() + if err != nil { + return nil, err + } handler := b.buildClusterHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminClusterInput, any]{ Tool: tool, Handler: handler, }, @@ -83,7 +122,12 @@ func (b *PulsarAdminClusterToolBuilder) BuildTools(_ context.Context, config bui // buildClusterTool builds the Pulsar Admin Cluster MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminClusterToolBuilder) buildClusterTool() mcp.Tool { +func (b *PulsarAdminClusterToolBuilder) buildClusterTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminClusterInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Unified tool for managing Apache Pulsar clusters.\n" + "This tool provides access to various cluster resources and operations, including:\n" + "1. Manage clusters (resource=cluster): List, get, create, update, delete clusters\n" + @@ -96,118 +140,62 @@ func (b *PulsarAdminClusterToolBuilder) buildClusterTool() mcp.Tool { "- {\"resource\": \"failure_domain\", \"operation\": \"list\", \"cluster_name\": \"my-cluster\"} lists failure domains\n" + "This tool requires Pulsar super-user permissions." - resourceDesc := "Type of cluster resource to access, available options:\n" + - "- cluster: Pulsar cluster configuration\n" + - "- peer_clusters: Peer clusters for geo-replication\n" + - "- failure_domain: Failure domains for fault tolerance" - - operationDesc := "Operation to perform, available options (depend on resource):\n" + - "- list: List resources (used with cluster, failure_domain)\n" + - "- get: Retrieve resource information (used with cluster, peer_clusters, failure_domain)\n" + - "- create: Create a new resource (used with cluster, failure_domain)\n" + - "- update: Update an existing resource (used with cluster, peer_clusters, failure_domain)\n" + - "- delete: Delete a resource (used with cluster, failure_domain)" - - return mcp.NewTool("pulsar_admin_cluster", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("cluster_name", - mcp.Description("Name of the Pulsar cluster, required for all operations except 'list' with resource=cluster"), - ), - mcp.WithString("domain_name", - mcp.Description("Name of the failure domain, required when resource=failure_domain and operation is get, create, update, or delete"), - ), - mcp.WithString("service_url", - mcp.Description("Pulsar cluster web service URL (e.g., http://example.pulsar.io:8080), used when resource=cluster and operation is create or update"), - ), - mcp.WithString("service_url_tls", - mcp.Description("Pulsar cluster TLS secured web service URL (e.g., https://example.pulsar.io:8443), used when resource=cluster and operation is create or update"), - ), - mcp.WithString("broker_service_url", - mcp.Description("Pulsar cluster broker service URL (e.g., pulsar://example.pulsar.io:6650), used when resource=cluster and operation is create or update"), - ), - mcp.WithString("broker_service_url_tls", - mcp.Description("Pulsar cluster TLS secured broker service URL (e.g., pulsar+ssl://example.pulsar.io:6651), used when resource=cluster and operation is create or update"), - ), - mcp.WithArray("peer_cluster_names", - mcp.Description("List of clusters to be registered as peer-clusters, used when:\n"+ - "- resource=cluster and operation is create or update\n"+ - "- resource=peer_clusters and operation is update"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "peer cluster name", - }, - ), - ), - mcp.WithArray("brokers", - mcp.Description("List of broker names to include in a failure domain, required when resource=failure_domain and operation is create or update"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "broker", - }, - ), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_cluster", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildClusterHandler builds the Pulsar Admin Cluster handler function // Migrated from the original handler logic -func (b *PulsarAdminClusterToolBuilder) buildClusterHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) buildClusterHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminClusterInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminClusterInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError("Missing required resource parameter. " + - "Please specify one of: cluster, peer_clusters, failure_domain."), nil + resource := input.Resource + if resource == "" { + return nil, nil, fmt.Errorf("missing required resource parameter. please specify one of: cluster, peer_clusters, failure_domain") } - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError("Missing required operation parameter. " + - "Please specify one of: list, get, create, update, delete based on the resource type."), nil + operation := input.Operation + if operation == "" { + return nil, nil, fmt.Errorf("missing required operation parameter. please specify one of: list, get, create, update, delete based on the resource type") } // Validate if the parameter combination is valid validCombination, errMsg := b.validateClusterResourceOperation(resource, operation) if !validCombination { - return mcp.NewToolResultError(errMsg), nil + return nil, nil, fmt.Errorf("%s", errMsg) } // Check write operation permissions if (operation == "create" || operation == "update" || operation == "delete") && readOnly { - return mcp.NewToolResultError("Create/update/delete operations not allowed in read-only mode. " + - "Please contact your administrator if you need to modify cluster resources."), nil + return nil, nil, fmt.Errorf("create/update/delete operations not allowed in read-only mode. please contact your administrator if you need to modify cluster resources") } // Process request based on resource type switch resource { case "cluster": - return b.handleClusterResource(client, operation, request) + result, err := b.handleClusterResource(client, operation, input) + return result, nil, err case "peer_clusters": - return b.handlePeerClustersResource(client, operation, request) + result, err := b.handlePeerClustersResource(client, operation, input) + return result, nil, err case "failure_domain": - return b.handleFailureDomainResource(client, operation, request) + result, err := b.handleFailureDomainResource(client, operation, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: cluster, peer_clusters, failure_domain.", resource)), nil + return nil, nil, fmt.Errorf("unsupported resource: %s. please use one of: cluster, peer_clusters, failure_domain", resource) } } } @@ -215,17 +203,19 @@ func (b *PulsarAdminClusterToolBuilder) buildClusterHandler(readOnly bool) func( // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarAdminClusterToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminClusterToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminClusterToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Validate if the resource and operation combination is valid @@ -250,110 +240,103 @@ func (b *PulsarAdminClusterToolBuilder) validateClusterResourceOperation(resourc } // Handle cluster resource operations -func (b *PulsarAdminClusterToolBuilder) handleClusterResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) handleClusterResource(client cmdutils.Client, operation string, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { switch operation { case "list": return b.handleClusterList(client) case "get": - clusterName, err := request.RequireString("cluster_name") + clusterName, err := requireString(input.ClusterName, "cluster_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to get information for."), nil + return nil, fmt.Errorf("missing required parameter 'cluster_name'. please provide the name of the cluster to get information for") } return b.getClusterData(client, clusterName) case "create": - return b.createCluster(client, request) + return b.createCluster(client, input) case "update": - return b.updateCluster(client, request) + return b.updateCluster(client, input) case "delete": - clusterName, err := request.RequireString("cluster_name") + clusterName, err := requireString(input.ClusterName, "cluster_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to delete."), nil + return nil, fmt.Errorf("missing required parameter 'cluster_name'. please provide the name of the cluster to delete") } return b.deleteCluster(client, clusterName) default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported cluster operation: %s", operation)), nil + return nil, fmt.Errorf("unsupported cluster operation: %s", operation) } } // Handle peer clusters resource operations -func (b *PulsarAdminClusterToolBuilder) handlePeerClustersResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") +func (b *PulsarAdminClusterToolBuilder) handlePeerClustersResource(client cmdutils.Client, operation string, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { + clusterName, err := requireString(input.ClusterName, "cluster_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster for peer clusters operation."), nil + return nil, fmt.Errorf("missing required parameter 'cluster_name'. please provide the name of the cluster for peer clusters operation") } switch operation { case "get": return b.getPeerClusters(client, clusterName) case "update": - return b.updatePeerClusters(client, clusterName, request) + return b.updatePeerClusters(client, clusterName, input) default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported peer_clusters operation: %s", operation)), nil + return nil, fmt.Errorf("unsupported peer_clusters operation: %s", operation) } } // Handle failure domain resource operations -func (b *PulsarAdminClusterToolBuilder) handleFailureDomainResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") +func (b *PulsarAdminClusterToolBuilder) handleFailureDomainResource(client cmdutils.Client, operation string, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { + clusterName, err := requireString(input.ClusterName, "cluster_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster for failure domain operation."), nil + return nil, fmt.Errorf("missing required parameter 'cluster_name'. please provide the name of the cluster for failure domain operation") } switch operation { case "list": return b.listFailureDomains(client, clusterName) case "get": - domainName, err := request.RequireString("domain_name") + domainName, err := requireString(input.DomainName, "domain_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain."), nil + return nil, fmt.Errorf("missing required parameter 'domain_name'. please provide the name of the failure domain") } return b.getFailureDomain(client, clusterName, domainName) case "create": - return b.createFailureDomain(client, clusterName, request) + return b.createFailureDomain(client, clusterName, input) case "update": - return b.updateFailureDomain(client, clusterName, request) + return b.updateFailureDomain(client, clusterName, input) case "delete": - domainName, err := request.RequireString("domain_name") + domainName, err := requireString(input.DomainName, "domain_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain to delete."), nil + return nil, fmt.Errorf("missing required parameter 'domain_name'. please provide the name of the failure domain to delete") } return b.deleteFailureDomain(client, clusterName, domainName) default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported failure_domain operation: %s", operation)), nil + return nil, fmt.Errorf("unsupported failure_domain operation: %s", operation) } } -func (b *PulsarAdminClusterToolBuilder) handleClusterList(client cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) handleClusterList(client cmdutils.Client) (*sdk.CallToolResult, error) { // Get cluster list clusters, err := client.Clusters().List() if err != nil { - return b.handleError("get cluster list", err), nil + return nil, b.handleError("get cluster list", err) } return b.marshalResponse(clusters) } -func (b *PulsarAdminClusterToolBuilder) getClusterData(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) getClusterData(client cmdutils.Client, clusterName string) (*sdk.CallToolResult, error) { // Get cluster data clusterData, err := client.Clusters().Get(clusterName) if err != nil { - return b.handleError("get cluster data", err), nil + return nil, b.handleError("get cluster data", err) } return b.marshalResponse(clusterData) } -func (b *PulsarAdminClusterToolBuilder) createCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") +func (b *PulsarAdminClusterToolBuilder) createCluster(client cmdutils.Client, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { + clusterName, err := requireString(input.ClusterName, "cluster_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to create."), nil + return nil, fmt.Errorf("missing required parameter 'cluster_name'. please provide the name of the cluster to create") } // Initialize cluster data @@ -362,36 +345,35 @@ func (b *PulsarAdminClusterToolBuilder) createCluster(client cmdutils.Client, re } // Set optional parameters if provided - if serviceURL := request.GetString("service_url", ""); serviceURL != "" { + if serviceURL := stringValue(input.ServiceURL); serviceURL != "" { clusterData.ServiceURL = serviceURL } - if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { - clusterData.ServiceURLTls = serviceURLTls + if serviceURLTLS := stringValue(input.ServiceURLTLS); serviceURLTLS != "" { + clusterData.ServiceURLTls = serviceURLTLS } - if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { + if brokerServiceURL := stringValue(input.BrokerServiceURL); brokerServiceURL != "" { clusterData.BrokerServiceURL = brokerServiceURL } - if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { - clusterData.BrokerServiceURLTls = brokerServiceURLTls + if brokerServiceURLTLS := stringValue(input.BrokerServiceURLTLS); brokerServiceURLTLS != "" { + clusterData.BrokerServiceURLTls = brokerServiceURLTLS } - if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { - clusterData.PeerClusterNames = peerClusters + if len(input.PeerClusterNames) > 0 { + clusterData.PeerClusterNames = input.PeerClusterNames } // Create cluster err = client.Clusters().Create(clusterData) if err != nil { - return b.handleError("create cluster", err), nil + return nil, b.handleError("create cluster", err) } - return mcp.NewToolResultText(fmt.Sprintf("Cluster %s created successfully", clusterName)), nil + return textResult(fmt.Sprintf("Cluster %s created successfully", clusterName)), nil } -func (b *PulsarAdminClusterToolBuilder) updateCluster(client cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusterName, err := request.RequireString("cluster_name") +func (b *PulsarAdminClusterToolBuilder) updateCluster(client cmdutils.Client, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { + clusterName, err := requireString(input.ClusterName, "cluster_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'cluster_name'. " + - "Please provide the name of the cluster to update."), nil + return nil, fmt.Errorf("missing required parameter 'cluster_name'. please provide the name of the cluster to update") } // Initialize cluster data @@ -400,98 +382,95 @@ func (b *PulsarAdminClusterToolBuilder) updateCluster(client cmdutils.Client, re } // Set optional parameters if provided - if serviceURL := request.GetString("service_url", ""); serviceURL != "" { + if serviceURL := stringValue(input.ServiceURL); serviceURL != "" { clusterData.ServiceURL = serviceURL } - if serviceURLTls := request.GetString("service_url_tls", ""); serviceURLTls != "" { - clusterData.ServiceURLTls = serviceURLTls + if serviceURLTLS := stringValue(input.ServiceURLTLS); serviceURLTLS != "" { + clusterData.ServiceURLTls = serviceURLTLS } - if brokerServiceURL := request.GetString("broker_service_url", ""); brokerServiceURL != "" { + if brokerServiceURL := stringValue(input.BrokerServiceURL); brokerServiceURL != "" { clusterData.BrokerServiceURL = brokerServiceURL } - if brokerServiceURLTls := request.GetString("broker_service_url_tls", ""); brokerServiceURLTls != "" { - clusterData.BrokerServiceURLTls = brokerServiceURLTls + if brokerServiceURLTLS := stringValue(input.BrokerServiceURLTLS); brokerServiceURLTLS != "" { + clusterData.BrokerServiceURLTls = brokerServiceURLTLS } - if peerClusters := request.GetStringSlice("peer_cluster_names", []string{}); len(peerClusters) > 0 { - clusterData.PeerClusterNames = peerClusters + if len(input.PeerClusterNames) > 0 { + clusterData.PeerClusterNames = input.PeerClusterNames } // Update cluster err = client.Clusters().Update(clusterData) if err != nil { - return b.handleError("update cluster", err), nil + return nil, b.handleError("update cluster", err) } - return mcp.NewToolResultText(fmt.Sprintf("Cluster %s updated successfully", clusterName)), nil + return textResult(fmt.Sprintf("Cluster %s updated successfully", clusterName)), nil } -func (b *PulsarAdminClusterToolBuilder) deleteCluster(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) deleteCluster(client cmdutils.Client, clusterName string) (*sdk.CallToolResult, error) { // Delete cluster err := client.Clusters().Delete(clusterName) if err != nil { - return b.handleError("delete cluster", err), nil + return nil, b.handleError("delete cluster", err) } - return mcp.NewToolResultText(fmt.Sprintf("Cluster %s deleted successfully", clusterName)), nil + return textResult(fmt.Sprintf("Cluster %s deleted successfully", clusterName)), nil } -func (b *PulsarAdminClusterToolBuilder) getPeerClusters(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) getPeerClusters(client cmdutils.Client, clusterName string) (*sdk.CallToolResult, error) { // Get peer clusters peerClusters, err := client.Clusters().GetPeerClusters(clusterName) if err != nil { - return b.handleError("get peer clusters", err), nil + return nil, b.handleError("get peer clusters", err) } return b.marshalResponse(peerClusters) } -func (b *PulsarAdminClusterToolBuilder) updatePeerClusters(client cmdutils.Client, clusterName string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - peerClusters, err := request.RequireStringSlice("peer_cluster_names") +func (b *PulsarAdminClusterToolBuilder) updatePeerClusters(client cmdutils.Client, clusterName string, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { + peerClusters, err := requireStringSlice(input.PeerClusterNames, "peer_cluster_names") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'peer_cluster_names'. " + - "Please provide an array of peer cluster names to set."), nil + return nil, fmt.Errorf("missing required parameter 'peer_cluster_names'. please provide an array of peer cluster names to set") } // Update peer clusters err = client.Clusters().UpdatePeerClusters(clusterName, peerClusters) if err != nil { - return b.handleError("update peer clusters", err), nil + return nil, b.handleError("update peer clusters", err) } - return mcp.NewToolResultText(fmt.Sprintf("Peer clusters for %s updated successfully", clusterName)), nil + return textResult(fmt.Sprintf("Peer clusters for %s updated successfully", clusterName)), nil } -func (b *PulsarAdminClusterToolBuilder) listFailureDomains(client cmdutils.Client, clusterName string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) listFailureDomains(client cmdutils.Client, clusterName string) (*sdk.CallToolResult, error) { // Get failure domains list failureDomains, err := client.Clusters().ListFailureDomains(clusterName) if err != nil { - return b.handleError("list failure domains", err), nil + return nil, b.handleError("list failure domains", err) } return b.marshalResponse(failureDomains) } -func (b *PulsarAdminClusterToolBuilder) getFailureDomain(client cmdutils.Client, clusterName, domainName string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) getFailureDomain(client cmdutils.Client, clusterName, domainName string) (*sdk.CallToolResult, error) { // Get failure domain failureDomain, err := client.Clusters().GetFailureDomain(clusterName, domainName) if err != nil { - return b.handleError("get failure domain", err), nil + return nil, b.handleError("get failure domain", err) } return b.marshalResponse(failureDomain) } -func (b *PulsarAdminClusterToolBuilder) createFailureDomain(client cmdutils.Client, clusterName string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - domainName, err := request.RequireString("domain_name") +func (b *PulsarAdminClusterToolBuilder) createFailureDomain(client cmdutils.Client, clusterName string, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { + domainName, err := requireString(input.DomainName, "domain_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain to create."), nil + return nil, fmt.Errorf("missing required parameter 'domain_name'. please provide the name of the failure domain to create") } - brokers, err := request.RequireStringSlice("brokers") + brokers, err := requireStringSlice(input.Brokers, "brokers") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'brokers'. " + - "Please provide an array of broker names to include in this failure domain."), nil + return nil, fmt.Errorf("missing required parameter 'brokers'. please provide an array of broker names to include in this failure domain") } // Create failure domain data @@ -504,23 +483,21 @@ func (b *PulsarAdminClusterToolBuilder) createFailureDomain(client cmdutils.Clie // Create failure domain err = client.Clusters().CreateFailureDomain(failureDomainData) if err != nil { - return b.handleError("create failure domain", err), nil + return nil, b.handleError("create failure domain", err) } - return mcp.NewToolResultText(fmt.Sprintf("Failure domain %s created successfully in cluster %s", domainName, clusterName)), nil + return textResult(fmt.Sprintf("Failure domain %s created successfully in cluster %s", domainName, clusterName)), nil } -func (b *PulsarAdminClusterToolBuilder) updateFailureDomain(client cmdutils.Client, clusterName string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - domainName, err := request.RequireString("domain_name") +func (b *PulsarAdminClusterToolBuilder) updateFailureDomain(client cmdutils.Client, clusterName string, input pulsarAdminClusterInput) (*sdk.CallToolResult, error) { + domainName, err := requireString(input.DomainName, "domain_name") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'domain_name'. " + - "Please provide the name of the failure domain to update."), nil + return nil, fmt.Errorf("missing required parameter 'domain_name'. please provide the name of the failure domain to update") } - brokers, err := request.RequireStringSlice("brokers") + brokers, err := requireStringSlice(input.Brokers, "brokers") if err != nil { - return mcp.NewToolResultError("Missing required parameter 'brokers'. " + - "Please provide an array of broker names to include in this failure domain."), nil + return nil, fmt.Errorf("missing required parameter 'brokers'. please provide an array of broker names to include in this failure domain") } // Create failure domain data @@ -533,14 +510,13 @@ func (b *PulsarAdminClusterToolBuilder) updateFailureDomain(client cmdutils.Clie // Update failure domain err = client.Clusters().UpdateFailureDomain(failureDomainData) if err != nil { - return b.handleError("update failure domain", err), nil + return nil, b.handleError("update failure domain", err) } - return mcp.NewToolResultText( - fmt.Sprintf("Failure domain %s updated successfully in cluster %s", domainName, clusterName)), nil + return textResult(fmt.Sprintf("Failure domain %s updated successfully in cluster %s", domainName, clusterName)), nil } -func (b *PulsarAdminClusterToolBuilder) deleteFailureDomain(client cmdutils.Client, clusterName, domainName string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminClusterToolBuilder) deleteFailureDomain(client cmdutils.Client, clusterName, domainName string) (*sdk.CallToolResult, error) { // Create failure domain data for deletion failureDomainData := utils.FailureDomainData{ ClusterName: clusterName, @@ -550,9 +526,43 @@ func (b *PulsarAdminClusterToolBuilder) deleteFailureDomain(client cmdutils.Clie // Delete failure domain err := client.Clusters().DeleteFailureDomain(failureDomainData) if err != nil { - return b.handleError("delete failure domain", err), nil + return nil, b.handleError("delete failure domain", err) + } + + return textResult(fmt.Sprintf("Failure domain %s deleted successfully from cluster %s", domainName, clusterName)), nil +} + +func buildPulsarAdminClusterInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminClusterInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminClusterResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminClusterOperationDesc) + setSchemaDescription(schema, "cluster_name", pulsarAdminClusterNameDesc) + setSchemaDescription(schema, "domain_name", pulsarAdminClusterDomainNameDesc) + setSchemaDescription(schema, "service_url", pulsarAdminClusterServiceURLDesc) + setSchemaDescription(schema, "service_url_tls", pulsarAdminClusterServiceURLTLSDesc) + setSchemaDescription(schema, "broker_service_url", pulsarAdminClusterBrokerServiceURLDesc) + setSchemaDescription(schema, "broker_service_url_tls", pulsarAdminClusterBrokerServiceURLTLSDesc) + setSchemaDescription(schema, "peer_cluster_names", pulsarAdminClusterPeerClusterNamesDesc) + setSchemaDescription(schema, "brokers", pulsarAdminClusterBrokersDesc) + + if peersSchema := schema.Properties["peer_cluster_names"]; peersSchema != nil && peersSchema.Items != nil { + peersSchema.Items.Description = "peer cluster name" + } + if brokersSchema := schema.Properties["brokers"]; brokersSchema != nil && brokersSchema.Items != nil { + brokersSchema.Items.Description = "broker" } - return mcp.NewToolResultText( - fmt.Sprintf("Failure domain %s deleted successfully from cluster %s", domainName, clusterName)), nil + normalizeAdditionalProperties(schema) + return schema, nil } diff --git a/pkg/mcp/builders/pulsar/cluster_legacy.go b/pkg/mcp/builders/pulsar/cluster_legacy.go new file mode 100644 index 0000000..2793e7c --- /dev/null +++ b/pkg/mcp/builders/pulsar/cluster_legacy.go @@ -0,0 +1,125 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminClusterLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin clusters. +// /nolint:revive +type PulsarAdminClusterLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminClusterLegacyToolBuilder creates a new Pulsar admin cluster legacy tool builder instance. +func NewPulsarAdminClusterLegacyToolBuilder() *PulsarAdminClusterLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_cluster", + Version: "1.0.0", + Description: "Pulsar Admin cluster management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "cluster", "admin"}, + } + + features := []string{ + "pulsar-admin-clusters", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminClusterLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin cluster legacy tool list. +func (b *PulsarAdminClusterLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildClusterTool() + if err != nil { + return nil, err + } + handler := b.buildClusterHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminClusterLegacyToolBuilder) buildClusterTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminClusterInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Unified tool for managing Apache Pulsar clusters.\n" + + "This tool provides access to various cluster resources and operations, including:\n" + + "1. Manage clusters (resource=cluster): List, get, create, update, delete clusters\n" + + "2. Manage peer clusters (resource=peer_clusters): Get, update peer clusters\n" + + "3. Manage failure domains (resource=failure_domain): List, get, create, update, delete failure domains\n\n" + + "Different functions are accessed by combining resource and operation parameters, with other parameters used selectively based on operation type.\n\n" + + "Examples:\n" + + "- {\"resource\": \"cluster\", \"operation\": \"list\"} lists all clusters\n" + + "- {\"resource\": \"cluster\", \"operation\": \"get\", \"cluster_name\": \"my-cluster\"} gets cluster configuration\n" + + "- {\"resource\": \"failure_domain\", \"operation\": \"list\", \"cluster_name\": \"my-cluster\"} lists failure domains\n" + + "This tool requires Pulsar super-user permissions." + + return mcp.Tool{ + Name: "pulsar_admin_cluster", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminClusterLegacyToolBuilder) buildClusterHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminClusterToolBuilder() + sdkHandler := sdkBuilder.buildClusterHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminClusterInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/legacy_adapter.go b/pkg/mcp/builders/pulsar/legacy_adapter.go new file mode 100644 index 0000000..b47dd3d --- /dev/null +++ b/pkg/mcp/builders/pulsar/legacy_adapter.go @@ -0,0 +1,43 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + legacy "github.com/mark3labs/mcp-go/mcp" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" +) + +func legacyToolResultFromSDK(result *sdk.CallToolResult) *legacy.CallToolResult { + if result == nil { + return legacy.NewToolResultText("") + } + + text := "" + for _, content := range result.Content { + if textContent, ok := content.(*sdk.TextContent); ok { + text = textContent.Text + break + } + } + + if result.IsError { + if text == "" { + text = "tool call failed" + } + return legacy.NewToolResultError(text) + } + + return legacy.NewToolResultText(text) +} diff --git a/pkg/mcp/builders/pulsar/sinks.go b/pkg/mcp/builders/pulsar/sinks.go index a120d11..25a7dbe 100644 --- a/pkg/mcp/builders/pulsar/sinks.go +++ b/pkg/mcp/builders/pulsar/sinks.go @@ -21,13 +21,84 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminSinksInput struct { + Operation string `json:"operation"` + Tenant *string `json:"tenant,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Name *string `json:"name,omitempty"` + Archive *string `json:"archive,omitempty"` + SinkType *string `json:"sink-type,omitempty"` + Inputs []string `json:"inputs,omitempty"` + TopicsPattern *string `json:"topics-pattern,omitempty"` + SubsName *string `json:"subs-name,omitempty"` + Parallelism *float64 `json:"parallelism,omitempty"` + SinkConfig map[string]any `json:"sink-config,omitempty"` +} + +const ( + pulsarAdminSinksOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all sinks under a specific tenant and namespace\n" + + "- get: Get the configuration of a sink\n" + + "- status: Get the runtime status of a sink (instances, metrics)\n" + + "- create: Deploy a new sink with specified parameters\n" + + "- update: Update the configuration of an existing sink\n" + + "- delete: Delete a sink\n" + + "- start: Start a stopped sink\n" + + "- stop: Stop a running sink\n" + + "- restart: Restart a sink\n" + + "- list-built-in: List all built-in sink connectors available in the system" + pulsarAdminSinksTenantDesc = "The tenant name. Tenants are the primary organizational unit in Pulsar, " + + "providing multi-tenancy and resource isolation. Sinks deployed within a tenant " + + "inherit its permissions and resource quotas. " + + "Required for all operations except 'list-built-in'." + pulsarAdminSinksNamespaceDesc = "The namespace name. Namespaces are logical groupings of topics and sinks " + + "within a tenant. They encapsulate configuration policies and access control. " + + "Sinks in a namespace typically process topics within the same namespace. " + + "Required for all operations except 'list-built-in'." + pulsarAdminSinksNameDesc = "The sink name. Required for all operations except 'list' and 'list-built-in'. " + + "Names should be descriptive of the sink's purpose and must be unique within a namespace. " + + "Sink names are used in metrics, logs, and when addressing the sink via APIs." + pulsarAdminSinksArchiveDesc = "Path to the archive file containing the sink code. Optional for 'create' and 'update' operations. " + + "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. " + + "The archive should contain all dependencies for the sink connector. " + + "Either archive or sink-type must be specified, but not both." + pulsarAdminSinksSinkTypeDesc = "The built-in sink connector type to use. Optional for 'create' and 'update' operations. " + + "Specifies which built-in connector to use, such as 'jdbc', 'elastic-search', 'kafka', etc. " + + "Use 'list-built-in' operation to see available sink types. " + + "Either sink-type or archive must be specified, but not both." + pulsarAdminSinksInputsDesc = "The sink's input topics (array of strings). Optional for 'create' and 'update' operations. " + + "Topics must be specified in the format 'persistent://tenant/namespace/topic'. " + + "Sinks can consume from multiple topics, but they should have compatible schemas. " + + "All input topics should exist before the sink is created. " + + "Either inputs or topics-pattern must be specified." + pulsarAdminSinksTopicsPatternDesc = "TopicsPattern to consume from list of topics that match the pattern. Optional for 'create' and 'update' operations. " + + "Specified as a regular expression, e.g., 'persistent://tenant/namespace/prefix.*'. " + + "This allows the sink to automatically consume from topics that match the pattern, " + + "including topics created after the sink is deployed. " + + "Either topics-pattern or inputs must be specified." + pulsarAdminSinksSubsNameDesc = "Pulsar subscription name for input topic consumer. Optional for 'create' and 'update' operations. " + + "Defines the subscription name used by the sink to consume from input topics. " + + "If not specified, a default subscription name will be generated. " + + "The subscription type used is Shared by default." + pulsarAdminSinksParallelismDesc = "The parallelism factor of the sink. Optional for 'create' and 'update' operations. " + + "Determines how many instances of the sink will run concurrently. " + + "Higher values improve throughput but require more resources. " + + "Default is 1 (single instance). Recommended to align with topic partition count " + + "when consuming from partitioned topics." + pulsarAdminSinksConfigDesc = "User-defined sink config key/values. Optional for 'create' and 'update' operations. " + + "Provides configuration parameters specific to the sink connector being used. " + + "For example, JDBC connection strings, Elasticsearch indices, S3 bucket details, etc. " + + "Specify as a JSON object with configuration properties required by the specific sink type. " + + "Example: {\"jdbcUrl\": \"jdbc:postgresql://localhost:5432/database\", \"tableName\": \"events\"}" +) + // PulsarAdminSinksToolBuilder implements the ToolBuilder interface for Pulsar admin sinks // /nolint:revive type PulsarAdminSinksToolBuilder struct { @@ -57,7 +128,7 @@ func NewPulsarAdminSinksToolBuilder() *PulsarAdminSinksToolBuilder { } // BuildTools builds the Pulsar admin sinks tool list -func (b *PulsarAdminSinksToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminSinksToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -69,11 +140,14 @@ func (b *PulsarAdminSinksToolBuilder) BuildTools(_ context.Context, config build } // Build tools - tool := b.buildSinksTool() + tool, err := b.buildSinksTool() + if err != nil { + return nil, err + } handler := b.buildSinksHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminSinksInput, any]{ Tool: tool, Handler: handler, }, @@ -81,7 +155,12 @@ func (b *PulsarAdminSinksToolBuilder) BuildTools(_ context.Context, config build } // buildSinksTool builds the Pulsar admin sinks MCP tool definition -func (b *PulsarAdminSinksToolBuilder) buildSinksTool() mcp.Tool { +func (b *PulsarAdminSinksToolBuilder) buildSinksTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminSinksInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar Sinks for data movement and integration. " + "Pulsar Sinks are connectors that export data from Pulsar topics to external systems such as databases, " + "storage services, messaging systems, and third-party applications. " + @@ -93,92 +172,20 @@ func (b *PulsarAdminSinksToolBuilder) buildSinksTool() mcp.Tool { "This tool provides complete lifecycle management including deployment, configuration, " + "monitoring, and runtime control. Sinks require proper permissions to access their input topics." - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all sinks under a specific tenant and namespace\n" + - "- get: Get the configuration of a sink\n" + - "- status: Get the runtime status of a sink (instances, metrics)\n" + - "- create: Deploy a new sink with specified parameters\n" + - "- update: Update the configuration of an existing sink\n" + - "- delete: Delete a sink\n" + - "- start: Start a stopped sink\n" + - "- stop: Stop a running sink\n" + - "- restart: Restart a sink\n" + - "- list-built-in: List all built-in sink connectors available in the system" - - return mcp.NewTool("pulsar_admin_sinks", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc)), - mcp.WithString("tenant", - mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ - "providing multi-tenancy and resource isolation. Sinks deployed within a tenant "+ - "inherit its permissions and resource quotas. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("namespace", - mcp.Description("The namespace name. Namespaces are logical groupings of topics and sinks "+ - "within a tenant. They encapsulate configuration policies and access control. "+ - "Sinks in a namespace typically process topics within the same namespace. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("name", - mcp.Description("The sink name. Required for all operations except 'list' and 'list-built-in'. "+ - "Names should be descriptive of the sink's purpose and must be unique within a namespace. "+ - "Sink names are used in metrics, logs, and when addressing the sink via APIs.")), - mcp.WithString("archive", - mcp.Description("Path to the archive file containing the sink code. Optional for 'create' and 'update' operations. "+ - "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ - "The archive should contain all dependencies for the sink connector. "+ - "Either archive or sink-type must be specified, but not both.")), - mcp.WithString("sink-type", - mcp.Description("The built-in sink connector type to use. Optional for 'create' and 'update' operations. "+ - "Specifies which built-in connector to use, such as 'jdbc', 'elastic-search', 'kafka', etc. "+ - "Use 'list-built-in' operation to see available sink types. "+ - "Either sink-type or archive must be specified, but not both.")), - mcp.WithArray("inputs", - mcp.Description("The sink's input topics (array of strings). Optional for 'create' and 'update' operations. "+ - "Topics must be specified in the format 'persistent://tenant/namespace/topic'. "+ - "Sinks can consume from multiple topics, but they should have compatible schemas. "+ - "All input topics should exist before the sink is created. "+ - "Either inputs or topics-pattern must be specified."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "input topic", - }, - ), - ), - mcp.WithString("topics-pattern", - mcp.Description("TopicsPattern to consume from list of topics that match the pattern. Optional for 'create' and 'update' operations. "+ - "Specified as a regular expression, e.g., 'persistent://tenant/namespace/prefix.*'. "+ - "This allows the sink to automatically consume from topics that match the pattern, "+ - "including topics created after the sink is deployed. "+ - "Either topics-pattern or inputs must be specified.")), - mcp.WithString("subs-name", - mcp.Description("Pulsar subscription name for input topic consumer. Optional for 'create' and 'update' operations. "+ - "Defines the subscription name used by the sink to consume from input topics. "+ - "If not specified, a default subscription name will be generated. "+ - "The subscription type used is Shared by default.")), - mcp.WithNumber("parallelism", - mcp.Description("The parallelism factor of the sink. Optional for 'create' and 'update' operations. "+ - "Determines how many instances of the sink will run concurrently. "+ - "Higher values improve throughput but require more resources. "+ - "Default is 1 (single instance). Recommended to align with topic partition count "+ - "when consuming from partitioned topics.")), - mcp.WithObject("sink-config", - mcp.Description("User-defined sink config key/values. Optional for 'create' and 'update' operations. "+ - "Provides configuration parameters specific to the sink connector being used. "+ - "For example, JDBC connection strings, Elasticsearch indices, S3 bucket details, etc. "+ - "Specify as a JSON object with configuration properties required by the specific sink type. "+ - "Example: {\"jdbcUrl\": \"jdbc:postgresql://localhost:5432/database\", \"tableName\": \"events\"}")), - ) + return &sdk.Tool{ + Name: "pulsar_admin_sinks", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildSinksHandler builds the Pulsar admin sinks handler function -func (b *PulsarAdminSinksToolBuilder) buildSinksHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSinksToolBuilder) buildSinksHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminSinksInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminSinksInput) (*sdk.CallToolResult, any, error) { // Extract and validate operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil + operation := input.Operation + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'") } // Check if the operation is valid @@ -188,7 +195,7 @@ func (b *PulsarAdminSinksToolBuilder) buildSinksHandler(readOnly bool) func(cont } if !validOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil + return nil, nil, fmt.Errorf("invalid operation: '%s'. supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation) } // Check write permissions for write operations @@ -198,142 +205,131 @@ func (b *PulsarAdminSinksToolBuilder) buildSinksHandler(readOnly bool) func(cont } if readOnly && writeOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sinks.", operation)), nil + return nil, nil, fmt.Errorf("operation '%s' not allowed in read-only mode. read-only mode restricts modifications to Pulsar Sinks", operation) } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } admin, err := session.GetAdminV3Client() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to get Pulsar client: %v", err) } // List built-in sinks doesn't require tenant, namespace or name if operation == "list-built-in" { - return b.handleListBuiltInSinks(ctx, admin) + result, err := b.handleListBuiltInSinks(ctx, admin) + return result, nil, err } // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := request.RequireString("tenant") + tenant, err := requireString(input.Tenant, "tenant") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil + return nil, nil, fmt.Errorf("missing required parameter 'tenant': %v", err) } - namespace, err := request.RequireString("namespace") + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil + return nil, nil, fmt.Errorf("missing required parameter 'namespace': %v", err) } - // For all operations except 'list', name is required - var name string + // name is required for all operations except list and list-built-in + name := "" if operation != "list" { - name, err = request.RequireString("name") + name, err = requireString(input.Name, "name") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The sink name must be specified for this operation.", operation, err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'name': %v", err) } } - // Handle operations + // Dispatch based on operation switch operation { case "list": - return b.handleSinkList(ctx, admin, tenant, namespace) + result, err := b.handleSinkList(ctx, admin, tenant, namespace) + return result, nil, err case "get": - return b.handleSinkGet(ctx, admin, tenant, namespace, name) + result, err := b.handleSinkGet(ctx, admin, tenant, namespace, name) + return result, nil, err case "status": - return b.handleSinkStatus(ctx, admin, tenant, namespace, name) + result, err := b.handleSinkStatus(ctx, admin, tenant, namespace, name) + return result, nil, err case "create": - return b.handleSinkCreate(ctx, admin, request) + result, err := b.handleSinkCreate(ctx, admin, input, tenant, namespace, name) + return result, nil, err case "update": - return b.handleSinkUpdate(ctx, admin, request) + result, err := b.handleSinkUpdate(ctx, admin, input, tenant, namespace, name) + return result, nil, err case "delete": - return b.handleSinkDelete(ctx, admin, tenant, namespace, name) + result, err := b.handleSinkDelete(ctx, admin, tenant, namespace, name) + return result, nil, err case "start": - return b.handleSinkStart(ctx, admin, tenant, namespace, name) + result, err := b.handleSinkStart(ctx, admin, tenant, namespace, name) + return result, nil, err case "stop": - return b.handleSinkStop(ctx, admin, tenant, namespace, name) + result, err := b.handleSinkStop(ctx, admin, tenant, namespace, name) + return result, nil, err case "restart": - return b.handleSinkRestart(ctx, admin, tenant, namespace, name) + result, err := b.handleSinkRestart(ctx, admin, tenant, namespace, name) + return result, nil, err default: - // This should never happen due to the valid operations check above - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unsupported operation: %s", operation) } } } -// Helper functions - -// handleSinkList handles listing all sinks under a namespace -func (b *PulsarAdminSinksToolBuilder) handleSinkList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { +// handleSinkList handles listing sinks +func (b *PulsarAdminSinksToolBuilder) handleSinkList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*sdk.CallToolResult, error) { sinks, err := admin.Sinks().ListSinks(tenant, namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list sinks in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", - tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to list sinks in tenant '%s' namespace '%s': %v", tenant, namespace, err) } // Convert result to JSON string sinksJSON, err := json.Marshal(sinks) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink list: %v", err)), nil + return nil, fmt.Errorf("failed to serialize sinks list: %v", err) } - return mcp.NewToolResultText(string(sinksJSON)), nil + return textResult(string(sinksJSON)), nil } -// handleSinkGet handles getting information about a sink -func (b *PulsarAdminSinksToolBuilder) handleSinkGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +// handleSinkGet handles getting a sink's details +func (b *PulsarAdminSinksToolBuilder) handleSinkGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { sink, err := admin.Sinks().GetSink(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have proper permissions.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to get sink '%s' in tenant '%s' namespace '%s': %v. verify the sink exists and you have the correct permissions", name, tenant, namespace, err) } // Convert result to JSON string sinkJSON, err := json.Marshal(sink) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink info: %v", err)), nil + return nil, fmt.Errorf("failed to serialize sink details: %v", err) } - return mcp.NewToolResultText(string(sinkJSON)), nil + return textResult(string(sinkJSON)), nil } // handleSinkStatus handles getting the status of a sink -func (b *PulsarAdminSinksToolBuilder) handleSinkStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSinksToolBuilder) handleSinkStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { status, err := admin.Sinks().GetSinkStatus(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to get status for sink '%s' in tenant '%s' namespace '%s': %v. verify the sink exists and is properly deployed", name, tenant, namespace, err) } // Convert result to JSON string statusJSON, err := json.Marshal(status) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize sink status: %v", err)), nil + return nil, fmt.Errorf("failed to serialize sink status: %v", err) } - return mcp.NewToolResultText(string(statusJSON)), nil + return textResult(string(statusJSON)), nil } // handleSinkCreate handles creating a new sink -func (b *PulsarAdminSinksToolBuilder) handleSinkCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil - } - - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - +func (b *PulsarAdminSinksToolBuilder) handleSinkCreate(_ context.Context, admin cmdutils.Client, input pulsarAdminSinksInput, tenant, namespace, name string) (*sdk.CallToolResult, error) { // Create a new SinkData object sinkData := &utils.SinkData{ Tenant: tenant, @@ -343,68 +339,56 @@ func (b *PulsarAdminSinksToolBuilder) handleSinkCreate(_ context.Context, admin } // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { + if archive := stringValue(input.Archive); archive != "" { sinkData.Archive = archive } - sinkType := request.GetString("sink-type", "") - if sinkType != "" { + if sinkType := stringValue(input.SinkType); sinkType != "" { sinkData.SinkType = sinkType } - inputsArray := request.GetStringSlice("inputs", []string{}) - if len(inputsArray) > 0 { - sinkData.Inputs = strings.Join(inputsArray, ",") + if len(input.Inputs) > 0 { + sinkData.Inputs = strings.Join(input.Inputs, ",") } - topicsPattern := request.GetString("topics-pattern", "") - if topicsPattern != "" { + if topicsPattern := stringValue(input.TopicsPattern); topicsPattern != "" { sinkData.TopicsPattern = topicsPattern } - subsName := request.GetString("subs-name", "") - if subsName != "" { + if subsName := stringValue(input.SubsName); subsName != "" { sinkData.SubsName = subsName } - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sinkData.Parallelism = int(parallelismFloat) + if input.Parallelism != nil && *input.Parallelism >= 0 { + sinkData.Parallelism = int(*input.Parallelism) } // Get sink config if available - var sinkConfigMap map[string]interface{} - sinkConfigObj, ok := request.GetArguments()["sink-config"] - if ok && sinkConfigObj != nil { - if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { - sinkConfigMap = configMap - // Convert to JSON string - sinkConfigJSON, err := json.Marshal(sinkConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil - } - sinkData.SinkConfigString = string(sinkConfigJSON) + if input.SinkConfig != nil { + sinkConfigJSON, err := json.Marshal(input.SinkConfig) + if err != nil { + return nil, fmt.Errorf("failed to marshal sink-config: %v. ensure the sink configuration is a valid JSON object", err) } + sinkData.SinkConfigString = string(sinkConfigJSON) } // Validate inputs if sinkData.Archive == "" && sinkData.SinkType == "" { - return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'sink-type' must be specified for sink creation. Use 'archive' for custom connectors or 'sink-type' for built-in connectors."), nil + return nil, fmt.Errorf("missing required parameter: either 'archive' or 'sink-type' must be specified for sink creation. use 'archive' for custom connectors or 'sink-type' for built-in connectors") } if sinkData.Archive != "" && sinkData.SinkType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil + return nil, fmt.Errorf("invalid parameters: cannot specify both 'archive' and 'sink-type'. use only one of these parameters based on your connector type") } if sinkData.Inputs == "" && sinkData.TopicsPattern == "" { - return mcp.NewToolResultError("Missing required parameter: Either 'inputs' or 'topics-pattern' must be specified. The sink needs a source of data to consume from Pulsar."), nil + return nil, fmt.Errorf("missing required parameter: either 'inputs' or 'topics-pattern' must be specified. the sink needs a source of data to consume from Pulsar") } // Process the arguments - err = b.processArguments(sinkData) + err := b.processArguments(sinkData) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + return nil, fmt.Errorf("failed to process arguments: %v", err) } // Create the sink @@ -415,31 +399,14 @@ func (b *PulsarAdminSinksToolBuilder) handleSinkCreate(_ context.Context, admin } if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create sink '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to create sink '%s' in tenant '%s' namespace '%s': %v. verify all parameters are correct and required resources exist", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Created sink '%s' successfully in tenant '%s' namespace '%s'. The sink will start consuming from its input topics and writing to the configured destination.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Created sink '%s' successfully in tenant '%s' namespace '%s'. The sink will start consuming from its input topics and writing to the configured destination.", name, tenant, namespace)), nil } // handleSinkUpdate handles updating an existing sink -func (b *PulsarAdminSinksToolBuilder) handleSinkUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil - } - - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - +func (b *PulsarAdminSinksToolBuilder) handleSinkUpdate(_ context.Context, admin cmdutils.Client, input pulsarAdminSinksInput, tenant, namespace, name string) (*sdk.CallToolResult, error) { // Create a new SinkData object sinkData := &utils.SinkData{ Tenant: tenant, @@ -449,60 +416,48 @@ func (b *PulsarAdminSinksToolBuilder) handleSinkUpdate(_ context.Context, admin } // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { + if archive := stringValue(input.Archive); archive != "" { sinkData.Archive = archive } - sinkType := request.GetString("sink-type", "") - if sinkType != "" { + if sinkType := stringValue(input.SinkType); sinkType != "" { sinkData.SinkType = sinkType } - inputsArray := request.GetStringSlice("inputs", []string{}) - if len(inputsArray) > 0 { - sinkData.Inputs = strings.Join(inputsArray, ",") + if len(input.Inputs) > 0 { + sinkData.Inputs = strings.Join(input.Inputs, ",") } - topicsPattern := request.GetString("topics-pattern", "") - if topicsPattern != "" { + if topicsPattern := stringValue(input.TopicsPattern); topicsPattern != "" { sinkData.TopicsPattern = topicsPattern } - subsName := request.GetString("subs-name", "") - if subsName != "" { + if subsName := stringValue(input.SubsName); subsName != "" { sinkData.SubsName = subsName } - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sinkData.Parallelism = int(parallelismFloat) + if input.Parallelism != nil && *input.Parallelism >= 0 { + sinkData.Parallelism = int(*input.Parallelism) } // Get sink config if available - var sinkConfigMap map[string]interface{} - sinkConfigObj, ok := request.GetArguments()["sink-config"] - if ok && sinkConfigObj != nil { - if configMap, isMap := sinkConfigObj.(map[string]interface{}); isMap { - sinkConfigMap = configMap - // Convert to JSON string - sinkConfigJSON, err := json.Marshal(sinkConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal sink-config: %v. Ensure the sink configuration is a valid JSON object.", err)), nil - } - sinkData.SinkConfigString = string(sinkConfigJSON) + if input.SinkConfig != nil { + sinkConfigJSON, err := json.Marshal(input.SinkConfig) + if err != nil { + return nil, fmt.Errorf("failed to marshal sink-config: %v. ensure the sink configuration is a valid JSON object", err) } + sinkData.SinkConfigString = string(sinkConfigJSON) } // Validate inputs if both are specified if sinkData.Archive != "" && sinkData.SinkType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'sink-type'. Use only one of these parameters based on your connector type."), nil + return nil, fmt.Errorf("invalid parameters: cannot specify both 'archive' and 'sink-type'. use only one of these parameters based on your connector type") } // Process the arguments - err = b.processArguments(sinkData) + err := b.processArguments(sinkData) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + return nil, fmt.Errorf("failed to process arguments: %v", err) } // Create update options @@ -518,76 +473,66 @@ func (b *PulsarAdminSinksToolBuilder) handleSinkUpdate(_ context.Context, admin } if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and all parameters are valid.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to update sink '%s' in tenant '%s' namespace '%s': %v. verify the sink exists and all parameters are valid", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Updated sink '%s' successfully in tenant '%s' namespace '%s'. The sink may need to be restarted to apply all changes.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Updated sink '%s' successfully in tenant '%s' namespace '%s'. The sink may need to be restarted to apply all changes.", name, tenant, namespace)), nil } // handleSinkDelete handles deleting a sink -func (b *PulsarAdminSinksToolBuilder) handleSinkDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSinksToolBuilder) handleSinkDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sinks().DeleteSink(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and you have deletion permissions.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to delete sink '%s' in tenant '%s' namespace '%s': %v. verify the sink exists and you have deletion permissions", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Deleted sink '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Deleted sink '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", name, tenant, namespace)), nil } // handleSinkStart handles starting a sink -func (b *PulsarAdminSinksToolBuilder) handleSinkStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSinksToolBuilder) handleSinkStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sinks().StartSink(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to start sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is not already running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to start sink '%s' in tenant '%s' namespace '%s': %v. verify the sink exists and is not already running", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Started sink '%s' successfully in tenant '%s' namespace '%s'. The sink will begin consuming from its input topics.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Started sink '%s' successfully in tenant '%s' namespace '%s'. The sink will begin consuming from its input topics.", name, tenant, namespace)), nil } // handleSinkStop handles stopping a sink -func (b *PulsarAdminSinksToolBuilder) handleSinkStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSinksToolBuilder) handleSinkStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sinks().StopSink(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to stop sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is currently running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to stop sink '%s' in tenant '%s' namespace '%s': %v. verify the sink exists and is currently running", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Stopped sink '%s' successfully in tenant '%s' namespace '%s'. The sink will no longer consume messages until restarted.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Stopped sink '%s' successfully in tenant '%s' namespace '%s'. The sink will no longer consume data until restarted.", name, tenant, namespace)), nil } // handleSinkRestart handles restarting a sink -func (b *PulsarAdminSinksToolBuilder) handleSinkRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSinksToolBuilder) handleSinkRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sinks().RestartSink(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to restart sink '%s' in tenant '%s' namespace '%s': %v. Verify the sink exists and is properly deployed.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to restart sink '%s' in tenant '%s' namespace '%s': %v. verify the sink exists and is properly deployed", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Restarted sink '%s' successfully in tenant '%s' namespace '%s'. All sink instances have been restarted.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Restarted sink '%s' successfully in tenant '%s' namespace '%s'. All sink instances have been restarted.", name, tenant, namespace)), nil } // handleListBuiltInSinks handles listing all built-in sink connectors -func (b *PulsarAdminSinksToolBuilder) handleListBuiltInSinks(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSinksToolBuilder) handleListBuiltInSinks(_ context.Context, admin cmdutils.Client) (*sdk.CallToolResult, error) { sinks, err := admin.Sinks().GetBuiltInSinks() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sinks: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil + return nil, fmt.Errorf("failed to list built-in sinks: %v. there might be an issue connecting to the Pulsar cluster", err) } // Convert result to JSON string sinksJSON, err := json.Marshal(sinks) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sinks: %v", err)), nil + return nil, fmt.Errorf("failed to serialize built-in sinks: %v", err) } - return mcp.NewToolResultText(string(sinksJSON)), nil + return textResult(string(sinksJSON)), nil } // processArguments is a simplified version of the pulsarctl function to process sink arguments @@ -601,33 +546,20 @@ func (b *PulsarAdminSinksToolBuilder) processArguments(sinkData *utils.SinkData) sinkData.SinkConf.Tenant = sinkData.Tenant sinkData.SinkConf.Namespace = sinkData.Namespace sinkData.SinkConf.Name = sinkData.Name - - // Set inputs if provided if sinkData.Inputs != "" { - inputTopics := strings.Split(sinkData.Inputs, ",") - sinkData.SinkConf.Inputs = inputTopics + sinkData.SinkConf.Inputs = strings.Split(sinkData.Inputs, ",") } - // Set topics pattern if provided - if sinkData.TopicsPattern != "" { - sinkData.SinkConf.TopicsPattern = &sinkData.TopicsPattern - } - - // Set subscription name if provided if sinkData.SubsName != "" { sinkData.SinkConf.SourceSubscriptionName = sinkData.SubsName } - // Set parallelism if provided - if sinkData.Parallelism != 0 { - sinkData.SinkConf.Parallelism = sinkData.Parallelism - } else if sinkData.SinkConf.Parallelism <= 0 { - sinkData.SinkConf.Parallelism = 1 + if sinkData.TopicsPattern != "" { + sinkData.SinkConf.TopicsPattern = &sinkData.TopicsPattern } - // Handle archive and sink-type - if sinkData.Archive != "" && sinkData.SinkType != "" { - return fmt.Errorf("cannot specify both archive and sink-type") + if sinkData.Parallelism != 0 { + sinkData.SinkConf.Parallelism = sinkData.Parallelism } if sinkData.Archive != "" { @@ -635,11 +567,9 @@ func (b *PulsarAdminSinksToolBuilder) processArguments(sinkData *utils.SinkData) } if sinkData.SinkType != "" { - // In a real implementation, we would validate the sink type here sinkData.SinkConf.Archive = sinkData.SinkType } - // Parse sink config if provided if sinkData.SinkConfigString != "" { var configs map[string]interface{} if err := json.Unmarshal([]byte(sinkData.SinkConfigString), &configs); err != nil { @@ -663,8 +593,8 @@ func (b *PulsarAdminSinksToolBuilder) isPackageURLSupported(archive string) bool "http://", "https://", "file://", - "function://", // Pulsar function package URL - "sink://", // Pulsar sink package URL + "sink://", // Pulsar sink package URL + "function://", } for _, scheme := range supportedSchemes { @@ -676,3 +606,36 @@ func (b *PulsarAdminSinksToolBuilder) isPackageURLSupported(archive string) bool // Also check if it's a local file path (not a URL) return !strings.Contains(archive, "://") } + +func buildPulsarAdminSinksInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminSinksInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "operation", pulsarAdminSinksOperationDesc) + setSchemaDescription(schema, "tenant", pulsarAdminSinksTenantDesc) + setSchemaDescription(schema, "namespace", pulsarAdminSinksNamespaceDesc) + setSchemaDescription(schema, "name", pulsarAdminSinksNameDesc) + setSchemaDescription(schema, "archive", pulsarAdminSinksArchiveDesc) + setSchemaDescription(schema, "sink-type", pulsarAdminSinksSinkTypeDesc) + setSchemaDescription(schema, "inputs", pulsarAdminSinksInputsDesc) + setSchemaDescription(schema, "topics-pattern", pulsarAdminSinksTopicsPatternDesc) + setSchemaDescription(schema, "subs-name", pulsarAdminSinksSubsNameDesc) + setSchemaDescription(schema, "parallelism", pulsarAdminSinksParallelismDesc) + setSchemaDescription(schema, "sink-config", pulsarAdminSinksConfigDesc) + + if inputsSchema := schema.Properties["inputs"]; inputsSchema != nil && inputsSchema.Items != nil { + inputsSchema.Items.Description = "input topic" + } + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/pulsar/sinks_legacy.go b/pkg/mcp/builders/pulsar/sinks_legacy.go new file mode 100644 index 0000000..c7eeb54 --- /dev/null +++ b/pkg/mcp/builders/pulsar/sinks_legacy.go @@ -0,0 +1,124 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminSinksLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin sinks. +// /nolint:revive +type PulsarAdminSinksLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSinksLegacyToolBuilder creates a new Pulsar admin sinks legacy tool builder instance. +func NewPulsarAdminSinksLegacyToolBuilder() *PulsarAdminSinksLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_sinks", + Version: "1.0.0", + Description: "Pulsar admin sinks management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "sinks"}, + } + + features := []string{ + "pulsar-admin-sinks", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSinksLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin sinks legacy tool list. +func (b *PulsarAdminSinksLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildSinksTool() + if err != nil { + return nil, err + } + handler := b.buildSinksHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminSinksLegacyToolBuilder) buildSinksTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminSinksInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Manage Apache Pulsar Sinks for data movement and integration. " + + "Pulsar Sinks are connectors that export data from Pulsar topics to external systems such as databases, " + + "storage services, messaging systems, and third-party applications. " + + "Sinks consume messages from one or more Pulsar topics, transform the data if needed, " + + "and write it to external systems in a format compatible with the target destination. " + + "Built-in sink connectors are available for common systems like Kafka, JDBC, Elasticsearch, and cloud storage. " + + "Sinks follow the tenant/namespace/name hierarchy for organization and access control, " + + "can scale through parallelism configuration, and support configurable subscription types. " + + "This tool provides complete lifecycle management including deployment, configuration, " + + "monitoring, and runtime control. Sinks require proper permissions to access their input topics." + + return mcp.Tool{ + Name: "pulsar_admin_sinks", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminSinksLegacyToolBuilder) buildSinksHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminSinksToolBuilder() + sdkHandler := sdkBuilder.buildSinksHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminSinksInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/sources.go b/pkg/mcp/builders/pulsar/sources.go index ca9d148..d82ccb2 100644 --- a/pkg/mcp/builders/pulsar/sources.go +++ b/pkg/mcp/builders/pulsar/sources.go @@ -21,13 +21,93 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminSourcesInput struct { + Operation string `json:"operation"` + Tenant *string `json:"tenant,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Name *string `json:"name,omitempty"` + Archive *string `json:"archive,omitempty"` + SourceType *string `json:"source-type,omitempty"` + DestinationTopicName *string `json:"destination-topic-name,omitempty"` + DeserializationClass *string `json:"deserialization-classname,omitempty"` + SchemaType *string `json:"schema-type,omitempty"` + ClassName *string `json:"classname,omitempty"` + ProcessingGuarantees *string `json:"processing-guarantees,omitempty"` + Parallelism *float64 `json:"parallelism,omitempty"` + SourceConfig map[string]any `json:"source-config,omitempty"` +} + +const ( + pulsarAdminSourcesOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all sources under a specific tenant and namespace\n" + + "- get: Get the configuration of a source\n" + + "- status: Get the runtime status of a source (instances, metrics)\n" + + "- create: Deploy a new source with specified parameters\n" + + "- update: Update the configuration of an existing source\n" + + "- delete: Delete a source\n" + + "- start: Start a stopped source\n" + + "- stop: Stop a running source\n" + + "- restart: Restart a source\n" + + "- list-built-in: List all built-in source connectors available in the system" + pulsarAdminSourcesTenantDesc = "The tenant name. Tenants are the primary organizational unit in Pulsar, " + + "providing multi-tenancy and resource isolation. Sources deployed within a tenant " + + "inherit its permissions and resource quotas. " + + "Required for all operations except 'list-built-in'." + pulsarAdminSourcesNamespaceDesc = "The namespace name. Namespaces are logical groupings of topics and sources " + + "within a tenant. They encapsulate configuration policies and access control. " + + "Sources in a namespace typically publish to topics within the same namespace. " + + "Required for all operations except 'list-built-in'." + pulsarAdminSourcesNameDesc = "The source name. Required for all operations except 'list' and 'list-built-in'. " + + "Names should be descriptive of the source's purpose and must be unique within a namespace. " + + "Source names are used in metrics, logs, and when addressing the source via APIs." + pulsarAdminSourcesArchiveDesc = "Path to the archive file containing the source code. Optional for 'create' and 'update' operations. " + + "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. " + + "The archive should contain all dependencies for the source connector. " + + "Either archive or source-type must be specified, but not both." + pulsarAdminSourcesSourceTypeDesc = "The built-in source connector type to use. Optional for 'create' and 'update' operations. " + + "Specifies which built-in connector to use, such as 'kafka', 'jdbc', 'file', etc. " + + "Use 'list-built-in' operation to see available source types. " + + "Either source-type or archive must be specified, but not both." + pulsarAdminSourcesDestinationTopicDesc = "The Pulsar topic to which data is published. Required for 'create' operation, optional for 'update'. " + + "Specified in the format 'persistent://tenant/namespace/topic'. " + + "This is the topic where the source will send the data it extracts from the external system. " + + "The topic will be automatically created if it doesn't exist." + pulsarAdminSourcesDeserializationClassDesc = "The SerDe (Serialization/Deserialization) classname for the source. Optional for 'create' and 'update'. " + + "Specifies how to convert data from the external system into Pulsar messages. " + + "Common SerDe classes include AvroSchema, JsonSchema, StringSchema, etc. " + + "If not specified, the source will use the default SerDe for the connector type." + pulsarAdminSourcesSchemaTypeDesc = "The schema type to be used to encode messages emitted from the source. Optional for 'create' and 'update'. " + + "Available schema types include: 'avro', 'json', 'protobuf', 'string', etc. " + + "Schema types ensure data compatibility and enable schema evolution. " + + "The schema type should match the format of data being ingested." + pulsarAdminSourcesClassNameDesc = "The source's class name if archive is a file-url-path (file://...). Optional for 'create' and 'update'. " + + "This specifies the fully qualified class name that implements the source connector. " + + "Only needed when using a custom source implementation in a JAR file. " + + "Built-in connectors don't require this parameter." + pulsarAdminSourcesProcessingGuaranteesDesc = "The processing guarantees (delivery semantics) applied to the source. Optional for 'create' and 'update'. " + + "Available options: 'atleast_once', 'atmost_once', 'effectively_once'. " + + "Controls how data is delivered in failure scenarios. " + + "'atleast_once' is the most common and ensures no data loss but may have duplicates. " + + "Default is 'atleast_once'." + pulsarAdminSourcesParallelismDesc = "The parallelism factor of the source. Optional for 'create' and 'update' operations. " + + "Determines how many instances of the source will run concurrently. " + + "Higher values improve throughput but require more resources. " + + "Default is 1 (single instance). Recommended to align with both source capacity " + + "and destination topic partition count." + pulsarAdminSourcesConfigDesc = "User-defined source config key/values. Optional for 'create' and 'update' operations. " + + "Provides configuration parameters specific to the source connector being used. " + + "For example, database connection details, Kafka bootstrap servers, credentials, etc. " + + "Specify as a JSON object with configuration properties required by the specific source type. " + + "Example: {\"topic\": \"external-kafka-topic\", \"bootstrapServers\": \"kafka:9092\"}" +) + // PulsarAdminSourcesToolBuilder implements the ToolBuilder interface for Pulsar admin sources // /nolint:revive type PulsarAdminSourcesToolBuilder struct { @@ -57,7 +137,7 @@ func NewPulsarAdminSourcesToolBuilder() *PulsarAdminSourcesToolBuilder { } // BuildTools builds the Pulsar admin sources tool list -func (b *PulsarAdminSourcesToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminSourcesToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -69,11 +149,14 @@ func (b *PulsarAdminSourcesToolBuilder) BuildTools(_ context.Context, config bui } // Build tools - tool := b.buildSourcesTool() + tool, err := b.buildSourcesTool() + if err != nil { + return nil, err + } handler := b.buildSourcesHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminSourcesInput, any]{ Tool: tool, Handler: handler, }, @@ -81,7 +164,12 @@ func (b *PulsarAdminSourcesToolBuilder) BuildTools(_ context.Context, config bui } // buildSourcesTool builds the Pulsar admin sources MCP tool definition -func (b *PulsarAdminSourcesToolBuilder) buildSourcesTool() mcp.Tool { +func (b *PulsarAdminSourcesToolBuilder) buildSourcesTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminSourcesInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar Sources for data ingestion and integration. " + "Pulsar Sources are connectors that import data from external systems into Pulsar topics. " + "Sources connect to external systems such as databases, messaging platforms, storage services, " + @@ -92,94 +180,20 @@ func (b *PulsarAdminSourcesToolBuilder) buildSourcesTool() mcp.Tool { "This tool provides complete lifecycle management including deployment, configuration, " + "monitoring, and runtime control. Sources use schema types to ensure data compatibility." - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all sources under a specific tenant and namespace\n" + - "- get: Get the configuration of a source\n" + - "- status: Get the runtime status of a source (instances, metrics)\n" + - "- create: Deploy a new source with specified parameters\n" + - "- update: Update the configuration of an existing source\n" + - "- delete: Delete a source\n" + - "- start: Start a stopped source\n" + - "- stop: Stop a running source\n" + - "- restart: Restart a source\n" + - "- list-built-in: List all built-in source connectors available in the system" - - return mcp.NewTool("pulsar_admin_sources", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc)), - mcp.WithString("tenant", - mcp.Description("The tenant name. Tenants are the primary organizational unit in Pulsar, "+ - "providing multi-tenancy and resource isolation. Sources deployed within a tenant "+ - "inherit its permissions and resource quotas. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("namespace", - mcp.Description("The namespace name. Namespaces are logical groupings of topics and sources "+ - "within a tenant. They encapsulate configuration policies and access control. "+ - "Sources in a namespace typically publish to topics within the same namespace. "+ - "Required for all operations except 'list-built-in'.")), - mcp.WithString("name", - mcp.Description("The source name. Required for all operations except 'list' and 'list-built-in'. "+ - "Names should be descriptive of the source's purpose and must be unique within a namespace. "+ - "Source names are used in metrics, logs, and when addressing the source via APIs.")), - mcp.WithString("archive", - mcp.Description("Path to the archive file containing the source code. Optional for 'create' and 'update' operations. "+ - "Can be a local path, NAR file, or a URL accessible to the Pulsar broker. "+ - "The archive should contain all dependencies for the source connector. "+ - "Either archive or source-type must be specified, but not both.")), - mcp.WithString("source-type", - mcp.Description("The built-in source connector type to use. Optional for 'create' and 'update' operations. "+ - "Specifies which built-in connector to use, such as 'kafka', 'jdbc', 'file', etc. "+ - "Use 'list-built-in' operation to see available source types. "+ - "Either source-type or archive must be specified, but not both.")), - mcp.WithString("destination-topic-name", - mcp.Description("The Pulsar topic to which data is published. Required for 'create' operation, optional for 'update'. "+ - "Specified in the format 'persistent://tenant/namespace/topic'. "+ - "This is the topic where the source will send the data it extracts from the external system. "+ - "The topic will be automatically created if it doesn't exist.")), - mcp.WithString("deserialization-classname", - mcp.Description("The SerDe (Serialization/Deserialization) classname for the source. Optional for 'create' and 'update'. "+ - "Specifies how to convert data from the external system into Pulsar messages. "+ - "Common SerDe classes include AvroSchema, JsonSchema, StringSchema, etc. "+ - "If not specified, the source will use the default SerDe for the connector type.")), - mcp.WithString("schema-type", - mcp.Description("The schema type to be used to encode messages emitted from the source. Optional for 'create' and 'update'. "+ - "Available schema types include: 'avro', 'json', 'protobuf', 'string', etc. "+ - "Schema types ensure data compatibility and enable schema evolution. "+ - "The schema type should match the format of data being ingested.")), - mcp.WithString("classname", - mcp.Description("The source's class name if archive is a file-url-path (file://...). Optional for 'create' and 'update'. "+ - "This specifies the fully qualified class name that implements the source connector. "+ - "Only needed when using a custom source implementation in a JAR file. "+ - "Built-in connectors don't require this parameter.")), - mcp.WithString("processing-guarantees", - mcp.Description("The processing guarantees (delivery semantics) applied to the source. Optional for 'create' and 'update'. "+ - "Available options: 'atleast_once', 'atmost_once', 'effectively_once'. "+ - "Controls how data is delivered in failure scenarios. "+ - "'atleast_once' is the most common and ensures no data loss but may have duplicates. "+ - "Default is 'atleast_once'.")), - mcp.WithNumber("parallelism", - mcp.Description("The parallelism factor of the source. Optional for 'create' and 'update' operations. "+ - "Determines how many instances of the source will run concurrently. "+ - "Higher values improve throughput but require more resources. "+ - "Default is 1 (single instance). Recommended to align with both source capacity "+ - "and destination topic partition count.")), - mcp.WithObject("source-config", - mcp.Description("User-defined source config key/values. Optional for 'create' and 'update' operations. "+ - "Provides configuration parameters specific to the source connector being used. "+ - "For example, database connection details, Kafka bootstrap servers, credentials, etc. "+ - "Specify as a JSON object with configuration properties required by the specific source type. "+ - "Example: {\"topic\": \"external-kafka-topic\", \"bootstrapServers\": \"kafka:9092\"}")), - ) + return &sdk.Tool{ + Name: "pulsar_admin_sources", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildSourcesHandler builds the Pulsar admin sources handler function -func (b *PulsarAdminSourcesToolBuilder) buildSourcesHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSourcesToolBuilder) buildSourcesHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminSourcesInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminSourcesInput) (*sdk.CallToolResult, any, error) { // Extract and validate operation parameter - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'operation': %v", err)), nil + operation := input.Operation + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'") } // Check if the operation is valid @@ -189,7 +203,7 @@ func (b *PulsarAdminSourcesToolBuilder) buildSourcesHandler(readOnly bool) func( } if !validOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: '%s'. Supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation)), nil + return nil, nil, fmt.Errorf("invalid operation: '%s'. supported operations: list, get, status, create, update, delete, start, stop, restart, list-built-in", operation) } // Check write permissions for write operations @@ -199,142 +213,131 @@ func (b *PulsarAdminSourcesToolBuilder) buildSourcesHandler(readOnly bool) func( } if readOnly && writeOperations[operation] { - return mcp.NewToolResultError(fmt.Sprintf("Operation '%s' not allowed in read-only mode. Read-only mode restricts modifications to Pulsar Sources.", operation)), nil + return nil, nil, fmt.Errorf("operation '%s' not allowed in read-only mode. read-only mode restricts modifications to Pulsar Sources", operation) } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } admin, err := session.GetAdminV3Client() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to get Pulsar client: %v", err) } // List built-in sources doesn't require tenant, namespace or name if operation == "list-built-in" { - return b.handleListBuiltInSources(ctx, admin) + result, err := b.handleListBuiltInSources(ctx, admin) + return result, nil, err } // Extract common parameters (all operations except list-built-in require tenant and namespace) - tenant, err := request.RequireString("tenant") + tenant, err := requireString(input.Tenant, "tenant") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'tenant': %v. A tenant is required for operation '%s'.", err, operation)), nil + return nil, nil, fmt.Errorf("missing required parameter 'tenant': %v", err) } - namespace, err := request.RequireString("namespace") + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace': %v. A namespace is required for operation '%s'.", err, operation)), nil + return nil, nil, fmt.Errorf("missing required parameter 'namespace': %v", err) } - // For all operations except 'list', name is required - var name string + // name is required for all operations except list and list-built-in + name := "" if operation != "list" { - name, err = request.RequireString("name") + name, err = requireString(input.Name, "name") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for operation '%s': %v. The source name must be specified for this operation.", operation, err)), nil + return nil, nil, fmt.Errorf("missing required parameter 'name': %v", err) } } - // Handle operations + // Dispatch based on operation switch operation { case "list": - return b.handleSourceList(ctx, admin, tenant, namespace) + result, err := b.handleSourceList(ctx, admin, tenant, namespace) + return result, nil, err case "get": - return b.handleSourceGet(ctx, admin, tenant, namespace, name) + result, err := b.handleSourceGet(ctx, admin, tenant, namespace, name) + return result, nil, err case "status": - return b.handleSourceStatus(ctx, admin, tenant, namespace, name) + result, err := b.handleSourceStatus(ctx, admin, tenant, namespace, name) + return result, nil, err case "create": - return b.handleSourceCreate(ctx, admin, request) + result, err := b.handleSourceCreate(ctx, admin, input, tenant, namespace, name) + return result, nil, err case "update": - return b.handleSourceUpdate(ctx, admin, request) + result, err := b.handleSourceUpdate(ctx, admin, input, tenant, namespace, name) + return result, nil, err case "delete": - return b.handleSourceDelete(ctx, admin, tenant, namespace, name) + result, err := b.handleSourceDelete(ctx, admin, tenant, namespace, name) + return result, nil, err case "start": - return b.handleSourceStart(ctx, admin, tenant, namespace, name) + result, err := b.handleSourceStart(ctx, admin, tenant, namespace, name) + return result, nil, err case "stop": - return b.handleSourceStop(ctx, admin, tenant, namespace, name) + result, err := b.handleSourceStop(ctx, admin, tenant, namespace, name) + return result, nil, err case "restart": - return b.handleSourceRestart(ctx, admin, tenant, namespace, name) + result, err := b.handleSourceRestart(ctx, admin, tenant, namespace, name) + return result, nil, err default: - // This should never happen due to the valid operations check above - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unsupported operation: %s", operation) } } } -// Helper functions - -// handleSourceList handles listing all sources under a namespace -func (b *PulsarAdminSourcesToolBuilder) handleSourceList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*mcp.CallToolResult, error) { +// handleSourceList handles listing sources +func (b *PulsarAdminSourcesToolBuilder) handleSourceList(_ context.Context, admin cmdutils.Client, tenant, namespace string) (*sdk.CallToolResult, error) { sources, err := admin.Sources().ListSources(tenant, namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list sources in tenant '%s' namespace '%s': %v. Check that the tenant and namespace exist and you have proper permissions.", - tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to list sources in tenant '%s' namespace '%s': %v", tenant, namespace, err) } // Convert result to JSON string sourcesJSON, err := json.Marshal(sources) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source list: %v", err)), nil + return nil, fmt.Errorf("failed to serialize sources list: %v", err) } - return mcp.NewToolResultText(string(sourcesJSON)), nil + return textResult(string(sourcesJSON)), nil } -// handleSourceGet handles getting information about a source -func (b *PulsarAdminSourcesToolBuilder) handleSourceGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +// handleSourceGet handles getting a source's details +func (b *PulsarAdminSourcesToolBuilder) handleSourceGet(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { source, err := admin.Sources().GetSource(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have proper permissions.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to get source '%s' in tenant '%s' namespace '%s': %v. verify the source exists and you have the correct permissions", name, tenant, namespace, err) } // Convert result to JSON string sourceJSON, err := json.Marshal(source) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source info: %v", err)), nil + return nil, fmt.Errorf("failed to serialize source details: %v", err) } - return mcp.NewToolResultText(string(sourceJSON)), nil + return textResult(string(sourceJSON)), nil } // handleSourceStatus handles getting the status of a source -func (b *PulsarAdminSourcesToolBuilder) handleSourceStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSourcesToolBuilder) handleSourceStatus(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { status, err := admin.Sources().GetSourceStatus(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get status for source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to get status for source '%s' in tenant '%s' namespace '%s': %v. verify the source exists and is properly deployed", name, tenant, namespace, err) } // Convert result to JSON string statusJSON, err := json.Marshal(status) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize source status: %v", err)), nil + return nil, fmt.Errorf("failed to serialize source status: %v", err) } - return mcp.NewToolResultText(string(statusJSON)), nil + return textResult(string(statusJSON)), nil } // handleSourceCreate handles creating a new source -func (b *PulsarAdminSourcesToolBuilder) handleSourceCreate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil - } - - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - +func (b *PulsarAdminSourcesToolBuilder) handleSourceCreate(_ context.Context, admin cmdutils.Client, input pulsarAdminSourcesInput, tenant, namespace, name string) (*sdk.CallToolResult, error) { // Create a new SourceData object sourceData := &utils.SourceData{ Tenant: tenant, @@ -344,78 +347,64 @@ func (b *PulsarAdminSourcesToolBuilder) handleSourceCreate(_ context.Context, ad } // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { + if archive := stringValue(input.Archive); archive != "" { sourceData.Archive = archive } - sourceType := request.GetString("source-type", "") - if sourceType != "" { + if sourceType := stringValue(input.SourceType); sourceType != "" { sourceData.SourceType = sourceType } - destTopic := request.GetString("destination-topic-name", "") - if destTopic != "" { + if destTopic := stringValue(input.DestinationTopicName); destTopic != "" { sourceData.DestinationTopicName = destTopic } - deserializationClassName := request.GetString("deserialization-classname", "") - if deserializationClassName != "" { + if deserializationClassName := stringValue(input.DeserializationClass); deserializationClassName != "" { sourceData.DeserializationClassName = deserializationClassName } - schemaType := request.GetString("schema-type", "") - if schemaType != "" { + if schemaType := stringValue(input.SchemaType); schemaType != "" { sourceData.SchemaType = schemaType } - className := request.GetString("classname", "") - if className != "" { + if className := stringValue(input.ClassName); className != "" { sourceData.ClassName = className } - processingGuarantees := request.GetString("processing-guarantees", "") - if processingGuarantees != "" { + if processingGuarantees := stringValue(input.ProcessingGuarantees); processingGuarantees != "" { sourceData.ProcessingGuarantees = processingGuarantees } - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sourceData.Parallelism = int(parallelismFloat) + if input.Parallelism != nil && *input.Parallelism >= 0 { + sourceData.Parallelism = int(*input.Parallelism) } // Get source config if available - var sourceConfigMap map[string]interface{} - sourceConfigObj, ok := request.GetArguments()["source-config"] - if ok && sourceConfigObj != nil { - if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { - sourceConfigMap = configMap - // Convert to JSON string - sourceConfigJSON, err := json.Marshal(sourceConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil - } - sourceData.SourceConfigString = string(sourceConfigJSON) + if input.SourceConfig != nil { + sourceConfigJSON, err := json.Marshal(input.SourceConfig) + if err != nil { + return nil, fmt.Errorf("failed to marshal source-config: %v. ensure the source configuration is a valid JSON object", err) } + sourceData.SourceConfigString = string(sourceConfigJSON) } // Validate inputs if sourceData.Archive == "" && sourceData.SourceType == "" { - return mcp.NewToolResultError("Missing required parameter: Either 'archive' or 'source-type' must be specified for source creation. Use 'archive' for custom connectors or 'source-type' for built-in connectors."), nil + return nil, fmt.Errorf("missing required parameter: either 'archive' or 'source-type' must be specified for source creation. use 'archive' for custom connectors or 'source-type' for built-in connectors") } if sourceData.Archive != "" && sourceData.SourceType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil + return nil, fmt.Errorf("invalid parameters: cannot specify both 'archive' and 'source-type'. use only one of these parameters based on your connector type") } if sourceData.DestinationTopicName == "" { - return mcp.NewToolResultError("Missing required parameter: 'destination-topic-name' must be specified. This is the Pulsar topic where the source will publish data."), nil + return nil, fmt.Errorf("missing required parameter: 'destination-topic-name' must be specified. this is the Pulsar topic where the source will publish data") } // Process the arguments - err = b.processSourceArguments(sourceData) + err := b.processSourceArguments(sourceData) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + return nil, fmt.Errorf("failed to process arguments: %v", err) } // Create the source @@ -426,31 +415,14 @@ func (b *PulsarAdminSourcesToolBuilder) handleSourceCreate(_ context.Context, ad } if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create source '%s' in tenant '%s' namespace '%s': %v. Verify all parameters are correct and required resources exist.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to create source '%s' in tenant '%s' namespace '%s': %v. verify all parameters are correct and required resources exist", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Created source '%s' successfully in tenant '%s' namespace '%s'. The source will start pulling data from the external system and publishing to the destination topic.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Created source '%s' successfully in tenant '%s' namespace '%s'. The source will start pulling data from the external system and publishing to the destination topic.", name, tenant, namespace)), nil } // handleSourceUpdate handles updating an existing source -func (b *PulsarAdminSourcesToolBuilder) handleSourceUpdate(_ context.Context, admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - tenant, err := request.RequireString("tenant") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get tenant: %v", err)), nil - } - - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace: %v", err)), nil - } - - name, err := request.RequireString("name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get name: %v", err)), nil - } - +func (b *PulsarAdminSourcesToolBuilder) handleSourceUpdate(_ context.Context, admin cmdutils.Client, input pulsarAdminSourcesInput, tenant, namespace, name string) (*sdk.CallToolResult, error) { // Create a new SourceData object sourceData := &utils.SourceData{ Tenant: tenant, @@ -460,70 +432,56 @@ func (b *PulsarAdminSourcesToolBuilder) handleSourceUpdate(_ context.Context, ad } // Get optional parameters - archive := request.GetString("archive", "") - if archive != "" { + if archive := stringValue(input.Archive); archive != "" { sourceData.Archive = archive } - sourceType := request.GetString("source-type", "") - if sourceType != "" { + if sourceType := stringValue(input.SourceType); sourceType != "" { sourceData.SourceType = sourceType } - destTopic := request.GetString("destination-topic-name", "") - if destTopic != "" { + if destTopic := stringValue(input.DestinationTopicName); destTopic != "" { sourceData.DestinationTopicName = destTopic } - deserializationClassName := request.GetString("deserialization-classname", "") - if deserializationClassName != "" { + if deserializationClassName := stringValue(input.DeserializationClass); deserializationClassName != "" { sourceData.DeserializationClassName = deserializationClassName } - schemaType := request.GetString("schema-type", "") - if schemaType != "" { + if schemaType := stringValue(input.SchemaType); schemaType != "" { sourceData.SchemaType = schemaType } - className := request.GetString("classname", "") - if className != "" { + if className := stringValue(input.ClassName); className != "" { sourceData.ClassName = className } - processingGuarantees := request.GetString("processing-guarantees", "") - if processingGuarantees != "" { + if processingGuarantees := stringValue(input.ProcessingGuarantees); processingGuarantees != "" { sourceData.ProcessingGuarantees = processingGuarantees } - parallelismFloat := request.GetFloat("parallelism", 1) - if parallelismFloat >= 0 { - sourceData.Parallelism = int(parallelismFloat) + if input.Parallelism != nil && *input.Parallelism >= 0 { + sourceData.Parallelism = int(*input.Parallelism) } // Get source config if available - var sourceConfigMap map[string]interface{} - sourceConfigObj, ok := request.GetArguments()["source-config"] - if ok && sourceConfigObj != nil { - if configMap, isMap := sourceConfigObj.(map[string]interface{}); isMap { - sourceConfigMap = configMap - // Convert to JSON string - sourceConfigJSON, err := json.Marshal(sourceConfigMap) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal source-config: %v. Ensure the source configuration is a valid JSON object.", err)), nil - } - sourceData.SourceConfigString = string(sourceConfigJSON) + if input.SourceConfig != nil { + sourceConfigJSON, err := json.Marshal(input.SourceConfig) + if err != nil { + return nil, fmt.Errorf("failed to marshal source-config: %v. ensure the source configuration is a valid JSON object", err) } + sourceData.SourceConfigString = string(sourceConfigJSON) } // Validate inputs if both are specified if sourceData.Archive != "" && sourceData.SourceType != "" { - return mcp.NewToolResultError("Invalid parameters: Cannot specify both 'archive' and 'source-type'. Use only one of these parameters based on your connector type."), nil + return nil, fmt.Errorf("invalid parameters: cannot specify both 'archive' and 'source-type'. use only one of these parameters based on your connector type") } // Process the arguments - err = b.processSourceArguments(sourceData) + err := b.processSourceArguments(sourceData) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to process arguments: %v", err)), nil + return nil, fmt.Errorf("failed to process arguments: %v", err) } // Create update options @@ -539,76 +497,66 @@ func (b *PulsarAdminSourcesToolBuilder) handleSourceUpdate(_ context.Context, ad } if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and all parameters are valid.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to update source '%s' in tenant '%s' namespace '%s': %v. verify the source exists and all parameters are valid", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Updated source '%s' successfully in tenant '%s' namespace '%s'. The source may need to be restarted to apply all changes.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Updated source '%s' successfully in tenant '%s' namespace '%s'. The source may need to be restarted to apply all changes.", name, tenant, namespace)), nil } // handleSourceDelete handles deleting a source -func (b *PulsarAdminSourcesToolBuilder) handleSourceDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSourcesToolBuilder) handleSourceDelete(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sources().DeleteSource(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and you have deletion permissions.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to delete source '%s' in tenant '%s' namespace '%s': %v. verify the source exists and you have deletion permissions", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Deleted source '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Deleted source '%s' successfully from tenant '%s' namespace '%s'. All running instances have been terminated.", name, tenant, namespace)), nil } // handleSourceStart handles starting a source -func (b *PulsarAdminSourcesToolBuilder) handleSourceStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSourcesToolBuilder) handleSourceStart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sources().StartSource(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to start source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is not already running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to start source '%s' in tenant '%s' namespace '%s': %v. verify the source exists and is not already running", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Started source '%s' successfully in tenant '%s' namespace '%s'. The source will begin pulling data from the external system.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Started source '%s' successfully in tenant '%s' namespace '%s'. The source will begin pulling data from the external system.", name, tenant, namespace)), nil } // handleSourceStop handles stopping a source -func (b *PulsarAdminSourcesToolBuilder) handleSourceStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSourcesToolBuilder) handleSourceStop(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sources().StopSource(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to stop source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is currently running.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to stop source '%s' in tenant '%s' namespace '%s': %v. verify the source exists and is currently running", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Stopped source '%s' successfully in tenant '%s' namespace '%s'. The source will no longer pull data until restarted.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Stopped source '%s' successfully in tenant '%s' namespace '%s'. The source will no longer pull data until restarted.", name, tenant, namespace)), nil } // handleSourceRestart handles restarting a source -func (b *PulsarAdminSourcesToolBuilder) handleSourceRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSourcesToolBuilder) handleSourceRestart(_ context.Context, admin cmdutils.Client, tenant, namespace, name string) (*sdk.CallToolResult, error) { err := admin.Sources().RestartSource(tenant, namespace, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to restart source '%s' in tenant '%s' namespace '%s': %v. Verify the source exists and is properly deployed.", - name, tenant, namespace, err)), nil + return nil, fmt.Errorf("failed to restart source '%s' in tenant '%s' namespace '%s': %v. verify the source exists and is properly deployed", name, tenant, namespace, err) } - return mcp.NewToolResultText(fmt.Sprintf("Restarted source '%s' successfully in tenant '%s' namespace '%s'. All source instances have been restarted.", - name, tenant, namespace)), nil + return textResult(fmt.Sprintf("Restarted source '%s' successfully in tenant '%s' namespace '%s'. All source instances have been restarted.", name, tenant, namespace)), nil } // handleListBuiltInSources handles listing all built-in source connectors -func (b *PulsarAdminSourcesToolBuilder) handleListBuiltInSources(_ context.Context, admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSourcesToolBuilder) handleListBuiltInSources(_ context.Context, admin cmdutils.Client) (*sdk.CallToolResult, error) { sources, err := admin.Sources().GetBuiltInSources() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list built-in sources: %v. There might be an issue connecting to the Pulsar cluster.", err)), nil + return nil, fmt.Errorf("failed to list built-in sources: %v. there might be an issue connecting to the Pulsar cluster", err) } // Convert result to JSON string sourcesJSON, err := json.Marshal(sources) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize built-in sources: %v", err)), nil + return nil, fmt.Errorf("failed to serialize built-in sources: %v", err) } - return mcp.NewToolResultText(string(sourcesJSON)), nil + return textResult(string(sourcesJSON)), nil } // processSourceArguments is a simplified version of the pulsarctl function to process source arguments @@ -706,3 +654,34 @@ func (b *PulsarAdminSourcesToolBuilder) isPackageURLSupported(archive string) bo // Also check if it's a local file path (not a URL) return !strings.Contains(archive, "://") } + +func buildPulsarAdminSourcesInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminSourcesInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "operation", pulsarAdminSourcesOperationDesc) + setSchemaDescription(schema, "tenant", pulsarAdminSourcesTenantDesc) + setSchemaDescription(schema, "namespace", pulsarAdminSourcesNamespaceDesc) + setSchemaDescription(schema, "name", pulsarAdminSourcesNameDesc) + setSchemaDescription(schema, "archive", pulsarAdminSourcesArchiveDesc) + setSchemaDescription(schema, "source-type", pulsarAdminSourcesSourceTypeDesc) + setSchemaDescription(schema, "destination-topic-name", pulsarAdminSourcesDestinationTopicDesc) + setSchemaDescription(schema, "deserialization-classname", pulsarAdminSourcesDeserializationClassDesc) + setSchemaDescription(schema, "schema-type", pulsarAdminSourcesSchemaTypeDesc) + setSchemaDescription(schema, "classname", pulsarAdminSourcesClassNameDesc) + setSchemaDescription(schema, "processing-guarantees", pulsarAdminSourcesProcessingGuaranteesDesc) + setSchemaDescription(schema, "parallelism", pulsarAdminSourcesParallelismDesc) + setSchemaDescription(schema, "source-config", pulsarAdminSourcesConfigDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/pulsar/sources_legacy.go b/pkg/mcp/builders/pulsar/sources_legacy.go new file mode 100644 index 0000000..68bdc53 --- /dev/null +++ b/pkg/mcp/builders/pulsar/sources_legacy.go @@ -0,0 +1,123 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminSourcesLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin sources. +// /nolint:revive +type PulsarAdminSourcesLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSourcesLegacyToolBuilder creates a new Pulsar admin sources legacy tool builder instance. +func NewPulsarAdminSourcesLegacyToolBuilder() *PulsarAdminSourcesLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_sources", + Version: "1.0.0", + Description: "Pulsar admin sources management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "sources"}, + } + + features := []string{ + "pulsar-admin-sources", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSourcesLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin sources legacy tool list. +func (b *PulsarAdminSourcesLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildSourcesTool() + if err != nil { + return nil, err + } + handler := b.buildSourcesHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminSourcesLegacyToolBuilder) buildSourcesTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminSourcesInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Manage Apache Pulsar Sources for data ingestion and integration. " + + "Pulsar Sources are connectors that import data from external systems into Pulsar topics. " + + "Sources connect to external systems such as databases, messaging platforms, storage services, " + + "and real-time data streams to pull data and publish it to Pulsar topics. " + + "Built-in source connectors are available for common systems like Kafka, JDBC, AWS services, and more. " + + "Sources follow the tenant/namespace/name hierarchy for organization and access control, " + + "can scale through parallelism configuration, and support various processing guarantees. " + + "This tool provides complete lifecycle management including deployment, configuration, " + + "monitoring, and runtime control. Sources use schema types to ensure data compatibility." + + return mcp.Tool{ + Name: "pulsar_admin_sources", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminSourcesLegacyToolBuilder) buildSourcesHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminSourcesToolBuilder() + sdkHandler := sdkBuilder.buildSourcesHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminSourcesInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/subscription.go b/pkg/mcp/builders/pulsar/subscription.go index f1a1882..af86375 100644 --- a/pkg/mcp/builders/pulsar/subscription.go +++ b/pkg/mcp/builders/pulsar/subscription.go @@ -21,13 +21,54 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminSubscriptionInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Topic string `json:"topic"` + Subscription *string `json:"subscription,omitempty"` + MessageID *string `json:"messageId,omitempty"` + Count *float64 `json:"count,omitempty"` + ExpireTimeInSeconds *float64 `json:"expireTimeInSeconds,omitempty"` + Force *bool `json:"force,omitempty"` +} + +const ( + pulsarAdminSubscriptionResourceDesc = "Resource to operate on. Available resources:\n" + + "- subscription: A subscription on a topic representing a consumer group" + pulsarAdminSubscriptionOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all subscriptions for a topic\n" + + "- create: Create a new subscription on a topic\n" + + "- delete: Delete a subscription from a topic\n" + + "- skip: Skip a specified number of messages for a subscription\n" + + "- expire: Expire messages older than specified time for a subscription\n" + + "- reset-cursor: Reset the cursor position for a subscription to a specific message ID" + pulsarAdminSubscriptionTopicDesc = "The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. " + + "For partitioned topics, you can either specify the base topic name (to apply the operation across all partitions) " + + "or a specific partition in the format 'topicName-partition-N'." + pulsarAdminSubscriptionNameDesc = "The subscription name. Required for all operations except 'list'. " + + "A subscription name is a logical identifier for a durable position in a topic. " + + "Multiple consumers can attach to the same subscription to implement different messaging patterns." + pulsarAdminSubscriptionMessageIDDesc = "Message ID for positioning the subscription cursor. Used in 'create' and 'reset-cursor' operations. " + + "Values can be:\n" + + "- 'latest': Position at the latest (most recent) message\n" + + "- 'earliest': Position at the earliest (oldest available) message\n" + + "- specific position in 'ledgerId:entryId' format for precise positioning" + pulsarAdminSubscriptionCountDesc = "The number of messages to skip (required for 'skip' operation). " + + "This moves the subscription cursor forward by the specified number of messages without processing them." + pulsarAdminSubscriptionExpireDesc = "Expire messages older than the specified seconds (required for 'expire' operation). " + + "This moves the subscription cursor to skip all messages published before the specified time." + pulsarAdminSubscriptionForceDesc = "Force deletion of subscription (optional for 'delete' operation). " + + "When true, all consumers will be forcefully disconnected and the subscription will be deleted. " + + "Use with caution as it can interrupt active message processing." +) + // PulsarAdminSubscriptionToolBuilder implements the ToolBuilder interface for Pulsar Admin Subscription tools // It provides functionality to build Pulsar subscription management tools // /nolint:revive @@ -59,7 +100,7 @@ func NewPulsarAdminSubscriptionToolBuilder() *PulsarAdminSubscriptionToolBuilder // BuildTools builds the Pulsar Admin Subscription tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminSubscriptionToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminSubscriptionToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -71,11 +112,14 @@ func (b *PulsarAdminSubscriptionToolBuilder) BuildTools(_ context.Context, confi } // Build tools - tool := b.buildSubscriptionTool() + tool, err := b.buildSubscriptionTool() + if err != nil { + return nil, err + } handler := b.buildSubscriptionHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminSubscriptionInput, any]{ Tool: tool, Handler: handler, }, @@ -84,7 +128,12 @@ func (b *PulsarAdminSubscriptionToolBuilder) BuildTools(_ context.Context, confi // buildSubscriptionTool builds the Pulsar Admin Subscription MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionTool() mcp.Tool { +func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminSubscriptionInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar subscriptions on topics. " + "Subscriptions are named entities representing consumer groups that maintain their position in a topic. " + "Pulsar supports multiple subscription modes (Exclusive, Shared, Failover, Key_Shared) to accommodate different messaging patterns. " + @@ -93,76 +142,30 @@ func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionTool() mcp.Tool { "Operations include listing, creating, deleting, and manipulating message cursors within subscriptions. " + "Most operations require namespace admin permissions plus produce/consume permissions on the topic." - resourceDesc := "Resource to operate on. Available resources:\n" + - "- subscription: A subscription on a topic representing a consumer group" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all subscriptions for a topic\n" + - "- create: Create a new subscription on a topic\n" + - "- delete: Delete a subscription from a topic\n" + - "- skip: Skip a specified number of messages for a subscription\n" + - "- expire: Expire messages older than specified time for a subscription\n" + - "- reset-cursor: Reset the cursor position for a subscription to a specific message ID" - - return mcp.NewTool("pulsar_admin_subscription", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The fully qualified topic name in the format 'persistent://tenant/namespace/topic'. "+ - "For partitioned topics, you can either specify the base topic name (to apply the operation across all partitions) "+ - "or a specific partition in the format 'topicName-partition-N'."), - ), - mcp.WithString("subscription", - mcp.Description("The subscription name. Required for all operations except 'list'. "+ - "A subscription name is a logical identifier for a durable position in a topic. "+ - "Multiple consumers can attach to the same subscription to implement different messaging patterns."), - ), - mcp.WithString("messageId", - mcp.Description("Message ID for positioning the subscription cursor. Used in 'create' and 'reset-cursor' operations. "+ - "Values can be:\n"+ - "- 'latest': Position at the latest (most recent) message\n"+ - "- 'earliest': Position at the earliest (oldest available) message\n"+ - "- specific position in 'ledgerId:entryId' format for precise positioning"), - ), - mcp.WithNumber("count", - mcp.Description("The number of messages to skip (required for 'skip' operation). "+ - "This moves the subscription cursor forward by the specified number of messages without processing them."), - ), - mcp.WithNumber("expireTimeInSeconds", - mcp.Description("Expire messages older than the specified seconds (required for 'expire' operation). "+ - "This moves the subscription cursor to skip all messages published before the specified time."), - ), - mcp.WithBoolean("force", - mcp.Description("Force deletion of subscription (optional for 'delete' operation). "+ - "When true, all consumers will be forcefully disconnected and the subscription will be deleted. "+ - "Use with caution as it can interrupt active message processing."), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_subscription", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildSubscriptionHandler builds the Pulsar Admin Subscription handler function // Migrated from the original handler logic -func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil +func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminSubscriptionInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminSubscriptionInput) (*sdk.CallToolResult, any, error) { + resource := input.Resource + if resource == "" { + return nil, nil, fmt.Errorf("missing required parameter 'resource'") } - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + operation := input.Operation + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'") } - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'topic'. Please provide the fully qualified topic name: %v", err)), nil + topic := input.Topic + if topic == "" { + return nil, nil, fmt.Errorf("missing required parameter 'topic'. please provide the fully qualified topic name") } // Normalize parameters @@ -171,48 +174,54 @@ func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionHandler(readOnly b // Validate write operations in read-only mode if readOnly && (operation != "list") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Verify resource type if resource != "subscription" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'subscription' is supported", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. only 'subscription' is supported", resource) } // Parse topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid topic name '%s': %v", topic, err)), nil + return nil, nil, fmt.Errorf("invalid topic name '%s': %v", topic, err) } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Create the admin client admin, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to get admin client: %v", err) } // Dispatch based on operation switch operation { case "list": - return b.handleSubsList(admin, topicName) + result, err := b.handleSubsList(admin, topicName) + return result, nil, err case "create": - return b.handleSubsCreate(admin, topicName, request) + result, err := b.handleSubsCreate(admin, topicName, input) + return result, nil, err case "delete": - return b.handleSubsDelete(admin, topicName, request) + result, err := b.handleSubsDelete(admin, topicName, input) + return result, nil, err case "skip": - return b.handleSubsSkip(admin, topicName, request) + result, err := b.handleSubsSkip(admin, topicName, input) + return result, nil, err case "expire": - return b.handleSubsExpire(admin, topicName, request) + result, err := b.handleSubsExpire(admin, topicName, input) + return result, nil, err case "reset-cursor": - return b.handleSubsResetCursor(admin, topicName, request) + result, err := b.handleSubsResetCursor(admin, topicName, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Unknown operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unknown operation: %s", operation) } } } @@ -220,43 +229,47 @@ func (b *PulsarAdminSubscriptionToolBuilder) buildSubscriptionHandler(readOnly b // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarAdminSubscriptionToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminSubscriptionToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminSubscriptionToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSubscriptionToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Operation handler functions - migrated from the original implementation // handleSubsList handles listing all subscriptions for a topic -func (b *PulsarAdminSubscriptionToolBuilder) handleSubsList(admin cmdutils.Client, topicName *utils.TopicName) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsList(admin cmdutils.Client, topicName *utils.TopicName) (*sdk.CallToolResult, error) { // List subscriptions subscriptions, err := admin.Subscriptions().List(*topicName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list subscriptions for topic '%s': %v", - topicName.String(), err)), nil + return nil, fmt.Errorf("failed to list subscriptions for topic '%s': %v", topicName.String(), err) } return b.marshalResponse(subscriptions) } // handleSubsCreate handles creating a new subscription -func (b *PulsarAdminSubscriptionToolBuilder) handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsCreate(admin cmdutils.Client, topicName *utils.TopicName, input pulsarAdminSubscriptionInput) (*sdk.CallToolResult, error) { // Get required parameter - subscription, err := request.RequireString("subscription") + subscription, err := requireString(input.Subscription, "subscription") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.create: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'subscription' for subscription.create: %v", err) } // Get optional messageID parameter (default is "latest") - messageID := request.GetString("messageId", "latest") + messageID := stringValue(input.MessageID) + if messageID == "" { + messageID = "latest" + } // Parse messageId var messageIDObj utils.MessageID @@ -268,12 +281,11 @@ func (b *PulsarAdminSubscriptionToolBuilder) handleSubsCreate(admin cmdutils.Cli default: s := strings.Split(messageID, ":") if len(s) != 2 { - return mcp.NewToolResultError(fmt.Sprintf( - "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil + return nil, fmt.Errorf("invalid messageId format: %s. use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID) } msgID, err := utils.ParseMessageID(messageID) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil + return nil, fmt.Errorf("failed to parse messageId '%s': %v", messageID, err) } messageIDObj = *msgID } @@ -281,37 +293,33 @@ func (b *PulsarAdminSubscriptionToolBuilder) handleSubsCreate(admin cmdutils.Cli // Create subscription err = admin.Subscriptions().Create(*topicName, subscription, messageIDObj) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil + return nil, fmt.Errorf("failed to create subscription '%s' on topic '%s': %v", subscription, topicName.String(), err) } - return mcp.NewToolResultText(fmt.Sprintf("Created subscription '%s' on topic '%s' from position '%s' successfully", - subscription, topicName.String(), messageID)), nil + return textResult(fmt.Sprintf("Created subscription '%s' on topic '%s' from position '%s' successfully", subscription, topicName.String(), messageID)), nil } // handleSubsDelete handles deleting a subscription -func (b *PulsarAdminSubscriptionToolBuilder) handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsDelete(admin cmdutils.Client, topicName *utils.TopicName, input pulsarAdminSubscriptionInput) (*sdk.CallToolResult, error) { // Get required parameter - subscription, err := request.RequireString("subscription") + subscription, err := requireString(input.Subscription, "subscription") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.delete: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'subscription' for subscription.delete: %v", err) } // Get optional force parameter (default is false) - force := request.GetBool("force", false) + force := input.Force != nil && *input.Force // Delete subscription if force { err = admin.Subscriptions().ForceDelete(*topicName, subscription) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to forcefully delete subscription '%s' from topic '%s': %v", - subscription, topicName.String(), err)), nil + return nil, fmt.Errorf("failed to forcefully delete subscription '%s' from topic '%s': %v", subscription, topicName.String(), err) } } else { err = admin.Subscriptions().Delete(*topicName, subscription) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete subscription '%s' from topic '%s': %v", - subscription, topicName.String(), err)), nil + return nil, fmt.Errorf("failed to delete subscription '%s' from topic '%s': %v", subscription, topicName.String(), err) } } @@ -319,71 +327,68 @@ func (b *PulsarAdminSubscriptionToolBuilder) handleSubsDelete(admin cmdutils.Cli if force { forceStr = " forcefully" } - return mcp.NewToolResultText(fmt.Sprintf("Deleted subscription '%s' from topic '%s'%s successfully", - subscription, topicName.String(), forceStr)), nil + return textResult(fmt.Sprintf("Deleted subscription '%s' from topic '%s'%s successfully", subscription, topicName.String(), forceStr)), nil } // handleSubsSkip handles skipping messages for a subscription -func (b *PulsarAdminSubscriptionToolBuilder) handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsSkip(admin cmdutils.Client, topicName *utils.TopicName, input pulsarAdminSubscriptionInput) (*sdk.CallToolResult, error) { // Get required parameters - subscription, err := request.RequireString("subscription") + subscription, err := requireString(input.Subscription, "subscription") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.skip: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'subscription' for subscription.skip: %v", err) } - count, err := request.RequireFloat("count") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'count' for subscription.skip: %v", err)), nil + if input.Count == nil { + return nil, fmt.Errorf("missing required parameter 'count' for subscription.skip") } + count := *input.Count + // Skip messages err = admin.Subscriptions().SkipMessages(*topicName, subscription, int64(count)) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to skip messages for subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil + return nil, fmt.Errorf("failed to skip messages for subscription '%s' on topic '%s': %v", subscription, topicName.String(), err) } - return mcp.NewToolResultText(fmt.Sprintf("Skipped %d messages for subscription '%s' on topic '%s' successfully", - int(count), subscription, topicName.String())), nil + return textResult(fmt.Sprintf("Skipped %d messages for subscription '%s' on topic '%s' successfully", int(count), subscription, topicName.String())), nil } // handleSubsExpire handles expiring messages for a subscription -func (b *PulsarAdminSubscriptionToolBuilder) handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsExpire(admin cmdutils.Client, topicName *utils.TopicName, input pulsarAdminSubscriptionInput) (*sdk.CallToolResult, error) { // Get required parameters - subscription, err := request.RequireString("subscription") + subscription, err := requireString(input.Subscription, "subscription") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.expire: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'subscription' for subscription.expire: %v", err) } - expireTime, err := request.RequireFloat("expireTimeInSeconds") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'expireTimeInSeconds' for subscription.expire: %v", err)), nil + if input.ExpireTimeInSeconds == nil { + return nil, fmt.Errorf("missing required parameter 'expireTimeInSeconds' for subscription.expire") } + expireTime := *input.ExpireTimeInSeconds + // Expire messages err = admin.Subscriptions().ExpireMessages(*topicName, subscription, int64(expireTime)) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to expire messages for subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil + return nil, fmt.Errorf("failed to expire messages for subscription '%s' on topic '%s': %v", subscription, topicName.String(), err) } - return mcp.NewToolResultText( - fmt.Sprintf("Expired messages older than %d seconds for subscription '%s' on topic '%s' successfully", - int(expireTime), subscription, topicName.String()), + return textResult( + fmt.Sprintf("Expired messages older than %d seconds for subscription '%s' on topic '%s' successfully", int(expireTime), subscription, topicName.String()), ), nil } // handleSubsResetCursor handles resetting a subscription cursor -func (b *PulsarAdminSubscriptionToolBuilder) handleSubsResetCursor(admin cmdutils.Client, topicName *utils.TopicName, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminSubscriptionToolBuilder) handleSubsResetCursor(admin cmdutils.Client, topicName *utils.TopicName, input pulsarAdminSubscriptionInput) (*sdk.CallToolResult, error) { // Get required parameters - subscription, err := request.RequireString("subscription") + subscription, err := requireString(input.Subscription, "subscription") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'subscription' for subscription.reset-cursor: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'subscription' for subscription.reset-cursor: %v", err) } - messageID, err := request.RequireString("messageId") + messageID, err := requireString(input.MessageID, "messageId") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'messageId' for subscription.reset-cursor: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'messageId' for subscription.reset-cursor: %v", err) } // Parse messageId @@ -396,12 +401,11 @@ func (b *PulsarAdminSubscriptionToolBuilder) handleSubsResetCursor(admin cmdutil default: s := strings.Split(messageID, ":") if len(s) != 2 { - return mcp.NewToolResultError(fmt.Sprintf( - "Invalid messageId format: %s. Use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID)), nil + return nil, fmt.Errorf("invalid messageId format: %s. use 'latest', 'earliest', or 'ledgerId:entryId' format", messageID) } msgID, err := utils.ParseMessageID(messageID) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse messageId '%s': %v", messageID, err)), nil + return nil, fmt.Errorf("failed to parse messageId '%s': %v", messageID, err) } messageIDObj = *msgID } @@ -409,12 +413,34 @@ func (b *PulsarAdminSubscriptionToolBuilder) handleSubsResetCursor(admin cmdutil // Reset cursor err = admin.Subscriptions().ResetCursorToMessageID(*topicName, subscription, messageIDObj) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to reset cursor for subscription '%s' on topic '%s': %v", - subscription, topicName.String(), err)), nil + return nil, fmt.Errorf("failed to reset cursor for subscription '%s' on topic '%s': %v", subscription, topicName.String(), err) } - return mcp.NewToolResultText( - fmt.Sprintf("Reset cursor for subscription '%s' on topic '%s' to position '%s' successfully", - subscription, topicName.String(), messageID), - ), nil + return textResult(fmt.Sprintf("Reset cursor for subscription '%s' on topic '%s' to position '%s' successfully", subscription, topicName.String(), messageID)), nil +} + +func buildPulsarAdminSubscriptionInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminSubscriptionInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminSubscriptionResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminSubscriptionOperationDesc) + setSchemaDescription(schema, "topic", pulsarAdminSubscriptionTopicDesc) + setSchemaDescription(schema, "subscription", pulsarAdminSubscriptionNameDesc) + setSchemaDescription(schema, "messageId", pulsarAdminSubscriptionMessageIDDesc) + setSchemaDescription(schema, "count", pulsarAdminSubscriptionCountDesc) + setSchemaDescription(schema, "expireTimeInSeconds", pulsarAdminSubscriptionExpireDesc) + setSchemaDescription(schema, "force", pulsarAdminSubscriptionForceDesc) + + normalizeAdditionalProperties(schema) + return schema, nil } diff --git a/pkg/mcp/builders/pulsar/subscription_legacy.go b/pkg/mcp/builders/pulsar/subscription_legacy.go new file mode 100644 index 0000000..4b4e185 --- /dev/null +++ b/pkg/mcp/builders/pulsar/subscription_legacy.go @@ -0,0 +1,121 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminSubscriptionLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin subscriptions. +// /nolint:revive +type PulsarAdminSubscriptionLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminSubscriptionLegacyToolBuilder creates a new Pulsar admin subscription legacy tool builder instance. +func NewPulsarAdminSubscriptionLegacyToolBuilder() *PulsarAdminSubscriptionLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_subscription", + Version: "1.0.0", + Description: "Pulsar Admin subscription management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "subscription", "admin"}, + } + + features := []string{ + "pulsar-admin-subscriptions", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminSubscriptionLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin subscription legacy tool list. +func (b *PulsarAdminSubscriptionLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildSubscriptionTool() + if err != nil { + return nil, err + } + handler := b.buildSubscriptionHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminSubscriptionLegacyToolBuilder) buildSubscriptionTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminSubscriptionInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Manage Apache Pulsar subscriptions on topics. " + + "Subscriptions are named entities representing consumer groups that maintain their position in a topic. " + + "Pulsar supports multiple subscription modes (Exclusive, Shared, Failover, Key_Shared) to accommodate different messaging patterns. " + + "Each subscription tracks message acknowledgments independently, allowing multiple consumers to process messages at their own pace. " + + "Subscriptions persist even when all consumers disconnect, maintaining state and preventing message loss. " + + "Operations include listing, creating, deleting, and manipulating message cursors within subscriptions. " + + "Most operations require namespace admin permissions plus produce/consume permissions on the topic." + + return mcp.Tool{ + Name: "pulsar_admin_subscription", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminSubscriptionLegacyToolBuilder) buildSubscriptionHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminSubscriptionToolBuilder() + sdkHandler := sdkBuilder.buildSubscriptionHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminSubscriptionInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/pulsar_admin_brokers_tools.go b/pkg/mcp/pulsar_admin_brokers_tools.go index 6ce43ed..5222afe 100644 --- a/pkg/mcp/pulsar_admin_brokers_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_tools.go @@ -17,14 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddBrokersTools adds broker-related tools to the MCP server -func PulsarAdminAddBrokersTools(s *server.MCPServer, readOnly bool, features []string) { - // Use the new builder pattern +func PulsarAdminAddBrokersTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarbuilders.NewPulsarAdminBrokersToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -33,12 +32,10 @@ func PulsarAdminAddBrokersTools(s *server.MCPServer, readOnly bool, features []s tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // Log error but don't fail - this maintains backward compatibility return } - // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_brokers_tools_legacy.go b/pkg/mcp/pulsar_admin_brokers_tools_legacy.go new file mode 100644 index 0000000..4681154 --- /dev/null +++ b/pkg/mcp/pulsar_admin_brokers_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddBrokersToolsLegacy registers Pulsar admin broker tools for the legacy server. +func PulsarAdminAddBrokersToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminBrokersLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} diff --git a/pkg/mcp/pulsar_admin_cluster_tools.go b/pkg/mcp/pulsar_admin_cluster_tools.go index 51f1f38..c99f64f 100644 --- a/pkg/mcp/pulsar_admin_cluster_tools.go +++ b/pkg/mcp/pulsar_admin_cluster_tools.go @@ -17,14 +17,14 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" - pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminClusterTools creates Pulsar Admin Cluster tool list using the new builder pattern -func PulsarAdminClusterTools(readOnly bool, features []string) []server.ServerTool { - builder := pulsarBuilders.NewPulsarAdminClusterToolBuilder() +// PulsarAdminAddClusterTools adds cluster-related tools to the MCP server +func PulsarAdminAddClusterTools(s *sdk.Server, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminClusterToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, Features: features, @@ -32,18 +32,10 @@ func PulsarAdminClusterTools(readOnly bool, features []string) []server.ServerTo tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - return nil + return } - return tools -} - -// PulsarAdminAddClusterTools adds cluster-related tools to the MCP server -func PulsarAdminAddClusterTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarAdminClusterTools(readOnly, features) - for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_cluster_tools_legacy.go b/pkg/mcp/pulsar_admin_cluster_tools_legacy.go new file mode 100644 index 0000000..9e67a34 --- /dev/null +++ b/pkg/mcp/pulsar_admin_cluster_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddClusterToolsLegacy registers Pulsar admin cluster tools for the legacy server. +func PulsarAdminAddClusterToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminClusterLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} diff --git a/pkg/mcp/pulsar_admin_sinks_tools.go b/pkg/mcp/pulsar_admin_sinks_tools.go index cc4abac..6f5d07a 100644 --- a/pkg/mcp/pulsar_admin_sinks_tools.go +++ b/pkg/mcp/pulsar_admin_sinks_tools.go @@ -17,14 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddSinksTools adds a unified sink-related tool to the MCP server -func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []string) { - // Use the new builder pattern +// PulsarAdminAddSinksTools adds sink-related tools to the MCP server +func PulsarAdminAddSinksTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarbuilders.NewPulsarAdminSinksToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -33,12 +32,10 @@ func PulsarAdminAddSinksTools(s *server.MCPServer, readOnly bool, features []str tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // Log error but don't fail - this maintains backward compatibility return } - // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_sinks_tools_legacy.go b/pkg/mcp/pulsar_admin_sinks_tools_legacy.go new file mode 100644 index 0000000..c8d8057 --- /dev/null +++ b/pkg/mcp/pulsar_admin_sinks_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddSinksToolsLegacy registers Pulsar admin sink tools for the legacy server. +func PulsarAdminAddSinksToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminSinksLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} diff --git a/pkg/mcp/pulsar_admin_sources_tools.go b/pkg/mcp/pulsar_admin_sources_tools.go index 8abc646..c99944c 100644 --- a/pkg/mcp/pulsar_admin_sources_tools.go +++ b/pkg/mcp/pulsar_admin_sources_tools.go @@ -17,14 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminAddSourcesTools adds a unified source-related tool to the MCP server -func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []string) { - // Use the new builder pattern +// PulsarAdminAddSourcesTools adds source-related tools to the MCP server +func PulsarAdminAddSourcesTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarbuilders.NewPulsarAdminSourcesToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -33,12 +32,10 @@ func PulsarAdminAddSourcesTools(s *server.MCPServer, readOnly bool, features []s tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // Log error but don't fail - this maintains backward compatibility return } - // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_sources_tools_legacy.go b/pkg/mcp/pulsar_admin_sources_tools_legacy.go new file mode 100644 index 0000000..db80013 --- /dev/null +++ b/pkg/mcp/pulsar_admin_sources_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddSourcesToolsLegacy registers Pulsar admin source tools for the legacy server. +func PulsarAdminAddSourcesToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminSourcesLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} diff --git a/pkg/mcp/pulsar_admin_subscription_tools.go b/pkg/mcp/pulsar_admin_subscription_tools.go index 2a7d03e..616cfd4 100644 --- a/pkg/mcp/pulsar_admin_subscription_tools.go +++ b/pkg/mcp/pulsar_admin_subscription_tools.go @@ -16,16 +16,15 @@ package mcp import ( "context" - "fmt" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" - pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminSubscriptionTools creates Pulsar Admin Subscription tool list using the new builder pattern -func PulsarAdminSubscriptionTools(readOnly bool, features []string) []server.ServerTool { - builder := pulsarBuilders.NewPulsarAdminSubscriptionToolBuilder() +// PulsarAdminAddSubscriptionTools adds subscription-related tools to the MCP server +func PulsarAdminAddSubscriptionTools(s *sdk.Server, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminSubscriptionToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, Features: features, @@ -33,19 +32,10 @@ func PulsarAdminSubscriptionTools(readOnly bool, features []string) []server.Ser tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - fmt.Printf("Failed to build Pulsar Admin Subscription tools: %v\n", err) - return nil + return } - return tools -} - -// PulsarAdminAddSubscriptionTools adds subscription-related tools to the MCP server -func PulsarAdminAddSubscriptionTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarAdminSubscriptionTools(readOnly, features) - for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_subscription_tools_legacy.go b/pkg/mcp/pulsar_admin_subscription_tools_legacy.go new file mode 100644 index 0000000..9262f87 --- /dev/null +++ b/pkg/mcp/pulsar_admin_subscription_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddSubscriptionToolsLegacy registers Pulsar admin subscription tools for the legacy server. +func PulsarAdminAddSubscriptionToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminSubscriptionLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From f447263a089a9498c7f7c611f8ffeb568fe4edc9 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 11:37:24 +0800 Subject: [PATCH 61/85] feat: migrate pulsar broker stats tool --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/brokers_stats.go | 151 +++++++++++------- .../builders/pulsar/brokers_stats_legacy.go | 124 ++++++++++++++ pkg/mcp/builders/pulsar/brokers_stats_test.go | 116 ++++++++++++++ pkg/mcp/pulsar_admin_brokers_stats_tools.go | 6 +- ...pulsar_admin_brokers_stats_tools_legacy.go | 41 +++++ 6 files changed, 380 insertions(+), 60 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/brokers_stats_legacy.go create mode 100644 pkg/mcp/builders/pulsar/brokers_stats_test.go create mode 100644 pkg/mcp/pulsar_admin_brokers_stats_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index d1a69a9..1efa6ba 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -115,7 +115,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo } mcp.PulsarAdminAddBrokersToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddBrokerStatsTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddBrokerStatsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddClusterToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsWorkerTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespaceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/brokers_stats.go b/pkg/mcp/builders/pulsar/brokers_stats.go index b0da1df..7912b5c 100644 --- a/pkg/mcp/builders/pulsar/brokers_stats.go +++ b/pkg/mcp/builders/pulsar/brokers_stats.go @@ -19,13 +19,28 @@ import ( "encoding/json" "fmt" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminBrokerStatsInput struct { + Resource string `json:"resource"` + AllocatorName *string `json:"allocator_name,omitempty"` +} + +const ( + pulsarAdminBrokerStatsResourceDesc = "Type of broker stats resource to access, available options:\n" + + "- monitoring_metrics: Metrics for the broker's monitoring system\n" + + "- mbeans: JVM MBeans statistics\n" + + "- topics: Statistics about all topics managed by the broker\n" + + "- allocator_stats: Memory allocator statistics (requires allocator_name parameter)\n" + + "- load_report: Broker load information" + pulsarAdminBrokerStatsAllocatorNameDesc = "The name of the allocator to get statistics for. Required only when resource=allocator_stats" +) + // PulsarAdminBrokerStatsToolBuilder implements the ToolBuilder interface for Pulsar Broker Statistics // /nolint:revive type PulsarAdminBrokerStatsToolBuilder struct { @@ -55,7 +70,7 @@ func NewPulsarAdminBrokerStatsToolBuilder() *PulsarAdminBrokerStatsToolBuilder { } // BuildTools builds the Pulsar Admin Broker Stats tool list -func (b *PulsarAdminBrokerStatsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -67,11 +82,14 @@ func (b *PulsarAdminBrokerStatsToolBuilder) BuildTools(_ context.Context, config } // Build tools - tool := b.buildBrokerStatsTool() + tool, err := b.buildBrokerStatsTool() + if err != nil { + return nil, err + } handler := b.buildBrokerStatsHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminBrokerStatsInput, any]{ Tool: tool, Handler: handler, }, @@ -79,13 +97,11 @@ func (b *PulsarAdminBrokerStatsToolBuilder) BuildTools(_ context.Context, config } // buildBrokerStatsTool builds the Pulsar Admin Broker Stats MCP tool definition -func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsTool() mcp.Tool { - resourceDesc := "Type of broker stats resource to access, available options:\n" + - "- monitoring_metrics: Metrics for the broker's monitoring system\n" + - "- mbeans: JVM MBeans statistics\n" + - "- topics: Statistics about all topics managed by the broker\n" + - "- allocator_stats: Memory allocator statistics (requires allocator_name parameter)\n" + - "- load_report: Broker load information" +func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminBrokerStatsInputSchema() + if err != nil { + return nil, err + } toolDesc := "Unified tool for retrieving Apache Pulsar broker statistics.\n" + "This tool provides access to various broker stats resources, including:\n" + @@ -98,57 +114,58 @@ func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsTool() mcp.Tool { "Example: {\"resource\": \"allocator_stats\", \"allocator_name\": \"default\"} retrieves stats for the default allocator\n" + "This tool requires Pulsar super-user permissions." - return mcp.NewTool("pulsar_admin_broker_stats", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("allocator_name", - mcp.Description("The name of the allocator to get statistics for. Required only when resource=allocator_stats"), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_broker_stats", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildBrokerStatsHandler builds the Pulsar Admin Broker Stats handler function -func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsHandler(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsHandler(_ bool) builders.ToolHandlerFunc[pulsarAdminBrokerStatsInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminBrokerStatsInput) (*sdk.CallToolResult, any, error) { // Get Pulsar admin client session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } // Get required resource parameter - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError("Missing required parameter 'resource'. " + - "Please specify one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report."), nil + resource := input.Resource + if resource == "" { + return nil, nil, fmt.Errorf("missing required parameter 'resource'; please specify one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report") } // Process request based on resource type switch resource { case "monitoring_metrics": - return b.handleMonitoringMetrics(client) + result, handlerErr := b.handleMonitoringMetrics(client) + return result, nil, handlerErr case "mbeans": - return b.handleMBeans(client) + result, handlerErr := b.handleMBeans(client) + return result, nil, handlerErr case "topics": - return b.handleTopics(client) + result, handlerErr := b.handleTopics(client) + return result, nil, handlerErr case "allocator_stats": - allocatorName, err := request.RequireString("allocator_name") - if err != nil { - return mcp.NewToolResultError("Missing required parameter 'allocator_name' for allocator_stats resource. " + - "Please provide the name of the allocator to get statistics for."), nil + allocatorName := "" + if input.AllocatorName != nil { + allocatorName = *input.AllocatorName + } + if allocatorName == "" { + return nil, nil, fmt.Errorf("missing required parameter 'allocator_name' for allocator_stats resource; please provide the name of the allocator to get statistics for") } - return b.handleAllocatorStats(client, allocatorName) + result, handlerErr := b.handleAllocatorStats(client, allocatorName) + return result, nil, handlerErr case "load_report": - return b.handleLoadReport(client) + result, handlerErr := b.handleLoadReport(client) + return result, nil, handlerErr default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report.", resource)), nil + return nil, nil, fmt.Errorf("unsupported resource: %s. please use one of: monitoring_metrics, mbeans, topics, allocator_stats, load_report", resource) } } } @@ -156,62 +173,84 @@ func (b *PulsarAdminBrokerStatsToolBuilder) buildBrokerStatsHandler(_ bool) func // Utility functions // handleError provides unified error handling -func (b *PulsarAdminBrokerStatsToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminBrokerStatsToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminBrokerStatsToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Specific operation handler functions // handleMonitoringMetrics handles retrieving monitoring metrics -func (b *PulsarAdminBrokerStatsToolBuilder) handleMonitoringMetrics(client cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) handleMonitoringMetrics(client cmdutils.Client) (*sdk.CallToolResult, error) { stats, err := client.BrokerStats().GetMetrics() if err != nil { - return b.handleError("get monitoring metrics", err), nil + return nil, b.handleError("get monitoring metrics", err) } return b.marshalResponse(stats) } // handleMBeans handles retrieving MBeans statistics -func (b *PulsarAdminBrokerStatsToolBuilder) handleMBeans(client cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) handleMBeans(client cmdutils.Client) (*sdk.CallToolResult, error) { stats, err := client.BrokerStats().GetMBeans() if err != nil { - return b.handleError("get MBeans", err), nil + return nil, b.handleError("get MBeans", err) } return b.marshalResponse(stats) } // handleTopics handles retrieving topics statistics -func (b *PulsarAdminBrokerStatsToolBuilder) handleTopics(client cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) handleTopics(client cmdutils.Client) (*sdk.CallToolResult, error) { stats, err := client.BrokerStats().GetTopics() if err != nil { - return b.handleError("get topics stats", err), nil + return nil, b.handleError("get topics stats", err) } return b.marshalResponse(stats) } // handleAllocatorStats handles retrieving allocator statistics -func (b *PulsarAdminBrokerStatsToolBuilder) handleAllocatorStats(client cmdutils.Client, allocatorName string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) handleAllocatorStats(client cmdutils.Client, allocatorName string) (*sdk.CallToolResult, error) { stats, err := client.BrokerStats().GetAllocatorStats(allocatorName) if err != nil { - return b.handleError("get allocator stats", err), nil + return nil, b.handleError("get allocator stats", err) } return b.marshalResponse(stats) } // handleLoadReport handles retrieving load report -func (b *PulsarAdminBrokerStatsToolBuilder) handleLoadReport(client cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminBrokerStatsToolBuilder) handleLoadReport(client cmdutils.Client) (*sdk.CallToolResult, error) { stats, err := client.BrokerStats().GetLoadReport() if err != nil { - return b.handleError("get load report", err), nil + return nil, b.handleError("get load report", err) } return b.marshalResponse(stats) } + +func buildPulsarAdminBrokerStatsInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminBrokerStatsInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminBrokerStatsResourceDesc) + setSchemaDescription(schema, "allocator_name", pulsarAdminBrokerStatsAllocatorNameDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/pulsar/brokers_stats_legacy.go b/pkg/mcp/builders/pulsar/brokers_stats_legacy.go new file mode 100644 index 0000000..e12bdd3 --- /dev/null +++ b/pkg/mcp/builders/pulsar/brokers_stats_legacy.go @@ -0,0 +1,124 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminBrokerStatsLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar broker stats. +// /nolint:revive +type PulsarAdminBrokerStatsLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminBrokerStatsLegacyToolBuilder creates a new Pulsar admin broker stats legacy tool builder instance. +func NewPulsarAdminBrokerStatsLegacyToolBuilder() *PulsarAdminBrokerStatsLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_broker_stats", + Version: "1.0.0", + Description: "Pulsar Broker Statistics administration tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "broker", "stats", "admin", "monitoring"}, + } + + features := []string{ + "pulsar-admin-brokers-status", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminBrokerStatsLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin broker stats legacy tool list. +func (b *PulsarAdminBrokerStatsLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildBrokerStatsTool() + if err != nil { + return nil, err + } + handler := b.buildBrokerStatsHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminBrokerStatsLegacyToolBuilder) buildBrokerStatsTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminBrokerStatsInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Unified tool for retrieving Apache Pulsar broker statistics.\n" + + "This tool provides access to various broker stats resources, including:\n" + + "1. Monitoring metrics (resource=monitoring_metrics): Metrics for the broker's monitoring system\n" + + "2. MBean stats (resource=mbeans): JVM MBeans statistics\n" + + "3. Topics stats (resource=topics): Statistics about all topics managed by the broker\n" + + "4. Allocator stats (resource=allocator_stats): Memory allocator statistics for specific allocator\n" + + "5. Load report (resource=load_report): Broker load information, sometimes the load report is not available, so suggest to use other resources to get the broker metrics\n\n" + + "Example: {\"resource\": \"monitoring_metrics\"} retrieves all monitoring metrics\n" + + "Example: {\"resource\": \"allocator_stats\", \"allocator_name\": \"default\"} retrieves stats for the default allocator\n" + + "This tool requires Pulsar super-user permissions." + + return mcp.Tool{ + Name: "pulsar_admin_broker_stats", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminBrokerStatsLegacyToolBuilder) buildBrokerStatsHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminBrokerStatsToolBuilder() + sdkHandler := sdkBuilder.buildBrokerStatsHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminBrokerStatsInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/brokers_stats_test.go b/pkg/mcp/builders/pulsar/brokers_stats_test.go new file mode 100644 index 0000000..36a4ca7 --- /dev/null +++ b/pkg/mcp/builders/pulsar/brokers_stats_test.go @@ -0,0 +1,116 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminBrokerStatsToolBuilder(t *testing.T) { + builder := NewPulsarAdminBrokerStatsToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_broker_stats", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-brokers-status") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-brokers-status"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_broker_stats", tools[0].Definition().Name) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-brokers-status"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-brokers-status"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminBrokerStatsToolSchema(t *testing.T) { + builder := NewPulsarAdminBrokerStatsToolBuilder() + tool, err := builder.buildBrokerStatsTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_broker_stats", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{"resource", "allocator_name"} + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminBrokerStatsResourceDesc, resourceSchema.Description) + + allocatorSchema := schema.Properties["allocator_name"] + require.NotNil(t, allocatorSchema) + assert.Equal(t, pulsarAdminBrokerStatsAllocatorNameDesc, allocatorSchema.Description) +} diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools.go b/pkg/mcp/pulsar_admin_brokers_stats_tools.go index d50b398..80f3aee 100644 --- a/pkg/mcp/pulsar_admin_brokers_stats_tools.go +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddBrokerStatsTools adds broker-stats related tools to the MCP server -func PulsarAdminAddBrokerStatsTools(s *server.MCPServer, readOnly bool, features []string) { +func PulsarAdminAddBrokerStatsTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminBrokerStatsToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func PulsarAdminAddBrokerStatsTools(s *server.MCPServer, readOnly bool, features // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_brokers_stats_tools_legacy.go b/pkg/mcp/pulsar_admin_brokers_stats_tools_legacy.go new file mode 100644 index 0000000..78f164b --- /dev/null +++ b/pkg/mcp/pulsar_admin_brokers_stats_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddBrokerStatsToolsLegacy registers Pulsar admin broker stats tools for the legacy server. +func PulsarAdminAddBrokerStatsToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminBrokerStatsLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From b05eaadbd8bc032e56f300652d4fbf340fd89b61 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 11:48:12 +0800 Subject: [PATCH 62/85] feat: migrate functions worker tool to go-sdk Use the go-sdk tool builder with jsonschema input, add a legacy adapter for the mark3labs server, and cover schema expectations with tests. --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/functions_worker.go | 151 +++++++++++------- .../pulsar/functions_worker_legacy.go | 113 +++++++++++++ .../builders/pulsar/functions_worker_test.go | 112 +++++++++++++ .../pulsar_admin_functions_worker_tools.go | 29 ++-- ...sar_admin_functions_worker_tools_legacy.go | 41 +++++ 6 files changed, 370 insertions(+), 78 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/functions_worker_legacy.go create mode 100644 pkg/mcp/builders/pulsar/functions_worker_test.go create mode 100644 pkg/mcp/pulsar_admin_functions_worker_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 1efa6ba..9ad4af1 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -117,7 +117,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddBrokersToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddBrokerStatsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddClusterToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddFunctionsWorkerTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddFunctionsWorkerToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespaceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespacePolicyTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/functions_worker.go b/pkg/mcp/builders/pulsar/functions_worker.go index d244585..9475b81 100644 --- a/pkg/mcp/builders/pulsar/functions_worker.go +++ b/pkg/mcp/builders/pulsar/functions_worker.go @@ -19,13 +19,34 @@ import ( "encoding/json" "fmt" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminFunctionsWorkerInput struct { + Resource string `json:"resource"` +} + +const ( + pulsarAdminFunctionsWorkerToolDesc = "Unified tool for managing Apache Pulsar Functions Worker resources. " + + "Pulsar Functions is a serverless compute framework that allows you to process messages in a streaming fashion. " + + "The Functions Worker is the runtime environment that executes and manages Pulsar Functions. " + + "This tool provides comprehensive access to functions worker resources including function statistics, " + + "monitoring metrics, cluster information, leader election status, and function assignments across the cluster. " + + "Functions workers can be deployed in multiple modes (standalone, cluster) and this tool helps monitor " + + "and manage the worker cluster state, performance metrics, and function distribution. " + + "Most operations require Pulsar super-user permissions for security reasons." + pulsarAdminFunctionsWorkerResourceDesc = "Type of functions worker resource to access. Available resources:\n" + + "- function_stats: Statistics for all functions running on the functions worker, including processing rates, error counts, and resource usage\n" + + "- monitoring_metrics: Comprehensive metrics for monitoring function workers, including JVM metrics, resource utilization, and performance indicators\n" + + "- cluster: Information about all workers in the functions worker cluster, including their status, capabilities, and workload distribution\n" + + "- cluster_leader: Information about the leader of the functions worker cluster, essential for understanding cluster coordination\n" + + "- function_assignments: Current assignments of functions across the functions worker cluster, showing which functions are running on which workers" +) + // PulsarAdminFunctionsWorkerToolBuilder implements the ToolBuilder interface for Pulsar Admin Functions Worker tools // It provides functionality to build Pulsar functions worker monitoring and management tools // /nolint:revive @@ -57,7 +78,7 @@ func NewPulsarAdminFunctionsWorkerToolBuilder() *PulsarAdminFunctionsWorkerToolB // BuildTools builds the Pulsar Admin Functions Worker tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarAdminFunctionsWorkerToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -69,11 +90,14 @@ func (b *PulsarAdminFunctionsWorkerToolBuilder) BuildTools(_ context.Context, co } // Build tools - tool := b.buildFunctionsWorkerTool() + tool, err := b.buildFunctionsWorkerTool() + if err != nil { + return nil, err + } handler := b.buildFunctionsWorkerHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminFunctionsWorkerInput, any]{ Tool: tool, Handler: handler, }, @@ -82,69 +106,60 @@ func (b *PulsarAdminFunctionsWorkerToolBuilder) BuildTools(_ context.Context, co // buildFunctionsWorkerTool builds the Pulsar Admin Functions Worker MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarAdminFunctionsWorkerToolBuilder) buildFunctionsWorkerTool() mcp.Tool { - toolDesc := "Unified tool for managing Apache Pulsar Functions Worker resources. " + - "Pulsar Functions is a serverless compute framework that allows you to process messages in a streaming fashion. " + - "The Functions Worker is the runtime environment that executes and manages Pulsar Functions. " + - "This tool provides comprehensive access to functions worker resources including function statistics, " + - "monitoring metrics, cluster information, leader election status, and function assignments across the cluster. " + - "Functions workers can be deployed in multiple modes (standalone, cluster) and this tool helps monitor " + - "and manage the worker cluster state, performance metrics, and function distribution. " + - "Most operations require Pulsar super-user permissions for security reasons." - - resourceDesc := "Type of functions worker resource to access. Available resources:\\n" + - "- function_stats: Statistics for all functions running on the functions worker, including processing rates, error counts, and resource usage\\n" + - "- monitoring_metrics: Comprehensive metrics for monitoring function workers, including JVM metrics, resource utilization, and performance indicators\\n" + - "- cluster: Information about all workers in the functions worker cluster, including their status, capabilities, and workload distribution\\n" + - "- cluster_leader: Information about the leader of the functions worker cluster, essential for understanding cluster coordination\\n" + - "- function_assignments: Current assignments of functions across the functions worker cluster, showing which functions are running on which workers" +func (b *PulsarAdminFunctionsWorkerToolBuilder) buildFunctionsWorkerTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminFunctionsWorkerInputSchema() + if err != nil { + return nil, err + } - return mcp.NewTool("pulsar_admin_functions_worker", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_functions_worker", + Description: pulsarAdminFunctionsWorkerToolDesc, + InputSchema: inputSchema, + }, nil } // buildFunctionsWorkerHandler builds the Pulsar Admin Functions Worker handler function // Migrated from the original handler logic -func (b *PulsarAdminFunctionsWorkerToolBuilder) buildFunctionsWorkerHandler(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) buildFunctionsWorkerHandler(_ bool) builders.ToolHandlerFunc[pulsarAdminFunctionsWorkerInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminFunctionsWorkerInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Create the admin client admin, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, b.handleError("get admin client", err) } // Get required resource parameter - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError("Missing required parameter 'resource'. " + - "Please specify one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments"), nil + resource := input.Resource + if resource == "" { + return nil, nil, fmt.Errorf("missing required parameter 'resource'; please specify one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments") } // Process request based on resource type switch resource { case "function_stats": - return b.handleFunctionsWorkerFunctionStats(admin) + result, handlerErr := b.handleFunctionsWorkerFunctionStats(admin) + return result, nil, handlerErr case "monitoring_metrics": - return b.handleFunctionsWorkerMonitoringMetrics(admin) + result, handlerErr := b.handleFunctionsWorkerMonitoringMetrics(admin) + return result, nil, handlerErr case "cluster": - return b.handleFunctionsWorkerGetCluster(admin) + result, handlerErr := b.handleFunctionsWorkerGetCluster(admin) + return result, nil, handlerErr case "cluster_leader": - return b.handleFunctionsWorkerGetClusterLeader(admin) + result, handlerErr := b.handleFunctionsWorkerGetClusterLeader(admin) + return result, nil, handlerErr case "function_assignments": - return b.handleFunctionsWorkerGetFunctionAssignments(admin) + result, handlerErr := b.handleFunctionsWorkerGetFunctionAssignments(admin) + return result, nil, handlerErr default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported resource: %s. "+ - "Please use one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments", resource)), nil + return nil, nil, fmt.Errorf("unsupported resource: %s. please use one of: function_stats, monitoring_metrics, cluster, cluster_leader, function_assignments", resource) } } } @@ -152,72 +167,92 @@ func (b *PulsarAdminFunctionsWorkerToolBuilder) buildFunctionsWorkerHandler(_ bo // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarAdminFunctionsWorkerToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarAdminFunctionsWorkerToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Operation handler functions - migrated from the original implementation // handleFunctionsWorkerFunctionStats handles retrieving function statistics -func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerFunctionStats(admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerFunctionStats(admin cmdutils.Client) (*sdk.CallToolResult, error) { // Get function stats stats, err := admin.FunctionsWorker().GetFunctionsStats() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get functions stats: %v", err)), nil + return nil, b.handleError("get functions stats", err) } return b.marshalResponse(stats) } // handleFunctionsWorkerMonitoringMetrics handles retrieving monitoring metrics -func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerMonitoringMetrics(admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerMonitoringMetrics(admin cmdutils.Client) (*sdk.CallToolResult, error) { // Get monitoring metrics metrics, err := admin.FunctionsWorker().GetMetrics() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get monitoring metrics: %v", err)), nil + return nil, b.handleError("get monitoring metrics", err) } return b.marshalResponse(metrics) } // handleFunctionsWorkerGetCluster handles retrieving cluster information -func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetCluster(admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetCluster(admin cmdutils.Client) (*sdk.CallToolResult, error) { // Get cluster info cluster, err := admin.FunctionsWorker().GetCluster() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster: %v", err)), nil + return nil, b.handleError("get worker cluster", err) } return b.marshalResponse(cluster) } // handleFunctionsWorkerGetClusterLeader handles retrieving cluster leader information -func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetClusterLeader(admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetClusterLeader(admin cmdutils.Client) (*sdk.CallToolResult, error) { // Get cluster leader leader, err := admin.FunctionsWorker().GetClusterLeader() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get worker cluster leader: %v", err)), nil + return nil, b.handleError("get worker cluster leader", err) } return b.marshalResponse(leader) } // handleFunctionsWorkerGetFunctionAssignments handles retrieving function assignments -func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetFunctionAssignments(admin cmdutils.Client) (*mcp.CallToolResult, error) { +func (b *PulsarAdminFunctionsWorkerToolBuilder) handleFunctionsWorkerGetFunctionAssignments(admin cmdutils.Client) (*sdk.CallToolResult, error) { // Get function assignments assignments, err := admin.FunctionsWorker().GetAssignments() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get function assignments: %v", err)), nil + return nil, b.handleError("get function assignments", err) } return b.marshalResponse(assignments) } + +func buildPulsarAdminFunctionsWorkerInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminFunctionsWorkerInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminFunctionsWorkerResourceDesc) + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/pulsar/functions_worker_legacy.go b/pkg/mcp/builders/pulsar/functions_worker_legacy.go new file mode 100644 index 0000000..fe0a1bc --- /dev/null +++ b/pkg/mcp/builders/pulsar/functions_worker_legacy.go @@ -0,0 +1,113 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminFunctionsWorkerLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar functions worker tools. +// /nolint:revive +type PulsarAdminFunctionsWorkerLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminFunctionsWorkerLegacyToolBuilder creates a new Pulsar admin functions worker legacy tool builder instance. +func NewPulsarAdminFunctionsWorkerLegacyToolBuilder() *PulsarAdminFunctionsWorkerLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_functions_worker", + Version: "1.0.0", + Description: "Pulsar Admin functions worker management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "functions", "worker", "admin", "monitoring"}, + } + + features := []string{ + "pulsar-admin-functions-worker", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminFunctionsWorkerLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin functions worker legacy tool list. +func (b *PulsarAdminFunctionsWorkerLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildFunctionsWorkerTool() + if err != nil { + return nil, err + } + handler := b.buildFunctionsWorkerHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminFunctionsWorkerLegacyToolBuilder) buildFunctionsWorkerTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminFunctionsWorkerInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + return mcp.Tool{ + Name: "pulsar_admin_functions_worker", + Description: pulsarAdminFunctionsWorkerToolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminFunctionsWorkerLegacyToolBuilder) buildFunctionsWorkerHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminFunctionsWorkerToolBuilder() + sdkHandler := sdkBuilder.buildFunctionsWorkerHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminFunctionsWorkerInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/functions_worker_test.go b/pkg/mcp/builders/pulsar/functions_worker_test.go new file mode 100644 index 0000000..9232d1f --- /dev/null +++ b/pkg/mcp/builders/pulsar/functions_worker_test.go @@ -0,0 +1,112 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminFunctionsWorkerToolBuilder(t *testing.T) { + builder := NewPulsarAdminFunctionsWorkerToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_functions_worker", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-functions-worker") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-functions-worker"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_functions_worker", tools[0].Definition().Name) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-functions-worker"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-functions-worker"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminFunctionsWorkerToolSchema(t *testing.T) { + builder := NewPulsarAdminFunctionsWorkerToolBuilder() + tool, err := builder.buildFunctionsWorkerTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_functions_worker", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{"resource"} + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminFunctionsWorkerResourceDesc, resourceSchema.Description) +} diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools.go b/pkg/mcp/pulsar_admin_functions_worker_tools.go index 1a4a428..7a83252 100644 --- a/pkg/mcp/pulsar_admin_functions_worker_tools.go +++ b/pkg/mcp/pulsar_admin_functions_worker_tools.go @@ -16,16 +16,16 @@ package mcp import ( "context" - "fmt" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" - pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarAdminFunctionsWorkerTools creates Pulsar Admin Functions Worker tool list using the new builder pattern -func PulsarAdminFunctionsWorkerTools(readOnly bool, features []string) []server.ServerTool { - builder := pulsarBuilders.NewPulsarAdminFunctionsWorkerToolBuilder() +// PulsarAdminAddFunctionsWorkerTools adds functions worker-related tools to the MCP server. +func PulsarAdminAddFunctionsWorkerTools(s *sdk.Server, readOnly bool, features []string) { + // Use the new builder pattern + builder := pulsarbuilders.NewPulsarAdminFunctionsWorkerToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, Features: features, @@ -33,21 +33,12 @@ func PulsarAdminFunctionsWorkerTools(readOnly bool, features []string) []server. tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - fmt.Printf("Failed to build Pulsar Admin Functions Worker tools: %v\n", err) - return nil + // Log error but don't fail - this maintains backward compatibility + return } - return tools -} - -// PulsarAdminAddFunctionsWorkerTools adds functions worker-related tools to the MCP server -func PulsarAdminAddFunctionsWorkerTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarAdminFunctionsWorkerTools(readOnly, features) - + // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } - -// handleFunctionsWorkerTool returns a function to handle functions worker tool requests diff --git a/pkg/mcp/pulsar_admin_functions_worker_tools_legacy.go b/pkg/mcp/pulsar_admin_functions_worker_tools_legacy.go new file mode 100644 index 0000000..d7429a8 --- /dev/null +++ b/pkg/mcp/pulsar_admin_functions_worker_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddFunctionsWorkerToolsLegacy adds functions worker-related tools to the legacy MCP server. +func PulsarAdminAddFunctionsWorkerToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminFunctionsWorkerLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 8f58542494bde903f9effd183b42c49e5cfa4926 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 12:06:15 +0800 Subject: [PATCH 63/85] feat: migrate namespace policy tools to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/namespace_policy.go | 647 ++++++++++-------- .../pulsar/namespace_policy_legacy.go | 208 ++++++ .../builders/pulsar/namespace_policy_test.go | 166 +++++ .../pulsar_admin_namespace_policy_tools.go | 6 +- ...sar_admin_namespace_policy_tools_legacy.go | 41 ++ 6 files changed, 790 insertions(+), 280 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/namespace_policy_legacy.go create mode 100644 pkg/mcp/builders/pulsar/namespace_policy_test.go create mode 100644 pkg/mcp/pulsar_admin_namespace_policy_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 9ad4af1..af943e8 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -119,7 +119,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddClusterToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsWorkerToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespaceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddNamespacePolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNamespacePolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/namespace_policy.go b/pkg/mcp/builders/pulsar/namespace_policy.go index 3410dff..dbfaec6 100644 --- a/pkg/mcp/builders/pulsar/namespace_policy.go +++ b/pkg/mcp/builders/pulsar/namespace_policy.go @@ -22,90 +22,43 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" pulsarctlutils "github.com/streamnative/pulsarctl/pkg/ctl/utils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) -// PulsarAdminNamespacePolicyToolBuilder implements the ToolBuilder interface for Pulsar admin namespace policies -// /nolint:revive -type PulsarAdminNamespacePolicyToolBuilder struct { - *builders.BaseToolBuilder +type pulsarAdminNamespacePolicyGetInput struct { + Namespace string `json:"namespace"` } -// NewPulsarAdminNamespacePolicyToolBuilder creates a new Pulsar admin namespace policy tool builder instance -func NewPulsarAdminNamespacePolicyToolBuilder() *PulsarAdminNamespacePolicyToolBuilder { - metadata := builders.ToolMetadata{ - Name: "pulsar_admin_namespace_policy", - Version: "1.0.0", - Description: "Pulsar admin namespace policy management tools", - Category: "pulsar_admin", - Tags: []string{"pulsar", "admin", "namespace_policy"}, - } - - features := []string{ - "pulsar-admin-namespace-policy", - "all", - "all-pulsar", - "pulsar-admin", - } - - return &PulsarAdminNamespacePolicyToolBuilder{ - BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), - } +type pulsarAdminNamespacePolicySetInput struct { + Namespace string `json:"namespace"` + Policy string `json:"policy"` + Role *string `json:"role,omitempty"` + Actions []string `json:"actions,omitempty"` + Clusters []string `json:"clusters,omitempty"` + Roles []string `json:"roles,omitempty"` + TTL *string `json:"ttl,omitempty"` + Time *string `json:"time,omitempty"` + Size *string `json:"size,omitempty"` + LimitSize *string `json:"limit-size,omitempty"` + LimitTime *string `json:"limit-time,omitempty"` + Type *string `json:"type,omitempty"` } -// BuildTools builds the Pulsar admin namespace policy tool list -func (b *PulsarAdminNamespacePolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { - // Check features - return empty list if no required features are present - if !b.HasAnyRequiredFeature(config.Features) { - return nil, nil - } - - // Validate configuration (only validate when matching features are present) - if err := b.Validate(config); err != nil { - return nil, err - } - - // Build tools - tools := []server.ServerTool{} - - // Always add get policies tool - getTool := b.buildNamespaceGetPoliciesTool() - getHandler := b.buildNamespaceGetPoliciesHandler() - tools = append(tools, server.ServerTool{ - Tool: getTool, - Handler: getHandler, - }) - - // Add write operations if not in read-only mode - if !config.ReadOnly { - // Add set policy tool - setTool := b.buildNamespaceSetPolicyTool() - setHandler := b.buildNamespaceSetPolicyHandler() - tools = append(tools, server.ServerTool{ - Tool: setTool, - Handler: setHandler, - }) - - // Add remove policy tool - removeTool := b.buildNamespaceRemovePolicyTool() - removeHandler := b.buildNamespaceRemovePolicyHandler() - tools = append(tools, server.ServerTool{ - Tool: removeTool, - Handler: removeHandler, - }) - } - - return tools, nil +type pulsarAdminNamespacePolicyRemoveInput struct { + Namespace string `json:"namespace"` + Policy string `json:"policy"` + Role *string `json:"role,omitempty"` + Subscription *string `json:"subscription,omitempty"` + Type *string `json:"type,omitempty"` } -// buildNamespaceGetPoliciesTool builds the get policies tool -func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceGetPoliciesTool() mcp.Tool { - toolDesc := "Get the configuration policies of a namespace. " + +const ( + pulsarAdminNamespacePolicyGetToolDesc = "Get the configuration policies of a namespace. " + "Returns a comprehensive view of all policies applied to the namespace. " + "The response includes the following fields:" + "\n* bundles: Namespace bundle configuration, including boundaries and number of bundles" + @@ -137,18 +90,7 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceGetPoliciesTool() "\n* subscription_auth_mode: Authentication mode for subscriptions" + "\n* is_allow_auto_update_schema: Whether automatic schema updates are allowed" + "\nRequires tenant admin permissions." - - return mcp.NewTool("pulsar_admin_namespace_policy_get", - mcp.WithDescription(toolDesc), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name (tenant/namespace) to get policies for"), - ), - ) -} - -// buildNamespaceSetPolicyTool builds the set policy tool -func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceSetPolicyTool() mcp.Tool { - toolDesc := "Set a policy for a namespace. " + + pulsarAdminNamespacePolicySetToolDesc = "Set a policy for a namespace. " + "This is a unified tool for setting different types of policies on a namespace. " + "The policy type determines which specific policy will be set, and the required parameters " + "vary based on the policy type. " + @@ -172,78 +114,7 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceSetPolicyTool() mc "max-consumers-per-subscription, anti-affinity-group, persistence, deduplication, encryption-required, " + "subscription-auth-mode, subscription-permission, dispatch-rate, replicator-dispatch-rate, subscribe-rate, " + "subscription-dispatch-rate, publish-rate" - - return mcp.NewTool("pulsar_admin_namespace_policy_set", - mcp.WithDescription(toolDesc), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name (tenant/namespace) to set the policy for"), - ), - mcp.WithString("policy", mcp.Required(), - mcp.Description("Type of policy to set. Available options: "+ - "message-ttl, retention, permission, replication-clusters, backlog-quota, "+ - "topic-auto-creation, schema-validation, schema-auto-update, auto-update-schema, "+ - "offload-threshold, offload-deletion-lag, compaction-threshold, "+ - "max-producers-per-topic, max-consumers-per-topic, max-consumers-per-subscription, "+ - "anti-affinity-group, persistence, deduplication, encryption-required, "+ - "subscription-auth-mode, subscription-permission, dispatch-rate, "+ - "replicator-dispatch-rate, subscribe-rate, subscription-dispatch-rate, publish-rate"), - ), - // Generic policy parameters - specific ones will be used based on the policy type - mcp.WithString("role", - mcp.Description("Role name for permission policies"), - ), - mcp.WithArray("actions", - mcp.Description("Actions to grant for permission policies (e.g., produce, consume)"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "action", - }, - ), - ), - mcp.WithArray("clusters", - mcp.Description("List of clusters for replication policies"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "cluster", - }, - ), - ), - mcp.WithArray("roles", - mcp.Description("List of roles for subscription permission policies"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "role", - }, - ), - ), - mcp.WithString("ttl", - mcp.Description("Message TTL in seconds (or 0 to disable TTL)"), - ), - mcp.WithString("time", - mcp.Description("Retention time in minutes, or special values: 0 (no retention) or -1 (infinite retention)"), - ), - mcp.WithString("size", - mcp.Description("Retention size limit (e.g., 10M, 16G, 3T), or special values: 0 (no retention) or -1 (infinite size retention)"), - ), - mcp.WithString("limit-size", - mcp.Description("Size limit for backlog quota (e.g., 10M, 16G)"), - ), - mcp.WithString("limit-time", - mcp.Description("Time limit in seconds for backlog quota. Default is -1 (infinite)"), - ), - mcp.WithString("policy", - mcp.Description("Retention policy for backlog quota (valid options: producer_request_hold, producer_exception, consumer_backlog_eviction)"), - ), - // Add more parameters as needed - ) -} - -// buildNamespaceRemovePolicyTool builds the remove policy tool -func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceRemovePolicyTool() mcp.Tool { - toolDesc := "Remove a policy from a namespace. " + + pulsarAdminNamespacePolicyRemoveToolDesc = "Remove a policy from a namespace. " + "This is a unified tool for removing different types of policies from a namespace. " + "The policy type determines which specific policy will be removed. " + "Requires appropriate admin permissions based on the policy being modified.\n\n" + @@ -262,180 +133,320 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceRemovePolicyTool() "6. subscription-permission: Revokes permission from a role to access a subscription\n" + " - Required: namespace, subscription, role" - return mcp.NewTool("pulsar_admin_namespace_policy_remove", - mcp.WithDescription(toolDesc), - mcp.WithString("namespace", mcp.Required(), - mcp.Description("The namespace name (tenant/namespace) to remove the policy from"), - ), - mcp.WithString("policy", mcp.Required(), - mcp.Description("Type of policy to remove. Available options: "+ - "backlog-quota, topic-auto-creation, offload-deletion-lag, anti-affinity-group, "+ - "permission, subscription-permission"), - ), - mcp.WithString("role", - mcp.Description("Role name for permission policies"), - ), - mcp.WithString("subscription", - mcp.Description("Subscription name for subscription permission policies"), - ), - mcp.WithString("type", - mcp.Description("Type of backlog quota to remove"), - ), - ) + pulsarAdminNamespacePolicyGetNamespaceDesc = "The namespace name (tenant/namespace) to get policies for" + pulsarAdminNamespacePolicySetNamespaceDesc = "The namespace name (tenant/namespace) to set the policy for" + pulsarAdminNamespacePolicySetPolicyDesc = "Type of policy to set. Available options: " + + "message-ttl, retention, permission, replication-clusters, backlog-quota, " + + "topic-auto-creation, schema-validation, schema-auto-update, auto-update-schema, " + + "offload-threshold, offload-deletion-lag, compaction-threshold, " + + "max-producers-per-topic, max-consumers-per-topic, max-consumers-per-subscription, " + + "anti-affinity-group, persistence, deduplication, encryption-required, " + + "subscription-auth-mode, subscription-permission, dispatch-rate, " + + "replicator-dispatch-rate, subscribe-rate, subscription-dispatch-rate, publish-rate" + pulsarAdminNamespacePolicySetRoleDesc = "Role name for permission policies" + pulsarAdminNamespacePolicySetActionsDesc = "Actions to grant for permission policies (e.g., produce, consume)" + pulsarAdminNamespacePolicySetClustersDesc = "List of clusters for replication policies" + pulsarAdminNamespacePolicySetRolesDesc = "List of roles for subscription permission policies" + pulsarAdminNamespacePolicySetTTLDesc = "Message TTL in seconds (or 0 to disable TTL)" + pulsarAdminNamespacePolicySetTimeDesc = "Retention time in minutes, or special values: 0 (no retention) or -1 (infinite retention)" + pulsarAdminNamespacePolicySetSizeDesc = "Retention size limit (e.g., 10M, 16G, 3T), or special values: 0 (no retention) or -1 (infinite size retention)" + pulsarAdminNamespacePolicySetLimitSizeDesc = "Size limit for backlog quota (e.g., 10M, 16G)" + pulsarAdminNamespacePolicySetLimitTimeDesc = "Time limit in seconds for backlog quota. Default is -1 (infinite)" + pulsarAdminNamespacePolicySetTypeDesc = "Type of backlog quota to apply" + pulsarAdminNamespacePolicyRemoveNamespaceDesc = "The namespace name (tenant/namespace) to remove the policy from" + pulsarAdminNamespacePolicyRemovePolicyDesc = "Type of policy to remove. Available options: " + + "backlog-quota, topic-auto-creation, offload-deletion-lag, anti-affinity-group, " + + "permission, subscription-permission" + pulsarAdminNamespacePolicyRemoveRoleDesc = "Role name for permission policies" + pulsarAdminNamespacePolicyRemoveSubscriptionDesc = "Subscription name for subscription permission policies" + pulsarAdminNamespacePolicyRemoveTypeDesc = "Type of backlog quota to remove" +) + +// PulsarAdminNamespacePolicyToolBuilder implements the ToolBuilder interface for Pulsar admin namespace policies +// /nolint:revive +type PulsarAdminNamespacePolicyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminNamespacePolicyToolBuilder creates a new Pulsar admin namespace policy tool builder instance +func NewPulsarAdminNamespacePolicyToolBuilder() *PulsarAdminNamespacePolicyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_namespace_policy", + Version: "1.0.0", + Description: "Pulsar admin namespace policy management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "namespace_policy"}, + } + + features := []string{ + "pulsar-admin-namespace-policy", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminNamespacePolicyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin namespace policy tool list +func (b *PulsarAdminNamespacePolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + tools := []builders.ToolDefinition{} + + getTool, err := b.buildNamespaceGetPoliciesTool() + if err != nil { + return nil, err + } + getHandler := b.buildNamespaceGetPoliciesHandler() + tools = append(tools, builders.ServerTool[pulsarAdminNamespacePolicyGetInput, any]{ + Tool: getTool, + Handler: getHandler, + }) + + if !config.ReadOnly { + setTool, err := b.buildNamespaceSetPolicyTool() + if err != nil { + return nil, err + } + setHandler := b.buildNamespaceSetPolicyHandler() + tools = append(tools, builders.ServerTool[pulsarAdminNamespacePolicySetInput, any]{ + Tool: setTool, + Handler: setHandler, + }) + + removeTool, err := b.buildNamespaceRemovePolicyTool() + if err != nil { + return nil, err + } + removeHandler := b.buildNamespaceRemovePolicyHandler() + tools = append(tools, builders.ServerTool[pulsarAdminNamespacePolicyRemoveInput, any]{ + Tool: removeTool, + Handler: removeHandler, + }) + } + + return tools, nil +} + +// buildNamespaceGetPoliciesTool builds the get policies tool +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceGetPoliciesTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminNamespacePolicyGetInputSchema() + if err != nil { + return nil, err + } + + return &sdk.Tool{ + Name: "pulsar_admin_namespace_policy_get", + Description: pulsarAdminNamespacePolicyGetToolDesc, + InputSchema: inputSchema, + }, nil +} + +// buildNamespaceSetPolicyTool builds the set policy tool +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceSetPolicyTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminNamespacePolicySetInputSchema() + if err != nil { + return nil, err + } + + return &sdk.Tool{ + Name: "pulsar_admin_namespace_policy_set", + Description: pulsarAdminNamespacePolicySetToolDesc, + InputSchema: inputSchema, + }, nil +} + +// buildNamespaceRemovePolicyTool builds the remove policy tool +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceRemovePolicyTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminNamespacePolicyRemoveInputSchema() + if err != nil { + return nil, err + } + + return &sdk.Tool{ + Name: "pulsar_admin_namespace_policy_remove", + Description: pulsarAdminNamespacePolicyRemoveToolDesc, + InputSchema: inputSchema, + }, nil } // buildNamespaceGetPoliciesHandler builds the get policies handler -func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceGetPoliciesHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceGetPoliciesHandler() builders.ToolHandlerFunc[pulsarAdminNamespacePolicyGetInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminNamespacePolicyGetInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + if input.Namespace == "" { + return nil, nil, fmt.Errorf("missing required parameter 'namespace'") } // Get policies - policies, err := client.Namespaces().GetPolicies(namespace) + policies, err := client.Namespaces().GetPolicies(input.Namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policies: %v", err)), nil + return nil, nil, b.handleError("get policies", err) } - return b.marshalResponse(policies) + result, err := b.marshalResponse(policies) + return result, nil, err } } // buildNamespaceSetPolicyHandler builds the set policy handler -func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceSetPolicyHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceSetPolicyHandler() builders.ToolHandlerFunc[pulsarAdminNamespacePolicySetInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminNamespacePolicySetInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + namespace := input.Namespace + if namespace == "" { + return nil, nil, fmt.Errorf("missing required parameter 'namespace'") } - policy, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + policy := input.Policy + if policy == "" { + return nil, nil, fmt.Errorf("missing required parameter 'policy'") } // Handle different policy types switch policy { case "message-ttl": - return b.handleSetMessageTTL(ctx, client, namespace, request) + result, handlerErr := b.handleSetMessageTTL(client, namespace, input) + return result, nil, handlerErr case "retention": - return b.handleSetRetention(ctx, client, namespace, request) + result, handlerErr := b.handleSetRetention(client, namespace, input) + return result, nil, handlerErr case "permission": - return b.handleGrantPermission(ctx, client, namespace, request) + result, handlerErr := b.handleGrantPermission(client, namespace, input) + return result, nil, handlerErr case "replication-clusters": - return b.handleSetReplicationClusters(ctx, client, namespace, request) + result, handlerErr := b.handleSetReplicationClusters(client, namespace, input) + return result, nil, handlerErr case "backlog-quota": - return b.handleSetBacklogQuota(ctx, client, namespace, request) - // Add more policy types as needed + result, handlerErr := b.handleSetBacklogQuota(client, namespace, input) + return result, nil, handlerErr default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported policy type: %s", policy)), nil + return nil, nil, fmt.Errorf("unsupported policy type: %s", policy) } } } // buildNamespaceRemovePolicyHandler builds the remove policy handler -func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceRemovePolicyHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNamespacePolicyToolBuilder) buildNamespaceRemovePolicyHandler() builders.ToolHandlerFunc[pulsarAdminNamespacePolicyRemoveInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminNamespacePolicyRemoveInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } - namespace, err := request.RequireString("namespace") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace name: %v", err)), nil + namespace := input.Namespace + if namespace == "" { + return nil, nil, fmt.Errorf("missing required parameter 'namespace'") } - policy, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy type: %v", err)), nil + policy := input.Policy + if policy == "" { + return nil, nil, fmt.Errorf("missing required parameter 'policy'") } // Handle different policy types switch policy { case "permission": - return b.handleRevokePermission(ctx, client, namespace, request) + result, handlerErr := b.handleRevokePermission(client, namespace, input) + return result, nil, handlerErr case "backlog-quota": - return b.handleRemoveBacklogQuota(ctx, client, namespace, request) - // Add more policy types as needed + result, handlerErr := b.handleRemoveBacklogQuota(client, namespace) + return result, nil, handlerErr default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported policy type for removal: %s", policy)), nil + return nil, nil, fmt.Errorf("unsupported policy type for removal: %s", policy) } } } // Utility functions -func (b *PulsarAdminNamespacePolicyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminNamespacePolicyToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } -func (b *PulsarAdminNamespacePolicyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNamespacePolicyToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // Policy-specific handler functions // handleSetMessageTTL handles setting message TTL for a namespace -func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetMessageTTL(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - ttlStr, err := request.RequireString("ttl") +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetMessageTTL(client cmdutils.Client, namespace string, input pulsarAdminNamespacePolicySetInput) (*sdk.CallToolResult, error) { + ttlStr, err := requireString(input.TTL, "ttl") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get TTL: %v", err)), nil + return nil, fmt.Errorf("failed to get TTL: %v", err) } ttl, err := strconv.ParseInt(ttlStr, 10, 64) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid TTL value, must be an integer: %v", err)), nil + return nil, fmt.Errorf("invalid TTL value, must be an integer: %v", err) } // Set message TTL err = client.Namespaces().SetNamespaceMessageTTL(namespace, int(ttl)) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set message TTL: %v", err)), nil + return nil, fmt.Errorf("failed to set message TTL: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("Set message TTL for %s to %d seconds", namespace, ttl)), nil + return textResult(fmt.Sprintf("Set message TTL for %s to %d seconds", namespace, ttl)), nil } // handleSetRetention handles setting retention for a namespace -func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetRetention(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - timeStr := request.GetString("time", "") - sizeStr := request.GetString("size", "") +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetRetention(client cmdutils.Client, namespace string, input pulsarAdminNamespacePolicySetInput) (*sdk.CallToolResult, error) { + timeStr := "" + if input.Time != nil { + timeStr = *input.Time + } + + sizeStr := "" + if input.Size != nil { + sizeStr = *input.Size + } if timeStr == "" && sizeStr == "" { - return mcp.NewToolResultError("At least one of 'time' or 'size' must be specified"), nil + return nil, fmt.Errorf("at least one of 'time' or 'size' must be specified") } // Parse retention time @@ -444,7 +455,7 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetRetention(_ context.Con // Parse relative time in seconds from the input string retentionTime, err := pulsarctlutils.ParseRelativeTimeInSeconds(timeStr) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid retention time format: %v", err)), nil + return nil, fmt.Errorf("invalid retention time format: %v", err) } if retentionTime != -1 { @@ -466,14 +477,14 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetRetention(_ context.Con // Parse size string (e.g., "10M", "16G", "3T") sizeInBytes, err := pulsarctlutils.ValidateSizeString(sizeStr) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid retention size format: %v", err)), nil + return nil, fmt.Errorf("invalid retention size format: %v", err) } if sizeInBytes != -1 { // Convert bytes to MB retentionSizeInMB = int(sizeInBytes / (1024 * 1024)) if retentionSizeInMB < 1 { - return mcp.NewToolResultError("Retention size must be at least 1MB"), nil + return nil, fmt.Errorf("retention size must be at least 1MB") } } else { retentionSizeInMB = -1 // Infinite size retention @@ -489,122 +500,128 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetRetention(_ context.Con // Set retention err := client.Namespaces().SetRetention(namespace, retention) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set retention: %v", err)), nil + return nil, fmt.Errorf("failed to set retention: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("Set retention for %s successfully", namespace)), nil + return textResult(fmt.Sprintf("Set retention for %s successfully", namespace)), nil } // handleGrantPermission handles granting permissions on a namespace -func (b *PulsarAdminNamespacePolicyToolBuilder) handleGrantPermission(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - role, err := request.RequireString("role") +func (b *PulsarAdminNamespacePolicyToolBuilder) handleGrantPermission(client cmdutils.Client, namespace string, input pulsarAdminNamespacePolicySetInput) (*sdk.CallToolResult, error) { + role, err := requireString(input.Role, "role") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + return nil, fmt.Errorf("failed to get role: %v", err) } - actions, err := request.RequireStringSlice("actions") + actions, err := requireStringSlice(input.Actions, "actions") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get actions: %v", err)), nil + return nil, fmt.Errorf("failed to get actions: %v", err) } ns, err := utils.GetNamespaceName(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + return nil, fmt.Errorf("invalid namespace name: %v", err) } a, err := b.parseActions(actions) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse actions: %v", err)), nil + return nil, fmt.Errorf("failed to parse actions: %v", err) } // Grant permissions err = client.Namespaces().GrantNamespacePermission(*ns, role, a) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to grant permission: %v", err)), nil + return nil, fmt.Errorf("failed to grant permission: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("Granted %v permission(s) to role %s on %s", actions, role, namespace)), nil + return textResult(fmt.Sprintf("Granted %v permission(s) to role %s on %s", actions, role, namespace)), nil } // handleRevokePermission handles revoking permissions from a namespace -func (b *PulsarAdminNamespacePolicyToolBuilder) handleRevokePermission(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - role, err := request.RequireString("role") +func (b *PulsarAdminNamespacePolicyToolBuilder) handleRevokePermission(client cmdutils.Client, namespace string, input pulsarAdminNamespacePolicyRemoveInput) (*sdk.CallToolResult, error) { + role, err := requireString(input.Role, "role") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get role: %v", err)), nil + return nil, fmt.Errorf("failed to get role: %v", err) } ns, err := utils.GetNamespaceName(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name: %v", err)), nil + return nil, fmt.Errorf("invalid namespace name: %v", err) } // Revoke permissions err = client.Namespaces().RevokeNamespacePermission(*ns, role) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to revoke permission: %v", err)), nil + return nil, fmt.Errorf("failed to revoke permission: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("Revoked all permissions from role %s on %s", role, namespace)), nil + return textResult(fmt.Sprintf("Revoked all permissions from role %s on %s", role, namespace)), nil } // handleSetReplicationClusters handles setting replication clusters for a namespace -func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetReplicationClusters(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - clusters, err := request.RequireStringSlice("clusters") +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetReplicationClusters(client cmdutils.Client, namespace string, input pulsarAdminNamespacePolicySetInput) (*sdk.CallToolResult, error) { + clusters, err := requireStringSlice(input.Clusters, "clusters") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get clusters: %v", err)), nil + return nil, fmt.Errorf("failed to get clusters: %v", err) } if len(clusters) == 0 { - return mcp.NewToolResultError("At least one cluster must be specified"), nil + return nil, fmt.Errorf("at least one cluster must be specified") } // Set replication clusters err = client.Namespaces().SetNamespaceReplicationClusters(namespace, clusters) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set replication clusters: %v", err)), nil + return nil, fmt.Errorf("failed to set replication clusters: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("Set replication clusters for %s to %s", namespace, strings.Join(clusters, ", "))), nil + return textResult(fmt.Sprintf("Set replication clusters for %s to %s", namespace, strings.Join(clusters, ", "))), nil } // handleSetBacklogQuota handles setting backlog quota for a namespace -func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetBacklogQuota(_ context.Context, client cmdutils.Client, namespace string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - limitSizeStr, err := request.RequireString("limit-size") +func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetBacklogQuota(client cmdutils.Client, namespace string, input pulsarAdminNamespacePolicySetInput) (*sdk.CallToolResult, error) { + limitSizeStr, err := requireString(input.LimitSize, "limit-size") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get limit size: %v", err)), nil + return nil, fmt.Errorf("failed to get limit size: %v", err) } - policyStr, err := request.RequireString("policy") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get policy: %v", err)), nil + policyStr := input.Policy + if policyStr == "" { + return nil, fmt.Errorf("failed to get policy: required argument \"policy\" not found") } // Parse backlog size limit limitSize, err := pulsarctlutils.ValidateSizeString(limitSizeStr) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid limit size format: %v", err)), nil + return nil, fmt.Errorf("invalid limit size format: %v", err) } // Parse backlog quota policy using the ParseRetentionPolicy function policy, err := utils.ParseRetentionPolicy(policyStr) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid backlog quota policy: %s. Valid options: producer_request_hold, producer_exception, consumer_backlog_eviction", policyStr)), nil + return nil, fmt.Errorf("invalid backlog quota policy: %s. Valid options: producer_request_hold, producer_exception, consumer_backlog_eviction", policyStr) } // Get optional time limit - limitTimeStr := request.GetString("limit-time", "-1") + limitTimeStr := "-1" + if input.LimitTime != nil { + limitTimeStr = *input.LimitTime + } limitTime, err := strconv.ParseInt(limitTimeStr, 10, 64) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid limit time: %v", err)), nil + return nil, fmt.Errorf("invalid limit time: %v", err) } // Parse quota type (optional, default to destination_storage) - quotaTypeStr := request.GetString("type", "destination_storage") - quotaType := utils.DestinationStorage // Default + quotaTypeStr := "destination_storage" + if input.Type != nil && *input.Type != "" { + quotaTypeStr = *input.Type + } + quotaType := utils.DestinationStorage if quotaTypeStr != "" { parsedType, err := utils.ParseBacklogQuotaType(quotaTypeStr) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid backlog quota type: %v", err)), nil + return nil, fmt.Errorf("invalid backlog quota type: %v", err) } quotaType = parsedType } @@ -613,21 +630,21 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) handleSetBacklogQuota(_ context. backlogQuota := utils.NewBacklogQuota(limitSize, limitTime, policy) err = client.Namespaces().SetBacklogQuota(namespace, backlogQuota, quotaType) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set backlog quota: %v", err)), nil + return nil, fmt.Errorf("failed to set backlog quota: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("Set backlog quota for %s successfully", namespace)), nil + return textResult(fmt.Sprintf("Set backlog quota for %s successfully", namespace)), nil } // handleRemoveBacklogQuota handles removing backlog quota for a namespace -func (b *PulsarAdminNamespacePolicyToolBuilder) handleRemoveBacklogQuota(_ context.Context, client cmdutils.Client, namespace string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNamespacePolicyToolBuilder) handleRemoveBacklogQuota(client cmdutils.Client, namespace string) (*sdk.CallToolResult, error) { // Remove backlog quota (API doesn't require quota type for removal) err := client.Namespaces().RemoveBacklogQuota(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to remove backlog quota: %v", err)), nil + return nil, fmt.Errorf("failed to remove backlog quota: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("Removed backlog quota for %s successfully", namespace)), nil + return textResult(fmt.Sprintf("Removed backlog quota for %s successfully", namespace)), nil } // parseActions parses action strings into AuthAction enums @@ -642,3 +659,81 @@ func (b *PulsarAdminNamespacePolicyToolBuilder) parseActions(actions []string) ( } return r, nil } + +func buildPulsarAdminNamespacePolicyGetInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminNamespacePolicyGetInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "namespace", pulsarAdminNamespacePolicyGetNamespaceDesc) + normalizeAdditionalProperties(schema) + return schema, nil +} + +func buildPulsarAdminNamespacePolicySetInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminNamespacePolicySetInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "namespace", pulsarAdminNamespacePolicySetNamespaceDesc) + setSchemaDescription(schema, "policy", pulsarAdminNamespacePolicySetPolicyDesc) + setSchemaDescription(schema, "role", pulsarAdminNamespacePolicySetRoleDesc) + setSchemaDescription(schema, "actions", pulsarAdminNamespacePolicySetActionsDesc) + setSchemaDescription(schema, "clusters", pulsarAdminNamespacePolicySetClustersDesc) + setSchemaDescription(schema, "roles", pulsarAdminNamespacePolicySetRolesDesc) + setSchemaDescription(schema, "ttl", pulsarAdminNamespacePolicySetTTLDesc) + setSchemaDescription(schema, "time", pulsarAdminNamespacePolicySetTimeDesc) + setSchemaDescription(schema, "size", pulsarAdminNamespacePolicySetSizeDesc) + setSchemaDescription(schema, "limit-size", pulsarAdminNamespacePolicySetLimitSizeDesc) + setSchemaDescription(schema, "limit-time", pulsarAdminNamespacePolicySetLimitTimeDesc) + setSchemaDescription(schema, "type", pulsarAdminNamespacePolicySetTypeDesc) + + if actionsSchema := schema.Properties["actions"]; actionsSchema != nil && actionsSchema.Items != nil { + actionsSchema.Items.Description = "action" + } + if clustersSchema := schema.Properties["clusters"]; clustersSchema != nil && clustersSchema.Items != nil { + clustersSchema.Items.Description = "cluster" + } + if rolesSchema := schema.Properties["roles"]; rolesSchema != nil && rolesSchema.Items != nil { + rolesSchema.Items.Description = "role" + } + + normalizeAdditionalProperties(schema) + return schema, nil +} + +func buildPulsarAdminNamespacePolicyRemoveInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminNamespacePolicyRemoveInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "namespace", pulsarAdminNamespacePolicyRemoveNamespaceDesc) + setSchemaDescription(schema, "policy", pulsarAdminNamespacePolicyRemovePolicyDesc) + setSchemaDescription(schema, "role", pulsarAdminNamespacePolicyRemoveRoleDesc) + setSchemaDescription(schema, "subscription", pulsarAdminNamespacePolicyRemoveSubscriptionDesc) + setSchemaDescription(schema, "type", pulsarAdminNamespacePolicyRemoveTypeDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/pulsar/namespace_policy_legacy.go b/pkg/mcp/builders/pulsar/namespace_policy_legacy.go new file mode 100644 index 0000000..310995a --- /dev/null +++ b/pkg/mcp/builders/pulsar/namespace_policy_legacy.go @@ -0,0 +1,208 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminNamespacePolicyLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin namespace policies. +// /nolint:revive +type PulsarAdminNamespacePolicyLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminNamespacePolicyLegacyToolBuilder creates a new Pulsar admin namespace policy legacy tool builder instance. +func NewPulsarAdminNamespacePolicyLegacyToolBuilder() *PulsarAdminNamespacePolicyLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_namespace_policy", + Version: "1.0.0", + Description: "Pulsar admin namespace policy management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "namespace_policy"}, + } + + features := []string{ + "pulsar-admin-namespace-policy", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminNamespacePolicyLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin namespace policy legacy tool list. +func (b *PulsarAdminNamespacePolicyLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tools := []server.ServerTool{} + + getTool, err := b.buildNamespaceGetPoliciesTool() + if err != nil { + return nil, err + } + getHandler := b.buildNamespaceGetPoliciesHandler() + tools = append(tools, server.ServerTool{ + Tool: getTool, + Handler: getHandler, + }) + + if !config.ReadOnly { + setTool, err := b.buildNamespaceSetPolicyTool() + if err != nil { + return nil, err + } + setHandler := b.buildNamespaceSetPolicyHandler() + tools = append(tools, server.ServerTool{ + Tool: setTool, + Handler: setHandler, + }) + + removeTool, err := b.buildNamespaceRemovePolicyTool() + if err != nil { + return nil, err + } + removeHandler := b.buildNamespaceRemovePolicyHandler() + tools = append(tools, server.ServerTool{ + Tool: removeTool, + Handler: removeHandler, + }) + } + + return tools, nil +} + +func (b *PulsarAdminNamespacePolicyLegacyToolBuilder) buildNamespaceGetPoliciesTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminNamespacePolicyGetInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + return mcp.Tool{ + Name: "pulsar_admin_namespace_policy_get", + Description: pulsarAdminNamespacePolicyGetToolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminNamespacePolicyLegacyToolBuilder) buildNamespaceSetPolicyTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminNamespacePolicySetInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + return mcp.Tool{ + Name: "pulsar_admin_namespace_policy_set", + Description: pulsarAdminNamespacePolicySetToolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminNamespacePolicyLegacyToolBuilder) buildNamespaceRemovePolicyTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminNamespacePolicyRemoveInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + return mcp.Tool{ + Name: "pulsar_admin_namespace_policy_remove", + Description: pulsarAdminNamespacePolicyRemoveToolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminNamespacePolicyLegacyToolBuilder) buildNamespaceGetPoliciesHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminNamespacePolicyToolBuilder() + sdkHandler := sdkBuilder.buildNamespaceGetPoliciesHandler() + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminNamespacePolicyGetInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} + +func (b *PulsarAdminNamespacePolicyLegacyToolBuilder) buildNamespaceSetPolicyHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminNamespacePolicyToolBuilder() + sdkHandler := sdkBuilder.buildNamespaceSetPolicyHandler() + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminNamespacePolicySetInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} + +func (b *PulsarAdminNamespacePolicyLegacyToolBuilder) buildNamespaceRemovePolicyHandler() func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminNamespacePolicyToolBuilder() + sdkHandler := sdkBuilder.buildNamespaceRemovePolicyHandler() + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminNamespacePolicyRemoveInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/namespace_policy_test.go b/pkg/mcp/builders/pulsar/namespace_policy_test.go new file mode 100644 index 0000000..555c6a2 --- /dev/null +++ b/pkg/mcp/builders/pulsar/namespace_policy_test.go @@ -0,0 +1,166 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminNamespacePolicyToolBuilder(t *testing.T) { + builder := NewPulsarAdminNamespacePolicyToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_namespace_policy", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-namespace-policy") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-namespace-policy"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 3) + + names := make([]string, 0, len(tools)) + for _, tool := range tools { + names = append(names, tool.Definition().Name) + } + + assert.ElementsMatch(t, []string{ + "pulsar_admin_namespace_policy_get", + "pulsar_admin_namespace_policy_set", + "pulsar_admin_namespace_policy_remove", + }, names) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-namespace-policy"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_namespace_policy_get", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-namespace-policy"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminNamespacePolicyToolSchema(t *testing.T) { + builder := NewPulsarAdminNamespacePolicyToolBuilder() + + getTool, err := builder.buildNamespaceGetPoliciesTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_namespace_policy_get", getTool.Name) + + getSchema, ok := getTool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, getSchema.Properties) + + assert.ElementsMatch(t, []string{"namespace"}, getSchema.Required) + assert.ElementsMatch(t, []string{"namespace"}, mapStringKeys(getSchema.Properties)) + assert.Equal(t, pulsarAdminNamespacePolicyGetNamespaceDesc, getSchema.Properties["namespace"].Description) + + setTool, err := builder.buildNamespaceSetPolicyTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_namespace_policy_set", setTool.Name) + + setSchema, ok := setTool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, setSchema.Properties) + + assert.ElementsMatch(t, []string{"namespace", "policy"}, setSchema.Required) + assert.ElementsMatch(t, []string{ + "namespace", + "policy", + "role", + "actions", + "clusters", + "roles", + "ttl", + "time", + "size", + "limit-size", + "limit-time", + "type", + }, mapStringKeys(setSchema.Properties)) + + assert.Equal(t, pulsarAdminNamespacePolicySetNamespaceDesc, setSchema.Properties["namespace"].Description) + assert.Equal(t, pulsarAdminNamespacePolicySetPolicyDesc, setSchema.Properties["policy"].Description) + assert.Equal(t, pulsarAdminNamespacePolicySetTypeDesc, setSchema.Properties["type"].Description) + + removeTool, err := builder.buildNamespaceRemovePolicyTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_namespace_policy_remove", removeTool.Name) + + removeSchema, ok := removeTool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, removeSchema.Properties) + + assert.ElementsMatch(t, []string{"namespace", "policy"}, removeSchema.Required) + assert.ElementsMatch(t, []string{ + "namespace", + "policy", + "role", + "subscription", + "type", + }, mapStringKeys(removeSchema.Properties)) + + assert.Equal(t, pulsarAdminNamespacePolicyRemoveNamespaceDesc, removeSchema.Properties["namespace"].Description) + assert.Equal(t, pulsarAdminNamespacePolicyRemovePolicyDesc, removeSchema.Properties["policy"].Description) +} diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools.go b/pkg/mcp/pulsar_admin_namespace_policy_tools.go index c74cfe0..7c70401 100644 --- a/pkg/mcp/pulsar_admin_namespace_policy_tools.go +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddNamespacePolicyTools adds namespace policy-related tools to the MCP server -func PulsarAdminAddNamespacePolicyTools(s *server.MCPServer, readOnly bool, features []string) { +func PulsarAdminAddNamespacePolicyTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminNamespacePolicyToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func PulsarAdminAddNamespacePolicyTools(s *server.MCPServer, readOnly bool, feat // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_namespace_policy_tools_legacy.go b/pkg/mcp/pulsar_admin_namespace_policy_tools_legacy.go new file mode 100644 index 0000000..9aeae84 --- /dev/null +++ b/pkg/mcp/pulsar_admin_namespace_policy_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddNamespacePolicyToolsLegacy adds namespace policy-related tools to the legacy MCP server. +func PulsarAdminAddNamespacePolicyToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminNamespacePolicyLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From df1d363b5c1335d9fe23d2c98379a2d7bf7c1611 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 12:19:00 +0800 Subject: [PATCH 64/85] feat: migrate pulsar topic policy tool Migrate topic policy tool to the go-sdk with a legacy adapter and schema tests to preserve behavior parity. --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/topic_policy.go | 378 ++++++++++-------- .../builders/pulsar/topic_policy_legacy.go | 113 ++++++ pkg/mcp/builders/pulsar/topic_policy_test.go | 120 ++++++ pkg/mcp/pulsar_admin_topic_policy_tools.go | 6 +- .../pulsar_admin_topic_policy_tools_legacy.go | 41 ++ 6 files changed, 488 insertions(+), 172 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/topic_policy_legacy.go create mode 100644 pkg/mcp/builders/pulsar/topic_policy_test.go create mode 100644 pkg/mcp/pulsar_admin_topic_policy_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index af943e8..fa30cbd 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -130,7 +130,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddSinksToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddFunctionsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSourcesToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddTopicPolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddTopicPolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/topic_policy.go b/pkg/mcp/builders/pulsar/topic_policy.go index 065caa6..e889b02 100644 --- a/pkg/mcp/builders/pulsar/topic_policy.go +++ b/pkg/mcp/builders/pulsar/topic_policy.go @@ -22,13 +22,48 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminTopicPolicyInput struct { + Operation string `json:"operation"` + Topic string `json:"topic"` + RetentionSize *string `json:"retention_size,omitempty"` + RetentionTime *string `json:"retention_time,omitempty"` + TTLSeconds *float64 `json:"ttl_seconds,omitempty"` + CompactionThreshold *float64 `json:"compaction_threshold,omitempty"` + SubscriptionTypes []string `json:"subscription_types,omitempty"` +} + +const ( + pulsarAdminTopicPolicyToolDesc = "Manage Pulsar topic policies including retention, TTL, compaction, and subscription policies. " + + "This tool provides functionality to get, set, and remove various topic-level policies in Apache Pulsar." + + pulsarAdminTopicPolicyOperationDesc = "Operation to perform on topic policies. Available operations:\n" + + "- get_retention: Get message retention policy for a topic\n" + + "- set_retention: Set message retention policy for a topic\n" + + "- remove_retention: Remove message retention policy for a topic\n" + + "- get_ttl: Get message TTL policy for a topic\n" + + "- set_ttl: Set message TTL policy for a topic\n" + + "- remove_ttl: Remove message TTL policy for a topic\n" + + "- get_compaction: Get compaction policy for a topic\n" + + "- set_compaction: Set compaction policy for a topic\n" + + "- remove_compaction: Remove compaction policy for a topic\n" + + "- get_subscription_types: Get allowed subscription types for a topic\n" + + "- set_subscription_types: Set allowed subscription types for a topic\n" + + "- remove_subscription_types: Remove subscription types restriction for a topic" + pulsarAdminTopicPolicyTopicDesc = "Topic name in format 'persistent://tenant/namespace/topic' or 'tenant/namespace/topic'" + pulsarAdminTopicPolicyRetentionSizeDesc = "Retention size policy (e.g., '100MB', '1GB') - used with retention operations" + pulsarAdminTopicPolicyRetentionTimeDesc = "Retention time policy (e.g., '1d', '24h', '1440m') - used with retention operations" + pulsarAdminTopicPolicyTTLSecondsDesc = "TTL in seconds - used with TTL operations" + pulsarAdminTopicPolicyCompactionThresholdDesc = "Compaction threshold in bytes - used with compaction operations" + pulsarAdminTopicPolicySubscriptionTypesDesc = "List of allowed subscription types - used with subscription type operations" +) + // PulsarAdminTopicPolicyToolBuilder implements the ToolBuilder interface for Pulsar admin topic policies // /nolint:revive type PulsarAdminTopicPolicyToolBuilder struct { @@ -58,7 +93,7 @@ func NewPulsarAdminTopicPolicyToolBuilder() *PulsarAdminTopicPolicyToolBuilder { } // BuildTools builds the Pulsar admin topic policy tool list -func (b *PulsarAdminTopicPolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -70,11 +105,14 @@ func (b *PulsarAdminTopicPolicyToolBuilder) BuildTools(_ context.Context, config } // Build tools - tool := b.buildTopicPolicyTool() + tool, err := b.buildTopicPolicyTool() + if err != nil { + return nil, err + } handler := b.buildTopicPolicyHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminTopicPolicyInput, any]{ Tool: tool, Handler: handler, }, @@ -82,79 +120,42 @@ func (b *PulsarAdminTopicPolicyToolBuilder) BuildTools(_ context.Context, config } // buildTopicPolicyTool builds the Pulsar Admin Topic Policy MCP tool definition -func (b *PulsarAdminTopicPolicyToolBuilder) buildTopicPolicyTool() mcp.Tool { - toolDesc := "Manage Pulsar topic policies including retention, TTL, compaction, and subscription policies. " + - "This tool provides functionality to get, set, and remove various topic-level policies in Apache Pulsar." - - operationDesc := "Operation to perform on topic policies. Available operations:\n" + - "- get_retention: Get message retention policy for a topic\n" + - "- set_retention: Set message retention policy for a topic\n" + - "- remove_retention: Remove message retention policy for a topic\n" + - "- get_ttl: Get message TTL policy for a topic\n" + - "- set_ttl: Set message TTL policy for a topic\n" + - "- remove_ttl: Remove message TTL policy for a topic\n" + - "- get_compaction: Get compaction policy for a topic\n" + - "- set_compaction: Set compaction policy for a topic\n" + - "- remove_compaction: Remove compaction policy for a topic\n" + - "- get_subscription_types: Get allowed subscription types for a topic\n" + - "- set_subscription_types: Set allowed subscription types for a topic\n" + - "- remove_subscription_types: Remove subscription types restriction for a topic" +func (b *PulsarAdminTopicPolicyToolBuilder) buildTopicPolicyTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminTopicPolicyInputSchema() + if err != nil { + return nil, err + } - return mcp.NewTool("pulsar_admin_topic_policy", - mcp.WithDescription(toolDesc), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("topic", mcp.Required(), - mcp.Description("Topic name in format 'persistent://tenant/namespace/topic' or 'tenant/namespace/topic'"), - ), - mcp.WithString("retention_size", - mcp.Description("Retention size policy (e.g., '100MB', '1GB') - used with retention operations"), - ), - mcp.WithString("retention_time", - mcp.Description("Retention time policy (e.g., '1d', '24h', '1440m') - used with retention operations"), - ), - mcp.WithNumber("ttl_seconds", - mcp.Description("TTL in seconds - used with TTL operations"), - ), - mcp.WithNumber("compaction_threshold", - mcp.Description("Compaction threshold in bytes - used with compaction operations"), - ), - mcp.WithArray("subscription_types", - mcp.Description("List of allowed subscription types - used with subscription type operations"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "subscription type: Exclusive, Shared, Failover, Key_Shared", - }, - ), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_topic_policy", + Description: pulsarAdminTopicPolicyToolDesc, + InputSchema: inputSchema, + }, nil } // buildTopicPolicyHandler builds the Pulsar Admin Topic Policy handler function -func (b *PulsarAdminTopicPolicyToolBuilder) buildTopicPolicyHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) buildTopicPolicyHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminTopicPolicyInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminTopicPolicyInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminClient() if err != nil { - return b.handleError("get admin client", err), nil + return nil, nil, b.handleError("get admin client", err) } // Get required parameters - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError("Missing required operation parameter"), nil + operation := strings.TrimSpace(input.Operation) + if operation == "" { + return nil, nil, fmt.Errorf("missing required operation parameter") } - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError("Missing required topic parameter"), nil + topic := strings.TrimSpace(input.Topic) + if topic == "" { + return nil, nil, fmt.Errorf("missing required topic parameter") } // Check write operation permissions @@ -169,71 +170,107 @@ func (b *PulsarAdminTopicPolicyToolBuilder) buildTopicPolicyHandler(readOnly boo } if isWriteOp && readOnly { - return mcp.NewToolResultError("Write operations not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations not allowed in read-only mode") } // Handle operations switch operation { case "get_retention": - return b.handleGetTopicRetention(client, topic) + result, handlerErr := b.handleGetTopicRetention(client, topic) + return result, nil, handlerErr case "set_retention": - return b.handleSetTopicRetention(client, topic, request) + result, handlerErr := b.handleSetTopicRetention(client, topic, input) + return result, nil, handlerErr case "remove_retention": - return b.handleRemoveTopicRetention(client, topic) + result, handlerErr := b.handleRemoveTopicRetention(client, topic) + return result, nil, handlerErr case "get_ttl": - return b.handleGetTopicTTL(client, topic) + result, handlerErr := b.handleGetTopicTTL(client, topic) + return result, nil, handlerErr case "set_ttl": - return b.handleSetTopicTTL(client, topic, request) + result, handlerErr := b.handleSetTopicTTL(client, topic, input) + return result, nil, handlerErr case "remove_ttl": - return b.handleRemoveTopicTTL(client, topic) + result, handlerErr := b.handleRemoveTopicTTL(client, topic) + return result, nil, handlerErr case "get_compaction": - return b.handleGetTopicCompaction(client, topic) + result, handlerErr := b.handleGetTopicCompaction(client, topic) + return result, nil, handlerErr case "set_compaction": - return b.handleSetTopicCompaction(client, topic, request) + result, handlerErr := b.handleSetTopicCompaction(client, topic, input) + return result, nil, handlerErr case "remove_compaction": - return b.handleRemoveTopicCompaction(client, topic) + result, handlerErr := b.handleRemoveTopicCompaction(client, topic) + return result, nil, handlerErr case "get_subscription_types": - return b.handleGetTopicSubscriptionTypes(client, topic) + result, handlerErr := b.handleGetTopicSubscriptionTypes(client, topic) + return result, nil, handlerErr case "set_subscription_types": - return b.handleSetTopicSubscriptionTypes(client, topic, request) + result, handlerErr := b.handleSetTopicSubscriptionTypes(client, topic, input) + return result, nil, handlerErr case "remove_subscription_types": - return b.handleRemoveTopicSubscriptionTypes(client, topic) + result, handlerErr := b.handleRemoveTopicSubscriptionTypes(client, topic) + return result, nil, handlerErr default: - return mcp.NewToolResultError(fmt.Sprintf("Unsupported operation: %s", operation)), nil + return nil, nil, fmt.Errorf("unsupported operation: %s", operation) } } } +func buildPulsarAdminTopicPolicyInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminTopicPolicyInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "operation", pulsarAdminTopicPolicyOperationDesc) + setSchemaDescription(schema, "topic", pulsarAdminTopicPolicyTopicDesc) + setSchemaDescription(schema, "retention_size", pulsarAdminTopicPolicyRetentionSizeDesc) + setSchemaDescription(schema, "retention_time", pulsarAdminTopicPolicyRetentionTimeDesc) + setSchemaDescription(schema, "ttl_seconds", pulsarAdminTopicPolicyTTLSecondsDesc) + setSchemaDescription(schema, "compaction_threshold", pulsarAdminTopicPolicyCompactionThresholdDesc) + setSchemaDescription(schema, "subscription_types", pulsarAdminTopicPolicySubscriptionTypesDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} + // Utility functions -func (b *PulsarAdminTopicPolicyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarAdminTopicPolicyToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } -func (b *PulsarAdminTopicPolicyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return textResult(string(jsonBytes)), nil } // Topic policy operation handlers -func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicRetention(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicRetention(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Get retention policy retention, err := client.Topics().GetRetention(*topicName, false) if err != nil { - return b.handleError("get topic retention policy", err), nil + return nil, b.handleError("get topic retention policy", err) } // If no retention policy is defined if retention == nil { - return mcp.NewToolResultText(fmt.Sprintf("No retention policy found for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("No retention policy found for topic %s", topicName.String())), nil } // Format the output @@ -251,35 +288,39 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicRetention(client cmdut retentionSize = fmt.Sprintf("%d MB", retention.RetentionSizeInMB) } - return mcp.NewToolResultText(fmt.Sprintf("Retention policy for topic %s: %s and %s", + return textResult(fmt.Sprintf("Retention policy for topic %s: %s and %s", topicName.String(), retentionTime, retentionSize)), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicRetention(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicRetention(client cmdutils.Client, topic string, input pulsarAdminTopicPolicyInput) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Parse retention parameters - var retentionTimeInMinutes int64 = -1 - var retentionSizeInMB int64 = -1 - - // /nolint:revive - if retentionTime := request.GetString("retention_time", ""); retentionTime != "" { - if parsed, err := b.parseRetentionTime(retentionTime); err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid retention time format: %v", err)), nil - } else { + retentionTimeInMinutes := int64(-1) + retentionSizeInMB := int64(-1) + + if input.RetentionTime != nil { + retentionTime := strings.TrimSpace(*input.RetentionTime) + if retentionTime != "" { + parsed, err := b.parseRetentionTime(retentionTime) + if err != nil { + return nil, fmt.Errorf("invalid retention time format: %v", err) + } retentionTimeInMinutes = parsed } } - // /nolint:revive - if retentionSize := request.GetString("retention_size", ""); retentionSize != "" { - if parsed, err := b.parseRetentionSize(retentionSize); err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid retention size format: %v", err)), nil - } else { + if input.RetentionSize != nil { + retentionSize := strings.TrimSpace(*input.RetentionSize) + if retentionSize != "" { + parsed, err := b.parseRetentionSize(retentionSize) + if err != nil { + return nil, fmt.Errorf("invalid retention size format: %v", err) + } retentionSizeInMB = parsed } } @@ -293,132 +334,132 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicRetention(client cmdut // Set retention policy err = client.Topics().SetRetention(*topicName, retentionPolicy) if err != nil { - return b.handleError("set topic retention policy", err), nil + return nil, b.handleError("set topic retention policy", err) } - return mcp.NewToolResultText(fmt.Sprintf("Retention policy set for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Retention policy set for topic %s", topicName.String())), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicRetention(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicRetention(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Remove retention policy err = client.Topics().RemoveRetention(*topicName) if err != nil { - return b.handleError("remove topic retention policy", err), nil + return nil, b.handleError("remove topic retention policy", err) } - return mcp.NewToolResultText(fmt.Sprintf("Retention policy removed for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Retention policy removed for topic %s", topicName.String())), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicTTL(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicTTL(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Get message TTL ttl, err := client.Topics().GetMessageTTL(*topicName) if err != nil { - return b.handleError("get topic message TTL", err), nil + return nil, b.handleError("get topic message TTL", err) } // Check if TTL is set if ttl == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Message TTL is not configured for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Message TTL is not configured for topic %s", topicName.String())), nil } - return mcp.NewToolResultText(fmt.Sprintf("Message TTL for topic %s is %d seconds", topicName.String(), ttl)), nil + return textResult(fmt.Sprintf("Message TTL for topic %s is %d seconds", topicName.String(), ttl)), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicTTL(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicTTL(client cmdutils.Client, topic string, input pulsarAdminTopicPolicyInput) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Get TTL seconds parameter - ttlSeconds, err := request.RequireFloat("ttl_seconds") - if err != nil { - return mcp.NewToolResultError("Missing required parameter 'ttl_seconds'"), nil + if input.TTLSeconds == nil { + return nil, fmt.Errorf("missing required parameter 'ttl_seconds'") } + ttlSeconds := *input.TTLSeconds if ttlSeconds < 0 { - return mcp.NewToolResultError("TTL seconds must be non-negative"), nil + return nil, fmt.Errorf("TTL seconds must be non-negative") } // Set message TTL err = client.Topics().SetMessageTTL(*topicName, int(ttlSeconds)) if err != nil { - return b.handleError("set topic message TTL", err), nil + return nil, b.handleError("set topic message TTL", err) } if ttlSeconds == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Message TTL disabled for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Message TTL disabled for topic %s", topicName.String())), nil } - return mcp.NewToolResultText(fmt.Sprintf("Message TTL set to %d seconds for topic %s", int(ttlSeconds), topicName.String())), nil + return textResult(fmt.Sprintf("Message TTL set to %d seconds for topic %s", int(ttlSeconds), topicName.String())), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicTTL(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicTTL(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Remove message TTL err = client.Topics().RemoveMessageTTL(*topicName) if err != nil { - return b.handleError("remove topic message TTL", err), nil + return nil, b.handleError("remove topic message TTL", err) } - return mcp.NewToolResultText(fmt.Sprintf("Message TTL removed for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Message TTL removed for topic %s", topicName.String())), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicCompaction(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicCompaction(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Get compaction threshold threshold, err := client.Topics().GetCompactionThreshold(*topicName, false) if err != nil { - return b.handleError("get topic compaction threshold", err), nil + return nil, b.handleError("get topic compaction threshold", err) } // Format the result if threshold == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Automatic compaction is disabled for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Automatic compaction is disabled for topic %s", topicName.String())), nil } - return mcp.NewToolResultText(fmt.Sprintf("The compaction threshold of the topic %s is %d byte(s)", + return textResult(fmt.Sprintf("The compaction threshold of the topic %s is %d byte(s)", topicName.String(), threshold)), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicCompaction(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicCompaction(client cmdutils.Client, topic string, input pulsarAdminTopicPolicyInput) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Get compaction threshold parameter - thresholdNum, err := request.RequireFloat("compaction_threshold") - if err != nil { - return mcp.NewToolResultError("Missing required parameter 'compaction_threshold'"), nil + if input.CompactionThreshold == nil { + return nil, fmt.Errorf("missing required parameter 'compaction_threshold'") } + thresholdNum := *input.CompactionThreshold if thresholdNum < 0 { - return mcp.NewToolResultError("Compaction threshold must be non-negative"), nil + return nil, fmt.Errorf("compaction threshold must be non-negative") } threshold := int64(thresholdNum) @@ -426,37 +467,37 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicCompaction(client cmdu // Set compaction threshold err = client.Topics().SetCompactionThreshold(*topicName, threshold) if err != nil { - return b.handleError("set topic compaction threshold", err), nil + return nil, b.handleError("set topic compaction threshold", err) } if threshold == 0 { - return mcp.NewToolResultText(fmt.Sprintf("Automatic compaction disabled for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Automatic compaction disabled for topic %s", topicName.String())), nil } - return mcp.NewToolResultText(fmt.Sprintf("Compaction threshold set to %d bytes for topic %s", threshold, topicName.String())), nil + return textResult(fmt.Sprintf("Compaction threshold set to %d bytes for topic %s", threshold, topicName.String())), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicCompaction(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicCompaction(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Remove compaction threshold err = client.Topics().RemoveCompactionThreshold(*topicName) if err != nil { - return b.handleError("remove topic compaction threshold", err), nil + return nil, b.handleError("remove topic compaction threshold", err) } - return mcp.NewToolResultText(fmt.Sprintf("Compaction threshold removed for topic %s", topicName.String())), nil + return textResult(fmt.Sprintf("Compaction threshold removed for topic %s", topicName.String())), nil } -func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicSubscriptionTypes(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicSubscriptionTypes(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Check if the API supports subscription types management @@ -471,11 +512,11 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicSubscriptionTypes(clie if getter, ok := topicsClient.(SubscriptionTypesGetter); ok { subscriptionTypes, err := getter.GetSubscriptionTypesEnabled(*topicName) if err != nil { - return b.handleError("get topic subscription types", err), nil + return nil, b.handleError("get topic subscription types", err) } if len(subscriptionTypes) == 0 { - return mcp.NewToolResultText(fmt.Sprintf("No subscription type restrictions configured for topic %s (all types allowed)", topicName.String())), nil + return textResult(fmt.Sprintf("No subscription type restrictions configured for topic %s (all types allowed)", topicName.String())), nil } return b.marshalResponse(map[string]interface{}{ @@ -485,24 +526,25 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleGetTopicSubscriptionTypes(clie } // Fallback: API not available in current version - return mcp.NewToolResultError("Subscription types policy management is not available in the current pulsarctl API version. " + - "This feature may require a newer version of Pulsar or pulsarctl."), nil + return nil, fmt.Errorf("subscription types policy management is not available in the current pulsarctl API version; " + + "this feature may require a newer version of Pulsar or pulsarctl") } -func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicSubscriptionTypes(client cmdutils.Client, topic string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicSubscriptionTypes(client cmdutils.Client, topic string, input pulsarAdminTopicPolicyInput) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Get subscription types parameter - subscriptionTypes, err := request.RequireStringSlice("subscription_types") - if err != nil { - return mcp.NewToolResultError("Missing required parameter 'subscription_types'. " + - "Please provide an array of subscription types: Exclusive, Shared, Failover, Key_Shared"), nil + if input.SubscriptionTypes == nil { + return nil, fmt.Errorf("missing required parameter 'subscription_types'; " + + "please provide an array of subscription types: Exclusive, Shared, Failover, Key_Shared") } + subscriptionTypes := input.SubscriptionTypes + // Validate subscription types validTypes := map[string]bool{ "Exclusive": true, @@ -514,13 +556,13 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicSubscriptionTypes(clie var validatedTypes []string for _, subType := range subscriptionTypes { if !validTypes[subType] { - return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription type: %s. Valid types are: Exclusive, Shared, Failover, Key_Shared", subType)), nil + return nil, fmt.Errorf("invalid subscription type: %s. valid types are: Exclusive, Shared, Failover, Key_Shared", subType) } validatedTypes = append(validatedTypes, subType) } if len(validatedTypes) == 0 { - return mcp.NewToolResultError("At least one valid subscription type must be specified"), nil + return nil, fmt.Errorf("at least one valid subscription type must be specified") } // Check if the API supports subscription types management @@ -534,23 +576,23 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleSetTopicSubscriptionTypes(clie if setter, ok := topicsClient.(SubscriptionTypesSetter); ok { err := setter.SetSubscriptionTypesEnabled(*topicName, validatedTypes) if err != nil { - return b.handleError("set topic subscription types", err), nil + return nil, b.handleError("set topic subscription types", err) } - return mcp.NewToolResultText(fmt.Sprintf("Subscription types set for topic %s: %s", + return textResult(fmt.Sprintf("Subscription types set for topic %s: %s", topicName.String(), strings.Join(validatedTypes, ", "))), nil } // Fallback: API not available in current version - return mcp.NewToolResultError("Subscription types policy management is not available in the current pulsarctl API version. " + - "This feature may require a newer version of Pulsar or pulsarctl."), nil + return nil, fmt.Errorf("subscription types policy management is not available in the current pulsarctl API version; " + + "this feature may require a newer version of Pulsar or pulsarctl") } -func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicSubscriptionTypes(client cmdutils.Client, topic string) (*mcp.CallToolResult, error) { +func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicSubscriptionTypes(client cmdutils.Client, topic string) (*sdk.CallToolResult, error) { // Get topic name topicName, err := utils.GetTopicName(topic) if err != nil { - return b.handleError("parse topic name", err), nil + return nil, b.handleError("parse topic name", err) } // Check if the API supports subscription types management @@ -564,15 +606,15 @@ func (b *PulsarAdminTopicPolicyToolBuilder) handleRemoveTopicSubscriptionTypes(c if remover, ok := topicsClient.(SubscriptionTypesRemover); ok { err := remover.RemoveSubscriptionTypesEnabled(*topicName) if err != nil { - return b.handleError("remove topic subscription types policy", err), nil + return nil, b.handleError("remove topic subscription types policy", err) } - return mcp.NewToolResultText(fmt.Sprintf("Subscription types policy removed for topic %s (all types now allowed)", topicName.String())), nil + return textResult(fmt.Sprintf("Subscription types policy removed for topic %s (all types now allowed)", topicName.String())), nil } // Fallback: API not available in current version - return mcp.NewToolResultError("Subscription types policy management is not available in the current pulsarctl API version. " + - "This feature may require a newer version of Pulsar or pulsarctl."), nil + return nil, fmt.Errorf("subscription types policy management is not available in the current pulsarctl API version; " + + "this feature may require a newer version of Pulsar or pulsarctl") } // Utility functions for parsing retention parameters diff --git a/pkg/mcp/builders/pulsar/topic_policy_legacy.go b/pkg/mcp/builders/pulsar/topic_policy_legacy.go new file mode 100644 index 0000000..824526c --- /dev/null +++ b/pkg/mcp/builders/pulsar/topic_policy_legacy.go @@ -0,0 +1,113 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminTopicPolicyLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin topic policies. +// /nolint:revive +type PulsarAdminTopicPolicyLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminTopicPolicyLegacyToolBuilder creates a new Pulsar admin topic policy legacy tool builder instance. +func NewPulsarAdminTopicPolicyLegacyToolBuilder() *PulsarAdminTopicPolicyLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_topic_policy", + Version: "1.0.0", + Description: "Pulsar admin topic policy management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "topic_policy"}, + } + + features := []string{ + "pulsar-admin-topic-policy", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminTopicPolicyLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin topic policy legacy tool list. +func (b *PulsarAdminTopicPolicyLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildTopicPolicyTool() + if err != nil { + return nil, err + } + handler := b.buildTopicPolicyHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminTopicPolicyLegacyToolBuilder) buildTopicPolicyTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminTopicPolicyInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + return mcp.Tool{ + Name: "pulsar_admin_topic_policy", + Description: pulsarAdminTopicPolicyToolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminTopicPolicyLegacyToolBuilder) buildTopicPolicyHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminTopicPolicyToolBuilder() + sdkHandler := sdkBuilder.buildTopicPolicyHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminTopicPolicyInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/topic_policy_test.go b/pkg/mcp/builders/pulsar/topic_policy_test.go new file mode 100644 index 0000000..de185b9 --- /dev/null +++ b/pkg/mcp/builders/pulsar/topic_policy_test.go @@ -0,0 +1,120 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminTopicPolicyToolBuilder(t *testing.T) { + builder := NewPulsarAdminTopicPolicyToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_topic_policy", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-topic-policy") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-topic-policy"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_topic_policy", tools[0].Definition().Name) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-topic-policy"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_topic_policy", tools[0].Definition().Name) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-topic-policy"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminTopicPolicyToolSchema(t *testing.T) { + builder := NewPulsarAdminTopicPolicyToolBuilder() + + tool, err := builder.buildTopicPolicyTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_topic_policy", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + assert.ElementsMatch(t, []string{"operation", "topic"}, schema.Required) + assert.ElementsMatch(t, []string{ + "operation", + "topic", + "retention_size", + "retention_time", + "ttl_seconds", + "compaction_threshold", + "subscription_types", + }, mapStringKeys(schema.Properties)) + + assert.Equal(t, pulsarAdminTopicPolicyOperationDesc, schema.Properties["operation"].Description) + assert.Equal(t, pulsarAdminTopicPolicyTopicDesc, schema.Properties["topic"].Description) + assert.Equal(t, pulsarAdminTopicPolicyRetentionTimeDesc, schema.Properties["retention_time"].Description) + assert.Equal(t, pulsarAdminTopicPolicyRetentionSizeDesc, schema.Properties["retention_size"].Description) +} diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools.go b/pkg/mcp/pulsar_admin_topic_policy_tools.go index 7eb1b1c..8199a0e 100644 --- a/pkg/mcp/pulsar_admin_topic_policy_tools.go +++ b/pkg/mcp/pulsar_admin_topic_policy_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddTopicPolicyTools adds topic policy-related tools to the MCP server -func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features []string) { +func PulsarAdminAddTopicPolicyTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminTopicPolicyToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func PulsarAdminAddTopicPolicyTools(s *server.MCPServer, readOnly bool, features // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_topic_policy_tools_legacy.go b/pkg/mcp/pulsar_admin_topic_policy_tools_legacy.go new file mode 100644 index 0000000..b4af979 --- /dev/null +++ b/pkg/mcp/pulsar_admin_topic_policy_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddTopicPolicyToolsLegacy adds topic policy-related tools to the legacy MCP server. +func PulsarAdminAddTopicPolicyToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminTopicPolicyLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 9176e3ec291c3caa8edd8d44358b72edbe6aacda Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 12:33:54 +0800 Subject: [PATCH 65/85] feat: migrate ns isolation policy tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/nsisolationpolicy.go | 343 +++++++++--------- .../pulsar/nsisolationpolicy_legacy.go | 117 ++++++ .../builders/pulsar/nsisolationpolicy_test.go | 160 ++++++++ .../pulsar_admin_nsisolationpolicy_tools.go | 8 +- ...ar_admin_nsisolationpolicy_tools_legacy.go | 41 +++ 6 files changed, 495 insertions(+), 176 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/nsisolationpolicy_legacy.go create mode 100644 pkg/mcp/builders/pulsar/nsisolationpolicy_test.go create mode 100644 pkg/mcp/pulsar_admin_nsisolationpolicy_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index fa30cbd..34cc4dc 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -120,7 +120,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddFunctionsWorkerToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespaceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespacePolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddNsIsolationPolicyTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddNsIsolationPolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSchemasToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/nsisolationpolicy.go b/pkg/mcp/builders/pulsar/nsisolationpolicy.go index 74dd9aa..f49f92d 100644 --- a/pkg/mcp/builders/pulsar/nsisolationpolicy.go +++ b/pkg/mcp/builders/pulsar/nsisolationpolicy.go @@ -21,14 +21,45 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" - "github.com/streamnative/streamnative-mcp-server/pkg/common" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminNsIsolationPolicyInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Cluster string `json:"cluster"` + Name *string `json:"name,omitempty"` + Namespaces []string `json:"namespaces,omitempty"` + Primary []string `json:"primary,omitempty"` + Secondary []string `json:"secondary,omitempty"` + AutoFailoverPolicyType *string `json:"autoFailoverPolicyType,omitempty"` + AutoFailoverPolicyParams map[string]any `json:"autoFailoverPolicyParams,omitempty"` +} + +const ( + pulsarAdminNsIsolationPolicyResourceDesc = "Resource to operate on. Available resources:\n" + + "- policy: Namespace isolation policy\n" + + "- broker: Broker with namespace isolation policies\n" + + "- brokers: All brokers with namespace isolation policies" + pulsarAdminNsIsolationPolicyOperationDesc = "Operation to perform. Available operations:\n" + + "- get: Get resource details\n" + + "- list: List all instances of the resource\n" + + "- set: Create or update a resource (requires super-user permissions)\n" + + "- delete: Delete a resource (requires super-user permissions)" + pulsarAdminNsIsolationPolicyClusterDesc = "Cluster name" + pulsarAdminNsIsolationPolicyNameDesc = "Name of the policy or broker to operate on, based on resource type.\n" + + "Required for: policy.get, policy.delete, policy.set, broker.get" + pulsarAdminNsIsolationPolicyNamespacesDesc = "List of namespaces to apply the isolation policy. Required for policy.set" + pulsarAdminNsIsolationPolicyPrimaryDesc = "List of primary brokers for the namespaces. Required for policy.set" + pulsarAdminNsIsolationPolicySecondaryDesc = "List of secondary brokers for the namespaces. Optional for policy.set" + pulsarAdminNsIsolationPolicyTypeDesc = "Auto failover policy type (e.g., min_available). Optional for policy.set" + pulsarAdminNsIsolationPolicyParamsDesc = "Auto failover policy parameters as an object (e.g., {'min_limit': '1', 'usage_threshold': '100'}). Optional for policy.set" +) + // PulsarAdminNsIsolationPolicyToolBuilder implements the ToolBuilder interface for Pulsar admin namespace isolation policies // /nolint:revive type PulsarAdminNsIsolationPolicyToolBuilder struct { @@ -58,7 +89,7 @@ func NewPulsarAdminNsIsolationPolicyToolBuilder() *PulsarAdminNsIsolationPolicyT } // BuildTools builds the Pulsar admin namespace isolation policy tool list -func (b *PulsarAdminNsIsolationPolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminNsIsolationPolicyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -69,12 +100,14 @@ func (b *PulsarAdminNsIsolationPolicyToolBuilder) BuildTools(_ context.Context, return nil, err } - // Build tools - tool := b.buildNsIsolationPolicyTool() + tool, err := b.buildNsIsolationPolicyTool() + if err != nil { + return nil, err + } handler := b.buildNsIsolationPolicyHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminNsIsolationPolicyInput, any]{ Tool: tool, Handler: handler, }, @@ -82,122 +115,70 @@ func (b *PulsarAdminNsIsolationPolicyToolBuilder) BuildTools(_ context.Context, } // buildNsIsolationPolicyTool builds the Pulsar admin namespace isolation policy MCP tool definition -func (b *PulsarAdminNsIsolationPolicyToolBuilder) buildNsIsolationPolicyTool() mcp.Tool { +func (b *PulsarAdminNsIsolationPolicyToolBuilder) buildNsIsolationPolicyTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminNsIsolationPolicyInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage namespace isolation policies in a Pulsar cluster. " + "Allows viewing, creating, updating, and deleting namespace isolation policies. " + "Some operations require super-user permissions." - resourceDesc := "Resource to operate on. Available resources:\n" + - "- policy: Namespace isolation policy\n" + - "- broker: Broker with namespace isolation policies\n" + - "- brokers: All brokers with namespace isolation policies" - - operationDesc := "Operation to perform. Available operations:\n" + - "- get: Get resource details\n" + - "- list: List all instances of the resource\n" + - "- set: Create or update a resource (requires super-user permissions)\n" + - "- delete: Delete a resource (requires super-user permissions)" - - return mcp.NewTool("pulsar_admin_nsisolationpolicy", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("cluster", mcp.Required(), - mcp.Description("Cluster name"), - ), - mcp.WithString("name", - mcp.Description("Name of the policy or broker to operate on, based on resource type.\n"+ - "Required for: policy.get, policy.delete, policy.set, broker.get"), - ), - mcp.WithArray("namespaces", - mcp.Description("List of namespaces to apply the isolation policy. Required for policy.set"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "namespace", - }, - ), - ), - mcp.WithArray("primary", - mcp.Description("List of primary brokers for the namespaces. Required for policy.set"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "primary broker", - }, - ), - ), - mcp.WithArray("secondary", - mcp.Description("List of secondary brokers for the namespaces. Optional for policy.set"), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "secondary broker", - }, - ), - ), - mcp.WithString("autoFailoverPolicyType", - mcp.Description("Auto failover policy type (e.g., min_available). Optional for policy.set"), - ), - mcp.WithObject("autoFailoverPolicyParams", - mcp.Description("Auto failover policy parameters as an object (e.g., {'min_limit': '1', 'usage_threshold': '100'}). Optional for policy.set"), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_nsisolationpolicy", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildNsIsolationPolicyHandler builds the Pulsar admin namespace isolation policy handler function -func (b *PulsarAdminNsIsolationPolicyToolBuilder) buildNsIsolationPolicyHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNsIsolationPolicyToolBuilder) buildNsIsolationPolicyHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminNsIsolationPolicyInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminNsIsolationPolicyInput) (*sdk.CallToolResult, any, error) { // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, b.handleError("get admin client", err) } - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil + resource := strings.ToLower(input.Resource) + if resource == "" { + return nil, nil, fmt.Errorf("missing required parameter 'resource'; please specify one of: policy, broker, brokers") } - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + operation := strings.ToLower(input.Operation) + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'; please specify one of: get, list, set, delete") } - cluster, err := request.RequireString("cluster") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get cluster name: %v", err)), nil + cluster := input.Cluster + if cluster == "" { + return nil, nil, fmt.Errorf("missing required parameter 'cluster'") } - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - // Validate write operations in read-only mode if readOnly && (operation == "set" || operation == "delete") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Dispatch based on resource type switch resource { case "policy": - return b.handlePolicyResource(client, operation, cluster, request) + result, err := b.handlePolicyResource(client, operation, cluster, input) + return result, nil, err case "broker": - return b.handleBrokerResource(client, operation, cluster, request) + result, err := b.handleBrokerResource(client, operation, cluster, input) + return result, nil, err case "brokers": - return b.handleNsIsolationBrokersResource(client, operation, cluster, request) + result, err := b.handleNsIsolationBrokersResource(client, operation, cluster) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: policy, broker, brokers", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. available resources: policy, broker, brokers", resource) } } } @@ -205,156 +186,178 @@ func (b *PulsarAdminNsIsolationPolicyToolBuilder) buildNsIsolationPolicyHandler( // Helper functions // handlePolicyResource handles operations on the "policy" resource -func (b *PulsarAdminNsIsolationPolicyToolBuilder) handlePolicyResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNsIsolationPolicyToolBuilder) handlePolicyResource(client cmdutils.Client, operation, cluster string, input pulsarAdminNsIsolationPolicyInput) (*sdk.CallToolResult, error) { switch operation { case "get": - name, err := request.RequireString("name") + name, err := requireString(input.Name, "name") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.get: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'name' for policy.get: %v", err) } - // Get namespace isolation policy policyInfo, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicy(cluster, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get namespace isolation policy: %v", err)), nil + return nil, b.handleError("get namespace isolation policy", err) } - // Convert result to JSON string - policyInfoJSON, err := json.Marshal(policyInfo) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policy: %v", err)), nil - } - - return mcp.NewToolResultText(string(policyInfoJSON)), nil - + return b.marshalResponse(policyInfo) case "list": - // Get namespace isolation policies policies, err := client.NsIsolationPolicy().GetNamespaceIsolationPolicies(cluster) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list namespace isolation policies: %v", err)), nil + return nil, b.handleError("list namespace isolation policies", err) } - // Convert result to JSON string - policiesJSON, err := json.Marshal(policies) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize namespace isolation policies: %v", err)), nil - } - - return mcp.NewToolResultText(string(policiesJSON)), nil - + return b.marshalResponse(policies) case "delete": - name, err := request.RequireString("name") + name, err := requireString(input.Name, "name") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.delete: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'name' for policy.delete: %v", err) } - // Delete namespace isolation policy err = client.NsIsolationPolicy().DeleteNamespaceIsolationPolicy(cluster, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete namespace isolation policy: %v", err)), nil + return nil, b.handleError("delete namespace isolation policy", err) } - return mcp.NewToolResultText(fmt.Sprintf("Delete namespace isolation policy %s successfully", name)), nil - + return textResult(fmt.Sprintf("Delete namespace isolation policy %s successfully", name)), nil case "set": - name, err := request.RequireString("name") + name, err := requireString(input.Name, "name") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for policy.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'name' for policy.set: %v", err) } - namespaces, err := request.RequireStringSlice("namespaces") + namespaces, err := requireStringSlice(input.Namespaces, "namespaces") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespaces' for policy.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespaces' for policy.set: %v", err) } - primary, err := request.RequireStringSlice("primary") + primary, err := requireStringSlice(input.Primary, "primary") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'primary' for policy.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'primary' for policy.set: %v", err) } - secondary := request.GetStringSlice("secondary", []string{}) - autoFailoverPolicyType := request.GetString("autoFailoverPolicyType", "") - - // Parse autoFailoverPolicyParams as a map - autoFailoverPolicyParamsRaw, ok := common.OptionalParamObject(request.GetArguments(), "autoFailoverPolicyParams") - if !ok { - return mcp.NewToolResultError("Failed to extract autoFailoverPolicyParams"), nil + secondary := input.Secondary + autoFailoverPolicyType := "" + if input.AutoFailoverPolicyType != nil { + autoFailoverPolicyType = *input.AutoFailoverPolicyType } - autoFailoverPolicyParams := make(map[string]string) - for k, v := range autoFailoverPolicyParamsRaw { - if strVal, ok := v.(string); ok { - autoFailoverPolicyParams[k] = strVal - } + autoFailoverPolicyParams, err := b.extractAutoFailoverPolicyParams(input.AutoFailoverPolicyParams) + if err != nil { + return nil, err } - // Create namespace isolation policy data nsIsolationData, err := utils.CreateNamespaceIsolationData(namespaces, primary, secondary, autoFailoverPolicyType, autoFailoverPolicyParams) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create namespace isolation data: %v", err)), nil + return nil, b.handleError("create namespace isolation data", err) } - // Create/update namespace isolation policy err = client.NsIsolationPolicy().CreateNamespaceIsolationPolicy(cluster, name, *nsIsolationData) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create/update namespace isolation policy: %v", err)), nil + return nil, b.handleError("create/update namespace isolation policy", err) } - return mcp.NewToolResultText(fmt.Sprintf("Create/Update namespace isolation policy %s successfully", name)), nil - + return textResult(fmt.Sprintf("Create/Update namespace isolation policy %s successfully", name)), nil default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'policy': %s. Available operations: get, list, delete, set", operation)), nil + return nil, fmt.Errorf("invalid operation for resource 'policy': %s. available operations: get, list, delete, set", operation) } } // handleBrokerResource handles operations on the "broker" resource -func (b *PulsarAdminNsIsolationPolicyToolBuilder) handleBrokerResource(client cmdutils.Client, operation, cluster string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNsIsolationPolicyToolBuilder) handleBrokerResource(client cmdutils.Client, operation, cluster string, input pulsarAdminNsIsolationPolicyInput) (*sdk.CallToolResult, error) { switch operation { case "get": - name, err := request.RequireString("name") + name, err := requireString(input.Name, "name") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'name' for broker.get: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'name' for broker.get: %v", err) } - // Get broker with policies brokerInfo, err := client.NsIsolationPolicy().GetBrokerWithNamespaceIsolationPolicy(cluster, name) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get broker with namespace isolation policy: %v", err)), nil + return nil, b.handleError("get broker with namespace isolation policy", err) } - // Convert result to JSON string - brokerInfoJSON, err := json.Marshal(brokerInfo) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize broker information: %v", err)), nil - } - - return mcp.NewToolResultText(string(brokerInfoJSON)), nil - + return b.marshalResponse(brokerInfo) default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'broker': %s. Available operations: get", operation)), nil + return nil, fmt.Errorf("invalid operation for resource 'broker': %s. available operations: get", operation) } } // handleNsIsolationBrokersResource handles operations on the "brokers" resource for namespace isolation policies -func (b *PulsarAdminNsIsolationPolicyToolBuilder) handleNsIsolationBrokersResource(client cmdutils.Client, operation, cluster string, _ mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminNsIsolationPolicyToolBuilder) handleNsIsolationBrokersResource(client cmdutils.Client, operation, cluster string) (*sdk.CallToolResult, error) { switch operation { case "list": - // Get all brokers with policies brokersInfo, err := client.NsIsolationPolicy().GetBrokersWithNamespaceIsolationPolicy(cluster) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get brokers with namespace isolation policy: %v", err)), nil + return nil, b.handleError("get brokers with namespace isolation policy", err) } - // Convert result to JSON string - brokersInfoJSON, err := json.Marshal(brokersInfo) - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize brokers information: %v", err)), nil + return b.marshalResponse(brokersInfo) + default: + return nil, fmt.Errorf("invalid operation for resource 'brokers': %s. available operations: list", operation) + } +} + +func (b *PulsarAdminNsIsolationPolicyToolBuilder) extractAutoFailoverPolicyParams(params map[string]any) (map[string]string, error) { + if params == nil { + return nil, fmt.Errorf("failed to extract autoFailoverPolicyParams") + } + + converted := make(map[string]string) + for key, value := range params { + if strValue, ok := value.(string); ok { + converted[key] = strValue } + } + return converted, nil +} - return mcp.NewToolResultText(string(brokersInfoJSON)), nil +// Utility functions - default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'brokers': %s. Available operations: list", operation)), nil +func (b *PulsarAdminNsIsolationPolicyToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) +} + +func (b *PulsarAdminNsIsolationPolicyToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return nil, b.handleError("marshal response", err) } + return textResult(string(jsonBytes)), nil +} + +func buildPulsarAdminNsIsolationPolicyInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminNsIsolationPolicyInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminNsIsolationPolicyResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminNsIsolationPolicyOperationDesc) + setSchemaDescription(schema, "cluster", pulsarAdminNsIsolationPolicyClusterDesc) + setSchemaDescription(schema, "name", pulsarAdminNsIsolationPolicyNameDesc) + setSchemaDescription(schema, "namespaces", pulsarAdminNsIsolationPolicyNamespacesDesc) + setSchemaDescription(schema, "primary", pulsarAdminNsIsolationPolicyPrimaryDesc) + setSchemaDescription(schema, "secondary", pulsarAdminNsIsolationPolicySecondaryDesc) + setSchemaDescription(schema, "autoFailoverPolicyType", pulsarAdminNsIsolationPolicyTypeDesc) + setSchemaDescription(schema, "autoFailoverPolicyParams", pulsarAdminNsIsolationPolicyParamsDesc) + + if namespacesSchema := schema.Properties["namespaces"]; namespacesSchema != nil && namespacesSchema.Items != nil { + namespacesSchema.Items.Description = "namespace" + } + if primarySchema := schema.Properties["primary"]; primarySchema != nil && primarySchema.Items != nil { + primarySchema.Items.Description = "primary broker" + } + if secondarySchema := schema.Properties["secondary"]; secondarySchema != nil && secondarySchema.Items != nil { + secondarySchema.Items.Description = "secondary broker" + } + + normalizeAdditionalProperties(schema) + return schema, nil } diff --git a/pkg/mcp/builders/pulsar/nsisolationpolicy_legacy.go b/pkg/mcp/builders/pulsar/nsisolationpolicy_legacy.go new file mode 100644 index 0000000..5d6f97c --- /dev/null +++ b/pkg/mcp/builders/pulsar/nsisolationpolicy_legacy.go @@ -0,0 +1,117 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminNsIsolationPolicyLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin namespace isolation policy tools. +// /nolint:revive +type PulsarAdminNsIsolationPolicyLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminNsIsolationPolicyLegacyToolBuilder creates a new Pulsar admin namespace isolation policy legacy tool builder instance. +func NewPulsarAdminNsIsolationPolicyLegacyToolBuilder() *PulsarAdminNsIsolationPolicyLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_nsisolationpolicy", + Version: "1.0.0", + Description: "Pulsar admin namespace isolation policy management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "nsisolationpolicy"}, + } + + features := []string{ + "pulsar-admin-nsisolationpolicy", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminNsIsolationPolicyLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin namespace isolation policy legacy tool list. +func (b *PulsarAdminNsIsolationPolicyLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildNsIsolationPolicyTool() + if err != nil { + return nil, err + } + handler := b.buildNsIsolationPolicyHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminNsIsolationPolicyLegacyToolBuilder) buildNsIsolationPolicyTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminNsIsolationPolicyInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Manage namespace isolation policies in a Pulsar cluster. " + + "Allows viewing, creating, updating, and deleting namespace isolation policies. " + + "Some operations require super-user permissions." + + return mcp.Tool{ + Name: "pulsar_admin_nsisolationpolicy", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminNsIsolationPolicyLegacyToolBuilder) buildNsIsolationPolicyHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminNsIsolationPolicyToolBuilder() + sdkHandler := sdkBuilder.buildNsIsolationPolicyHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminNsIsolationPolicyInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/nsisolationpolicy_test.go b/pkg/mcp/builders/pulsar/nsisolationpolicy_test.go new file mode 100644 index 0000000..656b02b --- /dev/null +++ b/pkg/mcp/builders/pulsar/nsisolationpolicy_test.go @@ -0,0 +1,160 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminNsIsolationPolicyToolBuilder(t *testing.T) { + builder := NewPulsarAdminNsIsolationPolicyToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_nsisolationpolicy", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-nsisolationpolicy") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-nsisolationpolicy"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_nsisolationpolicy", tools[0].Definition().Name) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-nsisolationpolicy"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-nsisolationpolicy"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminNsIsolationPolicyToolSchema(t *testing.T) { + builder := NewPulsarAdminNsIsolationPolicyToolBuilder() + tool, err := builder.buildNsIsolationPolicyTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_nsisolationpolicy", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation", "cluster"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "cluster", + "name", + "namespaces", + "primary", + "secondary", + "autoFailoverPolicyType", + "autoFailoverPolicyParams", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyOperationDesc, operationSchema.Description) + + clusterSchema := schema.Properties["cluster"] + require.NotNil(t, clusterSchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyClusterDesc, clusterSchema.Description) + + nameSchema := schema.Properties["name"] + require.NotNil(t, nameSchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyNameDesc, nameSchema.Description) + + namespacesSchema := schema.Properties["namespaces"] + require.NotNil(t, namespacesSchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyNamespacesDesc, namespacesSchema.Description) + require.NotNil(t, namespacesSchema.Items) + assert.Equal(t, "namespace", namespacesSchema.Items.Description) + + primarySchema := schema.Properties["primary"] + require.NotNil(t, primarySchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyPrimaryDesc, primarySchema.Description) + require.NotNil(t, primarySchema.Items) + assert.Equal(t, "primary broker", primarySchema.Items.Description) + + secondarySchema := schema.Properties["secondary"] + require.NotNil(t, secondarySchema) + assert.Equal(t, pulsarAdminNsIsolationPolicySecondaryDesc, secondarySchema.Description) + require.NotNil(t, secondarySchema.Items) + assert.Equal(t, "secondary broker", secondarySchema.Items.Description) + + autoFailoverTypeSchema := schema.Properties["autoFailoverPolicyType"] + require.NotNil(t, autoFailoverTypeSchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyTypeDesc, autoFailoverTypeSchema.Description) + + autoFailoverParamsSchema := schema.Properties["autoFailoverPolicyParams"] + require.NotNil(t, autoFailoverParamsSchema) + assert.Equal(t, pulsarAdminNsIsolationPolicyParamsDesc, autoFailoverParamsSchema.Description) +} diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go index f742f6c..c32d3ef 100644 --- a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools.go @@ -17,14 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddNsIsolationPolicyTools adds namespace isolation policy related tools to the MCP server -func PulsarAdminAddNsIsolationPolicyTools(s *server.MCPServer, readOnly bool, features []string) { - // Use the new builder pattern +func PulsarAdminAddNsIsolationPolicyTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarbuilders.NewPulsarAdminNsIsolationPolicyToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -37,8 +36,7 @@ func PulsarAdminAddNsIsolationPolicyTools(s *server.MCPServer, readOnly bool, fe return } - // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_nsisolationpolicy_tools_legacy.go b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools_legacy.go new file mode 100644 index 0000000..405945f --- /dev/null +++ b/pkg/mcp/pulsar_admin_nsisolationpolicy_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddNsIsolationPolicyToolsLegacy registers namespace isolation policy tools for the legacy server. +func PulsarAdminAddNsIsolationPolicyToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminNsIsolationPolicyLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 914b8e6b28413f4224117f64c9e83aec4d7172fb Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 12:45:14 +0800 Subject: [PATCH 66/85] feat: migrate pulsar packages tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/admin_tools_test.go | 63 ++++ pkg/mcp/builders/pulsar/packages.go | 279 ++++++++++-------- pkg/mcp/builders/pulsar/packages_legacy.go | 117 ++++++++ pkg/mcp/pulsar_admin_packages_tools.go | 6 +- pkg/mcp/pulsar_admin_packages_tools_legacy.go | 41 +++ 6 files changed, 379 insertions(+), 129 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/packages_legacy.go create mode 100644 pkg/mcp/pulsar_admin_packages_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 34cc4dc..d1aac92 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -121,7 +121,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddNamespaceToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNamespacePolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNsIsolationPolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddPackagesTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddPackagesToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSchemasToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSubscriptionToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/admin_tools_test.go b/pkg/mcp/builders/pulsar/admin_tools_test.go index e0b758a..83051a7 100644 --- a/pkg/mcp/builders/pulsar/admin_tools_test.go +++ b/pkg/mcp/builders/pulsar/admin_tools_test.go @@ -252,6 +252,69 @@ func TestPulsarAdminSinksToolBuilder_ReadOnlyRejectsCreate(t *testing.T) { assert.Contains(t, err.Error(), "read-only") } +func TestPulsarAdminPackagesToolBuilder(t *testing.T) { + builder := NewPulsarAdminPackagesToolBuilder() + + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-packages"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_package", tools[0].Definition().Name) + + config.Features = []string{"unrelated-feature"} + tools, err = builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Empty(t, tools) +} + +func TestPulsarAdminPackagesToolSchema(t *testing.T) { + builder := NewPulsarAdminPackagesToolBuilder() + tool, err := builder.buildPackagesTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_package", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "packageName", + "namespace", + "type", + "description", + "contact", + "path", + "properties", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminPackagesResourceDesc, resourceSchema.Description) +} + +func TestPulsarAdminPackagesToolBuilder_ReadOnlyRejectsUpload(t *testing.T) { + builder := NewPulsarAdminPackagesToolBuilder() + handler := builder.buildPackagesHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminPackagesInput{ + Resource: "package", + Operation: "upload", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} + func TestPulsarAdminSubscriptionToolBuilder(t *testing.T) { builder := NewPulsarAdminSubscriptionToolBuilder() diff --git a/pkg/mcp/builders/pulsar/packages.go b/pkg/mcp/builders/pulsar/packages.go index 7d4d0f0..e0f6427 100644 --- a/pkg/mcp/builders/pulsar/packages.go +++ b/pkg/mcp/builders/pulsar/packages.go @@ -20,13 +20,46 @@ import ( "fmt" "strings" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminPackagesInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + PackageName *string `json:"packageName,omitempty"` + Namespace *string `json:"namespace,omitempty"` + PackageType *string `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + Contact *string `json:"contact,omitempty"` + Path *string `json:"path,omitempty"` + Properties map[string]any `json:"properties,omitempty"` +} + +const ( + pulsarAdminPackagesResourceDesc = "Resource to operate on. Available resources:\n" + + "- package: A specific package\n" + + "- packages: All packages of a specific type" + pulsarAdminPackagesOperationDesc = "Operation to perform. Available operations:\n" + + "- list: List all packages of a specific type or versions of a package\n" + + "- get: Get metadata of a package\n" + + "- update: Update metadata of a package (requires super-user permissions)\n" + + "- delete: Delete a package (requires super-user permissions)\n" + + "- download: Download a package (requires super-user permissions)\n" + + "- upload: Upload a package (requires super-user permissions)" + pulsarAdminPackagesPackageNameDesc = "Name of the package to operate on. " + + "Required for operations on a specific package: get, update, delete, download, upload" + pulsarAdminPackagesNamespaceDesc = "The namespace name. Required for listing packages of a specific type" + pulsarAdminPackagesTypeDesc = "Package type (function, source, sink). Required for listing packages of a specific type" + pulsarAdminPackagesDescription = "Description of the package. Required for update and upload operations" + pulsarAdminPackagesContactDesc = "Contact information for the package. Optional for update and upload operations" + pulsarAdminPackagesPathDesc = "Path to download a package to or upload a package from. Required for download and upload operations" + pulsarAdminPackagesProperties = "Additional properties for the package as key-value pairs. Optional for update and upload operations" +) + // PulsarAdminPackagesToolBuilder implements the ToolBuilder interface for Pulsar admin packages // /nolint:revive type PulsarAdminPackagesToolBuilder struct { @@ -56,7 +89,7 @@ func NewPulsarAdminPackagesToolBuilder() *PulsarAdminPackagesToolBuilder { } // BuildTools builds the Pulsar admin packages tool list -func (b *PulsarAdminPackagesToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminPackagesToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -68,11 +101,14 @@ func (b *PulsarAdminPackagesToolBuilder) BuildTools(_ context.Context, config bu } // Build tools - tool := b.buildPackagesTool() + tool, err := b.buildPackagesTool() + if err != nil { + return nil, err + } handler := b.buildPackagesHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminPackagesInput, any]{ Tool: tool, Handler: handler, }, @@ -80,109 +116,71 @@ func (b *PulsarAdminPackagesToolBuilder) BuildTools(_ context.Context, config bu } // buildPackagesTool builds the Pulsar admin packages MCP tool definition -func (b *PulsarAdminPackagesToolBuilder) buildPackagesTool() mcp.Tool { +func (b *PulsarAdminPackagesToolBuilder) buildPackagesTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminPackagesInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage packages in Apache Pulsar. Support package scheme: `function://`, `source://`, `sink://`" + "Allows listing, viewing, updating, downloading and uploading packages. " + "Some operations require super-user permissions." - resourceDesc := "Resource to operate on. Available resources:\n" + - "- package: A specific package\n" + - "- packages: All packages of a specific type" - - operationDesc := "Operation to perform. Available operations:\n" + - "- list: List all packages of a specific type or versions of a package\n" + - "- get: Get metadata of a package\n" + - "- update: Update metadata of a package (requires super-user permissions)\n" + - "- delete: Delete a package (requires super-user permissions)\n" + - "- download: Download a package (requires super-user permissions)\n" + - "- upload: Upload a package (requires super-user permissions)" - - return mcp.NewTool("pulsar_admin_package", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("packageName", - mcp.Description("Name of the package to operate on. "+ - "Required for operations on a specific package: get, update, delete, download, upload"), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name. Required for listing packages of a specific type"), - ), - mcp.WithString("type", - mcp.Description("Package type (function, source, sink). Required for listing packages of a specific type"), - ), - mcp.WithString("description", - mcp.Description("Description of the package. Required for update and upload operations"), - ), - mcp.WithString("contact", - mcp.Description("Contact information for the package. Optional for update and upload operations"), - ), - mcp.WithString("path", - mcp.Description("Path to download a package to or upload a package from. Required for download and upload operations"), - ), - mcp.WithObject("properties", - mcp.Description("Additional properties for the package as key-value pairs. Optional for update and upload operations"), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_package", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildPackagesHandler builds the Pulsar admin packages handler function -func (b *PulsarAdminPackagesToolBuilder) buildPackagesHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil +func (b *PulsarAdminPackagesToolBuilder) buildPackagesHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminPackagesInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminPackagesInput) (*sdk.CallToolResult, any, error) { + resource := strings.ToLower(strings.TrimSpace(input.Resource)) + if resource == "" { + return nil, nil, fmt.Errorf("missing required parameter 'resource'; please specify one of: package, packages") } - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + operation := strings.ToLower(strings.TrimSpace(input.Operation)) + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'; please specify one of: list, get, update, delete, download, upload") } - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - // Validate write operations in read-only mode if readOnly && (operation == "update" || operation == "delete" || operation == "download" || operation == "upload") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } client, err := session.GetAdminV3Client() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get Pulsar client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to get Pulsar client: %v", err) } // Dispatch based on resource type switch resource { case "package": - return b.handlePackageResource(client, operation, request) + result, err := b.handlePackageResource(client, operation, input) + return result, nil, err case "packages": - return b.handlePackagesResource(client, operation, request) + result, err := b.handlePackagesResource(client, operation, input) + return result, nil, err default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Available resources: package, packages", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. Available resources: package, packages", resource) } } } -// Helper functions - // handlePackageResource handles operations on a specific package -func (b *PulsarAdminPackagesToolBuilder) handlePackageResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - packageName, err := request.RequireString("packageName") +func (b *PulsarAdminPackagesToolBuilder) handlePackageResource(client cmdutils.Client, operation string, input pulsarAdminPackagesInput) (*sdk.CallToolResult, error) { + packageName, err := requireString(input.PackageName, "packageName") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'packageName' for package operations: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'packageName' for package operations: %v", err) } switch operation { @@ -190,152 +188,183 @@ func (b *PulsarAdminPackagesToolBuilder) handlePackageResource(client cmdutils.C // Get package versions packageVersions, err := client.Packages().ListVersions(packageName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list package versions: %v", err)), nil + return nil, fmt.Errorf("failed to list package versions: %v", err) } // Convert result to JSON string packageVersionsJSON, err := json.Marshal(packageVersions) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package versions: %v", err)), nil + return nil, fmt.Errorf("failed to serialize package versions: %v", err) } - return mcp.NewToolResultText(string(packageVersionsJSON)), nil + return textResult(string(packageVersionsJSON)), nil case "get": // Get package metadata metadata, err := client.Packages().GetMetadata(packageName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get package metadata: %v", err)), nil + return nil, fmt.Errorf("failed to get package metadata: %v", err) } // Convert result to JSON string metadataJSON, err := json.Marshal(metadata) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package metadata: %v", err)), nil + return nil, fmt.Errorf("failed to serialize package metadata: %v", err) } - return mcp.NewToolResultText(string(metadataJSON)), nil + return textResult(string(metadataJSON)), nil case "update": - description, err := request.RequireString("description") + description, err := requireString(input.Description, "description") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.update: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'description' for package.update: %v", err) } - contact := request.GetString("contact", "") - properties := b.extractProperties(request.GetArguments()) + contact := "" + if input.Contact != nil { + contact = *input.Contact + } + properties := b.extractProperties(input.Properties) // Update package metadata err = client.Packages().UpdateMetadata(packageName, description, contact, properties) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to update package metadata: %v", err)), nil + return nil, fmt.Errorf("failed to update package metadata: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("The metadata of the package '%s' updated successfully", packageName)), nil + return textResult(fmt.Sprintf("The metadata of the package '%s' updated successfully", packageName)), nil case "delete": // Delete package err = client.Packages().Delete(packageName) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to delete package: %v", err)), nil + return nil, fmt.Errorf("failed to delete package: %v", err) } - return mcp.NewToolResultText(fmt.Sprintf("The package '%s' deleted successfully", packageName)), nil + return textResult(fmt.Sprintf("The package '%s' deleted successfully", packageName)), nil case "download": - path, err := request.RequireString("path") + path, err := requireString(input.Path, "path") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.download: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'path' for package.download: %v", err) } // Download package err = client.Packages().Download(packageName, path) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to download package: %v", err)), nil + return nil, fmt.Errorf("failed to download package: %v", err) } - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("The package '%s' downloaded to path '%s' successfully", packageName, path), ), nil case "upload": - path, err := request.RequireString("path") + path, err := requireString(input.Path, "path") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'path' for package.upload: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'path' for package.upload: %v", err) } - description, err := request.RequireString("description") + description, err := requireString(input.Description, "description") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'description' for package.upload: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'description' for package.upload: %v", err) } - contact := request.GetString("contact", "") - properties := b.extractProperties(request.GetArguments()) + contact := "" + if input.Contact != nil { + contact = *input.Contact + } + properties := b.extractProperties(input.Properties) // Upload package err = client.Packages().Upload(packageName, path, description, contact, properties) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to upload package: %v", err)), nil + return nil, fmt.Errorf("failed to upload package: %v", err) } - return mcp.NewToolResultText( + return textResult( fmt.Sprintf("The package '%s' uploaded from path '%s' successfully", packageName, path), ), nil default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'package': %s. Available operations: list, get, update, delete, download, upload", operation)), nil + return nil, fmt.Errorf("invalid operation for resource 'package': %s. Available operations: list, get, update, delete, download, upload", operation) } } // handlePackagesResource handles operations on multiple packages -func (b *PulsarAdminPackagesToolBuilder) handlePackagesResource(client cmdutils.Client, operation string, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarAdminPackagesToolBuilder) handlePackagesResource(client cmdutils.Client, operation string, input pulsarAdminPackagesInput) (*sdk.CallToolResult, error) { switch operation { case "list": - packageType, err := request.RequireString("type") + packageType, err := requireString(input.PackageType, "type") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'type' for packages.list: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'type' for packages.list: %v", err) } - namespace, err := request.RequireString("namespace") + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for packages.list: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for packages.list: %v", err) } // Get package list packages, err := client.Packages().List(packageType, namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to list packages: %v", err)), nil + return nil, fmt.Errorf("failed to list packages: %v", err) } // Convert result to JSON string packagesJSON, err := json.Marshal(packages) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize package list: %v", err)), nil + return nil, fmt.Errorf("failed to serialize package list: %v", err) } - return mcp.NewToolResultText(string(packagesJSON)), nil + return textResult(string(packagesJSON)), nil default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation for resource 'packages': %s. Available operations: list", operation)), nil + return nil, fmt.Errorf("invalid operation for resource 'packages': %s. Available operations: list", operation) } } -// extractProperties extracts properties from request arguments -func (b *PulsarAdminPackagesToolBuilder) extractProperties(args map[string]interface{}) map[string]string { - var properties map[string]string - propsObj, ok := args["properties"] - if ok && propsObj != nil { - // Convert to map[string]string - if propsMap, isMap := propsObj.(map[string]interface{}); isMap { - properties = make(map[string]string) - for k, v := range propsMap { - if strVal, ok := v.(string); ok { - properties[k] = strVal - } else { - properties[k] = fmt.Sprintf("%v", v) - } - } +// extractProperties extracts properties from input arguments +func (b *PulsarAdminPackagesToolBuilder) extractProperties(props map[string]any) map[string]string { + if len(props) == 0 { + return nil + } + + properties := make(map[string]string, len(props)) + for key, value := range props { + switch typed := value.(type) { + case string: + properties[key] = typed + default: + properties[key] = fmt.Sprintf("%v", value) } } + return properties } + +func buildPulsarAdminPackagesInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminPackagesInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminPackagesResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminPackagesOperationDesc) + setSchemaDescription(schema, "packageName", pulsarAdminPackagesPackageNameDesc) + setSchemaDescription(schema, "namespace", pulsarAdminPackagesNamespaceDesc) + setSchemaDescription(schema, "type", pulsarAdminPackagesTypeDesc) + setSchemaDescription(schema, "description", pulsarAdminPackagesDescription) + setSchemaDescription(schema, "contact", pulsarAdminPackagesContactDesc) + setSchemaDescription(schema, "path", pulsarAdminPackagesPathDesc) + setSchemaDescription(schema, "properties", pulsarAdminPackagesProperties) + + normalizeAdditionalProperties(schema) + return schema, nil +} diff --git a/pkg/mcp/builders/pulsar/packages_legacy.go b/pkg/mcp/builders/pulsar/packages_legacy.go new file mode 100644 index 0000000..6b1c246 --- /dev/null +++ b/pkg/mcp/builders/pulsar/packages_legacy.go @@ -0,0 +1,117 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminPackagesLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin packages. +// /nolint:revive +type PulsarAdminPackagesLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminPackagesLegacyToolBuilder creates a new Pulsar admin packages legacy tool builder instance. +func NewPulsarAdminPackagesLegacyToolBuilder() *PulsarAdminPackagesLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_packages", + Version: "1.0.0", + Description: "Pulsar admin packages management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "packages"}, + } + + features := []string{ + "pulsar-admin-packages", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminPackagesLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin packages legacy tool list. +func (b *PulsarAdminPackagesLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildPackagesTool() + if err != nil { + return nil, err + } + handler := b.buildPackagesHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminPackagesLegacyToolBuilder) buildPackagesTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminPackagesInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Manage packages in Apache Pulsar. Support package scheme: `function://`, `source://`, `sink://`" + + "Allows listing, viewing, updating, downloading and uploading packages. " + + "Some operations require super-user permissions." + + return mcp.Tool{ + Name: "pulsar_admin_package", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminPackagesLegacyToolBuilder) buildPackagesHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminPackagesToolBuilder() + sdkHandler := sdkBuilder.buildPackagesHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminPackagesInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/pulsar_admin_packages_tools.go b/pkg/mcp/pulsar_admin_packages_tools.go index afc44cd..70eeed6 100644 --- a/pkg/mcp/pulsar_admin_packages_tools.go +++ b/pkg/mcp/pulsar_admin_packages_tools.go @@ -18,7 +18,7 @@ import ( "context" "strings" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) @@ -54,7 +54,7 @@ func IsPackageURLSupported(functionPkgURL string) bool { } // PulsarAdminAddPackagesTools adds package-related tools to the MCP server -func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features []string) { +func PulsarAdminAddPackagesTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminPackagesToolBuilder() config := builders.ToolBuildConfig{ @@ -70,6 +70,6 @@ func PulsarAdminAddPackagesTools(s *server.MCPServer, readOnly bool, features [] // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_packages_tools_legacy.go b/pkg/mcp/pulsar_admin_packages_tools_legacy.go new file mode 100644 index 0000000..da38d94 --- /dev/null +++ b/pkg/mcp/pulsar_admin_packages_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddPackagesToolsLegacy registers Pulsar admin package tools for the legacy server. +func PulsarAdminAddPackagesToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminPackagesLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 227a802c74d497b772541e6159bbb975371b3919 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 12:54:32 +0800 Subject: [PATCH 67/85] feat: migrate pulsar resource quotas tool --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/resourcequotas.go | 286 ++++++++++-------- .../builders/pulsar/resourcequotas_legacy.go | 119 ++++++++ .../builders/pulsar/resourcequotas_test.go | 172 +++++++++++ pkg/mcp/pulsar_admin_resourcequotas_tools.go | 6 +- ...ulsar_admin_resourcequotas_tools_legacy.go | 41 +++ 6 files changed, 501 insertions(+), 125 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/resourcequotas_legacy.go create mode 100644 pkg/mcp/builders/pulsar/resourcequotas_test.go create mode 100644 pkg/mcp/pulsar_admin_resourcequotas_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index d1aac92..ca9cd3e 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -122,7 +122,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddNamespacePolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddNsIsolationPolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddPackagesToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarAdminAddResourceQuotasTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarAdminAddResourceQuotasToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSchemasToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSubscriptionToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTenantToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/resourcequotas.go b/pkg/mcp/builders/pulsar/resourcequotas.go index 7b53dec..9129778 100644 --- a/pkg/mcp/builders/pulsar/resourcequotas.go +++ b/pkg/mcp/builders/pulsar/resourcequotas.go @@ -21,13 +21,52 @@ import ( "strings" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarAdminResourceQuotasInput struct { + Resource string `json:"resource"` + Operation string `json:"operation"` + Namespace *string `json:"namespace,omitempty"` + Bundle *string `json:"bundle,omitempty"` + MsgRateIn *float64 `json:"msgRateIn,omitempty"` + MsgRateOut *float64 `json:"msgRateOut,omitempty"` + BandwidthIn *float64 `json:"bandwidthIn,omitempty"` + BandwidthOut *float64 `json:"bandwidthOut,omitempty"` + Memory *float64 `json:"memory,omitempty"` + Dynamic *bool `json:"dynamic,omitempty"` +} + +const ( + pulsarAdminResourceQuotasResourceDesc = "Resource to operate on. Available resources:\n" + + "- quota: The resource quota configuration for a specific namespace bundle or the default quota" + pulsarAdminResourceQuotasOperationDesc = "Operation to perform. Available operations:\n" + + "- get: Get the resource quota for a specified namespace bundle or default quota\n" + + "- set: Set the resource quota for a specified namespace bundle or default quota (requires super-user permissions)\n" + + "- reset: Reset a namespace bundle's resource quota to default value (requires super-user permissions)" + pulsarAdminResourceQuotasNamespaceDesc = "The namespace name in the format 'tenant/namespace'. " + + "Optional for 'get' and 'set' operations (to get/set default quota if omitted). " + + "Required for 'reset' operation." + pulsarAdminResourceQuotasBundleDesc = "The bundle range in the format '{start-boundary}_{end-boundary}'. " + + "Must be specified together with namespace. Bundle is a hash range of the topic names belonging to a namespace." + pulsarAdminResourceQuotasMsgRateInDesc = "Expected incoming messages per second. Required for 'set' operation. " + + "This defines the maximum rate of incoming messages allowed for the namespace or bundle." + pulsarAdminResourceQuotasMsgRateOutDesc = "Expected outgoing messages per second. Required for 'set' operation. " + + "This defines the maximum rate of outgoing messages allowed for the namespace or bundle." + pulsarAdminResourceQuotasBandwidthInDesc = "Expected inbound bandwidth in bytes per second. Required for 'set' operation. " + + "This defines the maximum rate of incoming bytes allowed for the namespace or bundle." + pulsarAdminResourceQuotasBandwidthOutDesc = "Expected outbound bandwidth in bytes per second. Required for 'set' operation. " + + "This defines the maximum rate of outgoing bytes allowed for the namespace or bundle." + pulsarAdminResourceQuotasMemoryDesc = "Expected memory usage in Mbytes. Required for 'set' operation. " + + "This defines the maximum memory allowed for storing messages for the namespace or bundle." + pulsarAdminResourceQuotasDynamicDesc = "Whether to allow quota to be dynamically re-calculated. Optional for 'set' operation. " + + "If true, the broker can dynamically adjust the quota based on the current usage patterns." +) + // PulsarAdminResourceQuotasToolBuilder implements the ToolBuilder interface for Pulsar admin resource quotas // /nolint:revive type PulsarAdminResourceQuotasToolBuilder struct { @@ -57,7 +96,7 @@ func NewPulsarAdminResourceQuotasToolBuilder() *PulsarAdminResourceQuotasToolBui } // BuildTools builds the Pulsar admin resource quotas tool list -func (b *PulsarAdminResourceQuotasToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarAdminResourceQuotasToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -69,11 +108,14 @@ func (b *PulsarAdminResourceQuotasToolBuilder) BuildTools(_ context.Context, con } // Build tools - tool := b.buildResourceQuotasTool() + tool, err := b.buildResourceQuotasTool() + if err != nil { + return nil, err + } handler := b.buildResourceQuotasHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarAdminResourceQuotasInput, any]{ Tool: tool, Handler: handler, }, @@ -81,129 +123,90 @@ func (b *PulsarAdminResourceQuotasToolBuilder) BuildTools(_ context.Context, con } // buildResourceQuotasTool builds the Pulsar admin resource quotas MCP tool definition -func (b *PulsarAdminResourceQuotasToolBuilder) buildResourceQuotasTool() mcp.Tool { +func (b *PulsarAdminResourceQuotasToolBuilder) buildResourceQuotasTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarAdminResourceQuotasInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Manage Apache Pulsar resource quotas for brokers, namespaces and bundles. " + "Resource quotas define limits for resource usage such as message rates, bandwidth, and memory. " + "These quotas help prevent resource abuse and ensure fair resource allocation across the Pulsar cluster. " + "Operations include getting, setting, and resetting quotas. " + "Requires super-user permissions for all operations." - resourceDesc := "Resource to operate on. Available resources:\n" + - "- quota: The resource quota configuration for a specific namespace bundle or the default quota" - - operationDesc := "Operation to perform. Available operations:\n" + - "- get: Get the resource quota for a specified namespace bundle or default quota\n" + - "- set: Set the resource quota for a specified namespace bundle or default quota (requires super-user permissions)\n" + - "- reset: Reset a namespace bundle's resource quota to default value (requires super-user permissions)" - - return mcp.NewTool("pulsar_admin_resourcequota", - mcp.WithDescription(toolDesc), - mcp.WithString("resource", mcp.Required(), - mcp.Description(resourceDesc), - ), - mcp.WithString("operation", mcp.Required(), - mcp.Description(operationDesc), - ), - mcp.WithString("namespace", - mcp.Description("The namespace name in the format 'tenant/namespace'. "+ - "Optional for 'get' and 'set' operations (to get/set default quota if omitted). "+ - "Required for 'reset' operation."), - ), - mcp.WithString("bundle", - mcp.Description("The bundle range in the format '{start-boundary}_{end-boundary}'. "+ - "Must be specified together with namespace. Bundle is a hash range of the topic names belonging to a namespace."), - ), - mcp.WithNumber("msgRateIn", - mcp.Description("Expected incoming messages per second. Required for 'set' operation. "+ - "This defines the maximum rate of incoming messages allowed for the namespace or bundle."), - ), - mcp.WithNumber("msgRateOut", - mcp.Description("Expected outgoing messages per second. Required for 'set' operation. "+ - "This defines the maximum rate of outgoing messages allowed for the namespace or bundle."), - ), - mcp.WithNumber("bandwidthIn", - mcp.Description("Expected inbound bandwidth in bytes per second. Required for 'set' operation. "+ - "This defines the maximum rate of incoming bytes allowed for the namespace or bundle."), - ), - mcp.WithNumber("bandwidthOut", - mcp.Description("Expected outbound bandwidth in bytes per second. Required for 'set' operation. "+ - "This defines the maximum rate of outgoing bytes allowed for the namespace or bundle."), - ), - mcp.WithNumber("memory", - mcp.Description("Expected memory usage in Mbytes. Required for 'set' operation. "+ - "This defines the maximum memory allowed for storing messages for the namespace or bundle."), - ), - mcp.WithBoolean("dynamic", - mcp.Description("Whether to allow quota to be dynamically re-calculated. Optional for 'set' operation. "+ - "If true, the broker can dynamically adjust the quota based on the current usage patterns."), - ), - ) + return &sdk.Tool{ + Name: "pulsar_admin_resourcequota", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildResourceQuotasHandler builds the Pulsar admin resource quotas handler function -func (b *PulsarAdminResourceQuotasToolBuilder) buildResourceQuotasHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters - resource, err := request.RequireString("resource") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource: %v", err)), nil +func (b *PulsarAdminResourceQuotasToolBuilder) buildResourceQuotasHandler(readOnly bool) builders.ToolHandlerFunc[pulsarAdminResourceQuotasInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarAdminResourceQuotasInput) (*sdk.CallToolResult, any, error) { + resource := strings.ToLower(input.Resource) + if resource == "" { + return nil, nil, fmt.Errorf("missing required parameter 'resource'; please specify: quota") } - operation, err := request.RequireString("operation") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get operation: %v", err)), nil + operation := strings.ToLower(input.Operation) + if operation == "" { + return nil, nil, fmt.Errorf("missing required parameter 'operation'; please specify: get, set, reset") } - // Normalize parameters - resource = strings.ToLower(resource) - operation = strings.ToLower(operation) - // Validate write operations in read-only mode if readOnly && (operation == "set" || operation == "reset") { - return mcp.NewToolResultError("Write operations are not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("write operations are not allowed in read-only mode") } // Verify resource type if resource != "quota" { - return mcp.NewToolResultError(fmt.Sprintf("Invalid resource: %s. Only 'quota' is supported", resource)), nil + return nil, nil, fmt.Errorf("invalid resource: %s. available resources: quota", resource) } // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } admin, err := session.GetAdminClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get admin client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to get admin client: %v", err) } // Dispatch based on operation switch operation { case "get": - return b.handleQuotaGet(admin, request) + result, handlerErr := b.handleQuotaGet(admin, input) + return result, nil, handlerErr case "set": - return b.handleQuotaSet(admin, request) + result, handlerErr := b.handleQuotaSet(admin, input) + return result, nil, handlerErr case "reset": - return b.handleQuotaReset(admin, request) + result, handlerErr := b.handleQuotaReset(admin, input) + return result, nil, handlerErr default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid operation: %s. Available operations: get, set, reset", operation)), nil + return nil, nil, fmt.Errorf("invalid operation: %s. available operations: get, set, reset", operation) } } } -// Helper functions - // handleQuotaGet handles getting a resource quota -func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaGet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get optional parameters - namespace := request.GetString("namespace", "") - bundle := request.GetString("bundle", "") +func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaGet(admin cmdutils.Client, input pulsarAdminResourceQuotasInput) (*sdk.CallToolResult, error) { + namespace := "" + if input.Namespace != nil { + namespace = *input.Namespace + } + bundle := "" + if input.Bundle != nil { + bundle = *input.Bundle + } // Check if both namespace and bundle are provided or neither is provided if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { - return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil + return nil, fmt.Errorf("when specifying a namespace, you must also specify a bundle and vice versa") } var ( @@ -215,66 +218,74 @@ func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaGet(admin cmdutils.Cli // Get default resource quota resourceQuotaData, getErr = admin.ResourceQuotas().GetDefaultResourceQuota() if getErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get default resource quota: %v", getErr)), nil + return nil, fmt.Errorf("failed to get default resource quota: %v", getErr) } } else { // Get namespace bundle resource quota nsName, getErr := utils.GetNamespaceName(namespace) if getErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, getErr)), nil + return nil, fmt.Errorf("invalid namespace name '%s': %v", namespace, getErr) } resourceQuotaData, getErr = admin.ResourceQuotas().GetNamespaceBundleResourceQuota(nsName.String(), bundle) if getErr != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get resource quota for namespace '%s' bundle '%s': %v", - namespace, bundle, getErr)), nil + return nil, fmt.Errorf("failed to get resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, getErr) } } // Format the output jsonBytes, err := json.Marshal(resourceQuotaData) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to marshal resource quota data: %v", err)), nil + return nil, fmt.Errorf("failed to marshal resource quota data: %v", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return textResult(string(jsonBytes)), nil } // handleQuotaSet handles setting a resource quota -func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaSet(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters for set operation - msgRateIn, err := request.RequireFloat("msgRateIn") +func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaSet(admin cmdutils.Client, input pulsarAdminResourceQuotasInput) (*sdk.CallToolResult, error) { + msgRateIn, err := requireFloat(input.MsgRateIn, "msgRateIn") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateIn' for quota.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'msgRateIn' for quota.set: %v", err) } - msgRateOut, err := request.RequireFloat("msgRateOut") + msgRateOut, err := requireFloat(input.MsgRateOut, "msgRateOut") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'msgRateOut' for quota.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'msgRateOut' for quota.set: %v", err) } - bandwidthIn, err := request.RequireFloat("bandwidthIn") + bandwidthIn, err := requireFloat(input.BandwidthIn, "bandwidthIn") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthIn' for quota.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'bandwidthIn' for quota.set: %v", err) } - bandwidthOut, err := request.RequireFloat("bandwidthOut") + bandwidthOut, err := requireFloat(input.BandwidthOut, "bandwidthOut") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bandwidthOut' for quota.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'bandwidthOut' for quota.set: %v", err) } - memory, err := request.RequireFloat("memory") + memory, err := requireFloat(input.Memory, "memory") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'memory' for quota.set: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'memory' for quota.set: %v", err) } // Get optional parameters - namespace := request.GetString("namespace", "") - bundle := request.GetString("bundle", "") - dynamic := request.GetBool("dynamic", false) + namespace := "" + if input.Namespace != nil { + namespace = *input.Namespace + } + bundle := "" + if input.Bundle != nil { + bundle = *input.Bundle + } + dynamic := false + if input.Dynamic != nil { + dynamic = *input.Dynamic + } // Check if both namespace and bundle are provided or neither is provided if (namespace != "" && bundle == "") || (namespace == "" && bundle != "") { - return mcp.NewToolResultError("When specifying a namespace, you must also specify a bundle and vice versa."), nil + return nil, fmt.Errorf("when specifying a namespace, you must also specify a bundle and vice versa") } // Create resource quota object @@ -291,48 +302,81 @@ func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaSet(admin cmdutils.Cli // Set default resource quota err = admin.ResourceQuotas().SetDefaultResourceQuota(*quota) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set default resource quota: %v", err)), nil + return nil, fmt.Errorf("failed to set default resource quota: %v", err) } resultMsg = "Default resource quota set successfully" } else { // Set namespace bundle resource quota err = admin.ResourceQuotas().SetNamespaceBundleResourceQuota(namespace, bundle, *quota) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set resource quota for namespace '%s' bundle '%s': %v", - namespace, bundle, err)), nil + return nil, fmt.Errorf("failed to set resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, err) } resultMsg = fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' set successfully", namespace, bundle) } - return mcp.NewToolResultText(resultMsg), nil + return textResult(resultMsg), nil } // handleQuotaReset handles resetting a resource quota -func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaReset(admin cmdutils.Client, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get required parameters for reset operation - namespace, err := request.RequireString("namespace") +func (b *PulsarAdminResourceQuotasToolBuilder) handleQuotaReset(admin cmdutils.Client, input pulsarAdminResourceQuotasInput) (*sdk.CallToolResult, error) { + namespace, err := requireString(input.Namespace, "namespace") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'namespace' for quota.reset: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'namespace' for quota.reset: %v", err) } - bundle, err := request.RequireString("bundle") + bundle, err := requireString(input.Bundle, "bundle") if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Missing required parameter 'bundle' for quota.reset: %v", err)), nil + return nil, fmt.Errorf("missing required parameter 'bundle' for quota.reset: %v", err) } // Parse namespace name nsName, err := utils.GetNamespaceName(namespace) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Invalid namespace name '%s': %v", namespace, err)), nil + return nil, fmt.Errorf("invalid namespace name '%s': %v", namespace, err) } // Reset namespace bundle resource quota err = admin.ResourceQuotas().ResetNamespaceBundleResourceQuota(nsName.String(), bundle) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to reset resource quota for namespace '%s' bundle '%s': %v", - namespace, bundle, err)), nil + return nil, fmt.Errorf("failed to reset resource quota for namespace '%s' bundle '%s': %v", + namespace, bundle, err) } - return mcp.NewToolResultText(fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' reset to default successfully", + return textResult(fmt.Sprintf("Resource quota for namespace '%s' bundle '%s' reset to default successfully", namespace, bundle)), nil } + +func buildPulsarAdminResourceQuotasInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarAdminResourceQuotasInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + + setSchemaDescription(schema, "resource", pulsarAdminResourceQuotasResourceDesc) + setSchemaDescription(schema, "operation", pulsarAdminResourceQuotasOperationDesc) + setSchemaDescription(schema, "namespace", pulsarAdminResourceQuotasNamespaceDesc) + setSchemaDescription(schema, "bundle", pulsarAdminResourceQuotasBundleDesc) + setSchemaDescription(schema, "msgRateIn", pulsarAdminResourceQuotasMsgRateInDesc) + setSchemaDescription(schema, "msgRateOut", pulsarAdminResourceQuotasMsgRateOutDesc) + setSchemaDescription(schema, "bandwidthIn", pulsarAdminResourceQuotasBandwidthInDesc) + setSchemaDescription(schema, "bandwidthOut", pulsarAdminResourceQuotasBandwidthOutDesc) + setSchemaDescription(schema, "memory", pulsarAdminResourceQuotasMemoryDesc) + setSchemaDescription(schema, "dynamic", pulsarAdminResourceQuotasDynamicDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} + +func requireFloat(value *float64, key string) (float64, error) { + if value == nil { + return 0, fmt.Errorf("required argument %q not found", key) + } + return *value, nil +} diff --git a/pkg/mcp/builders/pulsar/resourcequotas_legacy.go b/pkg/mcp/builders/pulsar/resourcequotas_legacy.go new file mode 100644 index 0000000..2f9f65a --- /dev/null +++ b/pkg/mcp/builders/pulsar/resourcequotas_legacy.go @@ -0,0 +1,119 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" +) + +// PulsarAdminResourceQuotasLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar admin resource quotas. +// /nolint:revive +type PulsarAdminResourceQuotasLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarAdminResourceQuotasLegacyToolBuilder creates a new Pulsar admin resource quotas legacy tool builder instance. +func NewPulsarAdminResourceQuotasLegacyToolBuilder() *PulsarAdminResourceQuotasLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_admin_resourcequotas", + Version: "1.0.0", + Description: "Pulsar admin resource quotas management tools", + Category: "pulsar_admin", + Tags: []string{"pulsar", "admin", "resourcequotas"}, + } + + features := []string{ + "pulsar-admin-resourcequotas", + "all", + "all-pulsar", + "pulsar-admin", + } + + return &PulsarAdminResourceQuotasLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar admin resource quotas legacy tool list. +func (b *PulsarAdminResourceQuotasLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + if err := b.Validate(config); err != nil { + return nil, err + } + + tool, err := b.buildResourceQuotasTool() + if err != nil { + return nil, err + } + handler := b.buildResourceQuotasHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +func (b *PulsarAdminResourceQuotasLegacyToolBuilder) buildResourceQuotasTool() (mcp.Tool, error) { + inputSchema, err := buildPulsarAdminResourceQuotasInputSchema() + if err != nil { + return mcp.Tool{}, err + } + + schemaJSON, err := json.Marshal(inputSchema) + if err != nil { + return mcp.Tool{}, fmt.Errorf("marshal input schema: %w", err) + } + + toolDesc := "Manage Apache Pulsar resource quotas for brokers, namespaces and bundles. " + + "Resource quotas define limits for resource usage such as message rates, bandwidth, and memory. " + + "These quotas help prevent resource abuse and ensure fair resource allocation across the Pulsar cluster. " + + "Operations include getting, setting, and resetting quotas. " + + "Requires super-user permissions for all operations." + + return mcp.Tool{ + Name: "pulsar_admin_resourcequota", + Description: toolDesc, + RawInputSchema: schemaJSON, + }, nil +} + +func (b *PulsarAdminResourceQuotasLegacyToolBuilder) buildResourceQuotasHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + sdkBuilder := NewPulsarAdminResourceQuotasToolBuilder() + sdkHandler := sdkBuilder.buildResourceQuotasHandler(readOnly) + + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + var input pulsarAdminResourceQuotasInput + if err := request.BindArguments(&input); err != nil { + return mcp.NewToolResultError(fmt.Sprintf("failed to parse arguments: %v", err)), nil + } + + result, _, err := sdkHandler(ctx, nil, input) + if err != nil { + return mcp.NewToolResultError(err.Error()), nil + } + return legacyToolResultFromSDK(result), nil + } +} diff --git a/pkg/mcp/builders/pulsar/resourcequotas_test.go b/pkg/mcp/builders/pulsar/resourcequotas_test.go new file mode 100644 index 0000000..8d5e906 --- /dev/null +++ b/pkg/mcp/builders/pulsar/resourcequotas_test.go @@ -0,0 +1,172 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarAdminResourceQuotasToolBuilder(t *testing.T) { + builder := NewPulsarAdminResourceQuotasToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_admin_resourcequotas", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-admin-resourcequotas") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-admin-resourcequotas"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_admin_resourcequota", tools[0].Definition().Name) + }) + + t.Run("BuildTools_ReadOnly", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-admin-resourcequotas"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-admin-resourcequotas"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) +} + +func TestPulsarAdminResourceQuotasToolSchema(t *testing.T) { + builder := NewPulsarAdminResourceQuotasToolBuilder() + tool, err := builder.buildResourceQuotasTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_admin_resourcequota", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"resource", "operation"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "resource", + "operation", + "namespace", + "bundle", + "msgRateIn", + "msgRateOut", + "bandwidthIn", + "bandwidthOut", + "memory", + "dynamic", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + resourceSchema := schema.Properties["resource"] + require.NotNil(t, resourceSchema) + assert.Equal(t, pulsarAdminResourceQuotasResourceDesc, resourceSchema.Description) + + operationSchema := schema.Properties["operation"] + require.NotNil(t, operationSchema) + assert.Equal(t, pulsarAdminResourceQuotasOperationDesc, operationSchema.Description) + + namespaceSchema := schema.Properties["namespace"] + require.NotNil(t, namespaceSchema) + assert.Equal(t, pulsarAdminResourceQuotasNamespaceDesc, namespaceSchema.Description) + + bundleSchema := schema.Properties["bundle"] + require.NotNil(t, bundleSchema) + assert.Equal(t, pulsarAdminResourceQuotasBundleDesc, bundleSchema.Description) + + msgRateInSchema := schema.Properties["msgRateIn"] + require.NotNil(t, msgRateInSchema) + assert.Equal(t, pulsarAdminResourceQuotasMsgRateInDesc, msgRateInSchema.Description) + + msgRateOutSchema := schema.Properties["msgRateOut"] + require.NotNil(t, msgRateOutSchema) + assert.Equal(t, pulsarAdminResourceQuotasMsgRateOutDesc, msgRateOutSchema.Description) + + bandwidthInSchema := schema.Properties["bandwidthIn"] + require.NotNil(t, bandwidthInSchema) + assert.Equal(t, pulsarAdminResourceQuotasBandwidthInDesc, bandwidthInSchema.Description) + + bandwidthOutSchema := schema.Properties["bandwidthOut"] + require.NotNil(t, bandwidthOutSchema) + assert.Equal(t, pulsarAdminResourceQuotasBandwidthOutDesc, bandwidthOutSchema.Description) + + memorySchema := schema.Properties["memory"] + require.NotNil(t, memorySchema) + assert.Equal(t, pulsarAdminResourceQuotasMemoryDesc, memorySchema.Description) + + dynamicSchema := schema.Properties["dynamic"] + require.NotNil(t, dynamicSchema) + assert.Equal(t, pulsarAdminResourceQuotasDynamicDesc, dynamicSchema.Description) +} + +func TestPulsarAdminResourceQuotasToolBuilder_ReadOnlyRejectsWrite(t *testing.T) { + builder := NewPulsarAdminResourceQuotasToolBuilder() + handler := builder.buildResourceQuotasHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarAdminResourceQuotasInput{ + Resource: "quota", + Operation: "set", + }) + + require.Error(t, err) + assert.Contains(t, err.Error(), "read-only") +} diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools.go b/pkg/mcp/pulsar_admin_resourcequotas_tools.go index 6382d0c..1d95245 100644 --- a/pkg/mcp/pulsar_admin_resourcequotas_tools.go +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools.go @@ -17,13 +17,13 @@ package mcp import ( "context" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) // PulsarAdminAddResourceQuotasTools adds resource quotas-related tools to the MCP server -func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, features []string) { +func PulsarAdminAddResourceQuotasTools(s *sdk.Server, readOnly bool, features []string) { // Use the new builder pattern builder := pulsarbuilders.NewPulsarAdminResourceQuotasToolBuilder() config := builders.ToolBuildConfig{ @@ -39,6 +39,6 @@ func PulsarAdminAddResourceQuotasTools(s *server.MCPServer, readOnly bool, featu // Add all built tools to the server for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_admin_resourcequotas_tools_legacy.go b/pkg/mcp/pulsar_admin_resourcequotas_tools_legacy.go new file mode 100644 index 0000000..f25bb59 --- /dev/null +++ b/pkg/mcp/pulsar_admin_resourcequotas_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarbuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarAdminAddResourceQuotasToolsLegacy registers Pulsar admin resource quotas tools for the legacy server. +func PulsarAdminAddResourceQuotasToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarbuilders.NewPulsarAdminResourceQuotasLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 2848008e70f4c5ff751024ac6e02d38d8ae9275a Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 13:11:50 +0800 Subject: [PATCH 68/85] feat: migrate pulsar client produce tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/produce.go | 238 +++++++----- pkg/mcp/builders/pulsar/produce_legacy.go | 344 ++++++++++++++++++ pkg/mcp/builders/pulsar/produce_test.go | 154 ++++++++ pkg/mcp/pulsar_client_produce_tools.go | 20 +- pkg/mcp/pulsar_client_produce_tools_legacy.go | 41 +++ 6 files changed, 688 insertions(+), 111 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/produce_legacy.go create mode 100644 pkg/mcp/builders/pulsar/produce_test.go create mode 100644 pkg/mcp/pulsar_client_produce_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index ca9cd3e..5346a2e 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -132,7 +132,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddSourcesToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicPolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarClientAddProducerTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarClientAddProducerToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddPartitionsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/produce.go b/pkg/mcp/builders/pulsar/produce.go index 402b24c..c877191 100644 --- a/pkg/mcp/builders/pulsar/produce.go +++ b/pkg/mcp/builders/pulsar/produce.go @@ -22,12 +22,55 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarClientProduceInput struct { + Topic string `json:"topic"` + Messages []string `json:"messages,omitempty"` + NumProduce *float64 `json:"num-produce,omitempty"` + Rate *float64 `json:"rate,omitempty"` + DisableBatching bool `json:"disable-batching,omitempty"` + Chunking bool `json:"chunking,omitempty"` + Separator *string `json:"separator,omitempty"` + Properties []string `json:"properties,omitempty"` + Key *string `json:"key,omitempty"` +} + +const ( + pulsarClientProduceTopicDesc = "The fully qualified topic name to produce to (format: [persistent|non-persistent]://tenant/namespace/topic). " + + "For partitioned topics, messages will be distributed across partitions based on the partitioning scheme. " + + "If a message key is provided, messages with the same key will go to the same partition." + pulsarClientProduceMessagesDesc = "List of message content to send. Each array element represents one message payload. " + + "IMPORTANT: Use this parameter to provide message content. Multiple messages can be sent in a single operation. " + + "Each message will be sent according to the specified num-produce parameter." + pulsarClientProduceMessageItemDesc = "Individual message content to be sent to the topic" + pulsarClientProduceNumProduceDesc = "Number of times to send the entire message set. " + + "If you have 3 messages and set num-produce to 2, a total of 6 messages will be sent. (default: 1)" + pulsarClientProduceRateDesc = "Rate limiting in messages per second. Controls the maximum speed of message production. " + + "Set to 0 to produce messages as fast as possible without rate limiting. " + + "Higher rates may be limited by broker capacity and network bandwidth. (default: 0)" + pulsarClientProduceDisableBatchingDesc = "Disable message batching. When false (default), Pulsar batches multiple messages " + + "to improve throughput and reduce network overhead. Set to true to send each message individually. " + + "Disabling batching may reduce throughput but provides lower latency. (default: false)" + pulsarClientProduceChunkingDesc = "Enable message chunking for large messages. When true, messages larger than " + + "the maximum allowed size will be automatically split into smaller chunks and reassembled on consumption. " + + "This allows sending messages that exceed broker size limits. (default: false)" + pulsarClientProduceSeparatorDesc = "Character or string to split message content on. When specified, each message " + + "in the messages array will be split by this separator to create additional individual messages. " + + "Useful for sending multiple messages from a single delimited string. (default: none)" + pulsarClientProducePropertiesDesc = "Message properties in key=value format. Properties are metadata key-value pairs " + + "attached to messages for filtering, routing, or application-specific processing. " + + "Example: ['priority=high', 'source=api', 'version=1.0']. Multiple properties can be specified." + pulsarClientProducePropertyItemDesc = "Property in key=value format" + pulsarClientProduceKeyDesc = "Partitioning key for message routing. Messages with the same key will be sent " + + "to the same partition in partitioned topics, ensuring ordering for related messages. " + + "The key is also available to consumers for processing logic. Leave empty for round-robin partitioning." +) + // PulsarClientProduceToolBuilder implements the ToolBuilder interface for Pulsar Client Producer tools // It provides functionality to build Pulsar message production tools // /nolint:revive @@ -58,7 +101,7 @@ func NewPulsarClientProduceToolBuilder() *PulsarClientProduceToolBuilder { // BuildTools builds the Pulsar Client Producer tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarClientProduceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarClientProduceToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -70,11 +113,14 @@ func (b *PulsarClientProduceToolBuilder) BuildTools(_ context.Context, config bu } // Build tools - tool := b.buildProduceTool() + tool, err := b.buildProduceTool() + if err != nil { + return nil, err + } handler := b.buildProduceHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarClientProduceInput, any]{ Tool: tool, Handler: handler, }, @@ -83,7 +129,12 @@ func (b *PulsarClientProduceToolBuilder) BuildTools(_ context.Context, config bu // buildProduceTool builds the Pulsar Client Producer MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarClientProduceToolBuilder) buildProduceTool() mcp.Tool { +func (b *PulsarClientProduceToolBuilder) buildProduceTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarClientProduceInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Produce messages to a Pulsar topic. " + "This tool allows you to send messages to a specified Pulsar topic with various options " + "to control message format, batching, rate limiting, and properties. " + @@ -93,103 +144,61 @@ func (b *PulsarClientProduceToolBuilder) buildProduceTool() mcp.Tool { "The tool supports message partitioning through keys and provides detailed feedback on sent messages. " + "Do not use this tool for Kafka protocol operations. Use 'kafka_client_produce' instead." - return mcp.NewTool("pulsar_client_produce", - mcp.WithDescription(toolDesc), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The fully qualified topic name to produce to (format: [persistent|non-persistent]://tenant/namespace/topic). "+ - "For partitioned topics, messages will be distributed across partitions based on the partitioning scheme. "+ - "If a message key is provided, messages with the same key will go to the same partition."), - ), - mcp.WithArray("messages", - mcp.Description("List of message content to send. Each array element represents one message payload. "+ - "IMPORTANT: Use this parameter to provide message content. Multiple messages can be sent in a single operation. "+ - "Each message will be sent according to the specified num-produce parameter."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "Individual message content to be sent to the topic", - }, - ), - ), - mcp.WithNumber("num-produce", - mcp.Description("Number of times to send the entire message set. "+ - "If you have 3 messages and set num-produce to 2, a total of 6 messages will be sent. (default: 1)"), - ), - mcp.WithNumber("rate", - mcp.Description("Rate limiting in messages per second. Controls the maximum speed of message production. "+ - "Set to 0 to produce messages as fast as possible without rate limiting. "+ - "Higher rates may be limited by broker capacity and network bandwidth. (default: 0)"), - ), - mcp.WithBoolean("disable-batching", - mcp.Description("Disable message batching. When false (default), Pulsar batches multiple messages "+ - "to improve throughput and reduce network overhead. Set to true to send each message individually. "+ - "Disabling batching may reduce throughput but provides lower latency. (default: false)"), - ), - mcp.WithBoolean("chunking", - mcp.Description("Enable message chunking for large messages. When true, messages larger than "+ - "the maximum allowed size will be automatically split into smaller chunks and reassembled on consumption. "+ - "This allows sending messages that exceed broker size limits. (default: false)"), - ), - mcp.WithString("separator", - mcp.Description("Character or string to split message content on. When specified, each message "+ - "in the messages array will be split by this separator to create additional individual messages. "+ - "Useful for sending multiple messages from a single delimited string. (default: none)"), - ), - mcp.WithArray("properties", - mcp.Description("Message properties in key=value format. Properties are metadata key-value pairs "+ - "attached to messages for filtering, routing, or application-specific processing. "+ - "Example: ['priority=high', 'source=api', 'version=1.0']. Multiple properties can be specified."), - mcp.Items( - map[string]interface{}{ - "type": "string", - "description": "Property in key=value format", - }, - ), - ), - mcp.WithString("key", - mcp.Description("Partitioning key for message routing. Messages with the same key will be sent "+ - "to the same partition in partitioned topics, ensuring ordering for related messages. "+ - "The key is also available to consumers for processing logic. Leave empty for round-robin partitioning."), - ), - ) + return &sdk.Tool{ + Name: "pulsar_client_produce", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildProduceHandler builds the Pulsar Client Producer handler function // Migrated from the original handler logic -func (b *PulsarClientProduceToolBuilder) buildProduceHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarClientProduceToolBuilder) buildProduceHandler(readOnly bool) builders.ToolHandlerFunc[pulsarClientProduceInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarClientProduceInput) (*sdk.CallToolResult, any, error) { // Check read-only mode - producing is a write operation if readOnly { - return mcp.NewToolResultError("Message production is not allowed in read-only mode"), nil + return nil, nil, fmt.Errorf("message production is not allowed in read-only mode") } // Extract required parameters with validation - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + topic := strings.TrimSpace(input.Topic) + if topic == "" { + return nil, nil, fmt.Errorf("failed to get topic: topic is required") } // Set default values and extract optional parameters - messages := request.GetStringSlice("messages", []string{}) + messages := input.Messages if len(messages) == 0 { - return mcp.NewToolResultError("Please supply message content with 'messages' parameter"), nil + return nil, nil, fmt.Errorf("please supply message content with 'messages' parameter") } - numProduce := int(request.GetFloat("num-produce", 1)) + numProduce := 1 + if input.NumProduce != nil { + numProduce = int(*input.NumProduce) + } if numProduce < 1 { - return mcp.NewToolResultError("num-produce must be at least 1"), nil + return nil, nil, fmt.Errorf("num-produce must be at least 1") } - rate := request.GetFloat("rate", 0) + rate := 0.0 + if input.Rate != nil { + rate = *input.Rate + } if rate < 0 { - return mcp.NewToolResultError("rate must be non-negative"), nil + return nil, nil, fmt.Errorf("rate must be non-negative") } - disableBatching := request.GetBool("disable-batching", false) - chunkingAllowed := request.GetBool("chunking", false) - separator := request.GetString("separator", "") - properties := request.GetStringSlice("properties", []string{}) - key := request.GetString("key", "") + disableBatching := input.DisableBatching + chunkingAllowed := input.Chunking + separator := "" + if input.Separator != nil { + separator = *input.Separator + } + properties := input.Properties + key := "" + if input.Key != nil { + key = *input.Key + } // Split messages by separator if needed if separator != "" && len(messages) > 0 { @@ -208,13 +217,13 @@ func (b *PulsarClientProduceToolBuilder) buildProduceHandler(readOnly bool) func // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Setup client client, err := session.GetPulsarClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to create Pulsar client: %v", err) } defer client.Close() @@ -233,20 +242,20 @@ func (b *PulsarClientProduceToolBuilder) buildProduceHandler(readOnly bool) func producer, err := client.CreateProducer(producerOpts) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create producer: %v", err)), nil + return nil, nil, fmt.Errorf("failed to create producer: %v", err) } defer producer.Close() // Generate message bodies from messages messagePayloads, err := b.generateMessagePayloads(messages) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to generate message payloads: %v", err)), nil + return nil, nil, fmt.Errorf("failed to generate message payloads: %v", err) } // Parse properties propMap, err := b.parseProperties(properties) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to parse properties: %v", err)), nil + return nil, nil, fmt.Errorf("failed to parse properties: %v", err) } // Setup rate limiter @@ -286,7 +295,7 @@ func (b *PulsarClientProduceToolBuilder) buildProduceHandler(readOnly bool) func // Send the message msgID, err := producer.Send(ctx, msg) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil + return nil, nil, fmt.Errorf("failed to send message: %v", err) } lastMessageID = msgID @@ -302,24 +311,63 @@ func (b *PulsarClientProduceToolBuilder) buildProduceHandler(readOnly bool) func "success": true, } - return b.marshalResponse(response) + result, err := b.marshalResponse(response) + return result, nil, err } } +func buildPulsarClientProduceInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarClientProduceInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "topic", pulsarClientProduceTopicDesc) + setSchemaDescription(schema, "messages", pulsarClientProduceMessagesDesc) + setSchemaDescription(schema, "num-produce", pulsarClientProduceNumProduceDesc) + setSchemaDescription(schema, "rate", pulsarClientProduceRateDesc) + setSchemaDescription(schema, "disable-batching", pulsarClientProduceDisableBatchingDesc) + setSchemaDescription(schema, "chunking", pulsarClientProduceChunkingDesc) + setSchemaDescription(schema, "separator", pulsarClientProduceSeparatorDesc) + setSchemaDescription(schema, "properties", pulsarClientProducePropertiesDesc) + setSchemaDescription(schema, "key", pulsarClientProduceKeyDesc) + + messagesSchema := schema.Properties["messages"] + if messagesSchema != nil && messagesSchema.Items != nil { + messagesSchema.Items.Description = pulsarClientProduceMessageItemDesc + } + + propertiesSchema := schema.Properties["properties"] + if propertiesSchema != nil && propertiesSchema.Items != nil { + propertiesSchema.Items.Description = pulsarClientProducePropertyItemDesc + } + + normalizeAdditionalProperties(schema) + return schema, nil +} + // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarClientProduceToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarClientProduceToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarClientProduceToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarClientProduceToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } // generateMessagePayloads generates message payloads from message strings diff --git a/pkg/mcp/builders/pulsar/produce_legacy.go b/pkg/mcp/builders/pulsar/produce_legacy.go new file mode 100644 index 0000000..8cfdd81 --- /dev/null +++ b/pkg/mcp/builders/pulsar/produce_legacy.go @@ -0,0 +1,344 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarClientProduceLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar Client Producer tools. +// /nolint:revive +type PulsarClientProduceLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarClientProduceLegacyToolBuilder creates a new legacy Pulsar Client Producer tool builder instance. +func NewPulsarClientProduceLegacyToolBuilder() *PulsarClientProduceLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_client_produce", + Version: "1.0.0", + Description: "Pulsar Client message production tools", + Category: "pulsar_client", + Tags: []string{"pulsar", "produce", "client", "messaging"}, + } + + features := []string{ + "pulsar-client", + "all", + "all-pulsar", + } + + return &PulsarClientProduceLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Client Producer tool list for the legacy server. +func (b *PulsarClientProduceLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildProduceTool() + handler := b.buildProduceHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildProduceTool builds the Pulsar Client Producer MCP tool definition. +func (b *PulsarClientProduceLegacyToolBuilder) buildProduceTool() mcp.Tool { + toolDesc := "Produce messages to a Pulsar topic. " + + "This tool allows you to send messages to a specified Pulsar topic with various options " + + "to control message format, batching, rate limiting, and properties. " + + "Pulsar supports message batching for improved throughput, chunking for large messages, " + + "and message properties for metadata attachment. " + + "You can send single or multiple messages, control the production rate, and add custom properties. " + + "The tool supports message partitioning through keys and provides detailed feedback on sent messages. " + + "Do not use this tool for Kafka protocol operations. Use 'kafka_client_produce' instead." + + return mcp.NewTool("pulsar_client_produce", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name to produce to (format: [persistent|non-persistent]://tenant/namespace/topic). "+ + "For partitioned topics, messages will be distributed across partitions based on the partitioning scheme. "+ + "If a message key is provided, messages with the same key will go to the same partition."), + ), + mcp.WithArray("messages", + mcp.Description("List of message content to send. Each array element represents one message payload. "+ + "IMPORTANT: Use this parameter to provide message content. Multiple messages can be sent in a single operation. "+ + "Each message will be sent according to the specified num-produce parameter."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "Individual message content to be sent to the topic", + }, + ), + ), + mcp.WithNumber("num-produce", + mcp.Description("Number of times to send the entire message set. "+ + "If you have 3 messages and set num-produce to 2, a total of 6 messages will be sent. (default: 1)"), + ), + mcp.WithNumber("rate", + mcp.Description("Rate limiting in messages per second. Controls the maximum speed of message production. "+ + "Set to 0 to produce messages as fast as possible without rate limiting. "+ + "Higher rates may be limited by broker capacity and network bandwidth. (default: 0)"), + ), + mcp.WithBoolean("disable-batching", + mcp.Description("Disable message batching. When false (default), Pulsar batches multiple messages "+ + "to improve throughput and reduce network overhead. Set to true to send each message individually. "+ + "Disabling batching may reduce throughput but provides lower latency. (default: false)"), + ), + mcp.WithBoolean("chunking", + mcp.Description("Enable message chunking for large messages. When true, messages larger than "+ + "the maximum allowed size will be automatically split into smaller chunks and reassembled on consumption. "+ + "This allows sending messages that exceed broker size limits. (default: false)"), + ), + mcp.WithString("separator", + mcp.Description("Character or string to split message content on. When specified, each message "+ + "in the messages array will be split by this separator to create additional individual messages. "+ + "Useful for sending multiple messages from a single delimited string. (default: none)"), + ), + mcp.WithArray("properties", + mcp.Description("Message properties in key=value format. Properties are metadata key-value pairs "+ + "attached to messages for filtering, routing, or application-specific processing. "+ + "Example: ['priority=high', 'source=api', 'version=1.0']. Multiple properties can be specified."), + mcp.Items( + map[string]interface{}{ + "type": "string", + "description": "Property in key=value format", + }, + ), + ), + mcp.WithString("key", + mcp.Description("Partitioning key for message routing. Messages with the same key will be sent "+ + "to the same partition in partitioned topics, ensuring ordering for related messages. "+ + "The key is also available to consumers for processing logic. Leave empty for round-robin partitioning."), + ), + ) +} + +// buildProduceHandler builds the Pulsar Client Producer handler function. +func (b *PulsarClientProduceLegacyToolBuilder) buildProduceHandler(readOnly bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Check read-only mode - producing is a write operation + if readOnly { + return mcp.NewToolResultError("Message production is not allowed in read-only mode"), nil + } + + // Extract required parameters with validation + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + // Set default values and extract optional parameters + messages := request.GetStringSlice("messages", []string{}) + if len(messages) == 0 { + return mcp.NewToolResultError("Please supply message content with 'messages' parameter"), nil + } + + numProduce := int(request.GetFloat("num-produce", 1)) + if numProduce < 1 { + return mcp.NewToolResultError("num-produce must be at least 1"), nil + } + + rate := request.GetFloat("rate", 0) + if rate < 0 { + return mcp.NewToolResultError("rate must be non-negative"), nil + } + + disableBatching := request.GetBool("disable-batching", false) + chunkingAllowed := request.GetBool("chunking", false) + separator := request.GetString("separator", "") + properties := request.GetStringSlice("properties", []string{}) + key := request.GetString("key", "") + + // Split messages by separator if needed + if separator != "" && len(messages) > 0 { + var splitMessages []string + for _, msg := range messages { + parts := strings.Split(msg, separator) + for _, part := range parts { + if part != "" { + splitMessages = append(splitMessages, part) + } + } + } + messages = splitMessages + } + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Setup client + client, err := session.GetPulsarClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + } + defer client.Close() + + // Prepare producer options + producerOpts := pulsar.ProducerOptions{ + Topic: topic, + } + + // Set batching and chunking options + if chunkingAllowed { + producerOpts.EnableChunking = true + producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond + } else if disableBatching { + producerOpts.BatchingMaxPublishDelay = 0 * time.Millisecond + } + + producer, err := client.CreateProducer(producerOpts) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create producer: %v", err)), nil + } + defer producer.Close() + + // Generate message bodies from messages + messagePayloads, err := b.generateMessagePayloads(messages) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to generate message payloads: %v", err)), nil + } + + // Parse properties + propMap, err := b.parseProperties(properties) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to parse properties: %v", err)), nil + } + + // Setup rate limiter + var limiter *time.Ticker + if rate > 0 { + interval := time.Duration(1000/rate) * time.Millisecond + limiter = time.NewTicker(interval) + defer limiter.Stop() + } + + // Send messages + numMessagesSent := 0 + var lastMessageID pulsar.MessageID + + for range numProduce { + for _, payload := range messagePayloads { + // Apply rate limiting if enabled + if limiter != nil { + <-limiter.C + } + + // Create message to send + msg := &pulsar.ProducerMessage{ + Payload: payload, + } + + // Add properties if specified + if len(propMap) > 0 { + msg.Properties = propMap + } + + // Add key if specified + if key != "" { + msg.Key = key + } + + // Send the message + msgID, err := producer.Send(ctx, msg) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil + } + + lastMessageID = msgID + numMessagesSent++ + } + } + + // Prepare response + response := map[string]interface{}{ + "topic": topic, + "messages_sent": numMessagesSent, + "last_message_id": fmt.Sprintf("%v", lastMessageID), + "success": true, + } + + return b.marshalResponse(response) + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarClientProduceLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarClientProduceLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} + +// generateMessagePayloads generates message payloads from message strings +func (b *PulsarClientProduceLegacyToolBuilder) generateMessagePayloads(messages []string) ([][]byte, error) { + var payloads [][]byte + + // Add message strings + for _, msg := range messages { + payloads = append(payloads, []byte(msg)) + } + + return payloads, nil +} + +// parseProperties parses property strings in key=value format +func (b *PulsarClientProduceLegacyToolBuilder) parseProperties(properties []string) (map[string]string, error) { + propMap := make(map[string]string) + for _, prop := range properties { + parts := strings.SplitN(prop, "=", 2) + if len(parts) != 2 { + return nil, fmt.Errorf("invalid property format '%s', expected key=value", prop) + } + propMap[parts[0]] = parts[1] + } + return propMap, nil +} diff --git a/pkg/mcp/builders/pulsar/produce_test.go b/pkg/mcp/builders/pulsar/produce_test.go new file mode 100644 index 0000000..8de0ac0 --- /dev/null +++ b/pkg/mcp/builders/pulsar/produce_test.go @@ -0,0 +1,154 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarClientProduceToolBuilder(t *testing.T) { + builder := NewPulsarClientProduceToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_client_produce", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-client") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-client"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_client_produce", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnlyMode", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-client"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-client"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) + + t.Run("Handler_ReadOnlyRejects", func(t *testing.T) { + handler := builder.buildProduceHandler(true) + + _, _, err := handler(context.Background(), nil, pulsarClientProduceInput{ + Topic: "persistent://tenant/ns/topic", + Messages: []string{"message"}, + }) + require.Error(t, err) + assert.Equal(t, "message production is not allowed in read-only mode", err.Error()) + }) + + t.Run("Handler_MissingMessages", func(t *testing.T) { + handler := builder.buildProduceHandler(false) + + _, _, err := handler(context.Background(), nil, pulsarClientProduceInput{ + Topic: "persistent://tenant/ns/topic", + }) + require.Error(t, err) + assert.Equal(t, "please supply message content with 'messages' parameter", err.Error()) + }) +} + +func TestPulsarClientProduceToolSchema(t *testing.T) { + builder := NewPulsarClientProduceToolBuilder() + tool, err := builder.buildProduceTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_client_produce", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"topic"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "topic", + "messages", + "num-produce", + "rate", + "disable-batching", + "chunking", + "separator", + "properties", + "key", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + topicSchema := schema.Properties["topic"] + require.NotNil(t, topicSchema) + assert.Equal(t, pulsarClientProduceTopicDesc, topicSchema.Description) + + messagesSchema := schema.Properties["messages"] + require.NotNil(t, messagesSchema) + require.NotNil(t, messagesSchema.Items) + assert.Equal(t, pulsarClientProduceMessageItemDesc, messagesSchema.Items.Description) + + propertiesSchema := schema.Properties["properties"] + require.NotNil(t, propertiesSchema) + require.NotNil(t, propertiesSchema.Items) + assert.Equal(t, pulsarClientProducePropertyItemDesc, propertiesSchema.Items.Description) +} diff --git a/pkg/mcp/pulsar_client_produce_tools.go b/pkg/mcp/pulsar_client_produce_tools.go index 15a5a84..f9f4720 100644 --- a/pkg/mcp/pulsar_client_produce_tools.go +++ b/pkg/mcp/pulsar_client_produce_tools.go @@ -16,15 +16,14 @@ package mcp import ( "context" - "fmt" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarClientProduceTools creates Pulsar Client Producer tool list using the new builder pattern -func PulsarClientProduceTools(readOnly bool, features []string) []server.ServerTool { +// PulsarClientAddProducerTools adds Pulsar client producer tools to the MCP server. +func PulsarClientAddProducerTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarBuilders.NewPulsarClientProduceToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -33,19 +32,10 @@ func PulsarClientProduceTools(readOnly bool, features []string) []server.ServerT tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - fmt.Printf("Failed to build Pulsar Client Producer tools: %v\n", err) - return nil + return } - return tools -} - -// PulsarClientAddProducerTools adds Pulsar client producer tools to the MCP server -func PulsarClientAddProducerTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarClientProduceTools(readOnly, features) - for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_client_produce_tools_legacy.go b/pkg/mcp/pulsar_client_produce_tools_legacy.go new file mode 100644 index 0000000..72d1a1e --- /dev/null +++ b/pkg/mcp/pulsar_client_produce_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarClientAddProducerToolsLegacy adds Pulsar client producer tools to the legacy MCP server. +func PulsarClientAddProducerToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarBuilders.NewPulsarClientProduceLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From da4d353a39605e990e31bb6dbe229d5c82c7bfef Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 13:26:30 +0800 Subject: [PATCH 69/85] feat: migrate pulsar consume tool to go-sdk --- pkg/cmd/mcp/server.go | 2 +- pkg/mcp/builders/pulsar/consume.go | 227 ++++++++----- pkg/mcp/builders/pulsar/consume_legacy.go | 311 ++++++++++++++++++ pkg/mcp/builders/pulsar/consume_test.go | 175 ++++++++++ pkg/mcp/pulsar_client_consume_tools.go | 20 +- pkg/mcp/pulsar_client_consume_tools_legacy.go | 41 +++ 6 files changed, 679 insertions(+), 97 deletions(-) create mode 100644 pkg/mcp/builders/pulsar/consume_legacy.go create mode 100644 pkg/mcp/builders/pulsar/consume_test.go create mode 100644 pkg/mcp/pulsar_client_consume_tools_legacy.go diff --git a/pkg/cmd/mcp/server.go b/pkg/cmd/mcp/server.go index 5346a2e..8363b2e 100644 --- a/pkg/cmd/mcp/server.go +++ b/pkg/cmd/mcp/server.go @@ -131,7 +131,7 @@ func newMcpServer(_ context.Context, configOpts *ServerOptions, logrusLogger *lo mcp.PulsarAdminAddFunctionsToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddSourcesToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarAdminAddTopicPolicyToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) - mcp.PulsarClientAddConsumerTools(s, configOpts.ReadOnly, configOpts.Features) + mcp.PulsarClientAddConsumerToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.PulsarClientAddProducerToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) mcp.KafkaAdminAddTopicToolsLegacy(s, configOpts.ReadOnly, configOpts.Features) diff --git a/pkg/mcp/builders/pulsar/consume.go b/pkg/mcp/builders/pulsar/consume.go index e625532..8368bae 100644 --- a/pkg/mcp/builders/pulsar/consume.go +++ b/pkg/mcp/builders/pulsar/consume.go @@ -22,12 +22,52 @@ import ( "time" "github.com/apache/pulsar-client-go/pulsar" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + "github.com/google/jsonschema-go/jsonschema" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" ) +type pulsarClientConsumeInput struct { + Topic string `json:"topic"` + SubscriptionName string `json:"subscription-name"` + SubscriptionType *string `json:"subscription-type,omitempty"` + SubscriptionMode *string `json:"subscription-mode,omitempty"` + InitialPosition *string `json:"initial-position,omitempty"` + NumMessages *float64 `json:"num-messages,omitempty"` + Timeout *float64 `json:"timeout,omitempty"` + ShowProperties bool `json:"show-properties,omitempty"` + HidePayload bool `json:"hide-payload,omitempty"` +} + +const ( + pulsarClientConsumeTopicDesc = "The fully qualified topic name to consume from (format: [persistent|non-persistent]://tenant/namespace/topic). " + + "For partitioned topics, you can consume from all partitions by specifying the base topic name " + + "or from a specific partition by appending -partition-N to the topic name." + pulsarClientConsumeSubscriptionNameDesc = "The subscription name for this consumer. " + + "A subscription represents a named cursor for tracking message consumption progress. " + + "Multiple consumers can share the same subscription name to form a consumer group." + pulsarClientConsumeSubscriptionTypeDesc = "Subscription type controlling message distribution among consumers:\n" + + "- exclusive: Only one consumer can consume from the subscription at a time\n" + + "- shared: Messages are distributed across all consumers in a round-robin fashion\n" + + "- failover: Only one active consumer, others act as backups\n" + + "- key_shared: Messages with the same key are delivered to the same consumer (default: exclusive)" + pulsarClientConsumeSubscriptionModeDesc = "Subscription durability mode:\n" + + "- durable: Subscription persists even when all consumers disconnect\n" + + "- non-durable: Subscription is deleted when all consumers disconnect (default: durable)" + pulsarClientConsumeInitialPositionDesc = "Initial cursor position for new subscriptions:\n" + + "- latest: Start consuming from the latest (most recent) message\n" + + "- earliest: Start consuming from the earliest (oldest available) message (default: latest)" + pulsarClientConsumeNumMessagesDesc = "Maximum number of messages to consume in this session. " + + "Set to 0 for unlimited consumption until timeout. (default: 10)" + pulsarClientConsumeTimeoutDesc = "Maximum time to wait for messages in seconds. " + + "The consumer will stop after this timeout even if fewer messages were received. (default: 30)" + pulsarClientConsumeShowPropertiesDesc = "Include message properties in the output. " + + "Message properties are key-value pairs attached to messages for metadata purposes. (default: false)" + pulsarClientConsumeHidePayloadDesc = "Exclude message payload from the output. " + + "Useful when you only need message metadata or are dealing with large payloads. (default: false)" +) + // PulsarClientConsumeToolBuilder implements the ToolBuilder interface for Pulsar Client Consumer tools // It provides functionality to build Pulsar message consumption tools // /nolint:revive @@ -58,7 +98,7 @@ func NewPulsarClientConsumeToolBuilder() *PulsarClientConsumeToolBuilder { // BuildTools builds the Pulsar Client Consumer tool list // This is the core method implementing the ToolBuilder interface -func (b *PulsarClientConsumeToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { +func (b *PulsarClientConsumeToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { // Check features - return empty list if no required features are present if !b.HasAnyRequiredFeature(config.Features) { return nil, nil @@ -70,11 +110,14 @@ func (b *PulsarClientConsumeToolBuilder) BuildTools(_ context.Context, config bu } // Build tools - tool := b.buildConsumeTool() + tool, err := b.buildConsumeTool() + if err != nil { + return nil, err + } handler := b.buildConsumeHandler(config.ReadOnly) - return []server.ServerTool{ - { + return []builders.ToolDefinition{ + builders.ServerTool[pulsarClientConsumeInput, any]{ Tool: tool, Handler: handler, }, @@ -83,7 +126,12 @@ func (b *PulsarClientConsumeToolBuilder) BuildTools(_ context.Context, config bu // buildConsumeTool builds the Pulsar Client Consumer MCP tool definition // Migrated from the original tool definition logic -func (b *PulsarClientConsumeToolBuilder) buildConsumeTool() mcp.Tool { +func (b *PulsarClientConsumeToolBuilder) buildConsumeTool() (*sdk.Tool, error) { + inputSchema, err := buildPulsarClientConsumeInputSchema() + if err != nil { + return nil, err + } + toolDesc := "Consume messages from a Pulsar topic. " + "This tool allows you to consume messages from a specified Pulsar topic with various options " + "to control the subscription behavior, message processing, and display format. " + @@ -93,88 +141,76 @@ func (b *PulsarClientConsumeToolBuilder) buildConsumeTool() mcp.Tool { "timeout settings, and message display options. " + "Do not use this tool for Kafka protocol operations. Use 'kafka_client_consume' instead." - return mcp.NewTool("pulsar_client_consume", - mcp.WithDescription(toolDesc), - mcp.WithString("topic", mcp.Required(), - mcp.Description("The fully qualified topic name to consume from (format: [persistent|non-persistent]://tenant/namespace/topic). "+ - "For partitioned topics, you can consume from all partitions by specifying the base topic name "+ - "or from a specific partition by appending -partition-N to the topic name."), - ), - mcp.WithString("subscription-name", mcp.Required(), - mcp.Description("The subscription name for this consumer. "+ - "A subscription represents a named cursor for tracking message consumption progress. "+ - "Multiple consumers can share the same subscription name to form a consumer group."), - ), - mcp.WithString("subscription-type", - mcp.Description("Subscription type controlling message distribution among consumers:\\n"+ - "- exclusive: Only one consumer can consume from the subscription at a time\\n"+ - "- shared: Messages are distributed across all consumers in a round-robin fashion\\n"+ - "- failover: Only one active consumer, others act as backups\\n"+ - "- key_shared: Messages with the same key are delivered to the same consumer (default: exclusive)"), - ), - mcp.WithString("subscription-mode", - mcp.Description("Subscription durability mode:\\n"+ - "- durable: Subscription persists even when all consumers disconnect\\n"+ - "- non-durable: Subscription is deleted when all consumers disconnect (default: durable)"), - ), - mcp.WithString("initial-position", - mcp.Description("Initial cursor position for new subscriptions:\\n"+ - "- latest: Start consuming from the latest (most recent) message\\n"+ - "- earliest: Start consuming from the earliest (oldest available) message (default: latest)"), - ), - mcp.WithNumber("num-messages", - mcp.Description("Maximum number of messages to consume in this session. "+ - "Set to 0 for unlimited consumption until timeout. (default: 10)"), - ), - mcp.WithNumber("timeout", - mcp.Description("Maximum time to wait for messages in seconds. "+ - "The consumer will stop after this timeout even if fewer messages were received. (default: 30)"), - ), - mcp.WithBoolean("show-properties", - mcp.Description("Include message properties in the output. "+ - "Message properties are key-value pairs attached to messages for metadata purposes. (default: false)"), - ), - mcp.WithBoolean("hide-payload", - mcp.Description("Exclude message payload from the output. "+ - "Useful when you only need message metadata or are dealing with large payloads. (default: false)"), - ), - ) + return &sdk.Tool{ + Name: "pulsar_client_consume", + Description: toolDesc, + InputSchema: inputSchema, + }, nil } // buildConsumeHandler builds the Pulsar Client Consumer handler function // Migrated from the original handler logic -func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { +func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) builders.ToolHandlerFunc[pulsarClientConsumeInput, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input pulsarClientConsumeInput) (*sdk.CallToolResult, any, error) { // Extract required parameters with validation - topic, err := request.RequireString("topic") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + topic := strings.TrimSpace(input.Topic) + if topic == "" { + return nil, nil, fmt.Errorf("failed to get topic: topic is required") } - subscriptionName, err := request.RequireString("subscription-name") - if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + subscriptionName := strings.TrimSpace(input.SubscriptionName) + if subscriptionName == "" { + return nil, nil, fmt.Errorf("failed to get subscription name: subscription-name is required") } // Set default values and extract optional parameters - subscriptionType := request.GetString("subscription-type", "exclusive") - subscriptionMode := request.GetString("subscription-mode", "durable") - initialPosition := request.GetString("initial-position", "latest") - numMessages := int(request.GetFloat("num-messages", 10)) - timeout := int(request.GetFloat("timeout", 30)) - showProperties := request.GetBool("show-properties", false) - hidePayload := request.GetBool("hide-payload", false) + subscriptionType := "exclusive" + if input.SubscriptionType != nil { + value := strings.TrimSpace(*input.SubscriptionType) + if value != "" { + subscriptionType = value + } + } + + subscriptionMode := "durable" + if input.SubscriptionMode != nil { + value := strings.TrimSpace(*input.SubscriptionMode) + if value != "" { + subscriptionMode = value + } + } + + initialPosition := "latest" + if input.InitialPosition != nil { + value := strings.TrimSpace(*input.InitialPosition) + if value != "" { + initialPosition = value + } + } + + numMessages := 10 + if input.NumMessages != nil { + numMessages = int(*input.NumMessages) + } + + timeout := 30 + if input.Timeout != nil { + timeout = int(*input.Timeout) + } + + showProperties := input.ShowProperties + hidePayload := input.HidePayload // Get Pulsar session from context session := mcpCtx.GetPulsarSession(ctx) if session == nil { - return mcp.NewToolResultError("Pulsar session not found in context"), nil + return nil, nil, fmt.Errorf("pulsar session not found in context") } // Setup client client, err := session.GetPulsarClient() if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + return nil, nil, fmt.Errorf("failed to create Pulsar client: %v", err) } defer client.Close() @@ -196,7 +232,7 @@ func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(contex case "key_shared": consumerOpts.Type = pulsar.KeyShared default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription type: %s. Valid types: exclusive, shared, failover, key_shared", subscriptionType)), nil + return nil, nil, fmt.Errorf("invalid subscription type: %s. Valid types: exclusive, shared, failover, key_shared", subscriptionType) } // Set subscription mode @@ -206,7 +242,7 @@ func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(contex case "non-durable": consumerOpts.SubscriptionMode = pulsar.NonDurable default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription mode: %s. Valid modes: durable, non-durable", subscriptionMode)), nil + return nil, nil, fmt.Errorf("invalid subscription mode: %s. Valid modes: durable, non-durable", subscriptionMode) } // Set initial position @@ -216,13 +252,13 @@ func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(contex case "earliest": consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionEarliest default: - return mcp.NewToolResultError(fmt.Sprintf("Invalid initial position: %s. Valid positions: latest, earliest", initialPosition)), nil + return nil, nil, fmt.Errorf("invalid initial position: %s. Valid positions: latest, earliest", initialPosition) } // Create consumer consumer, err := client.Subscribe(consumerOpts) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to create consumer: %v", err)), nil + return nil, nil, fmt.Errorf("failed to create consumer: %v", err) } defer consumer.Close() @@ -252,7 +288,7 @@ func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(contex if err == context.DeadlineExceeded || err == context.Canceled { break } - return mcp.NewToolResultError(fmt.Sprintf("Error receiving message: %v", err)), nil + return nil, nil, fmt.Errorf("error receiving message: %v", err) } // Process the message @@ -294,22 +330,51 @@ func (b *PulsarClientConsumeToolBuilder) buildConsumeHandler(_ bool) func(contex "messages": messages, } - return b.marshalResponse(response) + result, err := b.marshalResponse(response) + return result, nil, err } } +func buildPulsarClientConsumeInputSchema() (*jsonschema.Schema, error) { + schema, err := jsonschema.For[pulsarClientConsumeInput](nil) + if err != nil { + return nil, fmt.Errorf("input schema: %w", err) + } + if schema.Type != "object" { + return nil, fmt.Errorf("input schema must have type \"object\"") + } + + if schema.Properties == nil { + schema.Properties = map[string]*jsonschema.Schema{} + } + setSchemaDescription(schema, "topic", pulsarClientConsumeTopicDesc) + setSchemaDescription(schema, "subscription-name", pulsarClientConsumeSubscriptionNameDesc) + setSchemaDescription(schema, "subscription-type", pulsarClientConsumeSubscriptionTypeDesc) + setSchemaDescription(schema, "subscription-mode", pulsarClientConsumeSubscriptionModeDesc) + setSchemaDescription(schema, "initial-position", pulsarClientConsumeInitialPositionDesc) + setSchemaDescription(schema, "num-messages", pulsarClientConsumeNumMessagesDesc) + setSchemaDescription(schema, "timeout", pulsarClientConsumeTimeoutDesc) + setSchemaDescription(schema, "show-properties", pulsarClientConsumeShowPropertiesDesc) + setSchemaDescription(schema, "hide-payload", pulsarClientConsumeHidePayloadDesc) + + normalizeAdditionalProperties(schema) + return schema, nil +} + // Unified error handling and utility functions // handleError provides unified error handling -func (b *PulsarClientConsumeToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { - return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +func (b *PulsarClientConsumeToolBuilder) handleError(operation string, err error) error { + return fmt.Errorf("failed to %s: %v", operation, err) } // marshalResponse provides unified JSON serialization for responses -func (b *PulsarClientConsumeToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { +func (b *PulsarClientConsumeToolBuilder) marshalResponse(data interface{}) (*sdk.CallToolResult, error) { jsonBytes, err := json.Marshal(data) if err != nil { - return b.handleError("marshal response", err), nil + return nil, b.handleError("marshal response", err) } - return mcp.NewToolResultText(string(jsonBytes)), nil + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: string(jsonBytes)}}, + }, nil } diff --git a/pkg/mcp/builders/pulsar/consume_legacy.go b/pkg/mcp/builders/pulsar/consume_legacy.go new file mode 100644 index 0000000..6880f6c --- /dev/null +++ b/pkg/mcp/builders/pulsar/consume_legacy.go @@ -0,0 +1,311 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "encoding/json" + "fmt" + "strings" + "time" + + "github.com/apache/pulsar-client-go/pulsar" + "github.com/mark3labs/mcp-go/mcp" + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + mcpCtx "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" +) + +// PulsarClientConsumeLegacyToolBuilder implements the legacy ToolBuilder interface for Pulsar Client Consumer tools. +// /nolint:revive +type PulsarClientConsumeLegacyToolBuilder struct { + *builders.BaseToolBuilder +} + +// NewPulsarClientConsumeLegacyToolBuilder creates a new legacy Pulsar Client Consumer tool builder instance. +func NewPulsarClientConsumeLegacyToolBuilder() *PulsarClientConsumeLegacyToolBuilder { + metadata := builders.ToolMetadata{ + Name: "pulsar_client_consume", + Version: "1.0.0", + Description: "Pulsar Client message consumption tools", + Category: "pulsar_client", + Tags: []string{"pulsar", "consume", "client", "messaging"}, + } + + features := []string{ + "pulsar-client", + "all", + "all-pulsar", + } + + return &PulsarClientConsumeLegacyToolBuilder{ + BaseToolBuilder: builders.NewBaseToolBuilder(metadata, features), + } +} + +// BuildTools builds the Pulsar Client Consumer tool list for the legacy server. +func (b *PulsarClientConsumeLegacyToolBuilder) BuildTools(_ context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + // Check features - return empty list if no required features are present + if !b.HasAnyRequiredFeature(config.Features) { + return nil, nil + } + + // Validate configuration (only validate when matching features are present) + if err := b.Validate(config); err != nil { + return nil, err + } + + // Build tools + tool := b.buildConsumeTool() + handler := b.buildConsumeHandler(config.ReadOnly) + + return []server.ServerTool{ + { + Tool: tool, + Handler: handler, + }, + }, nil +} + +// buildConsumeTool builds the Pulsar Client Consumer MCP tool definition. +func (b *PulsarClientConsumeLegacyToolBuilder) buildConsumeTool() mcp.Tool { + toolDesc := "Consume messages from a Pulsar topic. " + + "This tool allows you to consume messages from a specified Pulsar topic with various options " + + "to control the subscription behavior, message processing, and display format. " + + "Pulsar supports multiple subscription types (Exclusive, Shared, Failover, Key_Shared) and modes " + + "(Durable, Non-Durable) to accommodate different messaging patterns. " + + "The tool provides comprehensive control over consumption parameters including subscription position, " + + "timeout settings, and message display options. " + + "Do not use this tool for Kafka protocol operations. Use 'kafka_client_consume' instead." + + return mcp.NewTool("pulsar_client_consume", + mcp.WithDescription(toolDesc), + mcp.WithString("topic", mcp.Required(), + mcp.Description("The fully qualified topic name to consume from (format: [persistent|non-persistent]://tenant/namespace/topic). "+ + "For partitioned topics, you can consume from all partitions by specifying the base topic name "+ + "or from a specific partition by appending -partition-N to the topic name."), + ), + mcp.WithString("subscription-name", mcp.Required(), + mcp.Description("The subscription name for this consumer. "+ + "A subscription represents a named cursor for tracking message consumption progress. "+ + "Multiple consumers can share the same subscription name to form a consumer group."), + ), + mcp.WithString("subscription-type", + mcp.Description("Subscription type controlling message distribution among consumers:\n"+ + "- exclusive: Only one consumer can consume from the subscription at a time\n"+ + "- shared: Messages are distributed across all consumers in a round-robin fashion\n"+ + "- failover: Only one active consumer, others act as backups\n"+ + "- key_shared: Messages with the same key are delivered to the same consumer (default: exclusive)"), + ), + mcp.WithString("subscription-mode", + mcp.Description("Subscription durability mode:\n"+ + "- durable: Subscription persists even when all consumers disconnect\n"+ + "- non-durable: Subscription is deleted when all consumers disconnect (default: durable)"), + ), + mcp.WithString("initial-position", + mcp.Description("Initial cursor position for new subscriptions:\n"+ + "- latest: Start consuming from the latest (most recent) message\n"+ + "- earliest: Start consuming from the earliest (oldest available) message (default: latest)"), + ), + mcp.WithNumber("num-messages", + mcp.Description("Maximum number of messages to consume in this session. "+ + "Set to 0 for unlimited consumption until timeout. (default: 10)"), + ), + mcp.WithNumber("timeout", + mcp.Description("Maximum time to wait for messages in seconds. "+ + "The consumer will stop after this timeout even if fewer messages were received. (default: 30)"), + ), + mcp.WithBoolean("show-properties", + mcp.Description("Include message properties in the output. "+ + "Message properties are key-value pairs attached to messages for metadata purposes. (default: false)"), + ), + mcp.WithBoolean("hide-payload", + mcp.Description("Exclude message payload from the output. "+ + "Useful when you only need message metadata or are dealing with large payloads. (default: false)"), + ), + ) +} + +// buildConsumeHandler builds the Pulsar Client Consumer handler function. +func (b *PulsarClientConsumeLegacyToolBuilder) buildConsumeHandler(_ bool) func(context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error) { + return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { + // Extract required parameters with validation + topic, err := request.RequireString("topic") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get topic: %v", err)), nil + } + + subscriptionName, err := request.RequireString("subscription-name") + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to get subscription name: %v", err)), nil + } + + // Set default values and extract optional parameters + subscriptionType := request.GetString("subscription-type", "exclusive") + subscriptionMode := request.GetString("subscription-mode", "durable") + initialPosition := request.GetString("initial-position", "latest") + numMessages := int(request.GetFloat("num-messages", 10)) + timeout := int(request.GetFloat("timeout", 30)) + showProperties := request.GetBool("show-properties", false) + hidePayload := request.GetBool("hide-payload", false) + + // Get Pulsar session from context + session := mcpCtx.GetPulsarSession(ctx) + if session == nil { + return mcp.NewToolResultError("Pulsar session not found in context"), nil + } + + // Setup client + client, err := session.GetPulsarClient() + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create Pulsar client: %v", err)), nil + } + defer client.Close() + + // Prepare consumer options + consumerOpts := pulsar.ConsumerOptions{ + Name: "snmcp-consumer", + Topic: topic, + SubscriptionName: subscriptionName, + } + + // Set subscription type + switch strings.ToLower(subscriptionType) { + case "exclusive": + consumerOpts.Type = pulsar.Exclusive + case "shared": + consumerOpts.Type = pulsar.Shared + case "failover": + consumerOpts.Type = pulsar.Failover + case "key_shared": + consumerOpts.Type = pulsar.KeyShared + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription type: %s. Valid types: exclusive, shared, failover, key_shared", subscriptionType)), nil + } + + // Set subscription mode + switch strings.ToLower(subscriptionMode) { + case "durable": + consumerOpts.SubscriptionMode = pulsar.Durable + case "non-durable": + consumerOpts.SubscriptionMode = pulsar.NonDurable + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid subscription mode: %s. Valid modes: durable, non-durable", subscriptionMode)), nil + } + + // Set initial position + switch strings.ToLower(initialPosition) { + case "latest": + consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionLatest + case "earliest": + consumerOpts.SubscriptionInitialPosition = pulsar.SubscriptionPositionEarliest + default: + return mcp.NewToolResultError(fmt.Sprintf("Invalid initial position: %s. Valid positions: latest, earliest", initialPosition)), nil + } + + // Create consumer + consumer, err := client.Subscribe(consumerOpts) + if err != nil { + return mcp.NewToolResultError(fmt.Sprintf("Failed to create consumer: %v", err)), nil + } + defer consumer.Close() + + // Set up timeout context + timeoutDuration := time.Duration(timeout) * time.Second + consumeCtx, cancelConsume := context.WithTimeout(ctx, timeoutDuration) + defer cancelConsume() + + // Container for messages + type MessageData struct { + ID string `json:"id"` + PublishTime string `json:"publish_time"` + Properties map[string]string `json:"properties,omitempty"` + Key string `json:"key,omitempty"` + Data string `json:"data,omitempty"` + MessageCount int `json:"message_count"` + } + + messages := []MessageData{} + messageCount := 0 + + // Consume messages + for numMessages <= 0 || messageCount < numMessages { + // Receive message with timeout + msg, err := consumer.Receive(consumeCtx) + if err != nil { + if err == context.DeadlineExceeded || err == context.Canceled { + break + } + return mcp.NewToolResultError(fmt.Sprintf("Error receiving message: %v", err)), nil + } + + // Process the message + messageCount++ + + // Create message data + messageData := MessageData{ + ID: msg.ID().String(), + PublishTime: msg.PublishTime().Format(time.RFC3339), + MessageCount: messageCount, + } + + // Add properties if requested + if showProperties { + messageData.Properties = msg.Properties() + } + + // Add key if present + if msg.Key() != "" { + messageData.Key = msg.Key() + } + + // Add payload unless hidden + if !hidePayload { + messageData.Data = string(msg.Payload()) + } + + messages = append(messages, messageData) + + // Acknowledge the message + _ = consumer.Ack(msg) + } + + // Prepare response + response := map[string]interface{}{ + "topic": topic, + "subscription_name": subscriptionName, + "messages_consumed": messageCount, + "messages": messages, + } + + return b.marshalResponse(response) + } +} + +// Unified error handling and utility functions + +// handleError provides unified error handling +func (b *PulsarClientConsumeLegacyToolBuilder) handleError(operation string, err error) *mcp.CallToolResult { + return mcp.NewToolResultError(fmt.Sprintf("Failed to %s: %v", operation, err)) +} + +// marshalResponse provides unified JSON serialization for responses +func (b *PulsarClientConsumeLegacyToolBuilder) marshalResponse(data interface{}) (*mcp.CallToolResult, error) { + jsonBytes, err := json.Marshal(data) + if err != nil { + return b.handleError("marshal response", err), nil + } + return mcp.NewToolResultText(string(jsonBytes)), nil +} diff --git a/pkg/mcp/builders/pulsar/consume_test.go b/pkg/mcp/builders/pulsar/consume_test.go new file mode 100644 index 0000000..23baaa2 --- /dev/null +++ b/pkg/mcp/builders/pulsar/consume_test.go @@ -0,0 +1,175 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pulsar + +import ( + "context" + "testing" + + "github.com/google/jsonschema-go/jsonschema" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestPulsarClientConsumeToolBuilder(t *testing.T) { + builder := NewPulsarClientConsumeToolBuilder() + + t.Run("GetName", func(t *testing.T) { + assert.Equal(t, "pulsar_client_consume", builder.GetName()) + }) + + t.Run("GetRequiredFeatures", func(t *testing.T) { + features := builder.GetRequiredFeatures() + assert.NotEmpty(t, features) + assert.Contains(t, features, "pulsar-client") + }) + + t.Run("BuildTools_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"pulsar-client"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + assert.Equal(t, "pulsar_client_consume", tools[0].Definition().Name) + assert.NotNil(t, tools[0]) + }) + + t.Run("BuildTools_ReadOnlyMode", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: true, + Features: []string{"pulsar-client"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 1) + }) + + t.Run("BuildTools_NoFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + ReadOnly: false, + Features: []string{"unrelated-feature"}, + } + + tools, err := builder.BuildTools(context.Background(), config) + require.NoError(t, err) + assert.Len(t, tools, 0) + }) + + t.Run("Validate_Success", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"pulsar-client"}, + } + + err := builder.Validate(config) + assert.NoError(t, err) + }) + + t.Run("Validate_MissingFeatures", func(t *testing.T) { + config := builders.ToolBuildConfig{ + Features: []string{"unrelated-feature"}, + } + + err := builder.Validate(config) + assert.Error(t, err) + }) + + t.Run("Handler_MissingTopic", func(t *testing.T) { + handler := builder.buildConsumeHandler(false) + + _, _, err := handler(context.Background(), nil, pulsarClientConsumeInput{ + SubscriptionName: "sub", + }) + require.Error(t, err) + assert.Equal(t, "failed to get topic: topic is required", err.Error()) + }) + + t.Run("Handler_MissingSubscriptionName", func(t *testing.T) { + handler := builder.buildConsumeHandler(false) + + _, _, err := handler(context.Background(), nil, pulsarClientConsumeInput{ + Topic: "persistent://tenant/ns/topic", + }) + require.Error(t, err) + assert.Equal(t, "failed to get subscription name: subscription-name is required", err.Error()) + }) + + t.Run("Handler_InvalidSubscriptionTypeMissingSession", func(t *testing.T) { + handler := builder.buildConsumeHandler(false) + invalidType := "unknown" + + _, _, err := handler(context.Background(), nil, pulsarClientConsumeInput{ + Topic: "persistent://tenant/ns/topic", + SubscriptionName: "sub", + SubscriptionType: &invalidType, + }) + require.Error(t, err) + assert.Equal(t, "pulsar session not found in context", err.Error()) + }) + + t.Run("Handler_SessionMissing", func(t *testing.T) { + handler := builder.buildConsumeHandler(false) + + _, _, err := handler(context.Background(), nil, pulsarClientConsumeInput{ + Topic: "persistent://tenant/ns/topic", + SubscriptionName: "sub", + }) + require.Error(t, err) + assert.Equal(t, "pulsar session not found in context", err.Error()) + }) +} + +func TestPulsarClientConsumeToolSchema(t *testing.T) { + builder := NewPulsarClientConsumeToolBuilder() + tool, err := builder.buildConsumeTool() + require.NoError(t, err) + assert.Equal(t, "pulsar_client_consume", tool.Name) + + schema, ok := tool.InputSchema.(*jsonschema.Schema) + require.True(t, ok) + require.NotNil(t, schema.Properties) + + expectedRequired := []string{"topic", "subscription-name"} + assert.ElementsMatch(t, expectedRequired, schema.Required) + + expectedProps := []string{ + "topic", + "subscription-name", + "subscription-type", + "subscription-mode", + "initial-position", + "num-messages", + "timeout", + "show-properties", + "hide-payload", + } + assert.ElementsMatch(t, expectedProps, mapStringKeys(schema.Properties)) + + topicSchema := schema.Properties["topic"] + require.NotNil(t, topicSchema) + assert.Equal(t, pulsarClientConsumeTopicDesc, topicSchema.Description) + + subscriptionNameSchema := schema.Properties["subscription-name"] + require.NotNil(t, subscriptionNameSchema) + assert.Equal(t, pulsarClientConsumeSubscriptionNameDesc, subscriptionNameSchema.Description) + + subscriptionTypeSchema := schema.Properties["subscription-type"] + require.NotNil(t, subscriptionTypeSchema) + assert.Equal(t, pulsarClientConsumeSubscriptionTypeDesc, subscriptionTypeSchema.Description) +} diff --git a/pkg/mcp/pulsar_client_consume_tools.go b/pkg/mcp/pulsar_client_consume_tools.go index 7e68f33..f96cd46 100644 --- a/pkg/mcp/pulsar_client_consume_tools.go +++ b/pkg/mcp/pulsar_client_consume_tools.go @@ -16,15 +16,14 @@ package mcp import ( "context" - "fmt" - "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" ) -// PulsarClientConsumeTools creates Pulsar Client Consumer tool list using the new builder pattern -func PulsarClientConsumeTools(readOnly bool, features []string) []server.ServerTool { +// PulsarClientAddConsumerTools adds Pulsar client consumer tools to the MCP server. +func PulsarClientAddConsumerTools(s *sdk.Server, readOnly bool, features []string) { builder := pulsarBuilders.NewPulsarClientConsumeToolBuilder() config := builders.ToolBuildConfig{ ReadOnly: readOnly, @@ -33,19 +32,10 @@ func PulsarClientConsumeTools(readOnly bool, features []string) []server.ServerT tools, err := builder.BuildTools(context.Background(), config) if err != nil { - // In production environment, this should use proper logging - fmt.Printf("Failed to build Pulsar Client Consumer tools: %v\n", err) - return nil + return } - return tools -} - -// PulsarClientAddConsumerTools adds Pulsar client consumer tools to the MCP server -func PulsarClientAddConsumerTools(s *server.MCPServer, readOnly bool, features []string) { - tools := PulsarClientConsumeTools(readOnly, features) - for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } diff --git a/pkg/mcp/pulsar_client_consume_tools_legacy.go b/pkg/mcp/pulsar_client_consume_tools_legacy.go new file mode 100644 index 0000000..aa53645 --- /dev/null +++ b/pkg/mcp/pulsar_client_consume_tools_legacy.go @@ -0,0 +1,41 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + + "github.com/mark3labs/mcp-go/server" + "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders" + pulsarBuilders "github.com/streamnative/streamnative-mcp-server/pkg/mcp/builders/pulsar" +) + +// PulsarClientAddConsumerToolsLegacy adds Pulsar client consumer tools to the legacy MCP server. +func PulsarClientAddConsumerToolsLegacy(s *server.MCPServer, readOnly bool, features []string) { + builder := pulsarBuilders.NewPulsarClientConsumeLegacyToolBuilder() + config := builders.ToolBuildConfig{ + ReadOnly: readOnly, + Features: features, + } + + tools, err := builder.BuildTools(context.Background(), config) + if err != nil { + return + } + + for _, tool := range tools { + s.AddTool(tool.Tool, tool.Handler) + } +} From 5e1c636e05ce8b28ead4f18ade8f07d0e65e4170 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 13:55:03 +0800 Subject: [PATCH 70/85] feat: migrate pftools types to go-sdk --- pkg/mcp/pftools/manager.go | 339 +++++++++++++++++---- pkg/mcp/pftools/manager_conversion_test.go | 64 ++++ pkg/mcp/pftools/types.go | 11 +- pkg/mcp/pulsar_functions_as_tools.go | 5 +- 4 files changed, 345 insertions(+), 74 deletions(-) create mode 100644 pkg/mcp/pftools/manager_conversion_test.go diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index a509c75..b65e274 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -27,8 +27,9 @@ import ( "github.com/apache/pulsar-client-go/pulsaradmin/pkg/rest" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" "github.com/google/go-cmp/cmp" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + legacy "github.com/mark3labs/mcp-go/mcp" + legacyserver "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" "github.com/streamnative/streamnative-mcp-server/pkg/schema" @@ -54,7 +55,8 @@ var DefaultStringSchemaInfo = &SchemaInfo{ // Server is imported directly to avoid circular dependency type Server struct { - MCPServer *server.MCPServer + MCPServer *sdk.Server + LegacyServer *legacyserver.MCPServer KafkaSession *kafka.Session PulsarSession *pulsar.Session Logger interface{} @@ -100,6 +102,7 @@ func NewPulsarFunctionManager(snServer *Server, readOnly bool, options *ManagerO stopCh: make(chan struct{}), callInProgressMap: make(map[string]context.CancelFunc), mcpServer: snServer.MCPServer, + legacyServer: snServer.LegacyServer, readOnly: readOnly, defaultTimeout: options.DefaultTimeout, circuitBreakers: make(map[string]*CircuitBreaker), @@ -158,7 +161,7 @@ func (m *PulsarFunctionManager) updateFunctions() { // Check if this is a cluster health error and invoke callback if configured if (IsClusterUnhealthy(err) || IsAuthError(err)) && m.clusterErrorHandler != nil { - go m.clusterErrorHandler(m, err) + go m.clusterErrorHandler(context.Background(), m, err) } return } @@ -205,23 +208,9 @@ func (m *PulsarFunctionManager) updateFunctions() { } if changed { - if m.sessionID != "" { - err := m.mcpServer.DeleteSessionTools(m.sessionID, fnTool.Tool.Name) - if err != nil { - log.Printf("Failed to delete tool %s from session %s: %v", fnTool.Tool.Name, m.sessionID, err) - } - } else { - m.mcpServer.DeleteTools(fnTool.Tool.Name) - } - } - if m.sessionID != "" { - err := m.mcpServer.AddSessionTool(m.sessionID, fnTool.Tool, m.handleToolCall(fnTool)) - if err != nil { - log.Printf("Failed to add tool %s to session %s: %v", fnTool.Tool.Name, m.sessionID, err) - } - } else { - m.mcpServer.AddTool(fnTool.Tool, m.handleToolCall(fnTool)) + m.removeTool(fnTool) } + m.addTool(fnTool) // Add function to map m.mutex.Lock() @@ -239,14 +228,7 @@ func (m *PulsarFunctionManager) updateFunctions() { m.mutex.Lock() for fullName, fnTool := range m.fnToToolMap { if !seenFunctions[fullName] { - if m.sessionID != "" { - err := m.mcpServer.DeleteSessionTools(m.sessionID, fnTool.Tool.Name) - if err != nil { - log.Printf("Failed to delete tool %s from session %s: %v", fnTool.Tool.Name, m.sessionID, err) - } - } else { - m.mcpServer.DeleteTools(fnTool.Tool.Name) - } + m.removeTool(fnTool) delete(m.fnToToolMap, fullName) log.Printf("Removed function %s from MCP tools [%s]", fullName, fnTool.Tool.Name) } @@ -254,6 +236,55 @@ func (m *PulsarFunctionManager) updateFunctions() { m.mutex.Unlock() } +func (m *PulsarFunctionManager) addTool(fnTool *FunctionTool) { + if fnTool == nil || fnTool.Tool == nil { + return + } + + if m.mcpServer != nil { + m.mcpServer.AddTool(fnTool.Tool, m.handleToolCall(fnTool)) + return + } + + if m.legacyServer == nil { + return + } + + legacyTool := sdkToolToLegacy(fnTool.Tool) + if m.sessionID != "" { + if err := m.legacyServer.AddSessionTool(m.sessionID, legacyTool, m.handleLegacyToolCall(fnTool)); err != nil { + log.Printf("Failed to add tool %s to session %s: %v", legacyTool.Name, m.sessionID, err) + } + return + } + + m.legacyServer.AddTool(legacyTool, m.handleLegacyToolCall(fnTool)) +} + +func (m *PulsarFunctionManager) removeTool(fnTool *FunctionTool) { + if fnTool == nil || fnTool.Tool == nil { + return + } + + if m.mcpServer != nil { + m.mcpServer.RemoveTools(fnTool.Tool.Name) + return + } + + if m.legacyServer == nil { + return + } + + if m.sessionID != "" { + if err := m.legacyServer.DeleteSessionTools(m.sessionID, fnTool.Tool.Name); err != nil { + log.Printf("Failed to delete tool %s from session %s: %v", fnTool.Tool.Name, m.sessionID, err) + } + return + } + + m.legacyServer.DeleteTools(fnTool.Tool.Name) +} + // getFunctionsList retrieves all functions from the specified tenants/namespaces func (m *PulsarFunctionManager) getFunctionsList() ([]*utils.FunctionConfig, error) { var allFunctions []*utils.FunctionConfig @@ -417,12 +448,13 @@ func (m *PulsarFunctionManager) convertFunctionToTool(fn *utils.FunctionConfig) return nil, fmt.Errorf("failed to convert input schema to MCP tool input schema properties: %w", err) } - toolInputSchemaProperties = append(toolInputSchemaProperties, mcp.WithDescription(description)) + toolInputSchemaProperties = append(toolInputSchemaProperties, legacy.WithDescription(description)) // Create the tool - tool := mcp.NewTool(toolName, + legacyTool := legacy.NewTool(toolName, toolInputSchemaProperties..., ) + tool := legacyToolToSDK(legacyTool) // Create circuit breaker for this function circuitBreaker := NewCircuitBreaker(5, 60*time.Second) @@ -445,54 +477,72 @@ func (m *PulsarFunctionManager) convertFunctionToTool(fn *utils.FunctionConfig) } // handleToolCall returns a handler function for a specific function tool -func (m *PulsarFunctionManager) handleToolCall(fnTool *FunctionTool) func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - return func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) { - // Get the circuit breaker - m.mutex.RLock() - cb, exists := m.circuitBreakers[fnTool.Name] - m.mutex.RUnlock() - - if !exists { - cb = NewCircuitBreaker(5, 60*time.Second) - m.mutex.Lock() - m.circuitBreakers[fnTool.Name] = cb - m.mutex.Unlock() +func (m *PulsarFunctionManager) handleToolCall(fnTool *FunctionTool) func(ctx context.Context, request *sdk.CallToolRequest) (*sdk.CallToolResult, error) { + return func(ctx context.Context, request *sdk.CallToolRequest) (*sdk.CallToolResult, error) { + args := map[string]interface{}{} + if request != nil && len(request.Params.Arguments) > 0 { + if err := json.Unmarshal(request.Params.Arguments, &args); err != nil { + return legacyResultToSDK(legacy.NewToolResultError(fmt.Sprintf("Failed to parse arguments: %v", err))), nil + } } - // Check if the circuit breaker allows the request - if !cb.AllowRequest() { - return mcp.NewToolResultError(fmt.Sprintf("Circuit breaker is open for function %s. Too many failures, please try again later.", fnTool.Name)), nil - } + result, err := m.invokeToolCall(ctx, fnTool, args) + return legacyResultToSDK(result), err + } +} - // Create function invoker - invoker := NewFunctionInvoker(m) +func (m *PulsarFunctionManager) handleLegacyToolCall(fnTool *FunctionTool) func(ctx context.Context, request legacy.CallToolRequest) (*legacy.CallToolResult, error) { + return func(ctx context.Context, request legacy.CallToolRequest) (*legacy.CallToolResult, error) { + return m.invokeToolCall(ctx, fnTool, request.GetArguments()) + } +} - // Create context with timeout - timeoutCtx, cancel := context.WithTimeout(ctx, m.defaultTimeout) - defer cancel() +func (m *PulsarFunctionManager) invokeToolCall(ctx context.Context, fnTool *FunctionTool, args map[string]interface{}) (*legacy.CallToolResult, error) { + // Get the circuit breaker + m.mutex.RLock() + cb, exists := m.circuitBreakers[fnTool.Name] + m.mutex.RUnlock() - // Register call + if !exists { + cb = NewCircuitBreaker(5, 60*time.Second) m.mutex.Lock() - m.callInProgressMap[fnTool.Name] = cancel + m.circuitBreakers[fnTool.Name] = cb m.mutex.Unlock() - defer func() { - m.mutex.Lock() - delete(m.callInProgressMap, fnTool.Name) - m.mutex.Unlock() - }() + } - // Invoke function and wait for result - result, err := invoker.InvokeFunctionAndWait(timeoutCtx, fnTool, request.GetArguments()) + // Check if the circuit breaker allows the request + if !cb.AllowRequest() { + return legacy.NewToolResultError(fmt.Sprintf("Circuit breaker is open for function %s. Too many failures, please try again later.", fnTool.Name)), nil + } - // Record success or failure - if err != nil { - cb.RecordFailure() - } else { - cb.RecordSuccess() - } + // Create function invoker + invoker := NewFunctionInvoker(m) + + // Create context with timeout + timeoutCtx, cancel := context.WithTimeout(ctx, m.defaultTimeout) + defer cancel() + + // Register call + m.mutex.Lock() + m.callInProgressMap[fnTool.Name] = cancel + m.mutex.Unlock() + defer func() { + m.mutex.Lock() + delete(m.callInProgressMap, fnTool.Name) + m.mutex.Unlock() + }() + + // Invoke function and wait for result + result, err := invoker.InvokeFunctionAndWait(timeoutCtx, fnTool, args) - return result, err + // Record success or failure + if err != nil { + cb.RecordFailure() + } else { + cb.RecordSuccess() } + + return result, err } // getFunctionFullName returns the full name of a function @@ -573,3 +623,158 @@ func (m *PulsarFunctionManager) GetProducer(topic string) (pulsarclient.Producer log.Printf("Created and cached producer for topic: %s", topic) return newProducer, nil } + +func legacyToolToSDK(tool legacy.Tool) *sdk.Tool { + inputSchema := any(tool.InputSchema) + if tool.RawInputSchema != nil { + inputSchema = tool.RawInputSchema + } + + var outputSchema any + if tool.RawOutputSchema != nil { + outputSchema = tool.RawOutputSchema + } else if tool.OutputSchema.Type != "" { + outputSchema = tool.OutputSchema + } + + return &sdk.Tool{ + Name: tool.Name, + Description: tool.Description, + InputSchema: inputSchema, + OutputSchema: outputSchema, + Annotations: legacyAnnotationsToSDK(tool.Annotations), + } +} + +func legacyAnnotationsToSDK(annotations legacy.ToolAnnotation) *sdk.ToolAnnotations { + if annotations.Title == "" && + annotations.ReadOnlyHint == nil && + annotations.DestructiveHint == nil && + annotations.IdempotentHint == nil && + annotations.OpenWorldHint == nil { + return nil + } + + converted := &sdk.ToolAnnotations{ + Title: annotations.Title, + } + if annotations.ReadOnlyHint != nil { + converted.ReadOnlyHint = *annotations.ReadOnlyHint + } + if annotations.DestructiveHint != nil { + converted.DestructiveHint = annotations.DestructiveHint + } + if annotations.IdempotentHint != nil { + converted.IdempotentHint = *annotations.IdempotentHint + } + if annotations.OpenWorldHint != nil { + converted.OpenWorldHint = annotations.OpenWorldHint + } + return converted +} + +func sdkToolToLegacy(tool *sdk.Tool) legacy.Tool { + if tool == nil { + return legacy.Tool{} + } + + legacyTool := legacy.NewTool(tool.Name) + legacyTool.Description = tool.Description + applyLegacyInputSchema(&legacyTool, tool.InputSchema) + applyLegacyOutputSchema(&legacyTool, tool.OutputSchema) + + if tool.Annotations != nil { + legacyTool.Annotations = legacy.ToolAnnotation{ + Title: tool.Annotations.Title, + ReadOnlyHint: boolPtr(tool.Annotations.ReadOnlyHint), + DestructiveHint: tool.Annotations.DestructiveHint, + IdempotentHint: boolPtr(tool.Annotations.IdempotentHint), + OpenWorldHint: tool.Annotations.OpenWorldHint, + } + } + + return legacyTool +} + +func applyLegacyInputSchema(tool *legacy.Tool, schema any) { + if tool == nil || schema == nil { + return + } + + switch value := schema.(type) { + case legacy.ToolInputSchema: + tool.InputSchema = value + case *legacy.ToolInputSchema: + tool.InputSchema = *value + case json.RawMessage: + tool.RawInputSchema = value + tool.InputSchema = legacy.ToolInputSchema{} + case []byte: + tool.RawInputSchema = json.RawMessage(value) + tool.InputSchema = legacy.ToolInputSchema{} + default: + raw, err := json.Marshal(schema) + if err == nil { + tool.RawInputSchema = raw + tool.InputSchema = legacy.ToolInputSchema{} + } + } +} + +func applyLegacyOutputSchema(tool *legacy.Tool, schema any) { + if tool == nil || schema == nil { + return + } + + switch value := schema.(type) { + case legacy.ToolOutputSchema: + tool.OutputSchema = value + case *legacy.ToolOutputSchema: + tool.OutputSchema = *value + case json.RawMessage: + tool.RawOutputSchema = value + tool.OutputSchema = legacy.ToolOutputSchema{} + case []byte: + tool.RawOutputSchema = json.RawMessage(value) + tool.OutputSchema = legacy.ToolOutputSchema{} + default: + raw, err := json.Marshal(schema) + if err == nil { + tool.RawOutputSchema = raw + tool.OutputSchema = legacy.ToolOutputSchema{} + } + } +} + +func legacyResultToSDK(result *legacy.CallToolResult) *sdk.CallToolResult { + if result == nil { + return nil + } + + converted := &sdk.CallToolResult{ + StructuredContent: result.StructuredContent, + IsError: result.IsError, + } + + if len(result.Content) == 0 { + return converted + } + + converted.Content = make([]sdk.Content, 0, len(result.Content)) + for _, content := range result.Content { + switch value := content.(type) { + case legacy.TextContent: + converted.Content = append(converted.Content, &sdk.TextContent{Text: value.Text}) + case *legacy.TextContent: + converted.Content = append(converted.Content, &sdk.TextContent{Text: value.Text}) + default: + converted.Content = append(converted.Content, &sdk.TextContent{Text: fmt.Sprintf("%v", value)}) + } + } + + return converted +} + +func boolPtr(value bool) *bool { + return &value +} diff --git a/pkg/mcp/pftools/manager_conversion_test.go b/pkg/mcp/pftools/manager_conversion_test.go new file mode 100644 index 0000000..42c06a3 --- /dev/null +++ b/pkg/mcp/pftools/manager_conversion_test.go @@ -0,0 +1,64 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pftools + +import ( + "encoding/json" + "testing" + + legacy "github.com/mark3labs/mcp-go/mcp" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" + "github.com/stretchr/testify/require" +) + +func TestLegacyToolToSDKUsesStructuredSchema(t *testing.T) { + legacyTool := legacy.NewTool("test_tool", legacy.WithDescription("desc")) + + sdkTool := legacyToolToSDK(legacyTool) + require.NotNil(t, sdkTool) + require.Equal(t, "test_tool", sdkTool.Name) + require.Equal(t, "desc", sdkTool.Description) + + schema, ok := sdkTool.InputSchema.(legacy.ToolInputSchema) + require.True(t, ok) + require.Equal(t, "object", schema.Type) +} + +func TestSDKToolToLegacyHandlesRawSchema(t *testing.T) { + raw := json.RawMessage(`{"type":"object","properties":{"foo":{"type":"string"}}}`) + sdkTool := &sdk.Tool{ + Name: "test_tool", + Description: "desc", + InputSchema: raw, + } + + legacyTool := sdkToolToLegacy(sdkTool) + require.Equal(t, "test_tool", legacyTool.Name) + require.Equal(t, "desc", legacyTool.Description) + require.Equal(t, raw, legacyTool.RawInputSchema) + require.Equal(t, "", legacyTool.InputSchema.Type) +} + +func TestLegacyResultToSDKTextContent(t *testing.T) { + legacyResult := legacy.NewToolResultText("ok") + + sdkResult := legacyResultToSDK(legacyResult) + require.NotNil(t, sdkResult) + require.Len(t, sdkResult.Content, 1) + + textContent, ok := sdkResult.Content[0].(*sdk.TextContent) + require.True(t, ok) + require.Equal(t, "ok", textContent.Text) +} diff --git a/pkg/mcp/pftools/types.go b/pkg/mcp/pftools/types.go index 77ad7fe..8c4ab4c 100644 --- a/pkg/mcp/pftools/types.go +++ b/pkg/mcp/pftools/types.go @@ -21,8 +21,8 @@ import ( "github.com/apache/pulsar-client-go/pulsar" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" - "github.com/mark3labs/mcp-go/server" + legacyserver "github.com/mark3labs/mcp-go/server" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/pulsarctl/pkg/cmdutils" ) @@ -38,7 +38,8 @@ type PulsarFunctionManager struct { pollInterval time.Duration stopCh chan struct{} callInProgressMap map[string]context.CancelFunc - mcpServer *server.MCPServer + mcpServer *sdk.Server + legacyServer *legacyserver.MCPServer readOnly bool defaultTimeout time.Duration circuitBreakers map[string]*CircuitBreaker @@ -56,7 +57,7 @@ type FunctionTool struct { OutputSchema *SchemaInfo InputTopic string OutputTopic string - Tool mcp.Tool + Tool *sdk.Tool SchemaFetchSuccess bool } @@ -88,7 +89,7 @@ const ( ) // ClusterErrorHandler handles cluster errors for Pulsar function managers. -type ClusterErrorHandler func(*PulsarFunctionManager, error) +type ClusterErrorHandler func(context.Context, *PulsarFunctionManager, error) // ManagerOptions configures PulsarFunctionManager behavior. type ManagerOptions struct { diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go index ecec415..d80e8b4 100644 --- a/pkg/mcp/pulsar_functions_as_tools.go +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -15,6 +15,7 @@ package mcp import ( + "context" "log" "os" "slices" @@ -66,7 +67,7 @@ func (s *LegacyServer) PulsarFunctionManagedMcpTools(readOnly bool, features []s options := pftools2.DefaultManagerOptions() // Configure cluster error handler for graceful cleanup - options.ClusterErrorHandler = func(_ *pftools2.PulsarFunctionManager, err error) { + options.ClusterErrorHandler = func(_ context.Context, _ *pftools2.PulsarFunctionManager, err error) { log.Printf("Cluster health error detected: %v", err) log.Printf("Consider implementing cleanup logic here (e.g., stopping manager, notifying monitoring systems)") // The calling service can implement specific cleanup logic here @@ -118,7 +119,7 @@ func (s *LegacyServer) PulsarFunctionManagedMcpTools(readOnly bool, features []s // Convert Server to the internal pftools.Server type pftoolsServer := &pftools2.Server{ - MCPServer: s.MCPServer, + LegacyServer: s.MCPServer, KafkaSession: s.KafkaSession, PulsarSession: s.PulsarSession, Logger: s.logger, From 78db797dc42dab22e13f258d4c2d8e17d3b48d20 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 14:00:26 +0800 Subject: [PATCH 71/85] fix: migrate pftools schema conversion --- pkg/mcp/pftools/schema.go | 26 +++++++-------- pkg/mcp/pftools/schema_test.go | 58 ++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 13 deletions(-) create mode 100644 pkg/mcp/pftools/schema_test.go diff --git a/pkg/mcp/pftools/schema.go b/pkg/mcp/pftools/schema.go index 62ae155..d5e2240 100644 --- a/pkg/mcp/pftools/schema.go +++ b/pkg/mcp/pftools/schema.go @@ -20,17 +20,17 @@ import ( "github.com/apache/pulsar-client-go/pulsar" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" + "github.com/google/jsonschema-go/jsonschema" "github.com/streamnative/pulsarctl/pkg/cmdutils" ) // DefaultStringSchema defines the default MCP input schema for string payloads. -var DefaultStringSchema = &mcp.ToolInputSchema{ +var DefaultStringSchema = &jsonschema.Schema{ Type: "object", - Properties: map[string]interface{}{ - "payload": map[string]interface{}{ - "type": "string", - "description": "The payload of the message, in plain text format", + Properties: map[string]*jsonschema.Schema{ + "payload": { + Type: "string", + Description: "The payload of the message, in plain text format", }, }, } @@ -79,7 +79,7 @@ func GetSchemaFromTopic(admin cmdutils.Client, topic string) (*SchemaInfo, error } // ConvertSchemaToToolInput converts a schema to MCP tool input schema -func ConvertSchemaToToolInput(schemaInfo *SchemaInfo) (*mcp.ToolInputSchema, error) { +func ConvertSchemaToToolInput(schemaInfo *SchemaInfo) (*jsonschema.Schema, error) { if schemaInfo == nil { // Default to object with any fields if no schema is provided return DefaultStringSchema, nil @@ -97,7 +97,7 @@ func ConvertSchemaToToolInput(schemaInfo *SchemaInfo) (*mcp.ToolInputSchema, err } // convertComplexSchemaToToolInput handles conversion of complex schema types -func convertComplexSchemaToToolInput(schemaInfo *SchemaInfo) (*mcp.ToolInputSchema, error) { +func convertComplexSchemaToToolInput(schemaInfo *SchemaInfo) (*jsonschema.Schema, error) { if schemaInfo.Definition == nil { return DefaultStringSchema, nil } @@ -113,12 +113,12 @@ func convertComplexSchemaToToolInput(schemaInfo *SchemaInfo) (*mcp.ToolInputSche } // For JSON schemas, use the definition directly - return &mcp.ToolInputSchema{ + return &jsonschema.Schema{ Type: "object", - Properties: map[string]interface{}{ - "payload": map[string]interface{}{ - "type": "string", - "description": "The payload of the message, in JSON String format, the schema of the payload in AVRO format is: " + string(definitionString), + Properties: map[string]*jsonschema.Schema{ + "payload": { + Type: "string", + Description: "The payload of the message, in JSON String format, the schema of the payload in AVRO format is: " + string(definitionString), }, }, }, nil diff --git a/pkg/mcp/pftools/schema_test.go b/pkg/mcp/pftools/schema_test.go new file mode 100644 index 0000000..5d25280 --- /dev/null +++ b/pkg/mcp/pftools/schema_test.go @@ -0,0 +1,58 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package pftools + +import ( + "encoding/json" + "testing" + + "github.com/stretchr/testify/require" +) + +func TestConvertSchemaToToolInputDefaultsToString(t *testing.T) { + schema, err := ConvertSchemaToToolInput(nil) + require.NoError(t, err) + require.NotNil(t, schema) + require.Equal(t, "object", schema.Type) + + payload, ok := schema.Properties["payload"] + require.True(t, ok) + require.Equal(t, "string", payload.Type) + require.Contains(t, payload.Description, "plain text") +} + +func TestConvertSchemaToToolInputJSONSchema(t *testing.T) { + fields := []any{map[string]any{"name": "value", "type": "string"}} + definition := map[string]interface{}{"fields": fields} + + schema, err := ConvertSchemaToToolInput(&SchemaInfo{Type: "JSON", Definition: definition}) + require.NoError(t, err) + require.NotNil(t, schema) + + payload, ok := schema.Properties["payload"] + require.True(t, ok) + require.Equal(t, "string", payload.Type) + + definitionJSON, err := json.Marshal(fields) + require.NoError(t, err) + expectedDescription := "The payload of the message, in JSON String format, the schema of the payload in AVRO format is: " + string(definitionJSON) + require.Equal(t, expectedDescription, payload.Description) +} + +func TestConvertSchemaToToolInputRejectsAvro(t *testing.T) { + schema, err := ConvertSchemaToToolInput(&SchemaInfo{Type: "AVRO", Definition: map[string]interface{}{}}) + require.Error(t, err) + require.Nil(t, schema) +} From 8e0003649fce3d7a0869330dbd7561fe741c4931 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 14:17:52 +0800 Subject: [PATCH 72/85] refactor: migrate pftools manager to go-sdk --- pkg/mcp/pftools/manager.go | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index b65e274..e073cac 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -32,7 +32,6 @@ import ( sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" - "github.com/streamnative/streamnative-mcp-server/pkg/schema" ) const ( @@ -242,7 +241,7 @@ func (m *PulsarFunctionManager) addTool(fnTool *FunctionTool) { } if m.mcpServer != nil { - m.mcpServer.AddTool(fnTool.Tool, m.handleToolCall(fnTool)) + sdk.AddTool(m.mcpServer, fnTool.Tool, m.handleToolCall(fnTool)) return } @@ -438,24 +437,17 @@ func (m *PulsarFunctionManager) convertFunctionToTool(fn *utils.FunctionConfig) // Create description description := retrieveToolDescription(fn) - schemaConverter, err := schema.ConverterFactory(inputSchema.Type) + toolInputSchema, err := ConvertSchemaToToolInput(inputSchema) if err != nil { - return nil, fmt.Errorf("failed to create schema converter: %w", err) + return nil, fmt.Errorf("failed to convert input schema to MCP tool input schema: %w", err) } - toolInputSchemaProperties, err := schemaConverter.ToMCPToolInputSchemaProperties(inputSchema.PulsarSchemaInfo) - if err != nil { - return nil, fmt.Errorf("failed to convert input schema to MCP tool input schema properties: %w", err) + tool := &sdk.Tool{ + Name: toolName, + Description: description, + InputSchema: toolInputSchema, } - toolInputSchemaProperties = append(toolInputSchemaProperties, legacy.WithDescription(description)) - - // Create the tool - legacyTool := legacy.NewTool(toolName, - toolInputSchemaProperties..., - ) - tool := legacyToolToSDK(legacyTool) - // Create circuit breaker for this function circuitBreaker := NewCircuitBreaker(5, 60*time.Second) @@ -477,17 +469,15 @@ func (m *PulsarFunctionManager) convertFunctionToTool(fn *utils.FunctionConfig) } // handleToolCall returns a handler function for a specific function tool -func (m *PulsarFunctionManager) handleToolCall(fnTool *FunctionTool) func(ctx context.Context, request *sdk.CallToolRequest) (*sdk.CallToolResult, error) { - return func(ctx context.Context, request *sdk.CallToolRequest) (*sdk.CallToolResult, error) { - args := map[string]interface{}{} - if request != nil && len(request.Params.Arguments) > 0 { - if err := json.Unmarshal(request.Params.Arguments, &args); err != nil { - return legacyResultToSDK(legacy.NewToolResultError(fmt.Sprintf("Failed to parse arguments: %v", err))), nil - } +func (m *PulsarFunctionManager) handleToolCall(fnTool *FunctionTool) sdk.ToolHandlerFor[map[string]any, any] { + return func(ctx context.Context, _ *sdk.CallToolRequest, input map[string]any) (*sdk.CallToolResult, any, error) { + args := input + if args == nil { + args = map[string]any{} } result, err := m.invokeToolCall(ctx, fnTool, args) - return legacyResultToSDK(result), err + return legacyResultToSDK(result), nil, err } } From b5878dd5521cc9eb7c1cad49680f4f8238f56a18 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 14:27:55 +0800 Subject: [PATCH 73/85] refactor: migrate pftools invocation results --- pkg/mcp/pftools/invocation.go | 35 +++++++++++++----- pkg/mcp/pftools/manager.go | 42 +++++++++++++++++++--- pkg/mcp/pftools/manager_conversion_test.go | 21 +++++++++++ 3 files changed, 85 insertions(+), 13 deletions(-) diff --git a/pkg/mcp/pftools/invocation.go b/pkg/mcp/pftools/invocation.go index 24c3c37..a667220 100644 --- a/pkg/mcp/pftools/invocation.go +++ b/pkg/mcp/pftools/invocation.go @@ -25,7 +25,7 @@ import ( "github.com/apache/pulsar-client-go/pulsar" "github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils" - "github.com/mark3labs/mcp-go/mcp" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/schema" ) @@ -53,16 +53,33 @@ func NewFunctionInvoker(manager *PulsarFunctionManager) *FunctionInvoker { } } +func newToolResultText(text string) *sdk.CallToolResult { + return &sdk.CallToolResult{ + Content: []sdk.Content{ + &sdk.TextContent{Text: text}, + }, + } +} + +func newToolResultError(text string) *sdk.CallToolResult { + return &sdk.CallToolResult{ + Content: []sdk.Content{ + &sdk.TextContent{Text: text}, + }, + IsError: true, + } +} + // InvokeFunctionAndWait sends a message to the function and waits for the result -func (fi *FunctionInvoker) InvokeFunctionAndWait(ctx context.Context, fnTool *FunctionTool, params map[string]interface{}) (*mcp.CallToolResult, error) { +func (fi *FunctionInvoker) InvokeFunctionAndWait(ctx context.Context, fnTool *FunctionTool, params map[string]interface{}) (*sdk.CallToolResult, error) { schemaConverter, err := schema.ConverterFactory(fnTool.OutputSchema.Type) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to get schema converter: %v", err)), nil + return newToolResultError(fmt.Sprintf("Failed to get schema converter: %v", err)), nil } payload, err := schemaConverter.SerializeMCPRequestToPulsarPayload(params, fnTool.OutputSchema.PulsarSchemaInfo) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to serialize payload: %v", err)), nil + return newToolResultError(fmt.Sprintf("Failed to serialize payload: %v", err)), nil } // Create a result channel for this request @@ -71,7 +88,7 @@ func (fi *FunctionInvoker) InvokeFunctionAndWait(ctx context.Context, fnTool *Fu // Send message to input topic msgID, err := fi.sendMessage(ctx, fnTool.InputTopic, payload) if err != nil || msgID == "" { - return mcp.NewToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil + return newToolResultError(fmt.Sprintf("Failed to send message: %v", err)), nil } fi.registerResultChannel(msgID, resultChan) @@ -80,19 +97,19 @@ func (fi *FunctionInvoker) InvokeFunctionAndWait(ctx context.Context, fnTool *Fu // Set up consumer for output topic err = fi.setupConsumer(ctx, fnTool.InputTopic, fnTool.OutputTopic, msgID, fnTool.OutputSchema) if err != nil { - return mcp.NewToolResultError(fmt.Sprintf("Failed to set up consumer: %v", err)), nil + return newToolResultError(fmt.Sprintf("Failed to set up consumer: %v", err)), nil } // Wait for result or timeout select { case result := <-resultChan: if result.Error != nil { - return mcp.NewToolResultError(fmt.Sprintf("Function execution failed: %v", result.Error)), nil + return newToolResultError(fmt.Sprintf("Function execution failed: %v", result.Error)), nil } - return mcp.NewToolResultText(result.Data), nil + return newToolResultText(result.Data), nil case <-ctx.Done(): - return mcp.NewToolResultError(fmt.Sprintf("Function invocation timed out after %v", ctx.Value("timeout"))), nil + return newToolResultError(fmt.Sprintf("Function invocation timed out after %v", ctx.Value("timeout"))), nil } } diff --git a/pkg/mcp/pftools/manager.go b/pkg/mcp/pftools/manager.go index e073cac..f99e5c8 100644 --- a/pkg/mcp/pftools/manager.go +++ b/pkg/mcp/pftools/manager.go @@ -477,17 +477,18 @@ func (m *PulsarFunctionManager) handleToolCall(fnTool *FunctionTool) sdk.ToolHan } result, err := m.invokeToolCall(ctx, fnTool, args) - return legacyResultToSDK(result), nil, err + return result, nil, err } } func (m *PulsarFunctionManager) handleLegacyToolCall(fnTool *FunctionTool) func(ctx context.Context, request legacy.CallToolRequest) (*legacy.CallToolResult, error) { return func(ctx context.Context, request legacy.CallToolRequest) (*legacy.CallToolResult, error) { - return m.invokeToolCall(ctx, fnTool, request.GetArguments()) + result, err := m.invokeToolCall(ctx, fnTool, request.GetArguments()) + return sdkResultToLegacy(result), err } } -func (m *PulsarFunctionManager) invokeToolCall(ctx context.Context, fnTool *FunctionTool, args map[string]interface{}) (*legacy.CallToolResult, error) { +func (m *PulsarFunctionManager) invokeToolCall(ctx context.Context, fnTool *FunctionTool, args map[string]interface{}) (*sdk.CallToolResult, error) { // Get the circuit breaker m.mutex.RLock() cb, exists := m.circuitBreakers[fnTool.Name] @@ -502,7 +503,7 @@ func (m *PulsarFunctionManager) invokeToolCall(ctx context.Context, fnTool *Func // Check if the circuit breaker allows the request if !cb.AllowRequest() { - return legacy.NewToolResultError(fmt.Sprintf("Circuit breaker is open for function %s. Too many failures, please try again later.", fnTool.Name)), nil + return newToolResultError(fmt.Sprintf("Circuit breaker is open for function %s. Too many failures, please try again later.", fnTool.Name)), nil } // Create function invoker @@ -765,6 +766,39 @@ func legacyResultToSDK(result *legacy.CallToolResult) *sdk.CallToolResult { return converted } +func sdkResultToLegacy(result *sdk.CallToolResult) *legacy.CallToolResult { + if result == nil { + return nil + } + + converted := &legacy.CallToolResult{ + StructuredContent: result.StructuredContent, + IsError: result.IsError, + } + + if len(result.Content) == 0 { + return converted + } + + converted.Content = make([]legacy.Content, 0, len(result.Content)) + for _, content := range result.Content { + switch value := content.(type) { + case *sdk.TextContent: + converted.Content = append(converted.Content, legacy.TextContent{ + Type: legacy.ContentTypeText, + Text: value.Text, + }) + default: + converted.Content = append(converted.Content, legacy.TextContent{ + Type: legacy.ContentTypeText, + Text: fmt.Sprintf("%v", value), + }) + } + } + + return converted +} + func boolPtr(value bool) *bool { return &value } diff --git a/pkg/mcp/pftools/manager_conversion_test.go b/pkg/mcp/pftools/manager_conversion_test.go index 42c06a3..0879b90 100644 --- a/pkg/mcp/pftools/manager_conversion_test.go +++ b/pkg/mcp/pftools/manager_conversion_test.go @@ -62,3 +62,24 @@ func TestLegacyResultToSDKTextContent(t *testing.T) { require.True(t, ok) require.Equal(t, "ok", textContent.Text) } + +func TestSDKResultToLegacyTextContent(t *testing.T) { + sdkResult := &sdk.CallToolResult{ + Content: []sdk.Content{ + &sdk.TextContent{Text: "ok"}, + }, + IsError: true, + StructuredContent: map[string]any{"status": "ok"}, + } + + legacyResult := sdkResultToLegacy(sdkResult) + require.NotNil(t, legacyResult) + require.True(t, legacyResult.IsError) + require.Equal(t, sdkResult.StructuredContent, legacyResult.StructuredContent) + require.Len(t, legacyResult.Content, 1) + + textContent, ok := legacyResult.Content[0].(legacy.TextContent) + require.True(t, ok) + require.Equal(t, "ok", textContent.Text) + require.Equal(t, legacy.ContentTypeText, textContent.Type) +} From 3aa77627ae58407ed786dd8a5e4e2fdec7c98e06 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 14:33:20 +0800 Subject: [PATCH 74/85] fix: align functions-as-tools integration with go-sdk --- pkg/mcp/pulsar_functions_as_tools.go | 35 +++++++++++++++++++++------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/pkg/mcp/pulsar_functions_as_tools.go b/pkg/mcp/pulsar_functions_as_tools.go index d80e8b4..9f5beb0 100644 --- a/pkg/mcp/pulsar_functions_as_tools.go +++ b/pkg/mcp/pulsar_functions_as_tools.go @@ -24,6 +24,7 @@ import ( "sync" "time" + "github.com/streamnative/streamnative-mcp-server/pkg/config" pftools2 "github.com/streamnative/streamnative-mcp-server/pkg/mcp/pftools" ) @@ -52,6 +53,27 @@ func StopAllPulsarFunctionManagers() { // PulsarFunctionManagedMcpTools registers Pulsar Functions-as-tools handlers. func (s *LegacyServer) PulsarFunctionManagedMcpTools(readOnly bool, features []string, sessionID string) { + pftoolsServer := &pftools2.Server{ + LegacyServer: s.MCPServer, + KafkaSession: s.KafkaSession, + PulsarSession: s.PulsarSession, + Logger: s.logger, + } + registerPulsarFunctionManagedMcpTools(readOnly, features, sessionID, s.SNCloudSession, pftoolsServer) +} + +// PulsarFunctionManagedMcpTools registers Pulsar Functions-as-tools handlers. +func (s *Server) PulsarFunctionManagedMcpTools(readOnly bool, features []string, sessionID string) { + pftoolsServer := &pftools2.Server{ + MCPServer: s.MCPServer, + KafkaSession: s.KafkaSession, + PulsarSession: s.PulsarSession, + Logger: s.logger, + } + registerPulsarFunctionManagedMcpTools(readOnly, features, sessionID, s.SNCloudSession, pftoolsServer) +} + +func registerPulsarFunctionManagedMcpTools(readOnly bool, features []string, sessionID string, snCloudSession *config.Session, pftoolsServer *pftools2.Server) { if !slices.Contains(features, string(FeatureAll)) && !slices.Contains(features, string(FeatureFunctionsAsTools)) && !slices.Contains(features, string(FeatureStreamNativeCloud)) { @@ -74,7 +96,10 @@ func (s *LegacyServer) PulsarFunctionManagedMcpTools(readOnly bool, features []s // For example: stop the manager, send alerts, implement backoff strategies } - if s.SNCloudSession.Ctx.Organization == "" || s.SNCloudSession.Ctx.PulsarInstance == "" || s.SNCloudSession.Ctx.PulsarCluster == "" { + if snCloudSession == nil || + snCloudSession.Ctx.Organization == "" || + snCloudSession.Ctx.PulsarInstance == "" || + snCloudSession.Ctx.PulsarCluster == "" { log.Printf("Skipping Pulsar Functions as MCP Tools because both organization, pulsar instance and pulsar cluster are not set") return } @@ -117,14 +142,6 @@ func (s *LegacyServer) PulsarFunctionManagedMcpTools(readOnly bool, features []s log.Printf("Setting Pulsar Functions strict export to %v", options.StrictExport) } - // Convert Server to the internal pftools.Server type - pftoolsServer := &pftools2.Server{ - LegacyServer: s.MCPServer, - KafkaSession: s.KafkaSession, - PulsarSession: s.PulsarSession, - Logger: s.logger, - } - manager, err := pftools2.NewPulsarFunctionManager(pftoolsServer, readOnly, options, sessionID) if err != nil { log.Printf("Failed to create Pulsar Function manager: %v", err) From bf9098a13d5a5c2768f0326a5bea287c20395dea Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 14:52:17 +0800 Subject: [PATCH 75/85] feat: add MCP request context helpers Add go-sdk request/session accessors and typed-nil guard for context-based retrieval. --- pkg/mcp/ctx.go | 26 +++++++++++++++ pkg/mcp/ctx_test.go | 59 +++++++++++++++++++++++++++++++++ pkg/mcp/internal/context/ctx.go | 53 +++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 pkg/mcp/ctx_test.go diff --git a/pkg/mcp/ctx.go b/pkg/mcp/ctx.go index 434e2ce..29887b6 100644 --- a/pkg/mcp/ctx.go +++ b/pkg/mcp/ctx.go @@ -17,6 +17,7 @@ package mcp import ( "context" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/config" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" internalContext "github.com/streamnative/streamnative-mcp-server/pkg/mcp/internal/context" @@ -53,6 +54,31 @@ func WithKafkaSession(ctx context.Context, session *kafka.Session) context.Conte return internalContext.WithKafkaSession(ctx, session) } +// WithMCPRequest sets the MCP request in the context +func WithMCPRequest(ctx context.Context, request sdk.Request) context.Context { + return internalContext.WithMCPRequest(ctx, request) +} + +// GetMCPRequest gets the MCP request from the context +func GetMCPRequest(ctx context.Context) sdk.Request { + return internalContext.GetMCPRequest(ctx) +} + +// GetMCPSession gets the MCP session from the context +func GetMCPSession(ctx context.Context) sdk.Session { + return internalContext.GetMCPSession(ctx) +} + +// GetMCPSessionID gets the MCP session ID from the context +func GetMCPSessionID(ctx context.Context) string { + return internalContext.GetMCPSessionID(ctx) +} + +// GetMCPRequestExtra gets the MCP request extra from the context +func GetMCPRequestExtra(ctx context.Context) *sdk.RequestExtra { + return internalContext.GetMCPRequestExtra(ctx) +} + // GetSNCloudOrganization gets the SNCloud organization from the context func GetSNCloudOrganization(ctx context.Context) string { return internalContext.GetSNCloudOrganization(ctx) diff --git a/pkg/mcp/ctx_test.go b/pkg/mcp/ctx_test.go new file mode 100644 index 0000000..911985d --- /dev/null +++ b/pkg/mcp/ctx_test.go @@ -0,0 +1,59 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + "testing" + + sdk "github.com/modelcontextprotocol/go-sdk/mcp" +) + +func TestMCPRequestContextHelpers(t *testing.T) { + base := context.Background() + if GetMCPRequest(base) != nil { + t.Fatal("expected nil request") + } + if GetMCPRequestExtra(base) != nil { + t.Fatal("expected nil request extra") + } + if GetMCPSession(base) != nil { + t.Fatal("expected nil session") + } + if GetMCPSessionID(base) != "" { + t.Fatal("expected empty session ID") + } + + extra := &sdk.RequestExtra{} + reqStub := &sdk.ServerRequest[*sdk.CallToolParamsRaw]{Extra: extra} + ctx := WithMCPRequest(base, reqStub) + + req := GetMCPRequest(ctx) + if req == nil { + t.Fatal("expected request") + } + if got := GetMCPRequestExtra(ctx); got != extra { + t.Fatal("expected request extra to match") + } + if GetMCPSession(ctx) != nil { + t.Fatal("expected nil session") + } + if GetMCPSessionID(ctx) != "" { + t.Fatal("expected empty session ID") + } + if stub, ok := req.(*sdk.ServerRequest[*sdk.CallToolParamsRaw]); !ok || stub.Extra != extra { + t.Fatal("expected stored request") + } +} diff --git a/pkg/mcp/internal/context/ctx.go b/pkg/mcp/internal/context/ctx.go index 3008d4f..44242f0 100644 --- a/pkg/mcp/internal/context/ctx.go +++ b/pkg/mcp/internal/context/ctx.go @@ -17,7 +17,9 @@ package context //nolint:revive import ( "context" + "reflect" + sdk "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/streamnative/streamnative-mcp-server/pkg/config" "github.com/streamnative/streamnative-mcp-server/pkg/kafka" "github.com/streamnative/streamnative-mcp-server/pkg/pulsar" @@ -33,6 +35,7 @@ const ( SNCloudSessionContextKey contextKey = "sncloud_session" PulsarSessionContextKey contextKey = "pulsar_session" KafkaSessionContextKey contextKey = "kafka_session" + MCPRequestContextKey contextKey = "mcp_request" ) // WithSNCloudOrganization sets the SNCloud organization in the context @@ -65,6 +68,56 @@ func WithKafkaSession(ctx context.Context, session *kafka.Session) context.Conte return context.WithValue(ctx, KafkaSessionContextKey, session) } +// WithMCPRequest sets the MCP request in the context. +func WithMCPRequest(ctx context.Context, request sdk.Request) context.Context { + return context.WithValue(ctx, MCPRequestContextKey, request) +} + +// GetMCPRequest gets the MCP request from the context. +func GetMCPRequest(ctx context.Context) sdk.Request { + if val := ctx.Value(MCPRequestContextKey); val != nil { + if request, ok := val.(sdk.Request); ok { + return request + } + } + return nil +} + +// GetMCPSession gets the MCP session from the context. +func GetMCPSession(ctx context.Context) sdk.Session { + request := GetMCPRequest(ctx) + if request == nil { + return nil + } + session := request.GetSession() + if session == nil { + return nil + } + value := reflect.ValueOf(session) + if value.Kind() == reflect.Ptr && value.IsNil() { + return nil + } + return session +} + +// GetMCPSessionID gets the MCP session ID from the context. +func GetMCPSessionID(ctx context.Context) string { + session := GetMCPSession(ctx) + if session == nil { + return "" + } + return session.ID() +} + +// GetMCPRequestExtra gets the MCP request extra from the context. +func GetMCPRequestExtra(ctx context.Context) *sdk.RequestExtra { + request := GetMCPRequest(ctx) + if request == nil { + return nil + } + return request.GetExtra() +} + // GetSNCloudOrganization gets the SNCloud organization from the context func GetSNCloudOrganization(ctx context.Context) string { if val := ctx.Value(SNCloudOrganizationContextKey); val != nil { From 1d981c5a17124eb310f29213007360c78fdd6c8b Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 15:04:35 +0800 Subject: [PATCH 76/85] fix: align go-sdk middleware recovery Ensure panic recovery matches legacy tool handler messages and runs without a logger. --- pkg/mcp/server_middleware_test.go | 51 +++++++++++++++++++++++++++++++ pkg/mcp/server_new.go | 51 +++++++++++++++++++++---------- 2 files changed, 86 insertions(+), 16 deletions(-) create mode 100644 pkg/mcp/server_middleware_test.go diff --git a/pkg/mcp/server_middleware_test.go b/pkg/mcp/server_middleware_test.go new file mode 100644 index 0000000..8c69764 --- /dev/null +++ b/pkg/mcp/server_middleware_test.go @@ -0,0 +1,51 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package mcp + +import ( + "context" + "testing" + + sdk "github.com/modelcontextprotocol/go-sdk/mcp" + "github.com/stretchr/testify/require" +) + +func TestRecoveryMiddleware_ToolPanicUsesToolName(t *testing.T) { + middleware := recoveryMiddleware(nil) + handler := middleware(func(context.Context, string, sdk.Request) (sdk.Result, error) { + panic("boom") + }) + + req := &sdk.CallToolRequest{ + Params: &sdk.CallToolParamsRaw{ + Name: "kafka.topics.create", + }, + } + result, err := handler(context.Background(), "tools/call", req) + require.Nil(t, result) + require.EqualError(t, err, "panic recovered in kafka.topics.create tool handler: boom") +} + +func TestRecoveryMiddleware_MethodPanicUsesMethodName(t *testing.T) { + middleware := recoveryMiddleware(nil) + handler := middleware(func(context.Context, string, sdk.Request) (sdk.Result, error) { + panic("boom") + }) + + req := &sdk.ListResourcesRequest{} + result, err := handler(context.Background(), "resources/list", req) + require.Nil(t, result) + require.EqualError(t, err, "panic recovered in resources/list request: boom") +} diff --git a/pkg/mcp/server_new.go b/pkg/mcp/server_new.go index 7e6a660..5d1b8a4 100644 --- a/pkg/mcp/server_new.go +++ b/pkg/mcp/server_new.go @@ -117,14 +117,17 @@ func slogLevelFromLogrus(level logrus.Level) slog.Level { } func addDefaultMiddleware(server *sdk.Server, logger *logrus.Logger) { - if logger == nil { + if server == nil { return } - server.AddReceivingMiddleware( - loggingMiddleware(logger), + middlewares := []sdk.Middleware{ recoveryMiddleware(logger), - ) + } + if logger != nil { + middlewares = append([]sdk.Middleware{loggingMiddleware(logger)}, middlewares...) + } + server.AddReceivingMiddleware(middlewares...) } func loggingMiddleware(logger *logrus.Logger) sdk.Middleware { @@ -143,7 +146,7 @@ func loggingMiddleware(logger *logrus.Logger) sdk.Middleware { "session_id": sessionID, }) - if callReq, ok := req.(*sdk.CallToolRequest); ok { + if callReq, ok := req.(*sdk.CallToolRequest); ok && callReq != nil && callReq.Params != nil { entry = entry.WithField("tool", callReq.Params.Name) entry.Debug("MCP tool call started") } else { @@ -173,19 +176,35 @@ func recoveryMiddleware(logger *logrus.Logger) sdk.Middleware { return func(ctx context.Context, method string, req sdk.Request) (result sdk.Result, err error) { defer func() { if recovered := recover(); recovered != nil { - sessionID := "" - if req != nil { - if session := req.GetSession(); session != nil { - sessionID = session.ID() + toolName := "" + if callReq, ok := req.(*sdk.CallToolRequest); ok && callReq != nil && callReq.Params != nil { + toolName = callReq.Params.Name + } + + if logger != nil { + sessionID := "" + if req != nil { + if session := req.GetSession(); session != nil { + sessionID = session.ID() + } } + fields := logrus.Fields{ + "method": method, + "session_id": sessionID, + "panic": recovered, + } + if toolName != "" { + fields["tool"] = toolName + } + logger.WithFields(fields).Error("MCP request panic recovered") + logger.WithField("stack", string(debug.Stack())).Debug("MCP panic stack") + } + + if toolName != "" { + err = fmt.Errorf("panic recovered in %s tool handler: %v", toolName, recovered) + } else { + err = fmt.Errorf("panic recovered in %s request: %v", method, recovered) } - logger.WithFields(logrus.Fields{ - "method": method, - "session_id": sessionID, - "panic": recovered, - }).Error("MCP request panic recovered") - logger.WithField("stack", string(debug.Stack())).Debug("MCP panic stack") - err = fmt.Errorf("panic recovered in %s request: %v", method, recovered) result = nil } }() From e7978fea96ebf1b53474f0897e50c0b6a8aef1d7 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 15:14:50 +0800 Subject: [PATCH 77/85] test: add testcontainers e2e scaffolding --- cmd/snmcp-e2e/testcontainers.go | 193 +++++++++++++++++++++++++++ cmd/snmcp-e2e/testcontainers_test.go | 83 ++++++++++++ go.mod | 62 +++++++-- go.sum | 178 +++++++++++++++--------- go.work.sum | 28 +++- 5 files changed, 467 insertions(+), 77 deletions(-) create mode 100644 cmd/snmcp-e2e/testcontainers.go create mode 100644 cmd/snmcp-e2e/testcontainers_test.go diff --git a/cmd/snmcp-e2e/testcontainers.go b/cmd/snmcp-e2e/testcontainers.go new file mode 100644 index 0000000..27ae118 --- /dev/null +++ b/cmd/snmcp-e2e/testcontainers.go @@ -0,0 +1,193 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package main + +import ( + "context" + "errors" + "fmt" + "os" + "strings" + "time" + + "github.com/testcontainers/testcontainers-go" + "github.com/testcontainers/testcontainers-go/modules/kafka" + "github.com/testcontainers/testcontainers-go/wait" +) + +const ( + pulsarBrokerPort = "6650/tcp" + pulsarWebServicePort = "8080/tcp" + defaultPulsarImage = "apachepulsar/pulsar:latest" + defaultKafkaImage = "confluentinc/confluent-local:7.5.0" + defaultStartupTimeout = 5 * time.Minute +) + +var errTestcontainersDisabled = errors.New("testcontainers disabled") + +type testcontainersConfig struct { + Enabled bool + PulsarImage string + KafkaImage string + StartupTimeout time.Duration +} + +type testcontainersEnv struct { + Pulsar testcontainers.Container + Kafka *kafka.KafkaContainer + PulsarWebServiceURL string + PulsarBrokerURL string + KafkaBrokers string +} + +func loadTestcontainersConfig() testcontainersConfig { + return testcontainersConfig{ + Enabled: getenvBool("E2E_USE_TESTCONTAINERS", false), + PulsarImage: getenv("E2E_PULSAR_IMAGE", defaultPulsarImage), + KafkaImage: getenv("E2E_KAFKA_IMAGE", defaultKafkaImage), + StartupTimeout: getenvDuration("E2E_TESTCONTAINERS_TIMEOUT", defaultStartupTimeout), + } +} + +func startTestcontainers(ctx context.Context, cfg testcontainersConfig) (*testcontainersEnv, error) { + if !cfg.Enabled { + return nil, errTestcontainersDisabled + } + if err := validateTestcontainersConfig(cfg); err != nil { + return nil, err + } + + startupCtx, cancel := context.WithTimeout(ctx, cfg.StartupTimeout) + defer cancel() + + pulsarContainer, err := startPulsarContainer(startupCtx, cfg) + if err != nil { + return nil, err + } + + pulsarWebURL, pulsarBrokerURL, err := resolvePulsarEndpoints(startupCtx, pulsarContainer) + if err != nil { + _ = pulsarContainer.Terminate(startupCtx) + return nil, err + } + + kafkaContainer, kafkaBrokers, err := startKafkaContainer(startupCtx, cfg) + if err != nil { + _ = pulsarContainer.Terminate(startupCtx) + return nil, err + } + + env := &testcontainersEnv{ + Pulsar: pulsarContainer, + Kafka: kafkaContainer, + PulsarWebServiceURL: pulsarWebURL, + PulsarBrokerURL: pulsarBrokerURL, + KafkaBrokers: kafkaBrokers, + } + return env, nil +} + +func (env *testcontainersEnv) Terminate(ctx context.Context) error { + if env == nil { + return nil + } + + var err error + if env.Kafka != nil { + err = errors.Join(err, env.Kafka.Terminate(ctx)) + } + if env.Pulsar != nil { + err = errors.Join(err, env.Pulsar.Terminate(ctx)) + } + return err +} + +func validateTestcontainersConfig(cfg testcontainersConfig) error { + if strings.TrimSpace(cfg.PulsarImage) == "" { + return errors.New("pulsar image is required") + } + if strings.TrimSpace(cfg.KafkaImage) == "" { + return errors.New("kafka image is required") + } + if cfg.StartupTimeout <= 0 { + return errors.New("startup timeout must be positive") + } + return nil +} + +func startPulsarContainer(ctx context.Context, cfg testcontainersConfig) (testcontainers.Container, error) { + request := testcontainers.ContainerRequest{ + Image: cfg.PulsarImage, + ExposedPorts: []string{pulsarBrokerPort, pulsarWebServicePort}, + Cmd: []string{"standalone"}, + WaitingFor: wait.ForAll( + wait.ForListeningPort(pulsarBrokerPort), + wait.ForListeningPort(pulsarWebServicePort), + ).WithDeadline(cfg.StartupTimeout), + } + container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{ + ContainerRequest: request, + Started: true, + }) + if err != nil { + return nil, fmt.Errorf("start pulsar container: %w", err) + } + return container, nil +} + +func resolvePulsarEndpoints(ctx context.Context, container testcontainers.Container) (string, string, error) { + host, err := container.Host(ctx) + if err != nil { + return "", "", fmt.Errorf("pulsar host: %w", err) + } + webPort, err := container.MappedPort(ctx, pulsarWebServicePort) + if err != nil { + return "", "", fmt.Errorf("pulsar web service port: %w", err) + } + brokerPort, err := container.MappedPort(ctx, pulsarBrokerPort) + if err != nil { + return "", "", fmt.Errorf("pulsar broker port: %w", err) + } + + webURL := fmt.Sprintf("http://%s:%s", host, webPort.Port()) + brokerURL := fmt.Sprintf("pulsar://%s:%s", host, brokerPort.Port()) + return webURL, brokerURL, nil +} + +func startKafkaContainer(ctx context.Context, cfg testcontainersConfig) (*kafka.KafkaContainer, string, error) { + container, err := kafka.Run(ctx, cfg.KafkaImage) + if err != nil { + return nil, "", fmt.Errorf("start kafka container: %w", err) + } + + brokers, err := container.Brokers(ctx) + if err != nil { + _ = container.Terminate(ctx) + return nil, "", fmt.Errorf("kafka brokers: %w", err) + } + return container, strings.Join(brokers, ","), nil +} + +func getenvDuration(key string, fallback time.Duration) time.Duration { + raw := os.Getenv(key) + if strings.TrimSpace(raw) == "" { + return fallback + } + value, err := time.ParseDuration(raw) + if err != nil { + return fallback + } + return value +} diff --git a/cmd/snmcp-e2e/testcontainers_test.go b/cmd/snmcp-e2e/testcontainers_test.go new file mode 100644 index 0000000..f5376b1 --- /dev/null +++ b/cmd/snmcp-e2e/testcontainers_test.go @@ -0,0 +1,83 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package main + +import ( + "context" + "testing" + "time" + + "github.com/stretchr/testify/require" +) + +func TestLoadTestcontainersConfigDefaults(t *testing.T) { + cfg := loadTestcontainersConfig() + require.False(t, cfg.Enabled) + require.Equal(t, defaultPulsarImage, cfg.PulsarImage) + require.Equal(t, defaultKafkaImage, cfg.KafkaImage) + require.Equal(t, defaultStartupTimeout, cfg.StartupTimeout) +} + +func TestLoadTestcontainersConfigOverrides(t *testing.T) { + t.Setenv("E2E_USE_TESTCONTAINERS", "true") + t.Setenv("E2E_PULSAR_IMAGE", "apachepulsar/pulsar:3.2.2") + t.Setenv("E2E_KAFKA_IMAGE", "confluentinc/confluent-local:7.6.0") + t.Setenv("E2E_TESTCONTAINERS_TIMEOUT", "2m") + + cfg := loadTestcontainersConfig() + require.True(t, cfg.Enabled) + require.Equal(t, "apachepulsar/pulsar:3.2.2", cfg.PulsarImage) + require.Equal(t, "confluentinc/confluent-local:7.6.0", cfg.KafkaImage) + require.Equal(t, 2*time.Minute, cfg.StartupTimeout) +} + +func TestLoadTestcontainersConfigInvalidTimeout(t *testing.T) { + t.Setenv("E2E_TESTCONTAINERS_TIMEOUT", "not-a-duration") + cfg := loadTestcontainersConfig() + require.Equal(t, defaultStartupTimeout, cfg.StartupTimeout) +} + +func TestStartTestcontainersDisabled(t *testing.T) { + cfg := testcontainersConfig{Enabled: false} + env, err := startTestcontainers(context.Background(), cfg) + require.ErrorIs(t, err, errTestcontainersDisabled) + require.Nil(t, env) +} + +func TestTestcontainersEnvTerminateNil(t *testing.T) { + var env *testcontainersEnv + require.NoError(t, env.Terminate(context.Background())) +} + +func TestValidateTestcontainersConfig(t *testing.T) { + cfg := testcontainersConfig{ + Enabled: true, + PulsarImage: "apachepulsar/pulsar:latest", + KafkaImage: "confluentinc/confluent-local:7.5.0", + StartupTimeout: time.Minute, + } + require.NoError(t, validateTestcontainersConfig(cfg)) + + cfg.PulsarImage = "" + require.Error(t, validateTestcontainersConfig(cfg)) + + cfg.PulsarImage = "apachepulsar/pulsar:latest" + cfg.KafkaImage = "" + require.Error(t, validateTestcontainersConfig(cfg)) + + cfg.KafkaImage = "confluentinc/confluent-local:7.5.0" + cfg.StartupTimeout = 0 + require.Error(t, validateTestcontainersConfig(cfg)) +} diff --git a/go.mod b/go.mod index 5b128c3..8267264 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,8 @@ require ( github.com/apache/pulsar-client-go v0.13.1 github.com/golang-jwt/jwt v3.2.1+incompatible github.com/google/go-cmp v0.7.0 + github.com/google/jsonschema-go v0.3.0 + github.com/google/uuid v1.6.0 github.com/hamba/avro/v2 v2.28.0 github.com/mark3labs/mcp-go v0.43.2 github.com/mitchellh/go-homedir v1.1.0 @@ -18,69 +20,99 @@ require ( github.com/streamnative/pulsarctl v0.4.3-0.20250312214758-e472faec284b github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver v0.0.0-20250506174209-b67ea08ddd82 github.com/streamnative/streamnative-mcp-server/sdk/sdk-kafkaconnect v0.0.0-00010101000000-000000000000 - github.com/stretchr/testify v1.10.0 + github.com/stretchr/testify v1.11.1 + github.com/testcontainers/testcontainers-go v0.40.0 + github.com/testcontainers/testcontainers-go/modules/kafka v0.40.0 github.com/twmb/franz-go v1.18.1 github.com/twmb/franz-go/pkg/kadm v1.16.0 github.com/twmb/franz-go/pkg/sr v1.3.0 github.com/twmb/tlscfg v1.2.1 - golang.org/x/oauth2 v0.30.0 + golang.org/x/oauth2 v0.34.0 gopkg.in/yaml.v2 v2.4.0 k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 ) require ( + dario.cat/mergo v1.0.2 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/AthenZ/athenz v1.10.39 // indirect github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/DataDog/zstd v1.5.0 // indirect + github.com/Microsoft/go-winio v0.6.2 // indirect github.com/ardielle/ardielle-go v1.5.2 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bits-and-blooms/bitset v1.4.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect + github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/containerd/errdefs v1.0.0 // indirect + github.com/containerd/errdefs/pkg v0.3.0 // indirect + github.com/containerd/log v0.1.0 // indirect + github.com/containerd/platforms v0.2.1 // indirect + github.com/cpuguy83/dockercfg v0.3.2 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/distribution/reference v0.6.0 // indirect + github.com/docker/docker v28.5.1+incompatible // indirect + github.com/docker/go-connections v0.6.0 // indirect + github.com/docker/go-units v0.5.0 // indirect github.com/dvsekhvalnov/jose2go v1.7.0 // indirect + github.com/ebitengine/purego v0.8.4 // indirect github.com/fatih/color v1.7.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect + github.com/go-logr/logr v1.4.3 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-ole/go-ole v1.2.6 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.2 // indirect github.com/golang/protobuf v1.5.4 // indirect - github.com/google/jsonschema-go v0.3.0 // indirect - github.com/google/uuid v1.6.0 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.4 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/invopop/jsonschema v0.13.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.17.11 // indirect + github.com/klauspost/compress v1.18.0 // indirect github.com/kris-nova/logger v0.0.0-20181127235838-fd0d87064b06 // indirect github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b // indirect - github.com/magiconair/properties v1.8.7 // indirect + github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect + github.com/magiconair/properties v1.8.10 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.2 // indirect github.com/mattn/go-isatty v0.0.8 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/moby/docker-image-spec v1.3.1 // indirect + github.com/moby/go-archive v0.1.0 // indirect + github.com/moby/patternmatcher v0.6.0 // indirect + github.com/moby/sys/sequential v0.6.0 // indirect + github.com/moby/sys/user v0.4.0 // indirect + github.com/moby/sys/userns v0.1.0 // indirect + github.com/moby/term v0.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/morikuni/aec v1.0.0 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/onsi/gomega v1.35.1 // indirect + github.com/opencontainers/go-digest v1.0.0 // indirect + github.com/opencontainers/image-spec v1.1.1 // indirect github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/pierrec/lz4 v2.0.5+incompatible // indirect github.com/pierrec/lz4/v4 v4.1.22 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/client_golang v1.20.5 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.55.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect - github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/sagikazarmark/locafero v0.7.0 // indirect + github.com/shirou/gopsutil/v4 v4.25.6 // indirect github.com/sourcegraph/conc v0.3.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/afero v1.12.0 // indirect @@ -88,17 +120,27 @@ require ( github.com/spf13/pflag v1.0.6 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/subosito/gotenv v1.6.0 // indirect + github.com/tklauser/go-sysconf v0.3.12 // indirect + github.com/tklauser/numcpus v0.6.1 // indirect github.com/twmb/franz-go/pkg/kmsg v1.9.0 // indirect github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect + github.com/yusufpapurcu/wmi v1.2.4 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect + go.opentelemetry.io/otel v1.38.0 // indirect + go.opentelemetry.io/otel/metric v1.38.0 // indirect + go.opentelemetry.io/otel/sdk v1.38.0 // indirect + go.opentelemetry.io/otel/trace v1.38.0 // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.9.0 // indirect golang.org/x/crypto v0.45.0 // indirect - golang.org/x/mod v0.29.0 // indirect + golang.org/x/mod v0.30.0 // indirect golang.org/x/sys v0.38.0 // indirect golang.org/x/term v0.37.0 // indirect - golang.org/x/text v0.31.0 // indirect - google.golang.org/protobuf v1.36.1 // indirect + golang.org/x/text v0.32.0 // indirect + google.golang.org/grpc v1.78.0 // indirect + google.golang.org/protobuf v1.36.11 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index f070325..2a91f3a 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,11 @@ -dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= -dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +dario.cat/mergo v1.0.2 h1:85+piFYR1tMbRrLcDwR18y4UKJ3aH1Tbzi24VRW1TK8= +dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= +github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk= +github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/AthenZ/athenz v1.10.39 h1:mtwHTF/v62ewY2Z5KWhuZgVXftBej1/Tn80zx4DcawY= github.com/AthenZ/athenz v1.10.39/go.mod h1:3Tg8HLsiQZp81BJY58JBeU2BR6B/H4/0MQGfCwhHNEA= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= @@ -11,10 +13,10 @@ github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg6 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/DataDog/zstd v1.5.0 h1:+K/VEwIAaPcHiMtQvpLD4lqW7f0Gk3xdYZmI1hD+CXo= github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= +github.com/IBM/sarama v1.42.1 h1:wugyWa15TDEHh2kvq2gAy1IHLjEjuYOYgXz/ruC/OSQ= +github.com/IBM/sarama v1.42.1/go.mod h1:Xxho9HkHd4K/MDUo/T/sOqwtX/17D33++E9Wib6hUdQ= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= -github.com/Microsoft/hcsshim v0.11.5 h1:haEcLNpj9Ka1gd3B3tAEs9CpE0c+1IhoL59w/exYU38= -github.com/Microsoft/hcsshim v0.11.5/go.mod h1:MV8xMfmECjl5HdO7U/3/hFVnkmSBjAjmA09d4bExKcU= github.com/apache/pulsar-client-go v0.13.1 h1:XAAKXjF99du7LP6qu/nBII1HC2nS483/vQoQIWmm5Yg= github.com/apache/pulsar-client-go v0.13.1/go.mod h1:0X5UCs+Cv5w6Ds38EZebUMfyVUFIh+URF2BeipEVhIU= github.com/ardielle/ardielle-go v1.5.2 h1:TilHTpHIQJ27R1Tl/iITBzMwiUGSlVfiVhwDNGM3Zj4= @@ -33,15 +35,19 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3 github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/containerd/containerd v1.7.18 h1:jqjZTQNfXGoEaZdW1WwPU0RqSn1Bm2Ay/KJPUuO8nao= -github.com/containerd/containerd v1.7.18/go.mod h1:IYEk9/IO6wAPUz2bCMVUbsfXjzw5UNP5fLz4PsUygQ4= -github.com/containerd/errdefs v0.1.0 h1:m0wCRBiu1WJT/Fr+iOoQHMQS/eP5myQ8lCv4Dz5ZURM= -github.com/containerd/errdefs v0.1.0/go.mod h1:YgWiiHtLmSeBrvpw+UfPijzbLaB77mEG1WwJTDETIV0= +github.com/containerd/errdefs v1.0.0 h1:tg5yIfIlQIrxYtu9ajqY42W3lpS19XqdxRQeEwYG8PI= +github.com/containerd/errdefs v1.0.0/go.mod h1:+YBYIdtsnF4Iw6nWZhJcqGSg/dwvV7tyJ/kCkyJ2k+M= +github.com/containerd/errdefs/pkg v0.3.0 h1:9IKJ06FvyNlexW690DXuQNx2KA2cUJXx151Xdx3ZPPE= +github.com/containerd/errdefs/pkg v0.3.0/go.mod h1:NJw6s9HwNuRhnjJhM7pylWwMyAkmCQvQ4GpJHEqRLVk= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= -github.com/cpuguy83/dockercfg v0.3.1 h1:/FpZ+JaygUR/lZP2NlFI2DVfrOEMAIKP5wWEJdoYe9E= -github.com/cpuguy83/dockercfg v0.3.1/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= +github.com/containerd/platforms v0.2.1 h1:zvwtM3rz2YHPQsF2CHYM8+KtB5dvhISiXh5ZpSBQv6A= +github.com/containerd/platforms v0.2.1/go.mod h1:XHCb+2/hzowdiut9rkudds9bE5yJ7npe7dG/wG+uFPw= +github.com/cpuguy83/dockercfg v0.3.2 h1:DlJTyZGBDlXqUZ2Dk2Q3xHs/FtnooJJVaad2S9GKorA= +github.com/cpuguy83/dockercfg v0.3.2/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= +github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -52,14 +58,22 @@ github.com/dimfeld/httptreemux v5.0.1+incompatible h1:Qj3gVcDNoOthBAqftuD596rm4w github.com/dimfeld/httptreemux v5.0.1+incompatible/go.mod h1:rbUlSV+CCpv/SuqUTP/8Bk2O3LyUV436/yaRGkhP6Z0= github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= -github.com/docker/docker v27.1.1+incompatible h1:hO/M4MtV36kzKldqnA37IWhebRA+LnqqcqDja6kVaKY= -github.com/docker/docker v27.1.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= -github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= -github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= +github.com/docker/docker v28.5.1+incompatible h1:Bm8DchhSD2J6PsFzxC35TZo4TLGR2PdW/E69rU45NhM= +github.com/docker/docker v28.5.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.6.0 h1:LlMG9azAe1TqfR7sO+NJttz1gy6KO7VJBh+pMmjSD94= +github.com/docker/go-connections v0.6.0/go.mod h1:AahvXYshr6JgfUJGdDCs2b5EZG/vmaMAntpSFH5BFKE= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/dvsekhvalnov/jose2go v1.7.0 h1:bnQc8+GMnidJZA8zc6lLEAb4xNrIqHwO+9TzqvtQZPo= github.com/dvsekhvalnov/jose2go v1.7.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/eapache/go-resiliency v1.4.0 h1:3OK9bWpPk5q6pbFAaYSEwD9CLUSHG8bnZuqX2yMt3B0= +github.com/eapache/go-resiliency v1.4.0/go.mod h1:5yPzW0MIvSe0JDsv0v+DvcjEv2FyD6iZYSs1ZI+iQho= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 h1:Oy0F4ALJ04o5Qqpdz8XLIpNA3WM/iSIXqxtqo7UGVws= +github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3/go.mod h1:YvSRo5mw33fLEx1+DlK6L2VV43tJt5Eyel9n9XBcR+0= +github.com/eapache/queue v1.1.0 h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/ebitengine/purego v0.8.4 h1:CF7LEKg5FFOsASUj0+QwaXf8Ht6TlFxg09+S9wz0omw= +github.com/ebitengine/purego v0.8.4/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= @@ -70,8 +84,9 @@ github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/ github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= @@ -81,8 +96,6 @@ github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9L github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= @@ -92,7 +105,10 @@ github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVI github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -101,6 +117,8 @@ github.com/google/jsonschema-go v0.3.0/go.mod h1:r5quNTdLOYEz95Ru18zA0ydNbBuYoo9 github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.4 h1:kEISI/Gx67NzH3nJxAmY/dGac80kKZgZt134u7Y/k1s= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.4/go.mod h1:6Nz966r3vQYCqIzWsuEl9d7cf7mRhtDmm++sOxlnfxI= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= github.com/hamba/avro/v2 v2.28.0 h1:E8J5D27biyAulWKNiEBhV85QPc9xRMCUCGJewS0KYCE= @@ -110,18 +128,30 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= +github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/invopop/jsonschema v0.13.0 h1:KvpoAJWEjR3uD9Kbm2HWJmqsEaHt8lBUpd0qHcIi21E= github.com/invopop/jsonschema v0.13.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0= github.com/jawher/mow.cli v1.0.4/go.mod h1:5hQj2V8g+qYmLUVWqu4Wuja1pI57M83EChYLVZ0sMKk= github.com/jawher/mow.cli v1.2.0/go.mod h1:y+pcA3jBAdo/GIZx/0rFjw/K2bVEODP9rfZOfaiq8Ko= +github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8= +github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= +github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo= +github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= +github.com/jcmturner/gofork v1.7.6 h1:QH0l3hzAU1tfT3rZCnW5zXl+orbkNMMRGJfdJjHVETg= +github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= +github.com/jcmturner/gokrb5/v8 v8.4.4 h1:x1Sv4HaTpepFkXbt2IkL29DXRf8sOfZXo8eRKh687T8= +github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= +github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZY= +github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= github.com/jmespath/go-jmespath v0.3.0/go.mod h1:9QtRXoHjLGCJ5IBSaohpXITPlowMeeYCZ7fLUTSywik= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc= -github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0= +github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo= +github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -135,8 +165,8 @@ github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b h1:xYEM2oBUhBE github.com/kris-nova/lolgopher v0.0.0-20180921204813-313b3abb0d9b/go.mod h1:V0HF/ZBlN86HqewcDC/cVxMmYDiRukWjSrgKLUAn9Js= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= -github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= -github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/magiconair/properties v1.8.10 h1:s31yESBquKXCV9a/ScB3ESkOjUYYv+X0rg8SYxI99mE= +github.com/magiconair/properties v1.8.10/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mark3labs/mcp-go v0.43.2 h1:21PUSlWWiSbUPQwXIJ5WKlETixpFpq+WBpbMGDSVy/I= @@ -151,12 +181,18 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= +github.com/moby/go-archive v0.1.0 h1:Kk/5rdW/g+H8NHdJW2gsXyZ7UnzvJNOy6VKJqueWdcQ= +github.com/moby/go-archive v0.1.0/go.mod h1:G9B+YoujNohJmrIYFBpSd54GTUB4lt9S+xVQvsJyFuo= github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk= github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc= -github.com/moby/sys/sequential v0.5.0 h1:OPvI35Lzn9K04PBbCLW0g4LcFAJgHsvXsRyewg5lXtc= -github.com/moby/sys/sequential v0.5.0/go.mod h1:tH2cOOs5V9MlPiXcQzRC+eEyab644PWKGRYaaV5ZZlo= -github.com/moby/sys/user v0.1.0 h1:WmZ93f5Ux6het5iituh9x2zAG7NFY9Aqi49jjE1PaQg= -github.com/moby/sys/user v0.1.0/go.mod h1:fKJhFOnsCN6xZ5gSfbM6zaHGgDJMrqt9/reuj4T7MmU= +github.com/moby/sys/atomicwriter v0.1.0 h1:kw5D/EqkBwsBFi0ss9v1VG3wIkVhzGvLklJ+w3A14Sw= +github.com/moby/sys/atomicwriter v0.1.0/go.mod h1:Ul8oqv2ZMNHOceF643P6FKPXeCmYtlQMvpizfsSoaWs= +github.com/moby/sys/sequential v0.6.0 h1:qrx7XFUd/5DxtqcoH1h438hF5TmOvzC/lspjy7zgvCU= +github.com/moby/sys/sequential v0.6.0/go.mod h1:uyv8EUTrca5PnDsdMGXhZe6CCe8U/UiTWd+lL+7b/Ko= +github.com/moby/sys/user v0.4.0 h1:jhcMKit7SA80hivmFJcbB1vqmw//wU61Zdui2eQXuMs= +github.com/moby/sys/user v0.4.0/go.mod h1:bG+tYYYJgaMtRKgEmuueC0hJEAZWwtIbZTB+85uoHjs= +github.com/moby/sys/userns v0.1.0 h1:tVLXkFOxVu9A64/yh59slHVv9ahO9UIev4JZusOLG/g= +github.com/moby/sys/userns v0.1.0/go.mod h1:IHUYgu/kao6N8YZlp9Cf444ySSvCmDlmzUcYfDHOl28= github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= github.com/modelcontextprotocol/go-sdk v1.2.0 h1:Y23co09300CEk8iZ/tMxIX1dVmKZkzoSBZOpJwUnc/s= @@ -181,8 +217,8 @@ github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4= github.com/onsi/gomega v1.35.1/go.mod h1:PvZbdDc8J6XJEpDK4HCuRBm8a6Fzp9/DmhC9C7yFlog= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= -github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= +github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040= +github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I= @@ -204,15 +240,15 @@ github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= +github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sagikazarmark/locafero v0.7.0 h1:5MqpDsTGNDhY8sGp0Aowyf0qKsPrhewaLSsFaodPcyo= github.com/sagikazarmark/locafero v0.7.0/go.mod h1:2za3Cg5rMaTMoG/2Ulr9AwtFaIppKXTRYnozin4aB5k= -github.com/shirou/gopsutil/v3 v3.23.12 h1:z90NtUkp3bMtmICZKpC4+WaknU1eXtp5vtbQ11DgpE4= -github.com/shirou/gopsutil/v3 v3.23.12/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= -github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= -github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= +github.com/shirou/gopsutil/v4 v4.25.6 h1:kLysI2JsKorfaFPcYmcJqbzROzsBWEOAtw6A7dIfqXs= +github.com/shirou/gopsutil/v4 v4.25.6/go.mod h1:PfybzyydfZcN+JMMjkF6Zb8Mq1A/VcogFFg7hj50W9c= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= @@ -239,12 +275,14 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= -github.com/testcontainers/testcontainers-go v0.32.0 h1:ug1aK08L3gCHdhknlTTwWjPHPS+/alvLJU/DRxTD/ME= -github.com/testcontainers/testcontainers-go v0.32.0/go.mod h1:CRHrzHLQhlXUsa5gXjTOfqIEJcrK5+xMDmBr/WMI88E= +github.com/testcontainers/testcontainers-go v0.40.0 h1:pSdJYLOVgLE8YdUY2FHQ1Fxu+aMnb6JfVz1mxk7OeMU= +github.com/testcontainers/testcontainers-go v0.40.0/go.mod h1:FSXV5KQtX2HAMlm7U3APNyLkkap35zNLxukw9oBi/MY= +github.com/testcontainers/testcontainers-go/modules/kafka v0.40.0 h1:BW4CMO6rYLvJRC7UF4l0rudnwm7IX/kJPvGd9MCJM6I= +github.com/testcontainers/testcontainers-go/modules/kafka v0.40.0/go.mod h1:O4U0SUR8blhkRLLfIFHQqNRKzee7fOxzya2H+rnl4OY= github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= @@ -263,16 +301,26 @@ github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/ github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= -github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= -github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= +github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8= -go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw= -go.opentelemetry.io/otel v1.29.0/go.mod h1:N/WtXPs1CNCUEx+Agz5uouwCba+i+bJGFicT8SR4NP8= -go.opentelemetry.io/otel/metric v1.29.0 h1:vPf/HFWTNkPu1aYeIsc98l4ktOQaL6LeSoeV2g+8YLc= -go.opentelemetry.io/otel/metric v1.29.0/go.mod h1:auu/QWieFVWx+DmQOUMgj0F8LHWdgalxXqvp7BII/W8= -go.opentelemetry.io/otel/trace v1.29.0 h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4= -go.opentelemetry.io/otel/trace v1.29.0/go.mod h1:eHl3w0sp3paPkYstJOmAimxhiFXPg+MMTlEh3nsQgWQ= +go.opentelemetry.io/otel v1.38.0 h1:RkfdswUDRimDg0m2Az18RKOsnI8UDzppJAtj01/Ymk8= +go.opentelemetry.io/otel v1.38.0/go.mod h1:zcmtmQ1+YmQM9wrNsTGV/q/uyusom3P8RxwExxkZhjM= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 h1:Mne5On7VWdx7omSrSSZvM4Kw7cS7NQkOOmLcgscI51U= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0/go.mod h1:IPtUMKL4O3tH5y+iXVyAXqpAwMuzC1IrxVS81rummfE= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0 h1:QY7/0NeRPKlzusf40ZE4t1VlMKbqSNT7cJRYzWuja0s= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0/go.mod h1:HVkSiDhTM9BoUJU8qE6j2eSWLLXvi1USXjyd2BXT8PY= +go.opentelemetry.io/otel/metric v1.38.0 h1:Kl6lzIYGAh5M159u9NgiRkmoMKjvbsKtYRwgfrA6WpA= +go.opentelemetry.io/otel/metric v1.38.0/go.mod h1:kB5n/QoRM8YwmUahxvI3bO34eVtQf2i4utNVLr9gEmI= +go.opentelemetry.io/otel/sdk v1.38.0 h1:l48sr5YbNf2hpCUj/FoGhW9yDkl+Ma+LrVl8qaM5b+E= +go.opentelemetry.io/otel/sdk v1.38.0/go.mod h1:ghmNdGlVemJI3+ZB5iDEuk4bWA3GkTpW+DOoZMYBVVg= +go.opentelemetry.io/otel/trace v1.38.0 h1:Fxk5bKrDZJUH+AMyyIXGcFAPah0oRcT+LuNtJrmcNLE= +go.opentelemetry.io/otel/trace v1.38.0/go.mod h1:j1P9ivuFsTceSWe1oY+EeW3sc+Pp42sO++GHkg4wwhs= +go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I= +go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM= go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI= @@ -281,25 +329,29 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q= golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4= -golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= -golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= +golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk= +golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= -golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= -golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= +golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= +golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -308,20 +360,24 @@ golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= -golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= +golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= +golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= +golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg= +golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ= -golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs= +golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ= +golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 h1:ToEetK57OidYuqD4Q5w+vfEnPvPpuTwedCNVohYJfNk= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= -google.golang.org/grpc v1.67.3 h1:OgPcDAFKHnH8X3O4WcO4XUc8GRDeKsKReqbQtiCj7N8= -google.golang.org/grpc v1.67.3/go.mod h1:YGaHCc6Oap+FzBJTZLBzkGSYt/cvGPFTPxkn7QfSU8s= -google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= -google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/genproto/googleapis/api v0.0.0-20251222181119-0a764e51fe1b h1:uA40e2M6fYRBf0+8uN5mLlqUtV192iiksiICIBkYJ1E= +google.golang.org/genproto/googleapis/api v0.0.0-20251222181119-0a764e51fe1b/go.mod h1:Xa7le7qx2vmqB/SzWUBa7KdMjpdpAHlh5QCSnjessQk= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b h1:Mv8VFug0MP9e5vUxfBcE3vUkV6CImK3cMNMIDFjmzxU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ= +google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc= +google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -339,6 +395,8 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q= +gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 h1:M3sRQVHv7vB20Xc2ybTt7ODCeFj6JSWYFzOFnYeS6Ro= k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= diff --git a/go.work.sum b/go.work.sum index 84e6fa8..241bd62 100644 --- a/go.work.sum +++ b/go.work.sum @@ -12,6 +12,7 @@ cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2Qx cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/compute/metadata v0.6.0 h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I= cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg= +cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= cloud.google.com/go/datastore v1.1.0 h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ= cloud.google.com/go/iam v1.2.2 h1:ozUSofHUGf/F4tCNy/mu9tHLTaxZFLOUiKzjcgWHGIA= cloud.google.com/go/iam v1.2.2/go.mod h1:0Ys8ccaZHdI1dEUilwzqng/6ps2YB6vRsjIe00/+6JY= @@ -80,13 +81,14 @@ github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-redis/redis v6.15.6+incompatible h1:H9evprGPLI8+ci7fxQx6WNZHJSb7be8FqJQRhdQZ5Sg= github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk= github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= -github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -97,8 +99,6 @@ github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.4.3 h1:GV+pQPG/EUUbkh47niozDcADz6go/dUwhVzdUQHIVRw= github.com/golang/mock v1.4.4 h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc= -github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= -github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -170,6 +170,7 @@ github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= github.com/rogpeppe/go-internal v1.3.0 h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= @@ -186,18 +187,24 @@ github.com/yuin/goldmark v1.1.32 h1:5tjfNdR2ki3yYQ842+eX2sQHeiwpKJ0RnHO4IYOc4V8= go.opencensus.io v0.22.4 h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= go.opentelemetry.io/contrib/detectors/gcp v1.29.0 h1:TiaiXB4DpGD3sdzNlYQxruQngn5Apwzi1X0DRhuGvDQ= go.opentelemetry.io/contrib/detectors/gcp v1.29.0/go.mod h1:GW2aWZNwR2ZxDLdv8OyC2G8zkRoQBuURgV7RPQgcPoU= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 h1:r6I7RJCN86bpD/FQwedZ0vSixDpwuWREjW9oRMsmqDc= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0/go.mod h1:B9yO6b04uB80CzjedvewuqDhxJxi11s7/GtiGa8bAjI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0 h1:QY7/0NeRPKlzusf40ZE4t1VlMKbqSNT7cJRYzWuja0s= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.27.0/go.mod h1:HVkSiDhTM9BoUJU8qE6j2eSWLLXvi1USXjyd2BXT8PY= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.27.0 h1:mlk+/Y1gLPLn84U4tI8d3GNJmGT/eXe3ZuOXN9kTWmI= go.opentelemetry.io/otel/sdk v1.27.0/go.mod h1:Ha9vbLwJE6W86YstIywK2xFfPjbWlCuwPtMkKdz/Y4A= go.opentelemetry.io/otel/sdk v1.29.0 h1:vkqKjk7gwhS8VaWb0POZKmIEDimRCMsopNYnriHyryo= go.opentelemetry.io/otel/sdk v1.29.0/go.mod h1:pM8Dx5WKnvxLCb+8lG1PRNIDxu9g9b9g59Qr7hfAAok= go.opentelemetry.io/otel/sdk/metric v1.29.0 h1:K2CfmJohnRgvZ9UAj2/FhIf/okdWcNdBwe1m8xFXiSY= go.opentelemetry.io/otel/sdk/metric v1.29.0/go.mod h1:6zZLdCl2fkauYoZIOn/soQIDSWFmNSRcICarHfuhNJQ= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= @@ -209,8 +216,12 @@ golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4= golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM= golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= +golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= +golang.org/x/mod v0.29.0/go.mod h1:NyhrlYXJ2H4eJiRy/WDBO6HMqZQ6q9nk4JzS3NuCK+w= golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI= +golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU= golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= @@ -224,16 +235,17 @@ golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 h1:B6caxRw+hozq68X2MY7jEpZh/ golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 h1:vVKdlvoWBphwdxWKrFZEuM0kGgGLxUOYcY4U/2Vjg44= golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg= -golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d h1:W07d4xkoAUSNOkOzdzXCdFGxT7o2rW4q8M34tB2i//k= @@ -259,6 +271,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1: google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= google.golang.org/grpc v1.31.0 h1:T7P4R73V3SSDPhH7WW7ATbfViLtmamH0DKrP3f9AuDI= +google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= +google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8= gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= From a983912b8ed56d95fdb6e67c25696caa62ff8f71 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 15:22:58 +0800 Subject: [PATCH 78/85] test: migrate e2e client to go-sdk --- cmd/snmcp-e2e/main.go | 96 ++++++++++++++++++++----------------------- 1 file changed, 45 insertions(+), 51 deletions(-) diff --git a/cmd/snmcp-e2e/main.go b/cmd/snmcp-e2e/main.go index 43d2f08..9bf6647 100644 --- a/cmd/snmcp-e2e/main.go +++ b/cmd/snmcp-e2e/main.go @@ -28,8 +28,7 @@ import ( "sync" "time" - "github.com/mark3labs/mcp-go/client" - "github.com/mark3labs/mcp-go/mcp" + "github.com/modelcontextprotocol/go-sdk/mcp" ) type config struct { @@ -272,34 +271,19 @@ func expectUnauthorized(ctx context.Context, sseURL, token string, verbose bool) return fmt.Errorf("expected unauthorized status for %s, got %d", sseURL, status) } - headers := map[string]string{ - "Authorization": "Bearer " + token, - } - c, err := client.NewSSEMCPClient(sseURL, client.WithHeaders(headers)) + session, err := newAuthedClient(ctx, sseURL, token, "snmcp-e2e-unauthorized") if err != nil { - return err - } - defer func() { - _ = c.Close() - }() - - if err := c.Start(ctx); err != nil { - logf(verbose, "sse start error: %v", err) + logf(verbose, "sse connect error: %v", err) if isAuthError(err) { return nil } return fmt.Errorf("expected auth error for %s, got %v", sseURL, err) } + defer func() { + _ = session.Close() + }() - if err := initializeClient(ctx, c, "snmcp-e2e-unauthorized"); err != nil { - logf(verbose, "initialize error: %v", err) - if isAuthError(err) { - return nil - } - return fmt.Errorf("expected auth error during initialize for %s, got %v", sseURL, err) - } - - result, err := callTool(ctx, c, "pulsar_admin_cluster", map[string]any{ + result, err := callTool(ctx, session, "pulsar_admin_cluster", map[string]any{ "resource": "cluster", "operation": "list", }) @@ -321,39 +305,49 @@ func expectUnauthorized(ctx context.Context, sseURL, token string, verbose bool) return nil } -func newAuthedClient(ctx context.Context, sseURL, token, clientName string) (*client.Client, error) { - headers := map[string]string{ - "Authorization": "Bearer " + token, - } - c, err := client.NewSSEMCPClient(sseURL, client.WithHeaders(headers)) - if err != nil { - return nil, err +func newAuthedClient(ctx context.Context, sseURL, token, clientName string) (*mcp.ClientSession, error) { + transport := &mcp.SSEClientTransport{ + Endpoint: sseURL, + HTTPClient: newAuthHTTPClient(token), } - if err := c.Start(ctx); err != nil { - return nil, err + c := mcp.NewClient(&mcp.Implementation{ + Name: clientName, + Version: "1.0.0", + }, nil) + return c.Connect(ctx, transport, nil) +} + +type authRoundTripper struct { + base http.RoundTripper + token string +} + +func (rt *authRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { + base := rt.base + if base == nil { + base = http.DefaultTransport } - if err := initializeClient(ctx, c, clientName); err != nil { - return nil, err + cloned := req.Clone(req.Context()) + if rt.token != "" { + cloned.Header.Set("Authorization", "Bearer "+rt.token) } - return c, nil + return base.RoundTrip(cloned) } -func initializeClient(ctx context.Context, c *client.Client, name string) error { - req := mcp.InitializeRequest{} - req.Params.ProtocolVersion = mcp.LATEST_PROTOCOL_VERSION - req.Params.ClientInfo = mcp.Implementation{ - Name: name, - Version: "1.0.0", +func newAuthHTTPClient(token string) *http.Client { + return &http.Client{ + Transport: &authRoundTripper{ + base: http.DefaultTransport, + token: token, + }, } - _, err := c.Initialize(ctx, req) - return err } -func callTool(ctx context.Context, c *client.Client, name string, args map[string]any) (*mcp.CallToolResult, error) { - request := mcp.CallToolRequest{} - request.Params.Name = name - request.Params.Arguments = args - return c.CallTool(ctx, request) +func callTool(ctx context.Context, session *mcp.ClientSession, name string, args map[string]any) (*mcp.CallToolResult, error) { + return session.CallTool(ctx, &mcp.CallToolParams{ + Name: name, + Arguments: args, + }) } func requireToolOK(result *mcp.CallToolResult, err error, label string) error { @@ -380,7 +374,7 @@ func firstText(result *mcp.CallToolResult) string { if result == nil || len(result.Content) == 0 { return "" } - if text, ok := result.Content[0].(mcp.TextContent); ok { + if text, ok := result.Content[0].(*mcp.TextContent); ok { return text.Text } return "" @@ -443,7 +437,7 @@ func isAuthText(text string) bool { return false } -func listClusters(ctx context.Context, c *client.Client) ([]string, error) { +func listClusters(ctx context.Context, c *mcp.ClientSession) ([]string, error) { result, err := callTool(ctx, c, "pulsar_admin_cluster", map[string]any{ "resource": "cluster", "operation": "list", @@ -462,7 +456,7 @@ func listClusters(ctx context.Context, c *client.Client) ([]string, error) { return clusters, nil } -func runConcurrent(ctx context.Context, adminClient, testClient *client.Client, topic, subscription string) error { +func runConcurrent(ctx context.Context, adminClient, testClient *mcp.ClientSession, topic, subscription string) error { var wg sync.WaitGroup errCh := make(chan error, 2) From b875f8bd50850e55d8e9c8e5dcd9f107644ea3cb Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 15:39:40 +0800 Subject: [PATCH 79/85] test: add pulsar admin e2e coverage --- cmd/snmcp-e2e/pulsar_test.go | 391 +++++++++++++++++++++++++++++++++++ 1 file changed, 391 insertions(+) create mode 100644 cmd/snmcp-e2e/pulsar_test.go diff --git a/cmd/snmcp-e2e/pulsar_test.go b/cmd/snmcp-e2e/pulsar_test.go new file mode 100644 index 0000000..456be16 --- /dev/null +++ b/cmd/snmcp-e2e/pulsar_test.go @@ -0,0 +1,391 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package main + +import ( + "bufio" + "bytes" + "context" + "fmt" + "net" + "net/http" + "os" + "os/exec" + "path/filepath" + "strings" + "testing" + "time" + + "github.com/stretchr/testify/require" + "github.com/testcontainers/testcontainers-go" + "github.com/testcontainers/testcontainers-go/wait" +) + +const ( + defaultAdminRole = "admin" + defaultTestUser = "test-user" + authSecretFilePath = "/pulsarctl/test/auth/token/secret.key" //nolint:gosec // static test container path +) + +type authTokens struct { + AdminToken string + TestUserToken string +} + +func TestPulsarAdminE2E(t *testing.T) { + if testing.Short() { + t.Skip("skipping e2e test in short mode") + } + if !getenvBool("E2E_USE_TESTCONTAINERS", false) { + t.Skip("set E2E_USE_TESTCONTAINERS=true to run e2e tests") + } + + tokens := loadAuthTokens(t) + secretKeyPath := loadSecretKeyPath(t) + cfg := loadTestcontainersConfig() + + overallTimeout := cfg.StartupTimeout + 3*time.Minute + ctx, cancel := context.WithTimeout(context.Background(), overallTimeout) + defer cancel() + + env, err := startPulsarContainerWithAuth(ctx, cfg, tokens.AdminToken, secretKeyPath) + require.NoError(t, err) + t.Cleanup(func() { + cleanupCtx, cleanupCancel := context.WithTimeout(context.Background(), 2*time.Minute) + defer cleanupCancel() + _ = env.Terminate(cleanupCtx) + }) + + snmcpBaseURL, stopServer, err := startSNMCPServer(t, env.PulsarWebServiceURL, env.PulsarBrokerURL) + require.NoError(t, err) + t.Cleanup(stopServer) + + sseURL := snmcpBaseURL + "/sse" + require.NoError(t, expectUnauthorized(ctx, sseURL, "", false)) + require.NoError(t, expectUnauthorized(ctx, sseURL, "invalid-token", false)) + + adminClient, err := newAuthedClient(ctx, sseURL, tokens.AdminToken, "snmcp-e2e-admin") + require.NoError(t, err) + t.Cleanup(func() { + _ = adminClient.Close() + }) + + testClient, err := newAuthedClient(ctx, sseURL, tokens.TestUserToken, "snmcp-e2e-test-user") + require.NoError(t, err) + t.Cleanup(func() { + _ = testClient.Close() + }) + + clusters, err := listClusters(ctx, adminClient) + require.NoError(t, err) + require.NotEmpty(t, clusters) + + suffix := time.Now().UnixNano() + tenant := fmt.Sprintf("e2e-%d", suffix) + namespace := fmt.Sprintf("%s/ns-%d", tenant, suffix) + topic := fmt.Sprintf("persistent://%s/topic-%d", namespace, suffix) + + result, err := callTool(ctx, adminClient, "pulsar_admin_tenant", map[string]any{ + "resource": "tenant", + "operation": "create", + "tenant": tenant, + "adminRoles": []string{defaultAdminRole}, + "allowedClusters": []string{clusters[0]}, + }) + require.NoError(t, requireToolOK(result, err, "pulsar_admin_tenant create")) + + result, err = callTool(ctx, adminClient, "pulsar_admin_namespace", map[string]any{ + "operation": "create", + "namespace": namespace, + "clusters": []string{clusters[0]}, + }) + require.NoError(t, requireToolOK(result, err, "pulsar_admin_namespace create")) + + result, err = callTool(ctx, adminClient, "pulsar_admin_namespace_policy_set", map[string]any{ + "namespace": namespace, + "policy": "permission", + "role": defaultTestUser, + "actions": []string{"consume"}, + }) + require.NoError(t, requireToolOK(result, err, "pulsar_admin_namespace_policy_set permission")) + + result, err = callTool(ctx, adminClient, "pulsar_admin_topic", map[string]any{ + "resource": "topic", + "operation": "create", + "topic": topic, + "partitions": float64(0), + }) + require.NoError(t, requireToolOK(result, err, "pulsar_admin_topic create")) + + result, err = callTool(ctx, testClient, "pulsar_admin_tenant", map[string]any{ + "resource": "tenant", + "operation": "create", + "tenant": tenant + "-unauthorized", + "adminRoles": []string{defaultTestUser}, + "allowedClusters": []string{clusters[0]}, + }) + require.NoError(t, requireToolError(result, err, "pulsar_admin_tenant unauthorized create")) +} + +func startPulsarContainerWithAuth(ctx context.Context, cfg testcontainersConfig, adminToken, secretKeyPath string) (*testcontainersEnv, error) { + if !cfg.Enabled { + return nil, errTestcontainersDisabled + } + if strings.TrimSpace(adminToken) == "" { + return nil, fmt.Errorf("admin token is required") + } + if strings.TrimSpace(secretKeyPath) == "" { + return nil, fmt.Errorf("secret key path is required") + } + + request := testcontainers.ContainerRequest{ + Image: cfg.PulsarImage, + ExposedPorts: []string{pulsarBrokerPort, pulsarWebServicePort}, + Env: map[string]string{ + "PULSAR_PREFIX_authenticationEnabled": "true", + "PULSAR_PREFIX_authenticationProviders": "org.apache.pulsar.broker.authentication.AuthenticationProviderToken", + "PULSAR_PREFIX_authorizationEnabled": "true", + "PULSAR_PREFIX_superUserRoles": defaultAdminRole, + "PULSAR_PREFIX_tokenSecretKey": "file://" + authSecretFilePath, + "PULSAR_PREFIX_brokerClientAuthenticationPlugin": "org.apache.pulsar.client.impl.auth.AuthenticationToken", + "PULSAR_PREFIX_brokerClientAuthenticationParameters": "token:" + adminToken, + }, + Cmd: []string{"bash", "-lc", "set -- $(hostname -i); export PULSAR_PREFIX_advertisedAddress=$1; bin/apply-config-from-env.py /pulsar/conf/standalone.conf; exec bin/pulsar standalone"}, + Files: []testcontainers.ContainerFile{ + { + HostFilePath: secretKeyPath, + ContainerFilePath: authSecretFilePath, + FileMode: 0o600, + }, + }, + WaitingFor: wait.ForAll( + wait.ForHTTP("/admin/v2/clusters"). + WithPort(pulsarWebServicePort). + WithHeaders(map[string]string{"Authorization": "Bearer " + adminToken}), + wait.ForListeningPort(pulsarBrokerPort), + ).WithDeadline(cfg.StartupTimeout), + } + + container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{ + ContainerRequest: request, + Started: true, + }) + if err != nil { + return nil, fmt.Errorf("start pulsar container: %w", err) + } + + pulsarWebURL, pulsarBrokerURL, err := resolvePulsarEndpoints(ctx, container) + if err != nil { + _ = container.Terminate(ctx) + return nil, err + } + + return &testcontainersEnv{ + Pulsar: container, + PulsarWebServiceURL: pulsarWebURL, + PulsarBrokerURL: pulsarBrokerURL, + }, nil +} + +func startSNMCPServer(t *testing.T, pulsarWebURL, pulsarBrokerURL string) (string, func(), error) { + t.Helper() + + repoRoot := findRepoRoot(t) + binaryPath := buildSNMCPBinary(t, repoRoot) + + addr := reserveLocalAddr(t) + baseURL := fmt.Sprintf("http://%s/mcp", addr) + + //nolint:gosec // test binary path and arguments are controlled + cmd := exec.Command(binaryPath, + "sse", + "--http-addr", addr, + "--http-path", "/mcp", + "--use-external-pulsar", + "--pulsar-web-service-url", pulsarWebURL, + "--pulsar-service-url", pulsarBrokerURL, + "--multi-session-pulsar", + ) + cmd.Dir = repoRoot + cmd.Env = append(os.Environ(), "SNMCP_CONFIG_DIR="+t.TempDir()) + + var output bytes.Buffer + cmd.Stdout = &output + cmd.Stderr = &output + + if err := cmd.Start(); err != nil { + return "", nil, fmt.Errorf("start snmcp: %w", err) + } + + errCh := make(chan error, 1) + go func() { + errCh <- cmd.Wait() + }() + + readyCtx, cancel := context.WithTimeout(context.Background(), 45*time.Second) + defer cancel() + if err := waitForHTTPStatus(readyCtx, baseURL+"/healthz", http.StatusOK, errCh); err != nil { + _ = cmd.Process.Signal(os.Interrupt) + <-errCh + return "", nil, fmt.Errorf("snmcp not ready: %w\n%s", err, strings.TrimSpace(output.String())) + } + + cleanup := func() { + if cmd.Process == nil { + return + } + _ = cmd.Process.Signal(os.Interrupt) + select { + case <-errCh: + case <-time.After(10 * time.Second): + _ = cmd.Process.Kill() + <-errCh + } + } + + return baseURL, cleanup, nil +} + +func waitForHTTPStatus(ctx context.Context, target string, status int, errCh <-chan error) error { + for { + select { + case err := <-errCh: + return fmt.Errorf("snmcp exited early: %w", err) + default: + } + + req, err := http.NewRequestWithContext(ctx, http.MethodGet, target, nil) + if err != nil { + return err + } + resp, err := http.DefaultClient.Do(req) + if err == nil { + _ = resp.Body.Close() + if resp.StatusCode == status { + return nil + } + } + + select { + case <-ctx.Done(): + return fmt.Errorf("timeout waiting for %s", target) + case <-time.After(250 * time.Millisecond): + } + } +} + +func buildSNMCPBinary(t *testing.T, repoRoot string) string { + t.Helper() + outputPath := filepath.Join(t.TempDir(), "snmcp") + + //nolint:gosec // go build command is static and controlled in tests + cmd := exec.Command("go", "build", "-o", outputPath, "./cmd/streamnative-mcp-server") + cmd.Dir = repoRoot + cmd.Env = os.Environ() + + var output bytes.Buffer + cmd.Stdout = &output + cmd.Stderr = &output + + require.NoErrorf(t, cmd.Run(), "failed to build snmcp: %s", strings.TrimSpace(output.String())) + return outputPath +} + +func reserveLocalAddr(t *testing.T) string { + t.Helper() + listener, err := net.Listen("tcp", "127.0.0.1:0") + require.NoError(t, err) + addr := listener.Addr().String() + require.NoError(t, listener.Close()) + return addr +} + +func loadAuthTokens(t *testing.T) authTokens { + t.Helper() + + tokens := authTokens{ + AdminToken: strings.TrimSpace(os.Getenv("ADMIN_TOKEN")), + TestUserToken: strings.TrimSpace(os.Getenv("TEST_USER_TOKEN")), + } + + if tokens.AdminToken != "" && tokens.TestUserToken != "" { + return tokens + } + + repoRoot := findRepoRoot(t) + path := filepath.Join(repoRoot, "charts", "snmcp", "e2e", "test-tokens.env") + //nolint:gosec // path is resolved from repo root in tests + file, err := os.Open(path) + require.NoError(t, err) + defer func() { + _ = file.Close() + }() + + scanner := bufio.NewScanner(file) + for scanner.Scan() { + line := strings.TrimSpace(scanner.Text()) + if line == "" || strings.HasPrefix(line, "#") { + continue + } + parts := strings.SplitN(line, "=", 2) + if len(parts) != 2 { + continue + } + key := strings.TrimSpace(parts[0]) + value := strings.TrimSpace(parts[1]) + switch key { + case "ADMIN_TOKEN": + if tokens.AdminToken == "" { + tokens.AdminToken = value + } + case "TEST_USER_TOKEN": + if tokens.TestUserToken == "" { + tokens.TestUserToken = value + } + } + } + require.NoError(t, scanner.Err()) + require.NotEmpty(t, tokens.AdminToken) + require.NotEmpty(t, tokens.TestUserToken) + return tokens +} + +func loadSecretKeyPath(t *testing.T) string { + t.Helper() + repoRoot := findRepoRoot(t) + path := filepath.Join(repoRoot, "charts", "snmcp", "e2e", "test-secret.key") + _, err := os.Stat(path) + require.NoError(t, err) + return path +} + +func findRepoRoot(t *testing.T) string { + t.Helper() + dir, err := os.Getwd() + require.NoError(t, err) + + for { + if _, statErr := os.Stat(filepath.Join(dir, "go.mod")); statErr == nil { + return dir + } + parent := filepath.Dir(dir) + if parent == dir { + break + } + dir = parent + } + require.Fail(t, "go.mod not found in parent directories") + return "" +} From 230b12e547add32f74337596228ee7a98d2248ba Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 15:49:41 +0800 Subject: [PATCH 80/85] test(e2e): add kafka e2e coverage --- cmd/snmcp-e2e/kafka_test.go | 350 ++++++++++++++++++++++++++++++++++++ 1 file changed, 350 insertions(+) create mode 100644 cmd/snmcp-e2e/kafka_test.go diff --git a/cmd/snmcp-e2e/kafka_test.go b/cmd/snmcp-e2e/kafka_test.go new file mode 100644 index 0000000..322334e --- /dev/null +++ b/cmd/snmcp-e2e/kafka_test.go @@ -0,0 +1,350 @@ +// Copyright 2025 StreamNative +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package main + +import ( + "bytes" + "context" + "encoding/base64" + "encoding/json" + "errors" + "fmt" + "os" + "os/exec" + "slices" + "sort" + "strings" + "testing" + "time" + + "github.com/modelcontextprotocol/go-sdk/mcp" + "github.com/stretchr/testify/require" +) + +func TestKafkaE2E(t *testing.T) { + if testing.Short() { + t.Skip("skipping e2e test in short mode") + } + if !getenvBool("E2E_USE_TESTCONTAINERS", false) { + t.Skip("set E2E_USE_TESTCONTAINERS=true to run e2e tests") + } + + cfg := loadTestcontainersConfig() + overallTimeout := cfg.StartupTimeout + 3*time.Minute + ctx, cancel := context.WithTimeout(context.Background(), overallTimeout) + defer cancel() + + kafkaContainer, kafkaBrokers, err := startKafkaContainer(ctx, cfg) + require.NoError(t, err) + env := &testcontainersEnv{ + Kafka: kafkaContainer, + KafkaBrokers: kafkaBrokers, + } + t.Cleanup(func() { + cleanupCtx, cleanupCancel := context.WithTimeout(context.Background(), 2*time.Minute) + defer cleanupCancel() + _ = env.Terminate(cleanupCtx) + }) + + snmcpBaseURL, stopServer, err := startSNMCPServerWithKafka(t, kafkaBrokers) + require.NoError(t, err) + t.Cleanup(stopServer) + + sseURL := snmcpBaseURL + "/sse" + client, err := newAuthedClient(ctx, sseURL, "", "snmcp-e2e-kafka") + require.NoError(t, err) + t.Cleanup(func() { + _ = client.Close() + }) + + suffix := time.Now().UnixNano() + topic := fmt.Sprintf("e2e-topic-%d", suffix) + group := fmt.Sprintf("e2e-group-%d", suffix) + message := fmt.Sprintf("message-%d", suffix) + + result, err := callTool(ctx, client, "kafka_admin_topics", map[string]any{ + "resource": "topic", + "operation": "create", + "name": topic, + "partitions": float64(1), + "replicationFactor": float64(1), + }) + require.NoError(t, requireToolOK(result, err, "kafka_admin_topics create")) + + result, err = callTool(ctx, client, "kafka_admin_topics", map[string]any{ + "resource": "topics", + "operation": "list", + }) + require.NoError(t, requireToolOK(result, err, "kafka_admin_topics list")) + topics, err := parseKafkaTopicNames(firstText(result)) + require.NoError(t, err) + require.Contains(t, topics, topic) + + result, err = callTool(ctx, client, "kafka_client_produce", map[string]any{ + "topic": topic, + "value": message, + }) + require.NoError(t, requireToolOK(result, err, "kafka_client_produce")) + + result, err = callTool(ctx, client, "kafka_client_consume", map[string]any{ + "topic": topic, + "group": group, + "offset": "atstart", + "max-messages": float64(1), + "timeout": float64(20), + }) + require.NoError(t, requireToolOK(result, err, "kafka_client_consume")) + messages, err := decodeKafkaConsumeValues(firstText(result)) + require.NoError(t, err) + require.Contains(t, messages, message) + + require.NoError(t, waitForKafkaGroup(ctx, client, group)) + + result, err = callTool(ctx, client, "kafka_admin_groups", map[string]any{ + "resource": "group", + "operation": "describe", + "group": group, + }) + require.NoError(t, requireToolOK(result, err, "kafka_admin_groups describe")) + + result, err = callTool(ctx, client, "kafka_admin_groups", map[string]any{ + "resource": "group", + "operation": "offsets", + "group": group, + }) + require.NoError(t, requireToolOK(result, err, "kafka_admin_groups offsets")) + + result, err = callTool(ctx, client, "kafka_admin_partitions", map[string]any{ + "resource": "partition", + "operation": "update", + "topic": topic, + "new-total": float64(2), + }) + require.NoError(t, requireToolOK(result, err, "kafka_admin_partitions update")) + require.NoError(t, waitForKafkaPartitions(ctx, client, topic, 2)) +} + +func startSNMCPServerWithKafka(t *testing.T, kafkaBrokers string) (string, func(), error) { + t.Helper() + + if strings.TrimSpace(kafkaBrokers) == "" { + return "", nil, errors.New("kafka brokers are required") + } + + repoRoot := findRepoRoot(t) + binaryPath := buildSNMCPBinary(t, repoRoot) + + addr := reserveLocalAddr(t) + baseURL := fmt.Sprintf("http://%s/mcp", addr) + + //nolint:gosec // test binary path and arguments are controlled + cmd := exec.Command(binaryPath, + "sse", + "--http-addr", addr, + "--http-path", "/mcp", + "--use-external-kafka", + "--kafka-bootstrap-servers", kafkaBrokers, + ) + cmd.Dir = repoRoot + cmd.Env = append(os.Environ(), "SNMCP_CONFIG_DIR="+t.TempDir()) + + var output bytes.Buffer + cmd.Stdout = &output + cmd.Stderr = &output + + if err := cmd.Start(); err != nil { + return "", nil, fmt.Errorf("start snmcp: %w", err) + } + + errCh := make(chan error, 1) + go func() { + errCh <- cmd.Wait() + }() + + readyCtx, cancel := context.WithTimeout(context.Background(), 45*time.Second) + defer cancel() + if err := waitForHTTPStatus(readyCtx, baseURL+"/healthz", 200, errCh); err != nil { + _ = cmd.Process.Signal(os.Interrupt) + <-errCh + return "", nil, fmt.Errorf("snmcp not ready: %w\n%s", err, strings.TrimSpace(output.String())) + } + + cleanup := func() { + if cmd.Process == nil { + return + } + _ = cmd.Process.Signal(os.Interrupt) + select { + case <-errCh: + case <-time.After(10 * time.Second): + _ = cmd.Process.Kill() + <-errCh + } + } + + return baseURL, cleanup, nil +} + +func parseKafkaTopicNames(raw string) ([]string, error) { + if raw == "" { + return nil, errors.New("empty topics response") + } + var payload map[string]any + if err := json.Unmarshal([]byte(raw), &payload); err != nil { + return nil, fmt.Errorf("parse topics response: %w", err) + } + names := make([]string, 0, len(payload)) + for name := range payload { + names = append(names, name) + } + sort.Strings(names) + return names, nil +} + +func parseKafkaGroupNames(raw string) ([]string, error) { + if raw == "" { + return nil, errors.New("empty groups response") + } + var payload map[string]any + if err := json.Unmarshal([]byte(raw), &payload); err != nil { + return nil, fmt.Errorf("parse groups response: %w", err) + } + names := make([]string, 0, len(payload)) + for name := range payload { + names = append(names, name) + } + sort.Strings(names) + return names, nil +} + +func decodeKafkaConsumeValues(raw string) ([]string, error) { + if raw == "" { + return nil, errors.New("empty consume response") + } + var payload []any + if err := json.Unmarshal([]byte(raw), &payload); err != nil { + return nil, fmt.Errorf("parse consume response: %w", err) + } + values := make([]string, 0, len(payload)) + for _, entry := range payload { + switch value := entry.(type) { + case string: + decoded, err := base64.StdEncoding.DecodeString(value) + if err != nil { + values = append(values, value) + continue + } + values = append(values, string(decoded)) + default: + encoded, err := json.Marshal(value) + if err != nil { + values = append(values, fmt.Sprintf("%v", value)) + continue + } + values = append(values, string(encoded)) + } + } + return values, nil +} + +func waitForKafkaGroup(ctx context.Context, client *mcp.ClientSession, group string) error { + waitCtx, cancel := context.WithTimeout(ctx, 30*time.Second) + defer cancel() + + ticker := time.NewTicker(500 * time.Millisecond) + defer ticker.Stop() + + for { + result, err := callTool(waitCtx, client, "kafka_admin_groups", map[string]any{ + "resource": "groups", + "operation": "list", + }) + if err == nil && result != nil && !result.IsError { + names, parseErr := parseKafkaGroupNames(firstText(result)) + if parseErr == nil && slices.Contains(names, group) { + return nil + } + } + + select { + case <-waitCtx.Done(): + return fmt.Errorf("timeout waiting for kafka group %s", group) + case <-ticker.C: + } + } +} + +func waitForKafkaPartitions(ctx context.Context, client *mcp.ClientSession, topic string, expected int) error { + waitCtx, cancel := context.WithTimeout(ctx, 30*time.Second) + defer cancel() + + ticker := time.NewTicker(500 * time.Millisecond) + defer ticker.Stop() + + for { + result, err := callTool(waitCtx, client, "kafka_admin_topics", map[string]any{ + "resource": "topic", + "operation": "metadata", + "name": topic, + }) + if err == nil && result != nil && !result.IsError { + count, parseErr := extractKafkaPartitionCount(firstText(result), topic) + if parseErr == nil && count >= expected { + return nil + } + } + + select { + case <-waitCtx.Done(): + return fmt.Errorf("timeout waiting for kafka partitions on %s", topic) + case <-ticker.C: + } + } +} + +func extractKafkaPartitionCount(raw, topic string) (int, error) { + if raw == "" { + return 0, errors.New("empty metadata response") + } + var payload map[string]any + if err := json.Unmarshal([]byte(raw), &payload); err != nil { + return 0, fmt.Errorf("parse metadata response: %w", err) + } + topicsValue, ok := payload["Topics"] + if !ok { + topicsValue = payload["topics"] + } + topics, ok := topicsValue.(map[string]any) + if !ok { + return 0, errors.New("unexpected topics payload") + } + topicValue, ok := topics[topic] + if !ok { + return 0, fmt.Errorf("topic %s not found in metadata", topic) + } + topicMap, ok := topicValue.(map[string]any) + if !ok { + return 0, errors.New("unexpected topic metadata payload") + } + partitionsValue, ok := topicMap["Partitions"] + if !ok { + partitionsValue = topicMap["partitions"] + } + partitions, ok := partitionsValue.(map[string]any) + if !ok { + return 0, errors.New("unexpected partitions payload") + } + return len(partitions), nil +} From 6b63081cf4ac17b6ecd9636195de08edd4248f3c Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 16:05:21 +0800 Subject: [PATCH 81/85] ci: add full test workflow for migration --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5ea80ef --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI +on: [push, pull_request] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + + - name: Download dependencies + run: go mod download + + - name: Run unit tests + run: go test -race ./... + + - name: Run e2e test suite + run: go test ./cmd/snmcp-e2e/... -v From 37f522f191ccc499e5efc244df6da345e12329e2 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 16:13:26 +0800 Subject: [PATCH 82/85] test: verify auth isolation in e2e runner --- cmd/snmcp-e2e/main.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cmd/snmcp-e2e/main.go b/cmd/snmcp-e2e/main.go index 9bf6647..b7a4136 100644 --- a/cmd/snmcp-e2e/main.go +++ b/cmd/snmcp-e2e/main.go @@ -148,6 +148,17 @@ func run(ctx context.Context, cfg config) error { return err } + result, err = callTool(ctx, testClient, "pulsar_admin_tenant", map[string]any{ + "resource": "tenant", + "operation": "create", + "tenant": tenant + "-unauthorized", + "adminRoles": []string{"test-user"}, + "allowedClusters": []string{cluster}, + }) + if err := requireToolError(result, err, "pulsar_admin_tenant unauthorized create"); err != nil { + return err + } + result, err = callTool(ctx, adminClient, "pulsar_admin_namespace", map[string]any{ "operation": "create", "namespace": namespace, From 63c20f52597b64d475ec7d835db2aeefed0f3ae1 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 20:19:49 +0800 Subject: [PATCH 83/85] docs(mcp): update architecture and tool implementation details --- CLAUDE.md | 64 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 16 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6f37d9b..3784c8e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,16 +19,16 @@ go test -v -run TestName ./pkg/... # Run a single test ## Architecture Overview -The StreamNative MCP Server implements the Model Context Protocol using the `mark3labs/mcp-go` library to enable AI agents to interact with Apache Kafka, Apache Pulsar, and StreamNative Cloud resources. +The StreamNative MCP Server implements the Model Context Protocol using the `modelcontextprotocol/go-sdk` library to enable AI agents to interact with Apache Kafka, Apache Pulsar, and StreamNative Cloud resources. ### Request Flow ``` -Client Request → MCP Server (pkg/mcp/server.go) +Client Request → Transport (stdio/SSE in pkg/cmd/mcp/) ↓ - SSE/stdio transport layer (pkg/cmd/mcp/) + MCP Server (go-sdk, pkg/mcp/server_new.go) ↓ - Tool Handler (from builders) + Tool Handler (typed input/output) ↓ Context Functions (pkg/mcp/ctx.go) ↓ @@ -37,13 +37,16 @@ Client Request → MCP Server (pkg/mcp/server.go) ### Core Components -1. **Server & Sessions** (`pkg/mcp/server.go`) - - `Server` struct holds `MCPServer`, `KafkaSession`, `PulsarSession`, and `SNCloudSession` - - Sessions provide lazy-initialized clients for each service +1. **Server & Sessions** (`pkg/mcp/server_new.go`) + - `Server` wraps go-sdk `*mcp.Server` as `MCPServer` and holds `KafkaSession`, `PulsarSession`, and `SNCloudSession` + - `NewServer` configures server capabilities plus logging/recovery middleware - Context functions (`pkg/mcp/ctx.go`) inject/retrieve sessions from request context 2. **Tool Builders Framework** (`pkg/mcp/builders/`) - - `ToolBuilder` interface: `GetName()`, `GetRequiredFeatures()`, `BuildTools()`, `Validate()` + - `ToolBuilder` interface: `GetName()`, `GetRequiredFeatures()`, `BuildTools(ctx, config)`, `Validate(config)` + - `ToolDefinition` provides `Definition()` and `Register(*mcp.Server)` for typed tool installs + - `ServerTool[In, Out]` pairs a `*mcp.Tool` with `mcp.ToolHandlerFor[In, Out]` + - Tool schemas are generated via `jsonschema-go` helpers in `pkg/mcp/schema.go` - `BaseToolBuilder` provides common feature validation logic - `ToolRegistry` manages all tool builders with concurrent-safe registration - `ToolBuildConfig` specifies build parameters (ReadOnly, Features, Options) @@ -57,6 +60,7 @@ Client Request → MCP Server (pkg/mcp/server.go) 4. **Tool Registration** (`pkg/mcp/*_tools.go`) - Each `*_tools.go` file creates a builder, builds tools, and adds them to the server - Tools are conditionally registered based on `--features` flag + - Registration uses `tool.Register(server)` to install typed handlers on the go-sdk server - Feature constants defined in `pkg/mcp/features.go` 5. **PFTools - Functions as Tools** (`pkg/mcp/pftools/`) @@ -69,8 +73,9 @@ Client Request → MCP Server (pkg/mcp/server.go) - `pulsar_session_manager.go` - LRU session cache with TTL cleanup for multi-session mode 7. **Transport Layer** (`pkg/cmd/mcp/`) - - `sse.go` - SSE transport with health endpoints (`/healthz`, `/readyz`) and auth middleware - - `server.go` - Stdio transport and common server initialization + - `stdio.go` - Stdio transport via `mcp.StdioTransport` (optional `mcp.LoggingTransport`) + - `sse.go` - SSE transport via `mcp.SSEServerTransport` with message endpoint, health endpoints, and auth middleware + - `server.go` - Common server initialization and tool registration ### Key Design Patterns @@ -101,11 +106,35 @@ Client Request → MCP Server (pkg/mcp/server.go) } } - func (b *MyToolBuilder) BuildTools(ctx context.Context, config builders.ToolBuildConfig) ([]server.ServerTool, error) { + func (b *MyToolBuilder) BuildTools(ctx context.Context, config builders.ToolBuildConfig) ([]builders.ToolDefinition, error) { if !b.HasAnyRequiredFeature(config.Features) { return nil, nil } - // Build and return tools + if err := b.Validate(config); err != nil { + return nil, err + } + + inputSchema, err := mcp.InputSchema[MyInput]() + if err != nil { + return nil, err + } + + tool := &sdk.Tool{ + Name: "my_tool", + Description: "Tool description", + InputSchema: inputSchema, + } + + handler := func(ctx context.Context, _ *sdk.CallToolRequest, input MyInput) (*sdk.CallToolResult, MyOutput, error) { + // Handler logic here + return &sdk.CallToolResult{ + Content: []sdk.Content{&sdk.TextContent{Text: "ok"}}, + }, MyOutput{}, nil + } + + return []builders.ToolDefinition{ + builders.ServerTool[MyInput, MyOutput]{Tool: tool, Handler: handler}, + }, nil } ``` @@ -113,12 +142,12 @@ Client Request → MCP Server (pkg/mcp/server.go) 3. **Create Registration File** `pkg/mcp/my_tools.go`: ```go - func AddMyTools(s *server.MCPServer, readOnly bool, features []string) { + func AddMyTools(s *sdk.Server, readOnly bool, features []string) { builder := kafkabuilders.NewMyToolBuilder() config := builders.ToolBuildConfig{ReadOnly: readOnly, Features: features} tools, _ := builder.BuildTools(context.Background(), config) for _, tool := range tools { - s.AddTool(tool.Tool, tool.Handler) + tool.Register(s) } } ``` @@ -127,7 +156,10 @@ Client Request → MCP Server (pkg/mcp/server.go) ```go session := mcp.GetKafkaSession(ctx) // or GetPulsarSession if session == nil { - return mcp.NewToolResultError("session not found"), nil + return &sdk.CallToolResult{ + IsError: true, + Content: []sdk.Content{&sdk.TextContent{Text: "session not found"}}, + }, nil, nil } admin, err := session.GetAdminClient() ``` @@ -242,6 +274,6 @@ The project includes generated SDK packages: ## Error Handling - Wrap errors: `fmt.Errorf("failed to X: %w", err)` -- Return tool errors: `mcp.NewToolResultError("message")` +- Return tool errors by setting `IsError: true` on `sdk.CallToolResult` - Check session nil before operations - For PFTools, use circuit breaker to handle repeated failures From 564aa19da60c517472ebe23498c28f5ca8371f4d Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 20:27:18 +0800 Subject: [PATCH 84/85] stash --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b456fc5..5688d17 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ vendor agents/ .serena/ .envrc -.agents +.agents/ From 5a9273325758752ac8c8ea1f79d443cdf0e52313 Mon Sep 17 00:00:00 2001 From: Rui Fu Date: Mon, 19 Jan 2026 20:38:40 +0800 Subject: [PATCH 85/85] go mod tidy --- go.mod | 2 +- go.work.sum | 11 +++++++++++ sdk/sdk-apiserver/go.mod | 6 ++---- sdk/sdk-apiserver/go.sum | 5 +---- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 8267264..978b947 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,6 @@ require ( github.com/golang-jwt/jwt v3.2.1+incompatible github.com/google/go-cmp v0.7.0 github.com/google/jsonschema-go v0.3.0 - github.com/google/uuid v1.6.0 github.com/hamba/avro/v2 v2.28.0 github.com/mark3labs/mcp-go v0.43.2 github.com/mitchellh/go-homedir v1.1.0 @@ -71,6 +70,7 @@ require ( github.com/golang-jwt/jwt/v4 v4.5.2 // indirect github.com/golang-jwt/jwt/v5 v5.2.2 // indirect github.com/golang/protobuf v1.5.4 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.4 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/errwrap v1.1.0 // indirect diff --git a/go.work.sum b/go.work.sum index 241bd62..d3978c6 100644 --- a/go.work.sum +++ b/go.work.sum @@ -12,6 +12,7 @@ cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2Qx cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/compute/metadata v0.6.0 h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I= cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg= +cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs= cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= cloud.google.com/go/datastore v1.1.0 h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ= cloud.google.com/go/iam v1.2.2 h1:ozUSofHUGf/F4tCNy/mu9tHLTaxZFLOUiKzjcgWHGIA= @@ -54,6 +55,8 @@ github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU= github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 h1:QVw89YDxXxEe+l8gU8ETbOasdwEV+avkR75ZzsVV9WI= github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= +github.com/containerd/containerd v1.7.18 h1:jqjZTQNfXGoEaZdW1WwPU0RqSn1Bm2Ay/KJPUuO8nao= +github.com/containerd/containerd v1.7.18/go.mod h1:IYEk9/IO6wAPUz2bCMVUbsfXjzw5UNP5fLz4PsUygQ4= github.com/containerd/continuity v0.0.0-20190426062206-aaeac12a7ffc h1:TP+534wVlf61smEIq1nwLLAjQVEK2EADoW3CX9AuT+8= github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04= github.com/coreos/go-etcd v2.0.0+incompatible h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo= @@ -89,6 +92,8 @@ github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1v github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk= github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v4 v4.5.1 h1:JdqV9zKUdtaa9gdPlywC3aeoEsR681PlKC+4F5gQgeo= github.com/golang-jwt/jwt/v4 v4.5.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= @@ -174,6 +179,10 @@ github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWN github.com/russross/blackfriday v1.5.2 h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= +github.com/shirou/gopsutil/v3 v3.23.12 h1:z90NtUkp3bMtmICZKpC4+WaknU1eXtp5vtbQ11DgpE4= +github.com/shirou/gopsutil/v3 v3.23.12/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= +github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= +github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI= github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk= github.com/spf13/viper v1.3.2 h1:VUFqw5KcqRf7i70GOzW7N+Q7+gxVBkSSqiXB12+JQ4M= @@ -205,6 +214,8 @@ go.opentelemetry.io/otel/sdk/metric v1.29.0 h1:K2CfmJohnRgvZ9UAj2/FhIf/okdWcNdBw go.opentelemetry.io/otel/sdk/metric v1.29.0/go.mod h1:6zZLdCl2fkauYoZIOn/soQIDSWFmNSRcICarHfuhNJQ= go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= diff --git a/sdk/sdk-apiserver/go.mod b/sdk/sdk-apiserver/go.mod index 9bdd735..e2040d2 100644 --- a/sdk/sdk-apiserver/go.mod +++ b/sdk/sdk-apiserver/go.mod @@ -1,9 +1,7 @@ module github.com/streamnative/streamnative-mcp-server/sdk/sdk-apiserver -go 1.23.0 +go 1.24.0 toolchain go1.24.4 -require golang.org/x/oauth2 v0.27.0 - -require github.com/google/go-cmp v0.7.0 // indirect +require golang.org/x/oauth2 v0.34.0 diff --git a/sdk/sdk-apiserver/go.sum b/sdk/sdk-apiserver/go.sum index c55f307..51ef1a2 100644 --- a/sdk/sdk-apiserver/go.sum +++ b/sdk/sdk-apiserver/go.sum @@ -1,4 +1 @@ -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M= -golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= +golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=